/* ============================================================
   OVERBYTE — Page-level styles (landing, auth, marketplace…)
   ============================================================ */

/* ============================ LANDING ============================ */
.land { background: var(--background); min-height: 100vh; }
.land-nav {
  position: sticky; top: 0; z-index: 50; height: 66px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 40px;
  background: rgba(8,9,13,.75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.land-nav .links { display: flex; gap: 26px; font-size: 13.5px; color: var(--text-secondary); }
.land-nav .links a:hover { color: var(--text-primary); }
.land-hero {
  position: relative; padding: 96px 40px 40px; max-width: 1160px; margin: 0 auto; text-align: center; overflow: visible;
}
.land-hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 660; letter-spacing: -0.04em; line-height: 1.04; }
.land-hero .hero-sub { margin: 22px auto 0; max-width: 640px; font-size: 17px; line-height: 1.6; color: var(--text-secondary); }
.hero-eyebrow { margin-bottom: 26px; }
.land-hero .hero-cta { margin-top: 34px; display: flex; gap: 12px; justify-content: center; }
.land-hero .hero-meta { margin-top: 22px; display: flex; gap: 22px; justify-content: center; font-size: 12.5px; color: var(--text-muted); }
.land-hero .hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-glow {
  position: absolute; left: 50%; top: -180px; transform: translateX(-50%);
  width: 900px; height: 480px; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(133,119,255,.16), transparent 70%);
  filter: blur(20px);
}
.land-section { max-width: 1160px; margin: 0 auto; padding: 96px 40px; }
.land-section .kicker { display: flex; justify-content: center; margin-bottom: 14px; }
.land-section h2 { text-align: center; font-size: clamp(28px, 3.6vw, 40px); font-weight: 640; letter-spacing: -0.03em; line-height: 1.12; }
.land-section .sec-sub { margin: 14px auto 0; max-width: 560px; text-align: center; font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

.land-quote {
  max-width: 820px; margin: 0 auto; padding: 100px 40px; text-align: center;
}
.land-quote blockquote { font-size: clamp(24px, 3vw, 34px); font-weight: 560; letter-spacing: -0.025em; line-height: 1.3; color: var(--text-primary); }
.land-quote blockquote em { font-style: normal; color: var(--primary-strong); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.feature { padding: 24px; }
.feature .f-icon {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--primary-dim); border: 1px solid rgba(133,119,255,.3); color: var(--primary-strong); margin-bottom: 16px;
}
.feature h3 { font-size: 15px; font-weight: 620; }
.feature p { margin-top: 7px; font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }

/* Network / flow visualization */
.flow-viz { position: relative; margin-top: 56px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 52px; counter-reset: how; }
.how-step { position: relative; padding: 22px; counter-increment: how; }
.how-step::before {
  content: "0" counter(how); font-family: var(--font-mono); font-size: 12px; color: var(--primary-strong);
  display: block; margin-bottom: 14px; letter-spacing: .08em;
}
.how-step h3 { font-size: 14.5px; font-weight: 600; }
.how-step p { margin-top: 6px; font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
.land-cta { text-align: center; padding: 110px 40px 130px; position: relative; }
.land-cta h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 640; letter-spacing: -0.03em; line-height: 1.12; }
.land-cta .btn { margin-top: 30px; }
.land-foot { border-top: 1px solid var(--border); padding: 34px 40px; display: flex; align-items: center; justify-content: space-between; color: var(--text-muted); font-size: 12.5px; }
.land-foot .links { display: flex; gap: 20px; }
.land-foot a:hover { color: var(--text-secondary); }

/* Hero dashboard mock */
.hero-mock {
  max-width: 980px; margin: 72px auto 0; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border-strong); box-shadow: 0 40px 120px -30px rgba(0,0,0,.8), 0 0 80px -20px var(--primary-glow);
  background: var(--surface); position: relative;
}
.hero-mock::before { content: ""; display: block; height: 38px; background: var(--surface-secondary); border-bottom: 1px solid var(--border); }
.hero-mock .dots { position: absolute; top: 12px; left: 16px; display: flex; gap: 6px; }
.hero-mock .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-tertiary); border: 1px solid var(--border-strong); }
.mock-body { display: grid; grid-template-columns: 200px 1fr; min-height: 380px; }
.mock-side { border-right: 1px solid var(--border); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; background: var(--background-raised); }
.mock-side .mi { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 9px; border-radius: 7px; color: var(--text-muted); font-size: 11.5px; }
.mock-side .mi.on { background: var(--primary-dim); color: #cdc7ff; }
.mock-main { padding: 18px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto 1fr; gap: 12px; }
.mock-card { background: var(--surface-secondary); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.mock-card.wide { grid-column: span 2; }
.mock-kpi { font-family: var(--font-mono); font-size: 19px; font-weight: 600; margin-top: 6px; letter-spacing: -0.03em; }
.mock-label { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); font-weight: 620; }

/* Flow network (SVG canvas) */
.net-canvas { border-radius: var(--radius-lg); border: 1px solid var(--border); background:
  radial-gradient(60% 90% at 50% 0%, rgba(133,119,255,.07), transparent 60%), var(--surface);
  overflow: hidden; }
.net-canvas svg { width: 100%; height: auto; display: block; }

/* ============================ AUTH ============================ */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-left { display: flex; flex-direction: column; justify-content: center; padding: 64px min(9vw, 120px); position: relative; }
.auth-left::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 30% 20%, rgba(133,119,255,.09), transparent 60%);
}
.auth-right {
  position: relative; border-left: 1px solid var(--border); overflow: hidden;
  background: linear-gradient(180deg, #0b0d13, #08090d);
  display: flex; align-items: center; justify-content: center; padding: 48px;
}
.auth-right::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(45% 40% at 70% 30%, rgba(34,211,238,.08), transparent 70%),
    radial-gradient(50% 45% at 30% 75%, rgba(133,119,255,.12), transparent 70%);
}
.auth-panel { width: 100%; max-width: 400px; }
.auth-panel h1 { font-size: 26px; font-weight: 640; letter-spacing: -0.025em; }
.auth-panel .sub { margin-top: 8px; color: var(--text-secondary); font-size: 14px; }
.auth-form { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.auth-foot { margin-top: 26px; font-size: 13px; color: var(--text-muted); text-align: center; }
.auth-foot a { color: var(--primary-strong); font-weight: 560; }
.auth-foot a:hover { text-decoration: underline; }
.auth-demo { margin-top: 14px; }
.auth-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 44px; }
.auth-brand-row .wordmark { font-size: 16px; font-weight: 680; letter-spacing: -0.02em; }
.auth-brand-row .wordmark i { font-style: normal; color: var(--primary-strong); }
.auth-stat-card { position: relative; width: 340px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-lg); }
.auth-stat-card + .auth-stat-card { margin-top: 14px; margin-left: 60px; }
.auth-stat-card .asc-row { display: flex; align-items: center; gap: 12px; }
.auth-stat-card .asc-val { font-family: var(--font-mono); font-size: 22px; font-weight: 620; margin-top: 10px; letter-spacing: -0.03em; }

