@font-face { font-family: Archivo; src: url(assets/fonts/Archivo-400.ttf); font-weight: 400; }
@font-face { font-family: Archivo; src: url(assets/fonts/Archivo-500.ttf); font-weight: 500; }
@font-face { font-family: Archivo; src: url(assets/fonts/Archivo-600.ttf); font-weight: 600; }
@font-face { font-family: Archivo; src: url(assets/fonts/Archivo-700.ttf); font-weight: 700; }
@font-face { font-family: BSD; src: url(assets/fonts/BigShouldersDisplay-700.ttf); font-weight: 700; }
@font-face { font-family: BSD; src: url(assets/fonts/BigShouldersDisplay-800.ttf); font-weight: 800; }
@font-face { font-family: BSD; src: url(assets/fonts/BigShouldersDisplay-900.ttf); font-weight: 900; }

:root {
  --bg: #07080A; --surface: #14171B; --surface2: #1B1F24; --overlay: #0F1114;
  --fg: #F3EEE8; --fg2: #C9C4BE; --mute: #8A8E95;
  --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14);
  --accent: #FF5B14; --accentInk: #FF8A4C; --accentSoft: rgba(255,91,20,.16); --onAccent: #160700;
  --good: #5FD47A; --goodSoft: rgba(95,212,122,.14);
  --warn: #FFC23D; --warnSoft: rgba(255,194,61,.14);
  --bad: #FF4D5E; --badSoft: rgba(255,77,94,.15); --badInk: #FF8592;
  --haze: #2EC4C4; --violet: #B08CFF;
  --r-s: 12px; --r-m: 16px; --r-l: 20px;
  --ease: cubic-bezier(.16,1,.3,1);
  --card: linear-gradient(180deg, rgba(243,238,232,.045), rgba(243,238,232,.02));
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--bg); color: var(--fg); font-family: Archivo, system-ui, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 8px; }

