/* ═══════════════════════════════════════════════════
   PROJECT SOVEREIGN — DESIGN SYSTEM v3
   Mobile-first · Responsive · Production-ready
   ═══════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg:         #07080f;
  --bg2:        #0b0d1a;
  --bg3:        #0f1120;
  --surface:    #141828;
  --surface2:   #1a1e30;
  --surface3:   #202438;
  --border:     rgba(255,255,255,0.06);
  --border2:    rgba(255,255,255,0.11);
  --border3:    rgba(255,255,255,0.18);
  --gold:       #c9a84c;
  --gold2:      #e8c96a;
  --gold3:      #fde68a;
  --glow:       rgba(201,168,76,0.20);
  --gold-dim:   rgba(201,168,76,0.10);
  --teal:       #2dd4bf;
  --teal-dim:   rgba(45,212,191,0.09);
  --blue:       #60a5fa;
  --blue-dim:   rgba(96,165,250,0.09);
  --green:      #4ade80;
  --green-dim:  rgba(74,222,128,0.09);
  --red:        #f87171;
  --red-dim:    rgba(248,113,113,0.09);
  --purple:     #a78bfa;
  --purple-dim: rgba(167,139,250,0.09);
  --amber:      #fbbf24;
  --amber-dim:  rgba(251,191,36,0.09);
  --text:       #eae8f4;
  --text2:      #9490aa;
  --text3:      #4e4c5e;
  --font:       'Inter', system-ui, -apple-system, sans-serif;
  --mono:       'JetBrains Mono', 'Fira Code', monospace;
  --nav-h:      56px;
  --r:          8px;
  --r2:         12px;
  --r3:         16px;
  --sidebar-w:  220px;
  --transition: 0.18s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 14px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
  padding-top: var(--nav-h);
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold2); }

/* ── SCROLLBARS ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* ═══════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h); display: flex; align-items: center;
  padding: 0 16px; gap: 8px;
  background: rgba(7,8,15,0.88);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
.nav-sidebar-btn {
  display: none; width: 34px; height: 34px; border-radius: var(--r);
  background: none; border: 1px solid var(--border2); color: var(--text2);
  cursor: pointer; align-items: center; justify-content: center;
  transition: all var(--transition); flex-shrink: 0;
}
.nav-sidebar-btn:hover { background: var(--surface); color: var(--text); }
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; margin-right: 12px; flex-shrink: 0;
}
.nav-logo-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--gold), #6b4a10);
  display: flex; align-items: center; justify-content: center; color: #000;
}
.nav-logo-text { font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .08em; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; overflow-x: auto; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-link {
  padding: 5px 10px; border-radius: 6px; font-size: 13px; font-weight: 500;
  color: var(--text2); white-space: nowrap; transition: all var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--gold); background: var(--gold-dim); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
.nav-live { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text3); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
.live-label { display: none; }
.nav-user-btn {
  width: 28px; height: 28px; border-radius: 50%; background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,.4); color: var(--gold); font-size: 12px;
  font-weight: 700; cursor: pointer; transition: all var(--transition);
}
.nav-user-btn:hover { background: rgba(201,168,76,.2); }
.nav-ham {
  display: none; flex-direction: column; gap: 4px; background: none;
  border: none; cursor: pointer; padding: 6px; flex-shrink: 0;
}
.nav-ham span { display: block; width: 18px; height: 1.5px; background: var(--text2); border-radius: 2px; transition: all .22s; }
.nav-ham.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-ham.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-ham.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 199;
  background: var(--bg2); border-bottom: 1px solid var(--border2);
  transform: translateY(-100%); opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  pointer-events: none;
}
.nav-drawer.open { transform: none; opacity: 1; pointer-events: all; }
.nav-backdrop {
  position: fixed; inset: 0; z-index: 198; background: rgba(0,0,0,.6);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.nav-backdrop.show { opacity: 1; pointer-events: all; }
.mob-links { display: flex; flex-direction: column; padding: 8px 12px; gap: 2px; }
.mob-link {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px;
  border-radius: var(--r); color: var(--text2); font-size: 14px; font-weight: 500;
  transition: all var(--transition);
}
.mob-link:hover { background: var(--surface); color: var(--text); }
.mob-link.active { background: var(--gold-dim); color: var(--gold); }
.mob-icon { font-size: 14px; width: 20px; text-align: center; flex-shrink: 0; }

/* ── RESPONSIVE NAV BREAKPOINTS ── */
@media (max-width: 1100px) {
  .nav-links .nav-link:nth-child(n+6) { display: none; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-ham { display: flex; }
  .live-label { display: none; }
}
@media (max-width: 480px) {
  .nav-cta { display: none; }
  .nav-logo-text { display: none; }
}

/* ═══════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--r); font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; font-family: var(--font); transition: all var(--transition);
  text-decoration: none; white-space: nowrap; line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--gold); color: #000; }
.btn-primary:hover { background: var(--gold2); color: #000; box-shadow: 0 4px 20px var(--glow); }
.btn-outline { background: transparent; color: var(--text2); border: 1px solid var(--border2); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.btn-ghost { background: transparent; color: var(--text3); border: none; }
.btn-ghost:hover { color: var(--text2); background: var(--surface2); }
.btn-danger { background: var(--red-dim); color: var(--red); border: 1px solid rgba(248,113,113,.2); }
.btn-danger:hover { background: rgba(248,113,113,.18); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-xs { padding: 4px 9px; font-size: 11px; }
.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border2); color: var(--text2); }
.btn-icon:hover { background: var(--surface2); color: var(--text); border-color: var(--border3); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }
.w-full { width: 100%; }

/* ═══════════════════════════════════════════════════
   INPUTS
   ═══════════════════════════════════════════════════ */
input, textarea, select {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--r); color: var(--text); font-family: var(--font);
  font-size: 14px; padding: 10px 14px; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%; -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}
