/* ═══════════════════════════════════════════
   IT Rays - Professional Dark Theme
   Inspired by hex-rays.com aesthetic
   ═══════════════════════════════════════════ */

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

:root {
  --bg: #06060e;
  --bg-alt: #0a0a16;
  --bg-card: #0d0d1a;
  --bg-muted: #141425;
  --bg-input: #0f0f1e;
  --border: #1e1e3a;
  --border-light: rgba(30,30,58,0.6);
  --border-glow: rgba(56,189,248,0.15);
  --text: #f0f0f5;
  --text-muted: #9ca3b0;
  --text-dim: #5b6178;
  --primary: #38bdf8;
  --primary-hover: #22a5e0;
  --primary-dark: #0284c7;
  --primary-light: rgba(56,189,248,0.1);
  --primary-lighter: rgba(56,189,248,0.05);
  --accent: #818cf8;
  --accent-light: rgba(129,140,248,0.1);
  --destructive: #f43f5e;
  --destructive-bg: rgba(244,63,94,0.1);
  --success: #10b981;
  --success-bg: rgba(16,185,129,0.12);
  --success-text: #34d399;
  --warning-bg: rgba(245,158,11,0.12);
  --warning-text: #fbbf24;
  --blue: #60a5fa;
  --blue-bg: rgba(96,165,250,0.1);
  --emerald: #34d399;
  --emerald-bg: rgba(52,211,153,0.1);
  --amber: #fbbf24;
  --amber-bg: rgba(251,191,36,0.1);
  --purple: #c084fc;
  --purple-bg: rgba(192,132,252,0.1);
  --cyan: #22d3ee;
  --cyan-bg: rgba(34,211,238,0.08);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(56,189,248,0.1);
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

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

/* ─── Typography ─────────────────────────── */
h1 { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: 1.875rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 1rem; font-weight: 600; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-primary { color: var(--primary); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-mono { font-family: var(--font-mono); }
.tracking-tight { letter-spacing: -0.025em; }
.leading-relaxed { line-height: 1.75; }
.uppercase { text-transform: uppercase; letter-spacing: 0.05em; }

/* ─── Layout ────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 768px; margin: 0 auto; padding: 0 1.5rem; }
.container-md { max-width: 896px; margin: 0 auto; padding: 0 1.5rem; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.w-full { width: 100%; }
.min-h-screen { min-height: 100vh; }
.hidden { display: none; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.mx-auto { margin-left: auto; margin-right: auto; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-24 { padding-top: 6rem; }
.pt-32 { padding-top: 8rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-20 { padding-bottom: 5rem; }

/* ─── Components ────────────────────────── */

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1.25;
  text-decoration: none;
}
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(56,189,248,0.15);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
  box-shadow: 0 0 30px rgba(56,189,248,0.25);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--bg-muted); border-color: var(--primary); color: var(--primary); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-muted); color: var(--text); }
.btn-destructive {
  background: var(--destructive);
  color: #fff;
  border-color: var(--destructive);
}
.btn-destructive:hover { opacity: 0.9; }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; font-weight: 600; }
.btn-xl { padding: 1rem 2.5rem; font-size: 1.125rem; font-weight: 600; }
.btn-icon { padding: 0.625rem; }

