/* ================================================================
   CLAWR.AI — Full Design System
   Dark mode, glassmorphism, neon accents, mobile-first
   ================================================================ */

/* ─── Google Fonts ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── CSS Custom Properties ─────────────────────────────────────── */
:root {
  /* Core palette */
  --bg-primary: #0A0A0F;
  --bg-secondary: #1a1a2e;
  --bg-card: rgba(26, 26, 46, 0.8);
  --bg-card-hover: rgba(30, 30, 60, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.07);

  /* Accent colors */
  --blue: #4361EE;
  --blue-light: #6480ff;
  --blue-dark: #2d4acc;
  --orange: #E79039;
  --orange-light: #f5a55c;
  --orange-dark: #c97820;

  /* Semantic */
  --success: #00C896;
  --warning: #FFB300;
  --danger: #FF4757;
  --info: #4361EE;

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.35);
  --text-disabled: rgba(255, 255, 255, 0.2);

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(67, 97, 238, 0.4);
  --border-orange: rgba(231, 144, 57, 0.4);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--blue) 0%, var(--orange) 100%);
  --gradient-blue: linear-gradient(135deg, #4361EE 0%, #6480ff 100%);
  --gradient-dark: linear-gradient(135deg, #0A0A0F 0%, #1a1a2e 100%);
  --gradient-card: linear-gradient(135deg, rgba(67,97,238,0.08) 0%, rgba(231,144,57,0.05) 100%);

  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --glow-blue: 0 0 20px rgba(67, 97, 238, 0.5), 0 0 40px rgba(67, 97, 238, 0.2);
  --glow-orange: 0 0 20px rgba(231, 144, 57, 0.5), 0 0 40px rgba(231, 144, 57, 0.2);
  --glow-success: 0 0 20px rgba(0, 200, 150, 0.4);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --sidebar-width: 260px;
  --nav-height: 64px;
  --bottom-nav-height: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Typography ────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { color: var(--text-secondary); }

a {
  color: var(--blue-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--orange-light); }

strong { font-weight: 700; }
small { font-size: 0.85em; }

/* ─── Gradient Text ─────────────────────────────────────────────── */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: rgba(67,97,238,0.4); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ─── Selection ─────────────────────────────────────────────────── */
::selection { background: rgba(67,97,238,0.3); color: white; }

/* ─── App Shell ─────────────────────────────────────────────────── */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ─── Screens ───────────────────────────────────────────────────── */
.screen {
  display: none;
  flex: 1;
}
.screen.active {
  display: flex;
  flex-direction: column;
}

/* ─── Loading Screen ────────────────────────────────────────────── */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  gap: var(--space-lg);
}

.loading-logo {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
  animation: logoEntry 0.6s ease forwards;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(67,97,238,0.2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes logoEntry {
  from { opacity: 0; transform: scale(0.8) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes fadeOut {
  to { opacity: 0; pointer-events: none; }
}
.loading-exit { animation: fadeOut 0.4s ease forwards; }

/* ─── NAV BAR (top) ─────────────────────────────────────────────── */
#top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  z-index: 100;
  transition: all var(--transition-base);
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 900;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  cursor: pointer;
}

.nav-logo .dot {
  color: var(--orange);
  -webkit-text-fill-color: var(--orange);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.nav-btn:hover { background: var(--bg-glass); color: var(--text-primary); }

.nav-cta {
  background: var(--gradient-brand);
  border: none;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--glow-blue); }

/* Desktop nav links */
.nav-links {
  display: none;
  gap: var(--space-xl);
}
.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition-fast);
  background: none;
  border: none;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

/* ─── BOTTOM NAV (mobile) ────────────────────────────────────────── */
#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  background: none;
  border: none;
  color: var(--text-muted);
  min-width: 56px;
}
.bottom-nav-item:hover { color: var(--text-secondary); }
.bottom-nav-item.active {
  color: var(--blue-light);
}
.bottom-nav-item.active .nav-icon {
  filter: drop-shadow(0 0 6px rgba(67,97,238,0.8));
}

.bottom-nav-item .nav-icon { font-size: 1.4rem; line-height: 1; }
.bottom-nav-item .nav-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

@media (min-width: 768px) {
  #bottom-nav { display: none; }
}

/* ─── SIDEBAR (desktop) ──────────────────────────────────────────── */
#sidebar {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  padding: var(--space-lg);
  overflow-y: auto;
  z-index: 50;
  flex-direction: column;
  gap: var(--space-xs);
}

@media (min-width: 768px) {
  #sidebar { display: flex; }
}

.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--space-md) var(--space-sm) var(--space-xs);
  margin-top: var(--space-md);
}
.sidebar-section-label:first-child { margin-top: 0; }

.sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0.7rem var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.sidebar-item:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}
.sidebar-item.active {
  background: rgba(67, 97, 238, 0.15);
  color: var(--blue-light);
  border: 1px solid var(--border-accent);
}
.sidebar-item.active .sidebar-icon {
  filter: drop-shadow(0 0 4px rgba(67,97,238,0.8));
}
.sidebar-icon { font-size: 1.1rem; flex-shrink: 0; }

.sidebar-badge {
  margin-left: auto;
  background: var(--blue);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
}

.sidebar-status {
  margin-top: auto;
  padding: var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
  animation: statusPulse 2s ease-in-out infinite;
  display: inline-block;
  margin-right: 6px;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--success); }
  50% { opacity: 0.6; box-shadow: 0 0 16px var(--success); }
}

/* ─── MAIN CONTENT AREA ─────────────────────────────────────────── */
.main-content {
  padding-top: var(--nav-height);
  padding-bottom: calc(var(--bottom-nav-height) + 1rem);
  flex: 1;
}

@media (min-width: 768px) {
  .main-content {
    margin-left: var(--sidebar-width);
    padding-bottom: var(--space-xl);
    padding-top: calc(var(--nav-height) + var(--space-xl));
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
  }
}

.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-lg);
}

@media (min-width: 768px) {
  .page-container { padding: 0; }
}

/* ─── CARDS ─────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}
.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.card-accent {
  border-color: var(--border-accent);
  background: linear-gradient(135deg, rgba(67,97,238,0.08), rgba(26,26,46,0.9));
}

/* ─── BUTTONS ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: inherit;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition-fast);
}
.btn:hover::before { background: rgba(255,255,255,0.06); }
.btn:active { transform: scale(0.98); }

.btn-sm { font-size: 0.8rem; padding: 0.4rem 0.9rem; }
.btn-md { font-size: 0.9rem; padding: 0.65rem 1.4rem; }
.btn-lg { font-size: 1rem; padding: 0.9rem 2rem; }
.btn-xl { font-size: 1.1rem; padding: 1.1rem 2.5rem; border-radius: var(--radius-full); }

.btn-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: 0 4px 20px rgba(67,97,238,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-blue);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-accent);
}

.btn-outline {
  background: transparent;
  color: var(--blue-light);
  border: 1px solid var(--border-accent);
}
.btn-outline:hover {
  background: rgba(67,97,238,0.1);
  box-shadow: var(--glow-blue);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 0.4rem 0.8rem;
}
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-glass); }

.btn-danger {
  background: rgba(255, 71, 87, 0.15);
  color: var(--danger);
  border: 1px solid rgba(255,71,87,0.3);
}
.btn-danger:hover { background: rgba(255,71,87,0.25); }

.btn-orange {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: white;
}
.btn-orange:hover { transform: translateY(-2px); box-shadow: var(--glow-orange); }

.btn-full { width: 100%; }

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}
.btn-icon-sm { width: 32px; height: 32px; }

/* ─── BADGES & PILLS ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.badge-live { background: rgba(0,200,150,0.15); color: var(--success); border: 1px solid rgba(0,200,150,0.3); }
.badge-paused { background: rgba(255,179,0,0.15); color: var(--warning); border: 1px solid rgba(255,179,0,0.3); }
.badge-training { background: rgba(67,97,238,0.15); color: var(--blue-light); border: 1px solid var(--border-accent); }
.badge-draft { background: rgba(255,255,255,0.08); color: var(--text-secondary); border: 1px solid var(--border); }
.badge-sent { background: rgba(67,97,238,0.15); color: var(--blue-light); border: 1px solid var(--border-accent); }
.badge-signed { background: rgba(0,200,150,0.15); color: var(--success); border: 1px solid rgba(0,200,150,0.3); }
.badge-archived { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border); }

/* ─── FORM ELEMENTS ──────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  width: 100%;
  transition: all var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(67,97,238,0.15);
  background: var(--bg-glass-hover);
}
input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
select option { background: var(--bg-secondary); }
textarea { resize: vertical; min-height: 100px; }

.form-row {
  display: grid;
  gap: var(--space-md);
}
@media (min-width: 480px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
}

/* ─── SWITCH TOGGLE ──────────────────────────────────────────────── */
.switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
}
.switch-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: all var(--transition-base);
}
.switch input:checked + .switch-slider {
  background: var(--gradient-brand);
  box-shadow: var(--glow-blue);
}
.switch input:checked + .switch-slider::before {
  transform: translateX(22px);
}

