/* Layout: switcher bar → store page (navy hero, category tiles, product grid, school bundles, gifts, contact) | admin (sidebar + panels) | brand board. One committed light look with a navy/gold identity. */
:root {
  --navy: #101736; --navy2: #1A2350; --line-navy: #2A3566;
  --gold: #E2B04A; --gold-soft: #FBF3E1; --gold-ink: #9A6A12;
  --ink: #131A33; --muted: #5B6380; --line: #E7E9F1; --line2: #ECEEF4; --soft: #F5F6FA; --page: #FFFFFF; --admin-bg: #F3F4F8;
  --coral: #FF6B5B; --sky: #3FA9F5; --mint: #2BC48A; --sun: #FFC23C;
  --ok: #11603F; --ok-soft: #E3F8EF; --bad: #C7392B; --bad-soft: #FFEDEA;
  --display: 'Alexandria', 'IBM Plex Sans Arabic', Tahoma, sans-serif;
  --latin: 'Unbounded', 'Alexandria', sans-serif;
  --body: 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
.num { font-variant-numeric: tabular-nums; }

/* store */
.topbar { background: var(--navy); color: #E8EAF4; font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between; padding-block: 8px; }
.topbar .gold { color: var(--gold); }
header.site { border-bottom: 1px solid var(--line2); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand b { display: block; font-family: var(--latin); font-weight: 800; font-size: 23px; letter-spacing: .5px; line-height: 1.15; direction: ltr; text-align: right; }
.brand small { font-size: 12.5px; color: var(--muted); }
.search { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 10px; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 0; outline: none; font-size: 15px; }
nav.main { display: flex; flex-wrap: wrap; gap: 4px 20px; font-weight: 500; font-size: 15px; }
nav.main a { text-decoration: none; color: var(--ink); }
.cart-btn { display: flex; align-items: center; gap: 10px; border: 0; background: var(--navy); color: #fff; border-radius: 14px; padding: 11px 18px; min-height: 48px; font-weight: 600; }
.badge { min-width: 24px; height: 24px; border-radius: 12px; background: var(--gold); color: var(--navy); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 7px; }

.hero { padding-top: 26px; }
.hero-card { background: var(--navy); border-radius: 36px; position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 36px; padding: clamp(28px, 5vw, 60px); }
.hero-card .ring { position: absolute; border-radius: 50%; border: 1px solid var(--line-navy); pointer-events: none; }
.hero-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; position: relative; }
.pill-gold { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; color: var(--gold); border: 1px solid #5A4A26; border-radius: 999px; padding: 5px 15px; font-size: 14px; }
.pill-gold i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero h1 { margin: 0; font-weight: 800; font-size: clamp(38px, 5.2vw, 70px); line-height: 1.15; color: #fff; }
.hero h1 span { color: var(--gold); }
.hero p { margin: 0; font-size: 18.5px; color: #C9CEE4; max-width: 520px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 14px 26px; min-height: 50px; font-weight: 700; font-size: 15.5px; text-decoration: none; }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.navy { background: var(--navy); color: #fff; }
.btn.ghost-dark { background: transparent; color: #fff; border: 1px solid #3A4678; }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid #D5D9E6; }
.btn.sm { padding: 10px 16px; min-height: 44px; font-size: 14px; border-radius: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 8px; }
.facts b { display: block; font-family: var(--display); font-size: 21px; color: #fff; }
.facts span { font-size: 13.5px; color: #9FA6C6; }
.hero-art { flex: 1 1 360px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; position: relative; }
.tile { border-radius: 26px; padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; font-weight: 600; font-size: 14px; }
.tile svg { width: 100%; max-width: 120px; height: auto; }
.tile.big { grid-row: span 2; justify-content: space-between; align-items: flex-start; text-align: right; min-height: 320px; padding: 26px; }
.tile.big svg { max-width: 200px; align-self: center; }

.perks { padding-top: 20px; }
.perks .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.perk { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line2); border-radius: 18px; padding: 15px 17px; }
.perk .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.perk b { display: block; font-weight: 600; }
.perk span { font-size: 13.5px; color: var(--muted); }

section.block { padding-top: 72px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 24px; }
.kicker { font-size: 14px; font-weight: 600; color: var(--gold-ink); }
.sec-head h2 { margin: 4px 0 0; font-weight: 700; font-size: clamp(27px, 3vw, 38px); line-height: 1.25; }
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.cat { border: 2px solid transparent; border-radius: 24px; padding: 18px 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: 16px; }
.cat svg { width: 76px; height: 76px; }
.cat[aria-pressed="true"] { border-color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 16px; min-height: 40px; font-size: 14px; font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.product { border: 1px solid var(--line2); border-radius: 26px; padding: 12px; display: flex; flex-direction: column; gap: 12px; background: #fff; transition: transform .18s, box-shadow .18s; }
.product:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(16,23,54,.35); }
.p-art { position: relative; height: 200px; border-radius: 20px; display: grid; place-items: center; }
.p-art svg.art { width: 140px; height: 140px; }
.p-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.swap { position: absolute; bottom: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; border: 0; background: rgba(16,23,54,.82); color: #fff; border-radius: 999px; padding: 6px 12px; min-height: 34px; font-size: 12.5px; font-weight: 600; opacity: 0; transition: opacity .15s; }
.product:hover .swap, .swap:focus-visible { opacity: 1; }
@media (hover: none) { .swap { opacity: 1; } }
.p-badge { position: absolute; top: 12px; right: 12px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 11px; }
.heart { position: absolute; top: 8px; left: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; color: var(--muted); }
.heart[aria-pressed="true"] { color: var(--coral); }
.heart[aria-pressed="true"] svg { fill: var(--coral); }
.p-info { padding: 0 6px; display: flex; flex-direction: column; }
.p-cat { font-size: 12.5px; font-weight: 600; }
.p-name { font-weight: 700; font-size: 16px; line-height: 1.45; }
.p-note { font-size: 13.5px; color: var(--muted); }
.p-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 6px 4px; }
.price { font-family: var(--display); font-weight: 700; font-size: 22px; }
.price small { font-size: 15px; color: var(--muted); }
.add { border: 0; border-radius: 12px; padding: 10px 16px; min-height: 44px; background: var(--navy); color: #fff; font-weight: 600; font-size: 14px; }
.add.in { background: var(--tint); color: var(--fg); }
.footnote { font-size: 13px; color: #6B7290; margin-top: 14px; }

.school { background: var(--soft); border-radius: 36px; padding: clamp(24px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.school .txt { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.school p { margin: 0; color: var(--muted); font-size: 17px; }
.grade { border: 0; background: #fff; color: var(--ink); border-radius: 12px; padding: 10px 18px; min-height: 44px; font-weight: 600; }
.grade[aria-pressed="true"] { background: #6537D9; color: #fff; }
.bundle { flex: 1 1 360px; min-width: 0; background: #fff; border: 1px solid var(--line2); border-radius: 28px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.bundle .row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.bundle .row span:last-child { color: var(--muted); }
.total { display: flex; justify-content: space-between; align-items: center; }
.total b { font-family: var(--display); font-size: 28px; }

.gifts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.promo { border-radius: 32px; padding: 38px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; min-height: 280px; }
.promo h3 { margin: 0; font-size: 29px; max-width: 320px; line-height: 1.3; }
.promo p { margin: 0; max-width: 330px; }
.promo .deco { position: absolute; bottom: -26px; left: -6px; width: 180px; height: 180px; }
.promo > :not(.deco) { position: relative; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step { border: 1px solid var(--line2); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.step .n { font-family: var(--latin); font-weight: 800; font-size: 26px; color: var(--gold); }
.step b { font-size: 18px; }
.step span { color: var(--muted); font-size: 15px; }
.contact { display: flex; flex-wrap: wrap; gap: 18px; }
.contact .card { flex: 1 1 340px; min-width: 0; border: 1px solid var(--line2); border-radius: 28px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.contact .li { display: flex; gap: 12px; align-items: flex-start; }
.contact .li svg { color: var(--gold-ink); flex-shrink: 0; margin-top: 3px; }
.map { flex: 1 1 400px; min-width: 0; min-height: 280px; border-radius: 28px; background: var(--soft); border: 1px dashed #D5D9E6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); text-align: center; padding: 24px; }
footer.site { margin-top: 72px; background: var(--navy); color: #C9CEE4; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 22px; justify-content: space-between; padding-block: 40px 110px; font-size: 14.5px; }
footer.site b { color: #fff; }

/* chat */
.fab { position: fixed; z-index: 69; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: calc(20px + env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 10px; border: 0; background: var(--navy); color: #fff; border-radius: 999px; padding: 8px 18px 8px 8px; min-height: 56px; font-weight: 700; box-shadow: 0 14px 34px -10px rgba(16,23,54,.55); }
.fab span { width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; }
.chat { position: fixed; z-index: 70; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: calc(18px + env(safe-area-inset-left, 0px)); width: 390px; max-width: calc(100% - 36px); height: min(600px, calc(100% - 90px)); background: #fff; border: 1px solid var(--line); border-radius: 26px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(16,23,54,.5); }
.chat-h { background: var(--navy); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.chat-h div { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.chat-h small { font-size: 12.5px; color: #9FD9B9; }
.x { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-navy); background: transparent; color: #fff; display: grid; place-items: center; }
.feed { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #F7F8FB; }
.msg { max-width: 86%; display: flex; flex-direction: column; gap: 6px; }
.msg.me { align-self: flex-end; }
.msg.bot { align-self: flex-start; }
.msg .b { border-radius: 18px; padding: 10px 14px; font-size: 14.5px; line-height: 1.65; white-space: pre-line; }
.msg.me .b { background: var(--navy); color: #fff; }
.msg.bot .b { background: #fff; border: 1px solid var(--line); }
.msg .act { align-self: flex-start; border: 0; background: var(--gold); color: var(--navy); border-radius: 10px; padding: 8px 14px; min-height: 40px; font-weight: 700; font-size: 13.5px; text-decoration: none; }
.msg a.act { background: var(--navy); color: #fff; }
.typing { color: var(--muted); font-size: 13px; }
.quick { display: flex; gap: 6px; padding: 10px 12px 0; overflow-x: auto; }
.quick button { flex-shrink: 0; border: 1px solid #E2D2AC; background: var(--gold-soft); color: #6B4A0E; border-radius: 999px; padding: 6px 12px; min-height: 36px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chat form { display: flex; gap: 8px; padding: 10px 12px 12px; }
.chat input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--soft); border-radius: 999px; padding: 11px 16px; font-size: 14.5px; }
.send { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; flex-shrink: 0; }

/* cart drawer */
.drawer-wrap { position: fixed; inset: 0; z-index: 80; display: flex; }
.drawer-wrap .scrim { flex: 1; border: 0; background: rgba(16,23,54,.5); }
.drawer { width: 460px; max-width: 100%; background: #fff; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.dr-h { padding: 18px 22px; border-bottom: 1px solid var(--line2); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dr-h b { font-family: var(--display); font-size: 20px; display: block; }
.dr-h small { color: var(--muted); font-size: 13px; }
.x.light { border-color: var(--line); color: var(--ink); }
.bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 14px 22px 0; font-size: 12.5px; font-weight: 600; }
.bar div { display: flex; flex-direction: column; gap: 6px; color: #9AA0B5; }
.bar div::before { content: ""; height: 5px; border-radius: 3px; background: var(--line); }
.bar div.on { color: var(--ink); }
.bar div.on::before { background: var(--gold); }
.dr-b { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.line { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line2); border-radius: 18px; padding: 12px; }
.line .sw { width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0; }
.line .nm { flex: 1; min-width: 0; font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.line .nm small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 18px; line-height: 1; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 12px 14px; min-height: 52px; text-align: right; width: 100%; }
.opt[aria-pressed="true"] { border-color: var(--navy); }
.opt .t { display: flex; flex-direction: column; flex: 1; }
.opt .t small { color: var(--muted); font-size: 13px; }
.opt .logo { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px; flex-shrink: 0; }
.opt .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; }
.opt[aria-pressed="true"] .dot { border-color: var(--navy); background: var(--gold); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field input, .field textarea { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 15px; background: #fff; }
.note { font-size: 13px; color: var(--muted); background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.dr-f { border-top: 1px solid var(--line2); padding: 14px 22px 18px; display: flex; flex-direction: column; gap: 8px; }
.dr-f .r { display: flex; justify-content: space-between; color: var(--muted); font-size: 15px; }
.dr-f .r.t { color: var(--ink); align-items: center; font-weight: 700; }
.dr-f .r.t b { font-family: var(--display); font-size: 26px; }
.dr-f .acts { display: flex; gap: 8px; }
.dr-f .acts .btn { flex: 1; }
.done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 30px 6px; }
.done .ok { width: 76px; height: 76px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }

/* admin */
#view-admin { background: var(--admin-bg); }
.admin { display: flex; flex-wrap: wrap; min-height: calc(100vh - 52px); font-size: 14.5px; line-height: 1.6; }
.aside { flex: 1 1 240px; max-width: 100%; background: var(--navy); color: #C9CEE4; padding: 22px 14px; display: flex; flex-direction: column; gap: 18px; }
.aside .nav { display: flex; flex-direction: column; gap: 3px; }
.aside .nav button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-radius: 12px; padding: 10px 12px; min-height: 44px; background: transparent; color: #C9CEE4; font-weight: 600; text-align: right; }
.aside .nav button i { width: 8px; height: 8px; border-radius: 50%; background: #3A4678; }
.aside .nav button span.l { flex: 1; }
.aside .nav button[aria-current="page"] { background: #1F2A5C; color: #fff; }
.aside .nav button[aria-current="page"] i { background: var(--gold); }
.bot-box { margin-top: auto; background: var(--navy2); border-radius: 14px; padding: 14px; font-size: 13px; }
.amain { flex: 999 1 620px; min-width: 0; padding: 22px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 900px) { .amain { padding-inline: 28px; } }
.ahead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ahead h1 { margin: 0; font-size: 24px; font-weight: 700; }
.ahead small { color: #6B7290; font-size: 13px; }
.tag-demo { font-size: 12.5px; color: var(--gold-ink); background: var(--gold-soft); border-radius: 999px; padding: 4px 12px; }
.toast { background: var(--ok-soft); color: var(--ok); border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.kpi { background: #fff; border: 1px solid #fff; border-radius: 18px; padding: 15px 18px; display: flex; flex-direction: column; }
.kpi span { font-size: 13px; color: #6B7290; }
.kpi b { font-family: var(--display); font-size: 28px; font-variant-numeric: tabular-nums; }
.kpi.attn { border-color: #F0D9A6; }
.kpi.attn b { color: #8A5A00; }
.kpi.alert { border-color: #F5C9C2; }
.kpi.alert b { color: var(--bad); }
.panel { background: #fff; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panel .ph { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; }
.panel .ph small { font-weight: 400; color: #6B7290; font-size: 12.5px; }
.rowp { display: flex; flex-wrap: wrap; gap: 14px; }
.rowp > .panel { flex: 1 1 300px; }
.rowp > .panel.wide { flex: 999 1 420px; }
.bars { display: flex; align-items: flex-end; gap: 12px; height: 190px; border-bottom: 1px solid var(--line); }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; font-size: 11.5px; color: #6B7290; }
.bars div i { display: block; width: 100%; max-width: 44px; border-radius: 8px 8px 3px 3px; background: #2A3A8F; }
.bars div.today i { background: var(--gold); }
.bar-l { display: flex; gap: 12px; font-size: 12px; color: #6B7290; }
.bar-l span { flex: 1; text-align: center; }
.low { display: flex; justify-content: space-between; gap: 8px; border-radius: 12px; background: #FFF6E5; padding: 10px 12px; }
.low b { color: #9A5B00; font-size: 13px; }
.tbl { background: #fff; border-radius: 18px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th { text-align: right; color: #6B7290; font-size: 12.5px; font-weight: 500; padding: 12px 16px; white-space: nowrap; }
td { padding: 11px 16px; border-top: 1px solid #EEF0F5; vertical-align: middle; }
td small { display: block; color: #6B7290; font-size: 12px; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 3px 11px; white-space: nowrap; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.new { background: #FBF3E1; color: #8A5A00; } .st.prep { background: #E6F4FE; color: #1F6FB2; } .st.out { background: #F0EAFE; color: #5B32C9; } .st.done { background: var(--ok-soft); color: var(--ok); }
.mini { border: 0; background: var(--navy); color: #fff; border-radius: 10px; padding: 7px 12px; min-height: 36px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.mini.outline { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.inp { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-weight: 700; width: 90px; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: #fff; }
.stepper b { min-width: 30px; text-align: center; }
.stepper b.lowc { color: var(--bad); }
.sw-t { width: 52px; height: 30px; border-radius: 15px; border: 0; background: #C9CEDC; display: flex; align-items: center; justify-content: flex-end; padding: 0 4px; }
.sw-t[aria-pressed="true"] { background: var(--mint); justify-content: flex-start; }
.sw-t span { width: 22px; height: 22px; border-radius: 50%; background: #fff; }
.chat-list { flex: 1 1 280px; min-width: 0; background: #fff; border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.chat-item { display: flex; gap: 10px; align-items: flex-start; border: 0; background: #fff; border-radius: 12px; padding: 12px; text-align: right; width: 100%; }
.chat-item[aria-current="true"] { background: var(--admin-bg); }
.av { width: 38px; height: 38px; border-radius: 50%; background: #E9ECF5; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.chat-item .c { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-item .c .top { display: flex; justify-content: space-between; gap: 6px; }
.chat-item .c .last { font-size: 13px; color: #6B7290; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tagx { align-self: flex-start; margin-top: 4px; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 1px 9px; }
.tagx.w { background: var(--bad-soft); color: var(--bad); } .tagx.s { background: var(--ok-soft); color: var(--ok); }
.thread { flex: 999 1 420px; min-width: 0; background: #fff; border-radius: 18px; display: flex; flex-direction: column; min-height: 500px; }
.thread .th { padding: 14px 18px; border-bottom: 1px solid #EEF0F5; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.thread .tb { flex: 1; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; background: #F7F8FB; }
.tm { max-width: 80%; display: flex; flex-direction: column; gap: 2px; }
.tm small { font-size: 11.5px; color: #6B7290; }
.tm div { border-radius: 14px; padding: 9px 13px; white-space: pre-line; border: 1px solid var(--line); background: #fff; }
.tm.b div { background: var(--gold-soft); border-color: #F0E0BC; color: #4A3609; }
.tm.a { align-self: flex-end; }
.tm.a div { background: var(--navy); color: #fff; border-color: var(--navy); }
.thread form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #EEF0F5; }
.thread input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; }
.gws { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.gw { background: #fff; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.gw .top { display: flex; justify-content: space-between; align-items: center; }
.gw .logo { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px; }
.gw .stt { font-size: 12.5px; font-weight: 700; }
.gw .m { display: flex; justify-content: space-between; font-size: 13px; border-top: 1px solid #EEF0F5; padding-top: 8px; }
.drv { display: flex; align-items: center; gap: 12px; background: #F7F8FB; border-radius: 12px; padding: 10px 12px; }
.drv .av { background: var(--navy); color: var(--gold); }
.drv .c { flex: 1; display: flex; flex-direction: column; }
.drv .c small { color: #6B7290; font-size: 12.5px; }
.fee-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #EEF0F5; padding: 8px 0; }

/* brand board */
#view-brand { background: var(--soft); }
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; padding-block: 26px 60px; }
.board .full { grid-column: 1 / -1; }
.bcard { background: #fff; border-radius: 28px; padding: 30px; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; min-height: 240px; }
.bcard.dark { background: var(--navy); }
.bcard.gold { background: var(--gold); }
.bcard .lbl { align-self: flex-start; font-size: 13px; color: var(--muted); }
.bcard.dark .lbl { color: #9FA6C6; }
.lockup { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 32px; }
.lockup svg { width: clamp(110px, 16vw, 180px); height: auto; }
.lockup .wm { font-family: var(--latin); font-weight: 800; font-size: clamp(46px, 8vw, 100px); line-height: 1; color: var(--navy); direction: ltr; }
.lockup .ar { display: flex; align-items: center; gap: 14px; justify-content: flex-end; margin-top: 8px; }
.lockup .ar i { height: 2px; flex: 1; background: var(--gold); min-width: 40px; }
.lockup .ar span { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.6vw, 30px); color: var(--navy); }
.lockup .tg { font-size: clamp(14px, 1.6vw, 19px); color: var(--muted); }
.palette { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
.palette div { border-radius: 14px; height: 64px; display: flex; align-items: flex-end; padding: 8px 10px; font-size: 12px; font-weight: 600; }
.banner { container-type: inline-size; width: 100%; aspect-ratio: 1640 / 624; border-radius: 22px; background: var(--navy); color: #fff; position: relative; overflow: hidden; display: flex; align-items: center; gap: 4cqw; padding: 0 6.5cqw; }
.banner .ring { position: absolute; border-radius: 50%; border: 1px solid var(--line-navy); }
.banner .bt { flex: 1; display: flex; flex-direction: column; gap: 1.2cqw; position: relative; }
.banner .bl { display: flex; align-items: center; gap: 1cqw; }
.banner .bl svg { width: 3.6cqw; height: 3.6cqw; }
.banner .bl b { font-family: var(--latin); font-weight: 800; font-size: 2.1cqw; direction: ltr; }
.banner .bl span { color: var(--gold); font-size: 1.25cqw; }
.banner h2 { margin: 0; font-weight: 800; font-size: 5.3cqw; line-height: 1.12; }
.banner h2 span { color: var(--gold); }
.banner .sub { font-size: 1.6cqw; color: #C9CEE4; }
.banner .cta { display: flex; align-items: center; gap: 1.2cqw; }
.banner .cta span { background: var(--gold); color: var(--navy); font-family: var(--display); font-weight: 700; font-size: 1.35cqw; border-radius: 0.9cqw; padding: 0.8cqw 1.6cqw; }
.banner .cta b { font-size: 1.6cqw; direction: ltr; }
.banner .art { width: 34cqw; height: 29cqw; position: relative; flex-shrink: 0; }
.banner .art > div { position: absolute; display: grid; place-items: center; border-radius: 2.4cqw; }
.banner .art svg { width: 75%; height: 75%; }
.banner .seal { width: 7.3cqw; height: 7.3cqw; border-radius: 50%; background: var(--gold); color: var(--navy); font-family: var(--display); font-weight: 700; font-size: 1.05cqw; line-height: 1.3; text-align: center; box-shadow: 0 0 0 0.5cqw var(--navy); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 520px) { .two { grid-template-columns: minmax(0, 1fr); } .tile.big { min-height: 240px; } }

/* ---------- PHP store additions ---------- */
.form-error { background: var(--bad-soft); color: var(--bad); border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.msg .who { font-size: 11.5px; color: var(--muted); }
.msg.admin .b { background: var(--gold-soft); border-color: #F0E0BC; color: #4A3609; }
.btn[disabled], .add[disabled] { cursor: not-allowed; }
a.tile { transition: transform .15s; }
a.tile:hover { transform: translateY(-2px); }

/* ---------- admin forms & tables ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--navy); padding: 24px 16px; }
.login { width: 100%; max-width: 420px; background: #fff; border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.login h1 { margin: 0; font-size: 22px; }
.aside a { color: inherit; text-decoration: none; }
.aside .nav a { display: flex; align-items: center; gap: 10px; width: 100%; border-radius: 12px; padding: 10px 12px; min-height: 44px; color: #C9CEE4; font-weight: 600; }
.aside .nav a i { width: 8px; height: 8px; border-radius: 50%; background: #3A4678; }
.aside .nav a span.l { flex: 1; }
.aside .nav a[aria-current="page"] { background: #1F2A5C; color: #fff; }
.aside .nav a[aria-current="page"] i { background: var(--gold); }
.aside .nav a:hover { background: #18214A; color: #fff; }
.toast.err { background: var(--bad-soft); color: var(--bad); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field select { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 15px; background: #fff; }
.field small { color: #6B7290; font-size: 12.5px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; }
.check input { width: 20px; height: 20px; accent-color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mini.danger { background: var(--bad-soft); color: var(--bad); }
.mini.gold { background: var(--gold); color: var(--navy); }
a.mini { text-decoration: none; display: inline-flex; align-items: center; }
.thumb { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex-shrink: 0; display: grid; place-items: center; }
.thumb svg { width: 32px; height: 32px; }
.st.cancelled { background: #F1F2F6; color: #6B7290; }
.pay-st { font-size: 12px; font-weight: 700; }
.pay-st.paid { color: var(--ok); } .pay-st.pending { color: #9A5B00; }
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 6px 12px; font-size: 14.5px; }
.kv dt { color: #6B7290; }
.kv dd { margin: 0; font-weight: 600; }
.items-table { width: 100%; min-width: 0; }
.items-table td, .items-table th { padding: 8px 10px; }
.empty { color: #6B7290; text-align: center; padding: 30px 10px; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; }
.bundle-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 40px; gap: 8px; align-items: center; }
.color-in { display: flex; gap: 8px; align-items: center; }
.color-in input[type="color"] { width: 44px; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 2px; background: #fff; }
.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.icon-pick label { border: 2px solid var(--line); border-radius: 12px; padding: 6px; display: grid; place-items: center; cursor: pointer; background: #fff; }
.icon-pick input { position: absolute; opacity: 0; pointer-events: none; }
.icon-pick input:checked + span { outline: 2px solid var(--navy); outline-offset: 4px; border-radius: 8px; }
.icon-pick span svg { width: 40px; height: 40px; display: block; }
.icon-pick input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 4px; }
