:root {
  --bg: #080806;
  --bg-soft: #0d0c09;
  --panel: rgba(20, 18, 13, .88);
  --panel-solid: #15120d;
  --panel-2: #1a1711;
  --panel-3: #211c14;
  --line: rgba(240, 196, 112, .14);
  --line-strong: rgba(240, 196, 112, .29);
  --gold: #e8b45b;
  --gold-2: #f8d28e;
  --bronze: #8e5d2a;
  --cream: #f4e8cf;
  --text: #f7f2e7;
  --muted: #9d978a;
  --muted-2: #726d64;
  --success: #51d59a;
  --danger: #ff6f70;
  --warning: #ffc75f;
  --info: #73a8ff;
  --shadow: 0 24px 80px rgba(0,0,0,.46);
  --shadow-gold: 0 12px 42px rgba(216,153,55,.15);
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar: 278px;
  --accent: var(--gold);
  --accent-secondary: var(--bronze);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 16% -5%, rgba(198,126,29,.11), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(242,188,88,.07), transparent 27%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: rgba(232,180,91,.28); color: white; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #090806; }
::-webkit-scrollbar-thumb { background: #31291c; border: 2px solid #090806; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #4d3b22; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.text-gold { color: var(--gold-2); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.mono { font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Boot */
.boot-screen {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-content: center; gap: 26px;
  background: radial-gradient(circle at center, #19130a 0, #090806 50%, #050504 100%);
  transition: opacity .45s ease, visibility .45s ease;
}
.boot-screen.done { opacity: 0; visibility: hidden; }
.boot-orbit { width: 112px; height: 112px; margin: auto; border: 1px solid rgba(232,180,91,.25); border-radius: 50%; display: grid; place-items: center; position: relative; box-shadow: 0 0 70px rgba(232,180,91,.12); }
.boot-orbit::before { content:""; position:absolute; inset:-12px; border:1px dashed rgba(232,180,91,.22); border-radius:50%; animation: spin 12s linear infinite; }
.boot-orbit::after { content:""; position:absolute; width:7px; height:7px; border-radius:50%; background:var(--gold); top:-16px; box-shadow:0 0 22px var(--gold); }
.boot-orbit img { width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 14px 20px rgba(0,0,0,.5)); }
.boot-copy { text-align:center; display:grid; gap:4px; }
.boot-copy strong { letter-spacing:.24em; font-size:14px; color:var(--cream); }
.boot-copy span { color:var(--muted); font-size:12px; }
.boot-line { width:220px; height:2px; overflow:hidden; background:rgba(255,255,255,.06); border-radius:99px; }
.boot-line i { display:block; width:44%; height:100%; background:linear-gradient(90deg,transparent,var(--gold),transparent); animation: loading 1.4s ease-in-out infinite; }
@keyframes loading { from{transform:translateX(-140%)} to{transform:translateX(330%)} }
@keyframes spin { to { transform:rotate(360deg); } }

/* Shared visual language */
.surface {
  background: linear-gradient(180deg, rgba(26,23,17,.94), rgba(16,14,10,.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), var(--shadow-gold);
}
.surface-flat { background: var(--panel-solid); border:1px solid var(--line); border-radius:var(--radius); }
.noise::after { content:""; pointer-events:none; position:absolute; inset:0; opacity:.04; mix-blend-mode:screen; background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }
.grid-overlay { background-image: linear-gradient(rgba(232,180,91,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(232,180,91,.045) 1px, transparent 1px); background-size: 54px 54px; }
.section-kicker { display:inline-flex; align-items:center; gap:10px; color:var(--gold-2); letter-spacing:.18em; font-size:11px; font-weight:800; text-transform:uppercase; }
.section-kicker::before { content:""; width:22px; height:1px; background:linear-gradient(90deg,transparent,var(--gold)); }
.title-gradient { background:linear-gradient(110deg,#fff2cf 0%,#eebc66 48%,#9c642e 100%); -webkit-background-clip:text; background-clip:text; color:transparent; }
.badge, .status-pill { display:inline-flex; align-items:center; gap:7px; border:1px solid var(--line); background:rgba(255,255,255,.025); border-radius:99px; padding:5px 10px; font-size:11px; font-weight:700; color:var(--muted); white-space:nowrap; }
.status-pill::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; box-shadow:0 0 12px currentColor; }
.status-active, .status-published, .status-valid, .status-fulfilled { color:var(--success); background:rgba(81,213,154,.07); border-color:rgba(81,213,154,.2); }
.status-draft, .status-pending { color:var(--warning); background:rgba(255,199,95,.07); border-color:rgba(255,199,95,.2); }
.status-suspended, .status-expired, .status-invalid, .status-cancelled, .status-revoked { color:var(--danger); background:rgba(255,111,112,.07); border-color:rgba(255,111,112,.2); }

/* Buttons */
.btn {
  min-height: 42px; border:1px solid transparent; border-radius:12px; padding:0 16px; display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-weight:750; cursor:pointer; transition:transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, opacity .18s ease;
  user-select:none; position:relative; overflow:hidden;
}
.btn:hover { transform:translateY(-1px); }
.btn:active { transform:translateY(0) scale(.985); }
.btn:disabled { opacity:.45; cursor:not-allowed; transform:none; }
.btn svg { width:17px; height:17px; flex:0 0 auto; }
.btn-primary { background:linear-gradient(135deg,#f0c471,#b8792e); color:#171006; box-shadow:0 10px 28px rgba(222,155,55,.22), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary:hover { box-shadow:0 15px 36px rgba(222,155,55,.3), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-secondary { background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025)); border-color:var(--line); color:var(--cream); }
.btn-secondary:hover { border-color:var(--line-strong); background:rgba(232,180,91,.055); }
.btn-ghost { background:transparent; border-color:transparent; color:var(--muted); }
.btn-ghost:hover { color:var(--cream); background:rgba(255,255,255,.04); }
.btn-danger { background:rgba(255,111,112,.08); color:#ff9b9b; border-color:rgba(255,111,112,.2); }
.btn-danger:hover { background:rgba(255,111,112,.13); }
.btn-icon { width:40px; padding:0; min-height:40px; }
.btn-sm { min-height:34px; padding:0 11px; border-radius:10px; font-size:12px; }
.btn-lg { min-height:50px; padding:0 23px; border-radius:14px; font-size:15px; }

/* Forms */
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.form-grid.cols-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.field { display:grid; gap:8px; min-width:0; }
.field.full { grid-column:1/-1; }
.field label { color:#c8c0b0; font-size:12px; font-weight:720; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.field label small { color:var(--muted-2); font-weight:500; }
.input-shell { position:relative; }
.input, .select, .textarea {
  width:100%; border:1px solid rgba(232,180,91,.13); border-radius:13px; background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.018)); color:var(--text);
  outline:none; transition:border-color .18s ease, box-shadow .18s ease, background .18s ease; box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
}
.input, .select { height:46px; padding:0 14px; }
.input.with-icon { padding-left:43px; }
.textarea { min-height:112px; padding:13px 14px; resize:vertical; line-height:1.6; }
.input:hover, .select:hover, .textarea:hover { border-color:rgba(232,180,91,.22); }
.input:focus, .select:focus, .textarea:focus { border-color:rgba(232,180,91,.58); background:rgba(232,180,91,.035); box-shadow:0 0 0 4px rgba(232,180,91,.075), inset 0 1px 0 rgba(255,255,255,.03); }
.input::placeholder, .textarea::placeholder { color:#5f5a51; }
.select { appearance:none; padding-right:38px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239d978a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 13px center; }
.select option { background:#17140f; color:var(--text); }
.input-icon { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--muted-2); pointer-events:none; display:grid; place-items:center; }
.input-icon svg { width:17px; height:17px; }
.field-hint { color:var(--muted-2); font-size:11px; }
.switch-row { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px 15px; border:1px solid var(--line); border-radius:13px; background:rgba(255,255,255,.018); }
.switch-copy { display:grid; gap:3px; }
.switch-copy strong { font-size:13px; }
.switch-copy span { color:var(--muted); font-size:11px; }
.switch { width:46px; height:25px; border-radius:99px; background:#302b22; border:1px solid rgba(255,255,255,.08); position:relative; cursor:pointer; transition:.2s; flex:0 0 auto; }
.switch i { position:absolute; width:19px; height:19px; left:2px; top:2px; border-radius:50%; background:#7e776a; transition:.2s; box-shadow:0 3px 10px rgba(0,0,0,.35); }
.switch.on { background:rgba(232,180,91,.28); border-color:rgba(232,180,91,.4); }
.switch.on i { transform:translateX(21px); background:var(--gold-2); }
.check-row { display:flex; gap:12px; align-items:flex-start; cursor:pointer; }
.check-row input { display:none; }
.check-box { width:19px; height:19px; border:1px solid var(--line-strong); border-radius:6px; display:grid; place-items:center; color:#130d05; flex:0 0 auto; margin-top:1px; }
.check-row input:checked + .check-box { background:var(--gold); border-color:var(--gold); }
.check-row input:checked + .check-box::after { content:"✓"; font-size:12px; font-weight:900; }

/* Setup/login */
.auth-page { min-height:100vh; display:grid; grid-template-columns:minmax(0,1.15fr) minmax(430px,.85fr); background:#070705; }
.auth-visual { position:relative; min-height:100vh; overflow:hidden; display:flex; align-items:flex-end; padding:64px; isolation:isolate; }
.auth-visual::before { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(6,5,3,.05),rgba(6,5,3,.3) 45%,#070705 100%), url('/hero-wide.png') center/cover no-repeat; z-index:-3; }
.auth-visual::after { content:""; position:absolute; inset:0; background:radial-gradient(circle at 35% 28%,rgba(244,184,78,.11),transparent 32%), linear-gradient(90deg,transparent 70%,#070705); z-index:-2; }
.auth-brand { max-width:610px; }
.auth-brand img { width:86px; filter:drop-shadow(0 18px 28px rgba(0,0,0,.55)); }
.auth-brand h1 { font-size:clamp(44px,6vw,86px); line-height:.92; letter-spacing:-.065em; margin:24px 0 20px; max-width:650px; }
.auth-brand p { color:#b8ad98; font-size:16px; max-width:570px; }
.auth-panel { min-height:100vh; display:grid; place-items:center; padding:38px; border-left:1px solid var(--line); background:radial-gradient(circle at 50% 22%,rgba(232,180,91,.055),transparent 33%),#0a0907; }
.auth-card { width:min(100%,470px); padding:34px; border:1px solid var(--line); border-radius:24px; background:linear-gradient(180deg,rgba(27,24,18,.95),rgba(14,12,9,.95)); box-shadow:var(--shadow); position:relative; overflow:hidden; }
.auth-card::before { content:""; position:absolute; height:1px; inset:0 0 auto; background:linear-gradient(90deg,transparent,var(--gold),transparent); opacity:.7; }
.auth-card h2 { margin:12px 0 6px; font-size:29px; letter-spacing:-.035em; }
.auth-card > p { margin:0 0 26px; color:var(--muted); }
.auth-logo-row { display:flex; align-items:center; gap:12px; color:var(--gold-2); font-size:12px; font-weight:800; letter-spacing:.15em; }
.auth-logo-row img { width:38px; height:38px; object-fit:contain; }
.auth-footer { display:flex; align-items:center; gap:9px; justify-content:center; margin-top:22px; color:var(--muted-2); font-size:11px; }

/* Public storefront */
.storefront { background:#080806; min-height:100vh; }
.store-nav { position:fixed; top:0; left:0; right:0; height:76px; z-index:50; border-bottom:1px solid rgba(232,180,91,.1); background:rgba(8,8,6,.76); backdrop-filter:blur(18px); }
.store-nav-inner { max-width:1320px; height:100%; margin:auto; padding:0 28px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.store-brand { display:flex; align-items:center; gap:12px; font-weight:850; letter-spacing:-.025em; font-size:17px; }
.store-brand img { width:42px; height:42px; object-fit:contain; filter:drop-shadow(0 8px 13px rgba(0,0,0,.45)); }
.store-brand span i { font-style:normal; color:var(--gold); }
.store-links { display:flex; align-items:center; gap:30px; color:var(--muted); font-weight:650; font-size:13px; }
.store-links a:hover { color:var(--cream); }
.store-actions { display:flex; align-items:center; gap:10px; }
.store-hero { min-height:780px; padding:150px 28px 90px; display:grid; align-items:center; position:relative; overflow:hidden; isolation:isolate; }
.store-hero::before { content:""; position:absolute; inset:0; z-index:-4; background:linear-gradient(90deg,#080806 0%,rgba(8,8,6,.87) 42%,rgba(8,8,6,.48) 75%,#080806 100%), linear-gradient(180deg,rgba(8,8,6,.35),#080806 96%), var(--hero-image,url('/hero-wide.png')) center/cover no-repeat; opacity:.92; }
.store-hero::after { content:""; position:absolute; inset:0; z-index:-3; background-image:linear-gradient(rgba(232,180,91,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(232,180,91,.04) 1px,transparent 1px); background-size:70px 70px; mask-image:linear-gradient(to bottom,black,transparent 90%); }
.hero-glow { position:absolute; width:520px; height:520px; right:8%; top:13%; border-radius:50%; background:rgba(232,180,91,.055); filter:blur(40px); z-index:-2; }
.hero-inner { max-width:1320px; width:100%; margin:auto; display:grid; grid-template-columns:minmax(0,1.15fr) minmax(380px,.85fr); align-items:center; gap:64px; }
.hero-copy { max-width:770px; }
.hero-copy h1 { margin:22px 0 24px; font-size:clamp(58px,7vw,104px); line-height:.89; letter-spacing:-.07em; font-weight:900; }
.hero-copy p { margin:0; max-width:660px; color:#aaa190; font-size:18px; line-height:1.7; }
.hero-cta { display:flex; gap:12px; flex-wrap:wrap; margin-top:34px; }
.hero-trust { display:flex; gap:26px; flex-wrap:wrap; margin-top:42px; color:var(--muted); font-size:12px; }
.hero-trust span { display:flex; align-items:center; gap:8px; }
.hero-trust i { width:8px; height:8px; border-radius:50%; background:var(--gold); box-shadow:0 0 14px var(--gold); }
.hero-emblem { min-height:480px; display:grid; place-items:center; position:relative; }
.hero-emblem-ring { width:min(31vw,430px); aspect-ratio:1; border:1px solid rgba(232,180,91,.24); border-radius:50%; display:grid; place-items:center; position:relative; box-shadow:0 0 120px rgba(232,180,91,.08), inset 0 0 70px rgba(232,180,91,.04); animation:float 6s ease-in-out infinite; }
.hero-emblem-ring::before { content:""; position:absolute; inset:-24px; border:1px dashed rgba(232,180,91,.2); border-radius:50%; animation:spin 40s linear infinite; }
.hero-emblem-ring::after { content:""; position:absolute; inset:38px; border:1px solid rgba(232,180,91,.11); border-radius:50%; }
.hero-emblem img { width:76%; z-index:2; filter:drop-shadow(0 30px 44px rgba(0,0,0,.58)); }
.orbit-gem { position:absolute; width:12px; height:12px; transform:rotate(45deg); background:linear-gradient(135deg,#fff0c0,#b77121); box-shadow:0 0 28px rgba(232,180,91,.8); }
.orbit-gem.one { top:-7px; left:50%; }
.orbit-gem.two { right:-7px; top:50%; }
.orbit-gem.three { bottom:-7px; left:50%; }
@keyframes float { 0%,100%{transform:translateY(0)}50%{transform:translateY(-13px)} }
.framework-strip { border-block:1px solid var(--line); background:#110e09; overflow:hidden; padding:17px 0; }
.marquee { display:flex; gap:60px; width:max-content; animation:marquee 28s linear infinite; }
.marquee span { display:flex; align-items:center; gap:12px; color:#aa9a80; font-weight:800; letter-spacing:.08em; font-size:12px; text-transform:uppercase; }
.marquee i { width:7px; height:7px; transform:rotate(45deg); background:var(--gold); }
@keyframes marquee { to { transform:translateX(-50%); } }
.store-section { max-width:1320px; margin:auto; padding:100px 28px; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:28px; margin-bottom:34px; }
.section-head h2 { margin:10px 0 0; font-size:clamp(34px,4vw,56px); letter-spacing:-.055em; line-height:1; }
.section-head p { color:var(--muted); max-width:540px; margin:0; }
.product-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.store-product { min-height:480px; border:1px solid var(--line); border-radius:21px; overflow:hidden; background:linear-gradient(180deg,#17130d,#0f0d09); position:relative; transition:.28s ease; }
.store-product:hover { transform:translateY(-7px); border-color:rgba(232,180,91,.34); box-shadow:0 26px 70px rgba(0,0,0,.45),0 0 0 1px rgba(232,180,91,.04); }
.store-product-media { height:250px; overflow:hidden; background:#111; position:relative; }
.store-product-media::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 44%,#17130d); }
.store-product-media img { width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.store-product:hover .store-product-media img { transform:scale(1.055); }
.store-product-body { padding:22px; }
.store-product-meta { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.store-product h3 { margin:0 0 8px; font-size:22px; letter-spacing:-.035em; }
.store-product p { color:var(--muted); margin:0; min-height:46px; }
.store-product-bottom { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }
.price { font-size:24px; font-weight:850; color:var(--cream); letter-spacing:-.035em; }
.price small { font-size:11px; color:var(--muted); margin-left:4px; }
.empty-store { padding:70px; text-align:center; border:1px dashed var(--line-strong); border-radius:20px; background:rgba(255,255,255,.018); }
.empty-store img { width:90px; opacity:.7; }
.features-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.feature-card { padding:26px; border:1px solid var(--line); border-radius:18px; background:linear-gradient(180deg,rgba(255,255,255,.026),rgba(255,255,255,.012)); }
.feature-icon { width:43px; height:43px; display:grid; place-items:center; border:1px solid rgba(232,180,91,.24); border-radius:12px; color:var(--gold-2); background:rgba(232,180,91,.055); margin-bottom:18px; }
.feature-icon svg { width:20px; }
.feature-card h3 { margin:0 0 7px; font-size:16px; }
.feature-card p { color:var(--muted); margin:0; font-size:12px; }
.store-footer { border-top:1px solid var(--line); background:#080705; }
.store-footer-inner { max-width:1320px; margin:auto; padding:38px 28px; display:flex; align-items:center; justify-content:space-between; gap:24px; color:var(--muted); }

/* Admin layout */
.admin-shell { min-height:100vh; }
.sidebar { position:fixed; z-index:60; inset:0 auto 0 0; width:var(--sidebar); padding:18px 14px; border-right:1px solid var(--line); background:linear-gradient(180deg,rgba(17,15,11,.985),rgba(8,8,6,.995)); display:flex; flex-direction:column; box-shadow:18px 0 50px rgba(0,0,0,.17); }
.sidebar::before { content:""; position:absolute; inset:0; pointer-events:none; background:radial-gradient(circle at 50% 0,rgba(232,180,91,.08),transparent 28%); }
.side-brand { height:66px; padding:8px 10px 16px; display:flex; align-items:center; gap:12px; position:relative; }
.side-brand img { width:43px; height:43px; object-fit:contain; filter:drop-shadow(0 9px 13px rgba(0,0,0,.55)); }
.side-brand-copy { min-width:0; }
.side-brand-copy strong { display:block; font-size:15px; letter-spacing:-.02em; }
.side-brand-copy span { display:block; color:var(--gold); font-size:9px; font-weight:800; letter-spacing:.16em; margin-top:2px; }
.side-section-label { color:#5f594f; font-size:9px; font-weight:850; letter-spacing:.18em; padding:20px 13px 8px; text-transform:uppercase; }
.side-nav { display:grid; gap:5px; position:relative; }
.side-link { width:100%; min-height:45px; border:1px solid transparent; border-radius:12px; background:transparent; color:#918b7f; display:flex; align-items:center; gap:12px; padding:0 13px; cursor:pointer; text-align:left; font-weight:670; transition:.18s ease; position:relative; }
.side-link svg { width:18px; height:18px; }
.side-link:hover { color:var(--cream); background:rgba(255,255,255,.027); }
.side-link.active { color:var(--gold-2); border-color:rgba(232,180,91,.18); background:linear-gradient(90deg,rgba(232,180,91,.11),rgba(232,180,91,.025)); box-shadow:inset 3px 0 0 var(--gold); }
.side-link .nav-count { margin-left:auto; min-width:22px; height:20px; padding:0 6px; border-radius:99px; display:grid; place-items:center; background:rgba(255,255,255,.05); color:var(--muted); font-size:10px; }
.side-bottom { margin-top:auto; position:relative; display:grid; gap:8px; }
.server-status { padding:14px; border:1px solid var(--line); border-radius:13px; background:rgba(255,255,255,.018); display:flex; align-items:center; gap:11px; }
.server-dot { width:10px; height:10px; border-radius:50%; background:var(--success); box-shadow:0 0 16px var(--success); }
.server-status strong { display:block; font-size:11px; }
.server-status span { display:block; color:var(--muted-2); font-size:9px; margin-top:2px; }
.admin-main { margin-left:var(--sidebar); min-height:100vh; }
.topbar { height:76px; position:sticky; top:0; z-index:45; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:0 30px; border-bottom:1px solid var(--line); background:rgba(8,8,6,.8); backdrop-filter:blur(18px); }
.topbar-left, .topbar-right { display:flex; align-items:center; gap:12px; }
.mobile-menu { display:none; }
.breadcrumb { display:grid; gap:1px; }
.breadcrumb span { color:var(--muted-2); font-size:10px; font-weight:750; letter-spacing:.09em; text-transform:uppercase; }
.breadcrumb strong { font-size:15px; }
.global-search { width:min(34vw,430px); position:relative; }
.global-search input { height:40px; border-radius:11px; padding-left:40px; }
.admin-avatar { width:38px; height:38px; border-radius:11px; display:grid; place-items:center; background:linear-gradient(135deg,#e9ba67,#7a4a21); color:#170f06; font-weight:900; border:1px solid rgba(255,255,255,.13); }
.page { padding:30px; max-width:1700px; margin:auto; }
.page-enter { animation:pageIn .32s ease both; }
@keyframes pageIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
.page-header { display:flex; align-items:flex-end; justify-content:space-between; gap:22px; margin-bottom:24px; }
.page-title { display:grid; gap:6px; }
.page-title h1 { margin:0; font-size:30px; line-height:1.1; letter-spacing:-.045em; }
.page-title p { margin:0; color:var(--muted); }
.page-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }

/* Dashboard */
.stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; }
.stat-card { padding:20px; min-height:132px; position:relative; overflow:hidden; }
.stat-card::after { content:""; position:absolute; width:110px; height:110px; border-radius:50%; right:-38px; top:-40px; background:rgba(232,180,91,.045); border:1px solid rgba(232,180,91,.05); }
.stat-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.stat-label { color:var(--muted); font-size:11px; font-weight:700; }
.stat-icon { width:36px; height:36px; display:grid; place-items:center; border-radius:11px; background:rgba(232,180,91,.06); border:1px solid rgba(232,180,91,.15); color:var(--gold-2); }
.stat-icon svg { width:17px; }
.stat-value { font-size:34px; font-weight:900; letter-spacing:-.055em; margin-top:11px; }
.stat-foot { color:var(--muted-2); font-size:10px; margin-top:2px; }
.dashboard-grid { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(300px,.8fr); gap:16px; margin-top:16px; }
.panel { padding:20px; }
.panel-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.panel-head h2 { margin:0; font-size:16px; letter-spacing:-.02em; }
.panel-head p { margin:3px 0 0; color:var(--muted); font-size:10px; }
.chart-wrap { height:280px; position:relative; }
.chart-wrap canvas { width:100%; height:100%; }
.top-products { display:grid; gap:12px; }
.top-product { display:grid; grid-template-columns:38px 1fr auto; align-items:center; gap:11px; padding:11px; border:1px solid rgba(255,255,255,.045); border-radius:12px; background:rgba(255,255,255,.016); }
.top-rank { width:32px; height:32px; display:grid; place-items:center; border-radius:9px; color:var(--gold-2); background:rgba(232,180,91,.065); font-weight:900; }
.top-product strong { display:block; font-size:12px; }
.top-product span { color:var(--muted-2); font-size:10px; }
.top-product b { font-size:13px; }
.dashboard-bottom { margin-top:16px; }

/* Tables */
.table-card { border:1px solid var(--line); border-radius:17px; overflow:hidden; background:linear-gradient(180deg,rgba(22,19,14,.9),rgba(13,12,9,.9)); }
.table-toolbar { min-height:64px; padding:12px 16px; display:flex; align-items:center; justify-content:space-between; gap:14px; border-bottom:1px solid var(--line); }
.toolbar-left, .toolbar-right { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.toolbar-search { width:310px; position:relative; }
.toolbar-search input { height:39px; padding-left:39px; }
.filter-tabs { display:inline-flex; padding:4px; border:1px solid var(--line); background:rgba(0,0,0,.18); border-radius:11px; }
.filter-tab { min-height:30px; padding:0 11px; border:0; border-radius:8px; background:transparent; color:var(--muted); cursor:pointer; font-size:11px; font-weight:700; }
.filter-tab.active { background:rgba(232,180,91,.1); color:var(--gold-2); box-shadow:inset 0 0 0 1px rgba(232,180,91,.12); }
.table-scroll { overflow:auto; }
table { border-collapse:collapse; width:100%; min-width:900px; }
th { color:#6e695f; font-size:9px; letter-spacing:.1em; text-transform:uppercase; text-align:left; font-weight:800; padding:13px 16px; border-bottom:1px solid var(--line); background:rgba(0,0,0,.08); }
td { padding:15px 16px; border-bottom:1px solid rgba(232,180,91,.075); color:#d5cdbd; vertical-align:middle; }
tr:last-child td { border-bottom:0; }
tbody tr { transition:background .15s ease; }
tbody tr:hover { background:rgba(232,180,91,.025); }
.cell-main { display:flex; align-items:center; gap:11px; min-width:0; }
.cell-icon { width:38px; height:38px; border-radius:11px; border:1px solid var(--line); background:rgba(255,255,255,.025); display:grid; place-items:center; color:var(--gold-2); flex:0 0 auto; overflow:hidden; }
.cell-icon img { width:100%; height:100%; object-fit:cover; }
.cell-icon svg { width:17px; }
.cell-copy { min-width:0; }
.cell-copy strong { display:block; font-size:12px; color:var(--cream); }
.cell-copy span { display:block; color:var(--muted-2); font-size:10px; margin-top:2px; }
.row-actions { display:flex; align-items:center; justify-content:flex-end; gap:4px; }
.row-action { width:31px; height:31px; display:grid; place-items:center; border:0; border-radius:9px; background:transparent; color:#777168; cursor:pointer; }
.row-action:hover { background:rgba(255,255,255,.045); color:var(--cream); }
.row-action.danger:hover { color:var(--danger); background:rgba(255,111,112,.07); }
.row-action svg { width:15px; height:15px; }
.table-empty { padding:58px 20px; text-align:center; color:var(--muted); }
.table-empty .empty-icon { width:54px; height:54px; margin:0 auto 14px; border:1px solid var(--line); border-radius:15px; display:grid; place-items:center; color:var(--gold-2); background:rgba(232,180,91,.04); }
.table-empty h3 { margin:0 0 6px; color:var(--cream); }
.table-empty p { margin:0; font-size:12px; }

/* Products */
.admin-product-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.admin-product-card { overflow:hidden; position:relative; transition:.22s ease; }
.admin-product-card:hover { transform:translateY(-3px); border-color:rgba(232,180,91,.28); }
.admin-product-cover { height:170px; position:relative; overflow:hidden; background:#100e0a; }
.admin-product-cover img { width:100%; height:100%; object-fit:cover; }
.admin-product-cover::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 40%,rgba(16,14,10,.92)); }
.admin-product-cover .status-pill { position:absolute; left:14px; top:14px; z-index:2; backdrop-filter:blur(10px); }
.product-card-body { padding:17px; }
.product-card-top { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; }
.product-card-top h3 { margin:0; font-size:17px; }
.product-card-top p { margin:4px 0 0; color:var(--muted); font-size:11px; }
.product-card-price { font-weight:900; color:var(--gold-2); }
.product-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:16px 0; }
.product-metric { padding:10px; border-radius:10px; background:rgba(255,255,255,.019); border:1px solid rgba(255,255,255,.04); }
.product-metric span { display:block; color:var(--muted-2); font-size:9px; text-transform:uppercase; letter-spacing:.07em; }
.product-metric strong { display:block; margin-top:3px; font-size:12px; }
.product-card-actions { display:flex; gap:8px; }
.product-card-actions .btn { flex:1; }
.script-ready { color:var(--success); }
.script-missing { color:var(--warning); }

/* Upload zone */
.upload-zone { border:1px dashed rgba(232,180,91,.28); border-radius:16px; padding:28px; text-align:center; background:radial-gradient(circle at 50% 0,rgba(232,180,91,.06),transparent 55%),rgba(255,255,255,.012); transition:.2s; position:relative; }
.upload-zone:hover, .upload-zone.dragging { border-color:rgba(232,180,91,.58); background-color:rgba(232,180,91,.025); }
.upload-zone input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.upload-icon { width:54px; height:54px; display:grid; place-items:center; margin:0 auto 13px; border:1px solid rgba(232,180,91,.2); border-radius:15px; background:rgba(232,180,91,.055); color:var(--gold-2); }
.upload-icon svg { width:24px; }
.upload-zone strong { display:block; }
.upload-zone p { margin:5px 0 0; color:var(--muted); font-size:11px; }
.build-result { border:1px solid rgba(81,213,154,.2); background:rgba(81,213,154,.045); border-radius:14px; padding:15px; display:flex; align-items:center; gap:13px; }
.build-result-icon { width:40px; height:40px; border-radius:12px; display:grid; place-items:center; background:rgba(81,213,154,.1); color:var(--success); }
.build-result strong { display:block; color:#b7f2d7; }
.build-result span { display:block; color:var(--muted); font-size:10px; }
.code-snippet { position:relative; border:1px solid var(--line); background:#090806; border-radius:12px; padding:14px 48px 14px 14px; color:#d9c8a6; white-space:pre-wrap; word-break:break-all; font-family:"Cascadia Code",Consolas,monospace; font-size:11px; line-height:1.6; }
.copy-corner { position:absolute; right:8px; top:8px; }

/* Script Studio */
.studio-layout { display:grid; grid-template-columns:280px minmax(0,1fr); min-height:680px; overflow:hidden; }
.studio-sidebar { border-right:1px solid var(--line); background:rgba(0,0,0,.12); padding:14px; }
.studio-list { display:grid; gap:5px; margin-top:12px; }
.studio-file { width:100%; display:flex; align-items:center; gap:10px; padding:11px; border:1px solid transparent; border-radius:10px; background:transparent; color:var(--muted); text-align:left; cursor:pointer; }
.studio-file:hover { background:rgba(255,255,255,.025); color:var(--cream); }
.studio-file.active { background:rgba(232,180,91,.07); border-color:rgba(232,180,91,.15); color:var(--gold-2); }
.studio-file svg { width:15px; }
.studio-file span { min-width:0; }
.studio-file strong { display:block; font-size:11px; }
.studio-file small { display:block; color:var(--muted-2); margin-top:2px; }
.studio-main { display:grid; grid-template-rows:auto minmax(0,1fr); min-width:0; }
.studio-toolbar { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 14px; border-bottom:1px solid var(--line); }
.editor-shell { position:relative; background:#080807; min-height:610px; overflow:hidden; }
.code-editor { position:absolute; inset:0; width:100%; height:100%; border:0; outline:0; resize:none; padding:20px 22px 60px 64px; background:transparent; color:#d8cfbe; caret-color:var(--gold); font-family:"Cascadia Code",Consolas,monospace; font-size:12px; line-height:1.7; tab-size:4; white-space:pre; overflow:auto; }
.line-numbers { position:absolute; z-index:1; left:0; top:0; bottom:0; width:50px; padding:20px 10px; overflow:hidden; color:#49453d; border-right:1px solid rgba(255,255,255,.035); text-align:right; font-family:"Cascadia Code",Consolas,monospace; font-size:12px; line-height:1.7; user-select:none; }
.editor-status { position:absolute; bottom:0; left:50px; right:0; height:33px; z-index:3; border-top:1px solid var(--line); background:rgba(15,13,10,.96); display:flex; align-items:center; justify-content:space-between; padding:0 12px; color:var(--muted-2); font-size:9px; }

/* Site editor */
.site-editor-grid { display:grid; grid-template-columns:minmax(350px,.85fr) minmax(480px,1.15fr); gap:16px; align-items:start; }
.editor-panel { padding:20px; }
.settings-section + .settings-section { margin-top:24px; padding-top:24px; border-top:1px solid var(--line); }
.settings-section h3 { margin:0 0 4px; font-size:14px; }
.settings-section > p { margin:0 0 16px; color:var(--muted); font-size:11px; }
.brand-assets { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.asset-card { height:110px; border:1px solid var(--line); border-radius:12px; overflow:hidden; position:relative; background:#090806; }
.asset-card img { width:100%; height:100%; object-fit:cover; opacity:.8; }
.asset-card span { position:absolute; left:8px; bottom:8px; padding:4px 7px; border-radius:7px; background:rgba(0,0,0,.72); font-size:9px; font-weight:800; }
.asset-card input { position:absolute; inset:0; opacity:0; cursor:pointer; }
.preview-frame { position:sticky; top:94px; min-height:630px; overflow:hidden; }
.preview-browser { height:38px; display:flex; align-items:center; gap:7px; padding:0 14px; border-bottom:1px solid var(--line); background:#100e0b; }
.preview-browser i { width:8px; height:8px; border-radius:50%; background:#413b31; }
.preview-browser span { margin-left:9px; color:var(--muted-2); font-size:9px; }
.mini-store { min-height:590px; position:relative; background:#080806; overflow:hidden; padding:68px 34px 40px; }
.mini-store::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#080806 0,rgba(8,8,6,.72),#080806), var(--preview-hero,url('/hero-wide.png')) center/cover; opacity:.72; }
.mini-store-content { position:relative; z-index:1; max-width:520px; }
.mini-store .mini-nav { position:absolute; z-index:2; top:0; left:0; right:0; height:50px; display:flex; align-items:center; justify-content:space-between; padding:0 20px; border-bottom:1px solid var(--line); background:rgba(8,8,6,.75); }
.mini-brand { display:flex; align-items:center; gap:8px; font-size:10px; font-weight:800; }
.mini-brand img { width:27px; height:27px; object-fit:contain; }
.mini-store h2 { font-size:46px; line-height:.92; letter-spacing:-.06em; margin:15px 0; max-width:490px; }
.mini-store p { color:#a69d8e; max-width:430px; font-size:11px; }
.mini-products { position:relative; z-index:1; display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin-top:36px; }
.mini-product { height:145px; border:1px solid var(--line); border-radius:12px; background:rgba(15,13,9,.88); overflow:hidden; }
.mini-product img { width:100%; height:82px; object-fit:cover; }
.mini-product div { padding:8px; font-size:9px; }
.code-tabs { display:flex; gap:5px; margin-bottom:10px; }
.code-tab { border:1px solid var(--line); border-radius:9px; background:transparent; color:var(--muted); padding:7px 10px; cursor:pointer; font-size:10px; }
.code-tab.active { color:var(--gold-2); background:rgba(232,180,91,.07); }
.code-box { min-height:300px; width:100%; background:#080807; border:1px solid var(--line); border-radius:12px; color:#d6cbb7; padding:14px; font-family:"Cascadia Code",Consolas,monospace; font-size:11px; line-height:1.6; resize:vertical; outline:none; }

/* Modal / drawer */
.modal-backdrop { position:fixed; inset:0; z-index:100; background:rgba(0,0,0,.72); backdrop-filter:blur(8px); display:grid; place-items:center; padding:24px; animation:fadeIn .18s ease; }
@keyframes fadeIn { from{opacity:0} }
.modal { width:min(100%,680px); max-height:calc(100vh - 48px); overflow:auto; border:1px solid var(--line-strong); border-radius:22px; background:linear-gradient(180deg,#1b1710,#0e0c09); box-shadow:0 40px 120px rgba(0,0,0,.72); animation:modalIn .24s cubic-bezier(.2,.85,.25,1); position:relative; }
.modal.wide { width:min(100%,920px); }
.modal.xwide { width:min(100%,1120px); }
@keyframes modalIn { from{opacity:0;transform:translateY(14px) scale(.985)} }
.modal-head { position:sticky; top:0; z-index:3; min-height:72px; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px 20px; border-bottom:1px solid var(--line); background:rgba(24,20,14,.94); backdrop-filter:blur(14px); }
.modal-title { display:flex; align-items:center; gap:12px; }
.modal-title-icon { width:38px; height:38px; border:1px solid rgba(232,180,91,.19); border-radius:11px; display:grid; place-items:center; color:var(--gold-2); background:rgba(232,180,91,.05); }
.modal-title h2 { margin:0; font-size:17px; }
.modal-title p { margin:2px 0 0; color:var(--muted); font-size:10px; }
.modal-body { padding:22px; }
.modal-foot { position:sticky; bottom:0; z-index:3; min-height:68px; display:flex; align-items:center; justify-content:flex-end; gap:10px; padding:13px 20px; border-top:1px solid var(--line); background:rgba(18,15,10,.95); backdrop-filter:blur(14px); }
.close-btn { width:36px; height:36px; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.02); color:var(--muted); display:grid; place-items:center; cursor:pointer; }
.close-btn:hover { color:var(--cream); border-color:var(--line-strong); }
.drawer-backdrop { position:fixed; inset:0; z-index:100; background:rgba(0,0,0,.58); backdrop-filter:blur(5px); animation:fadeIn .18s ease; }
.drawer { position:absolute; top:0; bottom:0; right:0; width:min(760px,94vw); background:linear-gradient(180deg,#18140e,#0c0b08); border-left:1px solid var(--line-strong); box-shadow:-40px 0 100px rgba(0,0,0,.6); overflow:auto; animation:drawerIn .28s cubic-bezier(.2,.85,.25,1); }
@keyframes drawerIn { from{transform:translateX(100%)} }
.drawer-hero { height:220px; position:relative; overflow:hidden; }
.drawer-hero img { width:100%; height:100%; object-fit:cover; }
.drawer-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent,#18140e); }
.drawer-close { position:absolute; right:18px; top:18px; z-index:2; }
.drawer-content { padding:0 24px 28px; margin-top:-35px; position:relative; z-index:2; }
.drawer-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:22px; }
.drawer-heading h2 { margin:0; font-size:28px; }
.drawer-heading p { margin:4px 0 0; color:var(--muted); }
.detail-tabs { display:flex; gap:6px; border-bottom:1px solid var(--line); margin-bottom:20px; }
.detail-tab { padding:11px 12px; border:0; background:transparent; color:var(--muted); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px; font-size:11px; font-weight:750; }
.detail-tab.active { color:var(--gold-2); border-bottom-color:var(--gold); }

/* Toast */
.toast-stack { position:fixed; z-index:200; right:22px; bottom:22px; display:grid; gap:10px; width:min(390px,calc(100vw - 44px)); pointer-events:none; }
.toast { pointer-events:auto; display:grid; grid-template-columns:38px 1fr auto; align-items:center; gap:11px; padding:12px; border:1px solid var(--line); border-radius:14px; background:rgba(20,17,12,.96); backdrop-filter:blur(16px); box-shadow:0 20px 60px rgba(0,0,0,.52); animation:toastIn .3s ease both; }
@keyframes toastIn { from{opacity:0;transform:translateX(22px)} }
.toast-icon { width:36px; height:36px; border-radius:10px; display:grid; place-items:center; background:rgba(232,180,91,.07); color:var(--gold-2); }
.toast.success .toast-icon { color:var(--success); background:rgba(81,213,154,.07); }
.toast.error .toast-icon { color:var(--danger); background:rgba(255,111,112,.07); }
.toast strong { display:block; font-size:12px; }
.toast span { display:block; color:var(--muted); font-size:10px; margin-top:2px; }
.toast button { border:0; background:transparent; color:var(--muted-2); cursor:pointer; }

/* Utilities */
.split-2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.stack { display:grid; gap:14px; }
.stack-sm { display:grid; gap:8px; }
.divider { height:1px; background:var(--line); margin:18px 0; }
.info-box { display:flex; align-items:flex-start; gap:12px; padding:14px; border:1px solid rgba(115,168,255,.18); border-radius:13px; background:rgba(115,168,255,.045); color:#b9cff4; }
.info-box.warning { border-color:rgba(255,199,95,.2); background:rgba(255,199,95,.045); color:#e8cf9d; }
.info-box.danger { border-color:rgba(255,111,112,.2); background:rgba(255,111,112,.045); color:#efb0b0; }
.info-box svg { width:18px; flex:0 0 auto; margin-top:1px; }
.info-box strong { display:block; font-size:11px; }
.info-box span { display:block; color:var(--muted); font-size:10px; margin-top:3px; }
.skeleton { background:linear-gradient(90deg,rgba(255,255,255,.025),rgba(255,255,255,.07),rgba(255,255,255,.025)); background-size:220% 100%; animation:skeleton 1.4s infinite; border-radius:9px; }
@keyframes skeleton { to{background-position:-220% 0} }
.mobile-overlay { display:none; }

@media (max-width: 1250px) {
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .admin-product-grid { grid-template-columns:repeat(2,1fr); }
  .product-grid { grid-template-columns:repeat(2,1fr); }
  .features-grid { grid-template-columns:repeat(2,1fr); }
  .site-editor-grid { grid-template-columns:1fr; }
  .preview-frame { position:relative; top:auto; }
}
@media (max-width: 980px) {
  :root { --sidebar: 250px; }
  .auth-page { grid-template-columns:1fr; }
  .auth-visual { display:none; }
  .auth-panel { border:0; }
  .hero-inner { grid-template-columns:1fr; }
  .hero-emblem { display:none; }
  .store-hero { min-height:720px; }
  .store-links { display:none; }
  .dashboard-grid { grid-template-columns:1fr; }
  .studio-layout { grid-template-columns:220px 1fr; }
}
@media (max-width: 760px) {
  .sidebar { transform:translateX(-100%); transition:.25s ease; }
  .admin-shell.menu-open .sidebar { transform:none; }
  .mobile-overlay { display:block; position:fixed; inset:0; z-index:55; background:rgba(0,0,0,.6); opacity:0; pointer-events:none; transition:.2s; }
  .admin-shell.menu-open .mobile-overlay { opacity:1; pointer-events:auto; }
  .admin-main { margin-left:0; }
  .mobile-menu { display:grid; }
  .global-search { display:none; }
  .topbar { padding:0 16px; }
  .page { padding:20px 14px 30px; }
  .page-header { align-items:flex-start; flex-direction:column; }
  .page-actions { width:100%; }
  .page-actions .btn { flex:1; }
  .stats-grid, .admin-product-grid, .product-grid, .features-grid { grid-template-columns:1fr; }
  .form-grid, .form-grid.cols-3, .split-2 { grid-template-columns:1fr; }
  .store-nav-inner { padding:0 16px; }
  .store-actions .btn-secondary { display:none; }
  .store-hero { padding:130px 18px 70px; min-height:680px; }
  .hero-copy h1 { font-size:54px; }
  .store-section { padding:70px 18px; }
  .section-head { align-items:flex-start; flex-direction:column; }
  .store-footer-inner { flex-direction:column; align-items:flex-start; }
  .table-toolbar { align-items:stretch; flex-direction:column; }
  .toolbar-left, .toolbar-right { width:100%; }
  .toolbar-search { width:100%; }
  .filter-tabs { overflow:auto; max-width:100%; }
  .studio-layout { grid-template-columns:1fr; min-height:auto; }
  .studio-sidebar { border-right:0; border-bottom:1px solid var(--line); max-height:200px; overflow:auto; }
  .editor-shell { min-height:590px; }
  .brand-assets { grid-template-columns:1fr; }
  .modal-backdrop { padding:8px; align-items:end; }
  .modal { max-height:94vh; border-radius:20px 20px 0 0; }
  .drawer { width:100%; }
  .drawer-content { padding-inline:16px; }
  .auth-panel { padding:18px; }
  .auth-card { padding:25px 20px; }
}