/* ─── DRAG ZONE ──────────────────────────────────────────────────── */
.drag-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--text-muted);
}
.drag-zone:hover, .drag-zone.drag-over {
  border-color: var(--blue);
  background: rgba(67,97,238,0.06);
  color: var(--text-secondary);
}
.drag-icon { font-size: 2.5rem; margin-bottom: var(--space-md); display: block; }

/* ─── STAT CARDS ─────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.stat-card:hover::before { opacity: 1; }
.stat-card:hover { border-color: var(--border-accent); }

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}
.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-primary);
}
.stat-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: var(--space-xs);
}
.stat-delta.up { color: var(--success); }
.stat-delta.down { color: var(--danger); }

/* ─── KANBAN BOARD ───────────────────────────────────────────────── */
.kanban-board {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-md);
  min-height: 500px;
  -webkit-overflow-scrolling: touch;
}
.kanban-board::-webkit-scrollbar { height: 4px; }

.kanban-col {
  flex: 0 0 280px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
@media (min-width: 1200px) {
  .kanban-col { flex: 1 0 200px; }
}

.kanban-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}
.kanban-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.kanban-count {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 1px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

.kanban-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  cursor: grab;
  transition: all var(--transition-base);
  position: relative;
}
.kanban-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.kanban-card.dragging {
  opacity: 0.5;
  cursor: grabbing;
}
.kanban-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
}
.kanban-company { font-weight: 700; font-size: 0.9rem; }
.kanban-value { font-weight: 800; color: var(--orange); font-size: 0.9rem; }
.kanban-meta { font-size: 0.75rem; color: var(--text-muted); }
.kanban-ai-action {
  font-size: 0.72rem;
  color: var(--blue-light);
  background: rgba(67,97,238,0.1);
  border-radius: var(--radius-sm);
  padding: 3px 6px;
  margin-top: var(--space-sm);
}

/* Column colors */
.col-lead .kanban-title { color: var(--text-secondary); }
.col-qualified .kanban-title { color: var(--info); }
.col-proposal .kanban-title { color: var(--warning); }
.col-negotiation .kanban-title { color: var(--orange); }
.col-won .kanban-title { color: var(--success); }
.col-lost .kanban-title { color: var(--danger); }
.col-won { border-color: rgba(0,200,150,0.2); }
.col-lost { border-color: rgba(255,71,87,0.15); }

/* ─── LIVE FEED ──────────────────────────────────────────────────── */
.feed-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-fast);
}
.feed-item:last-child { border-bottom: none; }
.feed-item:hover { background: var(--bg-glass); }

.feed-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  background: rgba(67,97,238,0.15);
}
.feed-content { flex: 1; min-width: 0; }
.feed-text { font-size: 0.85rem; line-height: 1.5; }
.feed-time { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

/* ─── PROGRESS / FUNNEL ─────────────────────────────────────────── */
.funnel-step {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}
.funnel-label {
  font-size: 0.85rem;
  font-weight: 600;
  width: 120px;
  flex-shrink: 0;
  color: var(--text-secondary);
}
.funnel-bar-wrap { flex: 1; height: 8px; background: rgba(255,255,255,0.06); border-radius: var(--radius-full); overflow: hidden; }
.funnel-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  transition: width 1s ease;
}
.funnel-pct {
  font-size: 0.85rem;
  font-weight: 700;
  width: 40px;
  text-align: right;
  color: var(--text-primary);
}

/* ─── BAR CHART ──────────────────────────────────────────────────── */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: var(--space-sm);
  height: 160px;
  padding-top: var(--space-md);
}
.bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.bar {
  width: 100%;
  background: var(--gradient-blue);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: height 1s ease, box-shadow var(--transition-base);
  min-height: 4px;
  position: relative;
}
.bar:hover { box-shadow: 0 0 12px rgba(67,97,238,0.6); }
.bar-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

