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

:root {
  --bg-primary: #050510;
  --bg-secondary: #0a0a1a;
  --bg-card: #0d0d1f;
  --bg-hover: #12122a;
  --border: #1a1a3a;
  --border-glow: rgba(0, 255, 200, 0.15);
  --text-primary: #e0e0f0;
  --text-secondary: #7878a0;
  --text-muted: #44446a;
  --accent: #00ffc8;
  --accent-alt: #ff00ff;
  --accent-glow: rgba(0, 255, 200, 0.08);
  --accent-glow-strong: rgba(0, 255, 200, 0.25);
  --neon-pink: #ff2d95;
  --neon-blue: #00d4ff;
  --neon-purple: #a855f7;
  --hot: #ff2d55;
  --hot-bg: rgba(255, 45, 85, 0.1);
  --warm: #ffaa00;
  --warm-bg: rgba(255, 170, 0, 0.1);
  --cold: #5577aa;
  --cold-bg: rgba(85, 119, 170, 0.1);
  --success: #00ff88;
  --success-bg: rgba(0, 255, 136, 0.08);
  --danger: #ff2d55;
  --radius: 12px;
  --radius-sm: 8px;
  --font-cyber: 'Orbitron', sans-serif;
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ─── Scanline overlay ─── */
body::after {
  content: ''; position: fixed; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 200, 0.008) 2px,
    rgba(0, 255, 200, 0.008) 4px
  );
  pointer-events: none; z-index: 10000;
}

/* ─── Grid pattern background ─── */
body::before {
  content: ''; position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,255,200,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,200,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none; z-index: -1;
}

