/* ============================================================
   SFB App — Global Stylesheet
   Tema: Dark Premium Trading / Tech
   ============================================================ */

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

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg-base:        #060c14;
  --bg-surface:     #0b1626;
  --bg-card:        #0f1e35;
  --bg-card-hover:  #142540;
  --border:         rgba(0, 212, 255, 0.12);
  --border-strong:  rgba(0, 212, 255, 0.3);

  --cyan:           #00d4ff;
  --cyan-dim:       rgba(0, 212, 255, 0.15);
  --cyan-glow:      rgba(0, 212, 255, 0.35);
  --gold:           #f0b429;
  --gold-dim:       rgba(240, 180, 41, 0.15);
  --red:            #ff4e6a;

  --text-primary:   #e8edf5;
  --text-secondary: #7a9bbf;
  --text-muted:     #3d5a7a;

  --font-display:   'Rajdhani', sans-serif;
  --font-body:      'Outfit', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;

  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;

  --shadow-card:    0 4px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow:    0 0 40px rgba(0, 212, 255, 0.15);

  --transition:     all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.text-mono { font-family: var(--font-mono); }
.text-cyan  { color: var(--cyan); }
.text-gold  { color: var(--gold); }
.text-muted { color: var(--text-secondary); }

/* ── Layout Helpers ────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--cyan);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 20px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
  line-height: 1.7;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--cyan);
  color: var(--bg-base);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--bg-base);
  box-shadow: 0 0 24px rgba(240, 180, 41, 0.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(240, 180, 41, 0.5);
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.card:hover::before { opacity: 1; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
  background: #0d1f38;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { appearance: none; cursor: pointer; }
.form-group select option { background: var(--bg-surface); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--cyan);
  cursor: pointer;
  margin-top: 2px;
}
.form-check a { color: var(--cyan); }
.form-check a:hover { text-decoration: underline; }

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(6, 12, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-logo span { color: var(--cyan); }
.navbar-logo .logo-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  background: var(--cyan-dim);
  border: 1px solid var(--border-strong);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 4px;
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar-nav a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.navbar-nav a:hover { color: var(--text-primary); }
.navbar-actions { display: flex; gap: 12px; align-items: center; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-glow-1 {
  position: absolute;
  width: 700px; height: 700px;
  top: -100px; left: -200px;
  background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-glow-2 {
  position: absolute;
  width: 500px; height: 500px;
  bottom: -100px; right: -100px;
  background: radial-gradient(circle, rgba(240,180,41,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-chart-lines {
  position: absolute;
  right: 0; bottom: 0;
  width: 55%; height: 100%;
  opacity: 0.07;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(0,212,255,0.5) 40px,
      rgba(0,212,255,0.5) 41px
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
}
.hero-eyebrow::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--cyan);
}
.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}
.hero-title em {
  font-style: normal;
  color: var(--cyan);
  display: block;
}
.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.3s forwards;
}
.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.4s forwards;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.5s forwards;
}
.hero-stats {
  margin-top: 64px;
  display: flex;
  gap: 40px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.6s forwards;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 16px;
  border-left: 2px solid var(--border-strong);
}
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cyan);
}
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Features Grid ─────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.feature-card {
  padding: 32px 28px;
}
.feature-icon {
  width: 48px; height: 48px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.feature-title {
  font-size: 1.15rem;
  font-family: var(--font-display);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Who Is It For ─────────────────────────────────────────── */
.audience-section { background: var(--bg-surface); }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 56px;
}
.audience-card {
  padding: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.audience-check {
  width: 32px; height: 32px;
  min-width: 32px;
  background: rgba(0,212,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 16px;
  margin-top: 2px;
}
.audience-title {
  font-size: 1rem;
  font-family: var(--font-display);
  margin-bottom: 6px;
}
.audience-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Videos ────────────────────────────────────────────────── */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.video-card {
  overflow: hidden;
}
.video-thumb {
  aspect-ratio: 16/9;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
}
.video-thumb iframe {
  width: 100%; height: 100%;
  border: none;
}
.video-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #0a1628 0%, #0f2040 100%);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.video-thumb-placeholder:hover { background: var(--bg-card-hover); }
.video-play-icon {
  width: 56px; height: 56px;
  background: var(--cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--bg-base);
  box-shadow: 0 0 32px rgba(0,212,255,0.4);
}
.video-thumb-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.video-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.video-desc {
  font-size: 13px;
  color: var(--text-secondary);
}
.video-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.badge-demo { background: var(--cyan-dim); color: var(--cyan); border: 1px solid var(--border-strong); }
.badge-tutorial { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(240,180,41,0.3); }

/* ── Versions / Plans ──────────────────────────────────────── */
.versions-section { background: var(--bg-surface); }
.versions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.version-card {
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
}
.version-card.featured {
  border-color: var(--cyan);
  box-shadow: 0 0 40px rgba(0,212,255,0.15);
}
.version-card.featured::before { opacity: 1; }
.version-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  display: inline-block;
}
.badge-free  { background: rgba(122,155,191,0.15); color: var(--text-secondary); border: 1px solid var(--border); }
.badge-trial { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(240,180,41,0.3); }
.badge-full  { background: var(--cyan-dim); color: var(--cyan); border: 1px solid var(--border-strong); }
.version-name {
  font-size: 1.7rem;
  margin-bottom: 8px;
}
.version-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}
.version-features {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.version-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.version-feature .check { color: var(--cyan); font-size: 15px; }
.version-feature .cross { color: var(--text-muted); font-size: 15px; }
.recommended-tag {
  position: absolute;
  top: 16px; right: -28px;
  background: var(--cyan);
  color: var(--bg-base);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 40px;
  transform: rotate(45deg);
  font-weight: 700;
}

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-list {
  max-width: 800px;
  margin: 56px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--border-strong); }