/* ─── SECTION HEADERS ────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-md);
}
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
}
.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 400;
}

/* ─── AGENT AVATAR PULSE ─────────────────────────────────────────── */
.agent-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
}
.avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(67,97,238,0.4);
  animation: ringPulse 2.5s ease-in-out infinite;
}
.avatar-ring:nth-child(2) {
  inset: -16px;
  border-color: rgba(67,97,238,0.2);
  animation-delay: 0.5s;
}
.avatar-ring:nth-child(3) {
  inset: -24px;
  border-color: rgba(67,97,238,0.1);
  animation-delay: 1s;
}
@keyframes ringPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}
.avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: white;
  position: relative;
  z-index: 1;
  box-shadow: var(--glow-blue);
}

/* ─── HERO SECTION ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + var(--space-xl)) var(--space-lg) calc(var(--bottom-nav-height) + var(--space-xl));
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(67,97,238,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(231,144,57,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 40%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(67,97,238,0.12);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-light);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-xl);
  animation: fadeInDown 0.6s ease forwards;
}
.hero-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: statusPulse 2s ease-in-out infinite;
}

.hero-headline {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  font-weight: 400;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: var(--space-xl);
  animation: fadeInUp 0.6s ease 0.4s both;
}
.hero-stat {
  text-align: center;
}
.hero-stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── PERSONALITY SELECTOR ───────────────────────────────────────── */
.personality-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}
@media (min-width: 480px) {
  .personality-grid { grid-template-columns: repeat(4, 1fr); }
}

.personality-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}
.personality-btn:hover { border-color: var(--border-accent); color: var(--text-primary); }
.personality-btn.selected {
  background: rgba(67,97,238,0.15);
  border-color: var(--blue);
  color: var(--blue-light);
  box-shadow: 0 0 12px rgba(67,97,238,0.2);
}

/* ─── VERTICAL CARDS ─────────────────────────────────────────────── */
.verticals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 480px) { .verticals-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .verticals-grid { grid-template-columns: repeat(4, 1fr); } }

.vertical-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.vertical-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}
.vertical-card:hover::before { transform: scaleX(1); }
.vertical-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.vertical-icon { font-size: 2rem; margin-bottom: var(--space-md); }
.vertical-name { font-size: 1rem; font-weight: 700; margin-bottom: var(--space-sm); }
.vertical-desc { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: var(--space-md); line-height: 1.6; }
.vertical-roi {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--success);
  background: rgba(0,200,150,0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: var(--space-md);
}

