/* Hasana brand: deep navy + teal, taken from the logo. */
:root {
  --navy: #0A2342; --navy-2: #0D4A6B; --teal: #14A89A; --teal-2: #2EC4B6;
  --bg: #F5F8FB; --surface: #FFFFFF; --text: #0F1F33; --muted: #5A6B7E; --line: #E1E8EF;
  --brand: #0D4A6B; --brand-ink: #FFFFFF; --accent: #E6F6F4; --accent-ink: #0B7A70;
  --warn: #FFF6DD; --danger: #B3261E; --shadow: 0 1px 2px rgba(10,35,66,.06), 0 8px 24px rgba(10,35,66,.06);
  --grad: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--teal) 100%);
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08131F; --surface: #0F1E2E; --text: #E6EEF6; --muted: #9AABBD; --line: #1D3045;
    --brand: #2EC4B6; --brand-ink: #062019; --accent: #0F2E33; --accent-ink: #5FE0D3; --warn: #2B2716; --danger: #FF8A80;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.75 "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.35; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; margin: 0 auto; }
.muted { color: var(--muted); font-size: 15px; }
[hidden] { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--grad); color: #fff; text-decoration: none; border: 0; border-radius: 12px;
       padding: 14px 28px; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(13,74,107,.25); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(13,74,107,.3); }
