/* ============================================================
   ResolveIQ Recovery Group — Premium Fintech Design System
   ============================================================ */

:root {
  /* Core palette */
  --bg: #060E1C;
  --bg-alt: #0A1628;
  --bg-card: #0D1E35;
  --surface: #111E35;
  --surface-2: #162845;
  --surface-3: #1E3358;

  /* Text */
  --fg: #EEF4FF;
  --fg-muted: #7A93B5;
  --fg-subtle: #4A6280;

  /* Accent — electric blue/cyan gradient (matches Q dissolve effect) */
  --accent: #00D4FF;
  --accent-2: #0EA5E9;
  --accent-dim: rgba(0, 212, 255, 0.18);
  --accent-glow: rgba(0, 212, 255, 0.35);
  --accent-border: rgba(0, 212, 255, 0.25);

  /* Secondary accent — electric blue */
  --accent-3: #2563EB;
  --accent-3-dim: rgba(37, 99, 235, 0.18);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #00D4FF 0%, #2563EB 100%);
  --grad-hero: linear-gradient(135deg, #00D4FF 0%, #7C3AED 50%, #2563EB 100%);
  --grad-glow: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
  --grad-card: linear-gradient(145deg, rgba(0, 212, 255, 0.06) 0%, rgba(37, 99, 235, 0.04) 100%);
  --grad-text: linear-gradient(135deg, #00D4FF, #7C3AED);

  /* Borders */
  --border: rgba(0, 212, 255, 0.1);
  --border-bright: rgba(0, 212, 255, 0.22);
  --border-muted: rgba(255, 255, 255, 0.06);

  /* Risk colors */
  --score-high: #22C55E;
  --score-mid: #EAB308;
  --score-low: #EF4444;
  --score-critical: #FF2D55;
  --cyan: #00D4FF;

  /* Fonts */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Transitions */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   BASE
   ============================================================ */

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

html { scroll-behavior: smooth; }

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

/* ============================================================
   GRID TEXTURE OVERLAY (fintech aesthetic)
   ============================================================ */

.grid-texture {
  position: relative;
}
.grid-texture::before {
  content: '';
  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;
  pointer-events: none;
  z-index: 0;
}
.grid-texture > * { position: relative; z-index: 1; }

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 14, 28, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.2px;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.85; }
.nav-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--grad-primary);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: 96px 32px 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: var(--grad-glow);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--accent-border);
  padding: 6px 14px;
  border-radius: 20px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--score-high);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 8px var(--score-high);
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--score-high); }
  50% { opacity: 0.5; box-shadow: 0 0 3px var(--score-high); }
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 400;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
}
.hero-headline em {
  font-style: italic;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::before { opacity: 1; }

/* Primary — electric blue gradient with glow */
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.3), 0 4px 16px rgba(0, 212, 255, 0.2);
}
.btn-primary::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
}
.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.6), 0 6px 28px rgba(0, 212, 255, 0.35);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.4), 0 2px 8px rgba(0, 212, 255, 0.2);
}

/* Outline — cyan border, transparent bg */
.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-bright);
}
.btn-outline::before {
  background: linear-gradient(135deg, rgba(0,212,255,0.06) 0%, transparent 60%);
}
.btn-outline:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.12), inset 0 0 16px rgba(0, 212, 255, 0.04);
  transform: translateY(-1px);
}

/* Ghost */
.btn-ghost {
  background: var(--surface);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--fg);
  border-color: var(--border-bright);
  background: var(--surface-2);
}

/* ============================================================
   WIDGETS / CARDS
   ============================================================ */

