/* =====================================================================
   NESVRA Global design system, Phase 1
   One stylesheet for the public site, marketplace and every workspace.
   All colours come from the tokens below. Do not hardcode colours in views.
   ===================================================================== */

@font-face { font-family: "Jakarta"; src: url("../fonts/jakarta.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jakarta"; src: url("../fonts/jakarta-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Brand */
  --emerald: #13C98B; --emerald-600: #0EA672; --emerald-700: #0A7F57; --mint: #A6E3BD; --mint-50: #E9F9F0;
  --purple: #7900D8; --purple-600: #6200B0; --purple-400: #9B3BF0; --purple-50: #F3E8FF;
  --cyan: #20BCEB; --cyan-600: #08708F; --sky: #7FD6F5; --cyan-50: #E4F7FD;
  --pink: #F45191; --pink-600: #BF225F; --pink-50: #FFE8F1;
  --yellow: #FFC52E; --orange: #FF8A3D; --yellow-50: #FFF6DD;
  --navy: #18243A; --navy-800: #111A2B; --charcoal: #2A3346; --slate: #5B6478; --slate-400: #666F84;
  --white: #FFFFFF; --soft: #F5F8FC; --soft-2: #EEF2F8; --line: #E3E8F1; --line-2: #D5DCE8;

  /* Semantic */
  --text: var(--navy); --text-muted: var(--slate); --text-soft: #6B7386;
  --primary: var(--purple); --primary-hover: var(--purple-600); --on-primary: #fff;
  --accent: var(--emerald); --on-accent: var(--navy);
  --link: #6A00C2;
  --success: #087A4E; --success-bg: #E3F8EE; --warning: #9A6400; --warning-bg: #FFF4D6;
  --danger: #C2264E; --danger-bg: #FFE6EC; --info: #086A8F; --info-bg: #E2F5FC; --neutral-bg: #EEF1F6;

  /* Category families */
  --cat-giftcard: linear-gradient(135deg, #7900D8 0%, #F45191 60%, #20BCEB 120%);
  --cat-airtime: linear-gradient(135deg, #13C98B 0%, #20BCEB 100%);
  --cat-esim: linear-gradient(135deg, #20BCEB 0%, #4F6BFF 55%, #7900D8 100%);
  --cat-gaming: linear-gradient(135deg, #3A0CA3 0%, #7900D8 50%, #F45191 100%);
  --cat-digital: linear-gradient(135deg, #4F6BFF 0%, #7900D8 55%, #A6E3BD 130%);
  --cat-wallet: linear-gradient(135deg, #0E7C6B 0%, #13C98B 55%, #18243A 130%);
  --cat-travel: linear-gradient(135deg, #20BCEB 0%, #7FD6F5 50%, #FF8A3D 130%);
  --cat-bills: linear-gradient(135deg, #FFC52E 0%, #FF8A3D 100%);
  --grad-hero: radial-gradient(1200px 600px at 85% -10%, rgba(121,0,216,.18), transparent 60%), radial-gradient(900px 500px at -10% 10%, rgba(19,201,139,.20), transparent 60%), radial-gradient(800px 500px at 60% 110%, rgba(32,188,235,.16), transparent 60%), #F7F9FD;
  --grad-brand: linear-gradient(120deg, #7900D8 0%, #20BCEB 55%, #13C98B 100%);
  --grad-warm: linear-gradient(120deg, #F45191 0%, #FF8A3D 60%, #FFC52E 100%);
  --grad-navy: linear-gradient(140deg, #18243A 0%, #24124A 60%, #3A0E6B 100%);

  /* Type */
  --font-head: "Jakarta", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Shape */
  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px; --r-pill: 999px;
  --sh-xs: 0 1px 2px rgba(24,36,58,.06);
  --sh-sm: 0 2px 8px rgba(24,36,58,.06), 0 1px 2px rgba(24,36,58,.04);
  --sh-md: 0 10px 30px -12px rgba(24,36,58,.18), 0 2px 6px rgba(24,36,58,.05);
  --sh-lg: 0 24px 60px -20px rgba(24,36,58,.28);
  --sh-color: 0 18px 40px -18px rgba(121,0,216,.55);
  --focus: 0 0 0 3px #fff, 0 0 0 5px #7900D8;

  --container: 1240px; --header-h: 72px; --sidebar-w: 268px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 15.5px; line-height: 1.6; color: var(--text); background: var(--soft); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 750; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
p a:not([class]), .prose a:not([class]), .notice a:not([class]) { text-decoration: underline; text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
::selection { background: var(--purple); color: #fff; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
code, kbd, .mono { font-family: var(--font-mono); font-size: .88em; }
code { background: var(--soft-2); padding: .1em .4em; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 44px 0; }
.section-white { background: #fff; }
.section-tint { background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); }
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.g-6 { grid-template-columns: repeat(6, minmax(0,1fr)); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.g-auto-sm { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.span-2 { grid-column: span 2; }
.flex { display: flex; } .col { flex-direction: column; } .wrap { flex-wrap: wrap; }
.items-center { align-items: center; } .items-start { align-items: flex-start; } .items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; } .justify-end { justify-content: flex-end; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.grow { flex: 1 1 auto; min-width: 0; } .shrink-0 { flex-shrink: 0; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.text-center { text-align: center; } .text-right { text-align: end; }
.muted { color: var(--text-muted); } .soft { color: var(--text-soft); } .small { font-size: .875rem; } .xs { font-size: .78rem; } .lead { font-size: 1.12rem; color: var(--text-muted); }
.bold { font-weight: 700; } .semibold { font-weight: 600; } .nowrap { white-space: nowrap; }
.w-full { width: 100%; } .maxw-640 { max-width: 640px; } .maxw-760 { max-width: 760px; }
.center-x { margin-left: auto; margin-right: auto; }
.text-gradient { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }

/* ---------- Buttons ---------- */
.btn { --bg: #fff; --fg: var(--navy); --bd: var(--line-2); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid var(--bd); background: var(--bg); color: var(--fg); font-weight: 650; font-size: .95rem; line-height: 1.1; cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--sh-sm); }
.btn:active { transform: translateY(0); }
.btn i { font-size: 1.15em; }
.btn-primary { --bg: var(--purple); --fg: #fff; --bd: var(--purple); box-shadow: var(--sh-color); }
.btn-primary:hover { --bg: var(--purple-600); }
.btn-accent { --bg: var(--emerald); --fg: var(--navy); --bd: var(--emerald); box-shadow: 0 14px 30px -16px rgba(19,201,139,.8); }
.btn-accent:hover { --bg: #10B87F; }
.btn-dark { --bg: var(--navy); --fg: #fff; --bd: var(--navy); }
.btn-pink { --bg: var(--pink); --fg: #fff; --bd: var(--pink); }
.btn-pink:hover { --bg: var(--pink-600); }
.btn-ghost { --bg: transparent; --bd: transparent; }
.btn-ghost:hover { --bg: var(--soft-2); box-shadow: none; }
.btn-white { --bg: #fff; --fg: var(--navy); --bd: #fff; }
.btn-outline-white { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.5); }
.btn-danger { --bg: #fff; --fg: var(--danger); --bd: #F3B7C6; }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: .86rem; }
.btn-xs { min-height: 30px; padding: 4px 10px; font-size: .8rem; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.btn-icon.btn-sm { width: 36px; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; color: var(--link); font-weight: 600; cursor: pointer; padding: 0; }
.link-arrow { font-weight: 650; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Badges, chips, tags ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font-size: .76rem; font-weight: 650; line-height: 1.5; white-space: nowrap; background: var(--neutral-bg); color: var(--charcoal); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); font-size: .86rem; font-weight: 600; color: var(--charcoal); cursor: pointer; text-decoration: none; transition: .2s; }
.chip:hover { border-color: var(--purple); color: var(--purple); text-decoration: none; }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.pill-label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: var(--r-pill); background: rgba(255,255,255,.75); border: 1px solid rgba(121,0,216,.14); font-size: .85rem; font-weight: 600; color: var(--charcoal); backdrop-filter: blur(8px); }
.pill-label .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-size: .9rem; }
.sample-tag { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: #7A4B00; background: #FFF1C7; border: 1px dashed #E8B53A; padding: 2px 8px; border-radius: 8px; vertical-align: middle; }
.tag-discount { background: var(--pink); color: #fff; font-weight: 700; font-size: .74rem; padding: 3px 8px; border-radius: 8px; }
.tag-new { background: var(--emerald); color: var(--navy); font-weight: 700; font-size: .74rem; padding: 3px 8px; border-radius: 8px; }
.tag-source { font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--soft-2); color: var(--slate); }
.cc { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 5px; border-radius: 6px; background: var(--navy); color: #fff; font-size: .68rem; font-weight: 750; letter-spacing: .05em; font-family: var(--font-head); }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-xs); }
.card-pad { padding: 22px; }
.card-pad-lg { padding: 32px; }
.card-hover { transition: transform .2s ease, box-shadow .25s ease, border-color .2s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: transparent; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-head h3, .card-head h2 { margin: 0; font-size: 1.05rem; }
.card-body { padding: 22px; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--line); background: #FBFCFE; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.surface-gradient { background: var(--grad-brand); color: #fff; border: 0; }
.surface-navy { background: var(--grad-navy); color: #fff; border: 0; }
.surface-navy h2, .surface-navy h3, .surface-gradient h2, .surface-gradient h3 { color: #fff; }
.icon-bubble { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; flex-shrink: 0; }
.ib-purple { background: var(--purple-50); color: var(--purple); }
.ib-emerald { background: var(--mint-50); color: var(--emerald-700); }
.ib-cyan { background: var(--cyan-50); color: var(--cyan-600); }
.ib-pink { background: var(--pink-50); color: var(--pink-600); }
.ib-yellow { background: var(--yellow-50); color: #A06800; }
.ib-navy { background: #E6E9F0; color: var(--navy); }
.feature-card { padding: 26px; }
.feature-card h3 { margin-top: 16px; }
.feature-card p { color: var(--text-muted); margin: 0; }

/* ---------- Notices ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid; font-size: .92rem; }
.notice i { font-size: 1.2rem; line-height: 1.3; }
.notice p { margin: 0; }
.notice-info { background: var(--info-bg); border-color: #B5E3F4; color: #0A5674; }
.notice-warning { background: var(--warning-bg); border-color: #F5D98A; color: #6E4700; }
.notice-success { background: var(--success-bg); border-color: #A8E5C8; color: #06603E; }
.notice-danger { background: var(--danger-bg); border-color: #F5B5C5; color: #8F1736; }
.notice-preview { background: linear-gradient(90deg, #FFF8E1, #F3E8FF); border-color: #E9D3FF; color: #4A2A72; }

/* ---------- Preview bar and announcement ---------- */
.preview-bar { background: var(--navy); color: #DDE4F2; font-size: .8rem; text-align: center; padding: 6px 12px; }
.preview-bar strong { color: var(--yellow); }
.announce { background: var(--grad-brand); color: #fff; font-size: .88rem; }
.announce .container { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; position: relative; padding-right: 48px; }
.announce a { color: #fff; font-weight: 700; text-decoration: underline; }
.announce .announce-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.18); color: #fff; border: 0; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(227,232,241,.8); }
.header-row { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 9px 11px; border-radius: 12px; color: var(--charcoal); font-weight: 600; font-size: .92rem; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--soft-2); color: var(--purple); text-decoration: none; }
.nav-link.is-current { color: var(--purple); }
.header-search { flex: 1; max-width: 360px; position: relative; }
.header-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.tool-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid transparent; background: transparent; color: var(--navy); font-size: 1.25rem; cursor: pointer; text-decoration: none; }
.tool-btn:hover { background: var(--soft-2); text-decoration: none; }
.count-dot { position: absolute; top: 3px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pink); color: #fff; font-size: .7rem; font-weight: 750; display: grid; place-items: center; border: 2px solid #fff; }
.locale-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: .82rem; font-weight: 650; cursor: pointer; color: var(--charcoal); }
.locale-btn:hover { border-color: var(--purple); }
.hide-desktop { display: none !important; }

/* Mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--sh-lg); padding: 28px 0 32px; display: none; }
.mega.is-open { display: block; animation: fadeDown .18s ease; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 300px; gap: 28px; }
.mega h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-400); margin-bottom: 10px; }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega a { display: flex; align-items: center; gap: 10px; color: var(--charcoal); padding: 7px 8px; border-radius: 10px; font-weight: 550; font-size: .93rem; }
.mega a:hover { background: var(--soft); color: var(--purple); text-decoration: none; }
.mega-promo { border-radius: var(--r-lg); padding: 22px; color: #fff; background: var(--cat-giftcard); display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; }
.mega-promo h3 { color: #fff; }
.mega-promo a { color: #fff; background: rgba(255,255,255,.2); display: inline-flex; width: max-content; padding: 8px 14px; border-radius: 999px; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-lg); padding: 8px; z-index: 80; display: none; max-height: 70vh; overflow: auto; }
[dir="rtl"] .dropdown-menu { right: auto; left: 0; }
.dropdown-menu.is-open { display: block; animation: fadeDown .15s ease; }
.dropdown-menu .dd-item { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; border: 0; background: none; text-align: start; color: var(--charcoal); font-size: .9rem; cursor: pointer; text-decoration: none; }
.dropdown-menu .dd-item:hover, .dropdown-menu .dd-item[aria-selected="true"] { background: var(--soft); color: var(--purple); text-decoration: none; }
.dropdown-menu .dd-item[aria-selected="true"]::after { content: "\eb7b"; font-family: remixicon; margin-left: auto; }
.dd-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-400); padding: 8px 10px 4px; font-weight: 700; }

/* Search & autocomplete */
.search-field { position: relative; display: flex; align-items: center; }
.search-field > i { position: absolute; left: 14px; color: var(--slate-400); font-size: 1.1rem; pointer-events: none; }
[dir="rtl"] .search-field > i { left: auto; right: 14px; }
.search-field input { width: 100%; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--soft); padding: 0 16px 0 42px; font-size: .92rem; }
[dir="rtl"] .search-field input { padding: 0 42px 0 16px; }
.search-field input:focus { outline: none; border-color: var(--purple); background: #fff; box-shadow: 0 0 0 4px rgba(121,0,216,.12); }
.ac-panel { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-lg); padding: 8px; z-index: 90; max-height: 420px; overflow: auto; }
.ac-panel .ac-group { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-400); font-weight: 700; padding: 8px 10px 4px; }
.ac-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--charcoal); cursor: pointer; text-decoration: none; }
.ac-item:hover, .ac-item.is-active { background: var(--soft); text-decoration: none; color: var(--purple); }
.ac-item .ac-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.ac-item small { display: block; color: var(--slate); font-size: .78rem; }
.ac-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 10px; }
.ac-empty { padding: 18px; text-align: center; color: var(--slate); font-size: .9rem; }
mark { background: #F3E8FF; color: var(--purple); border-radius: 3px; padding: 0 1px; }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(17,26,43,.45); z-index: 100; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(92vw, 400px); background: #fff; z-index: 101; transform: translateX(-105%); transition: transform .28s ease; display: flex; flex-direction: column; box-shadow: var(--sh-lg); }
.drawer.drawer-right { left: auto; right: 0; transform: translateX(105%); }
[dir="rtl"] .drawer { left: auto; right: 0; transform: translateX(105%); }
[dir="rtl"] .drawer.drawer-right { right: auto; left: 0; transform: translateX(-105%); }
.drawer.is-open { transform: none !important; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow: auto; padding: 16px 18px; }
.drawer-foot { padding: 16px 18px; border-top: 1px solid var(--line); }
.acc-nav details { border-bottom: 1px solid var(--line); }
.acc-nav summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; font-weight: 650; cursor: pointer; }
.acc-nav summary::-webkit-details-marker { display: none; }
.acc-nav summary::after { content: "\ea4e"; font-family: remixicon; transition: transform .2s; }
.acc-nav details[open] summary::after { transform: rotate(180deg); }
.acc-nav ul { list-style: none; padding: 0 0 12px; margin: 0; }
.acc-nav li a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--charcoal); }
.acc-nav li a:hover { background: var(--soft); text-decoration: none; }
.quick-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.quick-cats a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; color: var(--charcoal); text-align: center; }
.quick-cats a span { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-size: 1.3rem; }

/* ---------- Hero ---------- */
.hero { background: var(--grad-hero); padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.hero h1 { margin: 18px 0 16px; }
.hero .lead { max-width: 560px; }
.hero-search { margin-top: 26px; background: #fff; border-radius: 22px; padding: 8px; box-shadow: var(--sh-lg); display: flex; gap: 8px; position: relative; max-width: 600px; border: 1px solid var(--line); }
.hero-search .search-field { flex: 1; }
.hero-search .search-field input { border: 0; background: transparent; height: 52px; font-size: 1rem; }
.hero-search .search-field input:focus { box-shadow: none; }
.popular-searches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: .86rem; color: var(--slate); }
.hero-art { position: relative; min-height: 470px; }
.hero-phone { position: relative; z-index: 2; width: 72%; margin-left: auto; filter: drop-shadow(0 40px 60px rgba(24,36,58,.25)); }
.float-card { position: absolute; z-index: 3; border-radius: 20px; padding: 14px 16px; color: #fff; box-shadow: var(--sh-lg); min-width: 180px; animation: floaty 6s ease-in-out infinite; }
.float-card small { opacity: .85; display: block; font-size: .74rem; }
.float-card strong { font-family: var(--font-head); font-size: 1.15rem; }
.fc-1 { top: 30px; left: 0; background: var(--cat-giftcard); }
.fc-2 { bottom: 70px; left: 4%; background: var(--cat-airtime); color: var(--navy); animation-delay: -2s; }
.fc-3 { top: 46%; right: -6px; background: var(--cat-esim); animation-delay: -4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 1; }
.blob-1 { width: 340px; height: 340px; right: 4%; top: 40px; background: conic-gradient(from 200deg, #7900D8, #20BCEB, #13C98B, #FFC52E, #F45191, #7900D8); opacity: .22; filter: blur(40px); }

/* Category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(9, minmax(0,1fr)); gap: 14px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 650; font-size: .88rem; text-align: center; transition: .2s; text-decoration: none; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-md); text-decoration: none; color: var(--purple); }
.cat-tile .ct-icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; color: #fff; box-shadow: 0 10px 20px -10px rgba(24,36,58,.4); }
.bg-giftcard { background: var(--cat-giftcard); } .bg-airtime { background: var(--cat-airtime); } .bg-esim { background: var(--cat-esim); } .bg-gaming { background: var(--cat-gaming); }
.bg-digital { background: var(--cat-digital); } .bg-wallet { background: var(--cat-wallet); } .bg-travel { background: var(--cat-travel); } .bg-bills { background: var(--cat-bills); }
.bg-data { background: linear-gradient(135deg, #20BCEB, #13C98B); } .bg-hotel { background: linear-gradient(135deg, #FF8A3D, #F45191); } .bg-brand { background: var(--grad-brand); } .bg-navy { background: var(--grad-navy); } .bg-warm { background: var(--grad-warm); }

/* Section headings */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 6px 0 0; color: var(--text-muted); max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--purple); margin-bottom: 10px; }
.eyebrow.e-emerald { color: var(--emerald-700); } .eyebrow.e-pink { color: var(--pink-600); } .eyebrow.e-cyan { color: var(--cyan-600); }

/* ---------- Product cards ---------- */
.p-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .25s; position: relative; }
.p-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.p-art { position: relative; aspect-ratio: 16/10; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; overflow: hidden; }
.p-art::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; right: -18%; top: -30%; background: rgba(255,255,255,.14); }
.p-art::after { content: ""; position: absolute; width: 45%; aspect-ratio: 1; border-radius: 50%; left: -10%; bottom: -30%; background: rgba(255,255,255,.1); }
.p-art .p-brand { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; position: relative; z-index: 1; text-shadow: 0 1px 2px rgba(0,0,0,.15); }
.p-art .p-art-icon { position: relative; z-index: 1; font-size: 2rem; opacity: .95; }
.p-art .p-art-row { display: flex; align-items: flex-end; justify-content: space-between; position: relative; z-index: 1; }
.p-art .p-chip { width: 34px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #FFE59A, #E0B23A); }
.p-flags { position: absolute; top: calc(min(100%, 9999px) * 0); left: 58px; z-index: 2; display: flex; gap: 6px; }
[dir="rtl"] .p-flags { left: auto; right: 12px; }
.p-fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--pink); display: grid; place-items: center; cursor: pointer; font-size: 1.1rem; }
[dir="rtl"] .p-fav { right: auto; left: 10px; }
.p-fav[aria-pressed="true"] i::before { content: "\ee0e"; }
.p-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-body h3 { font-size: 1rem; margin: 0; }
.p-body h3 a { color: var(--navy); }
.p-meta { font-size: .8rem; color: var(--slate); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.p-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }
.p-price strong { font-family: var(--font-head); font-size: 1.15rem; }
.p-price s { color: var(--slate-400); font-size: .85rem; }
.p-actions { display: flex; gap: 8px; margin-top: 8px; }
.avail { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 650; color: var(--success); }
.avail.no { color: var(--danger); }

/* Plan cards (data, eSIM) */
.plan-card { border-radius: var(--r-lg); padding: 18px; position: relative; overflow: hidden; border: 1px solid transparent; transition: .2s; background: #fff; }
.plan-card.tone-pink { background: #FFD6E6; } .plan-card.tone-mint { background: #CFF2DE; } .plan-card.tone-sky { background: #D4F0FB; } .plan-card.tone-lilac { background: #EBDDFF; } .plan-card.tone-sun { background: #FFEFC2; }
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.plan-card .plan-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 8px; }
.plan-card .plan-name { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.plan-card .plan-ico { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.85); display: grid; place-items: center; color: var(--navy); }
.plan-card .plan-alloc { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; }
.plan-card .plan-val { color: var(--charcoal); font-size: .84rem; }
.plan-card .plan-price { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; }
.plan-card.is-selected { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: .86rem; font-weight: 650; color: var(--charcoal); }
.field .hint { font-size: .78rem; color: var(--slate); }
.field .req { color: var(--danger); }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; font-size: .95rem; transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%235B6478' d='M12 15l-5-5h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
[dir="rtl"] .select { background-position: left 12px center; padding-right: 14px; padding-left: 36px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(121,0,216,.12); }
.input[readonly] { background: var(--soft); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(194,38,78,.1); }
.field-error { font-size: .8rem; color: var(--danger); font-weight: 600; display: none; }
.field.has-error .field-error { display: block; }
.input-group { display: flex; align-items: stretch; }
.input-group .addon { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-2); background: var(--soft); font-weight: 650; font-size: .9rem; color: var(--charcoal); }
.input-group .addon:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); border-right: 0; }
.input-group .addon:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; border-left: 0; }
.input-group .input { border-radius: 0; }
.input-group .input:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.input-group .input:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--purple); flex-shrink: 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .9rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 44px; height: 26px; border-radius: 13px; background: var(--line-2); position: relative; transition: .2s; flex-shrink: 0; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--sh-sm); transition: .2s; }
.switch input:checked + .track { background: var(--emerald); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: var(--focus); }
.error-summary { border: 2px solid var(--danger); background: var(--danger-bg); color: #8F1736; border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 16px; }
.error-summary ul { margin: 6px 0 0; padding-left: 20px; }
.amount-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.amount-chip { min-width: 72px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; font-weight: 700; cursor: pointer; transition: .15s; }
.amount-chip:hover { border-color: var(--purple); }
.amount-chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.hex-chips .amount-chip { clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%); border-radius: 0; border: 0; background: rgba(255,255,255,.9); box-shadow: inset 0 0 0 1px var(--line-2); }
.hex-chips .amount-chip[aria-pressed="true"] { background: var(--navy); color: #fff; }
.dropzone { border: 2px dashed var(--line-2); border-radius: var(--r-lg); padding: 28px; text-align: center; background: #FBFCFE; cursor: pointer; transition: .2s; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--purple); background: var(--purple-50); }
.range { width: 100%; accent-color: var(--cyan); }
.otp-inputs { display: flex; gap: 10px; }
.otp-inputs input { width: 50px; height: 58px; text-align: center; font-size: 1.4rem; font-weight: 700; border: 1px solid var(--line-2); border-radius: 14px; }
.otp-inputs input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(121,0,216,.12); }

/* Stepper */
.stepper { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 26px; counter-reset: st; flex-wrap: wrap; }
.stepper li { flex: 1; min-width: 110px; display: flex; flex-direction: column; gap: 8px; font-size: .8rem; font-weight: 650; color: var(--slate-400); counter-increment: st; }
.stepper li::before { content: ""; height: 6px; border-radius: 3px; background: var(--line); }
.stepper li.is-done { color: var(--emerald-700); } .stepper li.is-done::before { background: var(--emerald); }
.stepper li.is-current { color: var(--purple); } .stepper li.is-current::before { background: var(--grad-brand); }
.wizard-step { display: none; } .wizard-step.is-active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Summary / price breakdown */
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: .93rem; }
.summary-row.total { border-top: 1px dashed var(--line-2); margin-top: 6px; padding-top: 14px; font-weight: 800; font-size: 1.1rem; font-family: var(--font-head); }
.summary-row .neg { color: var(--success); }
.kv { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 10px 16px; font-size: .92rem; }
.kv dt { color: var(--slate); }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.sticky-side { position: sticky; top: calc(var(--header-h) + 20px); }

/* ---------- Tabs, accordion ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: thin; }
.tab { padding: 11px 16px; border: 0; background: none; font-weight: 650; color: var(--slate); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; font-size: .92rem; }
.tab:hover { color: var(--navy); }
.tab[aria-selected="true"] { color: var(--purple); border-bottom-color: var(--purple); }
.tabs-pill { border: 0; background: var(--soft-2); padding: 5px; border-radius: var(--r-pill); display: inline-flex; flex-wrap: wrap; max-width: 100%; margin-bottom: 18px; }
.tabs-pill .tab { border: 0; border-radius: var(--r-pill); padding: 8px 16px; }
.tabs-pill .tab[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: var(--sh-sm); }
.tab-panel[hidden] { display: none; }
.accordion { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; background: none; border: 0; text-align: start; font-weight: 650; font-size: 1rem; cursor: pointer; color: var(--navy); }
.acc-btn i { transition: transform .2s; color: var(--purple); }
.acc-btn[aria-expanded="true"] i { transform: rotate(45deg); }
.acc-panel { padding: 0 20px 18px; color: var(--text-muted); }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; border-radius: var(--r-md); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: start; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); font-weight: 700; padding: 12px 14px; background: #F8FAFD; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th button { background: none; border: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 0; }
.table th button[aria-sort="ascending"]::after { content: "\ea78"; font-family: remixicon; }
.table th button[aria-sort="descending"]::after { content: "\ea4e"; font-family: remixicon; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover { background: #FAFBFE; }
.table tbody tr.is-clickable { cursor: pointer; }
.table .t-strong { font-weight: 650; color: var(--navy); }
.table .t-mono { font-family: var(--font-mono); font-size: .82rem; color: var(--charcoal); }
.table .t-num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.table-toolbar .search-field { flex: 1; min-width: 200px; max-width: 340px; }
.table-toolbar .search-field input { height: 40px; }
.table-toolbar .select { min-height: 40px; width: auto; padding-top: 8px; padding-bottom: 8px; font-size: .88rem; }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; font-size: .86rem; color: var(--slate); flex-wrap: wrap; }
.pager { display: flex; gap: 4px; }
.pager button { min-width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 650; }
.pager button[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--slate); }
.empty-state .icon-bubble { margin: 0 auto 14px; width: 64px; height: 64px; font-size: 1.8rem; border-radius: 20px; }
.empty-state h3 { margin-bottom: 6px; }
.skeleton { background: linear-gradient(90deg, #EEF2F8 25%, #F7F9FC 50%, #EEF2F8 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; height: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Modal, toast ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(17,26,43,.5); backdrop-filter: blur(3px); }
.modal.is-open { display: flex; animation: fadeIn .15s; }
.modal-box { background: #fff; border-radius: var(--r-xl); width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; box-shadow: var(--sh-lg); }
.modal-box.modal-lg { max-width: 820px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-head h2 { font-size: 1.2rem; margin: 0; }
.modal-body { padding: 22px 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); background: #FBFCFE; }
.toasts { position: fixed; z-index: 300; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; width: min(92vw, 440px); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; background: var(--navy); color: #fff; padding: 14px 16px; border-radius: var(--r-md); box-shadow: var(--sh-lg); font-size: .92rem; animation: toastIn .25s ease; }
.toast i { font-size: 1.2rem; }
.toast.t-success i { color: var(--emerald); } .toast.t-warning i { color: var(--yellow); } .toast.t-error i { color: #FF8FB0; } .toast.t-info i { color: var(--sky); }
.toast .toast-close { margin-left: auto; background: none; border: 0; color: #A9B3C7; cursor: pointer; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-800); color: #B9C3D6; padding: 64px 0 28px; margin-top: 0; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-brand); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 28px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .9rem; }
.site-footer a { color: #B9C3D6; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; font-size: .84rem; }
.footer-news { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 18px; margin-top: 18px; }
.footer-news .input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; }
.footer-news .input::placeholder { color: #8E9AB2; }
.footer-news .check { color: #B9C3D6; font-size: .8rem; }
.footer-locale .locale-btn { background: rgba(255,255,255,.06); color: #DDE4F2; border-color: rgba(255,255,255,.15); }

/* ---------- Breadcrumbs & page head ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--slate); list-style: none; padding: 0; margin: 0 0 14px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--slate-400); }
.breadcrumbs a { color: var(--slate); }
.page-hero { padding: 40px 0 46px; background: var(--grad-hero); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: 10px; }
.page-hero.tone-giftcard { background: radial-gradient(800px 400px at 90% 0, rgba(244,81,145,.22), transparent 60%), radial-gradient(700px 400px at 0 0, rgba(121,0,216,.18), transparent 60%), #FAF7FE; }
.page-hero.tone-gaming { background: var(--grad-navy); color: #DCD6F7; } .page-hero.tone-gaming h1 { color: #fff; } .page-hero.tone-gaming .lead, .page-hero.tone-gaming .breadcrumbs a, .page-hero.tone-gaming .breadcrumbs { color: #C9C2EC; }
.page-hero.tone-esim { background: radial-gradient(800px 400px at 90% 0, rgba(32,188,235,.25), transparent 60%), radial-gradient(700px 400px at 0 0, rgba(121,0,216,.14), transparent 60%), #F4FAFE; }
.page-hero.tone-airtime { background: radial-gradient(800px 400px at 90% 0, rgba(19,201,139,.25), transparent 60%), radial-gradient(700px 400px at 0 0, rgba(32,188,235,.16), transparent 60%), #F3FBF7; }
.page-hero.tone-digital { background: radial-gradient(800px 400px at 90% 0, rgba(79,107,255,.2), transparent 60%), radial-gradient(700px 400px at 0 0, rgba(166,227,189,.35), transparent 60%), #F6F7FE; }
.page-hero.tone-travel { background: radial-gradient(800px 400px at 90% 0, rgba(32,188,235,.25), transparent 60%), radial-gradient(700px 400px at 0 100%, rgba(255,138,61,.18), transparent 60%), #F3FAFE; }
.page-hero.tone-bills { background: radial-gradient(800px 400px at 90% 0, rgba(255,197,46,.3), transparent 60%), radial-gradient(700px 400px at 0 0, rgba(255,138,61,.16), transparent 60%), #FFFBF2; }
.page-hero.tone-business { background: radial-gradient(800px 400px at 90% 0, rgba(19,201,139,.22), transparent 60%), radial-gradient(700px 400px at 0 0, rgba(24,36,58,.12), transparent 60%), #F5F8FC; }

/* Filters layout */
.listing { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.filter-panel { position: sticky; top: calc(var(--header-h) + 16px); }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-size: .86rem; margin-bottom: 10px; }
.filter-group .check { font-size: .88rem; margin-bottom: 6px; }
.listing-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }

/* Content (articles, legal) */
.prose { font-size: 1.04rem; line-height: 1.75; color: #2B3448; }
.prose h2 { font-size: 1.55rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; padding: 16px 20px; border-left: 4px solid var(--purple); background: var(--purple-50); border-radius: 0 var(--r-md) var(--r-md) 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px; text-align: start; }
.prose .callout { background: var(--mint-50); border: 1px solid #BDEBD3; border-radius: var(--r-md); padding: 16px 18px; }
.toc { font-size: .9rem; }
.toc a { display: block; padding: 6px 10px; border-left: 2px solid var(--line); color: var(--slate); }
.toc a:hover { border-color: var(--purple); color: var(--purple); text-decoration: none; }
.article-card { overflow: hidden; display: flex; flex-direction: column; }
.article-thumb { aspect-ratio: 16/9; display: flex; align-items: flex-end; padding: 16px; color: #fff; position: relative; overflow: hidden; }
.article-thumb i { position: absolute; right: 16px; top: 12px; font-size: 3.2rem; opacity: .35; }
.article-thumb .badge { background: rgba(255,255,255,.92); color: var(--navy); }
.article-card .card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card h3 { font-size: 1.04rem; margin: 0; }
.article-card h3 a { color: var(--navy); }
.byline { font-size: .8rem; color: var(--slate); display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }

/* Stats, KPI */
.kpi { padding: 20px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.kpi .kpi-label { font-size: .84rem; color: var(--slate); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kpi .kpi-value { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); line-height: 1.1; }
.kpi .kpi-delta { font-size: .8rem; font-weight: 700; }
.kpi .up { color: var(--success); } .kpi .down { color: var(--danger); }
.kpi.kpi-color { color: #fff; border: 0; }
.kpi.kpi-color .kpi-label, .kpi.kpi-color .kpi-delta { color: rgba(255,255,255,.88); }
.kpi.kpi-color .kpi-value { color: #fff; }
.kpi.kpi-color::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.12); }
.chart-box { position: relative; height: 280px; }
.chart-box.sm { height: 200px; }
.progress { height: 8px; border-radius: 4px; background: var(--soft-2); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 4px; background: var(--grad-brand); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 18px 28px; font-size: .9rem; }
[dir="rtl"] .timeline li { padding: 0 28px 18px 0; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: -6px; width: 2px; background: var(--line); }
[dir="rtl"] .timeline li::before { left: auto; right: 6px; }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--line-2); }
[dir="rtl"] .timeline li::after { left: auto; right: 0; }
.timeline li.is-done::after { border-color: var(--emerald); background: var(--emerald); }
.timeline li.is-current::after { border-color: var(--purple); }
.timeline li.is-fail::after { border-color: var(--danger); }
.timeline time { display: block; font-size: .78rem; color: var(--slate); }

/* Wallet cards */
.wallet-card { border-radius: 24px; padding: 22px; color: #fff; position: relative; overflow: hidden; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; }
.wallet-card::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.12); }
.wallet-card::after { content: ""; position: absolute; right: 40px; bottom: -90px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.08); }
.wallet-card > * { position: relative; z-index: 1; }
.wallet-card .wc-cur { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.wallet-card .wc-bal { font-family: var(--font-head); font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.wallet-card .wc-sub { font-size: .8rem; opacity: .88; }
.wc-purple { background: linear-gradient(135deg, #7900D8, #A33BFF); } .wc-emerald { background: linear-gradient(135deg, #0EA672, #13C98B 60%, #7FE0BC); color: var(--navy); } .wc-cyan { background: linear-gradient(135deg, #0E8FB8, #20BCEB); } .wc-pink { background: linear-gradient(135deg, #D62F72, #F45191); } .wc-navy { background: var(--grad-navy); } .wc-sun { background: linear-gradient(135deg, #FF8A3D, #FFC52E); color: var(--navy); }
.vcard { aspect-ratio: 1.586; border-radius: 20px; padding: 22px; color: #fff; background: linear-gradient(135deg, #18243A 0%, #3A0E6B 55%, #13C98B 140%); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; max-width: 380px; box-shadow: var(--sh-lg); }
.vcard::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(19,201,139,.6), transparent 70%); }
.vcard > * { position: relative; z-index: 1; }
.vcard .vc-num { font-family: var(--font-mono); font-size: 1.15rem; letter-spacing: .12em; }

/* ---------- Workspace shell ---------- */
.ws-body { background: #F3F6FB; }
.ws-shell { display: flex; min-height: 100vh; }
.ws-sidebar { width: var(--sidebar-w); flex-shrink: 0; background: #fff; border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; z-index: 50; }
[dir="rtl"] .ws-sidebar { border-right: 0; border-left: 1px solid var(--line); }
.ws-brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.ws-brand img { height: 28px; }
.ws-env { margin: 14px 14px 6px; padding: 12px 14px; border-radius: var(--r-md); color: #fff; display: flex; align-items: center; gap: 10px; }
.ws-env .icon-bubble { width: 36px; height: 36px; font-size: 1.1rem; background: rgba(255,255,255,.2); color: inherit; border-radius: 11px; }
.ws-env strong { display: block; font-size: .92rem; line-height: 1.2; }
.ws-env small { font-size: .74rem; opacity: .85; }
.ws-nav { flex: 1; overflow-y: auto; padding: 8px 12px 20px; scrollbar-width: thin; }
.ws-nav .ws-group { margin-top: 10px; }
.ws-group-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; background: none; border: 0; padding: 8px 10px; font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-400); cursor: pointer; border-radius: 8px; }
.ws-group-btn:hover { color: var(--navy); }
.ws-group-btn i { transition: transform .2s; }
.ws-group-btn[aria-expanded="false"] i { transform: rotate(-90deg); }
.ws-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--charcoal); font-size: .88rem; font-weight: 550; text-decoration: none; line-height: 1.3; }
.ws-link i { font-size: 1.08rem; color: var(--slate-400); }
.ws-link:hover { background: var(--soft); text-decoration: none; color: var(--navy); }
.ws-link.is-active { background: var(--purple-50); color: var(--purple); font-weight: 700; }
.ws-link.is-active i { color: var(--purple); }
.ws-link .ws-tag { margin-left: auto; font-size: .66rem; font-weight: 750; padding: 1px 6px; border-radius: 6px; background: var(--soft-2); color: var(--slate); }
.ws-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ws-top { position: sticky; top: 0; z-index: 40; height: 68px; display: flex; align-items: center; gap: 12px; padding: 0 24px; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.ws-top .search-field { max-width: 380px; flex: 1; }
.ws-top .search-field input { height: 42px; }
.ws-content { padding: 26px 24px 60px; max-width: 1400px; width: 100%; margin: 0 auto; }
.ws-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.ws-head h1 { font-size: 1.65rem; margin: 0 0 4px; }
.ws-head p { margin: 0; color: var(--slate); font-size: .94rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; color: #fff; background: var(--grad-brand); flex-shrink: 0; font-size: .9rem; }
.avatar.sm { width: 32px; height: 32px; font-size: .76rem; }
.role-switch { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--soft-2); font-size: .8rem; font-weight: 650; }
.ws-bottom-nav { display: none; }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); text-align: center; font-size: .82rem; font-weight: 650; color: var(--charcoal); text-decoration: none; transition: .2s; }
.qa:hover { transform: translateY(-2px); box-shadow: var(--sh-md); text-decoration: none; color: var(--purple); }
.qa .icon-bubble { width: 44px; height: 44px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.perm-denied { text-align: center; padding: 60px 20px; }

/* ---------- Rihana ---------- */
.rihana-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: var(--r-pill); border: 0; background: var(--grad-brand); color: #fff; font-weight: 700; box-shadow: 0 16px 40px -12px rgba(121,0,216,.6); cursor: pointer; }
[dir="rtl"] .rihana-launcher { right: auto; left: 20px; }
.rihana-launcher .r-av { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--purple); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; position: relative; }
.rihana-launcher .r-av::after { content: ""; position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--emerald); border: 2px solid #fff; }
.rihana-panel { position: fixed; right: 20px; bottom: 20px; z-index: 160; width: min(400px, calc(100vw - 24px)); height: min(640px, calc(100vh - 40px)); background: #fff; border-radius: 26px; box-shadow: 0 30px 80px -20px rgba(24,36,58,.45); display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
[dir="rtl"] .rihana-panel { right: auto; left: 20px; }
.rihana-panel.is-open { display: flex; animation: toastIn .2s ease; }
.r-head { background: var(--grad-brand); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.r-head .r-av { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--purple); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; }
.r-head strong { display: block; } .r-head small { opacity: .9; font-size: .78rem; }
.r-head button { margin-left: auto; background: rgba(255,255,255,.2); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }
.r-notice { font-size: .74rem; background: #FFF8E1; color: #6E4700; padding: 8px 14px; border-bottom: 1px solid #F5E2A8; }
.r-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #F8FAFD; }
.r-msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: .9rem; line-height: 1.5; }
.r-msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.r-msg.me { background: var(--purple); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.r-msg.sys { align-self: center; background: var(--soft-2); color: var(--slate); font-size: .78rem; border-radius: 10px; }
.r-msg a { font-weight: 650; }
.r-msg.me a { color: #fff; }
.r-typing { display: inline-flex; gap: 4px; }
.r-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--slate-400); animation: blink 1s infinite; }
.r-typing span:nth-child(2) { animation-delay: .2s; } .r-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
.r-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 14px 0; background: #fff; }
.r-quick button { font-size: .78rem; padding: 6px 10px; }
.r-input { display: flex; gap: 8px; padding: 12px 14px; background: #fff; border-top: 1px solid var(--line); }
.r-input input { flex: 1; border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 0 16px; height: 44px; }
.r-product { display: flex; align-items: center; gap: 10px; background: var(--soft); border-radius: 12px; padding: 8px; margin-top: 8px; color: var(--navy); }
.r-product .ac-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.r-rating { display: flex; gap: 6px; }
.r-rating button { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; cursor: pointer; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: var(--grad-navy); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art h2 { color: #fff; font-size: 2.1rem; }
.auth-art::after { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; bottom: -200px; border-radius: 50%; background: conic-gradient(from 90deg, #7900D8, #20BCEB, #13C98B, #FFC52E, #F45191, #7900D8); opacity: .35; filter: blur(50px); }
.auth-art > * { position: relative; z-index: 1; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.auth-card { width: 100%; max-width: 460px; }
.acct-type { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.acct-type label { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r-md); cursor: pointer; transition: .15s; }
.acct-type input { position: absolute; opacity: 0; }
.acct-type label:has(input:checked) { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(121,0,216,.15); background: var(--purple-50); }
.acct-type label:focus-within { box-shadow: var(--focus); }

/* ---------- Misc ---------- */
.cta-band { border-radius: var(--r-xl); padding: 44px; position: relative; overflow: hidden; color: #fff; background: var(--grad-navy); }
.cta-band h2 { color: #fff; }
.cta-band::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: conic-gradient(from 0deg, #7900D8, #20BCEB, #13C98B, #FFC52E, #F45191, #7900D8); opacity: .35; filter: blur(40px); }
.cta-band > * { position: relative; z-index: 1; }
.media-frame { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.logo-wall { display: flex; flex-wrap: wrap; gap: 10px; }
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step-card { position: relative; padding: 24px; counter-increment: s; }
.step-card::before { content: counter(s); position: absolute; top: 18px; right: 20px; font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; color: var(--soft-2); }
.country-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.country-card .cc { min-width: 40px; height: 30px; font-size: .78rem; border-radius: 8px; }
.compare-table th, .compare-table td { text-align: center; }
.mask { font-family: var(--font-mono); letter-spacing: .08em; }
.code-block { background: var(--navy-800); color: #E3E8F5; padding: 16px 18px; border-radius: var(--r-md); font-family: var(--font-mono); font-size: .84rem; overflow-x: auto; white-space: pre; line-height: 1.6; }
.code-block .c-k { color: #C7A6FF; } .code-block .c-s { color: #8FE3B9; } .code-block .c-c { color: #7E8AA3; }
.qr-placeholder { width: 180px; height: 180px; border-radius: 16px; background: repeating-conic-gradient(var(--navy) 0 25%, #fff 0 50%) 0 0/24px 24px; position: relative; border: 10px solid #fff; box-shadow: var(--sh-md); }
.qr-placeholder::after { content: "SAMPLE"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: var(--pink); background: rgba(255,255,255,.7); font-size: 1.1rem; letter-spacing: .1em; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.sd-ok { background: var(--emerald); } .sd-warn { background: var(--yellow); } .sd-bad { background: var(--danger); } .sd-off { background: var(--slate-400); }
.module-off { position: relative; }
.module-unavailable { display: none; }
body.nv-modoff .module-unavailable { display: block; }
.legal-note { font-size: .8rem; color: var(--slate); }
.print-only { display: none; }

/* Header width management */
.site-header > .container.header-row { max-width: 1440px; }
.nav-toggle { display: none !important; }
.search-toggle { display: none !important; }
@media (max-width: 1500px) { .header-search { display: none; } .search-toggle { display: grid !important; } .nav-company { display: none; } }
@media (max-width: 1400px) { .btn-register { display: none !important; } .locale-btn .lc-long { display: none; } }
@media (max-width: 1280px) { .main-nav { display: none !important; } .nav-toggle { display: grid !important; } }
.mega-search .container { max-width: 760px; }

/* Overflow guards */
.grid > *, .flex > .grow, .input-group > .input { min-width: 0; }
.plan-top { flex-wrap: wrap; }
.prose code, summary code, .kv dd { overflow-wrap: anywhere; }
.input-group .btn { flex-shrink: 0; }
@media (max-width: 1020px) { .grid[style*="fr"] { grid-template-columns: 1fr !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .cat-tiles { grid-template-columns: repeat(5, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .mega-grid { grid-template-columns: 1fr 1fr 1fr; }
  .mega-promo { display: none; }
}
@media (max-width: 1020px) {
  .main-nav, .hide-mobile { display: none !important; }
  .hide-desktop { display: inline-flex !important; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 360px; max-width: 520px; margin: 0 auto; width: 100%; }
  .g-4, .g-5, .g-6 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .listing { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .filter-panel.is-collapsible { display: none; }
  .filter-panel.is-collapsible.is-open { display: block; }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .ws-sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-105%); transition: transform .25s; box-shadow: var(--sh-lg); }
  [dir="rtl"] .ws-sidebar { left: auto; right: 0; transform: translateX(105%); }
  .ws-sidebar.is-open { transform: none; }
  .ws-bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .ws-bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; font-weight: 650; color: var(--slate); padding: 6px 2px; border-radius: 12px; text-decoration: none; }
  .ws-bottom-nav a i { font-size: 1.3rem; }
  .ws-bottom-nav a.is-active { color: var(--purple); background: var(--purple-50); }
  .ws-content { padding-bottom: 100px; }
  .ws-body .rihana-launcher { bottom: 84px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .sticky-side { position: static; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .btn { white-space: normal; }
  .g-5, .g-6 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .section { padding: 52px 0; }
  .g-2, .g-3, .form-grid { grid-template-columns: 1fr; }
  .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .g-auto { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .cat-tiles { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat-tile { padding: 14px 4px; font-size: .78rem; }
  .cat-tile .ct-icon { width: 48px; height: 48px; font-size: 1.35rem; border-radius: 15px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .hero { padding: 36px 0 52px; }
  .hero-search { flex-direction: column; border-radius: 20px; }
  .hero-search .btn { width: 100%; }
  .float-card { min-width: 140px; padding: 10px 12px; }
  .float-card strong { font-size: .95rem; }
  .card-pad-lg { padding: 22px; }
  .cta-band { padding: 28px 22px; }
  .steps-row { grid-template-columns: 1fr; }
  .p-body { padding: 12px; }
  .p-body h3 { font-size: .92rem; }
  .p-actions .btn { padding: 8px 10px; font-size: .8rem; min-height: 38px; }
  .p-art .p-brand { font-size: 1.02rem; }
  .ws-top { padding: 0 14px; }
  .ws-top .search-field { display: none; }
  .ws-content { padding: 18px 14px 100px; }
  .ws-head h1 { font-size: 1.35rem; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
  .table-responsive-cards thead { display: none; }
  .table-responsive-cards tr { display: block; border-bottom: 1px solid var(--line); padding: 10px 4px; }
  .table-responsive-cards td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 5px 12px; text-align: end; }
  .table-responsive-cards td::before { content: attr(data-label); font-weight: 650; color: var(--slate); font-size: .78rem; text-align: start; }
  .table-responsive-cards .t-num { text-align: end; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-box { border-radius: 24px 24px 0 0; max-height: 92vh; }
  .rihana-panel { right: 0; left: 0; bottom: 0; width: 100%; height: 100%; border-radius: 0; }
  .rihana-launcher .r-label { display: none; }
  .rihana-launcher { padding: 6px; }
  .otp-inputs input { width: 42px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .rihana-launcher, .ws-sidebar, .ws-top, .ws-bottom-nav, .preview-bar, .announce, .no-print { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; }
}