input::placeholder, textarea::placeholder { color: var(--text3); }
select option { background: var(--surface2); }
label { font-size: 12px; font-weight: 500; color: var(--text2); display: block; margin-bottom: 5px; }
.field { margin-bottom: 16px; }
textarea { resize: vertical; min-height: 80px; line-height: 1.6; }

/* ═══════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════ */
.card {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--r2); padding: 20px;
}
.card-hover { transition: all var(--transition); cursor: pointer; }
.card-hover:hover { border-color: var(--border3); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.3); }

/* ═══════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.badge-gold   { background: var(--gold-dim);   color: var(--gold);   border: 1px solid rgba(201,168,76,.22); }
.badge-green  { background: var(--green-dim);  color: var(--green);  border: 1px solid rgba(74,222,128,.22); }
.badge-red    { background: var(--red-dim);    color: var(--red);    border: 1px solid rgba(248,113,113,.22); }
.badge-blue   { background: var(--blue-dim);   color: var(--blue);   border: 1px solid rgba(96,165,250,.22); }
.badge-purple { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(167,139,250,.22); }
.badge-teal   { background: var(--teal-dim);   color: var(--teal);   border: 1px solid rgba(45,212,191,.22); }
.badge-amber  { background: var(--amber-dim);  color: var(--amber);  border: 1px solid rgba(251,191,36,.22); }
.badge-ghost  { background: var(--surface2);   color: var(--text2);  border: 1px solid var(--border2); }

/* ═══════════════════════════════════════════════════
   STATUS DOTS
   ═══════════════════════════════════════════════════ */
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-green  { background: var(--green);  box-shadow: 0 0 7px var(--green); }
.dot-gold   { background: var(--gold);   box-shadow: 0 0 7px var(--gold); }
.dot-red    { background: var(--red);    box-shadow: 0 0 7px var(--red); }
.dot-blue   { background: var(--blue);   box-shadow: 0 0 7px var(--blue); }
.dot-teal   { background: var(--teal);   box-shadow: 0 0 7px var(--teal); }
.dot-gray   { background: var(--text3); }

/* ═══════════════════════════════════════════════════
   APP SHELL (sidebar layout)
   ═══════════════════════════════════════════════════ */
.app-shell {
  display: flex; height: calc(100vh - var(--nav-h));
  overflow: hidden; position: relative;
}
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; background: var(--bg2);
  border-right: 1px solid var(--border); overflow-y: auto;
  transition: transform var(--transition), width var(--transition);
  display: flex; flex-direction: column;
}
.sidebar::-webkit-scrollbar { width: 3px; }
.app-main { flex: 1; overflow-y: auto; overflow-x: hidden; min-width: 0; }

