:root {
  --ink: #0b1424;
  --ink-2: #101d32;
  --ink-3: #192b46;
  --paper: #f5f3ed;
  --white: #fffefa;
  --muted: #77766f;
  --line: #dedbd2;
  --dark-line: rgba(211,225,255,.12);
  --gold: #d7ad53;
  --gold-2: #f0ce78;
  --gold-soft: #f2e5bf;
  --green: #3dbb83;
  --red: #d96762;
  --shadow: 0 22px 70px rgba(20,18,10,.12);
  --radius: 20px;
  --sidebar: 248px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 "DM Sans", sans-serif; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
h1,h2,h3,h4,p { margin-top: 0; }
.skip-link { position: fixed; z-index: 100; left: 12px; top: -50px; background: var(--gold); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.launch-ribbon { height: 28px; display: flex; align-items: center; justify-content: center; gap: 9px; background: var(--gold); color: #151106; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.launch-ribbon span { width: 6px; height: 6px; border-radius: 50%; background: #172418; box-shadow: 0 0 0 3px rgba(17,51,22,.14); }
.launch-ribbon b { opacity: .45; }

.topbar { height: 76px; position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: var(--sidebar) 1fr auto; align-items: center; background: rgba(8,18,33,.98); color: var(--white); border-bottom: 1px solid var(--dark-line); }
.brand { height: 100%; display: flex; align-items: center; gap: 9px; padding: 0 27px; text-decoration: none; font: 800 20px "Manrope", sans-serif; border-right: 1px solid var(--dark-line); }
.brand-logo { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0,0,0,.24)); }
.brand sup { padding: 3px 5px; color: var(--gold-2); border: 1px solid rgba(215,173,83,.45); border-radius: 4px; font: 700 7px "DM Sans"; letter-spacing: .15em; }
.topbar-context { padding-left: 30px; color: #8d8c84; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.topbar-context strong { color: #d9d6ce; }
.topbar-actions { height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 22px; }
.icon-button { width: 42px; height: 42px; position: relative; border: 1px solid var(--dark-line); color: #dde5f2; background: #14233a; border-radius: 12px; font-size: 21px; }
.icon-button i { display: none; position: absolute; right: 8px; top: 8px; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }
.icon-button i.show { display: block; }
.account-button { min-width: 174px; display: flex; align-items: center; gap: 11px; border: 0; color: var(--white); background: transparent; text-align: left; }
.avatar { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #6f5e38; background: #17243a; color: var(--gold-2); border-radius: 12px; font: 800 15px "Manrope"; }
.account-copy { display: flex; flex-direction: column; min-width: 0; }
.account-copy small { color: var(--gold); font-size: 8px; letter-spacing: .14em; }
.account-copy strong { max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.mobile-menu { display: none; }
.nav-scrim { display: none; }

.app-layout { min-height: calc(100vh - 104px); display: grid; grid-template-columns: var(--sidebar) minmax(0,1fr); }
.sidebar { position: sticky; top: 76px; height: calc(100vh - 76px); z-index: 30; display: flex; flex-direction: column; justify-content: space-between; padding: 22px 15px; color: #d8d5cc; background: var(--ink); border-right: 1px solid var(--dark-line); overflow-y: auto; }
.nav-section-label { margin: 16px 13px 8px; color: #706e67; font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.primary-nav a { display: flex; align-items: center; gap: 12px; margin: 3px 0; padding: 11px 13px; color: #aaa89f; border-radius: 11px; text-decoration: none; font-size: 13px; font-weight: 600; }
.primary-nav a:hover { color: #fff; background: #111f34; }
.primary-nav a.active { color: var(--gold-2); background: linear-gradient(90deg,#1d2d46,#14233a); box-shadow: inset 3px 0 var(--gold); }
.nav-icon { width: 20px; display: inline-grid; place-items: center; font-size: 16px; }
.nav-badge { margin-left: auto; min-width: 21px; padding: 2px 6px; color: var(--ink); background: var(--gold); border-radius: 10px; text-align: center; font-size: 9px; }
.mode-switch { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; padding: 4px; margin: 0 4px 18px; background: #101b2e; border: 1px solid var(--dark-line); border-radius: 12px; }
.mode-switch button { padding: 8px 3px; border: 0; color: #77756e; background: transparent; border-radius: 8px; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.mode-switch button.active { color: #161106; background: var(--gold); }
.launch-card { padding: 18px; color: #eef2f8; background: linear-gradient(145deg,#1b2739,#0d1828); border: 1px solid #3b4658; border-radius: 15px; }
.launch-card span { color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.launch-card strong { display: block; margin: 8px 0 4px; font: 700 14px "Manrope"; }
.launch-card p { margin-bottom: 13px; color: #918e85; font-size: 11px; }
.launch-card button { padding: 0; border: 0; color: var(--gold-2); background: none; font-size: 11px; font-weight: 700; }
.launch-card b { margin-left: 4px; }
.legal-mini { padding: 9px 5px 0; margin: 0; color: #56554f; font-size: 9px; }

.content { min-width: 0; padding: 32px clamp(22px,4vw,58px) 70px; overflow: hidden; }
.page { max-width: 1280px; margin: 0 auto; animation: pageIn .35s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(7px); } }
.page-loading { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); }
.gold-spinner { width: 34px; height: 34px; border: 2px solid #d7d2c5; border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; color: #8b6e30; font-size: 9px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow:before { content:""; width: 15px; height: 1px; background: var(--gold); }
.page-heading h1 { margin: 0; font: 800 clamp(30px,3.5vw,46px)/1.03 "Manrope"; letter-spacing: -.045em; }
.page-heading p { max-width: 520px; margin: 8px 0 0; color: var(--muted); }
.heading-actions { display: flex; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 1px solid transparent; border-radius: 10px; text-decoration: none; font-size: 12px; font-weight: 700; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button.gold { color: #171105; background: linear-gradient(145deg,var(--gold-2),var(--gold)); box-shadow: 0 9px 25px rgba(160,113,24,.18); }
.button.dark { color: white; background: var(--ink); }
.button.light { color: var(--ink); background: var(--white); border-color: var(--line); }
.button.ghost { color: #6d5622; background: #f4ecd8; border-color: #e0c986; }
.text-link { border: 0; padding: 0; color: #795e25; background: none; font-size: 12px; font-weight: 700; }

.hero-panel { position: relative; min-height: 390px; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(310px,.8fr); overflow: hidden; margin-bottom: 26px; color: var(--white); background: radial-gradient(circle at 82% 15%,#44391f 0,transparent 29%), linear-gradient(135deg,#091322,#172945); border: 1px solid #293b55; border-radius: 27px; box-shadow: var(--shadow); }
.hero-panel:after { content:"C"; position: absolute; right: -35px; bottom: -115px; color: rgba(215,173,83,.05); font: 800 440px/1 "Manrope"; }
.hero-copy { z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: clamp(32px,5vw,65px); }
.hero-copy .eyebrow { color: var(--gold-2); }
.hero-copy h1 { max-width: 690px; margin: 0 0 18px; font: 800 clamp(38px,5vw,68px)/.96 "Manrope"; letter-spacing: -.055em; }
.hero-copy h1 em { color: var(--gold-2); font-style: normal; }
.hero-copy > p { max-width: 570px; color: #a8a59d; font-size: 16px; }
.hero-actions { display: flex; gap: 10px; margin-top: 12px; }
.hero-stat { z-index: 2; align-self: center; margin: 35px; padding: 26px; background: rgba(255,255,255,.06); border: 1px solid rgba(240,206,120,.24); border-radius: 20px; backdrop-filter: blur(8px); }
.hero-stat > span { color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.hero-stat strong { display: block; margin: 12px 0; font: 800 56px/1 "Manrope"; }
.hero-stat strong small { font-size: 16px; color: #aaa79f; }
.hero-stat p { margin: 0; color: #9c9991; font-size: 12px; }
.mini-bars { height: 74px; display: flex; align-items: end; gap: 7px; margin-top: 20px; }
.mini-bars i { flex: 1; min-height: 10px; background: linear-gradient(var(--gold-2),#69542a); border-radius: 4px 4px 0 0; }

.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 25px; }
.metric { padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.metric > span { display: flex; align-items: center; justify-content: space-between; color: #8a8880; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.metric > span i { width: 28px; height: 28px; display: grid; place-items: center; color: #8b6d2e; background: #f5ebd3; border-radius: 8px; font-style: normal; }
.metric strong { display: block; margin-top: 12px; font: 800 29px "Manrope"; }
.metric small { color: var(--muted); }

.section-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 30px 0 15px; }
.section-row h2 { margin: 0; font: 800 22px "Manrope"; letter-spacing: -.03em; }
.section-row p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.pack-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.pack-card { position: relative; min-height: 285px; display: flex; flex-direction: column; padding: 24px; overflow: hidden; color: #edf2f9; background: linear-gradient(145deg,#0f1a2c,#1b2c45); border: 1px solid #2d405c; border-radius: 20px; }
.pack-card.featured { background: radial-gradient(circle at 90% 15%,#514422,transparent 32%),linear-gradient(145deg,#101b2d,#26364f); border-color: #8b7133; }
.pack-card:after { content: attr(data-days); position: absolute; right: -5px; bottom: -47px; color: rgba(240,206,120,.055); font: 800 170px "Manrope"; }
.pack-card .pack-top { z-index: 1; display: flex; justify-content: space-between; }
.pack-tag { color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.pack-days { padding: 4px 7px; color: #d4ba75; background: #24334a; border-radius: 7px; font-size: 9px; }
.pack-card h3 { z-index: 1; margin: 31px 0 7px; font: 800 23px "Manrope"; }
.pack-card p { z-index: 1; flex: 1; color: #96938b; font-size: 12px; }
.pack-card .pack-bottom { z-index: 1; display: flex; align-items: end; justify-content: space-between; }
.pack-price { font: 800 31px "Manrope"; }
.pack-price small { display: block; color: #76746d; font: 500 9px "DM Sans"; }
.pack-card .button { min-height: 37px; padding: 0 13px; }

.split-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.75fr); gap: 16px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-pad { padding: 23px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid #e8e5dd; }
.panel-head h3 { margin: 0; font: 800 16px "Manrope"; }
.panel-head span { color: var(--muted); font-size: 10px; }
.offer-list { padding: 5px 20px; }
.offer-row { display: grid; grid-template-columns: 45px 1fr auto; align-items: center; gap: 13px; padding: 14px 0; border-bottom: 1px solid #ece9e2; }
.offer-row:last-child { border: 0; }
.offer-monogram { width: 43px; height: 43px; display: grid; place-items: center; color: #7a5b1d; background: #eee4cc; border-radius: 12px; font-weight: 800; }
.offer-row strong { display: block; font-size: 13px; }
.offer-row p { margin: 1px 0 0; color: var(--muted); font-size: 11px; }
.offer-row .status-pill { justify-self: end; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; color: #4f724e; background: #e6f2e6; border-radius: 12px; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.status-pill.pending { color: #846622; background: #f7efd6; }
.status-pill.rejected,.status-pill.paused { color: #8e4b48; background: #f9e4e2; }
.status-pill:before { content:""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }

.map-card { min-height: 520px; position: relative; overflow: hidden; color: #dbe4f1; background-color: #101b2b; background-image: linear-gradient(30deg,transparent 48%,rgba(255,255,255,.035) 49%,rgba(255,255,255,.035) 51%,transparent 52%),linear-gradient(120deg,transparent 48%,rgba(255,255,255,.03) 49%,rgba(255,255,255,.03) 51%,transparent 52%); background-size: 55px 55px; border: 1px solid #293b54; border-radius: 22px; }
.map-card:before { content:""; position: absolute; width: 130%; height: 85px; left: -20%; top: 52%; transform: rotate(-12deg); border: 24px solid rgba(66,80,85,.5); border-left: 0; border-right: 0; }
.map-label { position: absolute; color: rgba(226,222,210,.33); font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.marker { position: absolute; width: 39px; height: 39px; display: grid; place-items: center; transform: translate(-50%,-50%); border: 0; color: #211703; background: var(--gold-2); border-radius: 50% 50% 50% 8px; box-shadow: 0 0 0 7px rgba(215,173,83,.14),0 8px 20px #000; font-weight: 800; }
.marker:hover { transform: translate(-50%,-50%) scale(1.08); }
.map-empty { position: absolute; left: 50%; top: 50%; width: min(360px,80%); transform: translate(-50%,-50%); padding: 25px; text-align: center; background: rgba(15,15,13,.9); border: 1px solid #665328; border-radius: 18px; backdrop-filter: blur(8px); }
.map-empty b { display: block; color: var(--gold-2); font: 800 18px "Manrope"; }
.map-empty p { margin: 7px 0 16px; color: #918e85; font-size: 12px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 17px; }
.filter-bar button,.filter-bar select { min-height: 36px; padding: 0 12px; color: #68665f; background: var(--white); border: 1px solid var(--line); border-radius: 9px; font-size: 11px; }
.filter-bar button.active { color: #171105; background: var(--gold); border-color: var(--gold); font-weight: 700; }
.catalog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.business-card { padding: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 17px; }
.business-visual { height: 120px; position: relative; display: grid; place-items: center; color: rgba(255,255,255,.9); background: radial-gradient(circle at 30% 30%,#756239,#14243b 70%); font: 800 38px "Manrope"; }
.business-visual span { position: absolute; right: 12px; top: 12px; padding: 4px 7px; color: #151106; background: var(--gold-2); border-radius: 7px; font: 700 8px "DM Sans"; }
.business-body { padding: 17px; }
.business-body small { color: #8b6d2e; font-weight: 700; }
.business-body h3 { margin: 6px 0 2px; font: 800 16px "Manrope"; }
.business-body strong { display: block; margin: 12px 0 3px; }
.business-body p { margin-bottom: 13px; color: var(--muted); font-size: 11px; }
.business-actions { display: flex; justify-content: space-between; align-items: center; }

.pass-shell { max-width: 920px; margin: 0 auto; }
.prime-pass { position: relative; min-height: 380px; display: grid; grid-template-columns: 1fr 300px; overflow: hidden; color: var(--white); background: radial-gradient(circle at 100% 0,#4b3c1b,transparent 35%),linear-gradient(145deg,#091322,#1a2b45); border: 1px solid #5b4b2a; border-radius: 28px; box-shadow: 0 30px 80px rgba(5,13,26,.26); }
.prime-pass:before { content:""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg,transparent,var(--gold-2),transparent); }
.pass-info { padding: 42px; display: flex; flex-direction: column; }
.pass-brand { display: flex; align-items: center; gap: 10px; font: 800 17px "Manrope"; }
.pass-logo { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
.pass-info h2 { margin: 55px 0 5px; font: 800 37px "Manrope"; letter-spacing: -.04em; }
.pass-info > p { color: #8f8c84; }
.pass-meta { display: flex; gap: 40px; margin-top: auto; }
.pass-meta span { color: #6f6d67; font-size: 8px; letter-spacing: .12em; }
.pass-meta strong { display: block; color: #e8e3d8; font-size: 12px; }
.qr-zone { display: grid; place-content: center; justify-items: center; margin: 20px; padding: 22px; color: var(--ink); background: #fffefa; border-radius: 20px; text-align: center; }
.qr-zone canvas { width: 210px; height: 210px; image-rendering: pixelated; }
.qr-zone strong { margin-top: 6px; font-size: 11px; }
.qr-zone small { color: #8c6c2b; font-size: 9px; }
.countdown { width: 100%; margin-top: 11px; height: 4px; overflow: hidden; background: #e4e0d7; border-radius: 4px; }
.countdown i { display: block; height: 100%; background: var(--gold); transition: width .8s linear; }
.no-pass { padding: 50px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: 24px; }
.no-pass .empty-icon { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 20px; color: #8d6e2d; background: #f5ebd3; border-radius: 22px; font: 800 27px "Manrope"; }
.no-pass h2 { font: 800 24px "Manrope"; }
.no-pass p { max-width: 480px; margin: 0 auto 20px; color: var(--muted); }

.scanner { max-width: 720px; margin: 0 auto; padding: clamp(24px,4vw,44px); text-align: center; }
.scan-icon { width: 84px; height: 84px; display: grid; place-items: center; margin: 0 auto 18px; color: var(--gold-2); background: var(--ink); border: 1px solid #594a29; border-radius: 24px; font-size: 30px; }
.scanner h2 { font: 800 27px "Manrope"; }
.scanner > p { color: var(--muted); }
.scan-form { display: grid; gap: 13px; margin-top: 25px; text-align: left; }
.scan-form textarea { min-height: 110px; resize: vertical; }
.scan-result { margin-top: 20px; padding: 24px; color: #235f45; background: #e5f3ea; border: 1px solid #b7ddc7; border-radius: 15px; }

.chart-panel { min-height: 285px; padding: 24px; }
.bar-chart { height: 190px; display: flex; align-items: end; gap: 12px; padding-top: 26px; border-bottom: 1px solid var(--line); }
.bar-chart div { flex: 1; min-width: 15px; position: relative; height: var(--h); background: linear-gradient(var(--gold-2),#ad8133); border-radius: 6px 6px 0 0; }
.bar-chart div span { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); color: #8c8a83; font-size: 9px; }
.empty-chart { height: 200px; display: grid; place-content: center; color: var(--muted); text-align: center; }
.empty-chart b { color: var(--ink); }

.form-panel { padding: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1/-1; }
.field label { color: #55534e; font-size: 11px; font-weight: 700; }
.field small { color: #929087; font-size: 9px; }
.field input,.field textarea,.field select,.scan-form textarea,.scan-form select { width: 100%; padding: 11px 12px; color: var(--ink); background: #fbfaf7; border: 1px solid #d8d4ca; border-radius: 9px; outline: none; }
.field input:focus,.field textarea:focus,.field select:focus,.scan-form textarea:focus,.scan-form select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215,173,83,.13); }
.field textarea { min-height: 92px; resize: vertical; }
.form-footer { grid-column: 1/-1; display: flex; justify-content: flex-end; gap: 9px; padding-top: 8px; }
.consent { grid-column: 1/-1; display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 10px; }

.application-card { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 20px; border-bottom: 1px solid #ebe7de; }
.application-card:last-child { border: 0; }
.application-card h3 { margin-bottom: 4px; font: 800 16px "Manrope"; }
.application-card p { margin: 0; color: var(--muted); font-size: 11px; }
.application-card .offer-quote { margin-top: 12px; color: var(--ink); font-size: 12px; }
.app-actions { display: flex; align-items: flex-start; gap: 6px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th,td { padding: 13px 16px; text-align: left; border-bottom: 1px solid #ece9e1; font-size: 11px; }
th { color: #8d8a82; background: #faf8f3; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
td strong { display: block; }
.empty-state { padding: 45px 24px; text-align: center; color: var(--muted); }
.empty-state .empty-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 15px; color: #896a2b; background: #f5ecd7; border-radius: 17px; font-size: 23px; }
.empty-state h3 { margin-bottom: 6px; color: var(--ink); font: 800 18px "Manrope"; }
.empty-state p { max-width: 450px; margin: 0 auto 17px; }

.profile-card { padding: 24px; }
.profile-head { display: flex; align-items: center; gap: 15px; margin-bottom: 21px; }
.profile-head .avatar { width: 58px; height: 58px; font-size: 21px; }
.profile-head h2 { margin: 0; font: 800 19px "Manrope"; }
.profile-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.settings-list { border-top: 1px solid var(--line); }
.settings-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 15px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.settings-row i { width: 34px; height: 34px; display: grid; place-items: center; background: #f1ead9; border-radius: 9px; font-style: normal; }
.settings-row span { flex: 1; }
.settings-row small { display: block; color: var(--muted); }

.modal-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(4,4,3,.74); backdrop-filter: blur(5px); }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(600px,100%); max-height: 88vh; overflow-y: auto; background: var(--white); border-radius: 20px; box-shadow: 0 30px 100px rgba(0,0,0,.4); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 23px 25px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font: 800 20px "Manrope"; }
.modal-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.modal-close { width: 34px; height: 34px; border: 0; background: #eeeae0; border-radius: 9px; }
.modal-body { padding: 24px 25px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 17px 25px 23px; border-top: 1px solid var(--line); }
.notification { padding: 13px 0; border-bottom: 1px solid var(--line); }
.notification:last-child { border: 0; }
.notification strong { display: block; }
.notification p { margin: 2px 0; color: var(--muted); font-size: 11px; }
.notification small { color: #9b7832; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: -100px; transform: translateX(-50%); max-width: calc(100vw - 30px); padding: 12px 18px; color: white; background: #101d32; border: 1px solid #63532f; border-radius: 11px; box-shadow: 0 20px 55px rgba(5,13,26,.32); font-size: 12px; transition: bottom .3s ease; }
.toast.show { bottom: 24px; }
.toast.error { border-color: #87423e; }
.bottom-nav { display: none; }

html[data-device="desktop"] .app-layout { width: 100%; grid-template-columns: minmax(224px,var(--sidebar)) minmax(0,1fr); }
html[data-device="desktop"] .sidebar { position: sticky; left: auto; top: 76px; width: auto; height: calc(100dvh - 76px); transform: none; }
html[data-device="desktop"] .content { width: 100%; min-width: 0; }
html[data-device="desktop"] .page { width: 100%; }
html[data-device="desktop"] .mobile-menu,
html[data-device="desktop"] .nav-scrim,
html[data-device="desktop"] .bottom-nav { display: none !important; }

html[data-device="tablet"] .topbar { grid-template-columns: auto auto 1fr auto; }
html[data-device="tablet"] .mobile-menu { display: block; margin-left: 12px; border: 0; color: white; background: transparent; font-size: 20px; }
html[data-device="tablet"] .brand { padding: 0 16px; border-right: 0; }
html[data-device="tablet"] .topbar-context { padding-left: 12px; }
html[data-device="tablet"] .app-layout { display: block; }
html[data-device="tablet"] .sidebar { position: fixed; z-index: 51; left: -280px; top: 76px; width: 248px; height: calc(100dvh - 76px); transition: left .25s ease; box-shadow: 20px 0 60px rgba(5,13,26,.4); }
html[data-device="tablet"] .sidebar.open { left: 0; }
html[data-device="tablet"] .content { width: 100%; padding: 30px 28px 70px; }
html[data-device="tablet"] .nav-scrim.show { position: fixed; z-index: 50; inset: 76px 0 0; display: block; border: 0; background: rgba(5,13,26,.46); backdrop-filter: blur(2px); }
html[data-device="tablet"] .bottom-nav { display: none; }

html[data-device="phone"] .nav-scrim.show { position: fixed; z-index: 29; inset: 87px 0 0; display: block; border: 0; background: rgba(5,13,26,.46); backdrop-filter: blur(2px); }

@media (max-width: 1050px) {
  :root { --sidebar: 210px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .pack-grid,.catalog-grid { grid-template-columns: 1fr 1fr; }
  .hero-panel { grid-template-columns: 1fr; }
  .hero-stat { display: none; }
}

@media (max-width: 760px) {
  .launch-ribbon { height: 24px; font-size: 8px; }
  .topbar { height: 63px; grid-template-columns: auto 1fr auto; }
  .mobile-menu { display: block; margin-left: 9px; border: 0; color: white; background: transparent; font-size: 20px; }
  .brand { padding: 0 8px; border: 0; font-size: 16px; }
  .brand-logo { width: 32px; height: 32px; }
  .topbar-context,.account-copy,.icon-button { display: none; }
  .topbar-actions { padding: 0 10px; }
  .account-button { min-width: auto; }
  .account-button .avatar { width: 34px; height: 34px; }
  .app-layout { display: block; min-height: calc(100vh - 87px); }
  .sidebar { position: fixed; left: -260px; top: 87px; width: 248px; height: calc(100dvh - 87px); transition: left .25s ease; box-shadow: 20px 0 60px rgba(5,13,26,.4); }
  .sidebar.open { left: 0; }
  .content { padding: 22px 15px 95px; }
  .page-heading { align-items: flex-start; }
  .page-heading h1 { font-size: 31px; }
  .heading-actions { display: none; }
  .hero-panel { min-height: 440px; border-radius: 22px; }
  .hero-copy { padding: 34px 25px; }
  .hero-copy h1 { font-size: 42px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .metric-grid,.pack-grid,.catalog-grid,.split-grid,.form-grid { grid-template-columns: 1fr; }
  .metric-grid { gap: 9px; }
  .metric { padding: 16px; }
  .metric strong { font-size: 24px; }
  .pack-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .pack-card { min-width: 84vw; scroll-snap-align: center; }
  .prime-pass { grid-template-columns: 1fr; }
  .pass-info { min-height: 280px; padding: 30px; }
  .pass-info h2 { margin-top: 35px; }
  .qr-zone { margin-top: 0; }
  .application-card { grid-template-columns: 1fr; }
  .app-actions { flex-wrap: wrap; }
  .bottom-nav { position: fixed; z-index: 35; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: repeat(5,1fr); padding: 7px; color: #9fa9b8; background: rgba(10,20,36,.96); border: 1px solid #31435f; border-radius: 17px; box-shadow: 0 10px 45px rgba(5,13,26,.4); backdrop-filter: blur(12px); }
  .bottom-nav a { display: grid; justify-items: center; gap: 1px; padding: 5px 2px; border-radius: 9px; text-decoration: none; font-size: 8px; }
  .bottom-nav a .nav-icon { font-size: 15px; }
  .bottom-nav a.active { color: var(--gold-2); background: #1b2d48; }
  .toast.show { bottom: 88px; }
}

@media (max-width: 420px) {
  .brand-name { display: none; }
  .page-heading p { font-size: 11px; }
  .hero-copy h1 { font-size: 37px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .pack-card { min-width: 88vw; }
  .pass-meta { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) { *,*:before,*:after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
