/* ============================================================
   Kovya Desk Demo — Design System
   Premium SaaS Dashboard · Med Spa Aesthetic
   ============================================================ */

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

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-primary: #0a1628;
  --bg-card: #111d33;
  --bg-elevated: #1a2942;
  --bg-hover: #1f3050;
  --bg-sidebar: #070f1d;
  --bg-input: #0d1829;

  /* Accent Colors */
  --gold: #c9a96e;
  --gold-light: #dfc393;
  --gold-dark: #a8884d;
  --blush: #e8b4b8;
  --blush-light: #f0cdd0;
  --ivory: #f5f0e8;

  /* Semantic Colors */
  --success: #6ecf97;
  --success-bg: rgba(110, 207, 151, 0.12);
  --warning: #e8c567;
  --warning-bg: rgba(232, 197, 103, 0.12);
  --danger: #cf6e6e;
  --danger-bg: rgba(207, 110, 110, 0.12);
  --info: #6eb4cf;
  --info-bg: rgba(110, 180, 207, 0.12);

  /* Text */
  --text-primary: #f5f0e8;
  --text-secondary: #b8b0a0;
  --text-muted: #7a7268;
  --text-inverse: #0a1628;

  /* Borders */
  --border: #1e2d45;
  --border-light: #263a56;
  --border-gold: rgba(201, 169, 110, 0.3);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(201, 169, 110, 0.15);

  /* Layout */
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --topbar-height: 60px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow: hidden;
  height: 100vh;
}

/* ── Layout Shell ─────────────────────────────────────── */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: var(--topbar-height) 1fr;
  grid-template-areas:
    "sidebar topbar"
    "sidebar main";
  height: 100vh;
  width: 100vw;
}

/* ── Sidebar ──────────────────────────────────────────── */
.sidebar {
  grid-area: sidebar;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 100;
  transition: transform var(--transition-slow);
}

.sidebar-brand {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--topbar-height);
}

.sidebar-brand .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--text-inverse);
  flex-shrink: 0;
}

.sidebar-brand .brand-text {
  display: flex;
  flex-direction: column;
}

.sidebar-brand .brand-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ivory);
  letter-spacing: 0.5px;
}

.sidebar-brand .brand-tag {
  font-size: 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.sidebar-nav {
  padding: 16px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  user-select: none;
  position: relative;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(201, 169, 110, 0.1);
  color: var(--gold-light);
  border-color: var(--border-gold);
}

.nav-item .nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.nav-item .nav-badge {
  margin-left: auto;
  background: var(--gold);
  color: var(--text-inverse);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: none;
  text-align: center;
}

.sidebar-cta.cta-whatsapp {
  background: #25d366;
  color: #fff;
}

.sidebar-cta.cta-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.sidebar-cta.cta-reserve {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--text-inverse);
}

.sidebar-cta.cta-reserve:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.demo-badge {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-align: center;
  padding: 8px 0 4px;
  font-weight: 600;
}

/* ── Top Bar ──────────────────────────────────────────── */
.topbar {
  grid-area: topbar;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 90;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
}

.topbar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.demo-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid var(--border-gold);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.topbar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blush), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-inverse);
  border: 2px solid var(--border-gold);
}

/* ── Main Content ─────────────────────────────────────── */
.main-content {
  grid-area: main;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px;
  scroll-behavior: smooth;
}

.screen {
  display: none;
  animation: fadeIn 0.35s ease;
}

.screen.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Screen Header ────────────────────────────────────── */
.screen-header {
  margin-bottom: 24px;
}

.screen-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.screen-header p {
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* ── KPI Cards ────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blush));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.kpi-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.kpi-card:hover::before {
  opacity: 1;
}

.kpi-card .kpi-icon {
  font-size: 20px;
  margin-bottom: 10px;
}

.kpi-card .kpi-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.kpi-card .kpi-value.gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.kpi-card .kpi-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-card .kpi-change {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kpi-card .kpi-change.up { color: var(--success); }
.kpi-card .kpi-change.down { color: var(--danger); }

/* ── Cards ────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 20px;
}

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

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Data Tables ──────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: var(--bg-hover);
}

.data-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}

.data-table tbody td:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

/* ── Badges ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-gold { background: rgba(201, 169, 110, 0.15); color: var(--gold); }
.badge-blush { background: rgba(232, 180, 184, 0.15); color: var(--blush); }

/* ── Conversation / Inbox ─────────────────────────────── */
.inbox-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: calc(100vh - var(--topbar-height) - 130px);
  min-height: 500px;
}

.inbox-list {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.inbox-list-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 2;
}

.conversation-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.conversation-item:hover,
.conversation-item.active {
  background: var(--bg-hover);
}

