.country-gate { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 22px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.country-gate.is-open { opacity: 1; visibility: visible; }
.country-gate-backdrop { position: absolute; inset: 0; background: rgba(7,7,28,.88); backdrop-filter: blur(12px); }
.country-gate-card { position: relative; width: min(980px, 100%); height: min(780px, calc(100vh - 44px)); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; color: #15182c; background: #fffefa; border: 1px solid rgba(255,255,255,.22); border-radius: 26px; box-shadow: 0 38px 120px rgba(0,0,0,.48); }
.country-gate-head { min-height: 82px; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #fff; background: #171650; border-bottom: 4px solid #f7c736; }
.country-gate-brand { display: flex; align-items: center; gap: 13px; }
.country-gate-brand img { width: 54px; height: 54px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.country-gate-brand span, .country-gate-brand b, .country-gate-brand small { display: block; }
.country-gate-brand b { font: 800 20px/1.1 'Manrope',sans-serif; letter-spacing: .08em; }
.country-gate-brand small { margin-top: 4px; color: #c9cae2; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.country-gate-step { padding: 7px 11px; color: #171650; background: #f7c736; border-radius: 30px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.country-gate-body { min-height: 0; padding: 25px 30px 18px; display: flex; flex-direction: column; }
.country-gate-intro span { color: #dc2838; font: 800 11px 'Manrope',sans-serif; text-transform: uppercase; letter-spacing: .16em; }
.country-gate-intro h2 { margin: 5px 0 9px; color: #171650; font: 800 clamp(28px,4vw,43px)/1.08 'Manrope',sans-serif; letter-spacing: -.04em; }
.country-gate-intro p { max-width: 780px; margin-bottom: 18px; color: #64697a; font-size: 15px; line-height: 1.5; }
.country-search { min-height: 56px; padding: 0 16px; display: flex; align-items: center; gap: 12px; color: #393b8f; background: #f4f3ef; border: 2px solid transparent; border-radius: 13px; }
.country-search:focus-within { background: #fff; border-color: #393b8f; box-shadow: 0 0 0 4px rgba(57,59,143,.1); }
.country-search input { min-width: 0; flex: 1; padding: 0; color: #11152a; background: transparent; border: 0; outline: 0; font-size: 16px; }
.country-search kbd { color: #7c8090; background: #fff; border: 1px solid #d8d8e2; border-bottom-width: 2px; border-radius: 6px; padding: 4px 7px; font: 600 11px 'DM Sans',sans-serif; }
.country-list-meta { padding: 12px 3px 8px; display: flex; justify-content: space-between; gap: 15px; color: #777b8b; font-size: 12px; }
.country-list-meta b { color: #171650; }
.country-list { min-height: 0; flex: 1; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 8px; padding: 2px 6px 8px 2px; scrollbar-color: #393b8f #e6e6ed; scrollbar-width: thin; }
.country-option { min-height: 64px; padding: 10px 12px; display: flex; align-items: center; gap: 12px; text-align: left; color: #22263a; background: #fff; border: 1px solid #e0e0e8; border-radius: 11px; transition: border .18s, background .18s, transform .18s; }
.country-option:hover { border-color: #393b8f; transform: translateY(-1px); }
.country-option.is-selected { background: #eef0ff; border-color: #393b8f; box-shadow: inset 4px 0 #dc2838; }
.country-flag { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; background: #f3f3f7; border-radius: 50%; font-size: 23px; }
.country-name { min-width: 0; flex: 1; }
.country-name b, .country-name small { display: block; }
.country-name b { color: #171650; font: 800 14px 'Manrope',sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.country-name small { margin-top: 2px; color: #7b7f90; font-size: 11px; }
.country-badge { padding: 4px 7px; color: #fff; background: #067647; border-radius: 20px; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.country-check { width: 22px; height: 22px; display: none; place-items: center; color: #fff; background: #393b8f; border-radius: 50%; font-size: 9px; }
.country-option.is-selected .country-check { display: grid; }
.country-empty { grid-column: 1/-1; min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #777b8b; text-align: center; }
.country-empty i { margin-bottom: 8px; color: #dc2838; font-size: 27px; }
.country-empty b, .country-empty span { display: block; }
.country-gate-footer { min-height: 82px; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #f4f3ef; border-top: 1px solid #dedee7; }
.country-selection { display: flex; align-items: center; gap: 10px; color: #696d7d; font-size: 14px; }
.country-selection i { color: #dc2838; }
.country-selection b { color: #171650; }
#countryContinue { min-height: 48px; padding: 12px 20px; color: #fff; background: #dc2838; border: 0; border-radius: 9px; font-weight: 800; }
#countryContinue:disabled { color: #999ba7; background: #dedee3; cursor: not-allowed; }
#countryContinue:not(:disabled):hover { background: #171650; }
.country-gate-locked { overflow: hidden !important; }
.region-chip { padding: 3px 8px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 20px; font-size: 11px; }
.region-chip span { margin-right: 4px; }
.region-chip u { margin-left: 3px; color: #f7c736; text-underline-offset: 2px; }

@media (max-width: 700px) {
  .country-gate { padding: 0; place-items: stretch; }
  .country-gate-card { width: 100%; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
  .country-gate-head { min-height: 74px; padding: 10px 15px; }
  .country-gate-brand img { width: 48px; height: 48px; }
  .country-gate-brand small { display: none; }
  .country-gate-step { padding: 6px 8px; font-size: 9px; }
  .country-gate-body { padding: 18px 15px 10px; }
  .country-gate-intro h2 { font-size: 29px; }
  .country-gate-intro p { margin-bottom: 13px; font-size: 13px; }
  .country-search kbd, .country-list-meta span { display: none; }
  .country-list { grid-template-columns: 1fr; gap: 6px; }
  .country-option { min-height: 58px; }
  .country-gate-footer { min-height: 78px; padding: 11px 15px; position: sticky; bottom: 0; }
  .country-selection { max-width: 45%; font-size: 12px; }
  #countryContinue { padding: 10px 14px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .country-gate, .country-option { transition: none; }
}
