/* BigoIraq store — teal + gold, light / dark. RTL first (ar / ku), LTR for en. */
:root {
  --font: 'Vazirmatn', 'Inter', system-ui, sans-serif;
  --bg: #f3f7f6; --bg-2: #e9f1ef; --surface: #ffffff; --surface-2: #f6faf9; --line: #dde8e5; --line-2: #cddcd8;
  --ink: #0b1f1c; --ink-2: #33504b; --muted: #66807b; --faint: #9bb0ab;
  --brand: #0d9488; --brand-2: #14b8a6; --brand-ink: #ffffff; --brand-soft: #d9f4ef; --brand-deep: #0f5f58;
  --gold: #f2b01e; --gold-soft: #fff4d6; --gold-ink: #6b4a00;
  --ok: #16a34a; --ok-soft: #dcfce7; --warn: #d97706; --warn-soft: #fef3c7; --bad: #dc2626; --bad-soft: #fee2e2; --info: #0284c7; --info-soft: #e0f2fe;
  --grad: linear-gradient(135deg, #0f766e 0%, #0d9488 45%, #14b8a6 100%);
  --grad-gold: linear-gradient(135deg, #f59e0b, #fbbf24);
  --shadow-1: 0 1px 2px rgba(8, 40, 36, .06), 0 2px 8px rgba(8, 40, 36, .05);
  --shadow-2: 0 10px 30px -12px rgba(8, 40, 36, .22), 0 2px 6px rgba(8, 40, 36, .06);
  --radius: 18px; --radius-sm: 12px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #061311; --bg-2: #0a1c19; --surface: #0d211e; --surface-2: #112925; --line: #1b3a35; --line-2: #24504a;
  --ink: #e4f3f0; --ink-2: #b3cdc8; --muted: #86a39e; --faint: #5d7a75;
  --brand: #2dd4bf; --brand-2: #5eead4; --brand-ink: #032420; --brand-soft: #0f3a35; --brand-deep: #99f6e4;
  --gold: #fbbf24; --gold-soft: #3a2c08; --gold-ink: #fde68a;
  --ok-soft: #0f2e1d; --warn-soft: #33250a; --bad-soft: #3a1414; --info-soft: #0b2a3a;
  --grad: linear-gradient(135deg, #115e59 0%, #0f766e 45%, #0d9488 100%);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 14px 34px -14px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh; }
html[lang="en"] body { --font: 'Inter', 'Vazirmatn', system-ui, sans-serif; }
a { color: var(--brand); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.num, .ltr { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; }
.hidden { display: none !important; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 0 18px; height: 64px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -.01em; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: var(--shadow-1); }
.brand small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: -3px; }
.nav { display: flex; gap: 4px; margin-inline-start: 10px; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.nav a.on { background: var(--brand-soft); color: var(--brand-deep); }
.top-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--ink-2); }
.icon-btn svg { width: 19px; height: 19px; fill: currentColor; }
.lang { position: relative; }
.lang-btn { height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.menu { position: absolute; top: 46px; inset-inline-end: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-2); padding: 6px; min-width: 160px; z-index: 50; }
.menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 0; background: none; border-radius: 10px; text-align: start; font-weight: 600; }
.menu button:hover, .menu button.on { background: var(--surface-2); }
.menu button.on::after { content: '✓'; color: var(--brand); }
.me-btn { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13px; }
.me-btn img, .avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); }
.bal-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-weight: 800; font-size: 12.5px; }