.btn:focus-visible { outline: 3px solid var(--teal-2); outline-offset: 2px; }
.btn.secondary, .btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid currentColor; box-shadow: none; }
.btn.light { background: #fff; color: var(--navy); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.btn-sm { padding: 9px 18px; font-size: 15px; white-space: nowrap; }
.lang-switch { color: var(--text); text-decoration: none; font-weight: 500; font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.lang-switch:hover { border-color: var(--teal); color: var(--teal); }
.btn.small { padding: 6px 12px; font-size: 14px; }
.btn.block { width: 100%; }

/* Header */
header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text b { font-size: 21px; color: var(--navy); }
.logo-text small { font-size: 12px; color: var(--muted); }
@media (prefers-color-scheme: dark) { .logo-text b { color: #fff; } }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--teal); }
@media (max-width: 860px) { .nav { display: none; } header.top .lang-switch { margin-inline-start: auto; } }
@media (max-width: 420px) { .logo-text small { display: none; } .logo-mark { width: 34px; height: 34px; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 56px; background:
  radial-gradient(900px 400px at 85% -10%, rgba(46,196,182,.18), transparent 60%),
  radial-gradient(700px 380px at 0% 110%, rgba(13,74,107,.14), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero { padding-top: 40px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); border-radius: 99px; padding: 5px 14px; font-size: 14px; font-weight: 700; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); margin: 18px 0 16px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--navy-2), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { .hero h1 em { background: linear-gradient(90deg, #7FD8F0, var(--teal-2)); -webkit-background-clip: text; background-clip: text; } }
.lead { font-size: 19px; color: var(--muted); max-width: 620px; margin: 0 0 28px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 26px 0 0; color: var(--muted); font-size: 15px; }
.ticks li::before { content: "✓"; color: var(--teal); font-weight: 700; margin-inline-end: 6px; }

/* Hero visual: kit preview */
.kit { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 22px; position: relative; }
.kit-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.kit-head b { font-size: 16px; }
.score { display: flex; align-items: center; gap: 14px; background: var(--accent); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.ring { --p: 87; width: 62px; height: 62px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; color: var(--accent-ink);
        background: radial-gradient(closest-side, var(--accent) 76%, transparent 78% 100%), conic-gradient(var(--teal) calc(var(--p) * 1%), var(--line) 0); }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.files li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.files .ext { margin-inline-start: auto; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 1px 8px; direction: ltr; }
.ext.doc { background: #E7F0FB; color: #1C5BA8; } .ext.xls { background: #E5F5EC; color: #18794E; } .ext.pdf { background: #FDECEA; color: #B3261E; }
@media (prefers-color-scheme: dark) { .ext.doc { background: #13304F; color: #9CC6F5; } .ext.xls { background: #123826; color: #8EE0B4; } .ext.pdf { background: #3D1715; color: #FFB3AC; } }
.files .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; flex: none; direction: ltr; }

/* Stats band */
.stats-band { background: var(--grad); color: #fff; border-radius: 22px; padding: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; box-shadow: var(--shadow); }
.stats-band div { text-align: center; }
.stats-band b { display: block; font-size: 30px; line-height: 1.2; }
.stats-band span { font-size: 14px; opacity: .85; }
@media (max-width: 760px) { .stats-band { grid-template-columns: 1fr 1fr; } .stats-band b { font-size: 24px; } }

/* Sections */
section { padding: 40px 0; }
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 10px 0; }
.section-head p { color: var(--muted); margin: 0; }
h2 { font-size: 28px; margin: 0 0 18px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.alt { background: var(--surface); border-block: 1px solid var(--line); }

/* Contents grid */
.item { display: flex; gap: 14px; }
.item .num { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; direction: ltr; }
.item h3 { font-size: 17px; margin: 0 0 4px; }
.item p { margin: 0; color: var(--muted); font-size: 15px; }
.item .fmt { margin-top: 8px; display: flex; gap: 6px; }
.item .fmt span { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 0 7px; direction: ltr; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 18px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 34px; }
.step .n { position: absolute; top: -20px; inset-inline-start: 22px; width: 44px; height: 44px; border-radius: 50%;
           background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; box-shadow: 0 0 0 6px var(--bg); }
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); }

/* Sectors */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 8px 18px; font-weight: 500; }

/* Pricing */
.pricing { align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--teal); }
@media (min-width: 900px) { .plan.featured { transform: translateY(-8px); } }
.plan .badge { position: absolute; top: -13px; inset-inline-start: 22px; background: var(--teal); color: #fff; font-size: 13px; font-weight: 700; padding: 2px 12px; border-radius: 99px; }
.plan h3 { margin: 4px 0 0; font-size: 22px; }
.plan .for { color: var(--muted); font-size: 15px; margin: 2px 0 10px; }
.price { font-size: 42px; font-weight: 700; margin: 4px 0; color: var(--navy); }
@media (prefers-color-scheme: dark) { .price { color: #fff; } }
.price small { font-size: 16px; color: var(--muted); font-weight: 400; }
ul.check { list-style: none; padding: 0; margin: 14px 0 22px; flex: 1; }
ul.check li { padding-inline-start: 28px; position: relative; margin: 8px 0; }
ul.check li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
ul.check li.no { color: var(--muted); }
ul.check li.no::before { content: "–"; background: var(--line); color: var(--muted); }
.tag { display: inline-block; background: var(--accent); color: var(--accent-ink); border-radius: 99px; padding: 2px 12px; font-size: 14px; font-weight: 700; }

/* Escrow band */
.escrow { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: var(--accent); border-radius: 22px; padding: 28px; }
.escrow .shield { width: 72px; height: 72px; border-radius: 20px; background: var(--grad); display: grid; place-items: center; }
.escrow h2 { margin: 0 0 6px; font-size: 24px; }
.escrow p { margin: 0; }
@media (max-width: 600px) { .escrow { grid-template-columns: 1fr; } }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--teal); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Final CTA */
.cta-band { background: var(--grad); color: #fff; border-radius: 26px; padding: 44px 28px; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: auto -60px -80px auto; width: 260px; height: 260px; border-radius: 50%; background: rgba(46,196,182,.25); pointer-events: none; }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 10px; }
.cta-band p { opacity: .9; margin: 0 0 24px; }

/* Forms */
form.order { display: grid; gap: 18px; }
.row2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; transition: border-color .15s; }
input:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(46,196,182,.18); }
input.invalid { border-color: var(--danger); }
textarea { resize: vertical; }
.field-hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; margin: 0; }
.choice:hover { border-color: var(--teal-2); }
.choice:has(input:checked) { border-color: var(--teal); background: var(--accent); }
.choice input { accent-color: var(--teal); width: 18px; height: 18px; flex: none; margin: 0; }
.choice b, .choice .tag { white-space: nowrap; }
.choice b { margin-inline-start: auto; }
.choice[hidden] { display: none; }
.error { color: var(--danger); font-weight: 700; margin: 0; }
.error:empty { display: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.apple-pay-mark { display: inline-block; background: #000; color: #fff; border-radius: 6px; padding: 0 10px; font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; font-weight: 600; direction: ltr; }
.pm-logos { margin-inline-start: auto; display: flex; gap: 6px; }
.pm-logos span { font-size: 11px; font-weight: 700; border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; direction: ltr; color: var(--muted); background: var(--surface); }

/* Checkout layout */
.page-title { padding: 36px 0 8px; }
.page-title h1 { margin: 0; font-size: clamp(26px, 4vw, 36px); }
.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.stepper li + li::before { content: ""; width: 24px; height: 2px; background: var(--line); }
.stepper .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); font-size: 13px; font-weight: 700; }
.stepper .on { color: var(--text); }
.stepper .on .n { background: var(--grad); border-color: transparent; color: #fff; }
.stepper .done .n { background: var(--accent); border-color: var(--teal); color: var(--accent-ink); }
.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; padding: 20px 0 40px; }
@media (max-width: 920px) { .checkout { grid-template-columns: 1fr; } }
.fieldset { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.fieldset > h2 { font-size: 19px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.fieldset > h2 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 14px; }
.summary { position: sticky; top: 88px; }
@media (max-width: 920px) { .summary { position: static; } }
.summary h2 { font-size: 19px; margin: 0 0 6px; }
.summary .line { display: flex; justify-content: space-between; gap: 10px; margin: 8px 0; }
.summary .total { border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 12px; font-size: 20px; font-weight: 700; }
.summary ul.check { margin: 10px 0 0; font-size: 15px; }
.secure { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin-top: 14px; }
.secure svg { flex: none; margin-top: 3px; }

/* Result / status pages */
.status-card { text-align: center; padding: 40px 26px; margin-top: 32px; }
.status-icon { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-size: 34px; color: #fff; background: var(--grad); }
.status-icon.wait { background: var(--line); color: var(--muted); animation: pulse 1.6s infinite; }
.status-icon.bad { background: var(--danger); }
@keyframes pulse { 50% { opacity: .5; } }
.status-card h1 { margin: 0 0 8px; font-size: 28px; }
.status-card .btn { margin-top: 18px; }
.ref { display: inline-block; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font-size: 14px; margin-top: 18px; }

/* Legal */
.legal { padding-top: 32px; }
.legal h2 { font-size: 21px; margin-top: 30px; }
.note { background: var(--warn); border-radius: 12px; padding: 12px 16px; font-size: 15px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 56px; padding: 40px 0 24px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer-grid h4 { margin: 0 0 10px; font-size: 15px; }
.footer-grid > div > a:not(.logo) { display: block; color: var(--muted); text-decoration: none; margin: 6px 0; }
.footer-grid a:not(.logo):hover { color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; color: var(--muted); font-size: 13px; }

/* Admin */
.dash-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dash-head h1 { margin-inline-end: auto; }
.stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stats .price { font-size: 28px; }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr 1fr; gap: 10px; } .stats .card { padding: 14px; } .stats .price { font-size: 22px; } }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; white-space: nowrap; }
th { color: var(--muted); font-weight: 700; }
.s-completed, .s-delivered { color: var(--accent-ink); font-weight: 700; }
.s-failed, .s-disputed, .s-dispute_approved { color: var(--danger); font-weight: 700; }
.msg { margin-bottom: 10px; }
.msg p { white-space: pre-wrap; margin: 8px 0 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.logo-text { border-inline-start: 2px solid var(--teal); padding-inline-start: 10px; }
@media (prefers-color-scheme: dark) { .logo-mark path[fill="#0A2342"], .logo-mark rect[fill="#0A2342"] { fill: #E6EEF6; } .logo-mark path[stroke="#0A2342"] { stroke: #E6EEF6; } }
.logo-img { height: 48px; width: auto; display: block; }
@media (max-width: 420px) { .logo-img { height: 40px; } }
/* The logo's navy lettering needs a light plate on dark backgrounds. */
@media (prefers-color-scheme: dark) { .logo-img { background: #fff; border-radius: 10px; padding: 4px 8px; height: 52px; } }
.amen-logo { height: 24px; width: auto; vertical-align: middle; display: inline-block; margin-top: 6px; }
.amen-row { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.amen-row .amen-logo { margin-top: 0; }
.escrow .amen-row { margin: 2px 0 8px; }
.escrow .amen-logo { height: 30px; }
@media (prefers-color-scheme: dark) { .amen-logo { background: #fff; border-radius: 6px; padding: 3px 6px; box-sizing: content-box; } }

/* Customer account */
.account-link { color: var(--text); text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap; }
.account-link:hover { color: var(--teal); }
@media (max-width: 520px) { .account-link { display: none; } }
.account-head { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.account-head h1 { margin: 0; font-size: 26px; }
.account-head p { margin: 2px 0 0; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 700; flex: none; }
.account-count { margin-inline-start: auto; text-align: center; }
.account-count b { display: block; font-size: 26px; line-height: 1; color: var(--brand); }
.account-count span { font-size: 13px; color: var(--muted); }
.order-list { display: grid; gap: 14px; }
.order-card { padding: 18px 20px; }
.order-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 18px; }
.pill { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 12px; background: var(--line); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--accent); color: var(--accent-ink); }
.pill.wait { background: var(--warn); color: #8A6100; }
.pill.bad { background: rgba(179, 38, 30, .1); color: var(--danger); }
.order-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 6px; }
.order-facts dt { font-size: 13px; color: var(--muted); }
.order-facts dd { margin: 2px 0 0; font-weight: 600; }
@media (max-width: 620px) { .order-facts { grid-template-columns: 1fr 1fr; } .account-head { flex-wrap: wrap; } }
.order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.order-actions .muted { font-size: 14px; }
.small-note { font-size: 14px; margin: 6px 0 0; }
.account-tips { margin-top: 22px; }
.account-tips h2 { margin-top: 0; font-size: 20px; }

/* Receipt */
.receipt-page { background: var(--bg); padding: 24px 16px; }
.receipt { max-width: 640px; margin: 0 auto; padding: 28px; }
.receipt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--line); padding-bottom: 16px; }
.receipt-head h1 { margin: 0; font-size: 24px; text-align: end; }
.receipt-head p { margin: 0; text-align: end; }
.receipt-rows { margin: 16px 0; }
.receipt-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.receipt-rows dt { color: var(--muted); }
.receipt-rows dd { margin: 0; font-weight: 600; text-align: end; }
.receipt-total { display: flex; justify-content: space-between; padding: 8px 0; }
.receipt-total.grand { font-size: 18px; border-top: 2px solid var(--text); margin-top: 4px; padding-top: 12px; }
.receipt-note { font-size: 13px; margin: 18px 0; }
@media print {
  .no-print { display: none !important; }
  .receipt-page { background: #fff; padding: 0; }
  .receipt { box-shadow: none; border: 0; }
}

/* Admin dashboard */
.admin-page { background: var(--bg); }
.admin { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-side { background: var(--navy); color: #fff; padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; }
.admin-side .logo-img { background: #fff; border-radius: 10px; padding: 4px 8px; height: 44px; width: auto; margin-bottom: 14px; }
.admin-side button { background: none; border: 0; color: rgba(255,255,255,.8); font: inherit; font-size: 15px; text-align: start; padding: 10px 12px; border-radius: 10px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.admin-side button:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-side button.on { background: var(--teal); color: #fff; }
.admin-side .badge-n { background: #fff; color: var(--navy); border-radius: 999px; font-size: 12px; padding: 0 8px; font-weight: 700; }
.admin-side .side-foot { margin-top: auto; display: grid; gap: 6px; }
.admin-main { padding: 26px; min-width: 0; }
.admin-main h1 { margin: 0 0 4px; font-size: 26px; }
.admin-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-top .grow { margin-inline-end: auto; }
.mode { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 4px 12px; }
.mode.live { background: var(--accent); color: var(--accent-ink); }
.mode.sandbox { background: var(--warn); color: #8A6100; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi { padding: 16px 18px; }
.kpi .muted { font-size: 14px; }
.kpi b { display: block; font-size: 28px; line-height: 1.3; }
.kpi small { color: var(--muted); }
.panels { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-top: 14px; }
@media (max-width: 1000px) { .panels { grid-template-columns: 1fr; } }
.panel { padding: 18px 20px; }
.panel h2 { margin: 0 0 12px; font-size: 18px; }
.chart svg { width: 100%; height: 190px; display: block; }
.chart .bar { fill: var(--teal); }
.chart .bar.zero { fill: var(--line); }
.chart text { fill: var(--muted); font-size: 11px; }
.split-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.split-row:last-child { border-bottom: 0; }
.meter { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.meter i { display: block; height: 100%; background: var(--teal); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.filters input, .filters select { width: auto; min-width: 180px; flex: 1; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--accent); }
.drawer { position: fixed; inset-block: 0; inset-inline-end: 0; width: min(460px, 100%); background: var(--surface); box-shadow: -8px 0 32px rgba(10,35,66,.18); padding: 22px; overflow-y: auto; z-index: 50; }
.drawer[hidden] { display: none; }
.drawer h2 { margin: 0 0 4px; }
.drawer .close { position: absolute; inset-inline-end: 14px; top: 12px; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--muted); }
.drawer dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.drawer dt { color: var(--muted); }
.drawer dd { margin: 0; font-weight: 600; text-align: end; word-break: break-all; }
.drawer .actions { display: grid; gap: 8px; margin: 16px 0; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.timeline li { padding: 6px 0; border-bottom: 1px dashed var(--line); direction: ltr; text-align: left; }
.msg.done { opacity: .55; }
.msg-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.check-row:last-child { border-bottom: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--danger); }
.dot.ok { background: var(--teal); }
.dot.warn { background: #E0A100; }
@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-side .logo-img { margin: 0 8px 0 0; height: 36px; }
  .admin-side .side-foot { margin: 0; display: flex; }
  .admin-main { padding: 18px 14px; }
}
.drawer h2 { margin-top: 22px; }
.receipt-total b { white-space: nowrap; }
.account h2 { margin-top: 26px; }

/* Icons (line icons from the shared sprite in _icons.html) */
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.account-link, .lang-switch { display: inline-flex; align-items: center; gap: 6px; }
.account-link .i, .lang-switch .i { width: 17px; height: 17px; color: var(--teal); }
.item .num { position: relative; }
.item .num .i { width: 22px; height: 22px; }
.item .num::after { content: attr(data-n); position: absolute; bottom: -7px; inset-inline-end: -7px; min-width: 20px; text-align: center;
  font-size: 10px; line-height: 16px; font-weight: 700; background: var(--surface); color: var(--brand); border: 1px solid var(--line); border-radius: 6px; padding: 0 3px; }
.item { transition: transform .15s; }
.item:hover { transform: translateY(-2px); }
.stats-band .i { display: block; width: 28px; height: 28px; margin: 0 auto 6px; opacity: .9; }
.step-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 12px; }
.step-ic .i { width: 26px; height: 26px; }
.chip { display: inline-flex; align-items: center; gap: 8px; }
.chip .i { width: 18px; height: 18px; color: var(--teal); }
.plan-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.plan-ic .i { width: 24px; height: 24px; }
.plan.featured .plan-ic { background: var(--grad); color: #fff; }
summary { justify-content: flex-start; align-items: center; }
summary::after { margin-inline-start: auto; }
summary .q { color: var(--teal); display: inline-flex; }
summary .q .i { width: 20px; height: 20px; }
@media (max-width: 520px) { .account-link { display: none; } }
