/* ==========================================================================
   HitNexa design system (member, admin & auth areas) — deep space / nexa violet / electric cyan
   Uses CSS logical properties so the same stylesheet serves LTR and RTL.
   ========================================================================== */
:root {
  --navy-950: #060914; --navy-900: #0b1024; --navy-850: #10162f; --navy-800: #171f40; --navy-700: #232d5a;
  --accent: #6d4aff; --accent-600: #5634e8; --accent-50: #f1eeff; --cyan: #14d4f4; --violet: #7c5cff; --lime: #b9ff4a;
  --text: #0b1530; --text-2: #3a4566; --muted: #6b7591; --bg: #f3f6fc; --card: #ffffff; --border: #e3e8f3; --border-2: #d3dbeb;
  --success: #15a05a; --success-50: #e8f8ef; --warning: #c77a06; --warning-50: #fff5e3; --danger: #d93636; --danger-50: #fdecec; --info-50: #e9f6fd;
  --radius: 14px; --radius-sm: 10px; --shadow: 0 1px 2px rgba(11,21,48,.05), 0 6px 24px rgba(11,21,48,.06);
  --shadow-lg: 0 20px 50px rgba(5,11,28,.18);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sidebar: 248px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
[dir="rtl"] body { font-size: 15.5px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 2.5vw, 2rem); } h2 { font-size: 1.35rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .88em; }
.ico { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .nowrap { white-space: nowrap; }
.text-success { color: var(--success); } .text-danger { color: var(--danger); } .text-end { text-align: end; }
.break { word-break: break-all; }
.code-pill { background: var(--bg); padding: 3px 6px; border-radius: 6px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font: 600 14px/1.2 var(--font); cursor: pointer; text-decoration: none !important; transition: transform .12s, background .15s, box-shadow .15s, border-color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--cyan))); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-primary:hover { box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--border-2); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: inherit; }
.btn-ghost:hover { background: rgba(127,140,170,.12); }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.18); }
.btn-light:hover { background: rgba(255,255,255,.18); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-soft { background: var(--danger-50); color: var(--danger); }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.badge-success { background: var(--success-50); color: var(--success); } .badge-warning { background: var(--warning-50); color: var(--warning); }
.badge-danger { background: var(--danger-50); color: var(--danger); } .badge-info { background: var(--info-50); color: #0b7fb0; }
.badge-muted { background: #eef1f7; color: var(--muted); } .badge-accent { background: var(--accent-50); color: var(--accent); }

/* ---------- Cards / layout primitives ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-block-end: 1px solid var(--border); }
.card-head h2, .card-head h3 { margin: 0; font-size: 1rem; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stack > * + * { margin-block-start: 20px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--border); margin: 18px 0; }

/* ---------- Forms ---------- */
.field { margin-block-end: 16px; }
.field label, .label { display: block; font-weight: 600; font-size: 13.5px; margin-block-end: 6px; color: var(--text-2); }
.input, .select, .textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--card); color: var(--text);
  font: 14.5px/1.4 var(--font); transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.textarea { min-height: 120px; resize: vertical; }
.input.is-invalid, .is-invalid .input, .is-invalid .select { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 12.5px; margin-block-start: 5px; }
.hint { color: var(--muted); font-size: 12.5px; margin-block-start: 5px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.input-group { display: flex; }
.input-group .input { border-start-end-radius: 0; border-end-end-radius: 0; }
.input-group .btn { border-start-start-radius: 0; border-end-start-radius: 0; }
.pw-wrap { position: relative; }
.pw-toggle { position: absolute; inset-inline-end: 8px; inset-block-start: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; }
.hp { position: absolute !important; inset-inline-start: -9999px; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row img { border-radius: 8px; border: 1px solid var(--border); height: 46px; cursor: pointer; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 12px 16px; background: #f8fafe; border-block-end: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 13px 16px; border-block-end: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-block-end: 0; }
.table tbody tr:hover { background: #fafbff; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.table a.sort { color: inherit; }
.cell-title { font-weight: 600; color: var(--text); }
.cell-sub { color: var(--muted); font-size: 12.5px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amount-pos { color: var(--success); font-weight: 600; } .amount-neg { color: var(--danger); font-weight: 600; }

/* ---------- Alerts / toasts / empty / skeleton ---------- */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; font-size: 14px; border: 1px solid; }
.alert-info { background: var(--info-50); border-color: #c5e6f7; color: #075f86; }
.alert-warning { background: var(--warning-50); border-color: #f6dca8; color: #8a5400; }
.alert-danger { background: var(--danger-50); border-color: #f6c7c7; color: #9b1c1c; }
.alert-success { background: var(--success-50); border-color: #bfe8d0; color: #0d6b3c; }
.toast-stack { position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; background: var(--navy-900); color: #fff; border-radius: 12px; box-shadow: var(--shadow-lg);
  font-size: 14px; animation: toastIn .25s ease-out; border-inline-start: 4px solid var(--accent); }
.toast.success { border-color: #34d399; } .toast.error { border-color: #f87171; } .toast.warning { border-color: #fbbf24; }
.toast button { margin-inline-start: auto; background: none; border: 0; color: rgba(255,255,255,.6); cursor: pointer; padding: 0 0 0 6px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .empty-ico { width: 56px; height: 56px; display: inline-grid; place-items: center; border-radius: 16px; background: var(--accent-50); color: var(--accent); margin-block-end: 14px; }
.empty .empty-ico .ico { width: 26px; height: 26px; }
.empty h3 { color: var(--text); }
.skeleton { background: linear-gradient(90deg, #edf1f8 25%, #f6f8fc 50%, #edf1f8 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(5,11,28,.55); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 900; padding: 20px; animation: fade .15s; }
.modal { background: var(--card); border-radius: 16px; width: min(440px, 100%); box-shadow: var(--shadow-lg); padding: 24px; }
.modal h3 { margin-block-end: 8px; } .modal .row { justify-content: flex-end; margin-block-start: 20px; }
@keyframes fade { from { opacity: 0; } }
[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; inset-block-end: calc(100% + 8px); inset-inline-start: 50%; transform: translateX(-50%); background: var(--navy-900);
  color: #fff; font-size: 12px; font-weight: 500; padding: 6px 10px; border-radius: 8px; white-space: nowrap; z-index: 50; pointer-events: none; }
[dir="rtl"] [data-tip]:hover::after { transform: translateX(50%); }

/* ---------- Pagination / tabs / filters ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 16px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--card); color: var(--text-2); font-size: 14px; text-decoration: none; }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.tabs { display: flex; gap: 4px; border-block-end: 1px solid var(--border); margin-block-end: 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 14px; border-block-end: 2px solid transparent; margin-block-end: -1px; white-space: nowrap; text-decoration: none; }
.tabs a.active { color: var(--accent); border-color: var(--accent); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; padding: 16px 22px; border-block-end: 1px solid var(--border); }
.filters .input, .filters .select { width: auto; min-width: 160px; padding: 9px 12px; }
.filters .search { flex: 1; min-width: 200px; }

/* ==========================================================================
   Public site
   ========================================================================== */
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.site { background: var(--navy-950); color: #dbe4ff; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(5,11,28,.78); backdrop-filter: saturate(160%) blur(14px); border-block-end: 1px solid rgba(255,255,255,.06); }
.site-header .container { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -.03em; text-decoration: none !important; direction: ltr; }
.brand .ico { width: 30px; height: 30px; color: var(--accent); }
.brand-mark { flex: none; display: block; filter: drop-shadow(0 6px 14px rgba(109,74,255,.35)); }
.brand-word b { font-weight: 800; background: linear-gradient(90deg, #8b6dff, #22c7f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand img { height: 32px; width: auto; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: #aebadb; font-weight: 500; font-size: 14.5px; }
.site-nav a:hover { color: #fff; text-decoration: none; }
.site-header .actions { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; }
.lang-switch { position: relative; }
.lang-switch select { background: transparent; border: 1px solid rgba(255,255,255,.18); color: #cfd8f5; border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 13px; }
.lang-switch select option { color: #0f172a; background: #fff; }
html[data-theme="dark"] .lang-switch select option { color: #e5e7eb; background: #0f172a; }
.lang-switch select { cursor: pointer; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
.hero { position: relative; overflow: hidden; padding: 84px 0 96px; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 120%; background:
  radial-gradient(600px 380px at 75% 30%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%),
  radial-gradient(500px 300px at 15% 10%, rgba(34,211,238,.18), transparent 70%); pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(47,123,255,.14); color: #9cc0ff; font-size: 13px; font-weight: 600; border: 1px solid rgba(47,123,255,.3); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); color: #fff; margin: 18px 0; letter-spacing: -.03em; }
.hero h1 .grad { background: linear-gradient(90deg, #6aa5ff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.12rem; color: #a9b6da; max-width: 560px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.hero .assure { display: flex; gap: 18px; flex-wrap: wrap; color: #8696c2; font-size: 13.5px; }
.hero .assure span { display: inline-flex; gap: 6px; align-items: center; }
.hero .assure .ico { color: #34d399; width: 16px; height: 16px; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.35)); }
.orbit-ring { transform-origin: 260px 210px; animation: orbit 22s linear infinite; }
.orbit-ring.r2 { animation-duration: 34s; animation-direction: reverse; }
@keyframes orbit { to { transform: rotate(360deg); } }
.pulse-dot { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .orbit-ring, .pulse-dot { animation: none; } }
.stats-strip { border-block: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.02); }
.stats-strip .container { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 28px 0; }
.stats-strip strong { display: block; font-size: 2rem; color: #fff; letter-spacing: -.02em; }
.stats-strip span { color: #8696c2; font-size: 14px; }
.section { padding: 88px 0; }
.section-light { background: var(--bg); color: var(--text); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.site .section:not(.section-light) h2, .site .section:not(.section-light) h3 { color: #fff; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.site .section:not(.section-light) .section-head p { color: #93a2cb; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .f-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-50), #e3fbff); color: var(--accent); margin-block-end: 16px; }
.feature .f-ico .ico { width: 22px; height: 22px; }
.feature p { color: var(--muted); margin: 0; font-size: 14.5px; }
.steps { counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.08); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; margin-block-end: 16px;
  background: linear-gradient(135deg, var(--accent), var(--cyan)); color: #fff; font-weight: 800; }
.step p { color: #93a2cb; margin: 0; }
.flow-diagram { margin-block-start: 40px; padding: 24px; border-radius: var(--radius); border: 1px dashed rgba(255,255,255,.12); }
.flow-diagram svg { width: 100%; height: auto; }
.pricing { align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 30px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); position: relative; }
.price-card.featured { border: 2px solid var(--accent); box-shadow: 0 20px 50px color-mix(in srgb, var(--accent) 18%, transparent); }
.price-card .tag { background: var(--accent) !important; color: #fff !important; border: 0; box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 40%, transparent); position: absolute; inset-block-start: -12px; inset-inline-start: 50%; transform: translateX(-50%); }
[dir="rtl"] .price-card .tag { transform: translateX(50%); }
.price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 4px; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 26px; flex: 1; }
.price-card li { display: flex; gap: 10px; padding: 7px 0; font-size: 14.5px; color: var(--text-2); }
.price-card li .ico { color: var(--success); width: 18px; }
.price-card li.off { color: var(--muted); } .price-card li.off .ico { color: #b5bdd0; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; margin-block-end: 12px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-block-end: 18px; margin: 0; }
.testimonial { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.testimonial p { font-size: 15px; color: var(--text-2); }
.cta-band { padding: 64px 0; text-align: center; background: linear-gradient(135deg, var(--navy-800), var(--navy-900)); }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-band p { color: #9fb0da; }
.site-footer { padding: 56px 0 28px; border-block-start: 1px solid rgba(255,255,255,.06); color: #8190bb; font-size: 14px; }
.site-footer .grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.site-footer h4 { color: #fff; font-size: 14px; margin-block-end: 14px; }
.site-footer a { display: block; color: #8d9cc6; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { margin-block-start: 40px; padding-block-start: 20px; border-block-start: 1px solid rgba(255,255,255,.06); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.prose { max-width: 800px; margin: 0 auto; background: var(--card); color: var(--text); border-radius: var(--radius); padding: 40px; border: 1px solid var(--border); }
.prose h2 { margin-block-start: 1.6em; font-size: 1.2rem; } .prose p, .prose li { color: var(--text-2); }
.page-hero { padding: 56px 0 40px; text-align: center; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #93a2cb; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); }
.auth-side { background: radial-gradient(500px 400px at 30% 20%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%), var(--navy-950);
  color: #c9d4f5; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { color: #fff; font-size: 2rem; letter-spacing: -.02em; margin-block-start: 40px; }
.auth-side ul { list-style: none; padding: 0; margin: 24px 0 0; }
.auth-side li { display: flex; gap: 10px; padding: 8px 0; }
.auth-side li .ico { color: var(--cyan); }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: min(430px, 100%); }
.auth-card h1 { font-size: 1.7rem; }
.auth-card .sub { color: var(--muted); margin-block-end: 26px; }
.auth-foot { text-align: center; margin-block-start: 20px; color: var(--muted); font-size: 14px; }
.strength { height: 5px; border-radius: 4px; background: var(--border); margin-block-start: 8px; overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }

/* ==========================================================================
   App shell (member + admin)
   ========================================================================== */
.app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--navy-950); color: #9fb0da; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 18px 14px; }
.sidebar .brand { padding: 4px 10px 22px; }
.nav-section { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #5b6b97; padding: 16px 12px 6px; font-weight: 700; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #a8b6dc; font-weight: 500; font-size: 14.5px; text-decoration: none !important; transition: background .15s, color .15s; }
.nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-item.active { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 28%, transparent), rgba(47,123,255,.05)); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
[dir="rtl"] .nav-item.active { box-shadow: inset -3px 0 0 var(--accent); background: linear-gradient(-90deg, color-mix(in srgb, var(--accent) 28%, transparent), rgba(47,123,255,.05)); }
.nav-item .count { margin-inline-start: auto; background: var(--accent); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 999px; }
.nav-item.surf-cta { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--cyan))); color: #fff; margin: 6px 0; }
.sidebar-foot { margin-block-start: auto; padding: 14px 10px 0; }
.plan-chip { padding: 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); font-size: 13px; }
.plan-chip strong { color: #fff; display: block; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 28px; background: rgba(255,255,255,.85); backdrop-filter: blur(10px); border-block-end: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.topbar .balance { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; background: var(--accent-50); color: var(--accent); font-weight: 700; font-size: 14px; }
.topbar .icon-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--text-2); background: none; border: 0; cursor: pointer; }
.topbar .icon-btn:hover { background: #eef2fa; text-decoration: none; }
.topbar .dot { position: absolute; inset-block-start: 7px; inset-inline-end: 7px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--cyan)); color: #fff; display: grid; place-items: center; font-weight: 700; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 84px; height: 84px; font-size: 30px; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 8px); background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 210px; padding: 6px; display: none; z-index: 60; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 8px; color: var(--text-2); font: 500 14px var(--font); background: none; border: 0; cursor: pointer; text-decoration: none; text-align: start; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--bg); }
.content { padding: 28px; flex: 1; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-block-end: 24px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat { padding: 20px; position: relative; overflow: hidden; }
.stat .label { font-size: 13px; color: var(--muted); font-weight: 600; margin: 0; display: flex; align-items: center; gap: 8px; }
.stat .value { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; margin-block-start: 8px; }
.stat .s-ico { position: absolute; inset-inline-end: 16px; inset-block-start: 16px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-50); color: var(--accent); }
.stat.hl { background: linear-gradient(135deg, var(--navy-850), var(--navy-700)); border: 0; color: #fff; }
.stat.hl .label { color: #9fb0da; } .stat.hl .s-ico { background: rgba(255,255,255,.1); color: var(--cyan); }
.chart { width: 100%; height: 220px; position: relative; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .grid-line { stroke: var(--border); stroke-dasharray: 3 4; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart-tip { position: absolute; pointer-events: none; background: var(--navy-900); color: #fff; padding: 6px 10px; border-radius: 8px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -120%); display: none; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-block-end: 1px solid var(--border); font-size: 14px; }
.list li:last-child { border: 0; }
.progress { height: 8px; background: #e9eef8; border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--cyan)); border-radius: 99px; transition: width .3s linear; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
.copy-box { display: flex; gap: 8px; }
.copy-box .input { font-family: var(--mono); font-size: 13px; background: #f8fafe; }
.announcement { border-inline-start: 4px solid var(--accent); }
.ad-text { display: block; padding: 14px 16px; border: 1px dashed var(--border-2); border-radius: 12px; color: var(--text); text-decoration: none !important; }
.ad-text small { color: var(--muted); display: block; }
.ad-label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ticket-msg { padding: 16px 18px; border-radius: 12px; background: #f8fafe; border: 1px solid var(--border); margin-block-end: 12px; }
.ticket-msg.staff { background: var(--accent-50); border-color: #cfe0ff; }
.ticket-msg .meta { font-size: 12.5px; color: var(--muted); margin-block-end: 6px; }
.admin .sidebar { background: #070f24; }
.admin-badge { font-size: 10px; background: var(--danger); color: #fff; padding: 2px 6px; border-radius: 6px; margin-inline-start: 6px; letter-spacing: .05em; }

/* ==========================================================================
   Surf browser
   ========================================================================== */
.surf-page { height: 100vh; display: flex; flex-direction: column; background: var(--navy-950); overflow: hidden; }
.surf-bar { flex: none; display: flex; align-items: center; gap: 16px; padding: 10px 18px; background: var(--navy-900); color: #cfd8f5; border-block-end: 1px solid rgba(255,255,255,.07); min-height: 66px; flex-wrap: wrap; }
.surf-bar .brand { font-size: 16px; } .surf-bar .brand .ico { width: 24px; height: 24px; }
.timer { position: relative; width: 46px; height: 46px; flex: none; }
.timer svg { width: 46px; height: 46px; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 4; }
.timer .track { stroke: rgba(255,255,255,.1); } .timer .bar { stroke: var(--cyan); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.timer span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 15px; }
.surf-site { min-width: 0; flex: 1; }
.surf-site strong { display: block; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.surf-site small { color: #8696c2; }
.surf-metrics { display: flex; gap: 18px; }
.metric { text-align: center; } .metric b { display: block; color: #fff; font-size: 16px; } .metric small { color: #7f8fbb; font-size: 11.5px; }
.surf-status { font-size: 12.5px; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.07); }
.surf-status.ok { color: #6ee7b7; } .surf-status.wait { color: #fcd34d; } .surf-status.err { color: #fca5a5; }
.surf-progress { height: 3px; background: rgba(255,255,255,.06); flex: none; }
.surf-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--cyan)); transition: width .25s linear; }
.surf-stage { flex: 1; position: relative; background: #fff; }
.surf-stage iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.surf-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5,11,28,.82); backdrop-filter: blur(4px); z-index: 5; padding: 20px; }
.surf-panel { background: var(--card); color: var(--text); border-radius: 18px; padding: 30px; width: min(480px, 100%); text-align: center; box-shadow: var(--shadow-lg); }
.surf-panel h2 { margin-block-end: 6px; }
.surf-panel p { color: var(--muted); }
.challenge-target { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--accent-50); color: var(--accent); margin: 6px 0 14px; }
.challenge-target .ico { width: 34px; height: 34px; }
.challenge-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-block-start: 10px; }
.challenge-opts button { aspect-ratio: 1; border-radius: 14px; border: 2px solid var(--border); background: var(--card); cursor: pointer; display: grid; place-items: center; color: var(--text-2); transition: border-color .15s, transform .15s; }
.challenge-opts button:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--accent); }
.challenge-opts .ico { width: 30px; height: 30px; }
.reward-pop { font-size: 2.4rem; font-weight: 800; color: var(--success); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main > * { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; margin-inline: auto; }
  .site-nav { display: none; position: absolute; inset-block-start: 68px; inset-inline: 0; flex-direction: column; gap: 0; padding: 10px 20px 18px; background: var(--navy-950); border-block-end: 1px solid rgba(255,255,255,.08); }
  .site-nav.open { display: flex; } .site-nav a { padding: 10px 0; }
  .nav-toggle { display: inline-flex; }
  .site-header .actions .btn-ghost { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; width: 280px; z-index: 200; transform: translateX(-100%); transition: transform .25s; }
  [dir="rtl"] .sidebar { transform: translateX(100%); }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(5,11,28,.5); z-index: 150; }
  .topbar { padding: 0 14px; } .content { padding: 18px 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .surf-metrics { order: 5; width: 100%; justify-content: space-around; }
  .surf-site strong { max-width: 180px; }
}
@media (max-width: 560px) {
  .stat-grid, .grid-4, .grid-main { grid-template-columns: 1fr; }
  .stats-strip .container { grid-template-columns: 1fr; gap: 18px; }
  .card-body { padding: 18px; }
  .hide-sm { display: none !important; }
  .topbar .balance span { display: none; }
  .prose { padding: 24px; }
  .challenge-opts { gap: 8px; }
}
#app-menu-btn { display: none; }
@media (max-width: 900px) { #app-menu-btn { display: grid; } }
.topbar .lang-switch select, .auth-card .lang-switch select { color: var(--text); border-color: var(--border-2); }

/* ==========================================================================
   v1.1 — professional components
   ========================================================================== */
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-block-end: 10px; }
.site .section:not(.section-light) .kicker, .page-hero .kicker { color: var(--cyan); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: livepulse 2s infinite; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.flag { display: inline-block; vertical-align: -2px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); object-fit: cover; }
.flag-emoji { font-size: 1.1em; }
.nav-login { color: #cfd8f5; }

/* hero mock */
.hero-art { min-height: 360px; }
.mock-window { position: relative; border-radius: 16px; background: #0d1a3d; border: 1px solid #23366f; box-shadow: 0 40px 80px rgba(0,0,0,.45); overflow: hidden; transform: perspective(1200px) rotateY(-6deg) rotateX(3deg); }
[dir="rtl"] .mock-window { transform: perspective(1200px) rotateY(6deg) rotateX(3deg); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #0a1430; border-block-end: 1px solid #1b2a59; color: #7f8fbb; font-size: 12px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3d78; } .mock-bar i:first-child { background: #f87171; } .mock-bar i:nth-child(2) { background: #fbbf24; } .mock-bar i:nth-child(3) { background: #34d399; }
.mock-bar span { margin-inline-start: 10px; }
.mock-surfbar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #0b1636; }
.mock-timer { position: relative; width: 40px; height: 40px; } .mock-timer svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.mock-timer circle { fill: none; stroke-width: 4; } .mock-timer .track { stroke: rgba(255,255,255,.1); } .mock-timer .bar { stroke: var(--cyan); stroke-dasharray: 119; stroke-dashoffset: 48; stroke-linecap: round; }
.mock-timer b { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 13px; }
.mock-site { flex: 1; } .mock-site b { display: block; color: #fff; font-size: 13px; } .mock-site small { color: #6ee7b7; font-size: 11px; }
.mock-pill { padding: 6px 10px; border-radius: 99px; background: rgba(52,211,153,.15); color: #6ee7b7; font-weight: 700; font-size: 12px; }
.mock-page { background: #f3f6fc; padding: 18px; height: 220px; }
.mp-hero { height: 70px; border-radius: 10px; background: linear-gradient(135deg, #6d4aff, #22d3ee); margin-block-end: 14px; }
.mp-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-block-end: 14px; } .mp-row i { height: 48px; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.mp-lines i { display: block; height: 8px; border-radius: 4px; background: #dfe6f3; margin-block-end: 8px; }
.float-card { position: absolute; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(13,26,61,.92); border: 1px solid #2a3d78; color: #dbe4ff; box-shadow: 0 20px 40px rgba(0,0,0,.35); backdrop-filter: blur(6px); animation: floaty 6s ease-in-out infinite; }
.float-card .ico { color: var(--cyan); width: 22px; height: 22px; } .float-card b { display: block; color: #fff; font-size: 13px; } .float-card small { color: #8ea2d8; font-size: 11.5px; }
.fc-1 { inset-block-end: -18px; inset-inline-start: -24px; } .fc-2 { inset-block-start: 40px; inset-inline-end: -20px; animation-delay: -3s; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .float-card, .live-dot { animation: none; } }
.stats-strip .container { grid-template-columns: repeat(4, 1fr); }
.step-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(34,211,238,.12); color: var(--cyan); margin-block-end: 14px; }
.step::before { display: none; }

/* calculator */
.calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; overflow: hidden; }
.calc-copy { padding: 34px; }
.calc-copy input[type=range] { width: 100%; accent-color: var(--accent); }
.calc-results { padding: 34px; background: linear-gradient(160deg, var(--navy-850), var(--navy-700)); color: #cfd8f5; display: grid; gap: 14px; align-content: center; }
.calc-results div { display: flex; justify-content: space-between; align-items: baseline; border-block-end: 1px solid rgba(255,255,255,.08); padding-block-end: 10px; }
.calc-results b { font-size: 1.6rem; color: #fff; } .calc-results .hl b { color: var(--cyan); font-size: 2rem; }
.calc-results p { color: #8ea2d8 !important; margin: 0; }

/* compare */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.compare .table th.us, .compare .table td.us { background: var(--accent-50); color: var(--accent); text-align: center; font-weight: 700; }
.compare .table td:not(:first-child), .compare .table th:not(:first-child) { text-align: center; }
.country-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.country-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--border); font-size: 14px; }
.country-chip b { color: var(--accent); }
.guide-card, .post-card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); text-decoration: none !important; color: var(--text); transition: transform .2s, box-shadow .2s; overflow: hidden; }
.guide-card { padding: 24px; } .guide-card p, .post-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.guide-card:hover, .post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.guide-card .more { color: var(--accent); font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.post-card img { width: 100%; height: 180px; object-fit: cover; }
.post-cover { height: 140px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-850), var(--navy-700)); color: var(--accent); }
.post-cover .ico { width: 48px; height: 48px; }
.post-body { padding: 20px; } .post-body h2, .post-body h3 { font-size: 1.1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 0 0 14px; font-size: 13px; }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 6px; color: #5b6b97; }
.breadcrumbs a { color: #9fb0da; } .breadcrumbs span { color: #dbe4ff; }
.landing-hero .lead { color: #a9b6da; font-size: 1.1rem; margin-block-end: 24px; }
.landing-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.landing-grid .prose { max-width: none; margin: 0; }
.landing-aside { position: sticky; top: 90px; }
.toc { background: var(--bg); border-radius: 12px; padding: 16px 20px; margin-block-end: 20px; }
.toc ol { margin: 8px 0 0; padding-inline-start: 20px; } .toc li { padding: 2px 0; }
.cta-inline { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-block-start: 32px; padding: 20px 22px; border-radius: 14px; background: linear-gradient(135deg, var(--accent-50), #e6fbff); }
.cta-inline p { margin: 4px 0 0; color: var(--text-2); }
.link-list { list-style: none; padding: 0; margin: 0; } .link-list li { padding: 7px 0; border-block-end: 1px solid var(--border); } .link-list li:last-child { border: 0; }
.aside-cta .ico { width: 28px; height: 28px; color: var(--accent); }
.prose blockquote { border-inline-start: 4px solid var(--accent); margin: 16px 0; padding: 8px 16px; background: var(--bg); border-radius: 8px; }
.footer-langs { display: flex; gap: 12px; margin-block-start: 12px; } .footer-langs a { display: inline; }
.ad-zone { display: grid; gap: 10px; justify-items: center; }
.ad-slot { position: relative; max-width: 100%; } .ad-slot img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.ad-slot iframe { display: block; max-width: 100%; border: 0; border-radius: 8px; }
.ad-slot .ad-label { position: absolute; inset-block-start: 4px; inset-inline-end: 6px; background: rgba(0,0,0,.45); color: #fff; padding: 1px 6px; border-radius: 4px; z-index: 1; }
.ad-wrap { padding-block: 10px; }
.ad-text { width: 100%; }

/* member dashboard */
.welcome-card { display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; padding: 28px 30px; border-radius: 18px; margin-block-end: 20px;
  background: radial-gradient(500px 240px at 90% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%), linear-gradient(135deg, var(--navy-850), var(--navy-700)); color: #cfd8f5; }
[dir="rtl"] .welcome-card { background: radial-gradient(500px 240px at 10% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%), linear-gradient(225deg, var(--navy-850), var(--navy-700)); }
.welcome-card h1 { color: #fff; margin: 0 0 6px; } .welcome-card p { color: #9fb0da; }
.goal { display: flex; gap: 18px; align-items: center; padding: 16px 20px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.goal strong { color: #fff; } .goal p { margin: 4px 0 8px; color: #9fb0da; }
.goal-ring { --p: 0; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; text-align: center; flex: none;
  background: radial-gradient(closest-side, var(--navy-800) 78%, transparent 80% 100%), conic-gradient(var(--cyan) calc(var(--p) * 1%), rgba(255,255,255,.1) 0); }
.goal-ring b { color: #fff; font-size: 1.3rem; line-height: 1; display: block; } .goal-ring small { color: #8ea2d8; font-size: 11px; }
.streak-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 99px; background: rgba(251,191,36,.15); color: #d97706; font-weight: 700; font-size: 13px; }
.welcome-card .streak-chip { color: #fcd34d; }
.autoassign { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .autoassign > div { flex: 1; min-width: 240px; } .autoassign .select { width: auto; }
.bar-mini { width: 90px; height: 6px; border-radius: 4px; background: #e9eef8; overflow: hidden; } .bar-mini i { display: block; height: 100%; background: var(--accent); }
.hour-bars { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 120px; }
.hour-bars i { display: block; background: linear-gradient(180deg, var(--accent), var(--cyan)); border-radius: 3px 3px 0 0; min-height: 3px; }
.hour-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-block-start: 6px; }
.prize-strip { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-block-end: 18px; }
.prize { display: flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
.prize.p1 .ico { color: #f59e0b; } .prize.p2 .ico { color: #94a3b8; } .prize.p3 .ico { color: #c2733d; }
.rank { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; font-size: 13px; color: #fff; }
.rank.r1 { background: #f59e0b; color: #3b2300; } .rank.r2 { background: #cbd5e1; color: #1e293b; } .rank.r3 { background: #c2733d; }
.table tr.me td { background: var(--accent-50); }

/* surf additions */
.goal-metric { min-width: 90px; } .goal-metric small .ico { width: 12px; height: 12px; color: #fbbf24; }
.goal-line { display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,.1); margin-block-start: 4px; overflow: hidden; }
.goal-line i { display: block; height: 100%; background: #fbbf24; }
.surf-ad { flex-basis: 100%; display: flex; justify-content: center; }
.surf-ad img { max-width: 100%; height: auto; border-radius: 6px; display: block; max-height: 60px; } .surf-ad iframe { max-width: 100%; height: 60px; border: 0; border-radius: 6px; display: block; }
.surf-ad-text { color: #cfd8f5; font-size: 13px; } .surf-ad-text b { color: #fff; }
@media (min-width: 1280px) { .surf-ad { flex-basis: auto; order: 4; } }
.bonus-pop { margin-block-start: 10px; padding: 10px 14px; border-radius: 12px; background: #fff7e6; color: #b45309; font-weight: 700; }

/* country picker */
.cpicker { border: 1px solid var(--border-2); border-radius: 14px; background: var(--card); overflow: hidden; }
.cpicker.disabled .cpicker-list, .cpicker.disabled .cpicker-tools { pointer-events: none; }
.cpicker-top { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 12px 12px 0; }
.cpicker-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; align-items: center; flex: 1; max-height: 112px; overflow: auto; }
.cpicker-count { font: 700 12px var(--font); color: var(--accent); white-space: nowrap; padding-top: 6px; }
.cpicker-all { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); }
.fl-globe { background: none !important; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; opacity: .6; }
.cpicker .chip { display: inline-flex; gap: 6px; align-items: center; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 99px; padding: 4px 10px; background: var(--accent-50); color: var(--accent); font: 600 12.5px var(--font); cursor: pointer; }
.cpicker .chip:hover { border-color: var(--accent); }
.cpicker-tools { padding: 10px 12px; display: grid; gap: 8px; border-block-end: 1px solid var(--border); }
.cpicker-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-btn { border: 1px solid var(--border-2); background: var(--bg); color: var(--text); border-radius: 8px; padding: 5px 10px; font: 600 12px var(--font); cursor: pointer; }
.cp-btn:hover { border-color: var(--accent); color: var(--accent); }
.cp-btn-ghost { background: transparent; color: var(--muted); }
.cpicker-list { max-height: 340px; overflow: auto; padding: 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 6px; align-content: start; }
.cpicker-row { display: flex; gap: 10px; align-items: center; padding: 7px 8px; font-size: 13.5px; cursor: pointer; border-radius: 8px; color: var(--text); min-width: 0; }
.cpicker-row[hidden] { display: none; }
.cpicker-row:hover { background: var(--bg); }
.cpicker-row .cp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpicker-row code { font-size: 11px; color: var(--muted); background: var(--bg); border-radius: 4px; padding: 1px 5px; }
.cpicker-row.on { background: var(--accent-50); font-weight: 600; } .cpicker-row.on code { color: var(--accent); }
.cpicker-row input { margin: 0; accent-color: var(--accent); }
.cpicker-empty { grid-column: 1 / -1; padding: 16px; text-align: center; }
/* Locked (plan without geo-targeting): show the real list blurred behind an upgrade card. */
.geo-wrap { position: relative; }
.geo-wrap.is-locked .cpicker { filter: blur(1.5px) grayscale(.35); opacity: .7; user-select: none; }
.geo-wrap.is-locked .cpicker-list { max-height: 220px; overflow: hidden; }
.geo-lock { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--card) 70%, transparent)); }
.geo-lock-card { max-width: 420px; text-align: center; background: var(--card); border: 1px solid var(--border-2); border-radius: 16px; padding: 22px; box-shadow: 0 20px 50px rgba(2,8,23,.18); }
.geo-lock-card h4 { margin: 8px 0 6px; font-size: 17px; color: var(--text); } .geo-lock-card p { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; }
.geo-lock-icon { width: 44px; height: 44px; margin: 0 auto; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; }
.geo-lock-icon .ico { width: 22px; height: 22px; }
.geo-lock-flags { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
.badge-pro { display: inline-flex; gap: 4px; align-items: center; background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; border-radius: 99px; padding: 2px 9px; font: 700 11px var(--font); vertical-align: 1px; }
.badge-pro .ico { width: 12px; height: 12px; }
/* Upsell card + slots strip */
.upsell-card { padding: 20px; background: linear-gradient(160deg, color-mix(in srgb, #f59e0b 10%, var(--card)), var(--card) 55%); border-color: color-mix(in srgb, #f59e0b 35%, var(--border)); }
.upsell-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; } .upsell-head h3 { margin: 2px 0 0; font-size: 16px; }
.upsell-crown { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; }
.upsell-rows { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.upsell-rows li { display: grid; grid-template-columns: 18px 1fr auto auto; gap: 10px; align-items: center; font-size: 13.5px; }
.upsell-rows li > .ico { color: var(--muted); }
.upsell-rows s { color: var(--muted); font-size: 12.5px; } .upsell-rows s .ico { color: #ef4444; width: 14px; height: 14px; }
.upsell-rows b { color: #16a34a; } .upsell-rows b .ico { width: 15px; height: 15px; }
.btn-block { width: 100%; justify-content: center; }
.slots-strip { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 14px 18px; margin-bottom: 20px; flex-wrap: wrap; }
.slots-meter { flex: 1; min-width: 220px; } .slots-label { margin-bottom: 6px; }
.slots-meter .bar { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.slots-meter .bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #22d3ee); }
.slots-strip.is-full .bar span { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.slots-up { display: flex; gap: 12px; align-items: center; } .slots-up .ico { color: #f59e0b; }

/* upgrade page */
.upgrade-hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: center; padding: 34px; border-radius: 20px; color: #cfd8f5;
  background: radial-gradient(600px 300px at 80% 0%, rgba(34,211,238,.25), transparent 70%), linear-gradient(135deg, var(--navy-900), var(--navy-700)); }
.upgrade-hero h1 { color: #fff; } .upgrade-hero p { color: #9fb0da; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; } .hero-points li { display: flex; gap: 6px; align-items: center; } .hero-points .ico { color: #34d399; }
.current-plan-card { padding: 22px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: grid; gap: 8px; }
.current-plan-card strong { color: #fff; font-size: 1.6rem; }
.current-plan-card dl { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin: 6px 0 0; font-size: 14px; } .current-plan-card dd { margin: 0; color: #fff; font-weight: 700; }
.cmp-table td, .cmp-table th { text-align: center; } .cmp-table td:first-child, .cmp-table th:first-child { text-align: start; font-weight: 600; }
.cmp-table .featured { background: var(--accent-50); }
.check-list { list-style: none; padding: 0; } .check-list li { display: flex; gap: 8px; padding: 6px 0; } .check-list .ico { color: var(--success); }

@media (max-width: 900px) {
  .calc, .split, .upgrade-hero, .landing-grid { grid-template-columns: 1fr; }
  .landing-aside { position: static; }
  .stats-strip .container { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .float-card { display: none; } .mock-window { transform: none; }
}

/* ==========================================================================
   Dark theme (member & admin areas)
   ========================================================================== */
html[data-theme="dark"] body:not(.site) {
  --bg: #0a1022; --card: #111a33; --border: #1f2b4d; --border-2: #2a3a66; --text: #e6ecff; --text-2: #b9c5e8; --muted: #8392ba;
  --accent-50: rgba(47,123,255,.14); --success-50: rgba(21,160,90,.16); --warning-50: rgba(199,122,6,.18); --danger-50: rgba(217,54,54,.16); --info-50: rgba(14,165,233,.15);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  background: var(--bg); color: var(--text);
}
html[data-theme="dark"] body:not(.site) .topbar { background: rgba(10,16,34,.85); }
html[data-theme="dark"] body:not(.site) .input, html[data-theme="dark"] body:not(.site) .select, html[data-theme="dark"] body:not(.site) .textarea,
html[data-theme="dark"] body:not(.site) .btn-secondary, html[data-theme="dark"] body:not(.site) .pagination a, html[data-theme="dark"] body:not(.site) .pagination span:not(.current),
html[data-theme="dark"] body:not(.site) .dropdown-menu, html[data-theme="dark"] body:not(.site) .modal, html[data-theme="dark"] body:not(.site) .country-chip,
html[data-theme="dark"] body:not(.site) .ticket-msg, html[data-theme="dark"] body:not(.site) .copy-box .input { background: #0d1530; color: var(--text); border-color: var(--border-2); }
html[data-theme="dark"] body:not(.site) .table th { background: #0d1530; }
html[data-theme="dark"] body:not(.site) .table tbody tr:hover { background: rgba(255,255,255,.02); }
html[data-theme="dark"] body:not(.site) .badge-muted { background: #1b2647; color: var(--muted); }
html[data-theme="dark"] body:not(.site) .topbar .icon-btn:hover, html[data-theme="dark"] body:not(.site) .dropdown-menu a:hover, html[data-theme="dark"] body:not(.site) .dropdown-menu button:hover { background: #18234a; }
html[data-theme="dark"] body:not(.site) .progress, html[data-theme="dark"] body:not(.site) .bar-mini { background: #1b2647; }
html[data-theme="dark"] body:not(.site) .skeleton { background: linear-gradient(90deg, #16203f 25%, #1c2850 50%, #16203f 75%); background-size: 200% 100%; }
html[data-theme="dark"] body:not(.site) .chart .grid-line { stroke: #22305a; }
html[data-theme="dark"] body:not(.site) code { color: #cfe0ff; }
html[data-theme="dark"] body:not(.site) .alert-info { border-color: rgba(14,165,233,.35); color: #9bdcff; }
html[data-theme="dark"] body:not(.site) .alert-success { border-color: rgba(21,160,90,.35); color: #8ee6b4; }
html[data-theme="dark"] body:not(.site) .alert-warning { border-color: rgba(199,122,6,.4); color: #ffd28a; }
html[data-theme="dark"] body:not(.site) .alert-danger { border-color: rgba(217,54,54,.4); color: #ffb3b3; }
html[data-theme="dark"] body:not(.site) .bonus-pop { background: rgba(245,158,11,.15); color: #fcd34d; }
html[data-theme="dark"] body:not(.site) .surf-stage { background: var(--bg); }
html[data-theme="dark"] body:not(.site) .price-card.featured, html[data-theme="dark"] body:not(.site) .price-card.popular { background: linear-gradient(180deg, #13214a, var(--card)); }
html[data-theme="dark"] body:not(.site) .geo-lock-card { box-shadow: 0 20px 50px rgba(0,0,0,.5); }
html[data-theme="dark"] body:not(.site) .upsell-rows b { color: #4ade80; }
html[data-theme="dark"] body:not(.site) .code-pill { background: #0d1530; }
html[data-theme="dark"] .lang-switch select { color-scheme: dark; }
.theme-sun { display: none; }
html[data-theme="dark"] .theme-sun { display: inline; } html[data-theme="dark"] .theme-moon { display: none; }

/* Google sign-in */
.btn-google { display: flex; gap: 10px; align-items: center; justify-content: center; background: #fff; color: #1f2937 !important; border: 1px solid #dadce0; font-weight: 600; }
.btn-google:hover { background: #f8fafc; border-color: #c6cbd1; }
.g-logo { flex: 0 0 20px; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 12.5px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.g-badge { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid var(--border); }

/* ---- v1.3 dashboard: quick actions, plan/founder chips, onboarding ---- */
.welcome-card { background: radial-gradient(600px 300px at 100% 0%, rgba(20,212,244,.28), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(109,74,255,.45), transparent 65%), linear-gradient(135deg, #1b1352, #0b1024 70%) !important; border: 1px solid rgba(255,255,255,.06); box-shadow: 0 24px 60px -24px rgba(40,30,120,.6); }
.plan-pill, .founder-chip { display: inline-flex; gap: 6px; align-items: center; padding: 5px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 800; }
.plan-pill { background: rgba(255,255,255,.1); color: #e3e7ff; border: 1px solid rgba(255,255,255,.14); } .plan-pill .ico, .founder-chip .ico { width: 14px; height: 14px; }
.founder-chip { background: linear-gradient(90deg, #b9ff4a, #14d4f4); color: #0b1020; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.qa { display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 13px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff !important; font: 700 14px var(--font); cursor: pointer; text-decoration: none !important; transition: background .15s, transform .15s; }
.qa:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
.qa-main { background: linear-gradient(135deg, #6d4aff, #14d4f4); border-color: transparent; box-shadow: 0 12px 28px -12px rgba(109,74,255,.9); }
.qa .ico { width: 18px; height: 18px; }
.onboarding { margin-bottom: 20px; }
.onboarding .card-head h2 .ico { color: var(--accent); }
.ob-progress { flex: 1; max-width: 220px; height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; margin-inline: 12px; }
.ob-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6d4aff, #14d4f4); }
.ob-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0 20px 20px; }
.ob-step { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1px dashed var(--border-2); color: var(--text) !important; text-decoration: none !important; transition: border-color .15s, background .15s; }
.ob-step:hover { border-color: var(--accent); background: var(--accent-50); }
.ob-step strong { display: block; font-size: 14px; } .ob-step small { color: var(--muted); font-size: 12.5px; line-height: 1.4; display: block; margin-top: 2px; }
.ob-ico { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--accent-50); color: var(--accent); }
.ob-step.done { border-style: solid; border-color: color-mix(in srgb, var(--success) 35%, transparent); background: var(--success-50); }
.ob-step.done .ob-ico { background: var(--success); color: #fff; } .ob-step.done strong { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent); }
.stat.hl { background: radial-gradient(260px 140px at 100% 0%, rgba(20,212,244,.3), transparent 70%), linear-gradient(135deg, #2a1d82, #0d1130) !important; }
.sidebar { background: linear-gradient(180deg, #0b0f22, #070a16) !important; }
.sidebar a.active, .sidebar .nav-link.active { background: linear-gradient(90deg, rgba(109,74,255,.28), rgba(109,74,255,.06)) !important; }
@media (max-width: 1080px) { .ob-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ob-grid { grid-template-columns: 1fr; } .qa span { font-size: 13px; } .qa { padding: 10px 12px; } }
html[data-theme="dark"] body:not(.site) .ob-step.done { background: rgba(21,160,90,.12); }
html[data-theme="dark"] body:not(.site) .ob-step:hover { background: rgba(109,74,255,.12); }

/* ---- v1.3.1 surf page on phones: compact bar, no word-by-word wrapping, scrollable start panel ---- */
.surf-page { height: 100vh; height: 100dvh; }
.surf-overlay { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; align-items: safe center; }
.surf-site small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric small { white-space: nowrap; }
@media (max-width: 640px) {
  .surf-bar { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "brand timer site status" "actions actions actions actions" "metrics metrics metrics metrics" "ad ad ad ad";
    gap: 10px 12px; padding: 10px 12px; min-height: 0; }
  .surf-bar > .brand { grid-area: brand; } .surf-bar .brand-word { display: none; } .surf-bar .brand-mark { width: 30px; height: 30px; }
  .surf-bar > .timer { grid-area: timer; width: 40px; height: 40px; } .surf-bar > .timer svg { width: 40px; height: 40px; } .surf-bar > .timer span { font-size: 13px; }
  .surf-bar > .surf-site { grid-area: site; } .surf-site strong { max-width: none; font-size: 14px; } .surf-site small { font-size: 12px; }
  .surf-bar > .surf-status { grid-area: status; font-size: 11.5px; padding: 4px 8px; white-space: nowrap; }
  .surf-bar > .row { grid-area: actions; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .surf-bar > .row .btn { width: 100%; min-height: 38px; padding: 0; }
  .surf-metrics { grid-area: metrics; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; order: 0; width: auto; }
  .surf-metrics:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .metric { min-width: 0; } .metric b { font-size: 14.5px; } .metric small { font-size: 10px; display: block; overflow: hidden; text-overflow: ellipsis; }
  .goal-metric { min-width: 0; } .goal-metric small .ico { display: none; }
  .surf-bar > .surf-ad { grid-area: ad; }
  .surf-overlay { padding: 14px; }
  .surf-panel { padding: 22px 18px; border-radius: 16px; }
  .surf-panel h2 { font-size: 1.25rem; }
  .surf-panel p, .surf-panel li { font-size: 14px; }
}

/* ---- v1.4 crypto payments ---- */
.pay-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; padding: 0 20px 4px; }
.coin-opt { position: relative; cursor: pointer; display: block; }
.coin-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.coin-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "badge info" "amt amt"; gap: 12px 12px; padding: 16px; border-radius: 16px;
  border: 1.5px solid var(--border-2); background: var(--card); transition: border-color .15s, box-shadow .15s, transform .15s; }
.coin-opt:hover .coin-card { border-color: color-mix(in srgb, var(--accent) 45%, var(--border-2)); transform: translateY(-1px); }
.coin-opt input:checked + .coin-card { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.coin-opt input:focus-visible + .coin-card { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.coin-opt.is-off { opacity: .55; cursor: not-allowed; }
.coin-badge { grid-area: badge; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font: 800 11.5px/1 var(--font); color: #fff; letter-spacing: .02em;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); box-shadow: 0 8px 18px -8px var(--c); }
.coin-badge.lg { width: 56px; height: 56px; border-radius: 17px; font-size: 13px; }
.coin-info { grid-area: info; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.coin-info strong { font-size: 16px; } .coin-info strong small { font-size: 12px; color: var(--muted); font-weight: 700; margin-inline-start: 4px; }
.coin-net { font-size: 13px; color: var(--muted); }
.coin-amt { grid-area: amt; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--border); font: 800 16px var(--mono); direction: ltr; }
.coin-amt small { font: 700 12px var(--font); color: var(--muted); }
.fee { font: 700 11px var(--font); padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.fee-low { background: var(--success-50); color: var(--success); } .fee-medium { background: var(--warning-50); color: var(--warning); } .fee-high { background: var(--danger-50); color: var(--danger); }
.coin-reco { position: absolute; top: -9px; inset-inline-end: 12px; font: 800 10.5px var(--font); color: #fff; background: linear-gradient(90deg, #6d4aff, #14d4f4); padding: 3px 9px; border-radius: 99px; }
.coin-check { position: absolute; top: 14px; inset-inline-end: 14px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; opacity: 0; transform: scale(.6); transition: all .15s; }
.coin-check .ico { width: 13px; height: 13px; }
.coin-opt input:checked + .coin-card .coin-check { opacity: 1; transform: none; }
.pay-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pay-foot p { margin: 0; max-width: 460px; }
.plan-summary { background: radial-gradient(300px 160px at 100% 0%, rgba(20,212,244,.25), transparent 70%), linear-gradient(135deg, #2a1d82, #0d1130) !important; color: #dfe3ff; border: 0; }
.plan-pill-lite { display: inline-flex; gap: 6px; align-items: center; font: 800 12.5px var(--font); color: #0b1020; background: linear-gradient(90deg, #b9ff4a, #14d4f4); padding: 4px 11px; border-radius: 99px; }
.ps-price { font-size: 2rem; font-weight: 800; color: #fff; margin: 12px 0 8px; } .ps-price small { font-size: 13px; color: #aab3db; font-weight: 600; }
.ps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 14px; } .ps-list .ico { color: #b9ff4a; width: 16px; height: 16px; }
.pay-steps-mini h3 { font-size: 15px; } .pay-steps-mini ol { padding-inline-start: 18px; margin: 0 0 12px; font-size: 14px; display: grid; gap: 6px; }
.pay-card { padding: 22px; }
.pay-top { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.pay-coin { font-size: 1.3rem; } .net-chip { display: inline-block; font: 700 12px var(--font); padding: 3px 10px; border-radius: 99px; background: var(--accent-50); color: var(--accent); vertical-align: 2px; }
.countdown { margin-inline-start: auto; display: grid; grid-template-columns: auto auto; gap: 4px 8px; align-items: center; font-size: 13px; color: var(--muted); }
.countdown b { font: 800 18px var(--mono); color: var(--text); } .countdown .cd-bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--bg); overflow: hidden; width: 120px; }
.countdown .cd-bar i { display: block; height: 100%; background: linear-gradient(90deg, #6d4aff, #14d4f4); transition: width 1s linear; }
.countdown.over b { color: var(--danger); }
.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; align-items: start; }
.field-lbl { display: block; font-weight: 700; font-size: 13.5px; margin: 0 0 7px; }
.copy-box { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 13px; border: 1px solid var(--border-2); background: var(--bg); margin-bottom: 8px; }
[dir="rtl"] .copy-box { padding: 10px 14px 10px 10px; }
.copy-box .mono { flex: 1; min-width: 0; font-family: var(--mono); overflow-wrap: anywhere; text-align: left; }
.copy-box .addr { font-size: 14px; line-height: 1.5; } .copy-box .big { font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; }
.copy-box .unit { font-weight: 800; color: var(--muted); }
.amount-box { border-color: color-mix(in srgb, var(--accent) 45%, var(--border-2)); background: var(--accent-50); }
.pay-fields .hint { margin: 0 0 18px; font-size: 13px; color: var(--muted); } .pay-fields .hint .ico { width: 14px; height: 14px; color: var(--accent); }
.net-warn { display: flex; gap: 12px; padding: 13px 14px; border-radius: 13px; background: var(--warning-50); color: var(--warning); margin: 6px 0 16px; font-size: 13.5px; }
.net-warn .ico { flex: none; margin-top: 2px; } .net-warn strong { display: block; margin-bottom: 2px; } .net-warn span { color: color-mix(in srgb, var(--warning) 80%, var(--text)); }
.btn-trust { background: #0500ff; color: #fff !important; border: 0; box-shadow: 0 10px 22px -10px rgba(5,0,255,.7); }
.btn-trust:hover { background: #2a26ff; }
.qr-wrap { text-align: center; } .qr-wrap .small { margin: 10px 0 0; }
.qr { display: inline-grid; place-items: center; padding: 12px; background: #fff; border-radius: 18px; border: 1px solid var(--border-2); box-shadow: var(--shadow); min-width: 244px; min-height: 244px; }
.qr svg { display: block; width: 220px; height: 220px; }
.pay-timeline { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 4px; }
.pay-timeline li { display: flex; gap: 12px; align-items: center; padding: 8px 0; color: var(--muted); font-weight: 600; font-size: 14.5px; position: relative; }
.pay-timeline li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 13px; top: 38px; height: 12px; width: 2px; background: var(--border-2); }
.pay-timeline .dot { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--bg); border: 2px solid var(--border-2); }
.pay-timeline .dot .ico { width: 14px; height: 14px; }
.pay-timeline li.done { color: var(--text); } .pay-timeline li.done .dot { background: var(--success); border-color: var(--success); color: #fff; }
.pay-timeline li.now { color: var(--text); } .pay-timeline li.now .dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.pay-timeline .conf { font-family: var(--mono); color: var(--accent); margin-inline-start: 4px; }
.txid-form .input { font-size: 14px; } .txid-form .hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 12px; }
.howto { margin-top: 14px; font-size: 13.5px; } .howto summary { cursor: pointer; color: var(--accent); font-weight: 700; } .howto ol { padding-inline-start: 18px; margin: 8px 0 0; display: grid; gap: 5px; color: var(--text-2); }
.txid-show { display: grid; gap: 4px; padding: 12px; border-radius: 12px; background: var(--bg); margin-bottom: 10px; } .txid-show a { font-size: 13.5px; overflow-wrap: anywhere; }
.watching { display: flex; gap: 8px; align-items: center; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border-2); border-top-color: var(--accent); animation: hxspin .8s linear infinite; flex: none; }
@keyframes hxspin { to { transform: rotate(360deg); } }
.pay-status { display: inline-flex; align-items: center; font: 700 12px var(--font); padding: 4px 10px; border-radius: 99px; background: var(--bg); color: var(--muted); white-space: nowrap; }
.pay-status.st-paid { background: var(--success-50); color: var(--success); } .pay-status.st-review { background: var(--warning-50); color: var(--warning); }
.pay-status.st-submitted, .pay-status.st-confirming { background: var(--info-50); color: #0b7fb0; } .pay-status.st-awaiting { background: var(--accent-50); color: var(--accent); }
.pay-status.st-rejected, .pay-status.st-expired, .pay-status.st-cancelled { background: var(--danger-50); color: var(--danger); }
.pay-done { text-align: center; padding: 30px 10px; } .done-ico { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: #fff; box-shadow: 0 16px 40px -12px var(--success); }
.done-ico .ico { width: 34px; height: 34px; }
.wallet-list { display: grid; gap: 2px; padding: 0 20px 16px; } .wallet-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.wallet-row:last-child { border: 0; } .wallet-row a { overflow-wrap: anywhere; }
.btn-crypto { background: linear-gradient(135deg, #f7931a, #f0b90b); color: #1b1300 !important; border: 0; font-weight: 800; }
@media (max-width: 1080px) { .pay-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .pay-grid { grid-template-columns: 1fr; } .qr-wrap { order: -1; }
  .coin-grid { grid-template-columns: 1fr; padding: 0 14px 4px; }
  .countdown { margin-inline-start: 0; width: 100%; grid-template-columns: auto 1fr; } .countdown .cd-bar { width: auto; }
  .copy-box .big { font-size: 1.2rem; } .pay-card { padding: 16px; }
}
html[data-theme="dark"] body:not(.site) .amount-box { background: rgba(109,74,255,.12); }
html[data-theme="dark"] body:not(.site) .net-warn { background: rgba(199,122,6,.14); }
html[data-theme="dark"] body:not(.site) .net-warn span { color: #f3d9a4; }
