/* BigoIraq store — teal + gold, light / dark. RTL first (ar / ku), LTR for en. */
:root {
  --font: 'Vazirmatn', 'Inter', system-ui, sans-serif;
  --bg: #f2f5fc; --bg-2: #e6ebf7; --surface: #ffffff; --surface-2: #f6f8fe; --line: #e0e6f3; --line-2: #ccd6ec;
  --ink: #0b1530; --ink-2: #33405f; --muted: #67738f; --faint: #9aa4bf;
  --brand: #2546d8; --brand-2: #3b82f6; --brand-ink: #ffffff; --brand-soft: #e6ecff; --brand-deep: #1a2f8f;
  --gold: #f5b301; --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, #0b1f5c 0%, #1f3fd1 52%, #4f8cff 100%);
  --grad-gold: linear-gradient(135deg, #f59e0b, #fcd34d);
  --shadow-1: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 1px 2px rgba(11, 21, 48, .06), 0 6px 16px -8px rgba(11, 21, 48, .14);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 18px 40px -16px rgba(16, 32, 96, .35), 0 4px 10px -4px rgba(16, 32, 96, .12);
  --radius: 18px; --radius-sm: 12px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #060a18; --bg-2: #0a1126; --surface: #0e1631; --surface-2: #111b3b; --line: #1d2a50; --line-2: #2a3a6a;
  --ink: #e8edff; --ink-2: #b9c3e6; --muted: #8893bb; --faint: #5b6690;
  --brand: #7c9cff; --brand-2: #a5b8ff; --brand-ink: #071034; --brand-soft: #18244f; --brand-deep: #c9d5ff;
  --gold: #fbbf24; --gold-soft: #33280a; --gold-ink: #fde68a;
  --ok-soft: #0f2e1d; --warn-soft: #33250a; --bad-soft: #3a1414; --info-soft: #0b2a3a;
  --grad: linear-gradient(135deg, #0a1440 0%, #1b2f86 52%, #2f5bd6 100%);
  --shadow-1: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 6px 16px -8px rgba(0, 0, 0, .7);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 20px 44px -16px rgba(0, 0, 0, .85);
  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(31, 63, 209, .6); }
.btn-primary:hover { box-shadow: 0 10px 26px -8px rgba(31, 63, 209, .75); }
.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/mascot-512.png) center / contain no-repeat; opacity: .1; }
.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; }
}

/* =====================================================================
   v4 — royal blue + gold, depth ("3D"), bell, saved IDs, balance top-up
   ===================================================================== */
body { background: radial-gradient(1200px 600px at 100% -10%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 60%), radial-gradient(900px 500px at -10% 110%, color-mix(in srgb, var(--gold) 8%, transparent), transparent 60%), var(--bg); background-attachment: fixed; }
.card { box-shadow: var(--shadow-1); border-color: color-mix(in srgb, var(--line) 85%, transparent); }
.btn { box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 2px 0 var(--line-2); }
.btn-primary { background: var(--grad); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 4px 0 #0d1d66, 0 12px 24px -10px rgba(31, 63, 209, .7); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 1px 0 #0d1d66; }
.btn-gold { box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 4px 0 #b77900, 0 12px 24px -10px rgba(245, 158, 11, .8); transform: translateY(-2px); }
.btn-gold:active { transform: translateY(1px); box-shadow: 0 1px 0 #b77900; }
.btn[disabled] { transform: none; }
.app-hero { box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 22px 44px -18px rgba(16, 32, 120, .7); }
.app-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .14), transparent 45%); pointer-events: none; }
.brand img { border-radius: 12px; box-shadow: 0 6px 14px -6px rgba(31, 63, 209, .7); }
.pkg { perspective: 700px; background: var(--surface); }
.pkg .art { transition: transform .25s; transform-style: preserve-3d; }
.pkg:hover .art { transform: rotateX(6deg) translateY(-2px); }
.pkg .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .28) 0%, transparent 35%); pointer-events: none; }
.pkg.on { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 28%, transparent), var(--shadow-2); }
.pkg.on::after { background: var(--grad-gold); color: #3b2600; }
.op-switch button.on { box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 4px 10px -4px rgba(16, 32, 96, .25); }
.stepper .s.on i { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent), 0 4px 10px -4px rgba(31, 63, 209, .8); }
.acc-card { box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 10px 24px -14px rgba(16, 32, 96, .4); }
.wallet-card { box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 26px 50px -20px rgba(16, 32, 120, .75); }
.wallet-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .16), transparent 40%); pointer-events: none; }
.tabbar a.on { box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 4px 10px -6px rgba(31, 63, 209, .6); }

