/* ============================================================
   LicenseCaadtek — Master Stylesheet
   Dark, premium SaaS UI inspired by LicenseGate + LemonSqueezy
   ============================================================ */

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

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --primary:        #7c3aed;
  --primary-light:  #a78bfa;
  --primary-dark:   #5b21b6;
  --accent:         #06b6d4;
  --accent-light:   #67e8f9;
  --success:        #10b981;
  --warning:        #f59e0b;
  --danger:         #ef4444;
  --danger-light:   #fca5a5;

  --bg-base:        #070711;
  --bg-surface:     #0e0e20;
  --bg-card:        #13132a;
  --bg-card-hover:  #1a1a38;
  --bg-input:       #0a0a1e;
  --bg-code:        #0d0d1e;

  --border:         #1e1e42;
  --border-focus:   #7c3aed;
  --border-light:   #2a2a5a;

  --text-primary:   #f0f0ff;
  --text-secondary: #a0a0cc;
  --text-muted:     #606090;
  --text-code:      #a78bfa;

  --gradient-brand: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --gradient-card:  linear-gradient(145deg, #13132a 0%, #0e0e20 100%);
  --gradient-glow:  radial-gradient(ellipse at top, #7c3aed22 0%, transparent 70%);

  --shadow-sm:   0 1px 3px rgba(0,0,0,.5);
  --shadow-md:   0 4px 16px rgba(0,0,0,.6);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.8);
  --shadow-glow: 0 0 40px rgba(124,58,237,.25);
  --shadow-card: 0 2px 24px rgba(0,0,0,.5);

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --transition: all .2s cubic-bezier(.4,0,.2,1);
  --transition-slow: all .4s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-light); }

img { max-width: 100%; height: auto; display: block; }
code, pre { font-family: var(--font-mono); }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Selection ─────────────────────────────────────────────── */
::selection { background: #7c3aed44; color: var(--primary-light); }

/* ── Layout ────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.container-xs { max-width: 480px; margin: 0 auto; padding: 0 24px; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 70px;
  background: rgba(7,7,17,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 800; color: var(--text-primary);
  letter-spacing: -.5px;
}
.nav-logo svg { width: 32px; height: 32px; }
.nav-logo span { background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 8px 16px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-links a.active { color: var(--primary-light); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--text-primary); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: var(--transition);
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: var(--gradient-brand); color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,.4);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(124,58,237,.6);
  color: #fff;
}
.btn-outline {
  background: transparent; color: var(--primary-light);
  border: 1px solid var(--primary);
}
.btn-outline:hover:not(:disabled) {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,.4);
}
.btn-ghost {
  background: var(--bg-card); color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover:not(:disabled) { background: var(--bg-card-hover); color: var(--text-primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #dc2626; box-shadow: 0 4px 16px rgba(239,68,68,.4); }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius-md); }
.btn-xl { padding: 18px 40px; font-size: 17px; border-radius: var(--radius-md); }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }
.btn-icon svg { width: 18px; height: 18px; }
.btn-block { width: 100%; display: flex; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}
.card:hover { border-color: var(--border-light); box-shadow: var(--shadow-card); }
.card-glass {
  background: rgba(19,19,42,.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.card-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.card-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── Stat Cards ────────────────────────────────────────────── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative; overflow: hidden;
  transition: var(--transition);
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-brand);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); border-color: var(--primary); }
.stat-card .stat-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: rgba(124,58,237,.15); display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px;
}
.stat-card .stat-icon svg { width: 22px; height: 22px; color: var(--primary-light); }
.stat-value { font-size: 32px; font-weight: 800; color: var(--text-primary); letter-spacing: -1px; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }
.stat-change { font-size: 12px; margin-top: 8px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 8px; letter-spacing: .3px;
}
.form-label span { color: var(--danger); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 16px;
  background: var(--bg-input); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14px;
  transition: var(--transition); outline: none;
  appearance: none; -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(124,58,237,.2);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a78bfa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 36px; cursor: pointer;
}
.form-select option { background: var(--bg-surface); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-input-icon { position: relative; }
.form-input-icon svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-muted); pointer-events: none; }
.form-input-icon .form-input { padding-left: 40px; }

/* ── Tables ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--bg-surface); }
thead th {
  padding: 14px 16px; text-align: left;
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
}
tbody tr { border-bottom: 1px solid var(--border); transition: var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-card-hover); }
tbody td { padding: 14px 16px; font-size: 14px; color: var(--text-secondary); vertical-align: middle; }
tbody td.primary { color: var(--text-primary); font-weight: 500; }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-active   { background: rgba(16,185,129,.15); color: var(--success); }
.badge-expired  { background: rgba(245,158,11,.15);  color: var(--warning); }
.badge-revoked  { background: rgba(239,68,68,.15);   color: var(--danger); }
.badge-suspended{ background: rgba(100,100,180,.15); color: #a0a0ff; }
.badge-trial    { background: rgba(6,182,212,.15);   color: var(--accent); }
.badge-primary  { background: rgba(124,58,237,.2);   color: var(--primary-light); }
.badge-success  { background: rgba(16,185,129,.15);  color: var(--success); }

/* ── Code Block ────────────────────────────────────────────── */
.code-block {
  background: var(--bg-code); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-code);
  overflow-x: auto; position: relative; line-height: 1.7;
}
.code-block .copy-btn {
  position: absolute; top: 12px; right: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); padding: 4px 10px; border-radius: var(--radius-sm);
  font-size: 11px; font-family: var(--font-body); cursor: pointer; transition: var(--transition);
}
.code-block .copy-btn:hover { color: var(--primary-light); border-color: var(--primary); }