/* Sidebar items */
.sb-label { padding: 10px 14px 3px; font-size: 9px; color: var(--text3); letter-spacing: .16em; text-transform: uppercase; }
.sb-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 14px;
  background: none; border: none; cursor: pointer; width: 100%;
  text-align: left; position: relative; color: var(--text2);
  font-family: var(--font); font-size: 13px; transition: background var(--transition);
  text-decoration: none;
}
.sb-item:hover { background: var(--surface); color: var(--text); }
.sb-item.active { background: var(--surface2); color: var(--text); }
.sb-item.active::before { content:''; position:absolute; left:0; top:0; bottom:0; width:2px; background:var(--gold); border-radius:0 1px 1px 0; }
.sb-av { width:26px; height:26px; border-radius:6px; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700; font-family:var(--mono); flex-shrink:0; }
.sb-name { font-size:12px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex:1; color:var(--text); }
.sb-role { font-size:10px; color:var(--text3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sb-dot  { width:5px; height:5px; border-radius:50%; flex-shrink:0; }

/* Responsive sidebar */
@media (max-width: 768px) {
  .sidebar {
    position: fixed; top: var(--nav-h); left: 0; bottom: 0; z-index: 100;
    transform: translateX(-100%); width: min(var(--sidebar-w), 80vw) !important;
    box-shadow: none;
  }
  .sidebar.open {
    transform: none;
    box-shadow: 8px 0 40px rgba(0,0,0,.6);
  }
  .nav-sidebar-btn { display: flex !important; }
}

/* ═══════════════════════════════════════════════════
   CHART CARDS
   ═══════════════════════════════════════════════════ */
.chart-card { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--r2); padding: 18px; }
.chart-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.chart-sub   { font-size: 11px; color: var(--text3); margin-bottom: 14px; }

/* ═══════════════════════════════════════════════════
   DATA TABLE
   ═══════════════════════════════════════════════════ */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { padding: 9px 12px; text-align: left; font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--border2); font-weight: 600; white-space: nowrap; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border: none; }
.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover td { background: var(--surface2); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ═══════════════════════════════════════════════════
   STAT CARDS
   ═══════════════════════════════════════════════════ */
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r2); padding: 16px; }
.stat-l { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 7px; }
.stat-v { font-size: 26px; font-weight: 700; font-family: var(--mono); line-height: 1; }
.stat-s { font-size: 11px; color: var(--text3); margin-top: 5px; }
.delta-up   { color: var(--green); font-size: 12px; font-weight: 600; margin-top: 4px; }
.delta-down { color: var(--red);   font-size: 12px; font-weight: 600; margin-top: 4px; }

/* ═══════════════════════════════════════════════════
   GRID SYSTEM
   ═══════════════════════════════════════════════════ */