/* ─── Animations ─── */
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 5px var(--accent), 0 0 10px rgba(0,255,200,0.2); }
  50% { box-shadow: 0 0 15px var(--accent), 0 0 30px rgba(0,255,200,0.3), 0 0 60px rgba(0,255,200,0.1); }
}
@keyframes borderGlow {
  0%, 100% { border-color: rgba(0,255,200,0.15); }
  50% { border-color: rgba(0,255,200,0.4); }
}
@keyframes glitch {
  0% { text-shadow: 2px 0 #ff2d95, -2px 0 #00d4ff; }
  20% { text-shadow: -2px 0 #ff2d95, 2px 0 #00d4ff; }
  40% { text-shadow: 2px -1px #ff2d95, -2px 1px #00d4ff; }
  60% { text-shadow: -1px 2px #ff2d95, 1px -2px #00d4ff; }
  80% { text-shadow: 1px 0 #ff2d95, -1px 0 #00d4ff; }
  100% { text-shadow: 2px 0 #ff2d95, -2px 0 #00d4ff; }
}
@keyframes dataStream {
  from { background-position: 0 0; }
  to { background-position: 0 -200vh; }
}
@keyframes shimmer {
  from { background-position: -200% center; }
  to { background-position: 200% center; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.animate-in { animation: fadeIn 0.4s cubic-bezier(0.22, 1, 0.36, 1); }

/* ─── Login ─── */
.login-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(ellipse at center, #0a0a2a 0%, #050510 70%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.login-overlay::before {
  content: ''; position: absolute; inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0,255,200,0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255,0,255,0.05) 0%, transparent 50%);
  animation: float 6s ease-in-out infinite;
}
.login-box {
  background: rgba(13,13,31,0.8); border: 1px solid var(--accent);
  border-radius: 20px; padding: 3rem; width: 420px; max-width: 90vw;
  text-align: center; position: relative;
  box-shadow: 0 0 40px rgba(0,255,200,0.1), 0 0 80px rgba(0,255,200,0.05), inset 0 1px 0 rgba(0,255,200,0.1);
  backdrop-filter: blur(20px);
  animation: neonPulse 3s ease-in-out infinite;
}
.login-box h1 {
  font-family: var(--font-cyber); font-size: 1.3rem; font-weight: 800;
  color: var(--accent); letter-spacing: 2px; margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(0,255,200,0.5);
  animation: glitch 4s infinite;
}
.login-box p { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 2rem; letter-spacing: 1px; }
.login-box input {
  width: 100%; padding: 0.8rem 1rem; background: rgba(0,0,0,0.4);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--accent); font-size: 0.9rem; outline: none;
  transition: all 0.3s; font-family: 'Inter', monospace;
  letter-spacing: 2px;
}
.login-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(0,255,200,0.2), inset 0 0 10px rgba(0,255,200,0.05);
}
.login-box input::placeholder { color: var(--text-muted); letter-spacing: 1px; }
.login-box .error { color: var(--neon-pink); font-size: 0.8rem; margin-top: 0.5rem; text-shadow: 0 0 10px rgba(255,45,149,0.3); }

/* ─── Layout ─── */
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 220px; background: var(--bg-secondary); position: fixed;
  top: 0; bottom: 0; left: 0; z-index: 100;
  border-right: 1px solid var(--border); padding: 1.5rem 0;
  display: flex; flex-direction: column;
  box-shadow: 2px 0 20px rgba(0,0,0,0.5), 1px 0 0 rgba(0,255,200,0.08);
}
.sidebar::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  opacity: 0.3;
}
.sidebar-logo {
  padding: 0 1.25rem 1.5rem; font-family: var(--font-cyber);
  font-size: 0.9rem; font-weight: 800; letter-spacing: 2px;
  display: flex; align-items: center; gap: 0.5rem;
}
.sidebar-logo span {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0,255,200,0.5);
}
.sidebar nav { flex: 1; padding: 0 0.5rem; }
.sidebar a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0.75rem; border-radius: var(--radius-sm);
  color: var(--text-secondary); text-decoration: none; font-size: 0.85rem;
  font-weight: 500; transition: all 0.25s; margin-bottom: 2px;
  position: relative; overflow: hidden;
}
.sidebar a::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--accent); transform: scaleY(0);
  transition: transform 0.3s;
}
.sidebar a:hover {
  background: rgba(0,255,200,0.05); color: var(--text-primary);
  text-shadow: 0 0 8px rgba(0,255,200,0.2);
}
.sidebar a:hover::before { transform: scaleY(1); }
.sidebar a.active {
  background: rgba(0,255,200,0.08); color: var(--accent);
  text-shadow: 0 0 10px rgba(0,255,200,0.3);
}
.sidebar a.active::before { transform: scaleY(1); }
.sidebar a svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-footer {
  padding: 0.75rem 1.25rem; border-top: 1px solid var(--border);
  font-size: 0.75rem; color: var(--text-muted);
}

.main-content { flex: 1; margin-left: 220px; padding: 2rem; }

/* ─── Page titles ─── */
h2 {
  font-family: var(--font-cyber); letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(0,255,200,0.2);
}

/* ─── Cards & KPIs ─── */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.kpi-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  position: relative; overflow: hidden;
  transition: all 0.3s; animation: fadeIn 0.5s ease;
}
.kpi-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.kpi-card:hover {
  border-color: rgba(0,255,200,0.3);
  box-shadow: 0 0 20px rgba(0,255,200,0.05), inset 0 0 20px rgba(0,255,200,0.02);
  transform: translateY(-2px);
}
.kpi-card:hover::before { opacity: 1; }
.kpi-label {
  font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 1.5px; font-weight: 600; font-family: var(--font-cyber);
}
.kpi-value {
  font-size: 1.75rem; font-weight: 800; margin-top: 0.5rem;
  letter-spacing: -1px; color: var(--accent);
  text-shadow: 0 0 20px rgba(0,255,200,0.3);
}
.kpi-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.3s;
}
.card:hover { border-color: rgba(0,255,200,0.2); }
.card-header {
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(0,255,200,0.02), transparent);
}
.card-header h3 {
  font-size: 0.85rem; font-weight: 600; font-family: var(--font-cyber);
  letter-spacing: 0.5px;
}
.card-body { padding: 1.25rem; }

