:root {
  --bg: #080b12;
  --surface: #10151f;
  --surface-2: #151c28;
  --surface-3: #1b2432;
  --line: rgba(175, 192, 220, .13);
  --line-strong: rgba(175, 192, 220, .22);
  --text: #f2f5fa;
  --muted: #8996aa;
  --soft: #b7c1d0;
  --accent: #8ca8ff;
  --accent-strong: #6182ff;
  --green: #55d99b;
  --amber: #f2bd68;
  --red: #f17791;
  --shadow: 0 24px 70px rgba(0,0,0,.3);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); overscroll-behavior-y: none; }
body { min-height: 100dvh; margin: 0; min-width: 320px; color: var(--text); background: radial-gradient(900px 500px at 8% -15%, #1d2a4c 0, transparent 62%), radial-gradient(700px 500px at 100% 5%, #18233b 0, transparent 58%), var(--bg); font: 14px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; overscroll-behavior-y: none; }
button, input, select { font: inherit; }
button { border: 0; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease, opacity .2s ease; }
button:hover:not(:disabled) { transform: translateY(-1px); }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .48; }
body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}
body.modal-open .app-shell {
  pointer-events: none;
  user-select: none;
}
.app-shell { width: min(1280px, 100%); min-height: 100dvh; margin: 0 auto; padding: 30px 28px 64px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--soft); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.status-dot, .availability span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }
h1, h2, h3, p { margin-top: 0; } h1 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.055em; line-height: 1; } h2 { margin-bottom: 0; font-size: 1.25rem; letter-spacing: -.025em; } h3 { margin: 0; }
.subtitle { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.role-strip { display: flex; align-items: center; gap: 11px; min-width: 206px; padding: 11px 13px; border: 1px solid rgba(140,168,255,.36); border-radius: 16px; background: linear-gradient(135deg, rgba(99,130,255,.24), rgba(40,50,82,.32)); box-shadow: 0 10px 28px rgba(26,43,92,.25), inset 0 1px rgba(255,255,255,.09); }
.role-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #dbe4ff; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); box-shadow: 0 5px 14px rgba(97,130,255,.4); font-size: 19px; }
.role-copy { display: grid; gap: 1px; min-width: 0; flex: 1; } .role-label { color: #b5c2e1; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; } .role-badge { color: var(--text); font-size: 14px; font-weight: 800; } .referral-badge { color: #b8c6e8; font-size: 11px; } .role-arrow { color: #b6c8ff; font-size: 17px; }
.level-progress { height: 5px; margin-top: 5px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.1); }
.level-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8ca8ff, #55d99b); box-shadow: 0 0 10px rgba(85,217,155,.35); transition: width .35s ease; }
.level-progress-text { color: #9eafd2; font-size: 10px; }
.number-type { margin-top: 4px; color: #91a6c9; font-size: 10px; }
.phone-number { display: block; letter-spacing: .08em; word-spacing: .18em; }
.prefix-hint { display: block; margin-top: 7px; }
.language-switcher { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: rgba(13,18,29,.8); } .language-button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 9px; border-radius: 9px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; } .language-button img { width: 19px; height: 13px; object-fit: cover; border-radius: 3px; } .language-button.active { color: var(--text); background: var(--surface-3); }
.instructions-button, .partner-button, .topup-button { padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--soft); background: rgba(24,32,47,.72); font-weight: 700; } .partner-button { color: #9be3be; border-color: rgba(85,217,155,.22); background: rgba(45,135,92,.12); } .instructions-button:hover, .partner-button:hover { border-color: var(--line-strong); background: var(--surface-3); }
.wallet-box { min-width: 180px; padding: 12px 14px; border: 1px solid rgba(140,168,255,.27); border-radius: 15px; background: linear-gradient(145deg, rgba(82,108,198,.2), rgba(19,28,49,.8)); } .wallet-box span { display: block; color: #aab9db; font-size: 11px; } .wallet-box strong { display: block; margin: 2px 0 9px; font-size: 1.55rem; letter-spacing: -.03em; } .topup-button { padding: 7px 10px; color: #d9e1ff; background: rgba(140,168,255,.15); font-size: 12px; }
.grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(330px, .9fr); gap: 18px; align-items: start; }
.panel { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: rgba(13,18,28,.83); box-shadow: var(--shadow); } .side-panel { position: sticky; top: 16px; background: linear-gradient(160deg, rgba(22,30,47,.97), rgba(11,16,25,.96)); } .panel-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; } .section-kicker { margin-bottom: 6px; color: #7f91b5; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; } .badge { display: inline-flex; align-items: center; padding: 7px 10px; border: 1px solid rgba(140,168,255,.2); border-radius: 999px; color: #c8d5ff; background: rgba(140,168,255,.12); font-size: 12px; font-weight: 700; white-space: nowrap; }
.toolbar { display: flex; gap: 9px; margin-bottom: 14px; } .toolbar input, .toolbar select { min-height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; outline: 0; color: var(--text); background: #0d131e; } .toolbar input { flex: 1; min-width: 0; } .toolbar input::placeholder { color: #66748b; } .toolbar input:focus, .toolbar select:focus { border-color: rgba(140,168,255,.65); }
.price-currency-switch { display: flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: #0d131e; white-space: nowrap; }
.price-currency-switch button { padding: 7px 9px; border-radius: 8px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 750; }
.price-currency-switch button.active { color: var(--text); background: var(--surface-3); } .toolbar input { flex: 1; min-width: 0; } .toolbar input::placeholder { color: #66748b; } .toolbar input:focus, .toolbar select:focus { border-color: rgba(140,168,255,.65); }
.country-list { display: grid; gap: 9px; max-height: 626px; overflow-y: auto; padding: 2px 4px 2px 0; } .country-item { display: grid; grid-template-columns: 44px minmax(0,1fr) auto auto; align-items: center; gap: 13px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(120deg, rgba(23,31,45,.8), rgba(17,23,34,.8)); } .country-item:hover { border-color: rgba(140,168,255,.34); background: var(--surface-2); } .country-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: #202a3c; font-size: 22px; } .country-flag-image { display: block; width: 30px; height: 21px; object-fit: cover; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.3); } .country-main { min-width: 0; } .country-name { overflow: hidden; color: var(--text); font-weight: 750; text-overflow: ellipsis; white-space: nowrap; } .availability { margin-top: 4px; color: var(--muted); font-size: 11px; } .availability span { width: 5px; height: 5px; margin-right: 6px; box-shadow: none; } .country-price { min-width: 94px; text-align: right; } .country-price strong { display: block; color: var(--amber); font-size: 16px; } .country-price small { color: #748197; font-size: 10px; } .country-item button { padding: 10px 12px; border-radius: 10px; color: white; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); font-weight: 750; } .country-item button b { margin-left: 7px; font-size: 16px; }
.country-price small { display: block; max-width: 190px; line-height: 1.35; } .country-item button { padding: 10px 12px; border-radius: 10px; color: white; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); font-weight: 750; } .country-item button b { margin-left: 7px; font-size: 16px; }
.order-card { display: grid; gap: 13px; min-height: 250px; padding: 16px; border: 1px solid rgba(140,168,255,.25); border-radius: 18px; background: radial-gradient(400px 180px at 100% 0, rgba(99,130,255,.18), transparent 65%), #111a29; box-shadow: inset 0 1px rgba(255,255,255,.06); } .order-card.empty { place-items: center; min-height: 200px; padding: 30px; color: var(--muted); text-align: center; } .order-hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .order-country-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; } .order-country-flag { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(140,168,255,.14); overflow: hidden; } .order-country-flag .country-flag-image { width: 30px; height: 21px; } .order-kicker, .field-label { display: block; color: #7e8ba2; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; } .order-country { margin-top: 2px; font-size: 16px; } .status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 999px; color: var(--amber); background: rgba(242,189,104,.13); font-size: 10px; font-weight: 700; white-space: nowrap; } .status-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; } .status-pill.success { color: var(--green); background: rgba(85,217,155,.13); } .status-pill.expired { color: var(--red); background: rgba(241,119,145,.13); }
.number-block, .sms-block { padding: 13px; border: 1px solid rgba(255,255,255,.07); border-radius: 13px; background: rgba(5,10,19,.35); } .order-field-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .copy-value-button { padding: 5px 8px; border: 1px solid rgba(140,168,255,.24); border-radius: 7px; color: #cbd6ff; background: rgba(140,168,255,.1); font-size: 10px; font-weight: 750; } .copy-value-button:hover, .copy-value-button.copied { border-color: rgba(85,217,155,.45); color: #b7f0d0; background: rgba(85,217,155,.1); } .phone-number { display: block; margin-top: 4px; color: var(--text); font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 800; letter-spacing: .04em; } .prefix-hint { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; } .prefix-hint b { color: var(--accent); } .sms-block { border-color: rgba(85,217,155,.17); background: rgba(85,217,155,.055); } .sms-block.received { background: rgba(85,217,155,.12); } .sms-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .sms-state { color: var(--muted); font-size: 10px; } .sms-progress { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: start; gap: 5px; margin: 12px 0 2px; } .sms-progress-step { display: grid; justify-items: center; gap: 4px; color: #6f7c92; font-size: 9px; text-align: center; } .sms-progress-step b { display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid #35445d; border-radius: 50%; font-size: 10px; } .sms-progress-step.active { color: #b9c6e8; } .sms-progress-step.active b { border-color: rgba(140,168,255,.65); color: #dbe3ff; background: rgba(140,168,255,.2); } .sms-progress-line { height: 1px; margin-top: 10px; background: #35445d; } .sms-code { display: grid; place-items: center; min-height: 44px; margin-top: 6px; color: var(--green); font-size: 2rem; font-weight: 900; letter-spacing: .14em; } .order-details { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; } .detail-cell { padding: 10px; border-radius: 10px; background: rgba(255,255,255,.045); } .detail-cell span { display: block; color: var(--muted); font-size: 10px; } .detail-cell strong { display: block; margin-top: 3px; font-size: 13px; } .order-instructions-button, .cancel-button { width: 100%; padding: 10px 13px; border-radius: 10px; font-weight: 750; } .order-instructions-button { border: 1px solid rgba(140,168,255,.25); color: #cad5ff; background: rgba(140,168,255,.1); } .cancel-button { border: 1px solid rgba(241,119,145,.3); color: #ffcbd5; background: rgba(241,119,145,.1); } .code-help-button { padding: 0; color: var(--muted); background: transparent; font-size: 11px; text-decoration: underline; }
.empty-state { padding: 34px 18px; border: 1px dashed var(--line-strong); border-radius: 13px; color: var(--muted); text-align: center; }
.admin-panel { margin-top: 18px; } .metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; } .metric { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); } .metric label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; } .metric strong { display: block; overflow: hidden; font-size: 1.05rem; text-overflow: ellipsis; white-space: nowrap; }
.history-modal { width: min(650px, 100%); } .history-content { display: grid; gap: 8px; margin-top: 18px; max-height: 60vh; overflow-y: auto; } .history-content h3 { margin-top: 12px; color: var(--soft); font-size: 13px; } .history-row { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); } .history-row span, .history-row small { color: var(--muted); font-size: 11px; } .history-row small { grid-column: 1 / -1; }
.admin-currency-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.hidden { display: none !important; } .admin-currency-controls.hidden { display: none; }
.admin-locked .app-shell { visibility: hidden; }
.admin-locked .modal { visibility: visible; }
.admin-pin-card { border-color: rgba(140,168,255,.42); background: radial-gradient(420px 180px at 50% -10%, rgba(109,139,255,.22), transparent 72%), #101827; text-align: center; }
.admin-pin-mark { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 18px; border: 1px solid rgba(140,168,255,.45); border-radius: 18px; color: #c6d2ff; background: rgba(109,139,255,.13); font-size: 25px; box-shadow: 0 0 28px rgba(109,139,255,.16); }
.admin-pin-card .support-message { margin-top: 18px; text-align: center; letter-spacing: .32em; }
.admin-pin-note { margin: 16px 0 4px; padding: 10px 12px; border: 1px solid rgba(242,189,104,.2); border-radius: 11px; color: #d8c39e; background: rgba(242,189,104,.08); font-size: 11px; }
.admin-pin-note span { margin-right: 6px; color: #f2bd68; }
.admin-locked-badge { color: #f2bd68 !important; border-color: rgba(242,189,104,.3) !important; }
.admin-system-status { margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(17,26,41,.72); }
.system-status-list { display: grid; gap: 8px; }
.system-status-row { display: grid; grid-template-columns: 8px 120px 1fr; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.03); }
.system-status-row small { color: var(--muted); }
.system-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px currentColor; }
.system-status-row.ok .system-status-dot { background: var(--green); }
.system-status-row.failed { color: #f1b4c0; }
.toast-region { position: fixed; z-index: 20; right: 22px; bottom: 22px; display: grid; gap: 9px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: grid; gap: 3px; padding: 11px 13px; border: 1px solid rgba(140,168,255,.22); border-radius: 10px; color: var(--text); background: rgba(19,28,45,.94); box-shadow: 0 10px 24px rgba(0,0,0,.24); animation: toast-in .22s ease-out; pointer-events: auto; }
.toast strong { font-size: 12px; font-weight: 750; } .toast p { margin: 0; color: var(--soft); font-size: 11px; line-height: 1.35; }
.toast.error { border-color: rgba(241,119,145,.45); } .toast.success { border-color: rgba(85,217,155,.4); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.topup-instruction-gate { display: grid; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--soft); font-size: 13px; line-height: 1.45; }
.topup-instruction-gate label { display: flex; align-items: flex-start; gap: 9px; }
.topup-instruction-gate input { margin-top: 3px; accent-color: var(--accent); }
.topup-instruction-gate button:disabled { cursor: not-allowed; opacity: .45; }
.stripe-topup-button { padding: 10px 12px; border: 1px solid rgba(151,112,255,.35); border-radius: 9px; color: #e2d8ff; background: rgba(112,76,214,.18); font-weight: 750; }
.stripe-topup-button:hover:not(:disabled) { border-color: rgba(176,145,255,.65); background: rgba(112,76,214,.3); }
.telegram-identity { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.admin-currency-controls .language-switcher { flex-shrink: 0; }
.admin-users-panel { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.admin-users-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.admin-users-heading h3 { margin: 0; font-size: 16px; }
.admin-users-list { display: grid; gap: 7px; }
.admin-users-search { position: relative; margin: 0 0 12px; }
.admin-users-search input { width: 100%; padding: 11px 38px 11px 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--text); background: #0d131e; font: inherit; font-size: 12px; }
.admin-users-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,130,255,.12); }
.admin-users-search button { position: absolute; top: 50%; right: 8px; width: 24px; height: 24px; transform: translateY(-50%); border: 0; border-radius: 50%; color: var(--muted); background: transparent; font-size: 19px; line-height: 1; cursor: pointer; }
.admin-users-search button:hover { color: var(--text); background: var(--surface-3); }
.admin-users-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.admin-users-pagination button { padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--soft); background: #182333; font-size: 11px; font-weight: 700; }
.admin-users-pagination button:disabled { cursor: default; opacity: .45; }
.admin-users-pagination span { min-width: 44px; color: var(--muted); font-size: 11px; text-align: center; }
.admin-users-panel.hidden { display: none; }
.support-footer { margin-top: 24px; padding-bottom: 24px; }
.support-box { width: min(720px, 100%); margin: 0 auto; padding: 18px; border: 1px solid rgba(140,168,255,.18); border-radius: 14px; background: #0f151f; }
.support-box h3 { margin-bottom: 5px; font-size: 16px; }
.support-box > p:not(.section-kicker) { margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.support-message { width: 100%; min-height: 130px; margin: 14px 0; padding: 12px; resize: vertical; border: 1px solid var(--line); border-radius: 11px; outline: 0; color: var(--text); background: #0d131e; }
.support-send { width: 100%; }
.admin-support-list { display: grid; gap: 9px; }
.admin-support-ticket { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #121a26; }
.admin-support-ticket > div { display: flex; justify-content: space-between; gap: 10px; }
.admin-support-ticket > div span, .admin-support-ticket p { color: var(--muted); font-size: 11px; }
.admin-support-ticket p { margin: 8px 0; white-space: pre-wrap; }
.support-admin-reply { padding: 8px; border-left: 2px solid var(--green); background: rgba(85,217,155,.06); }
.support-reply-input { width: 100%; min-height: 70px; margin: 8px 0; padding: 9px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--text); background: #0d131e; }
.support-ticket-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.support-ticket-actions button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--soft); background: #182333; font-size: 11px; font-weight: 700; }
.support-ticket-actions .support-reply-button { color: #07131a; background: var(--green); }
.admin-user-row { display: grid; grid-template-columns: 32px minmax(130px, 1fr) auto auto; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: #121a26; text-align: left; }
.admin-user-row:hover { border-color: rgba(140,168,255,.45); background: #172131; }
.admin-user-row img, .admin-user-title img { width: 28px; height: 28px; object-fit: contain; }
.admin-user-main { display: grid; gap: 2px; min-width: 0; }
.admin-user-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-balance { display: grid; gap: 2px; min-width: 86px; text-align: right; }
.admin-user-balance b { color: var(--text); font-size: 12px; }
.admin-user-balance small { color: var(--muted); font-size: 10px; }
.admin-user-main small, .admin-user-stats { color: var(--muted); font-size: 11px; }
.admin-user-balance { color: var(--amber); font-weight: 750; white-space: nowrap; }
.admin-user-modal { width: min(600px,100%); }
.admin-user-title { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.admin-user-title h2 { margin: 0; }
.admin-user-title p { margin: 3px 0 0; color: var(--muted); }
.admin-detail-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-bottom: 18px; }
.admin-detail-grid > div { padding: 12px; border-radius: 9px; background: var(--surface-2); }
.admin-detail-grid span { display: block; color: var(--muted); font-size: 10px; }
.admin-detail-grid strong { display: block; margin-top: 4px; font-size: 16px; }
.admin-field { display: grid; gap: 7px; color: var(--muted); font-size: 11px; }
.admin-field select { padding: 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: #0d131e; }
.admin-actions { display: flex; gap: 8px; margin-top: 12px; }
.admin-actions button { flex: 1; padding: 10px; border-radius: 8px; color: var(--text); background: var(--surface-3); }
.admin-actions button:last-child { color: #b8e8cc; background: rgba(85,217,155,.12); }
.admin-orders { display: grid; gap: 6px; margin-top: 18px; color: var(--soft); font-size: 12px; }
.admin-orders div { display: flex; justify-content: space-between; padding: 8px; border-bottom: 1px solid var(--line); }
.admin-orders small { color: var(--muted); }
@media (max-width: 560px) { .admin-user-row { grid-template-columns: 30px 1fr auto; } .admin-user-stats { display: none; } .admin-detail-grid { grid-template-columns: 1fr; } .admin-actions { flex-direction: column; } }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100dvh;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overflow: auto;
  overscroll-behavior: contain;
  isolation: isolate;
  background: #080b12;
  touch-action: auto;
}
.modal::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #080b12;
  content: "";
}
.modal-card {
  max-height: min(720px, calc(100dvh - 40px));
  overscroll-behavior: contain;
} .modal.hidden { display: none; } .modal-card { position: relative; width: min(520px,100%); max-height: calc(100vh - 40px); overflow: auto; padding: 28px; border: 1px solid var(--line-strong); border-radius: 20px; background: #121a28; box-shadow: var(--shadow); } .modal-close { position: absolute; top: 12px; right: 14px; padding: 2px 8px; border-radius: 8px; color: var(--muted); background: transparent; font-size: 25px; } .modal-close:hover { color: var(--text); background: var(--surface-3); } .instructions-list { padding-left: 21px; color: var(--soft); line-height: 1.8; } .help-copy { color: var(--soft); line-height: 1.65; } .help-copy ul { padding-left: 20px; } .referral-progress { height: 8px; margin-top: 18px; overflow: hidden; border-radius: 8px; background: #202b3c; } .referral-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .25s ease; } .referral-progress-text { margin: 8px 0 14px; color: var(--muted); font-size: 12px; } .referral-link-box { display: flex; align-items: center; gap: 8px; } .referral-link-box code { flex: 1; overflow: hidden; padding: 10px; border-radius: 8px; color: #b9c6dc; background: #0b111a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; } .referral-link-box button { padding: 9px 10px; border-radius: 8px; color: var(--soft); background: var(--surface-3); }
@media (max-width: 1080px) { .topbar { flex-direction: column; } .topbar-actions { justify-content: flex-start; } }
@media (max-width: 860px) { .app-shell { padding: 24px 16px 42px; } .grid { grid-template-columns: 1fr; } .side-panel { position: static; } .topbar-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .role-strip, .wallet-box { grid-column: 1 / -1; } .language-switcher { grid-column: 1 / -1; width: 100%; } .language-button { flex: 1; justify-content: center; } .instructions-button, .partner-button { width: 100%; } }
@media (max-width: 560px) { h1 { font-size: 2.15rem; } .panel { padding: 16px; border-radius: 16px; } .country-item { grid-template-columns: 40px minmax(0,1fr); gap: 10px; } .country-icon { width: 40px; height: 40px; } .country-price { grid-column: 2; min-width: 0; text-align: left; } .country-item button { grid-column: 2; width: 100%; } .toolbar { flex-direction: column; } .order-details, .metrics { grid-template-columns: 1fr; } .order-hero { align-items: flex-start; flex-direction: column; } .status-pill { align-self: flex-start; } .modal-card { padding: 23px 18px; } }

/* Final layout pass: compact account status, calmer hierarchy, less visual noise. */
.topbar { align-items: center; margin-bottom: 34px; }
.topbar-actions { max-width: 900px; justify-content: flex-end; }
.role-strip {
  min-width: 174px;
  padding: 9px 12px;
  border: 1px solid #2b3a50;
  border-radius: 10px;
  background: #111925;
  box-shadow: none;
}
.partner-button {
  padding: 9px 10px;
  border-color: transparent;
  background: transparent;
  color: #91a2bb;
  font-size: 12px;
  font-weight: 650;
}
.partner-button:hover {
  border-color: #2b3a50;
  color: var(--text);
  background: #151e2b;
}
.role-icon {
  width: 27px;
  height: 27px;
  object-fit: contain;
  border-radius: 50%;
  color: #79d9a8;
  background: rgba(85,217,155,.12);
  box-shadow: none;
  font-size: 10px;
}
.role-label { color: #718097; font-size: 9px; }
.role-badge { font-size: 13px; }
.referral-badge { color: #8290a5; font-size: 10px; }
.language-switcher { border-radius: 10px; }
.instructions-button, .partner-button, .topup-button { border-radius: 9px; }
.wallet-box {
  min-width: 160px;
  padding: 10px 12px;
  border: 1px solid #2b3a50;
  border-radius: 10px;
  background: #111925;
}
.wallet-box strong { font-size: 1.35rem; }
.wallet-box strong, .country-price strong, .metric strong, .detail-cell strong { font-variant-numeric: tabular-nums; }
.panel {
  border-radius: 14px;
  background: #0f151f;
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
}
.side-panel { background: #111925; }
.country-item { border-radius: 11px; background: #121a26; }
.country-item:hover { background: #172131; }
.order-card { border-radius: 12px; background: #0d1521; }
.status-pill { padding: 7px 10px; font-size: 11px; }
.catalog-loading, .catalog-error {
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 32px;
  border: 1px dashed #2a374a;
  border-radius: 12px;
  text-align: center;
}
.catalog-loading span {
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
  border: 2px solid #2a374a;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: catalog-spin .8s linear infinite;
}
.catalog-loading p, .catalog-error p { margin: 0; color: var(--soft); }
.catalog-loading small, .catalog-error small { color: var(--muted); }
.catalog-error strong { color: #ffb7c4; }
@keyframes catalog-spin { to { transform: rotate(360deg); } }
@media (max-width: 1080px) {
  .topbar { align-items: flex-start; }
  .topbar-actions { max-width: none; }
}

.browser-currency-switch {
  display: flex;
  margin-top: 8px;
  gap: 3px;
  padding: 3px;
  border: 1px solid #2b3a50;
  border-radius: 9px;
  background: #111925;
}
.browser-currency-switch button {
  padding: 7px 8px;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 750;
}
.browser-currency-switch button.active {
  color: var(--text);
  background: var(--surface-3);
}
.browser-currency-switch:not(.hidden) { display: flex; }
.browser-mode .browser-currency-switch {
  display: flex !important;
}
.browser-mode .partner-button,
.browser-mode .instructions-button {
  display: none !important;
}
.browser-mode .wallet-box {
  display: block !important;
}
.browser-mode .app-shell {
  width: min(760px, 100%);
}
.browser-mode .topbar {
  margin-bottom: 20px;
}
.browser-mode .grid {
  display: block;
}
.browser-mode .side-panel {
  position: static;
}
.role-strip.lvl1 { border-color: #2b3a50; }
.role-strip.lvl2 { border-color: #4b6b91; background: #111d2c; }
.role-strip.lvl3 { border-color: #4b7891; background: #11232c; }
.role-strip.lvl4 { border-color: #936d45; background: #2a2118; }
.role-strip.lvl5 { border-color: #a68542; background: #2a2518; }
.role-strip.lvl6 { border-color: #ad7a4e; background: #2b211a; }
.role-strip.lvl7 { border-color: #9b6aad; background: #261b2e; }
.role-strip.lvl8 { border-color: #6688c4; background: #1a2438; }
.role-strip.lvl9 { border-color: #c08b4c; background: #302318; }
.role-strip.lvl10 { border-color: #d0a84f; background: #332a18; }
.role-strip.master { border-color: #e3bd57; background: linear-gradient(135deg, #3b2d12, #1d2230); box-shadow: 0 0 22px rgba(227,189,87,.18); }
.role-badge.master, .role-badge.lvl10 { color: #f2cf73; }
.role-badge.lvl7, .role-badge.lvl8, .role-badge.lvl9 { color: #d4b9ff; }
.role-badge.partner { color: #7dd3fc; }
.role-badge.beta { color: #c4b5fd; }
.roles-button { flex: 0 0 auto; width: 19px; height: 19px; margin-left: 3px; border: 1px solid rgba(184,198,232,.32); border-radius: 50%; color: #b8c6e8; background: transparent; font-size: 11px; line-height: 17px; cursor: pointer; opacity: .7; }
.roles-button:hover { opacity: 1; border-color: var(--accent); color: var(--text); }
.roles-modal-card { width: min(520px, 100%); max-height: min(720px, 88dvh); overflow: auto; }
.roles-list { display: grid; gap: 7px; margin-top: 18px; }
.role-guide-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); }
.role-guide-dot { flex: 0 0 9px; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: #b8c6e8; box-shadow: 0 0 8px currentColor; }
.role-guide-icon { flex: 0 0 42px; width: 42px; height: 42px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 14px rgba(255,255,255,.12); }
.role-guide-item strong, .role-guide-item small, .role-guide-item p { display: block; }
.role-guide-item strong { color: var(--text); font-size: 12px; }
.role-guide-item small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.role-guide-item p { margin: 4px 0 0; color: var(--soft); font-size: 11px; }
.role-guide-partner .role-guide-dot { background: #7dd3fc; }
.role-guide-beta .role-guide-dot { background: #c4b5fd; }
.role-guide-support .role-guide-icon { box-shadow: 0 0 14px rgba(168,74,255,.35); }
.admin-support-standalone { margin-top: 18px; }

.auth-required .app-shell { filter: blur(5px); pointer-events: none; user-select: none; }
.auth-gate-modal { z-index: 30; background: rgba(3,7,15,.68); }
.auth-gate-card {
  width: min(560px, 100%);
  padding: 38px;
  border-color: rgba(140,168,255,.35);
  background: radial-gradient(520px 220px at 50% -10%, rgba(99,130,255,.22), transparent 72%), #111a2a;
  box-shadow: 0 30px 100px rgba(0,0,0,.52), inset 0 1px rgba(255,255,255,.08);
}
.auth-gate-icon {
  display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 22px;
  border: 1px solid rgba(140,168,255,.4); border-radius: 18px; color: #d5deff;
  background: rgba(140,168,255,.14); font-size: 27px; box-shadow: 0 0 32px rgba(99,130,255,.18);
}
.auth-gate-card h2 { max-width: 420px; margin-bottom: 12px; font-size: 1.6rem; }
.auth-gate-steps { display: grid; gap: 9px; margin: 22px 0; }
.auth-gate-steps div { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; color: var(--soft); background: rgba(255,255,255,.045); font-size: 12px; }
.auth-gate-steps b { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: #dce4ff; background: rgba(140,168,255,.2); font-size: 11px; }
.auth-gate-action { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 16px; border-radius: 11px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); font-weight: 800; text-decoration: none; box-shadow: 0 10px 24px rgba(97,130,255,.22); }
.auth-gate-action:hover { color: #fff; transform: translateY(-1px); }
.telegram-login-widget { display: grid; place-items: center; min-height: 44px; }
.telegram-login-widget.is-loading { opacity: .55; pointer-events: none; }
.auth-gate-note { margin: 14px 0 0; color: #8493ac; font-size: 11px; text-align: center; }
.topup-amount-card { width: min(460px, 100%); text-align: left; background: radial-gradient(520px 240px at 50% -18%, rgba(255,193,72,.2), transparent 72%), linear-gradient(155deg, #151f30, #101723 72%); box-shadow: 0 32px 100px rgba(0,0,0,.56), inset 0 1px rgba(255,255,255,.06); }
.topup-amount-modal { z-index: 40; }
.topup-amount-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; border: 1px solid rgba(255,193,72,.4); border-radius: 18px; background: linear-gradient(145deg, rgba(255,204,93,.2), rgba(255,163,53,.08)); box-shadow: 0 10px 28px rgba(255,185,66,.09), inset 0 1px rgba(255,255,255,.1); font-size: 25px; }
.topup-amount-card h2 { margin-bottom: 9px; font-size: clamp(1.25rem, 5vw, 1.55rem); letter-spacing: -.035em; }
.topup-amount-card .help-copy { max-width: 38ch; line-height: 1.55; }
.topup-amount-label { display: block; margin: 22px 0 8px; color: #d5dfef; font-size: 12px; font-weight: 750; }
.topup-amount-input { display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid rgba(164,190,230,.24); border-radius: 14px; background: linear-gradient(145deg, rgba(7,13,23,.9), rgba(11,18,30,.88)); box-shadow: inset 0 2px 7px rgba(0,0,0,.2); }
.topup-amount-input:focus-within { border-color: rgba(128,161,255,.78); box-shadow: 0 0 0 4px rgba(99,130,255,.12), inset 0 2px 7px rgba(0,0,0,.2); }
.topup-amount-input input { width: 100%; padding: 14px 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 22px; font-weight: 850; font-variant-numeric: tabular-nums; }
.topup-amount-input span { color: #ffd36d; font-size: 18px; }
.topup-conversion { display: grid; grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr); align-items: center; gap: 9px; margin-top: 12px; padding: 13px; border: 1px solid rgba(154,181,220,.13); border-radius: 14px; background: linear-gradient(120deg, rgba(117,146,196,.075), rgba(117,146,196,.025)); }
.topup-conversion-side { display: grid; min-width: 0; gap: 4px; }
.topup-conversion-side > span { color: #91a1b9; font-size: 10px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.topup-conversion-side strong { overflow: hidden; color: #f1f5ff; font-size: clamp(16px, 4.5vw, 20px); font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.topup-conversion-side small { min-height: 14px; color: #aab7ca; font-size: 10px; line-height: 1.4; }
.topup-conversion-credit { padding-left: 12px; border-left: 1px solid rgba(154,181,220,.15); }
.topup-conversion-credit strong { color: #a9f1c8; }
.topup-conversion-arrow { color: #8ea6d6; font-size: 19px; text-align: center; }
.topup-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 11px 0 17px; }
.topup-presets button { min-height: 39px; padding: 9px 6px; border: 1px solid rgba(154,181,220,.14); border-radius: 10px; color: #b9c7dc; background: rgba(126,154,196,.07); font-size: 12px; font-weight: 700; }
.topup-presets button:hover, .topup-presets button.active { border-color: rgba(132,164,255,.48); color: #eef3ff; background: rgba(105,137,226,.17); }
.topup-confirm-button { width: 100%; min-height: 47px; border-radius: 13px; font-size: 14px; font-weight: 800; }
.topup-amount-error { margin: 10px 0 0; color: #ff9b9b; font-size: 12px; }
.gift-topup-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; color: var(--muted); font-size: 12px; }
.gift-topup-divider::before, .gift-topup-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.gift-topup-button { display: flex; align-items: center; gap: 11px; width: 100%; border: 1px solid rgba(255,196,92,.24); border-radius: 12px; padding: 11px 12px; color: var(--text); background: rgba(255,196,92,.07); font: inherit; text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.gift-topup-button:hover { border-color: rgba(255,196,92,.56); background: rgba(255,196,92,.12); }
.gift-button-icon { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: rgba(255,196,92,.13); font-size: 17px; }
.gift-topup-button strong, .gift-topup-button small { display: block; }
.gift-topup-button strong { font-size: 13px; }
.gift-topup-button small { margin-top: 3px; color: rgba(255,243,209,.7); font-size: 11px; font-weight: 500; }
.gift-button-arrow { margin-left: auto; color: #ffd36d; font-size: 18px; line-height: 1; }
.gift-topup-help { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; text-align: center; }
@media (max-width: 860px) {
  .browser-mode .app-shell { padding: 24px 16px 42px; }
  .browser-mode .topbar { padding: 18px; }
  .browser-mode .grid { display: block; }
  .browser-mode .side-panel { position: static; margin-top: 18px; }
}
@media (max-width: 560px) {
  .auth-gate-card { padding: 28px 20px; }
}
.country-actions { display: grid; min-width: 108px; gap: 6px; }
.purchase-lock-notice { grid-column: 1 / -1; padding: 11px 13px; border: 1px solid rgba(255,193,72,.18); border-radius: 11px; color: #e8c984; background: rgba(255,193,72,.06); font-size: 11px; line-height: 1.45; }
.support-limit-note { margin: 11px 0 8px; color: #94a6c0; font-size: 11px; line-height: 1.4; }
.order-kicker { color: #9fb5ee; }
.confirm-order-button { width: 100%; padding: 13px; border: 1px solid rgba(85,217,155,.38); border-radius: 11px; color: #e9fff2; background: linear-gradient(135deg, #248c66, #17694f); font-weight: 800; }
.review-already-submitted { margin: 0; padding: 11px; border: 1px solid rgba(85,217,155,.18); border-radius: 10px; color: #b6ebce; background: rgba(85,217,155,.07); font-size: 12px; text-align: center; }
.review-modal-card { width: min(460px, 100%); }
.review-modal-card h2 { margin-bottom: 9px; }
.review-rating-label, .review-comment-label { display: block; margin: 22px 0 8px; color: var(--soft); font-size: 12px; font-weight: 750; }
.review-rating-control { display: flex; align-items: center; justify-content: center; gap: 12px; }
.review-stars { position: relative; color: #3a4558; font-size: 36px; letter-spacing: 3px; line-height: 1; }
.review-stars::before { content: '★★★★★'; }
.review-stars span { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #ffd36d; white-space: nowrap; }
.review-rating-control strong { min-width: 42px; color: #ffd36d; font-size: 18px; }
.review-rating-input { width: 100%; margin: 17px 0 0; accent-color: #ffd36d; cursor: pointer; }
.review-rating-range { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.review-comment-label { display: flex; justify-content: space-between; gap: 8px; }
.review-comment-label span { color: var(--muted); font-weight: 500; }
.review-comment { width: 100%; min-height: 92px; padding: 11px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--text); background: #0d131e; font: inherit; }
.review-comment:focus { border-color: var(--accent); }
.review-error { margin: 12px 0 0; color: #ff9b9b; font-size: 12px; }
.review-submit-button { width: 100%; margin-top: 14px; padding: 12px; }
@media (max-width: 560px) {
  .country-actions { grid-column: 2; grid-template-columns: 1fr 1fr; min-width: 0; }
  .review-modal-card { padding: 26px 20px; }
}

/* Motion foundations keep the interface lively without slowing down its workflow. */
body::before {
  position: fixed;
  inset: -24%;
  z-index: 0;
  background:
    radial-gradient(ellipse at 18% 26%, rgba(69, 104, 208, .16), transparent 34%),
    radial-gradient(ellipse at 81% 38%, rgba(42, 120, 190, .11), transparent 32%),
    radial-gradient(ellipse at 54% 88%, rgba(62, 77, 160, .1), transparent 36%);
  content: "";
  pointer-events: none;
  animation: ambient-drift 28s ease-in-out infinite alternate;
}

.app-shell {
  position: relative;
  z-index: 1;
}

.topbar > div:first-child {
  animation: rise-in .65s cubic-bezier(.2, .75, .25, 1) both;
}

.topbar h1 {
  background: linear-gradient(105deg, #f2f5fa 8%, #b7c8ff 48%, #f2f5fa 88%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--text);
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: title-glide 9s ease-in-out infinite;
}

.topbar-actions > * {
  animation: rise-in .55s cubic-bezier(.2, .75, .25, 1) both;
}

.topbar-actions > :nth-child(1) { animation-delay: .06s; }
.topbar-actions > :nth-child(2) { animation-delay: .11s; }
.topbar-actions > :nth-child(3) { animation-delay: .16s; }
.topbar-actions > :nth-child(4) { animation-delay: .21s; }

.status-dot {
  color: var(--green);
  animation: status-glow 2.8s ease-in-out infinite;
}

.role-strip {
  transition: border-color .25s ease, background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.role-strip:hover {
  transform: translateY(-2px);
  border-color: rgba(140, 168, 255, .44);
  box-shadow: 0 9px 24px rgba(70, 100, 180, .12);
}

.role-icon {
  animation: icon-float 4s ease-in-out infinite;
}

.wallet-box {
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.wallet-box:hover {
  transform: translateY(-2px);
  border-color: rgba(140, 168, 255, .48);
  box-shadow: 0 10px 26px rgba(57, 88, 169, .14);
}

.grid > .panel {
  animation: rise-in .7s cubic-bezier(.2, .75, .25, 1) both;
}

.grid > .panel:nth-child(2) {
  animation-delay: .12s;
}

.country-item {
  transform-origin: 50% 100%;
  transition: transform .22s ease, border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.country-item:first-child {
  animation: country-in .42s cubic-bezier(.2, .75, .25, 1) both;
}

.country-item:nth-child(2) { animation: country-in .42s .035s cubic-bezier(.2, .75, .25, 1) both; }
.country-item:nth-child(3) { animation: country-in .42s .07s cubic-bezier(.2, .75, .25, 1) both; }
.country-item:nth-child(4) { animation: country-in .42s .105s cubic-bezier(.2, .75, .25, 1) both; }
.country-item:nth-child(5) { animation: country-in .42s .14s cubic-bezier(.2, .75, .25, 1) both; }
.country-item:nth-child(6) { animation: country-in .42s .175s cubic-bezier(.2, .75, .25, 1) both; }
.country-item:nth-child(7) { animation: country-in .42s .21s cubic-bezier(.2, .75, .25, 1) both; }
.country-item:nth-child(8) { animation: country-in .42s .245s cubic-bezier(.2, .75, .25, 1) both; }

.country-item:hover {
  transform: translateY(-2px);
  border-color: rgba(140, 168, 255, .42);
  box-shadow: 0 9px 22px rgba(0, 0, 0, .16);
}

.country-icon {
  transition: transform .25s cubic-bezier(.2, .75, .25, 1), border-color .25s ease, background-color .25s ease;
}

.country-item:hover .country-icon {
  transform: scale(1.06) rotate(-3deg);
  border-color: rgba(140, 168, 255, .3);
  background-color: #263550;
}

.availability span {
  animation: availability-pulse 2.2s ease-in-out infinite;
}

.country-item button,
.confirm-order-button,
.auth-gate-action,
.topup-confirm-button {
  transition: transform .2s cubic-bezier(.2, .75, .25, 1), box-shadow .2s ease, filter .2s ease;
}

.country-item button:hover:not(:disabled),
.confirm-order-button:hover:not(:disabled),
.auth-gate-action:hover,
.topup-confirm-button:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 7px 20px rgba(84, 116, 230, .2);
}

button:active:not(:disabled) {
  transform: translateY(0) scale(.97);
}

.order-card:not(.empty) {
  animation: order-arrive .48s cubic-bezier(.2, .75, .25, 1) both;
}

.status-pill:not(.success):not(.expired) i {
  animation: status-glow 1.7s ease-in-out infinite;
}

.sms-progress-step.active b {
  animation: step-glow 2.2s ease-in-out infinite;
}

.sms-progress-step.active:last-of-type b {
  animation-delay: .35s;
}

.sms-block.received {
  animation: code-arrive .55s cubic-bezier(.2, .8, .25, 1) both;
}

.sms-code {
  transition: color .25s ease, letter-spacing .25s ease;
}

.sms-block.received .sms-code {
  animation: code-ready .55s cubic-bezier(.2, .8, .25, 1) both;
}

.confirm-order-button {
  animation: confirm-ready .5s ease-out both;
}

.modal:not(.hidden) {
  animation: modal-fade-in .2s ease-out both;
}

.modal:not(.hidden) .modal-card {
  animation: modal-card-in .32s cubic-bezier(.2, .8, .25, 1) both;
}

.review-stars span {
  transition: width .18s ease-out;
}

.review-rating-control strong {
  transition: color .18s ease, transform .18s ease;
}

.review-rating-input:active ~ .review-rating-range {
  color: var(--soft);
}

.support-box,
.admin-panel:not(.hidden) {
  animation: rise-in .55s cubic-bezier(.2, .75, .25, 1) both;
}

.support-footer {
  position: relative;
  z-index: 1;
}

@keyframes ambient-drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(1.5%, 1%, 0) scale(1.04); }
}

@keyframes title-glide {
  0%, 72%, 100% { background-position: 100% 50%; }
  38% { background-position: 0 50%; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes country-in {
  from { opacity: 0; transform: translateY(9px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes order-arrive {
  from { opacity: 0; transform: translateY(10px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes code-arrive {
  0% { border-color: rgba(85, 217, 155, .17); box-shadow: 0 0 0 rgba(85, 217, 155, 0); }
  45% { border-color: rgba(85, 217, 155, .55); box-shadow: 0 0 24px rgba(85, 217, 155, .12); }
  100% { border-color: rgba(85, 217, 155, .17); box-shadow: 0 0 0 rgba(85, 217, 155, 0); }
}

@keyframes code-ready {
  from { opacity: .4; transform: translateY(5px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes confirm-ready {
  from { opacity: .5; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-card-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes status-glow {
  0%, 100% { opacity: .72; box-shadow: 0 0 5px currentColor; }
  50% { opacity: 1; box-shadow: 0 0 13px currentColor; }
}

@keyframes availability-pulse {
  0%, 100% { opacity: .65; box-shadow: 0 0 0 0 rgba(85, 217, 155, .2); }
  50% { opacity: 1; box-shadow: 0 0 0 4px rgba(85, 217, 155, 0); }
}

@keyframes step-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(140, 168, 255, 0); }
  50% { box-shadow: 0 0 12px rgba(140, 168, 255, .25); }
}

@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Brand-led loading and layered motion system. */
.brand-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(31, 63, 130, .24), transparent 38%),
    radial-gradient(ellipse at 50% 100%, rgba(15, 32, 71, .38), transparent 55%),
    #070a12;
  opacity: 1;
  transition: opacity .58s ease, visibility .58s ease, filter .58s ease;
  isolation: isolate;
}

.safe-mode-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 8, 15, .88);
  backdrop-filter: blur(16px);
  animation: safe-mode-in .28s ease-out both;
}

.safe-mode-card {
  width: min(430px, 100%);
  padding: clamp(25px, 7vw, 38px);
  border: 1px solid rgba(137, 169, 234, .22);
  border-radius: 24px;
  background: radial-gradient(420px 200px at 50% -20%, rgba(94, 135, 230, .2), transparent 72%), #111a29;
  box-shadow: 0 35px 110px rgba(0, 0, 0, .55), inset 0 1px rgba(255, 255, 255, .06);
  text-align: center;
}

.safe-mode-spinner {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  place-items: center;
  border: 1px solid rgba(139, 174, 255, .2);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(91, 137, 255, .12);
}

.safe-mode-spinner::before,
.safe-mode-spinner span {
  position: absolute;
  content: "";
  border: 2px solid transparent;
  border-radius: 50%;
}

.safe-mode-spinner::before {
  inset: 5px;
  border-top-color: #73c7ff;
  border-right-color: rgba(115, 199, 255, .24);
  animation: safe-mode-spin 1.2s linear infinite;
}

.safe-mode-spinner span {
  inset: 14px;
  border-bottom-color: #91a5ff;
  border-left-color: rgba(145, 165, 255, .26);
  animation: safe-mode-spin .9s linear infinite reverse;
}

.safe-mode-card .section-kicker { margin-bottom: 10px; }
.safe-mode-card h2 { margin-bottom: 10px; font-size: clamp(1.2rem, 5vw, 1.55rem); }
.safe-mode-card > p:not(.section-kicker) { color: #aab8cf; font-size: 13px; line-height: 1.6; }
.safe-mode-wait { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 22px; color: #bac9e1; }
.safe-mode-wait strong { color: #9fcaff; font-size: 24px; font-variant-numeric: tabular-nums; }
.safe-mode-wait span { color: #899bb7; font-size: 11px; }

.brand-loader::before,
.brand-loader::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.brand-loader::before {
  background-image:
    radial-gradient(1px 1px at 15% 22%, rgba(194, 215, 255, .72) 50%, transparent 100%),
    radial-gradient(1px 1px at 82% 18%, rgba(130, 180, 255, .62) 50%, transparent 100%),
    radial-gradient(1px 1px at 76% 72%, rgba(190, 210, 255, .58) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 22% 78%, rgba(110, 168, 255, .55) 50%, transparent 100%),
    radial-gradient(1px 1px at 62% 28%, rgba(191, 210, 255, .48) 50%, transparent 100%),
    radial-gradient(1px 1px at 38% 84%, rgba(151, 185, 255, .45) 50%, transparent 100%);
  opacity: .65;
  animation: loader-stars 5s ease-in-out infinite alternate;
}

.brand-loader::after {
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(112, 157, 255, .5), transparent);
  opacity: .55;
}

.brand-loader__glow {
  position: absolute;
  width: min(70vw, 680px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.brand-loader__glow--one {
  top: 8%;
  left: -19%;
  background: rgba(38, 94, 222, .12);
  animation: loader-glow-drift 10s ease-in-out infinite alternate;
}

.brand-loader__glow--two {
  right: -20%;
  bottom: -18%;
  background: rgba(37, 153, 232, .1);
  animation: loader-glow-drift 12s ease-in-out -4s infinite alternate-reverse;
}

.brand-loader__content {
  display: grid;
  justify-items: center;
  width: min(90vw, 420px);
  text-align: center;
  animation: loader-content-in .9s cubic-bezier(.16, 1, .3, 1) both;
}

.brand-loader__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 168px;
  height: 168px;
  margin-bottom: 23px;
  isolation: isolate;
}

.brand-loader__mark::before {
  position: absolute;
  inset: 23px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(67, 118, 255, .22);
  content: "";
  filter: blur(26px);
  animation: loader-core-pulse 2.8s ease-in-out infinite;
}

.brand-loader__orbit {
  position: absolute;
  display: block;
  border: 1px solid rgba(141, 177, 255, .19);
  border-radius: 50%;
  animation: orbit-spin 10s linear infinite;
}

.brand-loader__orbit--outer {
  inset: 3px;
  border-right-color: rgba(94, 204, 255, .9);
  border-bottom-color: rgba(99, 130, 255, .05);
  box-shadow: 0 0 22px rgba(74, 142, 255, .08), inset 0 0 20px rgba(74, 142, 255, .04);
}

.brand-loader__orbit--inner {
  inset: 14px;
  border-color: rgba(123, 158, 242, .09);
  border-left-color: rgba(116, 222, 255, .62);
  animation-duration: 7s;
  animation-direction: reverse;
}

.brand-loader__logo {
  width: 88px;
  height: 88px;
  overflow: visible;
  filter: drop-shadow(0 9px 25px rgba(50, 116, 255, .35));
  animation: logo-float 3.2s ease-in-out infinite;
}

.brand-loader__plane {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: plane-glint 2.7s ease-in-out infinite;
}

.brand-loader__spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b8eaff;
  box-shadow: 0 0 12px 3px rgba(91, 194, 255, .45);
  animation: spark-twinkle 2.4s ease-in-out infinite;
}

.brand-loader__spark--one { top: 19px; right: 30px; }
.brand-loader__spark--two { bottom: 32px; left: 17px; width: 4px; height: 4px; animation-delay: -.8s; }
.brand-loader__spark--three { right: 19px; bottom: 44px; width: 3px; height: 3px; animation-delay: -1.5s; }

.brand-loader__wordmark {
  display: flex;
  align-items: baseline;
  gap: 9px;
  overflow: hidden;
  color: #f3f7ff;
  font-size: clamp(34px, 7vw, 48px);
  font-weight: 850;
  letter-spacing: -.065em;
  line-height: 1;
  animation: wordmark-reveal .72s .2s cubic-bezier(.16, 1, .3, 1) both;
}

.brand-loader__wordmark strong {
  color: #75baff;
  font-weight: 850;
  text-shadow: 0 0 28px rgba(72, 153, 255, .3);
}

.brand-loader__tagline {
  margin: 11px 0 31px;
  color: #8291ad;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  animation: loader-copy-in .6s .45s ease both;
}

.brand-loader__status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #aab8d1;
  font-size: 12px;
  letter-spacing: .015em;
  animation: loader-copy-in .6s .58s ease both;
}

.brand-loader__status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #66dca9;
  box-shadow: 0 0 12px rgba(102, 220, 169, .65);
  animation: status-glow 1.8s ease-in-out infinite;
}

.brand-loader__progress {
  position: relative;
  width: min(220px, 62vw);
  height: 3px;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(153, 176, 224, .12);
  animation: loader-copy-in .6s .65s ease both;
}

.brand-loader__progress span {
  position: absolute;
  top: 0;
  left: -42%;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #76d7ff 45%, #8194ff 75%, transparent);
  box-shadow: 0 0 14px rgba(104, 179, 255, .75);
  animation: loader-progress 1.45s cubic-bezier(.45, 0, .55, 1) infinite;
}

.brand-loader__version {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  color: rgba(128, 147, 182, .42);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  animation: loader-copy-in .7s .8s ease both;
}

.brand-loader.is-leaving {
  visibility: hidden;
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
}

body.app-loading .app-shell {
  transform: translateY(12px) scale(.99);
  filter: blur(5px);
  opacity: 0;
}

body.app-ready .app-shell {
  transform: translateY(0) scale(1);
  filter: blur(0);
  opacity: 1;
  transition: transform .72s cubic-bezier(.16, 1, .3, 1), filter .72s ease, opacity .72s ease;
}



.panel {
  position: relative;
  transition: border-color .32s ease, box-shadow .32s ease, background-color .32s ease;
}

.side-panel {
  position: sticky;
  top: 16px;
}

.panel::after {
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(111, 154, 255, .09), transparent 35%, transparent 70%, rgba(87, 202, 255, .04)) border-box;
  content: "";
  opacity: .55;
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.panel-header {
  position: relative;
}

.panel-header::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(115, 150, 225, .18), transparent 82%);
  content: "";
  transform: scaleX(.72);
  transform-origin: left;
  animation: divider-reveal .8s .3s ease-out both;
}

.badge {
  transition: border-color .24s ease, color .24s ease, background-color .24s ease, transform .24s ease;
}

.panel-header:hover .badge {
  transform: translateY(-1px);
  border-color: rgba(140, 168, 255, .42);
}

.toolbar input,
.toolbar select,
.review-comment,
.admin-users-search input,
.support-message,
.support-reply-input,
.admin-field select {
  transition: border-color .22s ease, box-shadow .22s ease, background-color .22s ease;
}

.toolbar input:focus,
.toolbar select:focus,
.review-comment:focus,
.admin-users-search input:focus,
.support-message:focus,
.support-reply-input:focus,
.admin-field select:focus {
  border-color: rgba(117, 169, 255, .72);
  background-color: #101827;
  box-shadow: 0 0 0 3px rgba(83, 133, 255, .12), 0 8px 22px rgba(0, 0, 0, .12);
}

.country-item button,
.confirm-order-button,
.auth-gate-action,
.topup-confirm-button,
.support-send,
.gift-topup-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.country-item button::after,
.confirm-order-button::after,
.auth-gate-action::after,
.topup-confirm-button::after,
.support-send::after,
.gift-topup-button::after {
  position: absolute;
  inset: -50% auto -50% -45%;
  z-index: 0;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  content: "";
  opacity: 0;
  transform: skewX(-18deg);
  transition: opacity .2s ease;
}

.country-item button b {
  position: relative;
  z-index: 1;
}

.country-item button:hover::after,
.confirm-order-button:hover::after,
.auth-gate-action:hover::after,
.topup-confirm-button:hover::after,
.support-send:hover::after,
.gift-topup-button:hover::after {
  opacity: 1;
  animation: button-sheen .75s ease-out both;
}

.price-currency-switch button,
.browser-currency-switch button,
.language-button,
.topup-presets button {
  transition: color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.price-currency-switch button:hover:not(.active),
.browser-currency-switch button:hover:not(.active),
.language-button:hover:not(.active),
.topup-presets button:hover {
  transform: translateY(-1px);
  color: #eef2ff;
}

.level-progress span,
.referral-progress span {
  position: relative;
  overflow: hidden;
  transition: width .65s cubic-bezier(.16, 1, .3, 1);
}

.level-progress span::after,
.referral-progress span::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .34) 50%, transparent 75%);
  content: "";
  transform: translateX(-110%);
  animation: progress-sheen 3.2s ease-in-out infinite;
}

.country-list {
  scrollbar-color: rgba(124, 151, 204, .32) transparent;
  scrollbar-width: thin;
}

.country-item {
  background-image:
    radial-gradient(250px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(111, 153, 255, .11), transparent 72%),
    linear-gradient(120deg, rgba(23, 31, 45, .8), rgba(17, 23, 34, .8));
}

.country-item:hover {
  background-image:
    radial-gradient(280px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(111, 153, 255, .15), transparent 72%),
    linear-gradient(120deg, #172131, #172131);
}

.country-list::-webkit-scrollbar {
  width: 5px;
}

.country-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(124, 151, 204, .28);
}

.sms-progress-line {
  position: relative;
  overflow: hidden;
}

.sms-progress-step.active ~ .sms-progress-line::after {
  position: absolute;
  inset: 0 auto 0 -55%;
  width: 55%;
  background: linear-gradient(90deg, transparent, rgba(130, 163, 255, .92), transparent);
  content: "";
  animation: sms-line-flow 2.3s ease-in-out infinite;
}

.sms-progress-step.active ~ .sms-progress-line:nth-of-type(4)::after {
  animation-delay: .65s;
}

.sms-block.received {
  position: relative;
  overflow: hidden;
}

.sms-block.received::after {
  position: absolute;
  inset: -30% auto -30% -40%;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(142, 255, 198, .09), transparent);
  content: "";
  pointer-events: none;
  transform: skewX(-16deg);
  animation: success-sheen 1.1s .2s ease-out both;
}

.sms-code {
  text-shadow: 0 0 0 rgba(85, 217, 155, 0);
}

.sms-block.received .sms-code {
  text-shadow: 0 0 24px rgba(85, 217, 155, .28);
}

.detail-cell {
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.detail-cell:hover {
  transform: translateY(-2px);
  background: rgba(140, 168, 255, .075);
  box-shadow: 0 7px 18px rgba(0, 0, 0, .12);
}

.topbar-actions .instructions-button,
.topbar-actions .partner-button {
  position: relative;
}

.topbar-actions .instructions-button::before,
.topbar-actions .partner-button::before {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(140, 168, 255, .16);
  border-radius: inherit;
  content: "";
  opacity: 0;
  transform: scale(.94);
  transition: opacity .22s ease, transform .22s ease;
}

.topbar-actions .instructions-button:hover::before,
.topbar-actions .partner-button:hover::before {
  opacity: 1;
  transform: scale(1);
}

.toast {
  transition: opacity .28s ease, transform .28s cubic-bezier(.2, .75, .25, 1), filter .28s ease;
}

.toast.is-leaving {
  opacity: 0;
  filter: blur(4px);
  transform: translateX(14px) scale(.98);
}

.review-stars span {
  text-shadow: 0 0 14px rgba(255, 211, 109, .35);
}

.review-rating-input {
  height: 20px;
  accent-color: #ffd36d;
}

.balance-updated {
  animation: balance-tick .38s cubic-bezier(.2, .75, .25, 1);
}

.catalog-loading span {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(119, 172, 255, .18);
  border-top-color: #70d7ff;
  border-right-color: rgba(114, 142, 255, .76);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(82, 143, 255, .2), rgba(52, 75, 161, .09));
  box-shadow: 0 0 26px rgba(69, 122, 255, .14), inset 0 1px rgba(255, 255, 255, .1);
  animation: catalog-brand-spin 1.9s cubic-bezier(.45, 0, .55, 1) infinite;
}

.catalog-loading span::after {
  color: #d7e8ff;
  content: "✦";
  font-size: 19px;
  text-shadow: 0 0 14px rgba(127, 188, 255, .8);
  animation: catalog-brand-core 1.9s ease-in-out infinite;
}

.catalog-loading p {
  animation: loading-copy 2.2s ease-in-out infinite;
}

.modal {
  backdrop-filter: blur(14px) saturate(125%);
}

.modal-card {
  transform-origin: 50% 65%;
}

.modal:not(.hidden) .modal-card {
  box-shadow: 0 35px 110px rgba(0, 0, 0, .48), 0 0 45px rgba(67, 112, 221, .08), inset 0 1px rgba(255, 255, 255, .035);
}

.auth-gate-icon,
.topup-amount-icon,
.admin-pin-mark {
  animation: emblem-breathe 3.3s ease-in-out infinite;
}

.roles-list .role-guide-item,
.admin-users-list .admin-user-row,
.admin-support-list .admin-support-ticket {
  animation: country-in .35s cubic-bezier(.2, .75, .25, 1) both;
}

.roles-list .role-guide-item:nth-child(2),
.admin-users-list .admin-user-row:nth-child(2),
.admin-support-list .admin-support-ticket:nth-child(2) { animation-delay: .04s; }
.roles-list .role-guide-item:nth-child(3),
.admin-users-list .admin-user-row:nth-child(3),
.admin-support-list .admin-support-ticket:nth-child(3) { animation-delay: .08s; }
.roles-list .role-guide-item:nth-child(4),
.admin-users-list .admin-user-row:nth-child(4),
.admin-support-list .admin-support-ticket:nth-child(4) { animation-delay: .12s; }

.browser-mode .brand-loader__version {
  letter-spacing: .16em;
}

@keyframes loader-content-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); filter: blur(7px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes safe-mode-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes safe-mode-spin {
  to { transform: rotate(360deg); }
}

@keyframes loader-copy-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wordmark-reveal {
  from { opacity: 0; clip-path: inset(0 50% 0 50%); transform: translateY(6px); }
  to { opacity: 1; clip-path: inset(0 0 0 0); transform: translateY(0); }
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-5px) rotate(-1deg); }
}

@keyframes plane-glint {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); }
  50% { filter: drop-shadow(0 0 7px rgba(255, 255, 255, .55)); }
}

@keyframes loader-core-pulse {
  0%, 100% { opacity: .44; transform: scale(.88); }
  50% { opacity: .88; transform: scale(1.12); }
}

@keyframes spark-twinkle {
  0%, 100% { opacity: .25; transform: scale(.65); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes loader-progress {
  0% { left: -42%; }
  100% { left: 110%; }
}

@keyframes loader-stars {
  from { opacity: .32; transform: translateY(0); }
  to { opacity: .78; transform: translateY(-7px); }
}

@keyframes loader-glow-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(.92); }
  to { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

@keyframes divider-reveal {
  from { opacity: 0; transform: scaleX(.25); }
  to { opacity: 1; transform: scaleX(.72); }
}

@keyframes button-sheen {
  from { left: -45%; }
  to { left: 130%; }
}

@keyframes progress-sheen {
  0%, 55% { transform: translateX(-110%); }
  100% { transform: translateX(250%); }
}

@keyframes sms-line-flow {
  0%, 20% { left: -55%; }
  80%, 100% { left: 120%; }
}

@keyframes success-sheen {
  from { left: -40%; opacity: 0; }
  20% { opacity: 1; }
  to { left: 130%; opacity: 0; }
}

@keyframes catalog-brand-spin {
  0% { transform: rotate(0) scale(.96); }
  50% { transform: rotate(180deg) scale(1.04); }
  100% { transform: rotate(360deg) scale(.96); }
}

@keyframes catalog-brand-core {
  0%, 100% { opacity: .65; transform: scale(.85) rotate(0); }
  50% { opacity: 1; transform: scale(1.12) rotate(45deg); }
}

@keyframes loading-copy {
  0%, 100% { opacity: .65; }
  50% { opacity: 1; }
}

@keyframes emblem-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.035); }
}

@keyframes balance-tick {
  0% { opacity: .65; transform: translateY(3px) scale(.98); }
  65% { opacity: 1; transform: translateY(-1px) scale(1.015); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 560px) {
  .brand-loader__mark {
    width: 144px;
    height: 144px;
  }

  .brand-loader__logo {
    width: 78px;
    height: 78px;
  }

  .brand-loader__orbit--outer { inset: 5px; }
  .brand-loader__orbit--inner { inset: 14px; }
  .brand-loader__tagline { margin-bottom: 26px; }
  .brand-loader__version { font-size: 8px; }
}

@media (max-width: 860px) {
  .side-panel {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-loader__content,
  .brand-loader__wordmark,
  .brand-loader__tagline,
  .brand-loader__status,
  .brand-loader__progress,
  .brand-loader__version,
  .brand-loader__logo,
  .brand-loader__plane,
  .brand-loader__orbit,
  .brand-loader__spark,
  .brand-loader__glow,
  .brand-loader::before,
  .brand-loader__progress span {
    animation: none !important;
  }

  .brand-loader__progress span {
    left: 0;
    width: 100%;
    opacity: .5;
  }

  .safe-mode-overlay,
  .safe-mode-spinner::before,
  .safe-mode-spinner span {
    animation: none !important;
  }
}

/* Product surface refresh: clear hierarchy, calmer contrast, and a stronger brand. */
:root {
  --bg: #080d18;
  --surface: #101827;
  --surface-2: #141f30;
  --surface-3: #1b2940;
  --line: rgba(169, 193, 229, .12);
  --line-strong: rgba(169, 193, 229, .22);
  --text: #f4f7fc;
  --muted: #91a0b7;
  --soft: #c1ccdc;
  --accent: #79b9ff;
  --accent-strong: #587bff;
  --green: #61d9a4;
  --amber: #ffd27a;
  --red: #ff8298;
  --shadow: 0 24px 64px rgba(1, 7, 17, .28);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  background:
    radial-gradient(ellipse 900px 580px at 8% -18%, rgba(54, 101, 190, .2), transparent 68%),
    radial-gradient(ellipse 700px 580px at 100% 8%, rgba(20, 116, 155, .1), transparent 67%),
    linear-gradient(180deg, #0a101d, var(--bg) 58%);
}

body::before {
  background-image:
    linear-gradient(rgba(141, 171, 220, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 171, 220, .018) 1px, transparent 1px),
    radial-gradient(ellipse at 18% 26%, rgba(69, 104, 208, .1), transparent 34%),
    radial-gradient(ellipse at 81% 38%, rgba(42, 120, 190, .075), transparent 32%);
  background-size: 56px 56px, 56px 56px, auto, auto;
}

.app-shell {
  width: min(1400px, 100%);
  padding: 25px 34px 64px;
}

.topbar {
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.brand-intro {
  flex: 0 0 auto;
}

.brand-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-symbol {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(171, 203, 255, .32);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(111, 177, 255, .19), rgba(82, 110, 255, .1));
  box-shadow: 0 9px 28px rgba(55, 104, 206, .2), inset 0 1px rgba(255, 255, 255, .16);
}

.brand-symbol svg {
  display: block;
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 4px 8px rgba(37, 87, 188, .25));
}

.brand-heading-copy .eyebrow {
  margin-bottom: 5px;
  color: #9bacc7;
  font-size: 9px;
  letter-spacing: .13em;
}

.brand-heading h1 {
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  letter-spacing: -.06em;
}

.brand-intro > .subtitle {
  margin: 9px 0 0 65px;
  color: #93a3bb;
  font-size: 12px;
}

.topbar-actions {
  flex: 1;
  max-width: 920px;
  gap: 9px;
}

.instructions-button,
.partner-button {
  min-height: 42px;
  padding: 10px 13px;
  border-color: rgba(169, 193, 229, .14);
  border-radius: 12px;
  background: rgba(15, 24, 39, .76);
  font-size: 12px;
  white-space: nowrap;
}

.instructions-button:hover,
.partner-button:hover {
  border-color: rgba(121, 185, 255, .35);
  background: #17243a;
}

.partner-button {
  border-color: rgba(97, 217, 164, .2);
  color: #a7eccb;
  background: rgba(40, 122, 91, .12);
}

.role-strip {
  min-width: 190px;
  padding: 9px 11px;
  border-color: rgba(121, 185, 255, .23);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(39, 67, 118, .46), rgba(16, 26, 43, .86));
}

.role-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.wallet-box {
  min-width: 166px;
  padding: 10px 12px;
  border-color: rgba(121, 185, 255, .24);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(37, 67, 116, .36), rgba(14, 24, 41, .94));
}

.wallet-box strong {
  margin-bottom: 7px;
  font-size: 1.4rem;
}

.topup-button {
  border: 1px solid rgba(129, 180, 255, .25);
  border-radius: 9px;
  color: #e5efff;
  background: linear-gradient(135deg, rgba(75, 123, 219, .34), rgba(65, 87, 175, .24));
  font-weight: 750;
}

.topup-button:hover:not(:disabled) {
  border-color: rgba(145, 194, 255, .48);
  background: linear-gradient(135deg, rgba(87, 139, 239, .48), rgba(77, 101, 194, .36));
}

.welcome-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr);
  min-height: 300px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid rgba(137, 175, 239, .19);
  border-radius: 27px;
  background:
    radial-gradient(ellipse 480px 290px at 87% 45%, rgba(53, 115, 210, .2), transparent 72%),
    linear-gradient(116deg, rgba(18, 31, 52, .98), rgba(12, 21, 36, .96) 55%, rgba(12, 26, 45, .96));
  box-shadow: 0 22px 66px rgba(0, 7, 19, .2), inset 0 1px rgba(255, 255, 255, .045);
  isolation: isolate;
}

.welcome-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 42%, rgba(117, 168, 255, .055) 42.1%, transparent 42.4%),
    radial-gradient(ellipse at 90% 0, rgba(90, 151, 255, .1), transparent 42%);
  content: "";
  pointer-events: none;
}

.welcome-copy {
  align-self: center;
  padding: 37px 42px;
}

.welcome-overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #adc0dd;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.welcome-overline-dot,
.welcome-phone-status b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(97, 217, 164, .65);
}

.welcome-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 780;
  letter-spacing: -.065em;
  line-height: 1.05;
}

.welcome-copy h2 span {
  color: #91baff;
}

.welcome-copy > p {
  max-width: 455px;
  margin: 13px 0 20px;
  color: #a7b5ca;
  font-size: 14px;
  line-height: 1.65;
}

.welcome-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 17px;
  margin-top: 21px;
  color: #9fadc1;
  font-size: 10px;
}

.welcome-points span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.welcome-points b {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 1px solid rgba(97, 217, 164, .26);
  border-radius: 50%;
  color: #8de7b8;
  background: rgba(52, 143, 103, .14);
  font-size: 9px;
}

.welcome-visual {
  position: relative;
  display: grid;
  min-height: 300px;
  place-items: center;
  overflow: hidden;
  perspective: 800px;
}

.welcome-visual::before {
  position: absolute;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(141, 184, 255, .12);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 123, 214, .15), rgba(51, 94, 169, .035) 55%, transparent 71%);
  box-shadow: 0 0 80px rgba(59, 116, 218, .13);
  content: "";
}

.welcome-orbit {
  position: absolute;
  width: 238px;
  height: 238px;
  border: 1px solid rgba(138, 181, 249, .13);
  border-radius: 50%;
  transform: rotateX(66deg) rotate(-22deg);
}

.welcome-orbit--inner {
  width: 190px;
  height: 190px;
  border-color: rgba(114, 190, 255, .12);
  transform: rotateX(66deg) rotate(38deg);
}

.welcome-phone {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: 194px;
  padding: 13px 16px 16px;
  border: 1px solid rgba(174, 204, 255, .25);
  border-radius: 23px;
  background: linear-gradient(145deg, rgba(29, 47, 73, .97), rgba(16, 27, 44, .98));
  box-shadow: 0 25px 55px rgba(1, 8, 22, .42), inset 0 1px rgba(255, 255, 255, .08);
  transform: rotateY(-8deg) rotateX(3deg);
  transition: transform .35s cubic-bezier(.2, .75, .25, 1);
}

.welcome-visual:hover .welcome-phone {
  transform: rotateY(-2deg) rotateX(0) translateY(-3px);
}

.welcome-phone-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-bottom: 13px;
}

.welcome-phone-top span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #5f7492;
}

.welcome-phone-top span:first-child {
  width: 24px;
  height: 3px;
  border-radius: 99px;
}

.welcome-message-icon {
  display: grid;
  width: 43px;
  height: 43px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 15px;
  box-shadow: 0 7px 17px rgba(49, 113, 220, .25);
}

.welcome-message-icon svg {
  display: block;
  width: 43px;
  height: 43px;
}

.welcome-phone-label {
  color: #8295b2;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.welcome-phone > strong {
  margin-top: 3px;
  color: #edf4ff;
  font-size: 15px;
  letter-spacing: -.025em;
}

.welcome-code {
  display: flex;
  gap: 5px;
  margin: 12px 0;
}

.welcome-code i {
  width: 17px;
  height: 22px;
  border: 1px solid rgba(131, 173, 235, .19);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(103, 144, 207, .16), rgba(62, 91, 145, .09));
}

.welcome-phone-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid rgba(97, 217, 164, .14);
  border-radius: 99px;
  color: #a9d9c2;
  background: rgba(37, 117, 81, .12);
  font-size: 8px;
  white-space: nowrap;
}

.welcome-phone-status b {
  width: 5px;
  height: 5px;
}

.welcome-spark {
  position: absolute;
  z-index: 1;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(151, 202, 255, .48);
  border-radius: 3px;
  background: rgba(111, 174, 255, .25);
  box-shadow: 0 0 20px rgba(104, 169, 255, .35);
  transform: rotate(45deg);
}

.welcome-spark--one {
  top: 22%;
  right: 20%;
}

.welcome-spark--two {
  bottom: 22%;
  left: 16%;
  width: 5px;
  height: 5px;
}

.grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(340px, .85fr);
  gap: 19px;
}

.panel {
  padding: 22px;
  border-color: rgba(160, 187, 229, .13);
  border-radius: 21px;
  background: linear-gradient(155deg, rgba(17, 26, 41, .97), rgba(12, 19, 31, .97));
  box-shadow: 0 19px 48px rgba(0, 5, 16, .2), inset 0 1px rgba(255, 255, 255, .035);
  backdrop-filter: blur(16px);
}

.side-panel {
  top: 18px;
  border-color: rgba(121, 185, 255, .16);
  background:
    radial-gradient(ellipse 380px 170px at 100% 0, rgba(65, 112, 200, .13), transparent 78%),
    linear-gradient(155deg, rgba(19, 30, 49, .98), rgba(12, 19, 31, .98));
}

.panel-header {
  margin-bottom: 17px;
}

.section-kicker {
  color: #91a8ce;
  font-size: 9px;
  letter-spacing: .15em;
}

.panel-header h2 {
  font-size: 1.3rem;
  letter-spacing: -.035em;
}

.badge {
  padding: 7px 10px;
  border-color: rgba(121, 185, 255, .2);
  color: #c9dcff;
  background: rgba(74, 122, 201, .13);
  font-size: 10px;
}

.toolbar {
  gap: 8px;
  margin-bottom: 12px;
}

.toolbar input,
.toolbar select,
.admin-users-search input {
  min-height: 44px;
  border-color: rgba(165, 191, 229, .14);
  border-radius: 12px;
  background: rgba(8, 14, 24, .72);
}

.toolbar input {
  padding-left: 39px;
  background-image: radial-gradient(circle at 17px 17px, transparent 5px, #91a0b7 5.7px, #91a0b7 6.6px, transparent 7.2px);
  background-repeat: no-repeat;
}

.toolbar input::placeholder {
  color: #74839a;
}

.toolbar input:focus,
.toolbar select:focus {
  border-color: rgba(121, 185, 255, .55);
  box-shadow: 0 0 0 3px rgba(88, 145, 224, .1);
}

.price-currency-switch {
  border-color: rgba(165, 191, 229, .14);
  border-radius: 11px;
  background: rgba(8, 14, 24, .72);
}

.price-currency-switch button.active,
.browser-currency-switch button.active {
  color: #f4f7fc;
  background: linear-gradient(135deg, rgba(75, 118, 194, .45), rgba(61, 79, 148, .37));
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}

.country-list {
  gap: 8px;
  max-height: 660px;
  padding: 2px 5px 2px 0;
  scrollbar-color: rgba(118, 147, 192, .35) transparent;
  scrollbar-width: thin;
}

.country-item {
  grid-template-columns: 46px minmax(0, 1fr) auto auto;
  gap: 12px;
  min-height: 78px;
  padding: 11px 12px;
  border-color: rgba(159, 185, 224, .1);
  border-radius: 15px;
  background: linear-gradient(110deg, rgba(24, 36, 55, .68), rgba(16, 25, 39, .54));
}

.country-item:hover {
  border-color: rgba(121, 185, 255, .34);
  background: linear-gradient(110deg, rgba(29, 46, 72, .86), rgba(17, 29, 47, .82));
  box-shadow: 0 11px 27px rgba(2, 8, 19, .22), inset 0 1px rgba(255, 255, 255, .045);
}

.country-icon {
  width: 46px;
  height: 46px;
  border-color: rgba(186, 209, 244, .1);
  border-radius: 14px;
  background: linear-gradient(145deg, #24344d, #19263a);
}

.country-name {
  font-size: 13px;
  letter-spacing: -.01em;
}

.availability {
  color: #95a4b9;
  font-size: 10px;
}

.country-price {
  min-width: 88px;
}

.country-price strong {
  color: #ffda8f;
  font-size: 15px;
}

.country-price small {
  color: #8290a4;
  font-size: 9px;
}

.country-actions {
  min-width: 101px;
  gap: 5px;
}

.country-item button {
  padding: 9px 11px;
  border: 1px solid rgba(181, 210, 255, .2);
  border-radius: 10px;
  background: linear-gradient(135deg, #528fe7, #5e6fe0);
  box-shadow: 0 5px 14px rgba(52, 92, 183, .16), inset 0 1px rgba(255, 255, 255, .17);
  font-size: 11px;
}

.country-item button:hover:not(:disabled) {
  box-shadow: 0 8px 20px rgba(52, 92, 183, .3), inset 0 1px rgba(255, 255, 255, .2);
}

.country-item button b {
  margin-left: 4px;
}

.order-card {
  gap: 12px;
  padding: 15px;
  border-color: rgba(121, 185, 255, .17);
  border-radius: 17px;
  background:
    radial-gradient(ellipse 380px 190px at 100% 0, rgba(75, 123, 211, .14), transparent 73%),
    rgba(9, 16, 27, .72);
}

.order-card.empty {
  min-height: 216px;
  border-style: dashed;
  border-color: rgba(154, 181, 222, .19);
  background:
    radial-gradient(ellipse 230px 130px at 50% 35%, rgba(70, 110, 178, .11), transparent 75%),
    rgba(9, 16, 27, .45);
}

.order-card.empty p {
  max-width: 230px;
  margin: 0;
  color: #a8b5c8;
  font-size: 12px;
  line-height: 1.65;
}

.order-country {
  font-size: 15px;
}

.number-block,
.sms-block {
  border-color: rgba(159, 185, 224, .1);
  border-radius: 12px;
  background: rgba(5, 10, 18, .42);
}

.sms-block {
  border-color: rgba(97, 217, 164, .15);
  background: rgba(51, 147, 102, .07);
}

.detail-cell {
  border: 1px solid rgba(160, 186, 223, .055);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
}

.order-instructions-button {
  border-color: rgba(121, 185, 255, .21);
  border-radius: 10px;
  color: #d2e2ff;
  background: rgba(68, 116, 195, .12);
}

.order-instructions-button:hover {
  border-color: rgba(121, 185, 255, .38);
  background: rgba(68, 116, 195, .2);
}

.empty-state {
  border-color: rgba(159, 185, 224, .18);
  border-radius: 14px;
  background: rgba(5, 10, 18, .25);
}

.support-footer {
  margin-top: 26px;
}

.support-box {
  width: min(820px, 100%);
  padding: 22px 24px;
  border-color: rgba(160, 187, 229, .12);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(16, 25, 40, .94), rgba(11, 18, 29, .96));
  box-shadow: var(--shadow);
}

.support-box h3 {
  font-size: 18px;
  letter-spacing: -.025em;
}

.support-box > p:not(.section-kicker) {
  color: #9caac0;
  font-size: 12px;
  line-height: 1.6;
}

.support-message,
.review-comment,
.topup-amount-input {
  border-color: rgba(165, 191, 229, .14);
  border-radius: 11px;
  background: rgba(7, 13, 23, .72);
}

.admin-panel,
.admin-support-standalone {
  margin-top: 20px;
}

.metric {
  border-color: rgba(160, 187, 229, .11);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(25, 38, 58, .76), rgba(17, 27, 43, .86));
}

.modal {
  background: rgba(2, 6, 13, .76);
  backdrop-filter: blur(10px);
}

.modal-card {
  border-color: rgba(151, 185, 241, .18);
  border-radius: 21px;
  background:
    radial-gradient(ellipse 440px 200px at 50% -12%, rgba(68, 109, 187, .14), transparent 74%),
    linear-gradient(155deg, #141f31, #0e1725);
  box-shadow: 0 32px 100px rgba(0, 0, 0, .5), inset 0 1px rgba(255, 255, 255, .055);
}

.modal-close {
  border: 1px solid rgba(169, 193, 229, .1);
  border-radius: 9px;
  color: #acb9cb;
  background: rgba(255, 255, 255, .035);
}

.modal-close:hover {
  color: white;
  background: rgba(255, 255, 255, .09);
}

.toast {
  border-color: rgba(121, 185, 255, .19);
  border-radius: 13px;
  background: rgba(17, 27, 44, .97);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .32);
}

.toast-region {
  z-index: 2100;
}

.browser-mode .app-shell {
  width: min(900px, 100%);
}

.browser-mode .topbar {
  align-items: flex-start;
}

.browser-mode .welcome-hero {
  grid-template-columns: minmax(0, 1.1fr) minmax(205px, .9fr);
  min-height: 265px;
}

.browser-mode .welcome-copy {
  padding: 29px 27px;
}

.browser-mode .welcome-visual {
  min-height: 265px;
}

@media (max-width: 1120px) {
  .app-shell {
    padding-right: 24px;
    padding-left: 24px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(315px, .85fr);
  }
}

@media (max-width: 860px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

  .welcome-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr);
  }

  .welcome-copy {
    padding: 30px 29px;
  }

  .browser-mode .app-shell {
    padding: 22px 18px 42px;
  }

  .browser-mode .topbar {
    padding: 0;
  }

  .browser-mode .grid {
    display: grid;
  }
}

@media (max-width: 640px) {
  .app-shell,
  .browser-mode .app-shell {
    padding: 18px 14px 36px;
  }

  .topbar {
    gap: 16px;
    margin-bottom: 20px;
  }

  .brand-symbol {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .brand-symbol svg {
    width: 32px;
    height: 32px;
  }

  .brand-heading {
    gap: 10px;
  }

  .brand-heading h1 {
    font-size: 1.68rem;
  }

  .brand-intro > .subtitle {
    margin: 7px 0 0 56px;
    font-size: 11px;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .topbar-actions .instructions-button,
  .topbar-actions .partner-button {
    min-height: 40px;
    padding: 8px 7px;
    font-size: 10px;
  }

  .role-strip,
  .wallet-box {
    grid-column: 1 / -1;
    width: 100%;
  }

  .wallet-box {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3px 12px;
  }

  .wallet-box > span {
    grid-column: 1;
  }

  .wallet-box > strong {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
  }

  .wallet-box > .topup-button {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding: 9px 13px;
  }

  .wallet-box .browser-currency-switch {
    grid-column: 1 / -1;
    gap: 2px;
    width: fit-content;
    padding: 2px;
  }

  .wallet-box .browser-currency-switch button {
    padding: 5px 7px;
    font-size: 9px;
  }

  .welcome-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-bottom: 14px;
    border-radius: 21px;
  }

  .browser-mode .welcome-hero {
    grid-template-columns: 1fr;
  }

  .welcome-copy {
    padding: 27px 22px 10px;
  }

  .browser-mode .welcome-copy {
    padding: 27px 22px 10px;
  }

  .welcome-overline {
    margin-bottom: 13px;
    font-size: 8px;
  }

  .welcome-copy h2 {
    font-size: clamp(1.85rem, 8.4vw, 2.45rem);
  }

  .welcome-copy > p {
    margin: 10px 0 16px;
    font-size: 12px;
  }

  .welcome-points {
    gap: 8px 11px;
    margin-top: 15px;
    font-size: 9px;
  }

  .welcome-visual {
    min-height: 190px;
    margin-top: -2px;
  }

  .browser-mode .welcome-visual {
    min-height: 190px;
  }

  .welcome-visual::before {
    width: 205px;
    height: 205px;
  }

  .welcome-orbit {
    width: 188px;
    height: 188px;
  }

  .welcome-orbit--inner {
    width: 150px;
    height: 150px;
  }

  .welcome-phone {
    width: 172px;
    padding: 10px 14px 12px;
    border-radius: 20px;
  }

  .welcome-message-icon,
  .welcome-message-icon svg {
    width: 36px;
    height: 36px;
  }

  .welcome-message-icon {
    margin-bottom: 7px;
  }

  .welcome-phone > strong {
    font-size: 13px;
  }

  .welcome-code {
    margin: 8px 0;
  }

  .welcome-code i {
    width: 15px;
    height: 19px;
  }

  .grid {
    gap: 14px;
  }

  .panel {
    padding: 16px;
    border-radius: 18px;
  }

  .panel-header h2 {
    font-size: 1.18rem;
  }

  .toolbar {
    gap: 7px;
  }

  .toolbar input,
  .toolbar select {
    min-height: 43px;
  }

  .price-currency-switch {
    justify-content: center;
  }

  .country-list {
    max-height: 560px;
  }

  .country-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 10px;
  }

  .country-icon {
    grid-row: 1 / span 2;
    width: 40px;
    height: 40px;
  }

  .country-main {
    align-self: end;
  }

  .country-price {
    grid-column: 2;
    min-width: 0;
    text-align: left;
  }

  .country-price strong {
    display: inline;
    margin-right: 6px;
  }

  .country-price small {
    display: inline;
  }

  .country-actions {
    grid-column: 2;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-width: 0;
  }

  .country-actions > button {
    min-height: 35px;
  }

  .order-card.empty {
    min-height: 150px;
  }

  .order-details,
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-cell {
    padding: 9px;
  }

  .detail-cell strong {
    font-size: 12px;
  }

  .support-box {
    padding: 18px;
    border-radius: 17px;
  }
}

@media (min-width: 1180px) {
  body {
    background:
      radial-gradient(ellipse 780px 540px at 12% -8%, rgba(41, 80, 151, .13), transparent 70%),
      radial-gradient(ellipse 680px 500px at 100% 40%, rgba(34, 92, 128, .08), transparent 70%),
      #080d16;
  }

  .app-shell,
  .browser-mode .app-shell {
    width: min(1512px, 100%);
    padding: 34px clamp(32px, 4vw, 66px) 72px;
  }

  .topbar {
    align-items: center;
    gap: 36px;
    margin-bottom: 29px;
    padding-bottom: 23px;
    border-bottom: 1px solid rgba(154, 181, 222, .1);
  }

  .brand-intro {
    min-width: 245px;
  }

  .brand-heading {
    gap: 15px;
  }

  .brand-symbol {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(61, 120, 242, .2);
  }

  .brand-heading h1 {
    font-size: 1.65rem;
    letter-spacing: -.055em;
  }

  .brand-heading .eyebrow {
    margin-bottom: 5px;
    font-size: 9px;
    letter-spacing: .19em;
  }

  .subtitle {
    margin: 10px 0 0 69px;
    color: #93a3bb;
    font-size: 12px;
  }

  .topbar-actions {
    gap: 11px;
  }

  .topbar-actions > .partner-button,
  .topbar-actions > .instructions-button {
    min-height: 45px;
    padding: 0 15px;
    border-radius: 12px;
    font-size: 11px;
    white-space: nowrap;
  }

  .role-strip {
    min-width: 192px;
    min-height: 72px;
    padding: 11px 13px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(22, 33, 51, .92), rgba(14, 22, 35, .92));
  }

  .role-icon {
    width: 41px;
    height: 41px;
  }

  .role-label {
    font-size: 9px;
  }

  .role-badge {
    margin-top: 2px;
    font-size: 12px;
  }

  .wallet-box,
  .browser-mode .wallet-box {
    display: grid !important;
    min-width: 238px;
    padding: 11px 14px;
    border-color: rgba(125, 157, 219, .2);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(23, 34, 53, .94), rgba(14, 22, 35, .94));
    box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 9px 27px rgba(0, 0, 0, .13);
  }

  .wallet-box > span {
    color: #94a4bd;
    font-size: 10px;
  }

  .wallet-box > strong {
    margin-top: 2px;
    font-size: 1.45rem;
    letter-spacing: -.035em;
  }

  .wallet-box > .topup-button {
    min-height: 40px;
    padding: 0 13px;
    border-radius: 11px;
    font-size: 11px;
  }

  .browser-mode .partner-button,
  .browser-mode .instructions-button {
    display: inline-flex !important;
  }

  .browser-mode .app-shell {
    width: min(1512px, 100%);
  }

  .welcome-hero,
  .browser-mode .welcome-hero {
    grid-template-columns: minmax(0, 1fr) minmax(390px, .72fr);
    min-height: 314px;
    margin-bottom: 25px;
    border-radius: 27px;
    background:
      radial-gradient(ellipse 560px 330px at 82% 44%, rgba(48, 112, 216, .19), transparent 72%),
      linear-gradient(112deg, rgba(17, 29, 49, .99), rgba(12, 23, 39, .98) 57%, rgba(12, 27, 45, .98));
    box-shadow: 0 28px 82px rgba(0, 5, 15, .27), inset 0 1px rgba(255, 255, 255, .06);
  }

  .welcome-copy,
  .browser-mode .welcome-copy {
    max-width: 820px;
    padding: 46px clamp(38px, 5vw, 76px);
  }

  .welcome-overline {
    gap: 10px;
    margin-bottom: 17px;
    color: #b5c7e2;
    font-size: 10px;
  }

  .welcome-copy h2 {
    max-width: 760px;
    font-size: clamp(2.65rem, 4.2vw, 4.1rem);
    letter-spacing: -.07em;
    line-height: 1.02;
    white-space: normal;
  }

  .welcome-copy h2 span {
    color: #8bb8ff;
  }

  .welcome-copy > p {
    max-width: 550px;
    margin: 16px 0 23px;
    color: #aab9cf;
    font-size: 15px;
    line-height: 1.7;
  }

  .welcome-points {
    gap: 11px 22px;
    margin-top: 0;
    font-size: 11px;
  }

  .welcome-points span {
    gap: 8px;
  }

  .welcome-points b {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .welcome-visual,
  .browser-mode .welcome-visual {
    min-height: 314px;
  }

  .welcome-visual::before {
    width: 310px;
    height: 310px;
  }

  .welcome-orbit {
    width: 275px;
    height: 275px;
  }

  .welcome-orbit--inner {
    width: 224px;
    height: 224px;
  }

  .welcome-phone {
    width: 205px;
    padding: 14px 16px 16px;
    border-radius: 24px;
    transform: rotateY(-8deg) rotateX(3deg);
  }

  .welcome-message-icon,
  .welcome-message-icon svg {
    width: 46px;
    height: 46px;
  }

  .welcome-message-icon {
    margin-bottom: 10px;
  }

  .welcome-phone-label {
    font-size: 8px;
  }

  .welcome-phone > strong {
    font-size: 15px;
  }

  .welcome-code {
    gap: 5px;
    margin: 11px 0;
  }

  .welcome-code i {
    width: 19px;
    height: 23px;
    border-radius: 7px;
  }

  .welcome-phone-status {
    padding: 7px 9px;
    font-size: 8px;
  }

  .grid,
  .browser-mode .grid {
    grid-template-columns: minmax(0, 1fr) minmax(365px, .41fr);
    gap: 23px;
    align-items: start;
  }

  .countries-panel,
  .side-panel {
    padding: 25px;
    border-radius: 23px;
    box-shadow: 0 22px 65px rgba(0, 0, 0, .17), inset 0 1px rgba(255, 255, 255, .025);
  }

  .countries-panel {
    background: linear-gradient(145deg, rgba(16, 24, 37, .97), rgba(11, 18, 29, .97));
  }

  .side-panel {
    top: 24px;
    background:
      radial-gradient(ellipse 420px 230px at 100% 0, rgba(68, 110, 202, .18), transparent 72%),
      linear-gradient(150deg, rgba(20, 30, 47, .98), rgba(11, 17, 27, .98));
  }

  .panel-header {
    gap: 18px;
    margin-bottom: 21px;
  }

  .panel-header h2 {
    font-size: 1.45rem;
    letter-spacing: -.04em;
  }

  .panel-header .section-kicker {
    margin-bottom: 7px;
    color: #8da5ce;
    font-size: 9px;
    letter-spacing: .18em;
  }

  .badge {
    padding: 8px 12px;
    border-color: rgba(132, 164, 244, .22);
    background: rgba(107, 140, 224, .1);
    font-size: 11px;
  }

  .toolbar {
    grid-template-columns: minmax(180px, 1fr) minmax(185px, .62fr) auto;
    gap: 11px;
    margin-bottom: 19px;
    padding: 11px;
    border: 1px solid rgba(150, 178, 222, .1);
    border-radius: 15px;
    background: rgba(7, 12, 20, .42);
  }

  .toolbar > input,
  .toolbar > select {
    min-height: 43px;
    border-color: rgba(154, 181, 222, .12);
    border-radius: 11px;
    background-color: rgba(17, 26, 40, .83);
  }

  .price-currency-switch {
    min-height: 43px;
    align-items: center;
    border-color: rgba(154, 181, 222, .12);
    border-radius: 11px;
  }

  .price-currency-switch button {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 8px;
  }

  .country-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 13px;
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .country-item {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 12px 13px;
    min-height: 145px;
    padding: 17px;
    border-color: rgba(149, 176, 220, .12);
    border-radius: 17px;
    background:
      radial-gradient(ellipse 280px 140px at 100% 0, rgba(75, 111, 179, .09), transparent 78%),
      linear-gradient(145deg, rgba(21, 31, 47, .88), rgba(14, 21, 33, .94));
    box-shadow: inset 0 1px rgba(255, 255, 255, .025);
  }

  .country-item:hover {
    transform: translateY(-2px);
    border-color: rgba(130, 165, 241, .3);
    background:
      radial-gradient(ellipse 280px 140px at 100% 0, rgba(75, 111, 179, .14), transparent 78%),
      linear-gradient(145deg, rgba(24, 36, 56, .94), rgba(15, 23, 36, .96));
    box-shadow: 0 13px 30px rgba(0, 0, 0, .17), inset 0 1px rgba(255, 255, 255, .04);
  }

  .country-icon {
    grid-column: 1;
    grid-row: 1;
    width: 52px;
    height: 52px;
    border-color: rgba(177, 201, 240, .14);
    border-radius: 16px;
    background: rgba(111, 145, 205, .12);
  }

  .country-flag-image {
    width: 33px;
    height: 23px;
    border-radius: 5px;
  }

  .country-main {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .country-name {
    font-size: 15px;
    letter-spacing: -.02em;
  }

  .availability {
    margin-top: 6px;
    font-size: 10px;
  }

  .number-type {
    margin-top: 5px;
    color: #8393ab;
    font-size: 10px;
  }

  .country-price {
    grid-column: 3;
    grid-row: 1;
    min-width: 73px;
    align-self: center;
    text-align: right;
  }

  .country-price strong {
    font-size: 16px;
  }

  .country-price small {
    max-width: 100px;
    margin-top: 4px;
    font-size: 9px;
  }

  .country-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    width: 100%;
  }

  .country-actions > button {
    min-height: 42px;
    border-radius: 12px;
    font-size: 12px;
  }

  .purchase-lock-notice {
    grid-column: 1 / -1;
    margin-bottom: 2px;
    padding: 13px 15px;
    border-radius: 13px;
    font-size: 12px;
  }

  .order-card,
  .order-card.empty {
    min-height: 270px;
    gap: 16px;
    padding: 20px;
    border-radius: 19px;
  }

  .order-card.empty {
    min-height: 225px;
  }

  .order-country {
    font-size: 18px;
  }

  .order-kicker,
  .field-label {
    font-size: 9px;
    letter-spacing: .14em;
  }

  .phone-number {
    font-size: clamp(1.6rem, 2.7vw, 2.1rem);
    letter-spacing: -.045em;
  }

  .sms-code {
    font-size: 2.15rem;
    letter-spacing: .18em;
  }

  .order-details {
    gap: 9px;
  }

  .order-details .detail-cell {
    padding: 12px;
    border-radius: 12px;
  }

  .order-details .detail-cell strong {
    margin-top: 5px;
    font-size: 13px;
  }

  .confirm-order-button {
    min-height: 47px;
    border-radius: 13px;
    font-size: 12px;
  }

  .support-footer {
    margin-top: 27px;
  }

  .support-box {
    width: min(100%, 1512px);
    padding: 24px 28px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(16, 24, 37, .96), rgba(11, 18, 29, .96));
  }

  .support-message {
    min-height: 96px;
  }
}

@media (min-width: 1180px) and (max-width: 1380px) {
  .app-shell,
  .browser-mode .app-shell {
    padding-right: 30px;
    padding-left: 30px;
  }

  .topbar {
    gap: 20px;
  }

  .role-strip {
    min-width: 175px;
  }

  .wallet-box,
  .browser-mode .wallet-box {
    min-width: 215px;
  }

  .topbar-actions {
    gap: 8px;
  }

  .grid,
  .browser-mode .grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, .43fr);
    gap: 17px;
  }

  .countries-panel,
  .side-panel {
    padding: 19px;
  }

  .country-list {
    gap: 10px;
  }

  .country-item {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 134px;
    padding: 13px;
  }

  .country-icon {
    width: 44px;
    height: 44px;
  }

  .toolbar {
    grid-template-columns: minmax(140px, 1fr) minmax(150px, .6fr) auto;
    gap: 7px;
    padding: 8px;
  }

  .price-currency-switch button {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 10px;
  }
}

/* One coherent component language across catalog, account, dialogs, and admin actions. */
:root {
  --control-height: 42px;
  --control-radius: 11px;
  --control-primary: linear-gradient(135deg, #5a9cf0, #596de4);
  --control-primary-hover: linear-gradient(135deg, #6ba9fa, #6a7cef);
  --control-secondary: rgba(117, 151, 204, .1);
  --control-border: rgba(155, 186, 232, .16);
}

button {
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(128, 188, 255, .9);
  outline-offset: 3px;
}

.topbar-actions .instructions-button,
.topbar-actions .partner-button,
.wallet-box > .topup-button,
.country-actions > button,
.confirm-order-button,
.order-instructions-button,
.cancel-button,
.topup-confirm-button,
.review-submit-button,
.support-send,
.auth-gate-action,
.continue-topup-button,
#continueTopUpButton,
.referral-link-box button,
.admin-actions button,
.admin-users-pagination button,
.support-ticket-actions button,
.retry-catalog-button,
.copy-value-button,
.stripe-topup-button,
.gift-topup-button {
  min-height: var(--control-height);
  border-radius: var(--control-radius);
  font-weight: 750;
  transition:
    transform .18s cubic-bezier(.2, .75, .25, 1),
    color .18s ease,
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    filter .18s ease;
}

.topbar-actions .instructions-button,
.topbar-actions .partner-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid var(--control-border);
  color: #c4d0e3;
  background: rgba(17, 27, 43, .78);
  font-size: 11px;
}

.topbar-actions .instructions-button:hover,
.topbar-actions .partner-button:hover {
  transform: translateY(-1px);
  border-color: rgba(135, 184, 255, .34);
  color: #eff5ff;
  background: rgba(31, 48, 73, .92);
  box-shadow: 0 7px 18px rgba(0, 5, 15, .15);
}

.topbar-actions .partner-button {
  border-color: rgba(100, 214, 163, .18);
  color: #9adbbb;
  background: rgba(37, 112, 80, .12);
}

.topbar-actions .partner-button:hover {
  border-color: rgba(100, 214, 163, .36);
  color: #c3f3da;
  background: rgba(37, 112, 80, .2);
}

.wallet-box > .topup-button,
.topup-confirm-button,
.review-submit-button,
.support-send,
.confirm-order-button,
.auth-gate-action,
#continueTopUpButton,
.topup-confirm-button {
  border: 1px solid rgba(177, 211, 255, .24);
  color: #fff;
  background: var(--control-primary);
  box-shadow: 0 7px 18px rgba(53, 97, 184, .2), inset 0 1px rgba(255, 255, 255, .17);
}

.wallet-box > .topup-button:hover:not(:disabled),
.topup-confirm-button:hover:not(:disabled),
.review-submit-button:hover:not(:disabled),
.support-send:hover:not(:disabled),
.confirm-order-button:hover:not(:disabled),
.auth-gate-action:hover,
#continueTopUpButton:hover:not(:disabled),
.topup-confirm-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(196, 223, 255, .4);
  color: white;
  background: var(--control-primary-hover);
  box-shadow: 0 10px 23px rgba(53, 97, 184, .27), inset 0 1px rgba(255, 255, 255, .2);
}

.country-actions > button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(178, 211, 255, .23);
  border-radius: 10px;
  background: var(--control-primary);
  box-shadow: 0 5px 13px rgba(51, 91, 170, .15), inset 0 1px rgba(255, 255, 255, .16);
  font-size: 11px;
}

.country-actions > button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(195, 221, 255, .4);
  background: var(--control-primary-hover);
  box-shadow: 0 8px 18px rgba(51, 91, 170, .24), inset 0 1px rgba(255, 255, 255, .18);
}

.order-instructions-button,
.copy-value-button,
.admin-users-pagination button,
.admin-actions button,
.support-ticket-actions button,
.referral-link-box button,
.stripe-topup-button {
  border: 1px solid var(--control-border);
  color: #cfddf3;
  background: var(--control-secondary);
}

.order-instructions-button:hover:not(:disabled),
.copy-value-button:hover:not(:disabled),
.admin-users-pagination button:hover:not(:disabled),
.admin-actions button:hover:not(:disabled),
.support-ticket-actions button:hover:not(:disabled),
.referral-link-box button:hover:not(:disabled),
.stripe-topup-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(137, 184, 250, .34);
  color: #f3f7ff;
  background: rgba(88, 132, 198, .2);
}

.copy-value-button,
.referral-link-box button {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 10px;
}

.cancel-button {
  border: 1px solid rgba(248, 128, 151, .22);
  color: #f4b9c5;
  background: rgba(153, 54, 80, .12);
}

.cancel-button:hover:not(:disabled) {
  border-color: rgba(248, 128, 151, .4);
  color: #ffe0e6;
  background: rgba(153, 54, 80, .2);
}

.code-help-button {
  justify-self: center;
  padding: 7px 10px;
  border-radius: 8px;
  color: #a9b8cd;
  font-size: 11px;
  text-decoration-color: rgba(169, 184, 205, .4);
  text-underline-offset: 3px;
}

.code-help-button:hover {
  color: #d7e5fa;
  background: rgba(123, 154, 199, .08);
}

.price-currency-switch,
.browser-currency-switch,
.language-switcher {
  padding: 3px;
  border: 1px solid rgba(157, 183, 222, .13);
  border-radius: 11px;
  background: rgba(6, 12, 21, .58);
}

.price-currency-switch button,
.browser-currency-switch button,
.language-switcher .language-button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #94a3b9;
  background: transparent;
  font-size: 10px;
  font-weight: 750;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}

.price-currency-switch button:hover,
.browser-currency-switch button:hover,
.language-switcher .language-button:hover {
  color: #e1eafa;
  background: rgba(112, 145, 196, .1);
}

.price-currency-switch button.active,
.browser-currency-switch button.active,
.language-switcher .language-button.active {
  border-color: rgba(141, 178, 237, .12);
  color: #f0f5ff;
  background: linear-gradient(180deg, rgba(83, 121, 185, .33), rgba(61, 86, 139, .27));
  box-shadow: 0 2px 7px rgba(0, 0, 0, .14), inset 0 1px rgba(255, 255, 255, .07);
}

.modal-close {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(169, 193, 229, .11);
  border-radius: 10px;
  color: #a9b6ca;
  background: rgba(255, 255, 255, .045);
  font-size: 22px;
  line-height: 1;
}

.modal-close:hover {
  transform: rotate(90deg);
  border-color: rgba(169, 193, 229, .2);
  color: #fff;
  background: rgba(255, 255, 255, .09);
}

.toolbar input,
.toolbar select,
.topup-amount-input,
.support-message,
.review-comment,
.admin-users-search input,
.admin-field select {
  min-height: var(--control-height);
  border: 1px solid rgba(154, 181, 220, .15);
  border-radius: var(--control-radius);
  color: #edf3fc;
  background-color: rgba(7, 13, 23, .8);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.toolbar input:focus,
.toolbar select:focus,
.topup-amount-input:focus-within,
.support-message:focus,
.review-comment:focus,
.admin-users-search input:focus,
.admin-field select:focus {
  border-color: rgba(124, 179, 255, .58);
  background-color: rgba(9, 17, 29, .96);
  box-shadow: 0 0 0 3px rgba(86, 145, 224, .12);
}

.support-message {
  min-height: 112px;
}

.topup-presets button {
  min-height: 38px;
  border: 1px solid rgba(154, 181, 220, .13);
  border-radius: 10px;
  color: #c4d0e2;
  background: rgba(126, 154, 196, .08);
}

.topup-presets button:hover {
  transform: translateY(-1px);
  border-color: rgba(137, 184, 250, .34);
  color: #f3f7ff;
  background: rgba(88, 132, 198, .16);
}

.gift-topup-button {
  border-color: rgba(255, 196, 92, .19);
  background: rgba(255, 196, 92, .055);
}

.gift-topup-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 196, 92, .36);
  background: rgba(255, 196, 92, .1);
}

.admin-users-pagination button,
.admin-actions button,
.support-ticket-actions button {
  min-height: 35px;
  padding: 0 11px;
  border-radius: 9px;
  font-size: 10px;
}

.support-ticket-actions .support-reply-button,
.admin-actions button:last-child {
  border-color: rgba(100, 214, 163, .2);
  color: #a5e6c2;
  background: rgba(38, 121, 85, .13);
}

.retry-catalog-button {
  padding: 0 13px;
  border: 1px solid var(--control-border);
  color: #d4e3fa;
  background: var(--control-secondary);
}

.retry-catalog-button:hover:not(:disabled) {
  border-color: rgba(137, 184, 250, .34);
  background: rgba(88, 132, 198, .2);
}

.roles-button,
.admin-users-search button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(159, 187, 229, .15);
  border-radius: 10px;
  color: #aebdd2;
  background: rgba(117, 151, 204, .08);
  line-height: 1;
}

.roles-button:hover,
.admin-users-search button:hover {
  transform: translateY(-1px);
  border-color: rgba(137, 184, 250, .34);
  color: #edf4ff;
  background: rgba(88, 132, 198, .17);
}

.toast {
  padding: 13px 15px;
  border-radius: 14px;
}

.panel,
.support-box,
.metric,
.country-item,
.order-card,
.role-strip,
.wallet-box,
.modal-card {
  backdrop-filter: blur(14px);
}

.country-item,
.metric,
.history-row,
.role-guide-item,
.admin-user-row,
.admin-support-ticket,
.detail-cell {
  border-color: rgba(164, 190, 229, .105);
}

@media (min-width: 1200px) {
  .app-shell {
    width: min(1320px, 100%);
    padding-right: 38px;
    padding-left: 38px;
  }

  .grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(350px, .8fr);
    gap: 22px;
  }

  .welcome-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  }

  .country-list {
    max-height: min(690px, 68vh);
  }
}

@media (max-width: 640px) {
  .price-currency-switch {
    width: 100%;
  }



  .price-currency-switch button {
    flex: 1;
  }

  .country-actions > button {
    min-height: 36px;
    padding: 0 9px;
    font-size: 10px;
  }

  .modal {
    align-items: end;
    padding: 12px 12px max(12px, env(safe-area-inset-bottom));
  }

  .modal-card {
    width: min(100%, 520px);
    max-height: min(84dvh, 760px);
    padding: 25px 19px 20px;
    border-radius: 21px 21px 16px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal-close:hover,
  .country-actions > button:hover,
  .wallet-box > .topup-button:hover,
  .order-instructions-button:hover,
  .cancel-button:hover {
    transform: none;
  }
}

/* Final responsive composition: put the purchase flow first on every screen. */
.app-shell,
.browser-mode .app-shell {
  width: min(1280px, 100%);
  padding: 24px 32px 52px;
}

.topbar {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 21px;
}

.brand-intro {
  min-width: 225px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  max-width: none;
  flex: 0 1 auto;
  gap: 8px;
}

.topbar-actions .role-strip,
.topbar-actions .wallet-box {
  grid-column: auto;
  width: auto;
}

.role-strip {
  min-width: 174px;
  flex: 0 1 245px;
}

.wallet-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 214px;
  gap: 2px 8px;
}

.wallet-box > span {
  grid-column: 1;
}

.wallet-box > strong {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
}

.wallet-box > .topup-button {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.wallet-box .browser-currency-switch {
  grid-column: 1 / -1;
}

.welcome-hero,
.browser-mode .welcome-hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(235px, .65fr);
  min-height: 228px;
  margin-bottom: 17px;
  border-radius: 22px;
}

.welcome-copy,
.browser-mode .welcome-copy {
  padding: 25px 32px;
}

.welcome-overline {
  margin-bottom: 11px;
  font-size: 9px;
}

.welcome-copy h2 {
  font-size: clamp(1.9rem, 3vw, 2.55rem);
}

.welcome-copy > p {
  max-width: 510px;
  margin: 9px 0 13px;
  font-size: 12px;
}

.welcome-points {
  gap: 8px 15px;
  margin-top: 13px;
  font-size: 9px;
}

.welcome-visual,
.browser-mode .welcome-visual {
  min-height: 228px;
}

.welcome-visual::before {
  width: 220px;
  height: 220px;
}

.welcome-orbit {
  width: 200px;
  height: 200px;
}

.welcome-orbit--inner {
  width: 160px;
  height: 160px;
}

.welcome-phone {
  width: 177px;
  padding: 10px 13px 12px;
  border-radius: 19px;
}

.welcome-message-icon,
.welcome-message-icon svg {
  width: 37px;
  height: 37px;
}

.welcome-message-icon {
  margin-bottom: 7px;
}

.welcome-phone > strong {
  font-size: 13px;
}

.welcome-code {
  margin: 8px 0;
}

.welcome-code i {
  width: 15px;
  height: 19px;
}

.grid,
.browser-mode .grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(315px, .86fr);
  gap: 18px;
  align-items: start;
}

.grid > .panel {
  min-width: 0;
}

.countries-panel,
.side-panel {
  padding: 20px;
  border-radius: 18px;
}

.side-panel {
  position: sticky;
  top: 14px;
}

.country-list {
  max-height: min(640px, 69vh);
  overscroll-behavior: contain;
}

.country-item {
  grid-template-columns: 42px minmax(0, 1fr) minmax(74px, auto) minmax(94px, auto);
  gap: 10px;
  min-height: 72px;
  padding: 10px;
}

.country-icon {
  width: 42px;
  height: 42px;
}

.country-price {
  min-width: 74px;
}

.country-actions {
  min-width: 94px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(145px, auto) auto;
  align-items: center;
}

.toolbar > input {
  width: 100%;
}

.toolbar > select {
  min-width: 0;
  width: 100%;
}

.price-currency-switch {
  justify-content: center;
}

.price-currency-switch button {
  padding-right: 8px;
  padding-left: 8px;
}

.support-footer {
  margin-top: 20px;
}

.support-box {
  width: min(100%, 1280px);
  padding: 19px 21px;
}

.catalog-loading,
.catalog-error {
  min-height: 190px;
  padding: 24px;
}

@media (min-width: 1500px) {
  .app-shell,
  .browser-mode .app-shell {
    width: min(1360px, 100%);
  }

  .grid,
  .browser-mode .grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(355px, .8fr);
    gap: 22px;
  }
}

@media (max-width: 1080px) {
  .app-shell,
  .browser-mode .app-shell {
    width: min(100%, 1040px);
    padding: 22px 24px 44px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 19px;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    justify-content: stretch;
  }

  .topbar-actions .role-strip,
  .topbar-actions .wallet-box {
    min-width: 0;
    width: 100%;
  }

  .topbar-actions {
    flex: 1 1 auto;
  }

  .welcome-hero,
  .browser-mode .welcome-hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(205px, .75fr);
    min-height: 218px;
  }

  .welcome-copy,
  .browser-mode .welcome-copy {
    padding: 23px 25px;
  }

  .welcome-visual,
  .browser-mode .welcome-visual {
    min-height: 218px;
  }

  .grid,
  .browser-mode .grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(285px, .9fr);
    gap: 14px;
  }

  .countries-panel,
  .side-panel {
    padding: 17px;
  }

  .toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .toolbar > input {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .app-shell,
  .browser-mode .app-shell {
    width: min(100%, 760px);
    padding: 20px 20px 40px;
  }

  .topbar-actions {
    grid-template-columns: auto auto minmax(0, 1fr) minmax(0, 1fr);
    gap: 7px;
  }

  .topbar-actions .instructions-button,
  .topbar-actions .partner-button {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 10px;
  }

  .grid,
  .browser-mode .grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, .85fr);
  }

  .side-panel {
    position: static;
  }

  .country-list {
    max-height: min(600px, 70vh);
  }

  .welcome-hero,
  .browser-mode .welcome-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(205px, .8fr);
  }
}

@media (max-width: 640px) {
  .app-shell,
  .browser-mode .app-shell {
    width: 100%;
    padding: 13px 13px 30px;
  }

  .topbar,
  .browser-mode .topbar {
    align-items: stretch;
    gap: 12px;
    margin-bottom: 13px;
    padding: 0;
  }

  .brand-intro {
    min-width: 0;
  }

  .brand-heading {
    gap: 9px;
  }

  .brand-symbol {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .brand-symbol svg {
    width: 28px;
    height: 28px;
  }

  .brand-heading-copy .eyebrow {
    margin-bottom: 3px;
    font-size: 8px;
  }

  .brand-heading h1 {
    font-size: 1.4rem;
  }

  .brand-intro > .subtitle {
    margin: 5px 0 0 49px;
    font-size: 10px;
  }

  .topbar-actions,
  .browser-mode .topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "account wallet"
      "help partner";
    align-items: stretch;
    gap: 7px;
  }

  .topbar-actions > .role-strip {
    grid-area: account;
    flex: 1 1 0;
    min-width: 0;
    min-height: 55px;
    padding: 8px;
    gap: 7px;
    border-radius: 12px;
  }

  .role-icon {
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
  }

  .role-copy {
    gap: 2px;
  }

  .role-label,
  .referral-badge,
  .level-progress,
  .level-progress-text,
  .telegram-identity {
    display: none;
  }

  .role-badge {
    font-size: 11px;
    line-height: 1.25;
  }

  .roles-button {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-left: auto;
    border-radius: 8px;
    font-size: 10px;
  }

  .topbar-actions > .wallet-box,
  .browser-mode .topbar-actions > .wallet-box {
    grid-area: wallet;
    flex: 1 1 0;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
    align-items: center;
    min-width: 0;
    min-height: 55px;
    width: 100%;
    padding: 7px 8px;
    gap: 1px 5px;
    border-radius: 12px;
  }

  .wallet-box > span {
    grid-column: 1;
    font-size: 9px;
  }

  .wallet-box > strong {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.2;
  }

  .wallet-box > .topup-button {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-height: 32px;
    padding: 0 8px;
    font-size: 9px;
  }

  .wallet-box .browser-currency-switch {
    display: none !important;
  }

  .topbar-actions > .instructions-button {
    grid-area: help;
  }

  .topbar-actions > .partner-button {
    grid-area: partner;
  }

  .topbar-actions .instructions-button,
  .topbar-actions .partner-button {
    display: inline-flex;
    min-height: 34px;
    width: 100%;
    padding: 0 7px;
    border-radius: 9px;
    font-size: 9px;
    line-height: 1.15;
    white-space: normal;
  }

  .browser-mode .topbar-actions .instructions-button,
  .browser-mode .topbar-actions .partner-button {
    display: none !important;
  }

  .browser-mode .topbar-actions {
    grid-template-areas: "account wallet";
  }

  .welcome-hero,
  .browser-mode .welcome-hero {
    display: block;
    min-height: 0;
    margin-bottom: 11px;
    border-radius: 16px;
    background:
      radial-gradient(ellipse 300px 180px at 100% 0, rgba(58, 112, 193, .15), transparent 76%),
      linear-gradient(130deg, rgba(18, 31, 50, .98), rgba(12, 21, 35, .97));
  }

  .welcome-copy,
  .browser-mode .welcome-copy {
    padding: 18px 17px 17px;
  }

  .welcome-overline {
    margin-bottom: 9px;
    font-size: 8px;
    letter-spacing: .08em;
  }

  .welcome-copy h2 {
    font-size: clamp(1.45rem, 6.8vw, 1.85rem);
    letter-spacing: -.05em;
    line-height: 1.08;
  }

  .welcome-copy > p {
    max-width: 420px;
    margin: 7px 0 11px;
    font-size: 11px;
    line-height: 1.5;
  }

  .welcome-points {
    gap: 6px 10px;
    margin-top: 10px;
    font-size: 8px;
  }

  .welcome-points b {
    flex: 0 0 13px;
    width: 13px;
    height: 13px;
    font-size: 8px;
  }

  .welcome-visual,
  .browser-mode .welcome-visual {
    display: none;
  }

  .grid,
  .browser-mode .grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
  }

  .countries-panel,
  .side-panel {
    padding: 14px;
    border-radius: 15px;
  }

  .panel-header {
    gap: 8px;
    margin-bottom: 11px;
  }

  .panel-header h2 {
    font-size: 1.08rem;
  }

  .section-kicker {
    margin-bottom: 4px;
    font-size: 8px;
  }

  .badge {
    padding: 6px 8px;
    font-size: 9px;
  }

  .toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 126px;
    gap: 7px;
    margin-bottom: 9px;
  }

  .toolbar > input {
    grid-column: 1 / -1;
    min-height: 39px;
    padding-left: 36px;
    border-radius: 10px;
    background-image: radial-gradient(circle at 15px 15px, transparent 4px, #91a0b7 4.7px, #91a0b7 5.5px, transparent 6px);
  }

  .toolbar > select {
    min-height: 36px;
    padding: 0 7px;
    border-radius: 9px;
    font-size: 9px;
  }

  .price-currency-switch {
    min-width: 0;
    width: 126px;
    gap: 1px;
    padding: 2px;
    border-radius: 9px;
  }

  .price-currency-switch button {
    min-width: 0;
    min-height: 30px;
    padding: 0 4px;
    border-radius: 7px;
    font-size: 9px;
  }

  .country-list {
    max-height: none;
    overflow: visible;
    gap: 7px;
    padding: 0;
  }

  .catalog-loading,
  .catalog-error {
    min-height: 145px;
    padding: 17px 12px;
  }

  .country-item {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    grid-template-areas:
      "flag name price"
      "flag availability availability"
      "actions actions actions";
    align-items: center;
    gap: 4px 9px;
    min-height: 0;
    padding: 10px;
    border-radius: 12px;
  }

  .country-icon {
    grid-area: flag;
    align-self: start;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 19px;
  }

  .country-flag-image {
    width: 26px;
    height: 19px;
  }

  .country-main {
    grid-area: name;
    align-self: end;
  }

  .country-name {
    font-size: 11px;
  }

  .availability {
    grid-area: availability;
    align-self: start;
    margin-top: 0;
    font-size: 9px;
  }

  .country-price {
    grid-area: price;
    min-width: 0;
    text-align: right;
  }

  .country-price strong {
    font-size: 12px;
  }

  .country-price small {
    font-size: 8px;
  }

  .country-actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-width: 0;
    width: 100%;
    gap: 6px;
    margin-top: 5px;
  }

  .country-actions > button {
    min-height: 34px;
    padding: 0 8px;
    border-radius: 9px;
    font-size: 9px;
  }

  .order-card,
  .order-card.empty {
    min-height: 0;
    gap: 9px;
    padding: 12px;
    border-radius: 12px;
  }

  .order-card.empty {
    min-height: 88px;
    padding: 18px;
  }

  .order-card.empty p {
    max-width: 280px;
    font-size: 11px;
  }

  .order-hero {
    align-items: center;
    flex-direction: row;
  }

  .status-pill {
    align-self: auto;
    padding: 5px 7px;
    font-size: 9px;
  }

  .order-country {
    font-size: 13px;
  }

  .order-country-flag {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .number-block,
  .sms-block {
    padding: 10px;
    border-radius: 10px;
  }

  .phone-number {
    font-size: 1.28rem;
  }

  .order-details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .detail-cell {
    padding: 7px 6px;
    border-radius: 8px;
  }

  .detail-cell span {
    font-size: 8px;
  }

  .detail-cell strong {
    font-size: 10px;
  }

  .order-instructions-button,
  .cancel-button,
  .confirm-order-button {
    min-height: 37px;
    padding: 0 9px;
    border-radius: 9px;
    font-size: 10px;
  }

  .code-help-button {
    font-size: 10px;
  }

  .support-footer {
    margin-top: 14px;
  }

  .support-box {
    padding: 15px;
    border-radius: 15px;
  }
}

@media (max-width: 380px) {
  .app-shell,
  .browser-mode .app-shell {
    padding-right: 10px;
    padding-left: 10px;
  }

  .topbar-actions .instructions-button,
  .topbar-actions .partner-button {
    font-size: 8px;
  }

  .role-badge {
    font-size: 10px;
  }

  .welcome-points span:last-child {
    display: none;
  }

  .toolbar {
    grid-template-columns: minmax(0, 1fr) 116px;
  }

  .price-currency-switch {
    width: 116px;
  }
}

@media (min-width: 861px) {
  .welcome-hero,
  .browser-mode .welcome-hero {
    grid-template-columns: minmax(0, 1.55fr) minmax(245px, .55fr);
    min-height: 182px;
    border-radius: 19px;
  }

  .welcome-copy,
  .browser-mode .welcome-copy {
    padding: 19px 28px;
  }

  .welcome-overline {
    margin-bottom: 7px;
    font-size: 8px;
  }

  .welcome-copy h2 {
    font-size: clamp(1.55rem, 2.45vw, 2rem);
    line-height: 1.12;
    white-space: nowrap;
  }

  .welcome-copy h2 span {
    color: #dce9ff;
  }

  .welcome-copy > p {
    margin: 6px 0 10px;
    font-size: 11px;
    line-height: 1.45;
  }

  .welcome-points {
    gap: 7px 11px;
    margin: 0;
    font-size: 8px;
  }

  .welcome-points b {
    width: 13px;
    height: 13px;
    font-size: 8px;
  }

  .welcome-visual,
  .browser-mode .welcome-visual {
    min-height: 182px;
  }

  .welcome-visual::before {
    width: 178px;
    height: 178px;
  }

  .welcome-orbit {
    width: 164px;
    height: 164px;
  }

  .welcome-orbit--inner {
    width: 130px;
    height: 130px;
  }

  .welcome-phone {
    width: 154px;
    padding: 8px 11px 10px;
    border-radius: 17px;
  }

  .welcome-message-icon,
  .welcome-message-icon svg {
    width: 32px;
    height: 32px;
  }

  .welcome-message-icon {
    margin-bottom: 5px;
  }

  .welcome-phone > strong {
    font-size: 12px;
  }

  .welcome-code {
    gap: 4px;
    margin: 6px 0;
  }

  .welcome-code i {
    width: 13px;
    height: 17px;
    border-radius: 5px;
  }

  .welcome-phone-status {
    padding: 5px 7px;
    font-size: 7px;
  }
}

@media (min-width: 861px) and (max-width: 1120px) {
  .welcome-hero,
  .browser-mode .welcome-hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(210px, .65fr);
    min-height: 176px;
  }

  .welcome-copy,
  .browser-mode .welcome-copy {
    padding: 17px 20px;
  }

  .welcome-copy h2 {
    font-size: clamp(1.4rem, 2.55vw, 1.75rem);
  }

  .welcome-copy > p {
    max-width: 480px;
  }

  .welcome-points {
    gap: 6px 8px;
    font-size: 7px;
  }
}

@media (max-width: 860px) {
  .welcome-points {
    margin-top: 10px;
  }

  .welcome-copy h2 {
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .app-shell,
  .browser-mode .app-shell {
    padding-right: 11px;
    padding-left: 11px;
  }

  .welcome-copy {
    padding-right: 17px;
    padding-left: 17px;
  }

  .welcome-points {
    gap: 7px 9px;
  }

  .panel {
    padding: 14px;
  }

}

@media (max-width: 640px) {
  .topbar-actions {
    gap: 8px;
  }

  .role-strip {
    min-height: 62px;
    padding: 9px 11px;
  }

  .role-copy {
    align-content: center;
    gap: 2px;
  }

  .referral-badge,
  .level-progress,
  .level-progress-text,
  .telegram-identity {
    display: none;
  }

  .wallet-box,
  .browser-mode .wallet-box {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2px 12px;
    min-height: 69px;
  }

  .wallet-box > span {
    grid-column: 1;
  }

  .wallet-box > strong {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
  }

  .wallet-box > .topup-button {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .wallet-box .browser-currency-switch {
    grid-column: 1 / -1;
  }

  .welcome-copy h2 {
    font-size: clamp(1.62rem, 7.4vw, 2rem);
    letter-spacing: -.055em;
    line-height: 1.09;
  }

  .welcome-copy > p {
    max-width: 390px;
  }

  .welcome-visual,
  .browser-mode .welcome-visual {
    min-height: 145px;
  }

  .welcome-visual::before {
    width: 170px;
    height: 170px;
  }

  .welcome-orbit {
    width: 158px;
    height: 158px;
  }

  .welcome-orbit--inner {
    width: 128px;
    height: 128px;
  }

  .welcome-phone {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    width: min(270px, calc(100% - 46px));
    min-height: 74px;
    padding: 11px 13px;
    column-gap: 11px;
    border-radius: 17px;
    transform: none;
  }

  .welcome-phone-top,
  .welcome-code {
    display: none;
  }

  .welcome-message-icon {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 32px;
    height: 32px;
    margin: 0;
  }

  .welcome-message-icon svg {
    width: 32px;
    height: 32px;
  }

  .welcome-phone-label {
    grid-column: 2;
    align-self: end;
  }

  .welcome-phone > strong {
    grid-column: 2;
    margin: 0;
    font-size: 12px;
  }

  .welcome-phone-status {
    grid-column: 2;
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 8px;
  }
}

@media (min-width: 1180px) {
  body {
    background:
      radial-gradient(ellipse 780px 540px at 12% -8%, rgba(41, 80, 151, .13), transparent 70%),
      radial-gradient(ellipse 680px 500px at 100% 40%, rgba(34, 92, 128, .08), transparent 70%),
      #080d16;
  }

  .app-shell,
  body.browser-mode .app-shell {
    width: min(1512px, 100%);
    padding: 34px clamp(32px, 4vw, 66px) 72px;
  }

  .topbar {
    align-items: center;
    gap: 28px;
    margin-bottom: 29px;
    padding-bottom: 23px;
    border-bottom: 1px solid rgba(154, 181, 222, .1);
  }

  .brand-heading { gap: 15px; }
  .brand-symbol { width: 54px; height: 54px; border-radius: 18px; }
  .brand-heading h1 { font-size: 1.65rem; letter-spacing: -.055em; }
  .brand-heading .eyebrow { margin-bottom: 5px; font-size: 9px; letter-spacing: .19em; }
  .subtitle { margin: 10px 0 0 69px; color: #93a3bb; font-size: 12px; }
  .topbar-actions { flex-wrap: nowrap; gap: 9px; }
  .topbar-actions > .partner-button,
  .topbar-actions > .instructions-button { min-height: 45px; padding: 0 14px; border-radius: 12px; font-size: 11px; white-space: nowrap; }
  .role-strip { min-width: 180px; min-height: 72px; padding: 11px 13px; border-radius: 14px; }
  .role-icon { width: 41px; height: 41px; }
  .role-label { font-size: 9px; }
  .role-badge { margin-top: 2px; font-size: 12px; }
  .wallet-box,
  body.browser-mode .wallet-box {
    display: grid !important;
    min-width: 225px;
    padding: 11px 14px;
    border-color: rgba(125, 157, 219, .2);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(23, 34, 53, .94), rgba(14, 22, 35, .94));
    box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 9px 27px rgba(0, 0, 0, .13);
  }
  .wallet-box > span { color: #94a4bd; font-size: 10px; }
  .wallet-box > strong { margin-top: 2px; font-size: 1.45rem; letter-spacing: -.035em; }
  .wallet-box > .topup-button { min-height: 40px; padding: 0 13px; border-radius: 11px; font-size: 11px; }
  body.browser-mode .partner-button,
  body.browser-mode .instructions-button { display: inline-flex !important; }

  .welcome-hero,
  body.browser-mode .welcome-hero {
    grid-template-columns: minmax(0, 1fr) minmax(390px, .72fr);
    min-height: 314px;
    margin-bottom: 25px;
    border-radius: 27px;
    background:
      radial-gradient(ellipse 560px 330px at 82% 44%, rgba(48, 112, 216, .19), transparent 72%),
      linear-gradient(112deg, rgba(17, 29, 49, .99), rgba(12, 23, 39, .98) 57%, rgba(12, 27, 45, .98));
    box-shadow: 0 28px 82px rgba(0, 5, 15, .27), inset 0 1px rgba(255, 255, 255, .06);
  }
  .welcome-copy,
  body.browser-mode .welcome-copy { max-width: 820px; padding: 46px clamp(38px, 5vw, 76px); }
  .welcome-overline { gap: 10px; margin-bottom: 17px; color: #b5c7e2; font-size: 10px; }
  .welcome-copy h2 { max-width: 760px; font-size: clamp(2.65rem, 4.2vw, 4.1rem); letter-spacing: -.07em; line-height: 1.02; white-space: normal; }
  .welcome-copy h2 span { color: #8bb8ff; }
  .welcome-copy > p { max-width: 550px; margin: 16px 0 23px; color: #aab9cf; font-size: 15px; line-height: 1.7; }
  .welcome-points { gap: 11px 22px; margin-top: 0; font-size: 11px; }
  .welcome-points span { gap: 8px; }
  .welcome-points b { width: 18px; height: 18px; font-size: 10px; }
  .welcome-visual,
  body.browser-mode .welcome-visual { min-height: 314px; }
  .welcome-visual::before { width: 310px; height: 310px; }
  .welcome-orbit { width: 275px; height: 275px; }
  .welcome-orbit--inner { width: 224px; height: 224px; }
  .welcome-phone { width: 205px; padding: 14px 16px 16px; border-radius: 24px; transform: rotateY(-8deg) rotateX(3deg); }
  .welcome-message-icon,
  .welcome-message-icon svg { width: 46px; height: 46px; }
  .welcome-message-icon { margin-bottom: 10px; }
  .welcome-phone-label { font-size: 8px; }
  .welcome-phone > strong { font-size: 15px; }
  .welcome-code { gap: 5px; margin: 11px 0; }
  .welcome-code i { width: 19px; height: 23px; border-radius: 7px; }
  .welcome-phone-status { padding: 7px 9px; font-size: 8px; }

  .grid,
  body.browser-mode .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(365px, .41fr); gap: 23px; align-items: start; }
  .countries-panel,
  .side-panel { padding: 25px; border-radius: 23px; box-shadow: 0 22px 65px rgba(0, 0, 0, .17), inset 0 1px rgba(255, 255, 255, .025); }
  .countries-panel { background: linear-gradient(145deg, rgba(16, 24, 37, .97), rgba(11, 18, 29, .97)); }
  .side-panel { position: sticky; top: 24px; background: radial-gradient(ellipse 420px 230px at 100% 0, rgba(68, 110, 202, .18), transparent 72%), linear-gradient(150deg, rgba(20, 30, 47, .98), rgba(11, 17, 27, .98)); }
  .panel-header { gap: 18px; margin-bottom: 21px; }
  .panel-header h2 { font-size: 1.45rem; letter-spacing: -.04em; }
  .toolbar { grid-template-columns: minmax(180px, 1fr) minmax(185px, .62fr) auto; gap: 11px; margin-bottom: 19px; padding: 11px; border: 1px solid rgba(150, 178, 222, .1); border-radius: 15px; background: rgba(7, 12, 20, .42); }
  .toolbar > input,
  .toolbar > select { min-height: 43px; border-color: rgba(154, 181, 222, .12); border-radius: 11px; background-color: rgba(17, 26, 40, .83); }
  .price-currency-switch { min-height: 43px; align-items: center; border-color: rgba(154, 181, 222, .12); border-radius: 11px; }
  .price-currency-switch button { min-height: 34px; padding: 0 12px; border-radius: 8px; }
  .country-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 13px; max-height: none; overflow: visible; padding: 0; }
  .country-item { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 12px 13px; min-height: 145px; padding: 17px; border-color: rgba(149, 176, 220, .12); border-radius: 17px; background: radial-gradient(ellipse 280px 140px at 100% 0, rgba(75, 111, 179, .09), transparent 78%), linear-gradient(145deg, rgba(21, 31, 47, .88), rgba(14, 21, 33, .94)); box-shadow: inset 0 1px rgba(255, 255, 255, .025); }
  .country-item:hover { transform: translateY(-2px); border-color: rgba(130, 165, 241, .3); background: radial-gradient(ellipse 280px 140px at 100% 0, rgba(75, 111, 179, .14), transparent 78%), linear-gradient(145deg, rgba(24, 36, 56, .94), rgba(15, 23, 36, .96)); box-shadow: 0 13px 30px rgba(0, 0, 0, .17), inset 0 1px rgba(255, 255, 255, .04); }
  .country-icon { grid-column: 1; grid-row: 1; width: 52px; height: 52px; border-color: rgba(177, 201, 240, .14); border-radius: 16px; background: rgba(111, 145, 205, .12); }
  .country-main { grid-column: 2; grid-row: 1; align-self: center; }
  .country-name { font-size: 15px; letter-spacing: -.02em; }
  .availability { margin-top: 6px; font-size: 10px; }
  .number-type { margin-top: 5px; color: #8393ab; font-size: 10px; }
  .country-price { grid-column: 3; grid-row: 1; min-width: 73px; align-self: center; text-align: right; }
  .country-price strong { font-size: 16px; }
  .country-price small { max-width: 100px; margin-top: 4px; font-size: 9px; }
  .country-actions { grid-column: 1 / -1; grid-row: 2; min-width: 0; width: 100%; }
  .country-actions > button { min-height: 42px; border-radius: 12px; font-size: 12px; }
  .purchase-lock-notice { grid-column: 1 / -1; margin-bottom: 2px; padding: 13px 15px; border-radius: 13px; font-size: 12px; }
  .order-card,
  .order-card.empty { min-height: 270px; gap: 16px; padding: 20px; border-radius: 19px; }
  .order-card.empty { min-height: 225px; }
  .order-country { font-size: 18px; }
  .order-kicker,
  .field-label { font-size: 9px; letter-spacing: .14em; }
  .phone-number { font-size: clamp(1.6rem, 2.7vw, 2.1rem); letter-spacing: -.045em; }
  .sms-code { font-size: 2.15rem; letter-spacing: .18em; }
  .order-details { gap: 9px; }
  .order-details .detail-cell { padding: 12px; border-radius: 12px; }
  .order-details .detail-cell strong { margin-top: 5px; font-size: 13px; }
  .confirm-order-button { min-height: 47px; border-radius: 13px; font-size: 12px; }
  .support-footer { margin-top: 27px; }
  .support-box { width: min(100%, 1512px); padding: 24px 28px; border-radius: 20px; background: linear-gradient(145deg, rgba(16, 24, 37, .96), rgba(11, 18, 29, .96)); }
  .support-message { min-height: 96px; }
}

@media (min-width: 1180px) and (max-width: 1380px) {
  .app-shell,
  body.browser-mode .app-shell { padding-right: 30px; padding-left: 30px; }
  .topbar { gap: 18px; }
  .role-strip { min-width: 165px; }
  .wallet-box,
  body.browser-mode .wallet-box { min-width: 205px; }
  .topbar-actions { gap: 7px; }
  .grid,
  body.browser-mode .grid { grid-template-columns: minmax(0, 1fr) minmax(340px, .43fr); gap: 17px; }
  .countries-panel,
  .side-panel { padding: 19px; }
  .country-list { gap: 10px; }
  .country-item { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; min-height: 134px; padding: 13px; }
  .country-icon { width: 44px; height: 44px; }
  .toolbar { grid-template-columns: minmax(140px, 1fr) minmax(150px, .6fr) auto; gap: 7px; padding: 8px; }
  .price-currency-switch button { padding-right: 7px; padding-left: 7px; font-size: 10px; }
}

@media (min-width: 1180px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    padding: 5px;
    border: 1px solid rgba(150, 178, 222, .1);
    border-radius: 12px;
    background: rgba(9, 15, 24, .58);
  }

  .desktop-nav a {
    padding: 9px 11px;
    border-radius: 8px;
    color: #aab9cf;
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease;
  }

  .desktop-nav a:hover {
    color: #f3f7ff;
    background: rgba(111, 151, 221, .13);
  }

  .desktop-layout {
    display: grid;
    grid-template-columns: 204px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
  }

  .desktop-main {
    min-width: 0;
  }

  .desktop-sidebar {
    position: sticky;
    top: 18px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 420px;
    padding: 18px 11px 13px;
    border: 1px solid rgba(150, 178, 222, .1);
    border-radius: 18px;
    background: linear-gradient(155deg, rgba(17, 26, 41, .9), rgba(11, 18, 29, .88));
  }

  .desktop-sidebar-group {
    display: grid;
    gap: 5px;
  }

  .desktop-sidebar-label {
    margin: 0 8px 4px;
    color: #7889a3;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .desktop-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 39px;
    padding: 0 9px;
    border: 0;
    border-radius: 10px;
    color: #aab9cf;
    background: transparent;
    font: inherit;
    font-size: 11px;
    font-weight: 650;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: color .18s ease, background .18s ease;
  }

  .desktop-sidebar-link:hover,
  .desktop-sidebar-link.is-active {
    color: #f4f7ff;
    background: rgba(92, 133, 207, .16);
  }

  .desktop-sidebar-icon {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 6px;
    color: #9cbbf0;
    background: rgba(111, 151, 221, .12);
    font-size: 12px;
  }

  .desktop-sidebar-count {
    margin-left: auto;
    color: #8f9eb4;
    font-size: 10px;
  }

  .desktop-sidebar-security {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 10px 8px 2px;
    border-top: 1px solid rgba(150, 178, 222, .1);
    color: #8c9bb0;
    font-size: 9px;
  }

  .desktop-sidebar-security span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5bd39a;
    box-shadow: 0 0 10px rgba(91, 211, 154, .35);
  }

  .desktop-main > .welcome-hero {
    margin-top: 0;
  }

  .desktop-main .grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .43fr);
  }

  .desktop-main .country-item {
    grid-template-columns: 46px minmax(0, 1fr) minmax(122px, auto);
    grid-template-rows: minmax(46px, auto) auto;
    gap: 8px 11px;
    min-height: 120px;
  }

  .desktop-main .country-icon {
    grid-column: 1;
    grid-row: 1;
  }

  .desktop-main .country-main {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .desktop-main .country-price {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
    align-self: center;
  }

  .desktop-main .country-actions {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    width: 100%;
    min-width: 0;
  }

  .desktop-main .country-actions > button {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    white-space: nowrap;
  }

  .desktop-main .country-price small {
    max-width: 122px;
    margin-left: auto;
  }
}

@media (min-width: 1180px) and (max-width: 1380px) {
  .desktop-nav {
    display: none;
  }

  .desktop-layout {
    grid-template-columns: 174px minmax(0, 1fr);
    gap: 16px;
  }

  .desktop-main .country-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar-actions {
    flex-wrap: wrap;
    gap: 6px;
  }
}

@media (max-width: 1179px) {
  .desktop-nav,
  .desktop-sidebar {
    display: none;
  }

  .desktop-layout {
    display: block;
  }

  .desktop-main {
    min-width: 0;
  }
}

@media (min-width: 1180px) {
  .app-shell,
  body.browser-mode .app-shell {
    width: min(1500px, 100%);
    padding: 24px 38px 56px;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(150, 178, 222, .1);
  }

  .brand-intro {
    min-width: 0;
  }

  .brand-intro > .subtitle {
    margin: 5px 0 0 54px;
    font-size: 11px;
  }

  .desktop-nav {
    display: none;
  }

  .topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    width: auto;
    max-width: none;
    gap: 9px;
  }

  .topbar-actions .role-strip,
  .topbar-actions .wallet-box {
    grid-column: auto;
    width: auto;
  }

  .topbar-actions .role-strip {
    display: flex;
    align-items: center;
    min-width: 150px;
    padding: 8px 10px;
  }

  .role-strip .role-icon {
    width: 35px;
    height: 35px;
  }

  .role-strip .role-copy {
    min-width: 0;
  }

  .role-strip .role-label,
  .role-strip .referral-badge,
  .role-strip .level-progress,
  .role-strip .level-progress-text,
  .role-strip .telegram-identity {
    display: none;
  }

  .role-strip .role-badge {
    display: block;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .wallet-box,
  body.browser-mode .wallet-box {
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 190px;
    gap: 2px 9px;
  }

  .wallet-box > span {
    grid-column: 1;
  }

  .wallet-box > strong {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
  }

  .wallet-box > .topup-button {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .wallet-box .browser-currency-switch {
    grid-column: 1 / -1;
  }

  .desktop-layout {
    grid-template-columns: 188px minmax(0, 1fr);
    gap: 20px;
  }

  .desktop-sidebar {
    top: 16px;
    min-height: 345px;
  }

  .desktop-main > .welcome-hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(245px, .75fr);
    min-height: 244px;
    margin-bottom: 17px;
    border-radius: 23px;
  }

  .desktop-main .welcome-copy,
  body.browser-mode .desktop-main .welcome-copy {
    padding: 28px 36px;
  }

  .desktop-main .welcome-overline {
    margin-bottom: 11px;
  }

  .desktop-main .welcome-copy h2 {
    max-width: 620px;
    font-size: clamp(2rem, 3.1vw, 3rem);
  }

  .desktop-main .welcome-copy > p {
    max-width: 490px;
    margin: 10px 0 14px;
    font-size: 12px;
    line-height: 1.55;
  }

  .desktop-main .welcome-points {
    gap: 7px 14px;
    font-size: 9px;
  }

  .desktop-main .welcome-visual,
  body.browser-mode .desktop-main .welcome-visual {
    min-height: 244px;
  }

  .desktop-main .welcome-visual::before {
    width: 220px;
    height: 220px;
  }

  .desktop-main .welcome-orbit {
    width: 192px;
    height: 192px;
  }

  .desktop-main .welcome-orbit--inner {
    width: 152px;
    height: 152px;
  }

  .desktop-main .welcome-phone {
    width: 158px;
    padding: 10px 12px;
    border-radius: 19px;
  }

  .desktop-main .welcome-message-icon,
  .desktop-main .welcome-message-icon svg {
    width: 36px;
    height: 36px;
  }

  .desktop-main .welcome-phone-status {
    padding: 6px 7px;
    font-size: 7px;
  }

  .desktop-main .grid,
  body.browser-mode .desktop-main .grid {
    grid-template-columns: minmax(0, 1fr) minmax(315px, .4fr);
    gap: 17px;
  }

  .desktop-main .countries-panel,
  .desktop-main .side-panel {
    padding: 19px;
    border-radius: 19px;
  }

  .desktop-main .panel-header {
    margin-bottom: 14px;
  }

  .desktop-main .panel-header h2 {
    font-size: 1.25rem;
  }

  .desktop-main .toolbar {
    grid-template-columns: minmax(145px, 1fr) minmax(145px, .65fr) auto;
    gap: 8px;
    margin-bottom: 13px;
    padding: 8px;
  }

  .desktop-main .toolbar > input,
  .desktop-main .toolbar > select {
    min-height: 39px;
  }

  .desktop-main .price-currency-switch {
    min-height: 39px;
  }

  .desktop-main .country-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .desktop-main .country-item {
    grid-template-columns: 44px minmax(0, 1fr) minmax(90px, auto) minmax(132px, auto);
    grid-template-rows: auto;
    gap: 10px;
    min-height: 78px;
    padding: 10px 12px;
  }

  .desktop-main .country-icon {
    grid-column: 1;
    grid-row: 1;
    width: 42px;
    height: 42px;
  }

  .desktop-main .country-main {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .desktop-main .country-name {
    font-size: 13px;
  }

  .desktop-main .country-price {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    text-align: right;
  }

  .desktop-main .country-price small {
    max-width: 125px;
    margin: 3px 0 0 auto;
    font-size: 8px;
  }

  .desktop-main .country-actions {
    grid-column: 4;
    grid-row: 1;
    align-self: center;
    width: 132px;
    min-width: 0;
    margin: 0;
  }

  .desktop-main .country-actions > button {
    width: 100%;
    min-height: 40px;
    font-size: 10px;
  }

  .desktop-main .order-card,
  .desktop-main .order-card.empty {
    min-height: 185px;
  }
}

@media (min-width: 1180px) and (max-width: 1380px) {
  .app-shell,
  body.browser-mode .app-shell {
    padding-right: 26px;
    padding-left: 26px;
  }

  .desktop-layout {
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 15px;
  }

  .topbar {
    grid-template-columns: minmax(200px, 1fr) auto;
    gap: 12px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .topbar-actions .partner-button {
    display: none;
  }

  .topbar-actions .role-strip {
    min-width: 135px;
  }

  .wallet-box,
  body.browser-mode .wallet-box {
    min-width: 175px;
  }

  .desktop-main .grid,
  body.browser-mode .desktop-main .grid {
    grid-template-columns: minmax(0, 1fr) minmax(285px, .42fr);
    gap: 13px;
  }

  .desktop-main .countries-panel,
  .desktop-main .side-panel {
    padding: 15px;
  }

  .desktop-main .country-item {
    grid-template-columns: 40px minmax(0, 1fr) 72px 124px;
    gap: 7px;
    padding: 9px;
  }

  .desktop-main .country-actions {
    width: 124px;
  }

  .desktop-main .country-price small {
    display: none;
  }
}

@media (max-width: 1179px) and (min-width: 641px) {
  .country-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .country-item {
    grid-template-columns: 44px minmax(0, 1fr) auto auto;
    grid-template-rows: auto;
    min-height: 78px;
  }

  .country-icon,
  .country-main,
  .country-price,
  .country-actions {
    grid-column: auto;
    grid-row: auto;
  }

  .country-actions {
    width: auto;
  }
}

@media (max-width: 640px) {
  .country-item {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas:
      "flag name price"
      "flag availability availability"
      "actions actions actions";
    gap: 5px 10px;
    min-height: 0;
  }

  .country-main {
    display: contents;
  }

  .country-name {
    grid-area: name;
    align-self: end;
    min-width: 0;
  }

  .availability {
    grid-area: availability;
    align-self: start;
    min-width: 0;
  }

  .number-type {
    display: none;
  }

  .country-price {
    grid-area: price;
    align-self: center;
  }

  .country-price small {
    display: none;
  }

  .country-actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    margin-top: 4px;
  }

  .country-actions > button {
    width: 100%;
    grid-column: 1;
    min-height: 42px;
  }
}

@media (min-width: 1180px) {
  body.browser-mode .topbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: center;
  }

  body.browser-mode .topbar-actions {
    flex-wrap: nowrap;
    align-items: center;
  }

  body.browser-mode .desktop-main > .welcome-hero {
    min-height: 244px;
  }
}

.topbar-actions .partner-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-color: rgba(140, 168, 255, .2);
  border-radius: 10px;
  color: #c6d4ff;
  background: rgba(92, 119, 190, .11);
  box-shadow: none;
  font-size: 10px;
  white-space: nowrap;
}

.topbar-actions .partner-button:hover {
  border-color: rgba(155, 183, 255, .4);
  color: #e2eaff;
  background: rgba(92, 119, 190, .2);
}

@media (min-width: 1180px) and (max-width: 1380px) {
  .topbar-actions .partner-button {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .browser-mode .topbar-actions {
    grid-template-areas:
      "account wallet"
      "invite .";
  }

  body.browser-mode .topbar-actions .partner-button {
    display: inline-flex !important;
    grid-area: invite;
    justify-self: start;
    width: auto;
    min-height: 31px;
    padding: 0 11px;
    border-radius: 9px;
    font-size: 9px;
  }
}

@media (max-width: 380px) {
  .browser-mode .topbar-actions {
    grid-template-columns: 34px minmax(0, 1.1fr) minmax(0, .9fr);
  }
}

.brand-symbol.partner-button {
  display: grid;
  min-height: 0;
  padding: 0;
  border-color: rgba(145, 177, 255, .38);
  color: #d4e2ff;
  background: linear-gradient(145deg, rgba(91, 130, 223, .25), rgba(56, 81, 151, .2));
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.browser-mode .brand-symbol.partner-button {
  display: grid !important;
}

.brand-symbol.partner-button:hover {
  border-color: rgba(169, 196, 255, .68);
  color: #fff;
  background: linear-gradient(145deg, rgba(101, 147, 245, .36), rgba(64, 96, 185, .3));
  box-shadow: 0 10px 28px rgba(55, 104, 206, .28), inset 0 1px rgba(255, 255, 255, .2);
}

.brand-symbol.partner-button svg {
  width: 25px;
  height: 25px;
  filter: none;
}

@media (min-width: 1180px) {
  .desktop-main .country-item {
    grid-template-columns: 44px minmax(0, 1fr) minmax(82px, auto) 112px;
  }

  .desktop-main .country-actions {
    width: 112px;
  }

  .desktop-main .country-actions > button {
    min-height: 34px;
    padding: 0 7px;
    border-color: rgba(159, 190, 244, .18);
    border-radius: 9px;
    color: #dbe6ff;
    background: linear-gradient(135deg, #416db5, #526abd);
    box-shadow: 0 3px 9px rgba(42, 72, 128, .16), inset 0 1px rgba(255, 255, 255, .1);
    font-size: 9px;
    font-weight: 700;
  }

  .desktop-main .country-actions > button:hover:not(:disabled) {
    border-color: rgba(186, 210, 255, .35);
    background: linear-gradient(135deg, #4d7dc9, #6078ce);
  }
}

@media (max-width: 380px) {
  .browser-mode .topbar-actions {
    grid-template-columns: 34px minmax(0, 1.1fr) minmax(0, .9fr);
  }
}

@media (max-width: 640px) {
  .country-item {
    grid-template-columns: 40px minmax(0, 1fr) 118px;
    grid-template-areas:
      "flag name name"
      "flag availability availability"
      "flag price actions";
    gap: 5px 9px;
    padding: 10px;
  }

  .country-icon {
    grid-area: flag;
  }

  .country-main {
    display: contents;
  }

  .country-name {
    grid-area: name;
  }

  .availability {
    grid-area: availability;
  }

  .country-price {
    grid-area: price;
    justify-self: start;
    text-align: left;
  }

  .country-actions {
    grid-area: actions;
    display: block;
    width: 118px;
    margin: 0;
  }

  .country-actions > button {
    width: 100%;
    min-height: 34px;
    padding: 0 5px;
    border-color: rgba(159, 190, 244, .18);
    border-radius: 9px;
    color: #dbe6ff;
    background: linear-gradient(135deg, #416db5, #526abd);
    box-shadow: 0 3px 9px rgba(42, 72, 128, .16), inset 0 1px rgba(255, 255, 255, .1);
    font-size: 9px;
    font-weight: 700;
  }
}

@media (min-width: 1180px) {
  .support-footer {
    width: 100%;
    margin: 18px auto 0;
    padding: 0 0 18px;
  }

  .support-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    grid-template-areas:
      "kicker kicker"
      "title title"
      "intro intro"
      "notice notice"
      "message action"
      "quota action";
    align-items: center;
    gap: 7px 16px;
    width: min(100%, 1040px);
    margin: 0 auto;
    padding: 17px 19px;
    border-radius: 17px;
  }

  .support-box > .section-kicker {
    grid-area: kicker;
    margin: 0;
  }

  .support-box > h3 {
    grid-area: title;
    margin: 0;
    font-size: 17px;
  }

  .support-box > p:not(.section-kicker) {
    margin: 0;
  }

  .support-box > p:not(.section-kicker):not(.support-limit-note) {
    grid-area: intro;
    font-size: 11px;
  }

  .support-box > .support-message {
    grid-area: message;
    min-height: 76px;
    max-height: 150px;
    margin: 1px 0 0;
    padding: 10px 11px;
    resize: vertical;
  }

  .support-box > .support-limit-note {
    grid-area: quota;
    align-self: start;
    margin: 0;
    font-size: 10px;
  }

  .support-box > .support-send {
    grid-area: action;
    align-self: center;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    font-size: 11px;
    line-height: 1.3;
  }
}

.topbar-actions .partner-button {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 11px;
}

@media (min-width: 1180px) {
  .topbar-actions .instructions-button {
    order: 1;
  }

  .topbar-actions .role-strip {
    order: 2;
  }

  .topbar-actions .partner-button {
    order: 3;
  }

  .topbar-actions .wallet-box {
    order: 4;
  }
}

.partner-button svg {
  display: block;
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  .browser-mode .topbar-actions {
    grid-template-columns: 34px minmax(150px, 1fr) minmax(130px, .85fr);
    grid-template-areas: "invite account wallet";
    gap: 7px;
  }

  .browser-mode .topbar-actions > .role-strip {
    grid-area: account;
    width: 100%;
  }

  .browser-mode .topbar-actions > .wallet-box {
    grid-area: wallet;
    width: 100%;
  }

  body.browser-mode .topbar-actions .partner-button {
    grid-area: invite;
    justify-self: center;
    width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 10px;
  }
}

@media (min-width: 1180px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(220px, auto) minmax(500px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
  }

  .topbar-actions {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: auto;
    max-width: none;
    gap: 9px;
  }

  .topbar-actions > .role-strip {
    flex: 0 1 218px;
    min-width: 190px;
    padding: 10px 12px;
  }

  .topbar-actions > .wallet-box {
    flex: 0 0 205px;
    min-width: 205px;
  }

  .topbar-actions > .instructions-button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .desktop-nav {
    grid-column: 3;
    grid-row: 1;
    display: flex !important;
    justify-self: end;
    gap: 4px;
    padding: 4px;
  }

  .desktop-nav a {
    padding: 8px 9px;
    font-size: 10px;
  }
}

@media (min-width: 1180px) and (max-width: 1380px) {
  .topbar {
    grid-template-columns: minmax(210px, auto) minmax(480px, auto) minmax(0, 1fr);
    gap: 10px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .topbar-actions > .role-strip {
    flex-basis: 202px;
    min-width: 180px;
  }

  .topbar-actions > .wallet-box {
    flex-basis: 195px;
    min-width: 195px;
  }

  .desktop-nav a {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 9px;
  }
}

@media (max-width: 640px) {
  .browser-mode .topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "account wallet"
      "help help";
    gap: 7px;
    width: 100%;
  }

  .browser-mode .topbar-actions > .role-strip {
    grid-area: account;
    flex: 1 1 0;
    min-width: 0;
    min-height: 55px;
    width: 100%;
    padding: 8px;
  }

  .browser-mode .topbar-actions > .wallet-box {
    grid-area: wallet;
    flex: 1 1 0;
    min-width: 0;
    min-height: 55px;
    width: 100%;
    padding: 7px 8px;
  }

  .browser-mode .topbar-actions > .instructions-button {
    display: none !important;
  }
}

@media (max-width: 380px) {
  body.browser-mode .topbar-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
}

@media (min-width: 1180px) {
  .topbar {
    grid-template-columns: minmax(220px, auto) auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
  }

  .topbar-user-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .topbar-user-tools > .role-strip {
    display: flex;
    align-items: center;
    min-width: 145px;
    max-width: 160px;
    padding: 8px 9px;
  }

  .topbar-user-tools .role-icon {
    width: 34px;
    height: 34px;
  }

  .topbar-user-tools .role-copy {
    min-width: 0;
  }

  .topbar-user-tools .role-label,
  .topbar-user-tools .referral-badge,
  .topbar-user-tools .level-progress,
  .topbar-user-tools .level-progress-text,
  .topbar-user-tools .telegram-identity {
    display: none;
  }

  .topbar-user-tools .role-badge {
    display: block;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-user-tools > .wallet-box,
  body.browser-mode .topbar-user-tools > .wallet-box {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 180px;
    padding: 9px 10px;
    gap: 2px 8px;
  }

  .topbar-user-tools .wallet-box > span {
    grid-column: 1;
  }

  .topbar-user-tools .wallet-box > strong {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
  }

  .topbar-user-tools .wallet-box > .topup-button {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .topbar-user-tools .browser-currency-switch {
    grid-column: 1 / -1;
  }

  .desktop-nav {
    display: flex !important;
    justify-self: center;
    gap: 4px;
    padding: 4px;
  }

  .desktop-nav a {
    padding: 8px 9px;
    font-size: 10px;
  }

  .topbar-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    width: auto;
    max-width: none;
    flex-wrap: nowrap;
  }

  .topbar-actions .instructions-button {
    min-height: 36px;
    padding: 0 11px;
    font-size: 10px;
  }

  .desktop-main .country-item {
    grid-template-columns: 44px minmax(0, 1fr) minmax(82px, auto) 128px;
  }

  .desktop-main .country-actions {
    width: 128px;
  }
}

@media (min-width: 641px) and (max-width: 1179px) {
  .topbar-user-tools {
    display: flex;
    width: 100%;
    gap: 8px;
  }

  .topbar-user-tools > .role-strip,
  .topbar-user-tools > .wallet-box {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .topbar-user-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 7px;
    width: 100%;
  }

  .topbar-user-tools > .role-strip {
    display: flex;
    grid-column: auto;
    align-items: center;
    min-width: 0;
    min-height: 55px;
    width: 100%;
    padding: 8px;
    gap: 7px;
    border-radius: 12px;
  }

  .topbar-user-tools .role-icon {
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
  }

  .topbar-user-tools .role-copy {
    min-width: 0;
  }

  .topbar-user-tools .role-label,
  .topbar-user-tools .referral-badge,
  .topbar-user-tools .level-progress,
  .topbar-user-tools .level-progress-text,
  .topbar-user-tools .telegram-identity {
    display: none;
  }

  .topbar-user-tools .role-badge {
    overflow: hidden;
    font-size: 10px;
    line-height: 1.2;
    text-overflow: ellipsis;
  }

  .topbar-user-tools .roles-button {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-left: auto;
  }

  .topbar-user-tools > .wallet-box,
  body.browser-mode .topbar-user-tools > .wallet-box {
    display: grid !important;
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
    align-items: center;
    min-width: 0;
    min-height: 55px;
    width: 100%;
    padding: 7px 8px;
    gap: 1px 5px;
    border-radius: 12px;
  }

  .topbar-user-tools .wallet-box > span {
    grid-column: 1;
    font-size: 9px;
  }

  .topbar-user-tools .wallet-box > strong {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.2;
  }

  .topbar-user-tools .wallet-box > .topup-button {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-height: 32px;
    padding: 0 8px;
    font-size: 9px;
  }

  .topbar-user-tools .wallet-box .browser-currency-switch {
    display: none !important;
  }

  body.browser-mode .topbar-actions {
    display: none !important;
  }

  .topbar-actions {
    display: flex;
    justify-content: flex-end;
    width: 100%;
  }

  .topbar-actions .instructions-button {
    width: auto;
    min-height: 34px;
  }

  .country-item {
    grid-template-columns: 40px minmax(0, 1fr) 136px;
    grid-template-areas:
      "flag name name"
      "flag availability availability"
      "flag price actions";
    gap: 4px 9px;
    padding: 10px;
  }

  .country-name {
    align-self: center;
  }

  .availability {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .country-price {
    justify-self: end;
    text-align: right;
  }

  .country-actions {
    width: 136px;
  }

  .country-actions > button {
    min-height: 36px;
    padding: 0 7px;
    font-size: 9px;
  }
}

@media (max-width: 380px) {
  body.browser-mode .topbar-user-tools {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  }

  .country-item {
    grid-template-columns: 40px minmax(0, 1fr) 126px;
  }

  .country-actions {
    width: 126px;
  }
}

@media (max-width: 1179px) {
  body.browser-mode .topbar-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "account wallet";
    align-items: stretch;
    width: 100%;
    max-width: none;
    gap: 8px;
  }

  body.browser-mode .topbar-actions > .role-strip {
    grid-area: account;
    min-width: 0;
    width: 100%;
  }

  body.browser-mode .topbar-actions > .wallet-box {
    grid-area: wallet;
    min-width: 0;
    width: 100%;
  }

  body.browser-mode .topbar-actions > .instructions-button {
    display: none !important;
  }

  body.browser-mode .topbar-actions .wallet-box {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
    min-height: 55px;
    padding: 7px 8px;
    gap: 1px 5px;
  }

  body.browser-mode .topbar-actions .wallet-box > span {
    grid-column: 1;
    font-size: 9px;
  }

  body.browser-mode .topbar-actions .wallet-box > strong {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    font-size: 1.02rem;
  }

  body.browser-mode .topbar-actions .wallet-box > .topup-button {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-height: 32px;
    padding: 0 8px;
    font-size: 9px;
  }

  body.browser-mode .topbar-actions .browser-currency-switch {
    display: none !important;
  }
}

@media (max-width: 380px) {
  body.browser-mode .topbar-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
}

@media (min-width: 1180px) {
  .topbar-user-tools {
    display: none !important;
  }

  .topbar-actions > .role-strip {
    min-width: 190px;
    max-width: 218px;
    padding: 10px 11px;
  }

  .topbar-actions > .wallet-box {
    min-width: 205px;
    padding: 10px 11px;
  }
}

@media (min-width: 1180px) {
  .topbar {
    grid-template-columns: max-content max-content max-content minmax(0, 1fr) !important;
  }

  .topbar-actions {
    grid-column: 2 !important;
  }

  .desktop-nav {
    grid-column: 3 !important;
    justify-self: start !important;
  }
}

.auth-gate-modal:not(.hidden) {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  align-content: center;
  justify-items: center;
  overflow-y: auto;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse at 50% 24%, rgba(47, 90, 180, .24), transparent 42%),
    radial-gradient(ellipse at 50% 100%, rgba(15, 32, 71, .32), transparent 56%),
    rgba(5, 8, 15, .96);
  backdrop-filter: blur(18px);
  animation: auth-gate-backdrop-in .45s ease both;
}

.auth-gate-card {
  display: grid;
  justify-items: center;
  width: min(560px, 100%);
  max-height: none;
  padding: clamp(28px, 6vw, 48px);
  overflow: visible;
  border-color: rgba(132, 166, 255, .24);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 50% 0, rgba(79, 119, 239, .17), transparent 48%),
    linear-gradient(155deg, rgba(19, 28, 45, .98), rgba(10, 15, 25, .99));
  box-shadow: 0 36px 120px rgba(0, 0, 0, .55), 0 0 80px rgba(52, 93, 202, .12), inset 0 1px rgba(255, 255, 255, .07);
  text-align: center;
  animation: auth-gate-card-in .65s cubic-bezier(.16, 1, .3, 1) both;
}

.auth-gate-icon {
  position: relative;
  width: 78px;
  height: 78px;
  margin: 0 0 23px;
  border: 1px solid rgba(138, 174, 255, .45);
  border-radius: 25px;
  color: #f1f6ff;
  background: linear-gradient(145deg, #63c9ff, #5274f3 72%);
  box-shadow: 0 15px 40px rgba(69, 121, 255, .26), inset 0 1px rgba(255, 255, 255, .38);
  animation: auth-mark-float 3.4s ease-in-out infinite;
}

.auth-gate-icon::before {
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(120, 163, 255, .16);
  border-radius: 31px;
  content: "";
  animation: auth-mark-ring 3.4s ease-in-out infinite;
}

.auth-gate-icon svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 4px rgba(21, 45, 113, .3));
}

.auth-gate-card > .section-kicker {
  margin-bottom: 10px;
  color: #9ab4f3;
}

.auth-gate-card h2 {
  max-width: 100%;
  margin: 0 0 12px;
  font-size: clamp(25px, 5vw, 34px);
  letter-spacing: -.045em;
}

.auth-gate-card > .help-copy {
  max-width: 42ch;
  margin-bottom: 4px;
  color: #a8b5ca;
  font-size: 14px;
  line-height: 1.7;
}

.auth-gate-steps {
  display: grid;
  width: 100%;
  gap: 9px;
  margin: 22px 0;
  text-align: left;
}

.auth-gate-steps div {
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid rgba(164, 189, 231, .1);
  border-radius: 13px;
  background: rgba(255, 255, 255, .035);
  font-size: 12px;
  line-height: 1.5;
}

.auth-gate-steps b {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(128, 165, 255, .22);
  border-radius: 9px;
  color: #bbceff;
  background: rgba(105, 142, 244, .13);
  font-size: 10px;
}

.auth-gate-steps strong {
  color: #eef3ff;
}

.auth-gate-action {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: 15px;
  font-size: 14px;
  box-shadow: 0 12px 32px rgba(79, 118, 244, .25), inset 0 1px rgba(255, 255, 255, .2);
}

.auth-gate-action span {
  font-size: 19px;
}

.auth-gate-help-action {
  display: flex;
  align-items: center;
  align-self: center;
  width: auto;
  max-width: 100%;
  gap: 9px;
  margin-top: 9px;
  padding: 8px 11px;
  border: 1px solid rgba(154, 181, 220, .14);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, .035);
  text-align: left;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.auth-gate-help-action:hover {
  transform: translateY(-1px);
  border-color: rgba(140, 168, 255, .32);
  color: var(--text);
  background: rgba(140, 168, 255, .08);
}

.auth-gate-help-icon {
  display: grid;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(140, 168, 255, .22);
  border-radius: 9px;
  color: #cbd8ff;
  background: rgba(140, 168, 255, .1);
  font-size: 16px;
  font-weight: 800;
}

.auth-gate-help-action > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.auth-gate-help-action strong {
  font-size: 11px;
}

.auth-gate-help-action small {
  overflow-wrap: anywhere;
  color: #94a3ba;
  font-size: 9px;
  line-height: 1.45;
}

.auth-gate-help-arrow {
  margin-left: auto;
  color: #9eb5ef;
  font-size: 17px;
}

.auth-gate-note {
  max-width: 42ch;
  margin-top: 17px;
  line-height: 1.6;
}

@keyframes auth-gate-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes auth-gate-card-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes auth-mark-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes auth-mark-ring {
  0%, 100% { opacity: .48; transform: scale(1); }
  50% { opacity: .9; transform: scale(1.04); }
}

@media (max-width: 560px) {
  .auth-gate-modal:not(.hidden) {
    padding-right: 16px;
    padding-left: 16px;
  }

  .auth-gate-card {
    padding: 30px 21px 26px;
    border-radius: 23px;
  }

  .auth-gate-icon {
    width: 68px;
    height: 68px;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-gate-modal:not(.hidden),
  .auth-gate-card,
  .auth-gate-icon,
  .auth-gate-icon::before {
    animation: none !important;
  }
}

.support-footer {
  width: 100%;
}

.support-box {
  width: min(100%, 820px);
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
}

.countries-panel .country-list {
  max-height: min(70dvh, 700px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