/* ---------- layout ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 22px 18px 110px; }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 6px 0 18px; }
.page-title h1 { margin: 0; font-size: 24px; letter-spacing: -.01em; }
.page-title p { margin: 4px 0 0; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.card-pad { padding: 20px; }
.grid { display: grid; gap: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 15px; color: var(--ink); transition: transform .08s, box-shadow .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; border: 0; box-shadow: 0 8px 20px -8px rgba(13, 148, 136, .65); }
.btn-primary:hover { box-shadow: 0 10px 26px -8px rgba(13, 148, 136, .8); }
.btn-gold { background: var(--grad-gold); color: #3b2600; border: 0; box-shadow: 0 8px 20px -10px rgba(245, 158, 11, .8); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--brand); }
.btn-sm { height: 36px; padding: 0 14px; border-radius: 11px; font-size: 13.5px; white-space: nowrap; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2.4px solid currentColor; border-inline-end-color: transparent; animation: rot .7s linear infinite; display: inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); } .chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); } .chip.info { background: var(--info-soft); color: var(--info); }
.chip.brand { background: var(--brand-soft); color: var(--brand-deep); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.live .dot { animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 46px; height: 46px; fill: var(--faint); margin: 0 auto 10px; }
.banner { padding: 12px 16px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-ink); font-weight: 600; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.banner.bad { background: var(--bad-soft); color: var(--bad); } .banner.info { background: var(--info-soft); color: var(--info); } .banner.ok { background: var(--ok-soft); color: var(--ok); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-radius: 26px; background: var(--grad); color: #fff; padding: 34px 30px; box-shadow: var(--shadow-2); display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: center; }
.hero::before { content: ''; position: absolute; inset-inline-end: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%); }
.hero::after { content: ''; position: absolute; inset-inline-start: -80px; bottom: -140px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(251, 191, 36, .35), transparent 65%); }
.hero h1 { margin: 0 0 10px; font-size: 32px; line-height: 1.25; letter-spacing: -.02em; position: relative; }
.hero p { margin: 0 0 20px; opacity: .92; font-size: 16px; position: relative; max-width: 520px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.hero .btn { height: 48px; }
.hero .btn-light { background: #fff; color: var(--brand-deep); border: 0; }
.hero .btn-outline { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.hero-cards { position: relative; height: 210px; }
.hero-cards img { position: absolute; width: 270px; border-radius: 14px; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .55); transition: transform .4s; }
.hero-cards img:nth-child(1) { inset-inline-end: 70px; top: 6px; transform: rotate(-8deg); }
.hero-cards img:nth-child(2) { inset-inline-end: 0; top: 66px; transform: rotate(6deg); }
.hero:hover .hero-cards img:nth-child(1) { transform: rotate(-10deg) translateY(-4px); }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; position: relative; font-size: 13px; opacity: .95; }
.trust span { display: inline-flex; gap: 6px; align-items: center; }
.trust svg { width: 16px; height: 16px; fill: currentColor; }

.section-h { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 14px; }
.section-h h2 { margin: 0; font-size: 19px; }

/* ---------- apps ---------- */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.app { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); box-shadow: var(--shadow-1); transition: transform .15s, box-shadow .15s, border-color .15s; overflow: hidden; }
.app:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.app img { width: 64px; height: 64px; border-radius: 18px; box-shadow: var(--shadow-1); object-fit: cover; }
.app h3 { margin: 0; font-size: 17px; }
.app p { margin: 0; color: var(--muted); font-size: 13px; }
.app .go { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-weight: 700; color: var(--brand); font-size: 13.5px; }
.app .go svg { width: 18px; height: 18px; fill: currentColor; }
html[dir="rtl"] .app .go svg, html[dir="rtl"] .flip { transform: scaleX(-1); }
.app.off { opacity: .55; pointer-events: none; }
.app .from { font-size: 12px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.step .n { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; font-weight: 800; }
.step h4 { margin: 0 0 4px; font-size: 15px; } .step p { margin: 0; color: var(--muted); font-size: 13.5px; }
.ops { display: flex; gap: 14px; flex-wrap: wrap; }
.op-badge { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; }
.op-badge img { width: 34px; height: 34px; border-radius: 10px; }

/* ---------- buy flow ---------- */
.buy { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
.buy-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.buy-head img { width: 56px; height: 56px; border-radius: 16px; box-shadow: var(--shadow-1); }
.buy-head h1 { margin: 0; font-size: 22px; }
.stage { padding: 20px; margin-bottom: 16px; }
.stage-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.stage-h .n { width: 28px; height: 28px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.stage-h h3 { margin: 0; font-size: 16px; }
.stage-h .done { margin-inline-start: auto; color: var(--ok); font-weight: 700; font-size: 13px; }
.stage.lock { opacity: .5; pointer-events: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 12.5px; }
.input { height: 50px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface-2); padding: 0 14px; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; width: 100%; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); background: var(--surface); }
.input.code { font-size: 20px; letter-spacing: .14em; text-align: center; font-weight: 700; direction: ltr; }
.row { display: flex; gap: 10px; }
.row .input { flex: 1; }
.err { color: var(--bad); font-weight: 600; font-size: 13.5px; margin: 8px 0 0; }
.who { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-deep); }
.who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--surface); }
.who b { display: block; font-size: 15px; } .who span { font-size: 12.5px; opacity: .85; }
.who.unknown { background: var(--warn-soft); color: var(--warn); }

