@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
	--ink: #101828;
	--navy: #172033;
	--navy-soft: #202b40;
	--orange: #f97316;
	--orange-dark: #dd5d0a;
	--orange-soft: #fff1e7;
	--cream: #f7f5f0;
	--paper: #fffefa;
	--white: #fff;
	--muted: #667085;
	--line: #e7e8e5;
	--green: #22a06b;
	--green-soft: #e8f7f0;
	--red: #c4320a;
	--shadow: 0 24px 70px rgba(16, 24, 40, .12);
	font-family: 'DM Sans', sans-serif;
	color: var(--ink);
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; min-height: 100vh; background: var(--cream); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: var(--orange); }
.brand-mark svg { width: 32px; fill: var(--white); }
.brand-mark .brand-noodle { fill: none; stroke: var(--navy); stroke-linecap: round; stroke-width: 2.2; }
.brand > span:last-child { display: grid; line-height: 1.05; }
.brand strong { font: 800 15px/1.1 'Manrope', sans-serif; letter-spacing: -.02em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }

/* Login */
.login-page { overflow-x: hidden; }
.login-nav { position: absolute; z-index: 5; top: 0; left: 0; display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 28px 42px; }
.system-status { display: flex; align-items: center; gap: 8px; color: #737b8a; font-size: 12px; font-weight: 600; }
.system-status i, .live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #2ec27e; box-shadow: 0 0 0 4px rgba(46,194,126,.12); }
.login-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1.06fr) minmax(470px, .94fr); }
.story-panel { position: relative; display: flex; min-height: 760px; flex-direction: column; justify-content: center; overflow: hidden; padding: 132px clamp(45px, 7vw, 120px) 72px; color: var(--white); background: var(--navy); }
.story-panel::before { position: absolute; top: -22%; left: -18%; width: 660px; height: 660px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ''; box-shadow: 0 0 0 110px rgba(255,255,255,.025), 0 0 0 230px rgba(255,255,255,.02); }
.story-panel::after { position: absolute; right: -100px; bottom: -140px; width: 420px; height: 420px; border-radius: 48% 52% 65% 35%; background: var(--orange); content: ''; opacity: .1; transform: rotate(-23deg); }
.eyebrow { z-index: 1; display: flex; width: min(570px, 100%); justify-content: space-between; margin-bottom: 30px; color: #bdc5d4; font: 700 11px/1 'Manrope', sans-serif; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow span:first-child { color: #ff9f5a; }
.story-panel h1 { z-index: 1; margin: 0; font: 700 clamp(48px, 5.3vw, 82px)/.99 'Manrope', sans-serif; letter-spacing: -.06em; }
.story-panel h1 em { color: #ff9750; font-style: normal; }
.story-copy { z-index: 1; max-width: 540px; margin: 30px 0 42px; color: #b8c0cf; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.65; }
.signal-card { z-index: 1; width: min(570px, 100%); overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: 19px; background: rgba(255,255,255,.06); box-shadow: 0 20px 50px rgba(0,0,0,.18); backdrop-filter: blur(12px); }
.signal-card__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,.09); color: #bac2d0; font-size: 12px; font-weight: 600; }
.live-pill { display: flex; align-items: center; gap: 7px; color: #c7f4df; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.signal-metric { position: relative; display: grid; padding: 22px 22px 3px; }
.signal-metric span { font: 700 30px/1 'Manrope', sans-serif; letter-spacing: -.035em; }
.signal-metric small { margin-top: 8px; color: #98a2b3; }
.signal-metric b { position: absolute; top: 24px; right: 22px; padding: 5px 9px; border-radius: 20px; color: #7ee2b8; background: rgba(34,160,107,.16); font-size: 11px; }
.sparkline { width: 100%; height: 100px; }
.spark-fill { fill: url(#chart-fill); }
.spark-stroke { fill: none; stroke: var(--orange); stroke-linecap: round; stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.signal-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.09); }
.signal-stats span { display: grid; gap: 4px; padding: 15px 20px; border-right: 1px solid rgba(255,255,255,.09); }
.signal-stats span:last-child { border: 0; }
.signal-stats small { color: #8893a6; font-size: 10px; text-transform: uppercase; }
.signal-stats strong { font: 600 14px 'Manrope', sans-serif; }
.auth-panel { display: flex; min-height: 760px; align-items: center; justify-content: center; padding: 110px 55px 54px; background: var(--paper); }
.auth-card { width: min(100%, 430px); }
.secure-kicker { display: block; margin-bottom: 16px; color: var(--orange-dark); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.auth-heading h2 { margin: 0; font: 800 38px/1.15 'Manrope', sans-serif; letter-spacing: -.045em; }
.auth-heading p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.demo-access { display: flex; align-items: center; gap: 12px; margin: 28px 0 25px; padding: 13px; border: 1px solid #ffd9be; border-radius: 12px; background: var(--orange-soft); }
.demo-access__icon { display: grid; flex: 0 0 38px; height: 38px; place-items: center; border-radius: 9px; color: var(--white); background: var(--orange); font: 800 11px 'Manrope', sans-serif; }
.demo-access > span:last-child { display: grid; gap: 2px; }
.demo-access strong { font-size: 13px; }
.demo-access small { color: #94613d; font-size: 11px; }
.field { margin-bottom: 18px; }
.field-label { display: flex; align-items: center; justify-content: space-between; }
.field label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; }
.field-label button { margin-bottom: 7px; border: 0; color: var(--orange-dark); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.field input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #d8dce3; border-radius: 9px; outline: 0; color: var(--ink); background: var(--white); font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.field input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,.13); }
.verification-block { margin: 22px 0 18px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fafafa; }
.verification-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.verification-label span { font-size: 12px; font-weight: 700; }
.verification-label small { color: var(--muted); font-size: 10px; }
.turnstile-slot { min-height: 65px; }
.form-error { margin: -5px 0 14px; padding: 10px 12px; border: 1px solid #f5c7bd; border-radius: 8px; color: var(--red); background: #fff3f0; font-size: 12px; }
.primary-button { display: flex; width: 100%; height: 50px; align-items: center; justify-content: space-between; padding: 0 20px; border: 0; border-radius: 9px; color: var(--white); background: var(--orange); cursor: pointer; font: 700 13px 'Manrope', sans-serif; transition: transform .15s, background .15s, opacity .15s; }
.primary-button:hover:not(:disabled) { background: var(--orange-dark); transform: translateY(-1px); }
.primary-button:disabled { cursor: not-allowed; opacity: .48; }
.primary-button.loading span:last-child { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; font-size: 0; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.trust-row { display: flex; gap: 11px; margin-top: 21px; padding-top: 19px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.45; }
.trust-row svg { flex: 0 0 19px; fill: var(--green); }
.trust-row strong { color: #344054; }
.auth-panel footer { display: flex; gap: 18px; margin-top: 42px; color: #98a2b3; font-size: 10px; }
.auth-panel footer span:first-of-type { margin-left: auto; }

/* Dashboard */
.dashboard-page { display: grid; min-height: 100vh; grid-template-columns: 238px 1fr; color: #172033; background: #f6f7f5; }
.sidebar { position: fixed; z-index: 10; display: flex; width: 238px; height: 100vh; flex-direction: column; padding: 24px 17px 18px; color: #c8cfdb; background: var(--navy); }
.brand--sidebar { margin: 0 8px 34px; color: #fff; }
.brand--sidebar small { color: #9ba6b7; }
.brand--sidebar .brand-mark { width: 37px; height: 37px; border-radius: 10px; }
.brand--sidebar .brand-mark svg { width: 28px; }
.side-nav { display: grid; gap: 4px; }
.side-nav > small { margin: 17px 12px 7px; color: #707d92; font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.side-nav > small:first-child { margin-top: 0; }
.side-nav a { display: flex; height: 40px; align-items: center; gap: 11px; padding: 0 12px; border-radius: 8px; color: #abb5c5; text-decoration: none; font-size: 12px; font-weight: 600; }
.side-nav a span { width: 17px; color: #8793a6; font-size: 17px; text-align: center; }
.side-nav a b { margin-left: auto; padding: 2px 7px; border-radius: 20px; color: #ffd6ba; background: rgba(249,115,22,.2); font-size: 9px; }
.side-nav a:hover, .side-nav a.active { color: #fff; background: rgba(255,255,255,.08); }
.side-nav a.active { box-shadow: inset 3px 0 var(--orange); }
.side-nav a.active span { color: var(--orange); }
.sidebar-bottom { display: grid; gap: 12px; margin-top: auto; }
.cloudflare-badge { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; background: rgba(255,255,255,.035); }
.cloudflare-badge i { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(249,115,22,.12); }
.cloudflare-badge span { display: grid; gap: 2px; }
.cloudflare-badge small { color: #738096; font-size: 8px; text-transform: uppercase; }
.cloudflare-badge strong { color: #c8cfda; font-size: 9px; }
.user-card { display: flex; width: 100%; align-items: center; gap: 9px; padding: 10px 8px; border: 0; border-top: 1px solid rgba(255,255,255,.08); color: inherit; background: transparent; cursor: pointer; text-align: left; }
.user-card > span:first-child { display: grid; flex: 0 0 32px; height: 32px; place-items: center; border-radius: 50%; color: #fff; background: #3d4c65; font-size: 10px; font-weight: 700; }
.user-card > span:nth-child(2) { display: grid; gap: 2px; }
.user-card strong { color: #e5e8ee; font-size: 10px; }
.user-card small { color: #768399; font-size: 8px; }
.user-card b { margin-left: auto; color: #768399; font-size: 12px; }
.dashboard-main { min-width: 0; grid-column: 2; }
.dashboard-topbar { display: flex; height: 66px; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.88); backdrop-filter: blur(10px); }
.mobile-menu { display: none; border: 0; background: transparent; }
.search { display: flex; width: 280px; align-items: center; gap: 9px; color: #98a2b3; font-size: 12px; }
.search kbd { margin-left: auto; padding: 3px 7px; border: 1px solid #dddeda; border-radius: 5px; color: #98a2b3; background: #fafafa; font: 9px 'DM Sans'; }
.top-actions { display: flex; align-items: center; gap: 17px; }
.top-actions button { position: relative; border: 0; background: transparent; font-size: 19px; }
.top-actions button i { position: absolute; top: 0; right: 0; width: 6px; height: 6px; border: 1px solid white; border-radius: 50%; background: var(--orange); }
.date-chip { padding-left: 17px; border-left: 1px solid var(--line); color: #667085; font-size: 10px; font-weight: 600; }
.dashboard-content { max-width: 1480px; margin: auto; padding: 30px 32px 55px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 27px; }
.page-heading p { margin: 0 0 7px; color: var(--orange-dark); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.page-heading h1 { margin: 0 0 7px; font: 800 28px/1.2 'Manrope'; letter-spacing: -.04em; }
.page-heading > div > span { color: var(--muted); font-size: 12px; }
.outline-button { height: 37px; padding: 0 13px; border: 1px solid #dcdeda; border-radius: 7px; background: #fff; cursor: pointer; font-size: 10px; font-weight: 700; }
.outline-button span { margin-left: 7px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 15px; }
.metric-card { position: relative; min-height: 145px; overflow: hidden; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.metric-card > div:first-child { display: flex; align-items: center; justify-content: space-between; color: #667085; font-size: 10px; font-weight: 600; }
.metric-card > div:first-child i { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 7px; color: var(--orange-dark); background: var(--orange-soft); font-style: normal; }
.metric-card > strong { display: block; margin-top: 13px; font: 700 24px 'Manrope'; letter-spacing: -.04em; }
.metric-card > p { margin: 4px 0 0; color: #98a2b3; font-size: 9px; }
.metric-card > p b { color: var(--green); }
.metric-card > p em { padding: 2px 6px; border-radius: 9px; color: var(--green); background: var(--green-soft); font-style: normal; font-weight: 700; }
.metric-card svg { position: absolute; right: 12px; bottom: 8px; width: 110px; height: 38px; fill: none; stroke: var(--orange); stroke-width: 2; }
.mini-bars { position: absolute; right: 15px; bottom: 14px; display: flex; height: 34px; align-items: end; gap: 4px; }
.mini-bars i { width: 5px; border-radius: 3px 3px 0 0; background: #ffd3b5; }
.mini-bars i:nth-child(1) { height: 32%; }.mini-bars i:nth-child(2) { height: 53%; }.mini-bars i:nth-child(3) { height: 44%; }.mini-bars i:nth-child(4) { height: 72%; }.mini-bars i:nth-child(5) { height: 63%; }.mini-bars i:nth-child(6) { height: 85%; }.mini-bars i:nth-child(7) { height: 100%; background: var(--orange); }
.meter { position: absolute; right: 17px; bottom: 17px; left: 17px; height: 4px; overflow: hidden; border-radius: 4px; background: #f0f1ef; }
.meter span { display: block; height: 100%; border-radius: inherit; background: var(--orange); }
.meter.green span { background: var(--green); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, .7fr); gap: 15px; }
.dash-card { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.card-heading { display: flex; align-items: start; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #eef0ec; }
.card-heading h2 { margin: 0; font: 700 13px 'Manrope'; letter-spacing: -.02em; }
.card-heading p { margin: 4px 0 0; color: #98a2b3; font-size: 9px; }
.card-heading select, .card-heading button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; color: #667085; background: #fff; font-size: 9px; }
.chart-total { display: flex; align-items: center; gap: 15px; padding: 15px 20px 4px; }
.chart-total strong { margin-right: auto; font: 700 21px 'Manrope'; }
.chart-total span { display: flex; align-items: center; gap: 5px; color: #667085; font-size: 8px; }
.chart-total span i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.chart-total span:last-child i { background: #c8ced6; }
.sales-chart { position: relative; height: 250px; margin: 0 20px 10px 44px; }
.axis { position: absolute; top: 9px; right: 0; bottom: 25px; left: 0; display: flex; flex-direction: column; justify-content: space-between; }
.axis span { position: relative; color: #a5abb4; font-size: 8px; transform: translateX(-39px); }
.axis span::after { position: absolute; top: 5px; left: 34px; width: calc(100% + 5px); border-top: 1px dashed #eceeea; content: ''; }
.sales-chart svg { position: absolute; top: 10px; left: 0; width: 100%; height: 204px; overflow: visible; }
.sales-chart .area { fill: url(#sales-fill); }
.sales-chart .current-line { fill: none; stroke: var(--orange); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.sales-chart .previous-line { fill: none; stroke: #c9ced5; stroke-dasharray: 5 5; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.chart-days { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; color: #98a2b3; font-size: 8px; }
.store-list { margin: 0; padding: 4px 20px 6px; list-style: none; }
.store-list li { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid #f0f1ef; }
.store-list li:last-child { border: 0; }
.store-list li > span { width: 11px; color: #98a2b3; font-size: 9px; }
.store-image { width: 34px; height: 34px; border-radius: 7px; background-color: #ddd; background-image: linear-gradient(135deg, rgba(255,255,255,.4), transparent), linear-gradient(45deg, #a67c52 0 33%, #e8d0b2 33% 66%, #24344c 66%); }
.store-image--two { background-image: linear-gradient(140deg, #e3b776 0 45%, #536d68 45% 72%, #eddcc7 72%); }
.store-image--three { background-image: linear-gradient(35deg, #377b78 0 42%, #ffcc85 42% 70%, #e96745 70%); }
.store-image--four { background-image: linear-gradient(155deg, #6e7b88 0 45%, #d2b89c 45% 70%, #4c3528 70%); }
.store-list li > div { display: grid; gap: 3px; }
.store-list li > div strong { font-size: 10px; }
.store-list li small { color: #98a2b3; font-size: 8px; }
.store-list li > b { display: grid; gap: 3px; margin-left: auto; font-size: 10px; text-align: right; }
.store-list li > b small { color: var(--green); }
.bottom-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 15px; margin-top: 15px; }
.alert-count { padding: 4px 7px; border-radius: 11px; color: var(--red); background: #fff0ec; font-size: 8px; font-weight: 700; }
.alert-row { display: flex; align-items: center; gap: 11px; margin: 0 20px; padding: 13px 0; border-bottom: 1px solid #f0f1ef; }
.alert-row:last-child { border: 0; }
.alert-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 7px; color: #c4320a; background: #fff0ec; font-style: normal; font-weight: 800; }
.alert-icon.warning { color: #b36b00; background: #fff8e5; }
.alert-row div { display: grid; gap: 2px; }
.alert-row strong { font-size: 9px; }.alert-row small { color: #98a2b3; font-size: 8px; }
.alert-row button { margin-left: auto; border: 0; color: var(--orange-dark); background: transparent; cursor: pointer; font-size: 9px; font-weight: 700; }
.channel-card { display: grid; grid-template-columns: 125px 1fr; padding-bottom: 14px; }
.channel-card .card-heading { grid-column: 1 / -1; }
.donut { display: grid; width: 86px; height: 86px; place-items: center; align-self: center; justify-self: center; border-radius: 50%; background: conic-gradient(var(--orange) 0 58%, #354762 58% 88%, #ffc59d 88%); }
.donut::before { position: absolute; width: 59px; height: 59px; border-radius: 50%; background: white; content: ''; }
.donut div { z-index: 1; display: grid; text-align: center; }
.donut strong { font: 700 15px 'Manrope'; }.donut small { color: #98a2b3; font-size: 7px; }
.channel-card ul { display: grid; align-content: center; gap: 11px; margin: 0; padding: 14px 18px 0 0; list-style: none; }
.channel-card li { display: flex; align-items: center; gap: 7px; color: #667085; font-size: 8px; }
.channel-card li i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.channel-card li:nth-child(2) i { background: #354762; }.channel-card li:nth-child(3) i { background: #ffc59d; }
.channel-card li b { margin-left: auto; color: #344054; }

@media (max-width: 1050px) {
	.login-shell { grid-template-columns: minmax(0, 1fr) minmax(430px, .9fr); }
	.story-panel { padding-right: 50px; padding-left: 50px; }
	.signal-card { max-width: 520px; }
	.metric-grid { grid-template-columns: repeat(2, 1fr); }
	.dashboard-grid { grid-template-columns: 1fr; }
	.bottom-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
	.login-nav { position: relative; padding: 20px 22px; background: var(--paper); }
	.system-status { display: none; }
	.login-shell { display: flex; min-height: auto; flex-direction: column-reverse; }
	.auth-panel { min-height: auto; padding: 42px 22px 50px; }
	.story-panel { min-height: auto; padding: 58px 22px; }
	.story-panel h1 { font-size: clamp(44px, 13vw, 66px); }
	.auth-panel footer { margin-top: 30px; }
	.dashboard-page { display: block; }
	.sidebar { display: none; }
	.dashboard-main { width: 100%; }
	.mobile-menu { display: block; }
	.search { width: auto; }
	.search span, .search kbd, .date-chip { display: none; }
	.dashboard-topbar { padding: 0 18px; }
	.dashboard-content { padding: 24px 18px 45px; }
	.page-heading { align-items: start; gap: 20px; }
	.page-heading h1 { font-size: 24px; }
	.metric-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
	.auth-heading h2 { font-size: 33px; }
	.signal-stats span { padding: 13px 11px; }
	.verification-block { padding: 11px; }
	.metric-grid { grid-template-columns: 1fr; }
	.page-heading { display: block; }
	.outline-button { margin-top: 18px; }
	.sales-chart { margin-left: 39px; }
	.chart-total { flex-wrap: wrap; }
	.chart-total strong { width: 100%; }
	.channel-card { grid-template-columns: 110px 1fr; }
}