.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  user-select: none;
}
.faq-question:hover { color: var(--cyan); }
.faq-chevron {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--cyan); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.75;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ── Lead Form Section ─────────────────────────────────────── */
.form-section {
  background: var(--bg-surface);
}
.form-container {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.form-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}
.form-header { margin-bottom: 36px; }
.form-header h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.form-header p {
  font-size: 14px;
  color: var(--text-secondary);
}
.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
}
.form-status.success {
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.3);
  color: var(--cyan);
  display: block;
}
.form-status.error {
  background: rgba(255,78,106,0.1);
  border: 1px solid rgba(255,78,106,0.3);
  color: var(--red);
  display: block;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 16px;
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-secondary); }
.footer-bottom a:hover { color: var(--cyan); }

/* ── Dividers & Decorations ────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}
.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--cyan);
  opacity: 0.2;
  animation: scanLine 3s linear infinite;
}
@keyframes scanLine {
  0%   { top: 0; }
  100% { top: 100%; }
}
.corner-mark {
  position: absolute;
  width: 16px; height: 16px;
  border-color: var(--border-strong);
  border-style: solid;
  opacity: 0.6;
}
.corner-mark.tl { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
.corner-mark.tr { top: 12px; right: 12px; border-width: 1px 1px 0 0; }
.corner-mark.bl { bottom: 12px; left: 12px; border-width: 0 0 1px 1px; }
.corner-mark.br { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Status Indicator ──────────────────────────────────────── */
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  animation: pulse 2s ease infinite;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
}

/* ── Internal Area / Dashboard ─────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 260px;
  height: 100vh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 50;
  transition: transform 0.3s ease;
}
.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}
.sidebar-logo span { color: var(--cyan); }
.sidebar-nav {
  flex: 1;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  transition: var(--transition);
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--cyan-dim);
  color: var(--cyan);
}
.sidebar-nav a.active {
  border-left: 2px solid var(--cyan);
}
.sidebar-nav .nav-icon { font-size: 18px; width: 24px; text-align: center; }
.sidebar-nav .nav-section {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 16px 16px 6px;
}
.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}
.sidebar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cyan-dim);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--cyan);
}
.sidebar-user-info { flex: 1; overflow: hidden; }
.sidebar-user-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.sidebar-logout {
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}
.sidebar-logout:hover { color: var(--red); }

.dashboard-layout {
  margin-left: 260px;
  min-height: 100vh;
  background: var(--bg-base);
}
.dashboard-header {
  position: sticky;
  top: 0;
  background: rgba(6, 12, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 40;
}
.dashboard-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}
.dashboard-content {
  padding: 32px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.stat-card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.stat-card-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
}
.stat-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── Login Page ────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.login-glow {
  position: absolute;
  width: 600px; height: 600px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.login-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-card);
}
.login-logo {
  text-align: center;
  margin-bottom: 36px;
}
.login-logo h1 {
  font-size: 2rem;
  margin-bottom: 4px;
}
.login-logo h1 span { color: var(--cyan); }
.login-logo p {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.login-box h2 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  text-align: center;
}
.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-secondary);
}
.login-footer a { color: var(--cyan); }

/* ── Tables ────────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
thead th {
  background: var(--bg-surface);
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
tbody tr:hover { background: var(--bg-card); }
tbody tr:last-child { border-bottom: none; }
tbody td {
  padding: 14px 16px;
  color: var(--text-secondary);
}
tbody td:first-child { color: var(--text-primary); }

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-secondary); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span { color: var(--text-primary); }

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

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 28px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .navbar-nav { display: none; }
  .navbar-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(6,12,20,0.98);
    backdrop-filter: blur(20px);
    padding: 40px 24px;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }
  .navbar-nav.open a { font-size: 1.5rem; }
  .menu-toggle { display: flex; }
  .navbar-actions .btn { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .form-container { padding: 28px 20px; }
  .hero-actions { flex-direction: column; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .dashboard-layout { margin-left: 0; }
  .dashboard-content { padding: 20px 16px; }
  .versions-grid, .features-grid { grid-template-columns: 1fr; }
}
