/* WonderCalOS Landing Page Styles */

:root {
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --surface: #1e293b;
  --surface-2: #334155;
  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.15);
  --teal: #14b8a6;
  --teal-dim: rgba(20, 184, 166, 0.15);
  --indigo: #818cf8;
  --indigo-dim: rgba(129, 140, 248, 0.15);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: #334155;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── HERO ─── */
.hero {
  padding: 100px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}

.headline-accent {
  color: var(--amber);
  display: inline-block;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-dim);
  font-weight: 500;
}

.trust-sep { color: var(--surface-2); }

/* ─── CALENDAR WIDGET ─── */
.calendar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.cw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cw-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.cw-participants {
  font-size: 0.75rem;
  color: var(--text-dim);
  background: var(--surface-2);
  padding: 3px 10px;
  border-radius: 100px;
}

.cw-days, .cw-row {
  display: grid;
  grid-template-columns: 44px repeat(5, 1fr);
  gap: 4px;
  align-items: center;
  margin-bottom: 4px;
}

.cw-day-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cw-time {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-align: right;
  padding-right: 8px;
  font-weight: 500;
}

.cw-slot {
  height: 28px;
  border-radius: 6px;
  transition: all 0.2s;
}

.slot-free {
  background: var(--teal-dim);
  border: 1px solid rgba(20, 184, 166, 0.3);
  animation: slot-glow 3s ease-in-out infinite;
}

@keyframes slot-glow {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 8px rgba(20, 184, 166, 0.3); }
}