/* ─── Status badges ─── */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.65rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  font-family: var(--font-cyber);
}
.badge-hot { background: var(--hot-bg); color: var(--hot); box-shadow: 0 0 10px rgba(255,45,85,0.15); }
.badge-warm { background: var(--warm-bg); color: var(--warm); box-shadow: 0 0 10px rgba(255,170,0,0.15); }
.badge-cold { background: var(--cold-bg); color: var(--cold); }
.badge-success { background: var(--success-bg); color: var(--success); box-shadow: 0 0 10px rgba(0,255,136,0.15); }

/* ─── Status bars ─── */
.status-bars { display: flex; flex-direction: column; gap: 0.75rem; }
.status-row { display: flex; align-items: center; gap: 0.75rem; }
.status-label { width: 50px; font-size: 0.7rem; font-weight: 700; text-align: right; font-family: var(--font-cyber); }
.status-bar-bg {
  flex: 1; height: 28px; background: rgba(0,0,0,0.4); border-radius: 6px; overflow: hidden;
  position: relative; border: 1px solid rgba(0,255,200,0.05);
}
.status-bar-fill {
  height: 100%; border-radius: 5px; transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; align-items: center; padding-left: 0.5rem;
  font-size: 0.65rem; font-weight: 700; color: #fff; min-width: fit-content;
  font-family: var(--font-cyber);
  position: relative;
}
.status-bar-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}
.status-bar-fill.hot { background: linear-gradient(90deg, #ff2d55, #ff6b8a); box-shadow: 0 0 15px rgba(255,45,85,0.3); }
.status-bar-fill.warm { background: linear-gradient(90deg, #ffaa00, #ffcc44); box-shadow: 0 0 15px rgba(255,170,0,0.3); }
.status-bar-fill.cold { background: linear-gradient(90deg, #5577aa, #7799cc); }

.status-count { font-size: 0.75rem; color: var(--text-secondary); width: 60px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1rem; border-radius: var(--radius-sm); border: none;
  font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.25s;
  font-family: inherit; position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.btn:hover::after { opacity: 1; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00d4aa);
  color: #050510; font-weight: 700;
  box-shadow: 0 0 15px rgba(0,255,200,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0,255,200,0.4), 0 4px 20px rgba(0,255,200,0.2);
}
.btn-secondary { background: var(--bg-hover); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); box-shadow: 0 0 10px rgba(0,255,200,0.1); }
.btn-danger { background: rgba(255,45,85,0.08); color: var(--hot); border: 1px solid rgba(255,45,85,0.2); }
.btn-danger:hover { background: rgba(255,45,85,0.15); box-shadow: 0 0 15px rgba(255,45,85,0.15); }
.btn-success { background: rgba(0,255,136,0.08); color: var(--success); border: 1px solid rgba(0,255,136,0.2); }
.btn-success:hover { background: rgba(0,255,136,0.15); box-shadow: 0 0 15px rgba(0,255,136,0.15); }
.btn-sm { padding: 0.35rem 0.6rem; font-size: 0.75rem; }
.btn:disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.btn-icon { padding: 0.4rem; border-radius: 6px; }

/* ─── Tables ─── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; padding: 0.75rem 1rem; font-size: 0.6rem;
  font-weight: 700; color: var(--accent); text-transform: uppercase;
  letter-spacing: 1.5px; border-bottom: 1px solid rgba(0,255,200,0.15);
  font-family: var(--font-cyber);
  background: rgba(0,255,200,0.02);
}
tbody td { padding: 0.65rem 1rem; border-bottom: 1px solid rgba(26,26,58,0.5); font-size: 0.82rem; }
tbody tr { transition: all 0.2s; }
tbody tr:hover {
  background: rgba(0,255,200,0.03);
  box-shadow: inset 2px 0 0 var(--accent);
}
.td-email { font-weight: 500; color: var(--neon-blue); }
.td-muted { color: var(--text-secondary); }

/* ─── Forms ─── */
input, select, textarea {
  background: rgba(0,0,0,0.3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.6rem 0.8rem;
  color: var(--text-primary); font-size: 0.85rem; font-family: inherit;
  outline: none; transition: all 0.3s; width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0,255,200,0.1), inset 0 0 5px rgba(0,255,200,0.03);
}
label {
  font-size: 0.7rem; font-weight: 600; color: var(--text-muted);
  display: block; margin-bottom: 0.4rem; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }

/* ─── Tabs ─── */
.tabs {
  display: flex; gap: 0.25rem; background: rgba(0,0,0,0.3);
  padding: 0.25rem; border-radius: 10px; margin-bottom: 1.5rem;
  border: 1px solid var(--border); width: fit-content;
}
.tab {
  padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.75rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; color: var(--text-secondary); border: none; background: none;
  font-family: var(--font-cyber); letter-spacing: 0.5px;
}
.tab.active {
  background: rgba(0,255,200,0.1); color: var(--accent);
  box-shadow: 0 0 10px rgba(0,255,200,0.1);
}
.tab:hover:not(.active) { color: var(--text-primary); }

/* ─── Upload area ─── */
.upload-area {
  border: 2px dashed rgba(0,255,200,0.2); border-radius: var(--radius);
  padding: 3rem 2rem; text-align: center; cursor: pointer;
  transition: all 0.3s; background: rgba(0,0,0,0.2);
  position: relative;
}
.upload-area::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0,255,200,0.02), transparent, rgba(255,0,255,0.02));
  pointer-events: none;
}
.upload-area:hover, .upload-area.dragover {
  border-color: var(--accent);
  background: rgba(0,255,200,0.03);
  box-shadow: 0 0 30px rgba(0,255,200,0.08), inset 0 0 20px rgba(0,255,200,0.02);
}
.upload-area svg { width: 48px; height: 48px; color: var(--accent); margin-bottom: 1rem; opacity: 0.6; }
.upload-area h4 { margin-bottom: 0.5rem; font-family: var(--font-cyber); font-size: 0.9rem; letter-spacing: 1px; }
.upload-area p { color: var(--text-secondary); font-size: 0.85rem; }

/* ─── Events list ─── */
.event-list { max-height: 300px; overflow-y: auto; }
.event-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0; border-bottom: 1px solid rgba(26,26,58,0.3);
  font-size: 0.8rem; transition: all 0.2s;
}
.event-item:hover { background: rgba(0,255,200,0.02); }
.event-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.event-dot.sent { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.event-dot.opened { background: var(--warm); box-shadow: 0 0 6px var(--warm); }
.event-dot.clicked { background: var(--neon-pink); box-shadow: 0 0 6px var(--neon-pink); }
.event-dot.bounced { background: var(--danger); box-shadow: 0 0 6px var(--danger); }
.event-dot.import { background: var(--success); box-shadow: 0 0 6px var(--success); }
.event-dot.funnel { background: var(--neon-purple); box-shadow: 0 0 6px var(--neon-purple); }
.event-dot.error { background: var(--danger); box-shadow: 0 0 6px var(--danger); }
.event-time { color: var(--text-muted); font-size: 0.7rem; flex-shrink: 0; width: 65px; font-family: var(--font-cyber); }
.event-text { color: var(--text-secondary); }
.event-text strong { color: var(--accent); }

/* ─── Funnel editor ─── */
.funnel-email-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem;
  transition: all 0.3s;
}
.funnel-email-card:hover {
  border-color: rgba(0,255,200,0.2);
  box-shadow: 0 0 15px rgba(0,255,200,0.03);
}
.funnel-step-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #00d4aa);
  color: #050510; font-weight: 900; font-size: 0.75rem; margin-right: 0.75rem;
  font-family: var(--font-cyber);
  box-shadow: 0 0 12px rgba(0,255,200,0.3);
}
.pdf-info {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.8rem; background: rgba(0,0,0,0.3);
  border-radius: var(--radius-sm); font-size: 0.8rem;
  border: 1px solid rgba(0,255,200,0.1);
}
.pdf-info svg { color: var(--neon-pink); }