/* ── Alerts / Notifications ────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--radius-md);
  font-size: 14px; border-left: 3px solid; display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 16px;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: rgba(16,185,129,.1);  border-color: var(--success);  color: #6ee7b7; }
.alert-error    { background: rgba(239,68,68,.1);   border-color: var(--danger);   color: var(--danger-light); }
.alert-warning  { background: rgba(245,158,11,.1);  border-color: var(--warning);  color: #fcd34d; }
.alert-info     { background: rgba(124,58,237,.1);  border-color: var(--primary);  color: var(--primary-light); }

/* ── Toast Notifications ───────────────────────────────────── */
#toast-container {
  position: fixed; top: 88px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px 18px;
  font-size: 14px; color: var(--text-primary);
  box-shadow: var(--shadow-lg); pointer-events: all;
  display: flex; align-items: center; gap: 10px;
  animation: toastIn .3s cubic-bezier(.4,0,.2,1);
  max-width: 360px;
}
.toast.toast-success { border-left: 3px solid var(--success); }
.toast.toast-error   { border-left: 3px solid var(--danger); }
.toast.toast-info    { border-left: 3px solid var(--primary); }
.toast.hide { animation: toastOut .3s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes toastIn  { from { opacity:0; transform:translateX(100%); } to { opacity:1; transform:translateX(0); } }
@keyframes toastOut { from { opacity:1; transform:translateX(0); } to { opacity:0; transform:translateX(100%); } }

/* ── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.8);
  backdrop-filter: blur(6px); z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-xl); padding: 32px;
  width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto;
  transform: scale(.95) translateY(20px); transition: var(--transition);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-size: 20px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; transition: var(--transition); padding: 4px; }
.modal-close:hover { color: var(--text-primary); }
.modal-close svg { width: 20px; height: 20px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ── Sidebar Layout (Dashboard) ────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; padding-top: 70px; }
.sidebar {
  width: 240px; min-height: calc(100vh - 70px);
  background: var(--bg-surface); border-right: 1px solid var(--border);
  position: fixed; top: 70px; left: 0; bottom: 0;
  overflow-y: auto; padding: 24px 0; display: flex; flex-direction: column;
}
.sidebar-section { margin-bottom: 8px; }
.sidebar-label {
  font-size: 10px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 0 20px; margin-bottom: 6px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; color: var(--text-secondary); font-size: 14px; font-weight: 500;
  transition: var(--transition); border-left: 2px solid transparent;
  text-decoration: none;
}
.sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-link:hover { color: var(--text-primary); background: rgba(124,58,237,.08); }
.sidebar-link.active {
  color: var(--primary-light); background: rgba(124,58,237,.12);
  border-left-color: var(--primary);
}
.sidebar-footer { margin-top: auto; padding: 20px; border-top: 1px solid var(--border); }

.main-content { margin-left: 240px; flex: 1; padding: 32px; min-height: calc(100vh - 70px); }
.page-header { margin-bottom: 32px; }
.page-title { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.page-subtitle { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 120px 0 80px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient-glow);
  pointer-events: none;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px; opacity: .3;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.3);
  color: var(--primary-light); padding: 6px 16px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600; margin-bottom: 28px;
}
.hero-badge svg { width: 14px; height: 14px; }
.hero-title {
  font-size: clamp(40px, 6vw, 72px); font-weight: 900;
  line-height: 1.05; letter-spacing: -2px; margin-bottom: 24px;
}
.hero-title .gradient-text {
  background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 18px; color: var(--text-secondary); max-width: 580px; line-height: 1.7;
  margin-bottom: 40px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: flex; gap: 48px; }
.hero-stat-value { font-size: 28px; font-weight: 800; }
.hero-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── Feature Cards ─────────────────────────────────────────── */
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: var(--transition);
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(124,58,237,.08), transparent 60%);
}
.feature-card:hover { border-color: rgba(124,58,237,.3); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: rgba(124,58,237,.15); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; border: 1px solid rgba(124,58,237,.2);
}
.feature-icon svg { width: 26px; height: 26px; color: var(--primary-light); }
.feature-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ── Pricing Cards ─────────────────────────────────────────── */
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px; position: relative; overflow: hidden;
  transition: var(--transition);
}
.pricing-card.popular {
  border-color: var(--primary); box-shadow: var(--shadow-glow);
}
.pricing-card.popular::before {
  content: '★ Most Popular';
  position: absolute; top: 20px; right: -28px;
  background: var(--gradient-brand); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  padding: 5px 40px; transform: rotate(45deg);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-name { font-size: 14px; font-weight: 700; color: var(--primary-light); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.pricing-price { font-size: 48px; font-weight: 900; letter-spacing: -2px; margin-bottom: 4px; }
.pricing-price span { font-size: 18px; font-weight: 500; color: var(--text-muted); }
.pricing-period { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-features li {
  padding: 8px 0; font-size: 14px; color: var(--text-secondary);
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li svg { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; }
.pricing-features li.no svg { color: var(--text-muted); }
.pricing-features li.no { color: var(--text-muted); }

/* ── License Type Grid ─────────────────────────────────────── */
.license-type-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 700; border: 1px solid;
}
.lt-perpetual   { background: rgba(16,185,129,.1);  border-color: var(--success);  color: var(--success); }
.lt-subscription{ background: rgba(124,58,237,.1);  border-color: var(--primary);  color: var(--primary-light); }
.lt-trial       { background: rgba(6,182,212,.1);   border-color: var(--accent);   color: var(--accent); }
.lt-node_locked { background: rgba(245,158,11,.1);  border-color: var(--warning);  color: var(--warning); }
.lt-floating    { background: rgba(59,130,246,.1);  border-color: #3b82f6;         color: #93c5fd; }
.lt-feature_gated{ background: rgba(236,72,153,.1); border-color: #ec4899;         color: #f9a8d4; }
.lt-volume      { background: rgba(99,102,241,.1);  border-color: #6366f1;         color: #a5b4fc; }

/* ── API Docs ──────────────────────────────────────────────── */
.api-method {
  display: inline-block; padding: 3px 10px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 800; font-family: var(--font-mono);
}
.method-post   { background: rgba(16,185,129,.15); color: var(--success); }
.method-get    { background: rgba(6,182,212,.15);  color: var(--accent); }
.method-delete { background: rgba(239,68,68,.15);  color: var(--danger); }
.endpoint-row {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  margin-bottom: 12px; overflow: hidden; transition: var(--transition);
}
.endpoint-header {
  padding: 16px 20px; cursor: pointer; display: flex; align-items: center; gap: 12px;
  background: var(--bg-surface); transition: var(--transition);
}
.endpoint-header:hover { background: var(--bg-card); }
.endpoint-header .endpoint-path { font-family: var(--font-mono); font-size: 14px; color: var(--text-primary); }
.endpoint-body { padding: 20px; background: var(--bg-card); border-top: 1px solid var(--border); display: none; }
.endpoint-row.open .endpoint-body { display: block; }

/* ── Tabs ──────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; background: var(--bg-surface); border-radius: var(--radius-md); padding: 4px; margin-bottom: 24px; }
.tab-btn {
  flex: 1; padding: 8px 16px; border: none; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-muted); font-family: var(--font-body);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.tab-btn.active { background: var(--bg-card); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Progress Bar ──────────────────────────────────────────── */
.progress { background: var(--bg-surface); border-radius: var(--radius-full); height: 6px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--gradient-brand); border-radius: var(--radius-full); transition: width .5s cubic-bezier(.4,0,.2,1); }

/* ── Toggle / Switch ───────────────────────────────────────── */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; cursor: pointer; }
.toggle input { display: none; }
.toggle-slider {
  position: absolute; inset: 0; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--radius-full); transition: var(--transition);
}
.toggle-slider::before {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; background: var(--text-muted);
  border-radius: 50%; transition: var(--transition);
}
.toggle input:checked + .toggle-slider { background: var(--primary); border-color: var(--primary); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); background: #fff; }

/* ── Divider ───────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 13px; margin: 24px 0; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Pagination ────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 6px; }
.page-btn {
  padding: 8px 14px; border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-secondary); border-radius: var(--radius-sm); font-size: 13px; cursor: pointer;
  transition: var(--transition); text-decoration: none; display: inline-block;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary-light); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Skeleton Loader ───────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%; border-radius: var(--radius-sm);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Landing Page Sections ─────────────────────────────────── */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--primary-light); text-transform: uppercase; letter-spacing: 2px;
  background: rgba(124,58,237,.1); border: 1px solid rgba(124,58,237,.2);
  padding: 4px 14px; border-radius: var(--radius-full); margin-bottom: 16px;
}
.section-title { font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin-bottom: 16px; }
.section-subtitle { font-size: 16px; color: var(--text-secondary); max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--bg-surface); border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; max-width: 260px; }
.footer-col-title { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: var(--text-muted); }