.pay-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pay-tab { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface-2); font-weight: 700; font-size: 13.5px; text-align: center; transition: border-color .15s, background .15s, transform .1s; }
.pay-tab img { width: 42px; height: 42px; border-radius: 12px; }
.pay-tab .bal-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--grad-gold); display: grid; place-items: center; }
.pay-tab .bal-ic svg { width: 22px; height: 22px; fill: #3b2600; }
.pay-tab small { font-weight: 600; color: var(--muted); font-size: 12px; }
.pay-tab.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }

/* packages: the card itself is the package */
.pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pkg { position: relative; border-radius: 16px; border: 2px solid transparent; background: var(--surface-2); padding: 0; overflow: hidden; text-align: start; box-shadow: var(--shadow-1); transition: transform .12s, box-shadow .15s, border-color .15s; }
.pkg:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.pkg .art { aspect-ratio: 720 / 368; background: var(--bg-2); position: relative; }
.pkg .art img { width: 100%; height: 100%; object-fit: cover; }
.pkg .art.plain { display: grid; place-items: center; background: var(--grad); color: #fff; }
.pkg .art.plain b { font-size: 26px; letter-spacing: -.02em; }
.pkg .art.plain span { font-size: 12px; opacity: .9; margin-top: -26px; }
.pkg .meta { padding: 10px 12px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pkg .coins { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 16px; color: var(--ink); }
.pkg .coins svg { width: 18px; height: 18px; fill: var(--gold); }
.pkg .coins small { font-weight: 600; font-size: 11.5px; color: var(--muted); }
.pkg .price { font-weight: 700; font-size: 12.5px; color: var(--muted); }
.pkg.on { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent), var(--shadow-2); }
.pkg.on::after { content: '✓'; position: absolute; top: 8px; inset-inline-end: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.pkg[disabled] { opacity: .45; cursor: not-allowed; }

.summary { position: sticky; top: 84px; padding: 20px; }
.summary h3 { margin: 0 0 14px; font-size: 16px; }
.sum-card { border-radius: 14px; overflow: hidden; margin-bottom: 14px; box-shadow: var(--shadow-1); }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.sum-row:last-of-type { border-bottom: 0; }
.sum-row span { color: var(--muted); } .sum-row b { text-align: end; }
.sum-total { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-ink); font-weight: 800; }
.sum-total .big { font-size: 20px; }
.secure { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 12px; color: var(--muted); font-size: 12.5px; }
.secure svg { width: 15px; height: 15px; fill: var(--ok); }

/* ---------- order tracker ---------- */
.track { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
.track-hero { padding: 24px; text-align: center; }
.track-hero .ic { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; }
.track-hero .ic svg { width: 38px; height: 38px; fill: currentColor; }
.track-hero .ic.run { background: var(--info-soft); color: var(--info); }
.track-hero .ic.ok { background: var(--ok-soft); color: var(--ok); }
.track-hero .ic.bad { background: var(--bad-soft); color: var(--bad); }
.track-hero .ic.warn { background: var(--warn-soft); color: var(--warn); }
.track-hero h2 { margin: 0 0 6px; font-size: 21px; } .track-hero p { margin: 0; color: var(--muted); }
.flow { display: flex; justify-content: space-between; margin: 24px 6px 6px; position: relative; }
.flow::before { content: ''; position: absolute; top: 16px; inset-inline: 30px; height: 3px; background: var(--line); border-radius: 3px; }
.flow .fs { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 25%; font-size: 12.5px; font-weight: 700; color: var(--faint); }
.flow .fs i { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); border: 3px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 14px; }
.flow .fs.done { color: var(--ok); } .flow .fs.done i { background: var(--ok); border-color: var(--ok); color: #fff; }
.flow .fs.now { color: var(--brand); } .flow .fs.now i { border-color: var(--brand); background: var(--brand-soft); }
.flow .fs.now i::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); animation: pulse 1.1s infinite; }
.flow .fs.fail { color: var(--bad); } .flow .fs.fail i { background: var(--bad); border-color: var(--bad); color: #fff; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.timeline li:last-child { border: 0; }
.timeline time { color: var(--faint); font-size: 12px; white-space: nowrap; }

/* ---------- lists ---------- */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink); }
.li:last-child { border-bottom: 0; }
.li:hover { background: var(--surface-2); }
.li img.ic { width: 42px; height: 42px; border-radius: 12px; }
.li .t { flex: 1; min-width: 0; }
.li .t b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .t span { font-size: 12.5px; color: var(--muted); }
.li .end { text-align: end; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.amt { font-weight: 800; } .amt.pos { color: var(--ok); } .amt.neg { color: var(--ink); }
.wallet-card { position: relative; overflow: hidden; border-radius: 24px; padding: 26px; background: var(--grad); color: #fff; box-shadow: var(--shadow-2); }
.wallet-card::after { content: ''; position: absolute; inset-inline-end: -60px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(251, 191, 36, .4), transparent 65%); }
.wallet-card .l { opacity: .85; font-weight: 600; }
.wallet-card .v { font-size: 38px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 6px; }
.wallet-card .v small { font-size: 16px; opacity: .85; font-weight: 600; }
.wallet-card p { margin: 0; opacity: .88; font-size: 13.5px; max-width: 460px; position: relative; z-index: 1; }
.tabs { display: flex; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; width: fit-content; }
.tabs button { border: 0; background: none; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

/* ---------- account ---------- */
.profile { display: flex; align-items: center; gap: 16px; padding: 20px; }
.profile img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.profile h2 { margin: 0; font-size: 19px; }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opt { padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); font-weight: 700; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.opt.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }
.opt svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- sign-in sheet / toast ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(4, 18, 16, .55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: min(420px, 100%); background: var(--surface); border-radius: 24px; padding: 26px; box-shadow: var(--shadow-2); text-align: center; animation: up .2s; }
@keyframes up { from { transform: translateY(12px); opacity: 0; } }
.sheet img.logo { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 12px; }
.sheet h2 { margin: 0 0 6px; font-size: 20px; } .sheet p { margin: 0 0 18px; color: var(--muted); }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; color: #1f1f1f; font-weight: 700; font-size: 15px; }
.gbtn svg { width: 20px; height: 20px; }
:root[data-theme="dark"] .gbtn { background: #131314; color: #e3e3e3; border-color: #8e918f; }
.toasts { position: fixed; top: 74px; inset-inline: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; max-width: 420px; width: 100%; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-2); font-weight: 600; font-size: 14px; animation: up .2s; display: flex; gap: 10px; align-items: center; }
.toast.ok { background: var(--ok); color: #fff; } .toast.bad { background: var(--bad); color: #fff; }

footer { max-width: 1120px; margin: 0 auto; padding: 26px 18px 120px; color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); }

/* ---------- mobile ---------- */
.tabbar { display: none; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 26px 20px; }
  .hero h1 { font-size: 26px; }
  .hero-cards { height: 150px; }
  .hero-cards img { width: 200px; }
  .apps { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .buy, .track { grid-template-columns: 1fr; }
  .summary { position: static; }
  .nav { display: none; }
  .tabbar { display: flex; position: fixed; bottom: 12px; inset-inline: 12px; z-index: 45; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-2); padding: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom) / 2); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0; border-radius: 14px; color: var(--muted); font-size: 11.5px; font-weight: 700; }
  .tabbar a svg { width: 22px; height: 22px; fill: currentColor; }
  .tabbar a.on { color: var(--brand-deep); background: var(--brand-soft); }
}
@media (max-width: 560px) {
  .top-in { padding: 0 12px; gap: 8px; height: 60px; }
  .brand small { display: none; }
  .me-btn .nm { display: none; }
  .me-btn { padding: 0 4px; }
  main { padding: 16px 12px 110px; }
  .pkgs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pkg .coins { font-size: 14.5px; }
  .pay-tabs { gap: 8px; }
  .pay-tab { padding: 12px 4px; font-size: 12.5px; }
  .opts { grid-template-columns: 1fr 1fr 1fr; }
  .stage { padding: 16px; }
  .hero-cards { display: none; }
}