/* atmosphere */
.atmo { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.atmo .g1, .atmo .g2 { position: absolute; border-radius: 50%; filter: blur(90px); }
.atmo .g1 { width: 620px; height: 620px; right: -160px; top: -120px; background: radial-gradient(circle, rgba(255,91,20,.22), transparent 65%); animation: driftA 18s ease-in-out infinite alternate; }
.atmo .g2 { width: 560px; height: 560px; left: 120px; bottom: -260px; background: radial-gradient(circle, rgba(46,196,196,.12), transparent 65%); animation: driftB 22s ease-in-out infinite alternate; }
.atmo .grain { position: absolute; inset: 0; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes driftA { to { transform: translate(-80px, 60px); } }
@keyframes driftB { to { transform: translate(90px, -50px); } }

/* shell */
.shell { position: relative; z-index: 1; display: grid; grid-template-columns: 236px 1fr; height: 100vh; }
.side { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(10,11,13,.72); backdrop-filter: blur(10px); min-height: 0; }
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 14px; }
.brand svg { width: 14px; height: 26px; fill: var(--accent); }
.brand b { font-family: BSD; font-weight: 900; font-size: 27px; letter-spacing: .02em; line-height: .9; display: block; }
.brand small { display: block; font-size: 9.5px; letter-spacing: .2em; color: var(--mute); font-weight: 600; margin-top: 3px; }
.nav { flex: 1; overflow-y: auto; padding: 6px 12px 12px; }
.nav h6 { font-size: 10.5px; letter-spacing: .16em; color: var(--mute); font-weight: 600; margin: 16px 10px 6px; display: flex; align-items: center; gap: 10px; }
.nav h6::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--fg2); text-decoration: none; font-weight: 600; font-size: 14px; transition: background .18s, color .18s; }
.nav a svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; flex: none; }
.nav a:hover { background: rgba(255,255,255,.04); color: var(--fg); }
.nav a.on { color: var(--fg); background: linear-gradient(90deg, rgba(255,91,20,.18), rgba(255,91,20,.02)); }
.nav a.on svg { stroke: var(--accentInk); }
.nav a.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--accent); }
.kbd { margin-left: auto; font-size: 10px; font-weight: 700; color: var(--mute); border: 1px solid var(--line2); border-radius: 5px; padding: 1px 5px; }
.pill-count { margin-left: auto; background: var(--accent); color: var(--onAccent); font-size: 11px; font-weight: 700; border-radius: 9px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 6px; }
.me { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: var(--surface2); border: 1px solid var(--line2); flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.me b { font-size: 13px; display: block; }
.tag { display: inline-block; font-size: 9.5px; letter-spacing: .14em; font-weight: 700; color: var(--fg2); background: rgba(255,255,255,.06); border-radius: 6px; padding: 2px 7px; margin-top: 3px; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.top { display: flex; align-items: center; gap: 14px; padding: 14px 26px; border-bottom: 1px solid var(--line); background: rgba(7,8,10,.45); backdrop-filter: blur(10px); }
.eyebrow { font-size: 10.5px; letter-spacing: .16em; color: var(--accentInk); font-weight: 700; text-transform: uppercase; }
.h1 { font-family: BSD; font-weight: 800; font-size: 30px; text-transform: uppercase; line-height: .95; letter-spacing: .01em; }
.top .title { margin-right: auto; }
.search { display: flex; align-items: center; gap: 10px; width: 280px; height: 40px; padding: 0 12px; border-radius: 12px; background: rgba(255,91,20,.08); border: 1px solid rgba(255,91,20,.22); color: var(--mute); }
.search svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.search .kbd { color: var(--fg2); }
.online { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px; background: var(--goodSoft); border: 1px solid rgba(95,212,122,.3); font-size: 12px; color: var(--fg2); }
.online b { font-family: BSD; font-weight: 800; color: var(--good); font-size: 15px; letter-spacing: .04em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(95,212,122,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(95,212,122,0); } 100% { box-shadow: 0 0 0 0 rgba(95,212,122,0); } }
.clock { font-family: BSD; font-weight: 800; font-size: 24px; letter-spacing: .03em; }

.content { flex: 1; overflow-y: auto; padding: 22px 26px 28px; }
.screen { display: none; }
.screen.on { display: block; animation: enter .46s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }
.stagger > * { animation: enter .46s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: .045s; } .stagger > *:nth-child(3) { animation-delay: .09s; } .stagger > *:nth-child(4) { animation-delay: .135s; } .stagger > *:nth-child(5) { animation-delay: .18s; } .stagger > *:nth-child(6) { animation-delay: .225s; }

/* primitives */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-h .lbl { font-size: 10.5px; letter-spacing: .16em; color: var(--mute); font-weight: 700; text-transform: uppercase; }
.card-h .more { margin-left: auto; font-size: 12px; color: var(--accentInk); font-weight: 600; }
.h2 { font-family: BSD; font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.num { font-family: BSD; font-weight: 900; letter-spacing: .01em; line-height: .9; }
.mute { color: var(--mute); } .fg2 { color: var(--fg2); }
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--r-m); font-family: BSD; font-weight: 800; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; transition: transform .18s, background .18s, filter .18s; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.btn:active { transform: scale(.97); }
.btn-p { background: var(--accent); color: var(--onAccent); }
.btn-p:hover { filter: brightness(1.08); }
.btn-s { background: rgba(243,238,232,.08); border: 1px solid var(--line2); }
.btn-s:hover { background: rgba(243,238,232,.12); }
.btn-g { color: var(--fg2); }
.btn-lg { height: 54px; font-size: 18px; padding: 0 24px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.nodot::before { display: none; }
.c-good { background: var(--goodSoft); color: var(--good); }
.c-warn { background: var(--warnSoft); color: var(--warn); }
.c-bad { background: var(--badSoft); color: var(--badInk); }
.c-acc { background: var(--accentSoft); color: var(--accentInk); }
.c-haze { background: rgba(46,196,196,.14); color: var(--haze); }
.c-mute { background: rgba(255,255,255,.06); color: var(--fg2); }
.field { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line2); }
.field svg { width: 17px; height: 17px; stroke: var(--mute); fill: none; stroke-width: 2; flex: none; }
.field input { flex: 1; background: none; border: 0; outline: 0; font-size: 15px; }
.field input::placeholder { color: var(--mute); }
.field:focus-within { border-color: var(--accent); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.tabs button { height: 34px; padding: 0 14px; border-radius: 10px; font-weight: 600; font-size: 13px; color: var(--fg2); transition: background .2s, color .2s; }
.tabs button.on { background: var(--accent); color: var(--onAccent); }
.row { display: flex; align-items: center; gap: 12px; }
.list .item { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.list .item:last-child { border-bottom: 0; }
.item .t { flex: 1; min-width: 0; }
.item .t b { display: block; font-size: 14px; font-weight: 600; }
.item .t span { font-size: 12px; color: var(--mute); }
.clickable { cursor: pointer; transition: background .18s; border-radius: 12px; }
.clickable:hover { background: rgba(255,255,255,.035); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 10.5px; letter-spacing: .14em; color: var(--mute); font-weight: 700; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr.clickable:hover { background: rgba(255,255,255,.03); }

/* dashboard */
.kpis { grid-template-columns: repeat(4, 1fr); }
.kpi .v { font-size: 46px; margin: 10px 0 6px; }
.kpi .d { font-size: 12px; color: var(--mute); }
.kpi .d b { color: var(--good); font-weight: 600; }
.spark { height: 34px; width: 100%; margin-top: 10px; }
.dash { grid-template-columns: 1.35fr 1fr; margin-top: 16px; }
.feed-item { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: 0; }
.feed-item .time { font-family: BSD; font-weight: 800; font-size: 16px; color: var(--fg2); width: 46px; }
.feed-new { animation: feedIn .6s var(--ease); background: rgba(255,91,20,.06); }
@keyframes feedIn { from { opacity: 0; transform: translateX(-12px); background: rgba(255,91,20,.2); } }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: var(--bad); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.gauge { position: relative; width: 168px; height: 168px; margin: 0 auto; }
.gauge.sm { width: 132px; height: 132px; } .gauge.sm .c .num { font-size: 38px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.gauge .c .num { font-size: 48px; }
.ring-fill { animation: ring 1.6s var(--ease) both; }
@keyframes ring { from { stroke-dashoffset: 440; } }
.class-mini { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.class-mini:last-child { border-bottom: 0; }
.class-mini img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }
.bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transform-origin: left; animation: grow .9s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }

/* desk */
.desk { grid-template-columns: 1fr 1.05fr; }
.scanner { position: relative; height: 380px; border-radius: var(--r-l); overflow: hidden; background: radial-gradient(circle at 50% 45%, #1b1f24, #090a0c 70%); border: 1px solid var(--line2); display: grid; place-items: center; }
.scanner .frame { position: relative; width: 230px; height: 230px; }
.scanner .frame i { position: absolute; width: 42px; height: 42px; border: 3px solid var(--accent); }
.scanner .frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.scanner .frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.scanner .frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 14px; }
.scanner .frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.scanner .line { position: absolute; left: 10px; right: 10px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 16px var(--accent); animation: scan 2.4s ease-in-out infinite; }
@keyframes scan { 0%,100% { top: 12px; } 50% { top: 216px; } }
.scanner .qr { position: absolute; inset: 40px; opacity: .14; background:
  repeating-linear-gradient(90deg, #fff 0 10px, transparent 10px 20px), repeating-linear-gradient(0deg, #fff 0 10px, transparent 10px 20px); mask: radial-gradient(circle, #000 40%, transparent 72%); -webkit-mask: radial-gradient(circle, #000 40%, transparent 72%); }
.scanner .hint { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--fg2); font-size: 13px; }
.scanner .modechip { position: absolute; top: 14px; left: 14px; }
.verdict { position: relative; border-radius: var(--r-l); padding: 22px; border: 1px solid var(--line2); background: var(--card); min-height: 380px; display: flex; flex-direction: column; overflow: hidden; }
.verdict.wait { align-items: center; justify-content: center; text-align: center; color: var(--mute); }
.verdict.ok { border-color: rgba(95,212,122,.45); background: linear-gradient(160deg, rgba(95,212,122,.14), rgba(95,212,122,.02) 55%); animation: pop .5s cubic-bezier(.34,1.56,.64,1); }
.verdict.no { border-color: rgba(255,77,94,.5); background: linear-gradient(160deg, rgba(255,77,94,.16), rgba(255,77,94,.02) 55%); animation: shake .45s; }
@keyframes pop { from { transform: scale(.96); opacity: .4; } }
@keyframes shake { 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
.verdict .big { font-family: BSD; font-weight: 900; font-size: 64px; text-transform: uppercase; line-height: .9; }
.verdict.ok .big { color: var(--good); } .verdict.no .big { color: var(--badInk); }
.verdict .who { display: flex; gap: 16px; align-items: center; margin: 18px 0; }
.verdict .who img { width: 88px; height: 88px; border-radius: 18px; object-fit: cover; border: 2px solid var(--line2); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kv div { background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.kv small { display: block; font-size: 10px; letter-spacing: .14em; color: var(--mute); font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.kv b { font-size: 14px; }

/* checkout */
.co { grid-template-columns: 1fr 360px; align-items: start; }
.steps { display: flex; gap: 8px; margin-bottom: 16px; }
.steps span { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--mute); }
.steps span i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; border: 1px solid var(--line2); }
.steps span.on { color: var(--fg); } .steps span.on i { background: var(--accent); border-color: var(--accent); color: var(--onAccent); }
.steps span.done i { background: var(--goodSoft); color: var(--good); border-color: transparent; }
.steps em { flex: 0 0 30px; height: 1px; background: var(--line2); align-self: center; }
.pass-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pass { position: relative; text-align: left; border-radius: var(--r-m); padding: 16px; border: 1px solid var(--line2); background: var(--card); transition: border-color .2s, transform .2s, background .2s; }
.pass:hover { transform: translateY(-2px); border-color: rgba(255,91,20,.4); }
.pass.on { border-color: var(--accent); background: linear-gradient(160deg, rgba(255,91,20,.18), rgba(255,91,20,.03)); }
.pass.on::after { content: "✓"; position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--onAccent); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.pass .nm { font-family: BSD; font-weight: 800; font-size: 20px; text-transform: uppercase; line-height: 1; }
.pass .pr { font-family: BSD; font-weight: 900; font-size: 28px; margin-top: 14px; }
.pass .nt { font-size: 12px; color: var(--mute); margin-top: 4px; }
.buyer { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); }
.buyer img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.sum .ln { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13.5px; color: var(--fg2); }
.sum .tot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-top: 8px; border-top: 1px dashed var(--line2); }
.sum .tot .num { font-size: 40px; color: var(--fg); }
.pay { grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 14px 0; }
.pay button { height: 64px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--fg2); }
.pay button svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.pay button.on { border-color: var(--accent); color: var(--fg); background: var(--accentSoft); }
.receipt { background: #F3EEE8; color: #17181a; border-radius: 6px; padding: 22px 22px 26px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; line-height: 1.6; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,.6); animation: printIn .9s var(--ease) both; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: linear-gradient(-45deg, transparent 6px, #F3EEE8 0) 0 0/12px 8px repeat-x, linear-gradient(45deg, transparent 6px, #F3EEE8 0) 0 0/12px 8px repeat-x; }
@keyframes printIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -10px 0); } }
.receipt h4 { font-family: BSD; font-size: 22px; letter-spacing: .06em; text-align: center; }
.receipt .r { display: flex; justify-content: space-between; }
.receipt hr { border: 0; border-top: 1px dashed #888; margin: 8px 0; }
.success-ring { width: 74px; height: 74px; border-radius: 50%; background: var(--goodSoft); display: grid; place-items: center; margin-bottom: 14px; animation: pop .5s cubic-bezier(.34,1.56,.64,1); }
.success-ring svg { width: 34px; height: 34px; stroke: var(--good); fill: none; stroke-width: 2.5; }

/* members */
.members { grid-template-columns: 1fr; }
.mrow img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; vertical-align: middle; }
.profile { grid-template-columns: 330px 1fr; align-items: start; }
.mcard { position: relative; overflow: hidden; border-radius: 22px; padding: 22px; background: linear-gradient(150deg, #22140c 0%, #121417 55%, #0b1717 100%); border: 1px solid rgba(255,91,20,.3); }
.mcard::before { content: ""; position: absolute; width: 240px; height: 240px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(255,91,20,.35), transparent 65%); }
.mcard .ph { width: 100%; aspect-ratio: 1/1; border-radius: 16px; object-fit: cover; border: 1px solid var(--line2); position: relative; }
.mcard .qrbox { width: 74px; height: 74px; background: #F3EEE8; border-radius: 10px; padding: 7px; }
.mcard .qrbox div { width: 100%; height: 100%; background:
  conic-gradient(from 90deg at 30% 30%, #07080A 25%, transparent 0) 0 0/12px 12px,
  linear-gradient(#07080A 0 0) 0 0/18px 18px no-repeat, linear-gradient(#07080A 0 0) 100% 0/18px 18px no-repeat, linear-gradient(#07080A 0 0) 0 100%/18px 18px no-repeat; }
.ptabs { margin-bottom: 14px; }

/* classes */
.week { display: grid; grid-template-columns: 54px repeat(7, 1fr); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: rgba(255,255,255,.015); }
.week .hd { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); font-size: 11px; color: var(--mute); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.week .hd b { display: block; font-family: BSD; font-size: 22px; color: var(--fg); font-weight: 800; letter-spacing: 0; }
.week .hd.today { background: var(--accentSoft); } .week .hd.today b { color: var(--accentInk); }
.week .tm { font-size: 11px; color: var(--mute); text-align: right; padding: 3px 8px 0 0; height: 40px; border-bottom: 1px solid var(--line); }
.week .col { position: relative; border-left: 1px solid var(--line); }
.week .col .slot { height: 40px; border-bottom: 1px solid var(--line); }
.week .ev { position: absolute; left: 4px; right: 4px; border-radius: 9px; padding: 4px 8px; line-height: 1.25; font-size: 11px; cursor: pointer; overflow: hidden; border-left: 3px solid; transition: transform .18s, filter .18s; }
.week .ev:hover { transform: scale(1.03); filter: brightness(1.2); z-index: 2; }
.week .ev b { display: block; font-size: 12px; font-weight: 700; }
.ev.k0 { background: rgba(255,91,20,.18); border-color: var(--accent); }
.ev.k1 { background: rgba(46,196,196,.16); border-color: var(--haze); }
.ev.k2 { background: rgba(255,194,61,.15); border-color: var(--warn); }
.ev.k3 { background: rgba(176,140,255,.16); border-color: var(--violet); }

/* drawer */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 20; opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; z-index: 21; background: #0F1114; border-left: 1px solid var(--line2); box-shadow: -20px 0 50px rgba(0,0,0,.6); transform: translateX(105%); transition: transform .46s var(--ease); display: flex; flex-direction: column; }
.drawer.on { transform: none; }
.drawer .dh { padding: 22px; border-bottom: 1px solid var(--line); }
.drawer .db { flex: 1; overflow-y: auto; padding: 22px; }
.drawer .df { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }
.drawer .cover { height: 150px; border-radius: 16px; object-fit: cover; width: 100%; margin-bottom: 16px; }
.x { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; }
.x svg { width: 16px; height: 16px; stroke: var(--fg); stroke-width: 2; }

/* shop */
.shop { grid-template-columns: 1fr 340px; align-items: start; }
.prod-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
.prod { text-align: left; border-radius: var(--r-m); border: 1px solid var(--line2); background: var(--card); padding: 14px; transition: transform .18s, border-color .18s; position: relative; }
.prod:hover { transform: translateY(-2px); border-color: rgba(255,91,20,.4); }
.prod .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; margin-bottom: 12px; }
.prod b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.25; min-height: 34px; }
.prod .p { font-family: BSD; font-weight: 800; font-size: 20px; margin-top: 8px; }
.prod .st { font-size: 11px; color: var(--mute); }
.prod .st.low { color: var(--warn); }
.prod .badge { position: absolute; top: 10px; right: 10px; background: var(--accent); color: var(--onAccent); font-size: 11px; font-weight: 700; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; animation: pop .35s cubic-bezier(.34,1.56,.64,1); }
.cart-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.06); font-weight: 700; }

/* occupancy */
.occ { grid-template-columns: 320px 1fr; }
.hours { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding-top: 10px; }
.hours .h { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.hours .h i { width: 100%; border-radius: 6px 6px 3px 3px; background: rgba(255,255,255,.1); position: relative; transform-origin: bottom; animation: growY .9s var(--ease) both; }
.hours .h i.today { background: linear-gradient(180deg, var(--accent), rgba(255,91,20,.5)); }
.hours .h i.now { background: linear-gradient(180deg, #ffb07f, var(--accent)); box-shadow: 0 0 18px rgba(255,91,20,.5); }
.hours .h span { font-size: 10.5px; color: var(--mute); }
@keyframes growY { from { transform: scaleY(0); } }
.heat { display: grid; grid-template-columns: 34px repeat(18, 1fr); gap: 3px; font-size: 10px; color: var(--mute); }
.heat i { height: 20px; border-radius: 4px; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); opacity: 0; z-index: 30; background: #1B1F24; border: 1px solid var(--line2); border-radius: 14px; padding: 12px 18px; display: flex; gap: 10px; align-items: center; font-weight: 600; box-shadow: 0 20px 50px rgba(0,0,0,.6); transition: all .4s var(--ease); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }

/* narrow fallback (mock is designed for 1280x800) */
@media (max-width: 900px) {
  .shell { grid-template-columns: 68px 1fr; }
  .brand b, .brand small, .nav a span, .nav a .kbd, .nav h6, .me div { display: none; }
  .nav a .pill-count { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; font-size: 9px; }
  .nav a { justify-content: center; }
  .search, .online span { display: none; }
  .kpis, .dash, .desk, .co, .profile, .shop, .occ { grid-template-columns: 1fr 1fr; }
  .dash, .desk, .co, .profile, .shop, .occ { grid-template-columns: 1fr; }
  .pass-grid, .prod-grid { grid-template-columns: 1fr 1fr; }
  .content { padding: 16px; }
  .top { padding: 12px 16px; }
  .drawer { width: 100%; }
  .row { flex-wrap: wrap; }
  .card { overflow-x: auto; }
  .week { min-width: 640px; }
  .kv { grid-template-columns: 1fr !important; }
  .h1 { font-size: 24px; }
}