.hero-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.hero-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}
.hero-widget:hover {
  border-color: var(--border-bright);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.06);
}
.widget-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 16px;
}
.widget-bars { display: flex; flex-direction: column; gap: 10px; }
.widget-bar-row {
  display: grid;
  grid-template-columns: 1fr 120px 44px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.bar-name { color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; background: var(--score-high); transition: width 0.5s ease; }
.bar-fill.mid { background: var(--score-mid); }
.bar-fill.low { background: var(--score-low); }
.bar-score { font-weight: 600; text-align: right; }
.bar-score.high { color: var(--score-high); }
.bar-score.mid { color: var(--score-mid); }
.bar-score.low { color: var(--score-low); }
.widget-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-muted);
  font-size: 11px;
  color: var(--fg-muted);
}
.widget-tag {
  background: var(--accent-dim);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Hero visual */
.hero-visual { display: flex; justify-content: flex-end; }
.recovery-dashboard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 320px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.recovery-dashboard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}
.recovery-dashboard:hover {
  border-color: var(--border-bright);
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.08);
}
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.dash-title { font-size: 13px; font-weight: 600; }
.dash-period { font-size: 11px; color: var(--fg-muted); }
.dash-metric { margin-bottom: 20px; }
.dash-value {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--fg);
  display: block;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dash-label { font-size: 12px; color: var(--fg-muted); }
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dash-cell {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  border: 1px solid var(--border-muted);
  transition: border-color var(--transition);
}
.dash-cell:hover { border-color: var(--border); }
.dash-cell.accent {
  border: 1px solid var(--accent-border);
  background: var(--accent-dim);
}
.dash-cell.accent .cell-value { color: var(--accent); }
.cell-value { font-size: 18px; font-weight: 700; display: block; }
.cell-label { font-size: 10px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ============================================================
   STATS
   ============================================================ */

.stats-section {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 40px 32px;
  position: relative;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.stats-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}
.stat-item { text-align: center; padding: 0 24px; }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}
.stat-label { font-size: 12px; color: var(--fg-muted); line-height: 1.4; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ============================================================
   FEATURES
   ============================================================ */

.features {
  padding: 96px 32px;
  border-bottom: 1px solid var(--border);
}
.features-header { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 5px 14px;
  border-radius: 20px;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.15;
}
.section-sub { color: var(--fg-muted); font-size: 16px; line-height: 1.65; }

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.feature-card {
  background: var(--bg);
  padding: 40px 36px;
  border: 1px solid var(--border-muted);
  border-radius: 0;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover {
  background: var(--grad-card);
  border-color: var(--border-bright);
}
.feature-card:hover::before { opacity: 0.6; }
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
  transition: background var(--transition), box-shadow var(--transition);
}
.feature-card:hover .feature-icon {
  background: rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  transition: color var(--transition);
}
.feature-card:hover h3 { color: var(--accent); }
.feature-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ============================================================
   COMPLIANCE
   ============================================================ */

.compliance-section {
  padding: 96px 32px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.compliance-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.compliance-text h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.2;
}
.compliance-text > p {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.compliance-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.compliance-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.compliance-list svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }

/* Audit card */
.audit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.audit-card:hover {
  border-color: var(--border-bright);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.06);
}
.audit-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  background: var(--surface-2);
}
.audit-entries { display: flex; flex-direction: column; }
.audit-entry {
  display: grid;
  grid-template-columns: 140px 1fr 80px;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-muted);
  font-size: 12px;
  transition: background var(--transition);
}
.audit-entry:last-child { border-bottom: none; }
.audit-entry:hover { background: rgba(0, 212, 255, 0.02); }
.audit-time { color: var(--fg-muted); font-family: monospace; font-size: 11px; }
.audit-action { color: var(--fg); }
.audit-status { font-weight: 600; text-align: right; }
.audit-status.ok { color: var(--score-high); }
.audit-status.hold { color: var(--score-mid); }
.audit-status.review { color: var(--accent); }

/* ============================================================
   PROCESS
   ============================================================ */

.process-section {
  padding: 96px 32px;
  border-bottom: 1px solid var(--border);
}
.process-header { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.process-steps {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
.process-step {
  position: relative;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition-spring);
}
.process-step:hover {
  border-color: var(--border-bright);
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.08);
  transform: translateY(-4px);
}
.step-number {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.6;
  transition: opacity var(--transition);
}
.process-step:hover .step-number { opacity: 1; }
.process-step h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.process-step p { font-size: 14px; color: var(--fg-muted); line-height: 1.7; }

/* ============================================================
   CLOSING
   ============================================================ */

