:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg2: #0b1627;
  --panel: rgba(17, 31, 50, .86);
  --panel2: rgba(21, 39, 62, .92);
  --line: rgba(255,255,255,.085);
  --text: #f5f8fc;
  --muted: #91a0b5;
  --accent: #67e8b5;
  --accent2: #43b98c;
  --blue: #70a7ff;
  --danger: #ff7f91;
  --shadow: 0 20px 60px rgba(0,0,0,.25);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: radial-gradient(circle at 15% -10%, #13365a 0, transparent 32%), radial-gradient(circle at 100% 10%, #11372e 0, transparent 26%), var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { padding: env(safe-area-inset-top) env(safe-area-inset-right) calc(92px + env(safe-area-inset-bottom)) env(safe-area-inset-left); }
button, input, select { font: inherit; }
button { color: inherit; }
.app-shell { max-width: 1180px; margin: 0 auto; }
.topbar { height: 76px; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(18px); background: linear-gradient(to bottom, rgba(7,17,31,.94), rgba(7,17,31,.72)); border-bottom: 1px solid rgba(255,255,255,.04); }
.brand-wrap { display: flex; align-items: center; gap: 11px; }
.logo { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(145deg, #76f0c0, #288d6e); color: #052017; font-weight: 900; font-size: 21px; box-shadow: 0 10px 30px rgba(54,216,161,.22); }
.brand { font-weight: 800; letter-spacing: -.02em; }
.subtitle { color: var(--muted); font-size: 12px; margin-top: 1px; }
.top-actions { display: flex; gap: 9px; align-items: center; }
.demo-badge { display: inline-flex; align-items: center; justify-content: center; padding: 5px 8px; border: 1px solid rgba(255,255,255,.14); color: #b9c6d8; background: rgba(255,255,255,.055); border-radius: 999px; font-size: 9px; font-weight: 700; letter-spacing: .035em; white-space: nowrap; text-transform: none; }
.install-btn { border: 0; border-radius: 11px; padding: 8px 12px; background: var(--accent); color: #052018; font-weight: 800; cursor: pointer; }
.hidden { display: none !important; }
main { padding: 24px 20px 30px; }
.view { display: none; animation: fade .22s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: .25; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.hero-row { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin: 2px 0 24px; }
h1 { margin: 3px 0 7px; font-size: clamp(28px, 5vw, 42px); letter-spacing: -.045em; line-height: 1.05; }
h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
p { margin: 0; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 12px; margin-top: 4px; }
.tiny { font-size: 11px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 999px; background: rgba(103,232,181,.08); border: 1px solid rgba(103,232,181,.15); color: #b8f7dc; font-size: 12px; font-weight: 700; white-space: nowrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(103,232,181,.12); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(103,232,181,0); } }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.metric-card { min-height: 145px; padding: 18px; border-radius: 20px; background: linear-gradient(145deg, rgba(19,36,58,.92), rgba(12,25,42,.96)); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.metric-card::after { content: ""; position: absolute; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, rgba(112,167,255,.09), transparent 68%); right: -45px; top: -55px; }
.metric-card.featured { background: linear-gradient(145deg, rgba(31,81,68,.96), rgba(11,42,39,.98)); border-color: rgba(103,232,181,.18); }
.metric-label { color: #aab7c8; font-size: 12px; font-weight: 700; }
.metric-value { font-size: clamp(24px, 4vw, 35px); font-weight: 850; letter-spacing: -.045em; margin: 20px 0 7px; white-space: nowrap; }
.metric-change, .metric-sub { font-size: 12px; font-weight: 650; color: var(--muted); }
.positive { color: var(--accent); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, .8fr); gap: 13px; margin-top: 13px; }
.panel { background: linear-gradient(145deg, rgba(16,31,51,.92), rgba(10,23,39,.96)); border: 1px solid var(--line); border-radius: 21px; padding: 18px; box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.range-chip { padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.055); color: #bec8d5; font-size: 11px; font-weight: 800; }
.chart-panel canvas { display: block; width: 100%; height: 285px; }
.countdown-panel { display: flex; flex-direction: column; }
.countdown-ring { width: 168px; aspect-ratio: 1; border-radius: 50%; margin: 12px auto 22px; display: grid; place-items: center; text-align: center; background: conic-gradient(var(--accent) var(--progress, 100%), rgba(255,255,255,.07) 0); position: relative; box-shadow: inset 0 0 30px rgba(0,0,0,.1), 0 10px 40px rgba(0,0,0,.2); }
.countdown-ring::before { content: ""; position: absolute; inset: 9px; border-radius: inherit; background: #0c1a2b; border: 1px solid rgba(255,255,255,.06); }
.countdown-ring > div { position: relative; z-index: 1; }
.countdown { font-size: 31px; font-weight: 850; letter-spacing: -.045em; }
.primary-btn, .secondary-btn, .danger-btn { min-height: 46px; border-radius: 13px; padding: 11px 16px; font-weight: 800; cursor: pointer; }
.primary-btn { border: 0; background: var(--accent); color: #052018; }
.secondary-btn { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.055); }
.danger-btn { border: 1px solid rgba(255,127,145,.25); color: #ffb2bd; background: rgba(255,75,100,.08); }
.text-btn { border: 0; background: transparent; color: var(--accent); font-size: 12px; font-weight: 800; cursor: pointer; }
.recent-panel { margin-top: 13px; }
.order-list { display: grid; gap: 9px; }
.order-row { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.065); }
.order-row:last-child { border-bottom: 0; }
.order-icon { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: rgba(103,232,181,.09); color: var(--accent); font-weight: 900; }
.order-title { font-weight: 750; font-size: 14px; }
.order-meta { color: var(--muted); font-size: 11px; margin-top: 4px; }
.order-amount { font-weight: 850; letter-spacing: -.02em; text-align: right; }
.order-status { display: block; color: var(--accent); font-size: 10px; font-weight: 800; margin-top: 4px; }
.empty { color: var(--muted); padding: 34px 0; text-align: center; }
.analytics-cards { margin-bottom: 13px; }
.analytics-grid { grid-template-columns: 1fr 1fr; }
.bars { display: grid; gap: 16px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 42px; gap: 10px; align-items: center; font-size: 12px; }
.bar-track { height: 8px; background: rgba(255,255,255,.06); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.product-list { display: grid; gap: 10px; }
.product-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.product-row:last-child { border-bottom: 0; }
.product-name { font-weight: 750; }
.product-units { color: var(--muted); font-size: 11px; margin-top: 4px; }
.product-revenue { font-weight: 850; }
.settings-panel { max-width: 720px; display: grid; gap: 17px; }
.settings-panel label { display: grid; gap: 7px; color: #c3ceda; font-size: 12px; font-weight: 750; }
input, select { width: 100%; min-height: 49px; padding: 0 13px; color: var(--text); background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09); border-radius: 12px; outline: none; }
input:focus, select:focus { border-color: rgba(103,232,181,.55); box-shadow: 0 0 0 3px rgba(103,232,181,.08); }
.setting-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 3px; }
.disclaimer-box { padding: 14px; border-radius: 14px; border: 1px solid rgba(255,196,91,.18); color: #d9c69c; background: rgba(125,75,6,.1); font-size: 12px; line-height: 1.55; }
.bottom-nav { position: fixed; z-index: 30; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 1180px); padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: rgba(8,18,31,.94); backdrop-filter: blur(22px); border-top: 1px solid rgba(255,255,255,.07); }
.nav-btn { border: 0; background: transparent; color: #718096; min-height: 56px; display: grid; place-items: center; align-content: center; gap: 3px; border-radius: 14px; cursor: pointer; }
.nav-btn span { font-size: 20px; height: 24px; }
.nav-btn small { font-size: 10px; font-weight: 750; }
.nav-btn.active { color: var(--accent); background: rgba(103,232,181,.07); }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); min-width: 230px; max-width: calc(100% - 32px); padding: 13px 16px; border-radius: 13px; color: #eaf3fb; background: rgba(22,37,57,.98); border: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s ease; text-align: center; font-size: 12px; font-weight: 700; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 850px) { .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .dashboard-grid, .analytics-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .topbar { padding-inline: 14px; } main { padding: 18px 13px 24px; } .metric-grid { gap: 9px; } .metric-card { min-height: 132px; padding: 15px; border-radius: 17px; } .metric-value { font-size: 25px; margin-top: 17px; } .panel { padding: 15px; border-radius: 18px; } .hero-row { display: block; } .live-pill { margin-top: 14px; } .chart-panel canvas { height: 230px; } .demo-badge { font-size: 8px; padding: 4px 7px; } .install-btn { padding: 7px 9px; font-size: 11px; } .brand { font-size: 14px; } .subtitle { display: none; } .logo { width: 38px; height: 38px; } .bar-row { grid-template-columns: 86px 1fr 34px; } }
@media (display-mode: standalone) { .install-btn { display: none !important; } }