/* Type selector (onboarding) */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.type-card {
  padding: 18px 14px; border-radius: var(--radius-md); border: 1px solid var(--border-strong); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  transition: border-color var(--t-fast) ease, background var(--t-fast) ease, transform var(--t-fast) ease;
  color: var(--text-secondary); font-size: 13px; font-weight: 560;
}
.type-card svg { color: var(--text-muted); transition: color var(--t-fast) ease; }
.type-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.2); color: var(--text-primary); }
.type-card.selected { border-color: var(--primary); background: var(--primary-dim); color: #e4e0ff; }
.type-card.selected svg { color: var(--primary-strong); }

/* ============================ DASHBOARD ============================ */
.dash-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.dash-grid .span-3 { grid-column: span 3; }
.dash-grid .span-4 { grid-column: span 4; }
.dash-grid .span-5 { grid-column: span 5; }
.dash-grid .span-6 { grid-column: span 6; }
.dash-grid .span-7 { grid-column: span 7; }
.dash-grid .span-8 { grid-column: span 8; }
.dash-grid .span-9 { grid-column: span 9; }
.dash-grid .span-12 { grid-column: span 12; }

.dashboard-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.qa-btn {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 13px; font-weight: 560; color: var(--text-secondary); transition: all var(--t-fast) ease;
}
.qa-btn:hover { border-color: rgba(255,255,255,.2); color: var(--text-primary); background: var(--surface-tertiary); transform: translateY(-1px); }
.qa-btn.primary { background: var(--primary-dim); border-color: rgba(133,119,255,.35); color: #d6d1ff; }
.qa-btn.primary:hover { background: rgba(133,119,255,.22); }
.qa-btn .qa-ic { display: flex; color: var(--text-muted); }
.qa-btn.primary .qa-ic { color: var(--primary-strong); }

/* Risk ring block */
.risk-block { display: flex; align-items: center; gap: 24px; padding: 20px; }
.risk-legend { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.rl-row { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-secondary); }
.rl-row .sq { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.rl-row .rl-val { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--text-primary); }

/* AI command center alert item */
.ai-alert-item {
  display: flex; gap: 14px; padding: 15px 16px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--surface-secondary); transition: border-color var(--t-fast) ease;
}
.ai-alert-item:hover { border-color: var(--border-strong); }
.ai-alert-item .a-art { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex: none; border: 1px solid var(--border); }
.ai-alert-item .a-title { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ai-alert-item .a-meta { display: flex; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.ai-alert-item .a-meta .am { font-size: 11.5px; color: var(--text-muted); }
.ai-alert-item .a-meta .am b { color: var(--text-secondary); font-weight: 560; font-family: var(--font-mono); font-size: 11.5px; }
.ai-alert-item .a-actions { margin-left: auto; display: flex; flex-direction: column; gap: 8px; justify-content: center; flex: none; }
.ai-rec {
  margin-top: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--primary-dim); border: 1px solid rgba(133,119,255,.2);
  font-size: 12.5px; color: #d9d5ff; line-height: 1.5; display: flex; gap: 9px;
}
.ai-rec svg { flex: none; margin-top: 1px; color: var(--primary-strong); }

/* Activity feed */
.feed-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.feed-item:last-child { border-bottom: none; }
.feed-item .f-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; }
.feed-item .f-title { font-size: 13px; font-weight: 550; }
.feed-item .f-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.feed-item .f-time { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); flex: none; }