/* Input */
.input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light), 0 0 20px rgba(56,189,248,0.08);
}
.input::placeholder { color: var(--text-dim); }
textarea.input { min-height: 120px; resize: vertical; }
select.input { cursor: pointer; appearance: none; }
label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; color: var(--text-muted); }

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card-header { padding: 1.25rem 1.5rem; }
.card-content { padding: 0 1.5rem 1.5rem; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border-light); }
.card:hover { border-color: var(--border); }
.card-highlighted { border-color: var(--border-glow); background: rgba(56,189,248,0.02); box-shadow: var(--shadow-glow); }
.card-glow:hover { border-color: var(--border-glow); box-shadow: var(--shadow-glow); }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid transparent;
}
.badge-primary { background: var(--primary); color: #fff; }
.badge-secondary { background: var(--bg-muted); color: var(--text-muted); border-color: var(--border); }
.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-warning { background: var(--warning-bg); color: var(--warning-text); }
.badge-destructive { background: var(--destructive-bg); color: var(--destructive); }
.badge-outline { border-color: var(--border); color: var(--text-muted); background: transparent; }
.badge-cyan { background: var(--cyan-bg); color: var(--cyan); border-color: rgba(34,211,238,0.2); }
.badge-amber { background: rgba(245,158,11,0.15); color: #f59e0b; }

/* Alert */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  border: 1px solid;
}
.alert-error { background: var(--destructive-bg); border-color: rgba(244,63,94,0.3); color: var(--destructive); }
.alert-success { background: var(--success-bg); border-color: rgba(16,185,129,0.3); color: var(--success-text); }
.alert-warning { background: var(--warning-bg); border-color: rgba(245,158,11,0.3); color: var(--warning-text); }
.alert-info { background: var(--primary-light); border-color: rgba(56,189,248,0.3); color: var(--primary); }

/* ─── Navigation ────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border-light);
  background: rgba(6,6,14,0.85);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 1.5rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--primary); }
.nav-links .btn { margin-left: 0.5rem; }
.nav-mobile-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.375rem;
  border-radius: var(--radius);
}

/* Brand Icon */
.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 0 12px rgba(56,189,248,0.2);
}
.brand-icon svg { width: 1rem; height: 1rem; }
.brand-icon-sm { width: 1.75rem; height: 1.75rem; }
.brand-icon-sm svg { width: 0.875rem; height: 0.875rem; }

/* Icon box */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
}
.icon-box-sm { width: 2rem; height: 2rem; }
.icon-box-md { width: 2.5rem; height: 2.5rem; }
.icon-box-lg { width: 3rem; height: 3rem; }
.icon-box-xl { width: 3.5rem; height: 3.5rem; }

/* Progress Bar */
.progress-bar {
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--bg-muted);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  transition: width 0.5s ease;
}

/* Divider */
.divider { height: 1px; background: var(--border-light); margin: 1rem 0; }
.divider-section { border-top: 1px solid var(--border-light); }

/* Avatar */
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 700;
}
.avatar-sm { width: 2.25rem; height: 2.25rem; font-size: 0.875rem; }
.avatar-md { width: 2.5rem; height: 2.5rem; font-size: 0.875rem; }
.avatar-lg { width: 4rem; height: 4rem; font-size: 1.5rem; }
.avatar-primary { background: var(--primary-light); color: var(--primary); }

/* Spinner */
.spinner {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.spinner-sm { width: 1rem; height: 1rem; border-width: 2px; }
.spinner-lg { width: 2rem; height: 2rem; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Pulse */
.pulse-dot {
  position: relative;
  display: inline-flex;
  width: 0.5rem;
  height: 0.5rem;
}
.pulse-dot::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--success-text);
  animation: pulse 2s ease-in-out infinite;
}
.pulse-dot::after {
  content: '';
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--success);
}
@keyframes pulse { 0%, 100% { opacity: 0; transform: scale(1); } 50% { opacity: 0.75; transform: scale(2.5); } }

/* ─── Hero Effects ─────────────────────── */
.bg-grid {
  background-image:
    linear-gradient(rgba(56,189,248,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.glow-primary {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56,189,248,0.08) 0%, transparent 70%);
  filter: blur(60px);
}
.glow-accent {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(129,140,248,0.06) 0%, transparent 70%);
  filter: blur(60px);
}
.glow-sm {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56,189,248,0.06) 0%, transparent 70%);
  filter: blur(40px);
}

/* Animated gradient border */
.gradient-border {
  position: relative;
  border: 1px solid transparent;
  background-clip: padding-box;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(56,189,248,0.3), rgba(129,140,248,0.1), transparent, rgba(56,189,248,0.1));
  z-index: -1;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
}

