/* ═══════════════════════════════════════
   VALBOT — CLEAN PROFESSIONAL DESIGN
   Inspired by Linear / Stripe / Vercel
   ═══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0c0c0f;
  --surface: #141417;
  --surface-2: #1a1a1f;
  --surface-3: #222228;
  --border: rgba(255,255,255,.06);
  --border-hover: rgba(255,255,255,.12);
  --text: #ededef;
  --text-2: #8a8a9a;
  --text-3: #4a4a5a;
  --accent: #635bff;
  --accent-soft: rgba(99,91,255,.12);
  --accent-glow: rgba(99,91,255,.25);
  --green: #3ecf8e;
  --red: #ef4444;
  --amber: #f59e0b;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --ease: cubic-bezier(.4,0,.2,1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ─── LAYOUT ─── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* ─── SIDEBAR ─── */
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
}

.logo {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.5px;
  padding: 0 12px;
  margin-bottom: 32px;
  color: var(--text);
}
.logo span { color: var(--accent); }

.sidebar-menu { list-style: none; flex: 1; }
.sidebar-menu li { margin-bottom: 2px; }
.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-2);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  transition: all .15s var(--ease);
}
.sidebar-menu a:hover { color: var(--text); background: var(--surface-2); }
.sidebar-menu a.active {
  color: var(--text);
  background: var(--surface-2);
}
.sidebar-menu a.active::before {
  content: '';
  position: absolute;
  left: 0;
  width: 3px;
  height: 20px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}
.sidebar-menu a { position: relative; }
.sidebar-menu a i { width: 18px; text-align: center; font-size: .85rem; }

.sidebar-footer { padding-top: 16px; border-top: 1px solid var(--border); }

/* ─── MAIN ─── */
.main-content {
  padding: 36px 48px;
  overflow-y: auto;
  min-height: 100vh;
}

/* ─── HEADER ─── */
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.content-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -.5px;
  color: var(--text);
}
.content-header p { color: var(--text-2); font-size: .875rem; margin-top: 4px; }

.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: border-color .2s;
}
.user-badge:hover { border-color: var(--border-hover); }

.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem; color: #fff;
}

.version-badge {
  font-size: .7rem; font-weight: 600;
  padding: 3px 8px; border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* ─── CARDS ─── */
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color .2s, box-shadow .2s;
}
.status-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.status-card h4 {
  font-size: .75rem; font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
}
.status-card .value {
  font-size: 1.5rem; font-weight: 700; color: var(--text);
}
.status-card .value.active { color: var(--green); }

/* ─── CONFIG SECTION ─── */
.config-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 16px;
}

.config-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.config-item:last-child { border-bottom: none; }

/* ─── SWITCH ─── */
.switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--surface-3); border-radius: 22px;
  transition: .2s var(--ease);
}
.slider::before {
  content: ''; position: absolute;
  width: 16px; height: 16px;
  left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%;
  transition: .2s var(--ease);
}
input:checked + .slider { background: var(--accent); }
input:checked + .slider::before { transform: translateX(18px); }

/* ─── RANGE ─── */
input[type="range"] {
  -webkit-appearance: none; width: 100%; height: 4px;
  background: var(--surface-3); border-radius: 99px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  background: var(--accent); border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 4px var(--accent-soft);
  transition: .15s;
}
input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 6px var(--accent-glow);
}

/* ─── WEAPON TABS ─── */
.weapon-tabs {
  display: flex; gap: 4px;
  background: var(--surface-2);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 24px;
  width: fit-content;
}
.weapon-tab {
  padding: 7px 14px; border-radius: 7px;
  font-size: .8rem; font-weight: 600;
  color: var(--text-2); cursor: pointer;
  transition: all .15s var(--ease);
}
.weapon-tab.active { color: var(--text); background: var(--surface-3); }
.weapon-tab:hover:not(.active) { color: var(--text); }