/* ─── Search bar ─── */
.search-bar {
  display: flex; gap: 0.5rem; margin-bottom: 1rem; align-items: center;
}
.search-bar input { max-width: 300px; }
.filter-pills { display: flex; gap: 0.25rem; }
.pill {
  padding: 0.35rem 0.7rem; border-radius: 20px; font-size: 0.68rem; font-weight: 700;
  cursor: pointer; transition: all 0.25s; border: 1px solid var(--border);
  background: transparent; color: var(--text-secondary); font-family: var(--font-cyber);
  letter-spacing: 0.5px;
}
.pill.active {
  border-color: var(--accent); background: rgba(0,255,200,0.08);
  color: var(--accent); box-shadow: 0 0 10px rgba(0,255,200,0.1);
}
.pill:hover:not(.active) { border-color: var(--text-muted); }

/* ─── Pagination ─── */
.pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-secondary);
}

/* ─── Funnel indicator ─── */
.funnel-indicator { display: flex; align-items: center; gap: 4px; }
.funnel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(0,255,200,0.1); border: 1px solid rgba(0,255,200,0.2);
  transition: all 0.3s;
}
.funnel-dot.filled {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

/* ─── Progress bar (daily send) ─── */
progress {
  appearance: none; -webkit-appearance: none;
  height: 8px; border-radius: 4px; width: 100%; border: none;
  background: rgba(0,0,0,0.4);
}
progress::-webkit-progress-bar { background: rgba(0,0,0,0.4); border-radius: 4px; }
progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--accent), var(--neon-blue));
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0,255,200,0.3);
}

