/* Boost store — identity taken from boostsaudi.com: violet #2c2a6c, yellow #ffe900, red #ea0d44, blue #009efb, Tajawal. */
:root {
  --bg: #f6f5fb; --surface: #ffffff; --sunk: #ecebf5; --ink: #1c1a4a; --muted: #625f86; --line: #e0deef;
  --brand: #2c2a6c; --brand-ink: #ffffff; --brand-soft: #fff9c2; --accent: #009efb; --yellow: #ffe900; --red: #ea0d44;
  --ok: #1f7a46; --ok-soft: #e0f3e7; --warn: #9a5b00; --warn-soft: #fbefd9; --bad: #b3261e; --bad-soft: #fbe2e0;
  --radius: 14px;
  --f-display: "Tajawal", "Chivo", system-ui, sans-serif;
  --f-body: "Tajawal", "Chivo", "Segoe UI", Tahoma, system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.6; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 16px; }
.num { font-variant-numeric: tabular-nums; }

.testbar { background: var(--red); color: #fff; font-size: 13px; text-align: center; padding: 6px 12px; }
.announce { background: var(--brand-soft); color: var(--ink); font-size: 14px; text-align: center; padding: 8px 12px; }

header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 10px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 42px; width: auto; display: block; }
.spacer { flex: 1; }
.iconbtn { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; color: var(--ink); }
.iconbtn .ic { display: none; font-size: 17px; line-height: 1; }
@media (max-width: 520px) {
  .hero::after { width: 90px; height: 90px; inset-inline-end: -45px; bottom: -45px; box-shadow: -9px -9px 0 var(--red), -18px -18px 0 #5b4bd1; }
  header.top .wrap { gap: 6px; }
  .iconbtn { padding: 6px 9px; }
  .iconbtn .ic { display: inline; }
  .iconbtn .lbl { display: none; }
  .logo img { height: 36px; }
}
.iconbtn .count { background: var(--red); color: var(--brand-ink); border-radius: 999px; padding: 0 7px; font-size: 12px; font-weight: 700; }

.hero { margin-top: 16px; padding: 28px 22px; display: grid; gap: 12px; background: var(--brand); color: #fff; border-radius: 20px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset-inline-end: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; background: var(--yellow); opacity: .9; box-shadow: -14px -14px 0 var(--red), -28px -28px 0 #5b4bd1; }
.hero > * { position: relative; z-index: 1; max-width: 640px; }
.hero h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 5.5vw, 44px); line-height: 1.2; margin: 0; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--yellow); text-shadow: 2px 2px 0 var(--red); }
.hero p { margin: 0; color: #dcdaf5; max-width: 60ch; font-size: 16px; }
.steps { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.steps span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 4px 12px; color: #fff; }

.tabs { display: flex; gap: 8px; overflow-x: auto; padding-block: 14px 6px; scrollbar-width: none; }
.tab { white-space: nowrap; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; padding-block: 10px 40px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; align-content: start; position: relative; min-width: 0; }
.card .badge { position: absolute; top: 12px; inset-inline-end: 12px; background: var(--yellow); color: var(--brand); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.card h3 { margin: 0; font-family: var(--f-display); font-size: 17px; line-height: 1.4; padding-inline-end: 70px; }
.card .desc { color: var(--muted); font-size: 13.5px; margin: 0; }
.value { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.value .big { font-family: var(--f-display); font-size: 34px; font-weight: 800; color: var(--brand); line-height: 1; text-shadow: 2px 2px 0 var(--yellow); }
.value .lbl { font-size: 13px; color: var(--muted); }
.extra { font-size: 13px; background: var(--ok-soft); color: var(--ok); border-radius: 8px; padding: 3px 8px; justify-self: start; }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.price { font-family: var(--f-display); font-weight: 700; font-size: 20px; }
.price small { font-family: var(--f-body); font-weight: 400; font-size: 12px; color: var(--muted); }
.btn { border: 0; border-radius: 10px; padding: 10px 16px; background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.block { width: 100%; padding: 13px; font-size: 16px; }

.drawer { position: fixed; inset: 0; z-index: 50; display: grid; }
.drawer .shade { position: absolute; inset: 0; background: rgba(20, 14, 34, .45); }
.drawer .panel { position: relative; margin-inline-start: auto; width: min(440px, 100%); height: 100%; background: var(--bg); display: grid; grid-template-rows: auto 1fr auto; box-shadow: 0 0 40px rgba(0,0,0,.2); }
.panel .head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
.panel .head h2 { margin: 0; font-family: var(--f-display); font-size: 19px; }
.panel .body { overflow-y: auto; padding: 16px; display: grid; gap: 12px; align-content: start; }
.panel .foot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--surface); }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.line .t { font-weight: 600; font-size: 14px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { background: var(--surface); border: 0; width: 32px; height: 30px; font-size: 18px; }
.qty span { min-width: 26px; text-align: center; }
.totals { display: grid; gap: 4px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-family: var(--f-display); font-size: 19px; font-weight: 700; }

.field { display: grid; gap: 4px; }
.field span { font-size: 13px; color: var(--muted); }
.field input { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: var(--surface); color: var(--ink); width: 100%; }
.field input.bad { border-color: var(--bad); background: var(--bad-soft); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
.check input { margin-top: 4px; }
.msg { font-size: 14px; border-radius: 10px; padding: 9px 12px; }
.msg.err { background: var(--bad-soft); color: var(--bad); }
.msg.ok { background: var(--ok-soft); color: var(--ok); }
.msg.info { background: var(--warn-soft); color: var(--warn); }
.otp { letter-spacing: .5em; text-align: center; font-size: 22px; direction: ltr; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }

footer.foot { border-top: 1px solid var(--line); padding-block: 22px 40px; color: var(--muted); font-size: 13.5px; }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* order page */
.orderbox { max-width: 520px; margin: 24px auto 60px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 14px; }
.status { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; border-radius: 999px; padding: 4px 12px; justify-self: start; font-size: 14px; }
.status.ready { background: var(--ok-soft); color: var(--ok); }
.status.wait { background: var(--warn-soft); color: var(--warn); }
.status.done { background: var(--sunk); color: var(--muted); }
.status.bad { background: var(--bad-soft); color: var(--bad); }
.qr { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; justify-self: center; width: min(280px, 100%); }
.qr img { display: block; width: 100%; height: auto; }
.code { font-family: ui-monospace, Consolas, monospace; font-size: 22px; letter-spacing: .08em; text-align: center; direction: ltr; font-weight: 700; }
.how { background: var(--sunk); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.how ol { margin: 6px 0 0; padding-inline-start: 20px; }
@media (prefers-reduced-motion: no-preference) { .card { transition: transform .15s ease; } .card:hover { transform: translateY(-2px); } }