.slot-busy {
  background: rgba(100, 116, 139, 0.3);
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.slot-lunch {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.cw-found {
  margin-top: 20px;
  background: var(--amber-dim);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 14px 16px;
}

.found-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.found-slot {
  font-size: 0.8rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.found-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.cw-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.leg {
  font-size: 0.7rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.leg::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.leg.busy::before { background: rgba(100,116,139,0.4); }
.leg.free::before { background: var(--teal-dim); border: 1px solid rgba(20,184,166,0.3); }
.leg.lunch::before { background: rgba(245,158,11,0.2); }
.leg.partial::before { background: rgba(129,140,248,0.2); }

/* ─── HERO STATS ─── */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.stat {
  background: var(--surface);
  padding: 28px 32px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ─── PROBLEM ─── */
.problem {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 40px;
}

.problem-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.problem-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.problem-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 700px;
  margin-bottom: 24px;
}

.problem-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.problem-thread {
  max-width: 560px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px;
}

.thread-line {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.thread-line:last-child { border-bottom: none; }

.msg {
  border-radius: 8px;
  padding: 10px 14px;
}

.msg-red {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.msg-from {
  font-size: 0.72rem;
  font-weight: 600;
  color: #ef4444;
  margin-bottom: 4px;
}

.msg-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.conflict-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.conflict-icon::after {
  content: '';
  width: 8px;
  height: 2px;
  background: #ef4444;
  border-radius: 1px;
}

.conflict-text {
  font-size: 0.82rem;
  color: #ef4444;
  font-weight: 500;
}

.problem-punch {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
  font-style: italic;
  max-width: 560px;
}

/* ─── FEATURES ─── */
.features {
  padding: 100px 40px;
  background: var(--bg);
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.features-header {
  margin-bottom: 80px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.features-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 500px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
}

.feature-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.feature-row-reverse .feature-card { order: 2; }
.feature-row-reverse .feature-visual { order: 1; }

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-icon {
  margin-bottom: 20px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  font-size: 0.875rem;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.feature-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 600;
}

/* Feature visuals */
.fv-sorcery {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.sorcery-participants {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.p-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.p-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.p-name {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 60px;
  font-weight: 500;
}

.p-slots {
  display: flex;
  gap: 4px;
  flex: 1;
}

.p-slot {
  flex: 1;
  height: 24px;
  border-radius: 4px;
}

.p-slot.busy { background: rgba(100,116,139,0.3); }
.p-slot.free { background: var(--teal-dim); border: 1px solid rgba(20,184,166,0.3); }

.sorcery-merge {
  background: var(--amber-dim);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 10px;
  padding: 16px;
}

.merge-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.merge-slots {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.m-slot {
  flex: 1;
  height: 20px;
  border-radius: 4px;
}

.m-slot.empty { background: rgba(100,116,139,0.1); }
.m-slot.hit {
  background: var(--amber-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hit-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.merge-result {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
}

/* Sync visual */
.fv-sync {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.sync-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sync-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.sync-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-dim);
  padding: 3px 10px;
  border-radius: 100px;
}

.sync-cal { display: flex; flex-direction: column; gap: 4px; }

.sc-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sc-time {
  font-size: 0.72rem;
  color: var(--text-dim);
  width: 36px;
  font-weight: 500;
  text-align: right;
}

.sc-block {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  flex: 1;
}

.sc-focus { background: rgba(239,68,68,0.15); color: #ef4444; }
.sc-event { background: var(--surface-2); color: var(--text-muted); }
.sc-lunch { background: rgba(245,158,11,0.12); color: var(--amber); }
.sc-available { background: var(--teal-dim); color: var(--teal); }
.sc-moveable { background: var(--indigo-dim); color: var(--indigo); }

.sync-badges {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.sb-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* AI chat visual */
.fv-ai {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.ai-chat {
  display: flex;
  flex-direction: column;
  height: 280px;
}

.ai-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.ai-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ai-green { background: #ef4444; }
.ai-yellow { background: #f59e0b; }
.ai-red { background: #22c55e; }

.ai-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-left: 4px;
}

.ai-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.ai-msg {
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 90%;
}

.ai-user {
  background: rgba(129,140,248,0.15);
  border: 1px solid rgba(129,140,248,0.2);
  color: var(--text);
  align-self: flex-end;
}

.ai-assistant {
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.ai-done {
  background: var(--teal-dim);
  border: 1px solid rgba(20,184,166,0.2);
  color: var(--teal);
}

/* ─── ORIGIN ─── */
.origin {
  padding: 100px 40px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.origin-inner {
  max-width: 800px;
  margin: 0 auto;
}

.origin-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.origin-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 32px;
}

.origin-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.origin-body p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.origin-quote {
  border-left: 3px solid var(--amber);
  padding-left: 24px;
  margin-bottom: 48px;
}

.origin-quote p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  font-style: italic;
}

.origin-founders {
  display: flex;
  gap: 32px;
}

.founder {
  display: flex;
  align-items: center;
  gap: 14px;
}

.founder-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.tevye { background: var(--amber-dim); color: var(--amber); }
.jessica { background: var(--indigo-dim); color: var(--indigo); }

.founder-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 2px;
}

.founder-title {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ─── HOW IT WORKS ─── */
.how-it-works {
  padding: 100px 40px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.hiw-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.hiw-header {
  margin-bottom: 60px;
}

.hiw-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
}

.hiw-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 60px;
}

.hiw-step {
  display: grid;
  grid-template-columns: 60px 1fr 200px;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.hiw-step:last-child { border-bottom: none; }

.step-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.step-visual {
  display: flex;
  justify-content: flex-end;
}

.step-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-avatars {
  display: flex;
  gap: -4px;
}

.av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: -8px;
}

.av:first-child { margin-left: 0; }

.av-more {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-left: -8px;
}

.step-slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.ss-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.ss-radio {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.ss-opt:first-child .ss-radio {
  border-color: var(--amber);
  background: var(--amber);
}

.ss-opt:first-child .ss-radio::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bg);
  margin: 2px;
}

.ss-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.ss-part {
  color: var(--text-dim);
  font-size: 0.72rem;
  margin-left: 6px;
}

.step-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--teal-dim);
  border: 1px solid rgba(20,184,166,0.2);
  border-radius: 10px;
}

.confirm-text {
  font-size: 0.82rem;
  color: var(--teal);
  font-weight: 500;
}

.hiw-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.hiw-stat {
  background: var(--surface);
  padding: 28px 32px;
  text-align: center;
}

.hs-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 8px;
}

.hs-label {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ─── CLOSING ─── */
.closing {
  padding: 100px 40px 120px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 28px;
  color: var(--text);
}

.closing-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 60px;
}

.closing-note {
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.closing-note p {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero { padding: 60px 24px 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-stats { grid-template-columns: 1fr; }

  .problem { padding: 60px 24px; }
  .problem-thread { display: none; }

  .features { padding: 60px 24px; }
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row-reverse .feature-card { order: 1; }
  .feature-row-reverse .feature-visual { order: 2; }

  .origin { padding: 60px 24px; }
  .origin-founders { flex-direction: column; gap: 20px; }

  .how-it-works { padding: 60px 24px; }
  .hiw-step { grid-template-columns: 40px 1fr; }
  .step-visual { display: none; }
  .hiw-stats { grid-template-columns: 1fr; }

  .closing { padding: 60px 24px 80px; }
}

/* ─── DASHBOARD ─── */
.dash-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.dash-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.dash-logo-mark {
  width: 26px;
  height: 26px;
  background: var(--amber);
  border-radius: 6px;
  flex-shrink: 0;
}

.dash-nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.15s;
}

.nav-link:hover { background: var(--surface); color: var(--text); }
.nav-link.active { background: var(--amber-dim); color: var(--amber); }

/* Main */
.dash-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

.dash-header {
  margin-bottom: 40px;
}

.dash-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.dash-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.teal-icon { background: var(--teal-dim); color: var(--teal); }
.amber-icon { background: var(--amber-dim); color: var(--amber); }
.indigo-icon { background: var(--indigo-dim); color: var(--indigo); }
.red-icon { background: rgba(239,68,68,0.1); color: #ef4444; }

.kpi-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin: 2px 0;
}

.kpi-trend {
  font-size: 0.78rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kpi-trend.up { color: var(--teal); }
.kpi-trend.down { color: #ef4444; }
.kpi-trend.neutral { color: var(--text-dim); }

.trend-arrow { font-size: 0.9rem; }

/* Sparkline */
.kpi-spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.spark-bar {
  flex: 1;
  background: var(--surface-2);
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: background 0.2s;
}

.spark-bar.active { background: var(--amber); }

/* Charts Grid */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.chart-card.wide {
  grid-column: span 2;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.chart-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 4px;
}

.chart-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.chart-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.chart-badge { background: var(--surface-2); color: var(--text-muted); }
.chart-badge.up { background: var(--teal-dim); color: var(--teal); }
.chart-badge.neutral { background: var(--surface-2); color: var(--text-dim); }

/* Bar Chart */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 130px;
}

.bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
}

.bar-wrap {
  width: 100%;
  height: var(--bar-h, 30%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: 1;
}

.bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  position: relative;
  min-height: 4px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transition: opacity 0.2s;
}

.bar-wrap:hover .bar { opacity: 0.8; }

.teal-bar { background: var(--teal); }
.amber-bar { background: var(--amber); }
.indigo-bar { background: var(--indigo); }
.red-bar { background: rgba(239,68,68,0.7); }

.bar-wrap.highlight .bar { box-shadow: 0 0 0 2px rgba(245,158,11,0.4); }

.bar-val {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text);
  padding-top: 4px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
}

.bar-wrap:hover .bar-val,
.bar-wrap.highlight .bar-val { opacity: 1; }

.bar-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-top: 6px;
}

/* Area Chart */
.area-chart {
  height: 130px;
  display: flex;
  flex-direction: column;
}

.area-svg {
  width: 100%;
  flex: 1;
}

.area-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-dim);
  padding-top: 6px;
}

/* Channels */
.channels-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 32px;
}

.channels-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
}

.channel-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.channel-row:last-child { border-bottom: none; }

.channel-rank {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-dim);
}

.channel-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.channel-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.channel-bar-wrap {
  background: var(--surface-2);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
}

.channel-bar {
  height: 100%;
  background: var(--amber);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.channel-bar.teal { background: var(--teal); }
.channel-bar.amber { background: var(--amber); }
.channel-bar.indigo { background: var(--indigo); }
.channel-bar.dim { background: var(--border); }

.channel-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.channel-pct {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.channel-users {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-grid { grid-template-columns: 1fr 1fr; }
  .chart-card.wide { grid-column: span 2; }
}

@media (max-width: 768px) {
  .dash-nav-inner { padding: 0 20px; }
  .dash-main { padding: 32px 20px 60px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .charts-grid { grid-template-columns: 1fr; }
  .chart-card.wide { grid-column: span 1; }
  .channel-row { grid-template-columns: 32px 1fr auto; gap: 12px; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .dash-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .cw-days, .cw-row { grid-template-columns: 36px repeat(5, 1fr); }
  .cw-time { font-size: 0.6rem; }
  .cw-slot { height: 22px; }
}
