/* =========================================
   CaptchaVN - Dark Cyber Aesthetic
   ========================================= */

:root {
  --bg: #080b14;
  --bg2: #0d1220;
  --bg3: #111827;
  --surface: #141c2e;
  --surface2: #1a2540;
  --border: rgba(99,179,237,0.12);
  --border2: rgba(99,179,237,0.25);
  --primary: #3b82f6;
  --primary-glow: rgba(59,130,246,0.35);
  --accent: #06b6d4;
  --accent2: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text: #e2e8f0;
  --text2: #94a3b8;
  --text3: #64748b;
  --font: 'Sora', sans-serif;
  --mono: 'Space Mono', monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(59,130,246,0.15);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

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

/* ---- Background ---- */
.bg-particles {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 20% 20%, rgba(59,130,246,0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 80%, rgba(139,92,246,0.05) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 50%, rgba(6,182,212,0.03) 0%, transparent 60%);
}

.bg-glow {
  position: fixed; border-radius: 50%; pointer-events: none; filter: blur(120px); z-index: 0;
}
.bg-glow-1 {
  width: 600px; height: 600px; background: rgba(59,130,246,0.06);
  top: -200px; right: -200px;
}
.bg-glow-2 {
  width: 500px; height: 500px; background: rgba(139,92,246,0.05);
  bottom: -100px; left: -200px;
}

/* ---- Grid & Container ---- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---- Navbar ---- */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(8,11,20,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.navbar .container {
  display: flex; align-items: center; gap: 24px;
  height: 70px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: white;
  box-shadow: 0 0 20px var(--primary-glow);
}
.logo-text { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.logo-dot { color: var(--accent); }

.navbar-menu {
  display: flex; align-items: center; gap: 4px;
  flex: 1;
}
.nav-link {
  color: var(--text2); text-decoration: none;
  padding: 8px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--text); background: var(--surface);
}
.nav-link.active { color: var(--primary); }
.admin-link { color: var(--warning) !important; }
.nav-divider { width: 1px; height: 20px; background: var(--border2); margin: 0 8px; }

.navbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.user-balance {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600; color: var(--success);
}

.user-dropdown { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 6px 12px 6px 6px;
  border-radius: 20px; cursor: pointer;
  font-family: var(--font); font-size: 14px; font-weight: 500;
  transition: var(--transition);
}
.user-btn:hover { border-color: var(--primary); }
.user-avatar {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: white;
}
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); min-width: 200px;
  box-shadow: var(--shadow);
  display: none; z-index: 100;
  overflow: hidden;
}
.dropdown-menu.show { display: block; animation: fadeDown 0.2s ease; }
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; color: var(--text2);
  text-decoration: none; font-size: 14px;
  transition: var(--transition);
}
.dropdown-menu a:hover { background: var(--surface); color: var(--text); }
.dropdown-menu a i { width: 16px; text-align: center; }
.dropdown-menu a.text-danger { color: var(--danger); }
.dropdown-divider { border-top: 1px solid var(--border); margin: 4px 0; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  width: 22px; height: 2px; background: var(--text2);
  border-radius: 2px; transition: var(--transition);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: 10px;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #2563eb);
  color: white; box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--primary-glow); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border2);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(59,130,246,0.08); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), #0891b2);
  color: white; box-shadow: 0 4px 15px rgba(6,182,212,0.3);
}
.btn-accent:hover { transform: translateY(-2px); }
.btn-success {
  background: linear-gradient(135deg, var(--success), #059669);
  color: white; box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}
.btn-danger { background: linear-gradient(135deg, var(--danger), #dc2626); color: white; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { border-color: var(--border2); box-shadow: var(--shadow-glow); }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.card-title {
  font-size: 16px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.card-title i { color: var(--primary); }

/* ---- Forms ---- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text2); margin-bottom: 8px; letter-spacing: 0.3px;
}
.form-control {
  width: 100%;
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text); border-radius: 10px;
  padding: 11px 14px; font-size: 14px;
  font-family: var(--font);
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-control::placeholder { color: var(--text3); }
.form-control.mono { font-family: var(--mono); font-size: 13px; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 12px; color: var(--text3); margin-top: 5px; }
.input-group { position: relative; }
.input-group .form-control { padding-right: 46px; }
.input-group .input-action {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text3); cursor: pointer;
  font-size: 14px; transition: var(--transition);
}
.input-group .input-action:hover { color: var(--primary); }

/* ---- Alerts ---- */
.alert {
  padding: 12px 16px; border-radius: 10px;
  font-size: 14px; margin-bottom: 16px;
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid transparent;
}
.alert i { margin-top: 1px; flex-shrink: 0; }
.alert-success { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); color: #34d399; }
.alert-danger { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #f87171; }
.alert-warning { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: #fbbf24; }
.alert-info { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); color: #60a5fa; }

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
}
.badge-success { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.badge-danger { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.badge-warning { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.badge-info { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.badge-purple { background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.3); }

/* ---- Tables ---- */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); }
table {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
thead th {
  background: var(--bg2);
  color: var(--text3); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text2); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,0.02); color: var(--text); }
.mono-cell { font-family: var(--mono); font-size: 12px; }

/* ---- Section ---- */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3);
  color: var(--primary); padding: 5px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 16px;
}
.section-title {
  font-size: 40px; font-weight: 800;
  background: linear-gradient(135deg, var(--text) 30%, var(--text2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; letter-spacing: -1px;
  line-height: 1.15; margin-bottom: 16px;
}
.section-sub { font-size: 17px; color: var(--text2); max-width: 560px; margin: 0 auto; }

/* ---- Stats Row ---- */
.stats-row {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 30px;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 24px;
  display: flex; align-items: center; gap: 16px;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.stat-icon.blue { background: rgba(59,130,246,0.15); color: var(--primary); }
.stat-icon.green { background: rgba(16,185,129,0.15); color: var(--success); }
.stat-icon.purple { background: rgba(139,92,246,0.15); color: var(--accent2); }
.stat-icon.cyan { background: rgba(6,182,212,0.15); color: var(--accent); }
.stat-icon.orange { background: rgba(245,158,11,0.15); color: var(--warning); }
.stat-num { font-size: 24px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text3); margin-top: 4px; }
.stat-change { font-size: 12px; margin-top: 4px; font-weight: 600; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ---- Hero ---- */
.hero {
  min-height: calc(100vh - 70px);
  display: flex; align-items: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.25);
  color: var(--accent); padding: 6px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 24px;
}
.hero-title {
  font-size: 58px; font-weight: 800; line-height: 1.08;
  letter-spacing: -2px; margin-bottom: 20px;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { font-size: 18px; color: var(--text2); line-height: 1.7; margin-bottom: 36px; max-width: 480px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-metrics { display: flex; gap: 32px; }
.hero-metric .num { font-size: 28px; font-weight: 800; color: var(--text); font-family: var(--mono); }
.hero-metric .lbl { font-size: 13px; color: var(--text3); margin-top: 2px; }

/* Hero visual */
.hero-visual { position: relative; }
.hero-terminal {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(59,130,246,0.1);
}
.terminal-header {
  background: var(--bg3); padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.terminal-dot:nth-child(1) { background: #ef4444; }
.terminal-dot:nth-child(2) { background: #f59e0b; }
.terminal-dot:nth-child(3) { background: #10b981; }
.terminal-title { font-family: var(--mono); font-size: 12px; color: var(--text3); margin-left: 8px; }
.terminal-body { padding: 20px; font-family: var(--mono); font-size: 13px; line-height: 1.8; }
.t-comment { color: #4a5568; }
.t-key { color: #ed8936; }
.t-val { color: #68d391; }
.t-str { color: #63b3ed; }
.t-brace { color: #a0aec0; }
.t-cursor {
  display: inline-block; width: 8px; height: 14px;
  background: var(--primary); vertical-align: middle;
  animation: blink 1s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ---- Service cards ---- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.05), transparent);
  opacity: 0; transition: var(--transition);
}
.service-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.service-card:hover::before { opacity: 1; }
.service-logo {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px; position: relative;
}
.service-logo.bidv { background: linear-gradient(135deg, rgba(29,78,216,0.3), rgba(37,99,235,0.15)); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.service-logo.mb { background: linear-gradient(135deg, rgba(5,150,105,0.3), rgba(16,185,129,0.15)); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.service-logo.vcb { background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(139,92,246,0.15)); color: #a78bfa; border: 1px solid rgba(139,92,246,0.3); }
.service-name { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.service-desc { font-size: 14px; color: var(--text2); margin-bottom: 20px; line-height: 1.6; }
.service-price {
  font-family: var(--mono); font-size: 24px; font-weight: 700;
  color: var(--primary); margin-bottom: 4px;
}
.service-price-unit { font-size: 12px; color: var(--text3); }
.service-meta { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.service-tag {
  font-size: 12px; color: var(--text3);
  background: var(--bg2); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 6px; display: flex; align-items: center; gap: 5px;
}
.service-tag i { color: var(--success); }

/* ---- Dashboard Layout ---- */
.dashboard {
  display: grid; grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 70px);
}
.sidebar {
  background: var(--bg2); border-right: 1px solid var(--border);
  padding: 24px 12px; position: sticky; top: 70px;
  height: calc(100vh - 70px); overflow-y: auto;
}
.sidebar-section { margin-bottom: 8px; }
.sidebar-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text3); padding: 8px 12px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  color: var(--text2); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: var(--transition); margin-bottom: 2px;
}
.sidebar-link i { width: 18px; text-align: center; font-size: 15px; }
.sidebar-link:hover, .sidebar-link.active {
  background: var(--surface); color: var(--text);
}
.sidebar-link.active { color: var(--primary); }
.sidebar-badge {
  margin-left: auto; background: var(--danger);
  color: white; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 10px;
}
.main-content { padding: 30px; min-width: 0; }

/* ---- Page Header ---- */
.page-header { margin-bottom: 30px; }
.page-title { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.page-sub { font-size: 14px; color: var(--text2); margin-top: 4px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text3); margin-bottom: 12px;
}
.breadcrumb a { color: var(--text3); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border2); }

/* ---- Auth pages ---- */
.auth-page {
  min-height: calc(100vh - 70px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.auth-box {
  width: 100%; max-width: 440px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-logo { font-size: 36px; margin-bottom: 12px; }
.auth-title { font-size: 24px; font-weight: 800; }
.auth-sub { font-size: 14px; color: var(--text2); margin-top: 6px; }
.auth-footer {
  text-align: center; margin-top: 24px;
  font-size: 14px; color: var(--text2);
}
.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* ---- Code blocks ---- */
.code-block {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); font-family: var(--mono);
  font-size: 13px; line-height: 1.7; overflow: hidden;
}
.code-header {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg3); padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.code-lang { font-size: 12px; color: var(--text3); font-weight: 600; }
.code-copy {
  background: none; border: none; color: var(--text3); cursor: pointer;
  font-size: 13px; display: flex; align-items: center; gap: 5px;
  transition: var(--transition); font-family: var(--font);
}
.code-copy:hover { color: var(--primary); }
.code-body { padding: 20px; overflow-x: auto; }
.code-body pre { margin: 0; }

/* ---- Progress bar ---- */
.progress { height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.progress-bar {
  height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px; transition: width 0.6s ease;
}

/* ---- Pagination ---- */
.pagination { display: flex; gap: 6px; align-items: center; margin-top: 20px; }
.page-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text2);
  text-decoration: none; font-size: 13px; font-weight: 600;
  transition: var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ---- Toast ---- */
.toast-container {
  position: fixed; top: 80px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 10px; padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow); font-size: 14px;
  max-width: 320px; min-width: 250px;
  animation: slideIn 0.3s ease;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--primary); }
@keyframes slideIn { from { transform: translateX(100%); opacity:0; } to { transform: translateX(0); opacity:1; } }
@keyframes fadeDown { from { opacity:0; transform: translateY(-8px); } to { opacity:1; transform: translateY(0); } }

/* ---- API Key display ---- */
.api-key-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px;
}
.api-key-text {
  flex: 1; font-family: var(--mono); font-size: 13px;
  color: var(--text2); word-break: break-all;
}
.api-key-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ---- How it works ---- */
.steps { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step {
  text-align: center; padding: 30px 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); position: relative;
  transition: var(--transition);
}
.step:hover { transform: translateY(-4px); border-color: var(--border2); }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: white;
  margin: 0 auto 16px;
}
.step-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 14px; color: var(--text2); }

/* ---- Footer ---- */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 60px 0 24px; margin-top: 80px; }
.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  margin-bottom: 48px;
}
.footer-brand .logo-text { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: var(--text2); line-height: 1.7; margin-bottom: 20px; }
.footer-stats { display: flex; gap: 24px; }
.fstat { text-align: center; }
.fstat-num { display: block; font-size: 22px; font-weight: 800; font-family: var(--mono); color: var(--primary); }
.fstat-label { font-size: 11px; color: var(--text3); }
.footer h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text); margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--text2); text-decoration: none; font-size: 14px; display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.footer ul a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; justify-content: space-between; font-size: 13px; color: var(--text3); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-title { font-size: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 768px) {
  .navbar-menu { display: none; }
  .navbar-menu.open {
    display: flex; flex-direction: column;
    position: fixed; top: 70px; left: 0; right: 0;
    background: var(--bg2); border-bottom: 1px solid var(--border);
    padding: 16px; z-index: 999; gap: 4px;
  }
  .hamburger { display: flex; }
  .hero-title { font-size: 34px; }
  .section-title { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .main-content { padding: 20px; }
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text3); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.fw-bold { font-weight: 700; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-16 { gap: 16px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.w-100 { width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---- Loading spinner ---- */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(59,130,246,0.3);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Empty state ---- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text3); }
.empty-state i { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 18px; color: var(--text2); margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

/* ---- Glow effect on active elements ---- */
.glow-primary { box-shadow: 0 0 20px var(--primary-glow); }
.glow-success { box-shadow: 0 0 20px rgba(16,185,129,0.3); }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); display: inline-block;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}