/* =====================================================================
   v3 — step pages, Iraqi flag, sections (about / feedback / FAQ), footer
   ===================================================================== */
html, body { overscroll-behavior-y: none; }
body { -webkit-tap-highlight-color: transparent; }
.flag-bg { position: fixed; top: -40px; inset-inline-end: -120px; width: min(760px, 95vw); aspect-ratio: 3 / 2; z-index: -1; opacity: .07; pointer-events: none; transform: rotate(-8deg); }
:root[data-theme="dark"] .flag-bg { opacity: .09; }
.flag-bg svg { width: 100%; height: 100%; animation: wave 9s ease-in-out infinite alternate; transform-origin: 50% 50%; }
@keyframes wave { from { transform: skewY(-1.5deg) translateY(-6px); } to { transform: skewY(1.5deg) translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .flag-bg svg { animation: none; } }
.flag-line { position: sticky; top: 0; z-index: 41; display: flex; height: 4px; }
.flag-line i { flex: 1; }
.flag-line i:nth-child(1) { background: #CE1126; }
.flag-line i:nth-child(2) { background: #f4f4f4; }
.flag-line i:nth-child(3) { background: #111; }
:root[data-theme="dark"] .flag-line i:nth-child(2) { background: #d8d8d8; }
.top { top: 4px; }

/* stepper */
.stepper { display: flex; align-items: center; gap: 8px; margin: 4px 0 18px; }
.stepper .s { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--faint); white-space: nowrap; }
.stepper .s i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12.5px; background: var(--surface); border: 2px solid var(--line-2); }
.stepper .s.on { color: var(--brand-deep); }
.stepper .s.on i { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.stepper .s.done { color: var(--ok); }
.stepper .s.done i { background: var(--ok); border-color: var(--ok); color: #fff; }
.stepper .bar { flex: 1; height: 2px; border-radius: 2px; background: var(--line); min-width: 16px; }
.stepper .bar.done { background: var(--ok); }

/* the app banner on the step pages */
.app-hero { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 22px; background: var(--grad); color: #fff; box-shadow: var(--shadow-2); margin-bottom: 16px; position: relative; overflow: hidden; }
.app-hero::after { content: ""; position: absolute; inset-inline-start: -40px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(251, 191, 36, .35), transparent 65%); }
.app-hero img { width: 58px; height: 58px; border-radius: 17px; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); background: #fff; position: relative; z-index: 1; }
.app-hero h1 { margin: 0; font-size: 21px; position: relative; z-index: 1; }
.app-hero p { margin: 2px 0 0; opacity: .9; font-size: 13px; position: relative; z-index: 1; }
.app-hero .unit { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; position: relative; z-index: 1; }

.flow-grid { display: grid; grid-template-columns: 1fr 330px; gap: 18px; align-items: start; }
.panel { padding: 18px; margin-bottom: 16px; }
.panel-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.panel-h h3 { margin: 0; font-size: 16px; }
.panel-h .n { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.panel-h .end { margin-inline-start: auto; }

/* account card with the photo from the app */
.acc-card { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--gold-soft) 70%, transparent)); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.acc-card .ph { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--surface); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .45); background: var(--surface); display: grid; place-items: center; color: var(--brand-deep); }
.acc-card .ph svg { width: 30px; height: 30px; fill: currentColor; }
.acc-card b { display: block; font-size: 16.5px; color: var(--ink); }
.acc-card span { font-size: 12.5px; color: var(--muted); }
.acc-card .ok { margin-inline-start: auto; width: 30px; height: 30px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; }
.acc-card .ok svg { width: 18px; height: 18px; fill: currentColor; }
.acc-card.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.acc-card.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.acc-card.warn b, .acc-card.bad b { color: inherit; }

/* operator switch above the cards */
.op-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); padding: 5px; border-radius: 16px; margin-bottom: 14px; }
.op-switch button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border: 0; border-radius: 12px; background: none; font-weight: 800; color: var(--muted); }
.op-switch button img { width: 26px; height: 26px; border-radius: 8px; }
.op-switch button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