.g2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.g5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 1200px) { .g5 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  { .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════
   PAGE LAYOUTS
   ═══════════════════════════════════════════════════ */
.page-inner { padding: 24px; max-width: 1400px; margin: 0 auto; }
.page-hdr { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.page-hdr h1 { font-size: clamp(18px, 2.5vw, 22px); font-weight: 700; margin-bottom: 3px; }
.page-hdr p  { font-size: 12px; color: var(--text3); }
.page-hdr-r  { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 480px) { .page-inner { padding: 16px; } }

/* ═══════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 400;
  display: none; align-items: center; justify-content: center;
  padding: 16px; backdrop-filter: blur(4px);
}
.modal-overlay[style*="flex"] { display: flex; animation: fadeIn .15s ease; }
.modal-box {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--r3); width: 100%; max-width: 640px;
  max-height: calc(100vh - 40px); overflow-y: auto;
  animation: fadeUp .2s ease;
}
.modal-head { padding: 20px 24px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-head h2 { font-size: 17px; font-weight: 700; }
.modal-body { padding: 20px 24px; }
.modal-foot { padding: 14px 24px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 480px) {
  .modal-head, .modal-body, .modal-foot { padding-left: 16px; padding-right: 16px; }
  .modal-foot { justify-content: stretch; }
  .modal-foot .btn { flex: 1; }
}

/* ═══════════════════════════════════════════════════
   CHAT / MESSAGES
   ═══════════════════════════════════════════════════ */
.msg { display: flex; gap: 10px; }
.msg.user { flex-direction: row-reverse; }
.msg-av { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; font-family: var(--mono); }
.bubble { max-width: 80%; padding: 11px 14px; border-radius: 10px; font-size: 13px; line-height: 1.68; }
.user .bubble { background: var(--gold-dim); border: 1px solid rgba(201,168,76,.2); border-radius: 10px 3px 10px 10px; }
.agent-bubble { background: var(--surface); border: 1px solid var(--border2); border-radius: 3px 10px 10px 10px; }
.msg-meta { font-size: 10px; color: var(--text3); margin-bottom: 5px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.meta-seat { font-weight: 700; font-family: var(--mono); }
.bubble h3 { font-size: 13px; font-weight: 600; color: var(--gold2); margin: 10px 0 4px; }
.bubble strong { color: var(--teal); }
.bubble code { font-family: var(--mono); font-size: 11px; background: rgba(255,255,255,.07); padding: 1px 5px; border-radius: 3px; }
.bubble hr { border: none; border-top: 1px solid var(--border2); margin: 10px 0; }
.bubble ul { padding-left: 18px; margin: 5px 0; }
.bubble li { margin: 3px 0; }
.cursor { display: inline-block; width: 2px; height: 13px; background: var(--teal); margin-left: 1px; animation: blink .7s infinite; vertical-align: text-bottom; }
.thinking { display: flex; gap: 4px; padding: 2px 0; }
.thinking span { width: 5px; height: 5px; border-radius: 50%; background: var(--text3); animation: dotPulse 1.3s infinite; }
.thinking span:nth-child(2) { animation-delay: .2s; }
.thinking span:nth-child(3) { animation-delay: .4s; }

/* ═══════════════════════════════════════════════════
   PROGRESS
   ═══════════════════════════════════════════════════ */
.progress { height: 3px; background: var(--surface2); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 2px; transition: width .5s ease; background: var(--gold); }

/* ═══════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════ */
.mono { font-family: var(--mono); }
.text-gold   { color: var(--gold); }
.text-teal   { color: var(--teal); }
.text-muted  { color: var(--text2); }
.text-faint  { color: var(--text3); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.truncate    { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-gap8   { display: flex; align-items: center; gap: 8px; }
.flex-wrap   { flex-wrap: wrap; }
hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.label { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); display: block; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.15; }

/* ═══════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════ */
@keyframes fadeUp   { from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none} }
@keyframes fadeIn   { from{opacity:0}to{opacity:1} }
@keyframes pulse    { 0%,100%{opacity:1}50%{opacity:.4} }
@keyframes blink    { 0%,50%{opacity:1}51%,100%{opacity:0} }
@keyframes spin     { to{transform:rotate(360deg)} }
@keyframes dotPulse { 0%,80%,100%{opacity:.3;transform:scale(.75)}40%{opacity:1;transform:scale(1)} }
@keyframes float    { 0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)} }

.anim-1 { animation: fadeUp .5s ease both; }
.anim-2 { animation: fadeUp .5s .1s ease both; }
.anim-3 { animation: fadeUp .5s .2s ease both; }
.anim-4 { animation: fadeUp .5s .3s ease both; }
.spin   { animation: spin .7s linear infinite; }

/* ═══════════════════════════════════════════════════
   LOADING STATES
   ═══════════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, var(--surface2) 25%, var(--surface3) 50%, var(--surface2) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
  border-radius: var(--r);
}
@keyframes shimmer { from{background-position:200% 0}to{background-position:-200% 0} }
.loader { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border2); border-top-color: var(--gold); animation: spin .7s linear infinite; }

/* ═══════════════════════════════════════════════════
   KANBAN
   ═══════════════════════════════════════════════════ */
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; min-height: 400px; }
.kanban::-webkit-scrollbar { height: 4px; }
.kanban-col { min-width: 200px; width: 220px; flex-shrink: 0; display: flex; flex-direction: column; }
.kanban-col-head { padding: 8px 10px; border-radius: 7px 7px 0 0; border: 1px solid var(--border2); border-bottom: none; background: var(--surface2); display: flex; align-items: center; justify-content: space-between; }
.kanban-col-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.kanban-col-count { font-size: 10px; font-family: var(--mono); background: var(--surface); border: 1px solid var(--border2); border-radius: 10px; padding: 1px 7px; }
.kanban-col-body { border: 1px solid var(--border2); border-radius: 0 0 7px 7px; padding: 8px; background: var(--surface); flex: 1; display: flex; flex-direction: column; gap: 8px; }
.deal-card { background: var(--bg2); border: 1px solid var(--border2); border-radius: 7px; padding: 12px; cursor: pointer; transition: all var(--transition); }
.deal-card:hover { border-color: var(--border3); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.35); }

/* ═══════════════════════════════════════════════════
   EMPTY STATES
   ═══════════════════════════════════════════════════ */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text3); }
.empty-icon { font-size: 40px; margin-bottom: 14px; }
.empty-title { font-size: 15px; font-weight: 600; color: var(--text2); margin-bottom: 6px; }
.empty-sub { font-size: 13px; line-height: 1.6; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE MISC
   ═══════════════════════════════════════════════════ */
@media (max-width: 640px) {
  body { font-size: 13px; }
  .card { padding: 14px; }
  .kanban-col { min-width: 180px; width: 190px; }
  .bubble { max-width: 90%; font-size: 13px; }
  .stat-v { font-size: 22px; }
  .data-table th, .data-table td { padding: 8px; }
}

/* ═══════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════ */
@media print {
  .nav, .sidebar, .btn, .modal-overlay { display: none !important; }
  body { padding-top: 0; background: white; color: black; }
  .card { border: 1px solid #ccc; }
}