/* ─── Toast ─── */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  padding: 0.75rem 1.25rem; border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 500; animation: slideIn 0.3s ease;
  display: flex; align-items: center; gap: 0.5rem; min-width: 250px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}
.toast-success {
  background: rgba(0,255,136,0.1); color: var(--success);
  border: 1px solid rgba(0,255,136,0.3);
  box-shadow: 0 0 20px rgba(0,255,136,0.1);
}
.toast-error {
  background: rgba(255,45,85,0.1); color: var(--neon-pink);
  border: 1px solid rgba(255,45,85,0.3);
  box-shadow: 0 0 20px rgba(255,45,85,0.1);
}
.toast-info {
  background: rgba(0,212,255,0.1); color: var(--neon-blue);
  border: 1px solid rgba(0,212,255,0.3);
  box-shadow: 0 0 20px rgba(0,212,255,0.1);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .sidebar { width: 60px; }
  .sidebar a span { display: none; }
  .sidebar-logo span { display: none; }
  .main-content { margin-left: 60px; padding: 1rem; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ─── Weekday Checks ─── */
.weekday-check {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.75rem; padding: 0.3rem 0.6rem;
  background: rgba(0,0,0,0.3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all 0.3s; font-family: var(--font-cyber);
  letter-spacing: 0.5px;
}
.weekday-check:has(input:checked) {
  background: rgba(0,255,200,0.15); border-color: var(--accent);
  color: var(--accent); box-shadow: 0 0 10px rgba(0,255,200,0.15);
}
.weekday-check input { display: none; }

/* ─── Scrollbar — Cyber ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--accent), var(--neon-purple));
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── Quill overrides ─── */
.ql-toolbar.ql-snow { border-color: var(--border) !important; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--bg-secondary); }
.ql-container.ql-snow { border-color: var(--border) !important; border-radius: 0 0 var(--radius-sm) var(--radius-sm); background: rgba(0,0,0,0.3); color: var(--text-primary); min-height: 200px; }
.ql-editor { min-height: 200px; font-family: 'Inter', sans-serif; font-size: 0.9rem; }
.ql-snow .ql-stroke { stroke: var(--text-secondary) !important; }
.ql-snow .ql-fill { fill: var(--text-secondary) !important; }
.ql-snow .ql-picker-label { color: var(--text-secondary) !important; }
.ql-snow .ql-picker-options { background: var(--bg-card) !important; border-color: var(--border) !important; }
.ql-snow .ql-picker-item { color: var(--text-primary) !important; }

/* ─── Neon accents on key numbers ─── */
[style*="color:var(--success)"] { text-shadow: 0 0 15px rgba(0,255,136,0.4); }