/* ============================ MARKETPLACE ============================ */
.mkt-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
.filters { position: sticky; top: calc(var(--topbar-h) + 20px); }
.filters .f-group { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.filters .f-group:last-child { border-bottom: none; }
.filters .f-title { font-size: 11px; font-weight: 640; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 11px; display: flex; justify-content: space-between; align-items: center; }
.filter-check { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 13px; color: var(--text-secondary); cursor: pointer; user-select: none; }
.filter-check:hover { color: var(--text-primary); }
.filter-check input { display: none; }
.filter-check .box {
  width: 16px; height: 16px; border-radius: 5px; border: 1px solid var(--border-strong); background: var(--background-raised);
  display: flex; align-items: center; justify-content: center; flex: none; transition: all var(--t-fast) ease;
}
.filter-check input:checked + .box { background: var(--primary); border-color: var(--primary); }
.filter-check .box svg { opacity: 0; transform: scale(0.5); transition: all var(--t-fast) var(--ease-spring); }
.filter-check input:checked + .box svg { opacity: 1; transform: scale(1); }
.filter-check .fc-count { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }

.mkt-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.mkt-count { font-size: 13px; color: var(--text-muted); }
.mkt-count b { color: var(--text-primary); font-family: var(--font-mono); font-size: 12.5px; }

.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 18px; }
.listing-card { overflow: hidden; display: flex; flex-direction: column; cursor: pointer; }
.listing-card .lc-media { position: relative; height: 150px; overflow: hidden; }
.listing-card .lc-media .food-art { transition: transform 0.5s var(--ease-out); }
.listing-card:hover .lc-media .food-art { transform: scale(1.06); }
.listing-card .lc-media .lc-floats { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.listing-card .lc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.listing-card .lc-name { font-size: 14.5px; font-weight: 620; letter-spacing: -0.01em; }
.listing-card .lc-qty { font-size: 12.5px; color: var(--text-muted); }
.listing-card .lc-price-row { display: flex; align-items: baseline; gap: 8px; }
.listing-card .lc-price { font-family: var(--font-mono); font-size: 17px; font-weight: 640; letter-spacing: -0.02em; }
.listing-card .lc-mrp { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); text-decoration: line-through; }
.listing-card .lc-save { font-size: 11px; font-weight: 620; color: var(--success); }
.listing-card .lc-facts { display: flex; gap: 12px; font-size: 11.5px; color: var(--text-muted); flex-wrap: wrap; }
.listing-card .lc-facts span { display: inline-flex; align-items: center; gap: 5px; }
.listing-card .lc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 11px; border-top: 1px solid var(--border); }
.listing-card .lc-seller { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-secondary); min-width: 0; }
.disc-tag { background: var(--success-dim); color: var(--success); border: 1px solid rgba(52,211,153,.3); font-size: 10.5px; font-weight: 660; font-family: var(--font-mono); padding: 3px 7px; border-radius: 6px; }
.match-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 8px;
  background: var(--primary-dim); border: 1px solid rgba(133,119,255,.3);
  font-family: var(--font-mono); font-size: 11px; font-weight: 640; color: #cfc9ff;
}
.match-tag .mt-bar { width: 30px; height: 3px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.match-tag .mt-bar i { display: block; height: 100%; background: var(--primary-strong); border-radius: 99px; }

/* ============================ LISTING DETAIL ============================ */
.ld-layout { display: grid; grid-template-columns: 1fr 400px; gap: 24px; align-items: start; }
.ld-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); height: 340px; }
.ld-hero .food-art { height: 100%; }
.ld-info-card { padding: 22px; }
.ld-price-row { display: flex; align-items: baseline; gap: 10px; }
.ld-price { font-family: var(--font-mono); font-size: 30px; font-weight: 640; letter-spacing: -0.03em; }
.ld-why { margin-top: 14px; }
.why-row { display: flex; gap: 9px; font-size: 12.5px; color: var(--text-secondary); padding: 5px 0; align-items: flex-start; line-height: 1.5; }
.why-row svg { color: var(--success); flex: none; margin-top: 2px; }
.qty-stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; width: max-content; }
.qty-stepper button { width: 40px; height: 42px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); background: var(--surface-tertiary); transition: all var(--t-fast) ease; }
.qty-stepper button:hover { color: var(--text-primary); background: var(--surface-hover); }
.qty-stepper .qs-val { width: 84px; text-align: center; font-family: var(--font-mono); font-size: 14.5px; font-weight: 600; }
.seller-card { display: flex; align-items: center; gap: 12px; padding: 16px 20px; }
.map-mock {
  height: 120px; border-radius: var(--radius-md); border: 1px solid var(--border); position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px),
    radial-gradient(80% 100% at 30% 20%, rgba(34,211,238,.05), transparent 60%),
    var(--background-raised);
  background-size: 26px 26px, 26px 26px, auto, auto;
}
.map-mock .route { position: absolute; inset: 0; }
.map-mock .pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.map-mock .pin .p-dot { width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #0b0d12; }
.map-mock .pin .p-label { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-secondary); background: rgba(10,12,17,.8); border: 1px solid var(--border); padding: 2px 6px; border-radius: 5px; white-space: nowrap; }