/* side summary (desktop) + action bar (phone) */
.side { position: sticky; top: 92px; padding: 18px; }
.side .sum-card img { aspect-ratio: 720 / 368; object-fit: cover; width: 100%; }
.side .empty-sum { border: 2px dashed var(--line-2); border-radius: 14px; aspect-ratio: 720 / 368; display: grid; place-items: center; color: var(--faint); font-weight: 700; margin-bottom: 14px; text-align: center; padding: 10px; }
.actionbar { display: none; }

/* other apps under the cards */
.apps-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.app-mini { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-1); transition: transform .12s, border-color .12s; }
.app-mini:hover { transform: translateY(-2px); border-color: var(--brand); }
.app-mini img { width: 46px; height: 46px; border-radius: 14px; }
.app-mini b { display: block; }
.app-mini span { font-size: 12.5px; color: var(--muted); }
.app-mini .go { margin-inline-start: auto; color: var(--brand); }
.app-mini .go svg { width: 20px; height: 20px; fill: currentColor; }

/* checkout */
.co-sum { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: center; padding: 16px; margin-bottom: 16px; }
.co-sum .card-img { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-2); }
.co-sum .card-img img { width: 100%; aspect-ratio: 720 / 368; object-fit: cover; }
.co-sum .lines { display: flex; flex-direction: column; gap: 8px; }
.who-mini { display: flex; align-items: center; gap: 10px; }
.who-mini img, .who-mini .ph { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand-deep); flex: none; }
.who-mini .ph svg { width: 20px; height: 20px; fill: currentColor; }
.big-coins { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 900; }
.code-wrap .input.code { height: 60px; font-size: 22px; letter-spacing: .18em; }
.pay-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pay-chip { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); font-weight: 700; font-size: 13.5px; }
.pay-chip img { width: 26px; height: 26px; border-radius: 8px; }
.pay-chip .bal-ic { width: 26px; height: 26px; border-radius: 8px; background: var(--grad-gold); display: grid; place-items: center; }
.pay-chip .bal-ic svg { width: 15px; height: 15px; fill: #3b2600; }
.pay-chip.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }
.pay-chip[disabled] { opacity: .45; }
.gate { text-align: center; padding: 8px 0 2px; }
.gate p { color: var(--muted); margin: 0 0 12px; }
.gate .gbtn { max-width: 360px; margin: 0 auto; }