.closing {
  padding: 120px 32px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center bottom, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.closing-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.closing-icon {
  margin: 0 auto 32px;
  width: 80px;
  height: 80px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow var(--transition), transform var(--transition-spring);
}
.closing-icon:hover {
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.25);
  transform: scale(1.05);
}
.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.2;
}
.closing p { color: var(--fg-muted); font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
.closing-tagline {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px !important;
  margin-top: 24px !important;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  padding: 48px 32px;
  border-top: 1px solid var(--border);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
}
.footer-brand img {
  height: 28px;
  width: auto;
  object-fit: contain;
}
.footer-meta { font-size: 13px; color: var(--fg-muted); margin-bottom: 12px; }
.footer-legal { font-size: 11px; color: var(--fg-subtle); line-height: 1.6; }

/* ============================================================
   ADMIN PORTAL
   ============================================================ */

.admin-wrap {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  min-height: 100vh;
}
.admin-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}
.admin-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  font-size: 15px;
}
.admin-logo img {
  height: 32px;
  width: auto;
}
.admin-nav-link {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.admin-nav-link:hover, .admin-nav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.admin-header-right { font-size: 12px; color: var(--fg-muted); }

/* Page header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.page-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--fg);
}

/* Intel KPI row */
.intel-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.intel-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.intel-kpi::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}
.intel-kpi:hover {
  border-color: var(--border-bright);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.06);
}
.intel-kpi-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 10px;
}
.intel-kpi-value {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 6px;
}
.intel-kpi-value.green { color: var(--score-high); }
.intel-kpi-value.yellow { color: var(--score-mid); }
.intel-kpi-value.red { color: var(--score-low); }
.intel-kpi-sub { font-size: 11px; color: var(--fg-muted); }

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color var(--transition);
}
.stat-card:hover { border-color: var(--border-bright); }
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-muted); margin-bottom: 8px; }
.stat-value { font-family: var(--font-display); font-size: 24px; display: block; margin-bottom: 0; }
.stat-value.green { color: var(--score-high); }
.stat-value.yellow { color: var(--score-mid); }
.stat-value.red { color: var(--score-low); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: var(--border-bright);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.05);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.card-title { font-size: 13px; font-weight: 600; }

/* Three column layout */
.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

/* Milestone tracker */
.milestone-track {
  display: flex;
  align-items: center;
  gap: 0;
}
.milestone-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.milestone-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  background: var(--surface-2);
  border: 2px solid var(--border);
  color: var(--fg-muted);
  transition: all var(--transition);
}
.milestone-icon.done { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.milestone-icon.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 16px rgba(0, 212, 255, 0.4); }
.milestone-label { font-size: 11px; color: var(--fg-muted); text-align: center; white-space: nowrap; }
.milestone-line { flex: 1; height: 2px; background: var(--border); min-width: 40px; transition: background var(--transition); }
.milestone-line.done { background: var(--accent); }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
td {
  font-size: 13px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-muted);
  color: var(--fg);
  transition: background var(--transition);
}
tr:hover td { background: rgba(0, 212, 255, 0.02); }
tr:last-child td { border-bottom: none; }

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.03em;
}
.badge.low { background: rgba(34, 197, 94, 0.12); color: var(--score-high); border: 1px solid rgba(34, 197, 94, 0.2); }
.badge.medium { background: rgba(234, 179, 8, 0.12); color: var(--score-mid); border: 1px solid rgba(234, 179, 8, 0.2); }
.badge.high { background: rgba(239, 68, 68, 0.12); color: var(--score-low); border: 1px solid rgba(239, 68, 68, 0.2); }
.badge.critical { background: rgba(255, 45, 85, 0.12); color: var(--score-critical); border: 1px solid rgba(255, 45, 85, 0.2); }

/* Score bar */
.score-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.score-bar-track {
  flex: 1;
  height: 5px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--score-high);
  transition: width 0.5s ease;
}
.score-bar-fill.medium { background: var(--score-mid); }
.score-bar-fill.high { background: var(--score-low); }
.score-bar-fill.critical { background: var(--score-critical); }
.score-number { font-size: 12px; font-weight: 600; white-space: nowrap; }
.no-score { color: var(--fg-muted); }

/* Action tag */
.action-tag {
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Money */
.money { font-weight: 600; }

/* ============================================================
   SHARED UTILITIES
   ============================================================ */

/* Text muted */
.text-muted { color: var(--fg-muted); }
.text-accent { color: var(--accent); }
.text-green { color: var(--score-high); }
.text-yellow { color: var(--score-mid); }
.text-red { color: var(--score-low); }

/* Color variables for inline style compatibility */
:root {
  --text-muted: var(--fg-muted);
  --orange: #EAB308;
  --green: var(--score-high);
  --surface-2-override: var(--surface-2);
}

/* ============================================================
   ADMIN FORM ELEMENTS
   ============================================================ */

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--fg-subtle); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .intel-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .three-col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-inner, .compliance-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { justify-content: flex-start; }
  .recovery-dashboard { max-width: 100%; }
  .features-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .intel-kpi-row { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr; }
  .hero { padding: 64px 20px 48px; }
  .stats-section { padding: 32px 20px; }
  .features, .compliance-section, .process-section { padding: 64px 20px; }
  .closing { padding: 80px 20px; }
  .process-steps { grid-template-columns: 1fr; }
  .stat-divider { display: none; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 16px; }
  .audit-entry { grid-template-columns: 1fr; gap: 4px; }
  .audit-time { font-size: 10px; }
  .hero-headline { font-size: clamp(30px, 8vw, 44px); }
}