/* ============================ CREATE LISTING ============================ */
.create-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.price-suggest { padding: 16px 18px; }
.price-suggest .ps-range { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.price-suggest .ps-low, .price-suggest .ps-high { font-family: var(--font-mono); font-size: 22px; font-weight: 620; letter-spacing: -0.03em; }
.price-suggest .ps-dash { color: var(--text-faint); }
.price-suggest .ps-basis { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.price-suggest .ps-basis span { font-size: 12px; color: var(--text-secondary); display: flex; gap: 8px; align-items: center; }
.price-suggest .ps-basis span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--primary-strong); flex: none; }
.alert-summary { padding: 16px 18px; }
.as-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13px; border-bottom: 1px dashed var(--border); }
.as-row:last-child { border-bottom: none; }
.as-row .k { color: var(--text-muted); }
.as-row .v { font-family: var(--font-mono); font-weight: 560; }

/* ============================ ORDERS ============================ */
.order-card { padding: 18px 20px; }
.order-head { display: flex; align-items: center; gap: 14px; }
.order-id { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); letter-spacing: 0.04em; }
.order-line { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.order-timeline { display: flex; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.ot-step { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-faint); }
.ot-step .ot-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--surface-tertiary); border: 1px solid var(--border-strong); }
.ot-step.done { color: var(--text-secondary); }
.ot-step.done .ot-dot { background: var(--success); border-color: var(--success); }
.ot-step.current { color: var(--primary-strong); font-weight: 600; }
.ot-step.current .ot-dot { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim); }