/* account field: live search, saved IDs */
.acc-field { position: relative; }
.acc-field .input { padding-inline-end: 44px; }
.acc-field .spin-in { position: absolute; inset-inline-end: 14px; top: 50%; margin-top: -8px; color: var(--brand); }
.saved { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.saved-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; cursor: pointer; }
html[dir="rtl"] .saved-chip { padding: 4px 10px 4px 6px; }
.saved-chip img, .saved-chip .ph { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); }
.saved-chip .x { border: 0; background: none; color: var(--faint); font-size: 15px; line-height: 1; padding: 0 2px; }
.acc-card .save { margin-inline-start: auto; }
.acc-card .save + .ok { margin-inline-start: 6px; }
.need-acc { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* checkout: a small card thumbnail */
.co-sum { grid-template-columns: 150px 1fr; }
.co-sum .card-img { width: 150px; }
@media (max-width: 900px) { .co-sum { grid-template-columns: 112px 1fr; gap: 12px; padding: 12px; } .co-sum .card-img { width: 112px; } .big-coins { font-size: 20px; } }

/* notifications bell (customer) */
.bell { position: relative; }
.bell .dot { position: absolute; top: 6px; inset-inline-end: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }
.notes { position: absolute; top: 48px; inset-inline-end: 0; width: min(360px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-2); z-index: 60; }
.notes h4 { margin: 0; padding: 14px 16px 10px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.notes a.note { display: flex; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--ink); }
.notes a.note:hover { background: var(--surface-2); }
.notes a.note.unread { background: color-mix(in srgb, var(--brand-soft) 60%, transparent); }
.notes .ni { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.notes .ni.ok { background: var(--ok-soft); color: var(--ok); } .notes .ni.bad { background: var(--bad-soft); color: var(--bad); }
.notes .ni.warn { background: var(--warn-soft); color: var(--warn); } .notes .ni.info { background: var(--info-soft); color: var(--info); }
.notes .ni svg { width: 18px; height: 18px; fill: currentColor; }
.notes .nt b { display: block; font-size: 13.5px; } .notes .nt span { font-size: 12.5px; color: var(--muted); }
.notes .empty { padding: 26px 16px; }
@media (max-width: 560px) { .notes { position: fixed; top: 68px; inset-inline: 12px; width: auto; } }

/* balance top-up with cards */
.topup { padding: 18px; margin-top: 16px; }
.tu-row { display: grid; grid-template-columns: 150px 120px 1fr 40px; gap: 8px; align-items: center; margin-bottom: 8px; }
.tu-row .input { height: 46px; font-size: 15px; }
.tu-row .code { font-size: 16px; letter-spacing: .1em; text-align: center; direction: ltr; }
.tu-row .del { width: 40px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 18px; }
.tu-ops { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; height: 46px; }
.tu-ops button { border: 0; border-radius: 9px; background: none; display: grid; place-items: center; }
.tu-ops button img { width: 24px; height: 24px; border-radius: 7px; opacity: .45; }
.tu-ops button.on { background: var(--surface); box-shadow: var(--shadow-1); } .tu-ops button.on img { opacity: 1; }
.tu-total { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-ink); font-weight: 800; }
.tu-results { margin-top: 12px; display: grid; gap: 8px; }
.tu-res { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.tu-res img { width: 28px; height: 28px; border-radius: 8px; }
.tu-res .t { flex: 1; font-size: 13.5px; }
@media (max-width: 640px) {
  .tu-row { grid-template-columns: 1fr 1fr 40px; }
  .tu-row .code { grid-column: 1 / 3; grid-row: 2; }
  .tu-row .del { grid-row: 1 / 3; grid-column: 3; height: 100%; }
}

.pkgs-wide { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
@media (max-width: 560px) { .pkgs-wide { grid-template-columns: repeat(2, 1fr); } }
.acc-card .who-t { min-width: 0; }
.acc-card .who-t b, .acc-card .who-t span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* step 1: the chosen card waits for a confirmation */
.confirm-bar { position: fixed; z-index: 46; inset-inline: 0; bottom: 16px; margin: 0 auto; width: min(760px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 24px 50px -18px rgba(16, 32, 96, .55); animation: up .22s; }
.confirm-bar .cb-card { width: 92px; border-radius: 10px; box-shadow: var(--shadow-1); flex: none; }
.confirm-bar .cb-t { flex: 1; min-width: 0; line-height: 1.45; }
.confirm-bar .cb-t > b { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.confirm-bar .cb-t > span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.confirm-bar .cb-btns { display: flex; gap: 6px; align-items: center; flex: none; }
.confirm-bar .btn { height: 46px; }
main.has-bar { padding-bottom: 130px; }
@media (max-width: 900px) {
  .confirm-bar { bottom: calc(80px + env(safe-area-inset-bottom) / 2); }
  main.has-bar { padding-bottom: 200px; }
}
@media (max-width: 560px) {
  .confirm-bar { flex-wrap: wrap; }
  .confirm-bar .cb-card { width: 74px; }
  .confirm-bar .cb-btns { width: 100%; }
  .confirm-bar .cb-btns .btn { flex: 1; }
}

/* =====================================================================
   v6 — smoothness: page transitions, skeletons, fades, gentle motion
   ===================================================================== */
:root { --ease: cubic-bezier(.22, .8, .24, 1); }
main.page-in > * { animation: pageIn .38s var(--ease) both; }
main.page-in > *:nth-child(2) { animation-delay: .03s; }
main.page-in > *:nth-child(3) { animation-delay: .06s; }
main.page-in > *:nth-child(4) { animation-delay: .09s; }
main.page-in > *:nth-child(5) { animation-delay: .12s; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }

/* skeletons */
.sk-line, .sk-box, .acc-card.skel .ph { background: linear-gradient(90deg, var(--surface-2) 0%, var(--line) 40%, var(--surface-2) 80%); background-size: 300% 100%; animation: shimmer 1.2s ease-in-out infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.sk-line { display: block; height: 11px; border-radius: 6px; margin: 5px 0; }
.sk-line.w60 { width: 60%; } .sk-line.w35 { width: 35%; } .sk-line.w20 { width: 64px; }
.sk-box { width: 42px; height: 42px; border-radius: 12px; flex: none; }
.acc-card.skel { background: var(--surface); border-color: var(--line); }
.acc-card.skel .ph { border-color: var(--surface); }
.acc-card.skel .who-t { flex: 1; }
.skel-li { pointer-events: none; }

/* the account card arrives instead of popping in */
.acc-card:not(.skel) { animation: cardIn .34s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(6px) scale(.985); } }
.acc-card .ok { animation: tick .45s .08s var(--ease) both; }
@keyframes tick { from { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.12); } }
img.fading { opacity: 0; transition: opacity .35s ease; }
img.fading.in { opacity: 1; }
#who { min-height: 0; transition: min-height .2s; }
.acc-field .spin-in { transition: opacity .2s; }

/* cards: smoother selection, no flash when switching company */
.pkg { transition: transform .18s var(--ease), box-shadow .2s, border-color .2s; will-change: transform; }
.pkg:active { transform: scale(.975); }
.pkg .art img { transition: opacity .25s ease; }
#pkgs.swap .art img { opacity: .2; }
.op-switch button { transition: background .2s, color .2s, box-shadow .2s; }
.pay-chip, .opt, .tabs button, .nav a, .tabbar a, .app-mini, .saved-chip { transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s; }
.saved-chip { animation: cardIn .3s var(--ease) both; }
.btn { transition: transform .12s var(--ease), box-shadow .2s, background .2s, filter .2s; }
.btn:hover:not([disabled]) { filter: brightness(1.04); }
.confirm-bar { animation: barIn .3s var(--ease) both; }
@keyframes barIn { from { opacity: 0; transform: translateY(18px); } }
.toast { animation: toastIn .28s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.menu, .notes { animation: cardIn .2s var(--ease) both; transform-origin: top; }
html { scroll-behavior: smooth; }
.input { transition: border-color .18s, box-shadow .18s, background .18s; }

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

/* the skeleton card shows the lookup; no spinner over the typed ID */
.acc-field .spin-in { display: none !important; }
.acc-field .input { padding-inline-end: 14px; }

/* =====================================================================
   v7 — the BigoIraq character as the brand; the Iraqi flag clearly across the top
   ===================================================================== */
.brand img.mascot, .foot-brand img.mascot { border-radius: 0; box-shadow: none; background: none; object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(245, 179, 1, .38)) drop-shadow(0 2px 3px rgba(11, 21, 48, .2)); transition: transform .35s var(--ease, ease); }
.brand img.mascot { width: 46px; height: 46px; }
.foot-brand img.mascot { width: 52px; height: 52px; }
.brand:hover img.mascot { transform: translateY(-2px) rotate(-6deg) scale(1.05); }
.wordmark { font-family: 'Nunito', var(--font); font-weight: 900; font-size: 23px; line-height: 1.05; letter-spacing: -.015em; color: var(--ink); unicode-bidi: isolate; }
.wordmark span { background: linear-gradient(180deg, #ffd23f 0%, #f5b301 55%, #e08e00 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .wordmark span { filter: drop-shadow(0 1px 0 rgba(150, 90, 0, .25)); }
.brand small { margin-top: 1px; }
.foot-brand .wordmark { font-size: 21px; }
.sheet img.logo.mascot { width: 92px; height: 92px; border-radius: 0; filter: drop-shadow(0 8px 18px rgba(245, 179, 1, .35)); }

/* the flag: red / white / black across the top of the page, waving; fades out below */
.flag-bg { position: absolute; top: 0; inset-inline: 0; width: 100%; height: 470px; aspect-ratio: auto; transform: none; overflow: hidden; z-index: -1; opacity: .7;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%); }
:root[data-theme="dark"] .flag-bg { opacity: .52; }
.flag-bg svg { position: absolute; inset: -4% -3%; width: 106%; height: 108%; }
.stepper { background: color-mix(in srgb, var(--surface) 84%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: 999px; padding: 7px 12px; box-shadow: var(--shadow-1); }
.flag-line { height: 5px; }
@media (max-width: 720px) {
  .flag-bg { width: 100%; height: 400px; top: 0; inset-inline-end: 0; opacity: .66; }
  :root[data-theme="dark"] .flag-bg { opacity: .5; }
  .brand { gap: 7px; }
  .brand img.mascot { width: 36px; height: 36px; }
  .wordmark { font-size: 19px; }
}
@media (max-width: 440px) {
  .lang-btn .lang-l { display: none; }
  .wordmark { font-size: 18px; }
}