/* ─── AIMBONE SEGMENTED CONTROL ─── */
.bone-selector {
  display: flex;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 4px;
  gap: 3px;
}
.aimbone-btn {
  flex: 1; padding: 10px 6px; border-radius: 9px; font-size: .8rem; font-weight: 600;
  color: var(--text-2); cursor: pointer; border: none;
  background: transparent; transition: all .18s var(--ease);
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.aimbone-btn.active {
  color: var(--accent);
  background: var(--surface-3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.aimbone-btn:hover:not(.active) { color: var(--text); background: rgba(255,255,255,0.05); }

/* ─── TABLE ─── */
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; padding: 12px 16px;
  font-size: .7rem; font-weight: 600;
  color: var(--text-3); text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 14px 16px;
  font-size: .875rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  transition: background .15s;
}
tr:hover td { background: var(--surface-2); }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px;
  border: none; cursor: pointer;
  background: var(--accent); color: #fff;
  font-family: var(--font);
  font-size: .875rem; font-weight: 600;
  transition: all .15s var(--ease);
}
.btn-primary:hover {
  background: #5046e5;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.btn-primary:active { transform: scale(.97); }

/* ─── PRICING ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 320px));
  gap: 20px;
  justify-content: center;
  width: 100%;
  padding-top: 18px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  border-color: var(--border-hover);
}
.price-card--popular {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(99,91,255,.07) 0%, var(--surface) 60%);
  box-shadow: 0 0 0 1px rgba(99,91,255,.3), 0 8px 32px rgba(99,91,255,.15);
}
.price-card--popular:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 24px 48px rgba(99,91,255,.25);
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: var(--text-2);
}
.plan-features li i { font-size: .72rem; color: var(--green); flex-shrink: 0; }
.plan-btn-primary {
  width: 100%; padding: 13px; border-radius: 10px; border: none;
  background: linear-gradient(130deg, var(--accent), #7c6ff7);
  color: #fff; font-weight: 700; font-size: .88rem; cursor: pointer;
  transition: all .2s var(--ease);
  box-shadow: 0 4px 16px rgba(99,91,255,.35);
}
.plan-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(99,91,255,.5); }
.plan-btn-outline {
  width: 100%; padding: 13px; border-radius: 10px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text); font-weight: 700; font-size: .88rem; cursor: pointer;
  transition: all .2s var(--ease);
}
.plan-btn-outline:hover { border-color: var(--border-hover); background: rgba(255,255,255,.04); }

/* ─── AUTH PAGES ─── */
.auth-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: var(--bg);
}
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  animation: authIn .5s var(--ease) both;
}
@keyframes authIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-card h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.auth-card .sub { color: var(--text-2); font-size: .875rem; margin-bottom: 32px; }

.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: .8rem; font-weight: 600;
  color: var(--text-2); margin-bottom: 6px;
}
.field input:not([type="submit"]) {
  width: 100%; padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: .9rem; font-family: var(--font);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field-err { color: var(--red); font-size: .75rem; font-weight: 500; margin-top: 4px; }

.err-box {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
  color: var(--red);
  padding: 10px 14px; border-radius: 8px;
  font-size: .85rem; font-weight: 500;
  margin-bottom: 20px;
}

.auth-link {
  text-align: center; margin-top: 24px;
  font-size: .85rem; color: var(--text-2);
}
.auth-link a { color: var(--accent); text-decoration: none; font-weight: 600; }
.auth-link a:hover { text-decoration: underline; }

/* ─── LANDING ─── */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  background: rgba(12,12,15,.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-2); text-decoration: none;
  font-size: .875rem; font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); }

/* ─── BACKGROUND PATHS ─── */
.floating-path {
  stroke-dasharray: 280 720;
  stroke-dashoffset: 1000;
  stroke-linecap: round;
  animation: pathFlow var(--duration) linear infinite;
  animation-delay: var(--delay);
  transform-origin: center;
  filter: drop-shadow(0 0 5px var(--accent)) drop-shadow(0 0 10px var(--accent));
}

@keyframes pathFlow {
  0% {
    stroke-dashoffset: 1000;
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -1000;
    opacity: 0;
  }
}

