/* ==========================================================================
   main.css — Customer Segmentation Dashboard
   Design System: Dark navy + violet/teal accent + glassmorphism
   Font: Inter (Google Fonts)
   ========================================================================== */

/* ── Google Font Import ──────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── Design Tokens ───────────────────────────────────────────────────────── */
:root {
  --bg-primary:      #050714;
  --bg-secondary:    #0D0E26;
  --bg-surface:      #12143A;
  --glass:           rgba(255, 255, 255, 0.04);
  --glass-border:    rgba(255, 255, 255, 0.08);
  --glass-hover:     rgba(255, 255, 255, 0.07);

  --violet:          #6C63FF;
  --violet-light:    #8B84FF;
  --teal:            #00D4AA;
  --teal-light:      #33DDBB;
  --coral:           #FF6B6B;
  --gold:            #FFD166;

  --text-primary:    #E2E8F0;
  --text-secondary:  #94A3B8;
  --text-muted:      #64748B;

  --gradient-hero:   linear-gradient(135deg, #050714 0%, #1a1040 50%, #0d2448 100%);
  --gradient-card:   linear-gradient(135deg, rgba(108,99,255,0.1) 0%, rgba(0,212,170,0.05) 100%);
  --gradient-violet: linear-gradient(135deg, #6C63FF, #8B84FF);
  --gradient-teal:   linear-gradient(135deg, #00D4AA, #06D6A0);
  --gradient-coral:  linear-gradient(135deg, #FF6B6B, #FF8E8E);
  --gradient-gold:   linear-gradient(135deg, #FFD166, #FFBA08);

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-glow-violet: 0 0 30px rgba(108,99,255,0.25);
  --shadow-glow-teal:   0 0 30px rgba(0,212,170,0.2);
  --shadow-card:        0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover:       0 8px 40px rgba(108,99,255,0.3);

  --transition-fast:   0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(108,99,255,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(0,212,170,0.08) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

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

/* ── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--violet-light), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-gold {
  background: linear-gradient(135deg, var(--gold), #FF9F43);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

a { color: var(--violet-light); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--teal); }
p { color: var(--text-secondary); }

/* Keep Bootstrap muted utility readable on dark surfaces */
.text-muted {
  color: var(--text-secondary) !important;
}

/* ════════════════════════════════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════════════════════════════════ */
.navbar-custom {
  background: rgba(5, 7, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background var(--transition-normal);
}

.navbar-brand-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 36px; height: 36px;
  background: var(--gradient-violet);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-glow-violet);
}

.nav-link-custom {
  color: var(--text-secondary) !important;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 10px !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--text-primary) !important;
  background: var(--glass);
}

.nav-link-custom.active { color: var(--violet-light) !important; }

.navbar-toggler-custom {
  border: 1px solid var(--glass-border);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  color: var(--text-primary);
  cursor: pointer;
}

@media (min-width: 992px) {
  .desktop-nav-links {
    flex-wrap: nowrap;
    min-width: 0;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════════════════════════════════ */
.hero-section {
  min-height: 92vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(108,99,255,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 30% 70%, rgba(0,212,170,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  color: var(--violet-light);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-violet);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
}

/* Floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}
.orb-1 { width: 400px; height: 400px; background: var(--violet); top: -100px; right: -100px; animation-delay: 0s; }
.orb-2 { width: 300px; height: 300px; background: var(--teal); bottom: -80px; right: 200px; animation-delay: 3s; }
.orb-3 { width: 200px; height: 200px; background: var(--coral); top: 50%; left: -50px; animation-delay: 6s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* ════════════════════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════════════════════ */
.btn-primary-custom {
  background: var(--gradient-violet);
  border: none;
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-glow-violet);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(108,99,255,0.45);
  color: #fff;
}

.btn-secondary-custom {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary-custom:hover {
  background: var(--glass-hover);
  border-color: rgba(108,99,255,0.4);
  color: var(--text-primary);
}

.btn-teal {
  background: var(--gradient-teal);
  border: none;
  color: #0a0b1a;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-glow-teal);
}
.btn-teal:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(0,212,170,0.4); }

/* ════════════════════════════════════════════════════════════════════════════
   CARDS & GLASS COMPONENTS
   ════════════════════════════════════════════════════════════════════════════ */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.glass-card:hover {
  border-color: rgba(108,99,255,0.3);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.stat-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gradient-violet);
}

.stat-card:hover {
  border-color: rgba(108,99,255,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.stat-card-teal::before    { background: var(--gradient-teal); }
.stat-card-coral::before   { background: var(--gradient-coral); }
.stat-card-gold::before    { background: var(--gradient-gold); }

.stat-value {
  font-size: 2.4rem;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -1px;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
  font-weight: 500;
}

.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.stat-icon-violet { background: rgba(108,99,255,0.18); }
.stat-icon-teal   { background: rgba(0,212,170,0.15); }
.stat-icon-coral  { background: rgba(255,107,107,0.15); }
.stat-icon-gold   { background: rgba(255,209,102,0.15); }

/* ════════════════════════════════════════════════════════════════════════════
   PAGE LAYOUT
   ════════════════════════════════════════════════════════════════════════════ */
.page-section {
  padding: 80px 0;
}

.page-header {
  text-align: center;
  padding: 64px 0 40px;
}

.page-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-divider {
  width: 60px; height: 3px;
  background: var(--gradient-violet);
  border-radius: 2px;
  margin: 12px 0 24px;
}

/* ════════════════════════════════════════════════════════════════════════════
   TABLES
   ════════════════════════════════════════════════════════════════════════════ */
.table-custom {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.table-custom thead tr {
  background: rgba(108,99,255,0.15);
  border-bottom: 1px solid rgba(108,99,255,0.3);
}

.table-custom thead th {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--violet-light);
  white-space: nowrap;
}

.table-custom tbody tr {
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition-fast);
}

.table-custom tbody tr:hover {
  background: var(--glass-hover);
}

.table-custom tbody td {
  padding: 12px 16px;
  color: var(--text-secondary);
  vertical-align: middle;
}

.table-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

/* ════════════════════════════════════════════════════════════════════════════
   CODE BLOCKS
   ════════════════════════════════════════════════════════════════════════════ */
.code-block {
  background: #0D1117;
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: var(--radius-md);
  padding: 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.83rem;
  line-height: 1.9;
  overflow-x: auto;
  position: relative;
}

.code-block .line-number {
  display: inline-block;
  width: 28px;
  color: #555;
  user-select: none;
  font-size: 0.75rem;
}

.code-block .keyword { color: #FF79C6; }
.code-block .string  { color: #F1FA8C; }
.code-block .comment { color: #6272A4; font-style: italic; }
.code-block .function{ color: #50FA7B; }
.code-block .number  { color: #BD93F9; }
.code-block .class-name { color: #8BE9FD; }

.code-lang-badge {
  position: absolute;
  top: 10px; right: 14px;
  background: rgba(108,99,255,0.2);
  color: var(--violet-light);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

/* ════════════════════════════════════════════════════════════════════════════
   BADGES & TAGS
   ════════════════════════════════════════════════════════════════════════════ */
.badge-violet { background: rgba(108,99,255,0.2); color: var(--violet-light); border: 1px solid rgba(108,99,255,0.3); border-radius: 50px; padding: 4px 14px; font-size: 0.75rem; font-weight: 600; }
.badge-teal   { background: rgba(0,212,170,0.15); color: var(--teal); border: 1px solid rgba(0,212,170,0.3); border-radius: 50px; padding: 4px 14px; font-size: 0.75rem; font-weight: 600; }
.badge-coral  { background: rgba(255,107,107,0.15); color: var(--coral); border: 1px solid rgba(255,107,107,0.3); border-radius: 50px; padding: 4px 14px; font-size: 0.75rem; font-weight: 600; }
.badge-gold   { background: rgba(255,209,102,0.15); color: var(--gold); border: 1px solid rgba(255,209,102,0.3); border-radius: 50px; padding: 4px 14px; font-size: 0.75rem; font-weight: 600; }

/* ════════════════════════════════════════════════════════════════════════════
   CLUSTER CARDS
   ════════════════════════════════════════════════════════════════════════════ */
.cluster-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.cluster-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

.cluster-card-0::before { background: linear-gradient(90deg,#6C63FF,#8B84FF); }
.cluster-card-1::before { background: linear-gradient(90deg,#FF8A65,#FF6B6B); }
.cluster-card-2::before { background: linear-gradient(90deg,#CE93D8,#BA68C8); }
.cluster-card-3::before { background: linear-gradient(90deg,#81C784,#4CAF50); }
.cluster-card-4::before { background: linear-gradient(90deg,#FFD54F,#FFB300); }

.cluster-card:hover {
  transform: translateY(-5px);
  border-color: rgba(108,99,255,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.cluster-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}

.cluster-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

/* ════════════════════════════════════════════════════════════════════════════
   STEP / WORKFLOW COMPONENT
   ════════════════════════════════════════════════════════════════════════════ */
.workflow-step {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  position: relative;
}

.step-number {
  width: 44px; height: 44px;
  background: var(--gradient-violet);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow-violet);
}

.step-connector {
  position: absolute;
  left: 22px; top: 44px;
  width: 2px;
  height: calc(100% + 32px);
  background: linear-gradient(to bottom, rgba(108,99,255,0.4), transparent);
}

.step-content {
  flex: 1;
  padding-bottom: 8px;
}

.step-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}

/* ════════════════════════════════════════════════════════════════════════════
   FORMS
   ════════════════════════════════════════════════════════════════════════════ */
.form-custom .form-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-custom .form-control,
.form-custom .form-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 12px 16px;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.form-custom .form-control:focus,
.form-custom .form-select:focus {
  background: rgba(255,255,255,0.06);
  border-color: rgba(108,99,255,0.5);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.12);
  color: var(--text-primary);
  outline: none;
}

.form-custom .form-control::placeholder { color: var(--text-muted); }
.form-custom .form-select option { background: var(--bg-surface); color: var(--text-primary); }

.range-custom {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(108,99,255,0.15);
  height: 6px;
  border-radius: 3px;
  outline: none;
}
.range-custom::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--violet);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(108,99,255,0.5);
}

/* ════════════════════════════════════════════════════════════════════════════
   RESULT BOX (Prediction)
   ════════════════════════════════════════════════════════════════════════════ */
.result-box {
  background: var(--gradient-card);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════════════════════
   ALERT / INFO BOX
   ════════════════════════════════════════════════════════════════════════════ */
.info-box {
  background: rgba(108,99,255,0.08);
  border-left: 3px solid var(--violet);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.warning-box {
  background: rgba(255,209,102,0.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.success-box {
  background: rgba(0,212,170,0.08);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

/* ════════════════════════════════════════════════════════════════════════════
   CHART CONTAINERS
   ════════════════════════════════════════════════════════════════════════════ */
.chart-container {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.chart-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-title::before {
  content: '';
  width: 4px; height: 16px;
  background: var(--gradient-violet);
  border-radius: 2px;
  display: inline-block;
}

/* ════════════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 40px 0 24px;
  margin-top: 80px;
}

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-left: 20px;
  transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--violet-light); }

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  margin-top: 24px;
  padding-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ════════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════════════════════════════════ */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="fade-in"] {
  opacity: 0;
  transition: opacity 0.6s ease;
}

[data-aos="fade-in"].aos-animate { opacity: 1; }

.pulse-dot {
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}

/* Counter animation */
.counter-value { display: inline-block; }

/* Page transitions */
.page-wrapper {
  animation: pageIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════════════════════
   PROGRESS BARS
   ════════════════════════════════════════════════════════════════════════════ */
.progress-custom {
  height: 8px;
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--gradient-violet);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-fill-teal   { background: var(--gradient-teal); }
.progress-fill-coral  { background: var(--gradient-coral); }
.progress-fill-gold   { background: var(--gradient-gold); }

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-section   { min-height: 80vh; padding: 60px 0; }
  .hero-title     { font-size: 2rem; }
  .hero-stats     { gap: 20px; }
  .page-section   { padding: 48px 0; }
  .glass-card     { padding: 20px; }
  .cluster-card   { padding: 24px; }
  .stat-value     { font-size: 1.8rem; }
  .page-header    { padding: 40px 0 28px; }
}

@media (max-width: 480px) {
  .hero-title     { font-size: 1.7rem; }
  .hero-stats     { gap: 16px; }
  .hero-stat-value{ font-size: 1.5rem; }
  .table-custom   { font-size: 0.78rem; }
  .table-custom thead th { padding: 8px 10px; }
  .table-custom tbody td { padding: 8px 10px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   TOOLTIP
   ════════════════════════════════════════════════════════════════════════════ */
.tooltip-custom {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.8rem;
  padding: 6px 12px;
}

/* ════════════════════════════════════════════════════════════════════════════
   BREADCRUMB
   ════════════════════════════════════════════════════════════════════════════ */
.breadcrumb-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb-custom a { color: var(--violet-light); }
.breadcrumb-custom span { color: var(--text-muted); }

/* ════════════════════════════════════════════════════════════════════════════
   SIDEBAR NAVIGATION (for wider screens)
   ════════════════════════════════════════════════════════════════════════════ */
.page-nav {
  position: sticky;
  top: 90px;
}

.page-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  font-weight: 500;
}

.page-nav-link:hover { background: var(--glass); color: var(--text-primary); }
.page-nav-link.active { background: rgba(108,99,255,0.15); color: var(--violet-light); }

/* Scrollspy dot */
.page-nav-link::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
  transition: background var(--transition-fast);
}
.page-nav-link.active::before { background: var(--violet-light); }