.conversation-item.active {
  border-left: 3px solid var(--gold);
}

.convo-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  color: var(--text-inverse);
}

.convo-content {
  flex: 1;
  min-width: 0;
}

.convo-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.convo-preview {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.convo-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.convo-time {
  font-size: 11px;
  color: var(--text-muted);
}

.convo-channel {
  font-size: 14px;
}

.inbox-detail {
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
}

.inbox-detail-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
}

.detail-name {
  font-size: 15px;
  font-weight: 600;
}

.detail-channel {
  font-size: 12px;
  color: var(--text-muted);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 13.5px;
  line-height: 1.5;
  position: relative;
}

.chat-bubble.client {
  align-self: flex-start;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.chat-bubble.ai {
  align-self: flex-end;
  background: rgba(201, 169, 110, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  border-bottom-right-radius: 4px;
}

.chat-bubble .bubble-sender {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
  display: block;
}

.chat-bubble.client .bubble-sender { color: var(--text-muted); }
.chat-bubble.ai .bubble-sender { color: var(--gold); }

.chat-bubble .bubble-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 6px;
  display: block;
  text-align: right;
}

/* ── Pipeline / Kanban ────────────────────────────────── */
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.pipeline-column {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.pipeline-column-header {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pipeline-count {
  background: var(--bg-elevated);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  color: var(--text-muted);
}

.pipeline-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 8px;
  transition: all var(--transition-fast);
  cursor: default;
}

.pipeline-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-1px);
}

.pipeline-card .pc-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.pipeline-card .pc-detail {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.pipeline-card .pc-score {
  font-size: 11px;
  font-weight: 600;
}

/* ── Timeline ─────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 22px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg-primary);
}

.timeline-item .tl-time {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-item .tl-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.timeline-item .tl-content strong {
  color: var(--text-primary);
}

/* ── Sequence Cards ───────────────────────────────────── */
.sequence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.sequence-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition-base);
}

.sequence-card:hover {
  border-color: var(--border-gold);
}

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

.seq-name {
  font-size: 14px;
  font-weight: 600;
}

.seq-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.seq-stat {
  display: flex;
  flex-direction: column;
}

.seq-stat .stat-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.seq-stat .stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Message Preview ──────────────────────────────────── */
.msg-preview {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
  font-style: italic;
}

/* ── Progress Bar ─────────────────────────────────────── */
.progress-bar {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--blush));
  transition: width 1s ease;
}

/* ── Two-Column Layout ────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* ── Revenue Report Specifics ─────────────────────────── */
.revenue-hero {
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.08), rgba(232, 180, 184, 0.05));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.revenue-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--blush), var(--gold), var(--gold-dark));
}

.revenue-hero .rh-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.revenue-hero .rh-value {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 8px;
}

.revenue-hero .rh-sub {
  font-size: 14px;
  color: var(--text-secondary);
}

.revenue-hero .rh-roi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  background: var(--success-bg);
  color: var(--success);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

/* Bar Chart (CSS-only) */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 180px;
  padding-top: 20px;
}

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

.bar {
  width: 100%;
  max-width: 60px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  transition: height 1s ease;
  position: relative;
}

.bar:hover {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
}

.bar-label {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

.bar-value {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
}

/* ── Donut Chart (CSS-only) ───────────────────────────── */
.donut-chart {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  position: relative;
  margin: 0 auto;
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-center .dc-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
}

.donut-center .dc-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Disclaimer Banner ────────────────────────────────── */
.disclaimer-banner {
  background: rgba(201, 169, 110, 0.06);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ── Mobile Overlay ───────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1200px) {
  .pipeline {
    grid-template-columns: repeat(3, 1fr);
  }
  .inbox-layout {
    grid-template-columns: 280px 1fr;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "topbar"
      "main";
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    transform: translateX(-100%);
    z-index: 200;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.active {
    display: block;
  }

  .mobile-toggle {
    display: block;
  }

  .main-content {
    padding: 16px;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pipeline {
    grid-template-columns: 1fr;
  }

  .inbox-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .inbox-detail {
    display: none;
  }

  .two-col, .three-col {
    grid-template-columns: 1fr;
  }

  .revenue-hero .rh-value {
    font-size: 36px;
  }

  .bar-chart {
    height: 140px;
  }

  .sequence-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .kpi-card .kpi-value {
    font-size: 24px;
  }

  .topbar {
    padding: 0 14px;
  }

  .demo-indicator span {
    display: none;
  }
}

/* ── Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}

/* ── Utility ──────────────────────────────────────────── */
.text-gold { color: var(--gold); }
.text-blush { color: var(--blush); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-info { color: var(--info); }
.text-muted { color: var(--text-muted); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mono { font-family: 'JetBrains Mono', monospace; }