/* sections */
.sec { margin-top: 40px; scroll-margin-top: 90px; }
.sec-h { text-align: center; margin-bottom: 18px; }
.sec-h h2 { margin: 0; font-size: 22px; }
.sec-h p { margin: 6px 0 0; color: var(--muted); }
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: stretch; }
.about-text { padding: 24px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.about-text p { margin: 0; font-size: 15.5px; line-height: 1.9; color: var(--ink-2); position: relative; z-index: 1; }
.about-text::after { content: ""; position: absolute; inset-inline-end: -40px; bottom: -40px; width: 160px; height: 160px; background: url(/shared/brand/icon-192.png) center / contain no-repeat; opacity: .08; }
.feats { display: grid; gap: 12px; }
.feat { display: flex; gap: 12px; align-items: flex-start; padding: 16px; }
.feat .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-deep); flex: none; }
.feat .ic svg { width: 22px; height: 22px; fill: currentColor; }
.feat h4 { margin: 0 0 3px; font-size: 15px; }
.feat p { margin: 0; color: var(--muted); font-size: 13.5px; }
.fb-grid { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.review { padding: 16px; }
.review .stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; }
.review p { margin: 8px 0 10px; color: var(--ink-2); font-size: 14px; }
.review .by { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.rate { display: flex; gap: 4px; direction: ltr; justify-content: center; margin: 4px 0 12px; }
.rate button { border: 0; background: none; font-size: 30px; line-height: 1; color: var(--line-2); padding: 2px; transition: transform .1s, color .1s; }
.rate button.on { color: var(--gold); }
.rate button:hover { transform: scale(1.15); }
textarea.input { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; font-size: 15px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-inline-start: auto; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; color: var(--brand); flex: none; }
.faq details[open] summary::after { content: "\2212"; background: var(--brand-soft); }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); line-height: 1.8; }