/* ── Dashboard Quick Stats Row ─────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: var(--transition); z-index: 999; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 20px 16px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .pricing-card.popular::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { letter-spacing: -1px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-xl { width: 100%; }
  .modal { padding: 24px 20px; }
}

/* ── Utility Classes ───────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-primary{ color: var(--text-primary); }
.text-success{ color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning{ color: var(--warning); }
.text-accent { color: var(--accent); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.text-lg { font-size: 18px; }
.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.p-0 { padding: 0 !important; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gradient-text { background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.glow { box-shadow: var(--shadow-glow); }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeIn   { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes scaleIn  { from { opacity:0; transform:scale(.95); } to { opacity:1; transform:scale(1); } }
@keyframes float    { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-8px); } }
@keyframes pulse    { 0%,100% { opacity:1; } 50% { opacity:.6; } }
@keyframes spin     { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }
@keyframes glowPulse{ 0%,100% { box-shadow:var(--shadow-glow); } 50% { box-shadow:0 0 60px rgba(124,58,237,.5); } }

.animate-fade-in  { animation: fadeIn .5s cubic-bezier(.4,0,.2,1) both; }
.animate-scale-in { animation: scaleIn .3s cubic-bezier(.4,0,.2,1) both; }
.animate-float    { animation: float 4s ease-in-out infinite; }
.animate-spin     { animation: spin 1s linear infinite; }
.animate-pulse    { animation: pulse 2s ease-in-out infinite; }
.animate-glow     { animation: glowPulse 3s ease-in-out infinite; }

.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .5s; }