/* ============================ ANALYTICS / INSIGHTS ============================ */
.kpi-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.chart-card { padding: 20px; }
.chart-card .ch-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.chart-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--text-muted); flex-wrap: wrap; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 3px; }
.hbar-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.hbar-row .hb-label { width: 110px; font-size: 12.5px; color: var(--text-secondary); flex: none; }
.hbar-row .hb-track { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-tertiary); overflow: hidden; }
.hbar-row .hb-track i { display: block; height: 100%; border-radius: 99px; transition: width 1s var(--ease-out); }
.hbar-row .hb-val { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); width: 64px; text-align: right; flex: none; }

.insight-card { padding: 20px; position: relative; overflow: hidden; }
.insight-card .ic-kind { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.insight-card h3 { margin-top: 12px; font-size: 16px; font-weight: 620; letter-spacing: -0.015em; line-height: 1.4; }
.insight-card .ic-body { margin-top: 10px; font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.insight-card .ic-stats { display: flex; gap: 22px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.insight-card .ic-stat .v { font-family: var(--font-mono); font-size: 17px; font-weight: 620; letter-spacing: -0.02em; }
.insight-card .ic-stat .k { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.insight-card .ic-action { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ============================ SETTINGS / IOT ============================ */
.settings-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.settings-nav { position: sticky; top: calc(var(--topbar-h) + 20px); display: flex; flex-direction: column; gap: 2px; }
.settings-nav button { text-align: left; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 13.5px; color: var(--text-secondary); font-weight: 540; }
.settings-nav button:hover { background: var(--surface-tertiary); color: var(--text-primary); }
.settings-nav button.active { background: var(--primary-dim); color: #d6d1ff; }
.sensor-card { padding: 18px 20px; display: flex; gap: 16px; align-items: flex-start; }
.sensor-icon { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: none; border: 1px solid var(--border-strong); }
.sensor-metric { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--background-raised); border: 1px solid var(--border); min-width: 86px; }
.sensor-metric .sm-v { font-family: var(--font-mono); font-size: 15px; font-weight: 620; }
.sensor-metric .sm-k { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }

/* ============================ NOTIFICATIONS ============================ */
.notif-page { width: 100%; text-align: left; cursor: pointer; border-radius: var(--radius-sm); }
.notif-page .notif { padding: 13px 14px; }
.notif-page:hover .notif { background: var(--surface-secondary); }
.notif-page:focus-visible { outline-offset: 2px; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1280px) {
  .dash-grid .span-3 { grid-column: span 6; }
  .dash-grid .span-4 { grid-column: span 6; }
  .dash-grid .span-5 { grid-column: span 12; }
  .dash-grid .span-7 { grid-column: span 12; }
  .dash-grid .span-8 { grid-column: span 12; }
  .kpi-row { grid-template-columns: repeat(3, 1fr); }
  .dash-grid > .risk-block { grid-column: span 12; }
  .ld-layout, .create-layout { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .app-shell { grid-template-columns: var(--sidebar-w-compact) 1fr; }
  .sidebar .sb-label, .sidebar .sb-group, .sidebar .wordmark, .sidebar .sb-ai, .sidebar .sb-count, .sidebar .sb-biz .b-meta { display: none; }
  .sb-item { justify-content: center; padding: 0; }
  .sb-item.active::before { left: 0; }
  .sb-biz { justify-content: center; }
  .sb-foot { padding: 12px 8px; }
  .sb-logo { justify-content: center; padding: 18px 8px 14px; }
  .mkt-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-right { display: none; }
  .feature-grid, .how-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  :root { --content-x: 16px; --content-y: 18px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .dash-grid > * { grid-column: span 12 !important; }
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .mobile-nav { display: flex !important; }
  .tb-search { width: 44px; padding: 0; justify-content: center; }
  .tb-search input, .tb-search kbd { display: none; }
  .tb-search:focus-within { width: 200px; }
  .land-nav { padding: 0 20px; }
  .land-nav .links { display: none; }
  .land-section, .land-hero { padding-left: 20px; padding-right: 20px; }
  .land-foot { flex-direction: column; gap: 16px; }
  .feature-grid, .how-grid { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .page-head { flex-direction: column; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; }
}
@media (min-width: 821px) { .mobile-nav { display: none !important; } }

.mobile-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: rgba(10,12,17,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border); display: flex; justify-content: space-around; padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}
.mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; color: var(--text-muted); padding: 4px 10px; border-radius: 8px; }
.mobile-nav a.active { color: var(--primary-strong); }
.content { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
@media (min-width: 821px) { .content { padding-bottom: 60px; } }