/* footer */
.site-foot { display: block; max-width: none; margin: 50px 0 0; padding: 0; border: 0; background: color-mix(in srgb, var(--surface) 85%, transparent); border-top: 1px solid var(--line); color: var(--muted); }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 30px 18px 20px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.foot-brand { display: flex; gap: 12px; align-items: flex-start; }
.foot-brand img { width: 44px; height: 44px; border-radius: 13px; }
.foot-brand b { color: var(--ink); font-size: 17px; }
.foot-brand p { margin: 4px 0 0; font-size: 13px; }
.site-foot h5 { margin: 0 0 10px; color: var(--ink); font-size: 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; }
.site-foot ul a, .site-foot ul button { color: var(--muted); background: none; border: 0; padding: 0; font: inherit; text-align: start; }
.site-foot ul a:hover, .site-foot ul button:hover { color: var(--brand); }
.foot-bottom { max-width: 1120px; margin: 0 auto; padding: 14px 18px 120px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
.made-iq { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-2); }
.mini-flag { width: 24px; height: 16px; border-radius: 3px; overflow: hidden; display: inline-flex; flex-direction: column; box-shadow: 0 0 0 1px var(--line); }
.mini-flag i { flex: 1; }
.mini-flag i:nth-child(1) { background: #CE1126; }
.mini-flag i:nth-child(2) { background: #fff; }
.mini-flag i:nth-child(3) { background: #000; }
footer:not(.site-foot) { display: none; }

@media (max-width: 900px) {
  .flow-grid { grid-template-columns: 1fr; }
  .side { display: none; }
  .actionbar { display: flex; position: fixed; inset-inline: 12px; bottom: calc(80px + env(safe-area-inset-bottom) / 2); z-index: 44; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 95%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
  .actionbar .ab-t { flex: 1; min-width: 0; line-height: 1.3; }
  .actionbar .ab-t b { display: flex; align-items: center; gap: 5px; font-size: 15px; }
  .actionbar .ab-t span { font-size: 12px; color: var(--muted); }
  .actionbar .btn { height: 46px; padding: 0 18px; }
  main.has-bar { padding-bottom: 190px; }
  .about, .fb-grid { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .co-sum { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stepper .s span { display: none; }
  .stepper .s.on span { display: inline; }
  .app-hero { padding: 14px; border-radius: 20px; }
  .app-hero img { width: 50px; height: 50px; }
  .app-hero h1 { font-size: 18px; }
  .app-hero .unit { padding: 5px 10px; font-size: 12px; }
  .panel { padding: 14px; }
  .flag-bg { width: 130vw; top: 40px; inset-inline-end: -40vw; opacity: .06; }
  .sec-h h2 { font-size: 19px; }
}