/* ─── VALBOT TOAST SYSTEM ─── */
.val-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(-100% - 40px));
  min-width: 320px;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px 0;
  box-shadow: 0 12px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
  z-index: 10000;
  opacity: 0;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease;
}
.val-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.val-toast-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
}
.val-toast-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.val-toast.error   .val-toast-icon { background: rgba(255,71,87,0.12);  color: var(--red); }
.val-toast.success .val-toast-icon { background: rgba(46,213,115,0.12); color: var(--green); }
.val-toast.info    .val-toast-icon { background: rgba(99,91,255,0.12);  color: var(--accent); }
.val-toast-content { flex: 1; min-width: 0; }
.val-toast-title { font-weight: 700; font-size: .88rem; color: var(--text); margin-bottom: 3px; }
.val-toast-msg   { font-size: .8rem; color: var(--text-2); line-height: 1.5; }
.val-toast-close {
  background: none; border: none; color: var(--text-3);
  cursor: pointer; font-size: .85rem; padding: 2px 4px;
  flex-shrink: 0; transition: color .15s; align-self: flex-start;
}
.val-toast-close:hover { color: var(--text); }
.val-toast-bar {
  height: 3px;
  margin: 0 -18px;
  border-radius: 0 0 16px 16px;
  transform-origin: left;
  animation: toastProgress 4s linear forwards;
}
.val-toast.error   .val-toast-bar { background: var(--red); }
.val-toast.success .val-toast-bar { background: var(--green); }
.val-toast.info    .val-toast-bar { background: var(--accent); }
@keyframes toastProgress { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}
/* Subtle gradient spotlight */
.hero::before {
  content: '';
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(60px);
  opacity: .6;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .8rem; font-weight: 600;
  color: var(--text-2);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800; letter-spacing: -1.5px;
  line-height: 1.05; max-width: 700px;
  margin-bottom: 20px;
  background: linear-gradient(to bottom, var(--text) 50%, var(--text-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.1rem; color: var(--text-2);
  max-width: 520px; margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text); font-family: var(--font);
  font-size: .875rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: all .15s;
}
.btn-outline:hover { border-color: var(--border-hover); background: var(--surface); }

.stats-row {
  display: flex; gap: 64px; margin-top: 80px;
}
.stat-item h3 {
  font-size: 2.5rem; font-weight: 800;
  color: var(--text); letter-spacing: -1px;
}
.stat-item p {
  font-size: .8rem; color: var(--text-3);
  font-weight: 600; margin-top: 2px;
}

.features-section { padding: 120px 48px; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.section-header p { color: var(--text-2); font-size: 1.05rem; }

/* ─── DASHBOARD ENHANCEMENTS ─── */

.main-content {
  background: linear-gradient(180deg, rgba(99,91,255,.04) 0%, transparent 360px);
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Metric cards for dashboard stats */
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.metric-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-soft) 50%, transparent 100%);
}
.metric-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transform: translateY(-2px);
}
.metric-label {
  font-size: .68rem; font-weight: 700;
  color: var(--text-3); text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 10px;
  display: flex; align-items: center; gap: 7px;
}
.metric-label i { font-size: .75rem; }
.metric-value {
  font-size: 1.3rem; font-weight: 800;
  color: var(--text); letter-spacing: -.5px;
}
.metric-value.mono { font-family: 'JetBrains Mono', 'Courier New', monospace; }
.metric-value.accent { color: var(--accent); }
.metric-value.green  { color: var(--green); }

/* Badge system */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 99px;
  font-size: .68rem; font-weight: 700; font-family: var(--font);
}
.badge-success { background: rgba(62,207,142,.1); color: var(--green); border: 1px solid rgba(62,207,142,.2); }
.badge-danger   { background: rgba(239,68,68,.1);  color: var(--red);   border: 1px solid rgba(239,68,68,.2); }
.badge-accent   { background: var(--accent-soft);  color: var(--accent);border: 1px solid rgba(99,91,255,.2); }
.badge-warning  { background: rgba(245,158,11,.1); color: var(--amber); border: 1px solid rgba(245,158,11,.2); }
.badge-muted    { background: var(--surface-2);    color: var(--text-2);border: 1px solid var(--border); }

/* Pulse dot animation */
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: .6; }
  100% { transform: scale(2.2); opacity: 0; }
}
.pulse-dot {
  position: relative; display: inline-block;
  width: 8px; height: 8px;
  background: var(--green); border-radius: 50; flex-shrink: 0;
}
.pulse-dot::after {
  content: ''; position: absolute; inset: 0;
  background: inherit; border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}
.pulse-dot.accent { background: var(--accent); }
.pulse-dot.muted  { background: var(--text-3); animation: none; }
.pulse-dot.muted::after { display: none; }

/* Sidebar nav section label */
.sidebar-section-label {
  font-size: .6rem; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .1em;
  padding: 0 12px; margin: 20px 0 6px;
}

/* Sidebar active state overrides */
.sidebar-menu a.active {
  background: linear-gradient(90deg, rgba(99,91,255,.14) 0%, rgba(99,91,255,.04) 100%) !important;
  color: var(--accent) !important;
}
.sidebar-menu a.active::before {
  background: linear-gradient(180deg, var(--accent) 0%, #a78bfa 100%) !important;
  box-shadow: 0 0 10px rgba(99,91,255,.5) !important;
  height: 60% !important;
}

/* Avatar gradient ring */
.avatar-ring {
  padding: 2px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  border-radius: 50%;
}
.avatar-ring .avatar { margin: 0; }

/* Config section heading */
.config-section h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: .95rem; font-weight: 700; margin-bottom: 20px;
  color: var(--text);
}
.config-section h3 i {
  width: 30px; height: 30px;
  background: var(--surface-2); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; color: var(--accent); flex-shrink: 0;
}

/* Settings tab with icons */
.weapon-tab { display: flex; align-items: center; gap: 6px; }
.weapon-tab i { font-size: .75rem; opacity: .7; }
.weapon-tab.active i { opacity: 1; color: var(--accent); }