/* Float animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }

/* Fade in animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeInUp 0.6s ease-out; }

/* Counter stat */
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Auth Layout ───────────────────────── */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}
.auth-brand {
  display: none;
  background: var(--bg-alt);
  border-right: 1px solid var(--border-light);
  padding: 3rem;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-form-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.auth-form {
  width: 100%;
  max-width: 400px;
}

/* ─── Dashboard Layout ──────────────────── */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 260px;
  border-right: 1px solid var(--border-light);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.sidebar.open { transform: translateX(0); }
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-user {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-nav {
  flex: 1;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  overflow-y: auto;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: all 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.sidebar-link:hover { background: var(--bg-muted); color: var(--text); }
.sidebar-link.active { background: var(--primary-light); color: var(--primary); }
.sidebar-link svg { width: 1.125rem; height: 1.125rem; }
.sidebar-footer {
  padding: 0.75rem;
  border-top: 1px solid var(--border-light);
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 40;
}
.sidebar-overlay.show { display: block; }

.dashboard-main {
  flex: 1;
  margin-left: 0;
  display: flex;
  flex-direction: column;
}
.dashboard-topbar {
  display: flex;
  align-items: center;
  height: 4rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--border-light);
  gap: 1rem;
  background: rgba(6,6,14,0.5);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 30;
}
.dashboard-topbar .menu-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.375rem;
  border-radius: var(--radius);
}
.dashboard-content { flex: 1; padding: 1.5rem; }

/* ─── Section Styles ────────────────────── */
.section { padding: 5rem 0; }
.section-border { border-top: 1px solid var(--border-light); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .badge { margin-bottom: 1rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 600px; margin: 0 auto; }

/* ─── Feature Card ──────────────────────── */
.feature-card {
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* ─── Pricing Card ──────────────────────── */
.pricing-card {
  padding: 2rem;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  transition: all 0.3s ease;
}
.pricing-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}
.pricing-card.popular {
  border-color: var(--border-glow);
  background: linear-gradient(180deg, rgba(56,189,248,0.03) 0%, var(--bg-card) 100%);
  box-shadow: 0 4px 40px rgba(56,189,248,0.08);
}
.pricing-card.popular:hover {
  box-shadow: 0 8px 50px rgba(56,189,248,0.12);
}
.pricing-card .popular-tag {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 0.25rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(56,189,248,0.2);
}

/* Terminal Preview */
.terminal {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  background: #080818;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(56,189,248,0.03);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid rgba(30,30,58,0.5);
  background: rgba(13,13,26,0.8);
}
.terminal-dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; }
.terminal-body { padding: 1.5rem; font-family: var(--font-mono); font-size: 0.875rem; line-height: 1.8; }

/* ─── Footer ────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem;
  background: var(--bg-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: var(--text-dim); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--text-muted); }

/* ─── FAQ Accordion ─────────────────────── */
.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--border); }
.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.faq-trigger svg { transition: transform 0.2s; flex-shrink: 0; }
.faq-trigger.active svg { transform: rotate(180deg); }
.faq-content {
  display: none;
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}
.faq-content.active { display: block; }

/* ─── Trust bar ─────────────────────────── */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 0;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ─── Responsive ────────────────────────── */
@media (min-width: 640px) {
  .sm-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .sm-flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  .auth-layout { grid-template-columns: 1fr 1fr; }
  .auth-brand { display: flex; }
  .md-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .md-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .md-flex { display: flex; }
  .md-hidden { display: none; }
  .hero-title { font-size: 4.5rem; }
  .nav-links { display: flex; }
  .nav-mobile-btn { display: none; }
}

@media (min-width: 1024px) {
  .sidebar { transform: translateX(0); position: fixed; }
  .dashboard-main { margin-left: 260px; }
  .dashboard-topbar .menu-btn { display: none; }
  .lg-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .lg-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1280px) {
  .xl-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }
  .nav-links.show { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; border-radius: var(--radius); }
  .nav-links .btn { margin: 0.5rem 0 0; }
  .nav-mobile-btn { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .hero-title { font-size: 2.25rem; }
  .hero-checks { flex-direction: column; gap: 0.5rem; }
  .trust-bar { gap: 1.5rem; }
}

/* ─── Utility ───────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.capitalize { text-transform: capitalize; }
.pointer { cursor: pointer; }
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }
.transition { transition: all 0.2s ease; }
.rounded-full { border-radius: 9999px; }
.border-b { border-bottom: 1px solid var(--border-light); }
.border-t { border-top: 1px solid var(--border-light); }
.select-none { user-select: none; }

/* SVG Icon inline sizing */
svg.icon { width: 1rem; height: 1rem; display: inline-block; vertical-align: middle; }
svg.icon-sm { width: 0.875rem; height: 0.875rem; }
svg.icon-lg { width: 1.25rem; height: 1.25rem; }
svg.icon-xl { width: 1.5rem; height: 1.5rem; }
svg.icon-2xl { width: 2rem; height: 2rem; }