/* ─── PRICING CARDS ──────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 640px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
  transition: all var(--transition-base);
  text-align: center;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--blue);
  background: linear-gradient(135deg, rgba(67,97,238,0.1), rgba(26,26,46,0.9));
  box-shadow: var(--glow-blue);
  transform: scale(1.02);
}
.pricing-card.featured:hover { transform: scale(1.02) translateY(-4px); }
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.pricing-plan { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: var(--space-sm); }
.pricing-price {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}
.pricing-period { font-size: 0.85rem; color: var(--text-muted); margin-bottom: var(--space-lg); }
.pricing-features { list-style: none; text-align: left; margin-bottom: var(--space-xl); }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.feature-check { color: var(--success); font-size: 0.9rem; flex-shrink: 0; }

/* ─── SIGNUP STEPS ───────────────────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-2xl);
}
.step-item {
  display: flex;
  align-items: center;
  gap: 0;
}
.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card);
  transition: all var(--transition-base);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.step-dot.active {
  border-color: var(--blue);
  color: white;
  background: var(--blue);
  box-shadow: 0 0 12px rgba(67,97,238,0.5);
}
.step-dot.done {
  border-color: var(--success);
  color: var(--success);
  background: rgba(0,200,150,0.1);
}
.step-line {
  height: 2px;
  width: 60px;
  background: var(--border);
  transition: background var(--transition-base);
}
.step-line.done { background: var(--success); }

.step-content {
  display: none;
  animation: fadeInUp 0.4s ease;
}
.step-content.active { display: block; }

/* ─── DOCUMENT LIST ──────────────────────────────────────────────── */
.doc-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-fast);
}
.doc-item:hover { background: var(--bg-glass); }
.doc-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(67,97,238,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.doc-info { flex: 1; min-width: 0; }
.doc-name { font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-meta { font-size: 0.75rem; color: var(--text-muted); }
.doc-actions { display: flex; gap: var(--space-sm); align-items: center; }

/* ─── QUICK ACTIONS ──────────────────────────────────────────────── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}
@media (min-width: 480px) {
  .quick-actions { grid-template-columns: repeat(4, 1fr); }
}

.quick-action {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
}
.quick-action:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-accent);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.quick-action-icon { font-size: 1.5rem; display: block; margin-bottom: 6px; }

/* ─── ROI CALCULATOR ─────────────────────────────────────────────── */
.roi-display {
  background: linear-gradient(135deg, rgba(67,97,238,0.12), rgba(231,144,57,0.08));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
}
.roi-value {
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
  line-height: 1;
}
.roi-label { font-size: 0.85rem; color: var(--text-secondary); margin-top: var(--space-sm); }

/* ─── FILTERS BAR ────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--border-accent); color: var(--text-primary); }
.filter-chip.active {
  background: rgba(67,97,238,0.15);
  border-color: var(--blue);
  color: var(--blue-light);
}

/* ─── PAGE HEADER ────────────────────────────────────────────────── */
.page-header {
  margin-bottom: var(--space-xl);
}
.page-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; }
.page-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

/* ─── ANIMATIONS ─────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes shimmer {
  from { background-position: -200% 0; }
  to { background-position: 200% 0; }
}

.anim-fade-in { animation: fadeIn 0.4s ease forwards; }
.anim-slide-up { animation: fadeInUp 0.5s ease forwards; }
.anim-delay-1 { animation-delay: 0.1s; opacity: 0; }
.anim-delay-2 { animation-delay: 0.2s; opacity: 0; }
.anim-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* ─── SKELETON LOADING ───────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
  border-radius: var(--radius-sm);
}

/* ─── TOAST NOTIFICATIONS ────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 1rem);
  right: var(--space-lg);
  left: var(--space-lg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}
@media (min-width: 768px) {
  #toast-container { left: auto; max-width: 360px; }
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  box-shadow: var(--shadow-lg);
  pointer-events: all;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 3s forwards;
  backdrop-filter: blur(12px);
}
.toast-success { border-color: rgba(0,200,150,0.3); }
.toast-error { border-color: rgba(255,71,87,0.3); }
.toast-info { border-color: var(--border-accent); }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-msg { font-size: 0.875rem; font-weight: 500; }
@keyframes fadeOut { to { opacity: 0; transform: translateX(20px); } }

/* ─── MODAL ──────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
@media (min-width: 768px) {
  .modal-overlay { align-items: center; }
}
.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-xl);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideInUp 0.3s ease;
}
@media (min-width: 768px) {
  .modal { border-radius: var(--radius-xl); }
}
@keyframes slideInUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}
.modal-title { font-size: 1.2rem; font-weight: 700; }
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.4rem;
  padding: 4px;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.modal-close:hover { color: var(--text-primary); background: var(--bg-glass); }

/* ─── SECTION DIVIDERS ───────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-lg) 0;
}
.divider-text {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.divider-text::before, .divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── UTILITY CLASSES ────────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.72rem; }
.text-lg { font-size: 1.1rem; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-blue { color: var(--blue-light); }
.text-orange { color: var(--orange); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.hidden { display: none !important; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rounded-full { border-radius: var(--radius-full); }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }

/* ─── RESPONSIVE HELPERS ─────────────────────────────────────────── */
.mobile-only { display: block; }
.desktop-only { display: none; }
@media (min-width: 768px) {
  .mobile-only { display: none; }
  .desktop-only { display: block; }
}

/* ─── INSTALL BANNER ─────────────────────────────────────────────── */
#install-banner {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 1rem);
  left: var(--space-md);
  right: var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  animation: slideInUp 0.4s ease;
}
#install-banner.hidden { display: none; }

/* ─── ABOUT/STRATEGIC NOTE ───────────────────────────────────────── */
.about-quote {
  background: var(--gradient-card);
  border: 1px solid var(--border-accent);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-lg) var(--space-xl);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: var(--space-xl) 0;
}

/* ─── SCROLLED NAV EFFECT ────────────────────────────────────────── */
#top-nav.scrolled {
  background: rgba(10, 10, 15, 0.97);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