/* Fade animations */
.fade-in { animation: fadeInUp .4s var(--ease) both; }
.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .16s; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1000px; margin: 0 auto; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color .2s, transform .3s, box-shadow .3s;
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  font-size: 1.1rem; margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-2); font-size: .875rem; line-height: 1.6; }

.landing-footer {
  padding: 48px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-3);
  font-size: .8rem;
}

/* ─── UTILITY ─── */
.fade-in { animation: fadeIn .5s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }

/* ═══════════════════════════════════════
   RESPONSIVE — MOBILE & TABLET
   ═══════════════════════════════════════ */

/* ── Hamburger button (portal + admin) ── */
.mob-menu-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9998;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(99,91,255,.45);
  transition: transform .15s;
}
.mob-menu-btn:active { transform: scale(.93); }

/* Sidebar mobile overlay backdrop */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(3px);
  z-index: 199;
}
.sidebar-backdrop.open { display: block; }

/* ── TABLET (≤1024px) ── */
@media (max-width: 1024px) {
  .dashboard-layout  { grid-template-columns: 220px 1fr; }
  .admin-layout      { grid-template-columns: 220px 1fr; }
  .main-content      { padding: 28px 28px; }
  .admin-main        { padding: 24px 24px; }
  .landing-nav       { padding: 14px 24px; }
  .features-section  { padding: 80px 28px; }
  .features-grid     { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid      { grid-template-columns: repeat(2, minmax(0, 320px)); }
  .stats-row         { gap: 40px; }
  .status-grid       { grid-template-columns: repeat(2, 1fr); }
  .stats-summary     { grid-template-columns: repeat(2, 1fr); }
}

/* ── MOBILE (≤768px) ── */
@media (max-width: 768px) {

  /* Dashboard & Admin layout: sidebar hidden off-screen */
  .dashboard-layout { grid-template-columns: 1fr; }
  .admin-layout     { grid-template-columns: 1fr; }

  .sidebar {
    position: fixed !important;
    left: -280px;
    top: 0;
    width: 260px !important;
    height: 100vh;
    z-index: 200;
    transition: left .28s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
  }
  .sidebar.open { left: 0 !important; }

  .mob-menu-btn { display: flex; }

  /* Main content full width */
  .main-content { padding: 20px 16px; min-height: 100vh; }
  .admin-main   { padding: 20px 16px; }

  /* Landing nav */
  .landing-nav {
    padding: 14px 18px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .landing-nav > div:first-child > div:last-child { display: none; } /* hide nav links */
  .landing-nav .nav-links { display: none; }

  /* Hero */
  .hero { padding: 100px 18px 60px; }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 3rem); letter-spacing: -1px; }
  .hero p  { font-size: .95rem; }
  .hero-actions { flex-direction: column; align-items: center; gap: 10px; width: 100%; }
  .hero-actions a, .hero-actions button { width: 100%; justify-content: center; }
  .stats-row { flex-direction: column; gap: 24px; margin-top: 48px; align-items: center; text-align: center; }

  /* Features */
  .features-section { padding: 60px 18px; }
  .features-grid    { grid-template-columns: 1fr; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; padding: 0 4px; }

  /* Status/Stats cards */
  .status-grid   { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stats-summary { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Tables — horizontal scroll */
  .data-table-container { overflow-x: auto; }
  table { min-width: 520px; }

  /* Config sections */
  .config-section { padding: 18px 16px; }

  /* Content header */
  .content-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .content-header .user-badge { align-self: flex-end; }

  /* 2-col grids → 1 col */
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns: 2fr 1fr"],
  div[style*="grid-template-columns:2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Admin panel support chat: stack */
  #tab-support > div[style*="grid-template-columns: 350px 1fr"] {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }

  /* Modal */
  .modal-overlay { padding: 12px; }
  .modal-card    { padding: 22px 18px; }

  /* Landing footer */
  .landing-footer { padding: 32px 18px; }

  /* Section header */
  .section-header h2 { font-size: 1.8rem; }
  .section-header p  { font-size: .9rem; }
}

/* ── SMALL PHONES (≤480px) ── */
@media (max-width: 480px) {
  .status-grid   { grid-template-columns: 1fr; }
  .stats-summary { grid-template-columns: 1fr; }
  .hero h1       { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .status-card   { padding: 16px; }
  .main-content  { padding: 16px 12px; }
  .admin-main    { padding: 16px 12px; }
  .btn-primary, .btn-outline { padding: 9px 16px; font-size: .82rem; }

  /* Auth card */
  .auth-card { padding: 28px 18px; }

  /* Table min-width smaller */
  table { min-width: 400px; }

  .section-header h2 { font-size: 1.5rem; }
  .landing-footer    { font-size: .75rem; }
}
