/* portal.css — Ultra Modern Student Portal BUS */
/* Enhanced UI/UX with premium glassmorphism and micro-interactions */

/* ═══════════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES - ENHANCED COLOR SYSTEM
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* Core Brand Colors - Refined Palette */
  --navy: #000165;
  --navy-light: #1a1b8a;
  --navy-deep: #000040;
  --white: #ffffff;
  --black: #000000;

  /* Brand Accent Colors - Natural & Refined */
  --cyan: #5468c4;
  --cyan-light: #7a8ed6;
  --cyan-dark: #4355b0;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --emerald: #10b981;
  --emerald-light: #34d399;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --rose: #f43f5e;
  --rose-light: #fb7185;

  /* Neutral Tones - Sophisticated Grays */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Semantic Colors */
  --primary: var(--navy);
  --primary-light: var(--navy-light);
  --accent: var(--cyan);
  --accent-glow: rgba(84, 104, 196, 0.3);
  --success: var(--emerald);
  --warning: var(--amber);
  --danger: var(--rose);
  --info: var(--blue);

  /* Background System */
  --bg-main: #fafbfc;
  --bg-body: #f0f4f8;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-glass-strong: rgba(255, 255, 255, 0.85);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

  /* Border System */
  --border-light: rgba(0, 0, 0, 0.04);
  --border: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.12);

  /* Text Colors */
  --text-primary: var(--slate-900);
  --text-secondary: var(--slate-600);
  --text-muted: var(--slate-500);
  --text-light: var(--slate-400);
  --muted: var(--text-muted);

  /* Typography */
  --font-main: 'SF Pro Text', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: 'SF Pro Text', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Spacing Scale - 8pt Grid */
  --space-3xs: 0.25rem;
  /* 4px */
  --space-2xs: 0.5rem;
  /* 8px */
  --space-xs: 0.75rem;
  /* 12px */
  --space-sm: 1rem;
  /* 16px */
  --space-md: 1.5rem;
  /* 24px */
  --space-lg: 2rem;
  /* 32px */
  --space-xl: 3rem;
  /* 48px */
  --space-2xl: 4rem;
  /* 64px */
  --space-3xl: 6rem;
  /* 96px */

  /* Border Radius - Modern Scale */
  --radius-xs: 0.375rem;
  /* 6px */
  --radius-sm: 0.5rem;
  /* 8px */
  --radius-md: 0.75rem;
  /* 12px */
  --radius-lg: 1rem;
  /* 16px */
  --radius-xl: 1.5rem;
  /* 24px */
  --radius-2xl: 2rem;
  /* 32px */
  --radius-3xl: 3rem;
  /* 48px */
  --radius-full: 9999px;

  /* Shadows - Layered System */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
  --shadow-glow-cyan: 0 0 24px rgba(84, 104, 196, 0.28);
  --shadow-glow-brand: 0 8px 24px rgba(84, 104, 196, 0.22), inset 0 1px 0 rgba(255,255,255,0.10);
  --shadow-glow-purple: 0 0 24px rgba(139, 92, 246, 0.3);
  --shadow-glow-navy: 0 0 40px rgba(10, 14, 61, 0.2);

  /* Transitions - Spring-based */
  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-smooth: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-spring: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal-backdrop: 900;
  --z-modal: 1000;
  --z-toast: 9999;

  /* Modern Effects */
  --noise-opacity: 0.05;
  --glow-intensity: 0.4;
}

/* ═══════════════════════════════════════════════════════════════
   MODERN UI UTILITIES
   ═══════════════════════════════════════════════════════════════ */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: var(--noise-opacity);
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Bento Grid System */
.bento-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 1240px;
  margin: 3rem auto;
}

.bento-card {
  grid-column: span 12;
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--t-bounce);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-xl);
  border-color: rgba(6, 182, 212, 0.3);
}

.bento-card.span-4 {
  grid-column: span 4;
}

.bento-card.span-6 {
  grid-column: span 6;
}

.bento-card.span-8 {
  grid-column: span 8;
}

@media (max-width: 1024px) {

  .bento-card.span-4,
  .bento-card.span-6,
  .bento-card.span-8 {
    grid-column: span 12;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ADVANCED ANIMATIONS (SCROLL REVEAL)
   ═══════════════════════════════════════════════════════════════ */
[class*="reveal-"] {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-down {
  transform: translateY(-40px);
}

.reveal-left {
  transform: translateX(60px);
}

.reveal-right {
  transform: translateX(-60px);
}

.reveal-scale {
  transform: scale(0.92);
}

.reveal-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* Modern Overhaul UI Classes - Placed at top for reliability */
.bottom-nav {
  position: fixed;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(calc(100% - 2.5rem), 600px);
  height: 4.5rem;
  background: rgba(10, 14, 61, 0.8) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 0.75rem;
  z-index: 9999;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 1023px) {
  body.is-logged-in .bottom-nav {
    display: flex !important;
  }
}

.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.5rem;
  min-width: 4rem;
  height: 3.5rem;
  flex: 1;
  border-radius: 1.75rem;
  transition: all 0.3s ease;
  position: relative;
}

.bottom-nav .nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.bottom-nav .nav-item.active i {
  color: #06b6d4;
  transform: translateY(-2px);
}

.shortcut-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 1rem 0.5rem !important;
  border-radius: 1.25rem !important;
  cursor: pointer;
  transition: all 0.4s ease;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
  text-align: center;
}

.shortcut-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.5rem !important;
  flex-shrink: 0 !important;
}

.shortcut-label {
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  color: #0a0e3d !important;
  margin-top: 0.25rem !important;
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE STYLES
   ═══════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* ═══════════════════════════════════════════════════════════════
   ULTRA-MODERN BACKGROUND SYSTEM
   ═══════════════════════════════════════════════════════════════ */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -10;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(6, 182, 212, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(139, 92, 246, 0.1), transparent),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgba(16, 185, 129, 0.1), transparent),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(245, 158, 11, 0.08), transparent),
    var(--bg-main);
  filter: blur(80px);
  animation: meshFloat 25s ease-in-out infinite;
  opacity: 0.8;
}

.bg-mesh::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 20%, var(--bg-main) 100%);
  opacity: 0.4;
}

@keyframes meshFloat {

  0%,
  100% {
    background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%;
  }

  25% {
    background-position: 10% 20%, 90% 10%, 80% 90%, 10% 80%;
  }

  50% {
    background-position: 5% 10%, 95% 5%, 90% 95%, 5% 90%;
  }

  75% {
    background-position: 15% 30%, 85% 25%, 75% 85%, 15% 75%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--navy);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

/* ═══════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════ */
.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

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

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   GLASSMORPHISM SYSTEM
   ═══════════════════════════════════════════════════════════════ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
}

.glass-white {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-md);
}

.glass-dark {
  background: linear-gradient(135deg, rgba(10, 14, 61, 0.9), rgba(10, 14, 61, 0.7));
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-brand {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  box-shadow:
    0 10px 25px rgba(10, 14, 61, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Guarantee readable text inside dark gradient cards */
.glass-brand .bento-title,
.glass-brand .bento-value,
.glass-brand .bento-badge,
.glass-brand .goal-value,
.glass-brand .goal-foot {
  color: var(--white);
}

.glass-brand .bento-label,
.glass-brand .goal-label {
  color: rgba(255, 255, 255, 0.82);
}

.glass-cyan {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.glass-highlight {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(6, 182, 212, 0.2);
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS - PREMIUM STYLES
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-main);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--t-bounce);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity var(--t-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(1px) scale(0.96);
}

.btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 0%,
      rgba(255, 255, 255, 0.05) 30%,
      rgba(255, 255, 255, 0.15) 50%,
      rgba(255, 255, 255, 0.05) 70%,
      transparent 100%);
  transform: translateX(-100%) rotate(45deg);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.btn:hover::after {
  animation: portalShimmer 1.8s infinite;
}

@keyframes portalShimmer {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

/* Primary Button - Refined Slate-Blue */
.btn-primary {
  background: linear-gradient(145deg, #7a8ed6 0%, #5468c4 50%, #4355b0 100%);
  color: #fff;
  box-shadow:
    0 4px 14px rgba(84, 104, 196, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-primary:hover {
  filter: brightness(1.08) saturate(1.04);
  transform: translateY(-2px);
  box-shadow:
    0 10px 24px rgba(84, 104, 196, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Secondary / Outline Button */
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border-medium);
}

.btn-outline:hover {
  background: var(--slate-50);
  border-color: var(--navy);
  transform: translateY(-2px);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--navy);
}

/* Cyan/Brand Accent Button — now slate-blue */
.btn-cyan {
  background: linear-gradient(145deg, #7a8ed6 0%, #5468c4 50%, #4355b0 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(84, 104, 196, 0.22), inset 0 1px 0 rgba(255,255,255,0.12);
}

.btn-cyan:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-brand);
}

/* Purple Accent Button */
.btn-purple {
  background: linear-gradient(135deg, var(--purple), #7c3aed);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.btn-purple:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-purple);
}

/* White Button (for dark backgrounds) */
.btn-white {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Button Sizes */
.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-md);
}

.btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-xl);
}

.btn-xl {
  padding: 1.25rem 2.75rem;
  font-size: 1.125rem;
  border-radius: var(--radius-2xl);
  box-shadow: 0 8px 24px rgba(10, 14, 61, 0.2);
}

/* Icon Button */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-base);
}

.btn-icon:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--navy);
}

/* ═══════════════════════════════════════════════════════════════
   CARDS - MODERN DESIGN
   ═══════════════════════════════════════════════════════════════ */
.card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--t-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent);
  opacity: 0;
  transition: opacity var(--t-base);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

.card:hover::before {
  opacity: 1;
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.bento-item {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--dash-card-padding, var(--space-md));
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: all var(--t-bounce);
  position: relative;
  overflow: hidden;
}

.bento-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.bento-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: rgba(6, 182, 212, 0.2);
}

/* Keep dark brand card style from being overridden by generic .bento-item */
.bento-item.glass-brand {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.bento-item.glass-brand .bento-value,
.bento-item.glass-brand .bento-label,
.bento-item.glass-brand .bento-badge,
.bento-item.glass-brand .bento-title,
.bento-item.glass-brand #scPoints,
.bento-item.glass-brand #statPointsLabel,
.bento-item.glass-brand #homeWalletHint {
  color: var(--white) !important;
}

.bento-item.glass-brand #statPointsLabel,
.bento-item.glass-brand #homeWalletHint {
  opacity: 0.82;
}

/* ═══════════════════════════════════════════════════════════════
   FORM ELEMENTS - MODERN INPUTS
   ═══════════════════════════════════════════════════════════════ */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-2xs);
  letter-spacing: -0.01em;
}

.form-input,
.auth-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--white);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-lg);
  transition: all var(--t-fast);
  outline: none;
  position: relative;
}

.form-input:focus,
.auth-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1), var(--shadow-sm);
  background: var(--white);
}

.form-input::placeholder,
.auth-input::placeholder {
  color: var(--slate-400);
}

.form-input:disabled,
.auth-input:disabled {
  background: var(--slate-100);
  color: var(--slate-500);
  cursor: not-allowed;
}

/* Input with Icon */
.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .icon {
  position: absolute;
  left: 1.125rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-400);
  font-size: 1.125rem;
  pointer-events: none;
  transition: color var(--t-fast);
}

.input-icon-wrap .form-input,
.input-icon-wrap .auth-input {
  padding-left: 3rem;
}

.input-icon-wrap:focus-within .icon {
  color: var(--cyan);
}

/* Password Toggle */
.input-icon-wrap .eye-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--slate-400);
  cursor: pointer;
  padding: 0.25rem;
  transition: color var(--t-fast);
}

.input-icon-wrap .eye-btn:hover {
  color: var(--navy);
}

/* Select Input */
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
  cursor: pointer;
}

/* Form Hint & Error */
.form-hint {
  font-size: 0.8125rem;
  color: var(--slate-500);
  margin-top: var(--space-2xs);
}

.form-error {
  font-size: 0.8125rem;
  color: var(--rose);
  margin-top: var(--space-2xs);
  display: none;
}

/* Password Strength Indicator */
.pw-strength-bar {
  height: 6px;
  background: var(--slate-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--space-xs);
  display: none;
}

.pw-strength-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--t-base), background var(--t-base);
  width: 0;
}

.pw-strength-fill.weak {
  background: var(--rose);
  width: 33%;
}

.pw-strength-fill.medium {
  background: var(--amber);
  width: 66%;
}

.pw-strength-fill.strong {
  background: var(--emerald);
  width: 100%;
}

.pw-strength-label {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-top: var(--space-2xs);
  display: none;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION - DYNAMIC ISLAND STYLE
   ═══════════════════════════════════════════════════════════════ */
.portal-nav {
  position: fixed;
  top: var(--nav-top-offset-desktop, 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - (var(--page-gutter, 1.5rem) * 2)), var(--content-max, 1240px));
  max-width: none;
  height: 4.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-radius: var(--radius-3xl);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-md);
  padding: 0 clamp(0.875rem, 1.8vw, 1.5rem);
  z-index: 1000;
  transition: all var(--t-smooth);
}

.nav-left {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.nav-center {
  display: none;
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-md);
  flex: 0 0 auto;
  min-width: 0;
}

@media (max-width: 1024px) {
  .portal-nav {
    top: var(--nav-top-offset-mobile, 0.5rem);
    width: min(calc(100% - (var(--page-gutter, 1rem) * 2)), var(--content-max, 1240px));
    max-width: none;
    padding: 0 clamp(0.75rem, 2.4vw, 1rem);
    height: 4rem;
  }

  .nav-logo {
    font-size: 1.1rem;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
  transition: transform var(--t-bounce);
}

.nav-logo:hover {
  transform: scale(1.02);
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

@media (min-width: 1024px) {
  .nav-center {
    display: flex;
    justify-content: center;
    padding: 0 var(--space-md);
  }
}

.desktop-nav-tabs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  scrollbar-width: none;
}

.desktop-nav-tabs::-webkit-scrollbar {
  display: none;
}

.d-tab {
  background: none;
  border: none;
  padding: 0.625rem 0.85rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--slate-500);
  cursor: pointer;
  border-radius: var(--radius-lg);
  transition: all var(--t-fast);
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
}

.d-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 1.5rem;
  height: 3px;
  background: var(--cyan);
  border-radius: var(--radius-full);
  transition: transform var(--t-bounce);
}

.d-tab:hover {
  color: var(--navy);
  background: rgba(0, 0, 0, 0.03);
}

.d-tab.active {
  color: var(--navy);
  font-weight: 700;
}

.d-tab.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-actions {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
  flex-wrap: nowrap;
}

@media (max-width: 1280px) {
  #dashContext {
    display: none !important;
  }
}

/* Avatar Button */
.dash-avatar-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-bounce);
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.dash-avatar-btn:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-glow-cyan);
}

/* Avatar Dropdown */
.avatar-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: 280px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  z-index: 10000;
  animation: fadeSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.dd-header {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

.dd-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}

.dd-status {
  font-size: 0.8125rem;
  color: var(--slate-500);
  margin-top: 0.125rem;
}

.dd-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-main);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-700);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--t-fast);
  text-align: left;
}

.dd-item i {
  font-size: 1.125rem;
  color: var(--slate-400);
}

.dd-item:hover {
  background: var(--slate-50);
  color: var(--navy);
}

.dd-item:hover i {
  color: var(--cyan);
}

.dd-item.text-danger {
  color: var(--rose);
}

.dd-item.text-danger:hover {
  background: #fef2f2;
}

.dd-item.text-danger:hover i {
  color: var(--rose);
}

.dd-footer {
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--border-light);
  background: var(--slate-50);
}


.bottom-nav::-webkit-scrollbar {
  display: none;
}

body.is-logged-in .bottom-nav {
  display: flex;
}

@media (max-width: 1023px) {
  body.is-logged-in .bottom-nav {
    display: flex;
  }

  .dash-body,
  #dashboardView>.dashboard-panel {
    padding-bottom: var(--bottom-nav-safe-space, 7.5rem);
  }
}

@media (min-width: 1024px) {
  .bottom-nav {
    display: none !important;
  }
}



/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero-section {
  min-height: auto;
  display: flex;
  align-items: flex-start;
  padding: var(--space-xl) var(--space-md) var(--space-3xl);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-container {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-2xl);
  }
}

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

@media (min-width: 1024px) {
  .hero-content {
    text-align: left;
  }
}

.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.1));
  color: var(--navy);
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(6, 182, 212, 0.2);
  animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: var(--space-md);
  animation: fadeSlideUp 0.6s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--slate-600);
  margin-bottom: var(--space-lg);
  max-width: 540px;
}

@media (min-width: 1024px) {
  .hero-subtitle {
    margin-left: 0;
    margin-right: auto;
  }
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

@media (min-width: 1024px) {
  .hero-stats {
    justify-content: flex-start;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 1024px) {
  .stat-item {
    align-items: flex-start;
  }
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-500);
  font-weight: 700;
  margin-bottom: var(--space-3xs);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--navy);
  font-family: var(--font-display);
}

.stat-value.highlight {
  color: var(--cyan);
  text-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--slate-200);
}

.hero-promo {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--cyan-dark);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  animation: fadeSlideUp 0.6s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (min-width: 1024px) {
  .hero-promo {
    justify-content: flex-start;
  }
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.6s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (min-width: 1024px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--cyan-light), transparent 70%);
  filter: blur(60px);
  opacity: 0.25;
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.25;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.35;
  }
}

.icon-large {
  font-size: 8rem;
  color: var(--cyan);
  filter: drop-shadow(0 30px 50px rgba(6, 182, 212, 0.35));
  animation: floatIcon 6s ease-in-out infinite;
}

@keyframes floatIcon {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(2deg);
  }
}

/* Hide on mobile */
.hide-mobile {
  display: none !important;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: block !important;
  }
}

.floating-wrapper {
  perspective: 1000px;
}

.premium-visual-card {
  width: 320px;
  height: 380px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.1),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
  animation: cardFloat 6s ease-in-out infinite;
}

.card-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.2), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}

.main-svg-icon {
  filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.4));
}

@keyframes cardFloat {

  0%,
  100% {
    transform: translateY(0) rotateX(5deg) rotateY(-5deg);
  }

  50% {
    transform: translateY(-30px) rotateX(-5deg) rotateY(5deg);
  }
}

/* ═══════════════════════════════════════════════════════════════
   TRACK SELECTION SECTION
   ═══════════════════════════════════════════════════════════════ */
.track-section {
  max-width: 1100px;
  margin: 0 auto var(--space-2xl);
  padding: 0 var(--space-md);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: var(--space-xs);
  color: var(--navy);
}

.section-subtitle {
  color: var(--slate-500);
  max-width: 560px;
  margin: 0 auto;
}

.track-selector-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .track-selector-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.track-card {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-2xl);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 10px 40px -10px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  transition: all var(--t-smooth);
  cursor: pointer;
  overflow: visible;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.track-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(6, 182, 212, 0.03));
  opacity: 0;
  transition: opacity var(--t-base);
}

.track-card:hover {
  transform: translateY(-12px);
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--cyan-light);
  box-shadow: 
    0 30px 60px -12px rgba(6, 182, 212, 0.15),
    0 18px 36px -18px rgba(0, 0, 0, 0.1);
}

.track-card.active-business {
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.85));
  border-color: rgba(6, 182, 212, 0.3);
}

.track-card.active-business:hover {
  border-color: var(--cyan);
  box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.4);
}

.track-card.active-savings {
  background: linear-gradient(165deg, rgba(124, 58, 237, 0.9), rgba(139, 92, 246, 0.8));
  border-color: rgba(255, 255, 255, 0.3);
}

.track-card.active-savings:hover {
  box-shadow: 0 30px 60px -12px rgba(124, 58, 237, 0.3);
}

/* Persona Styles */
.persona-container {
  position: absolute;
  top: -60px;
  right: -20px;
  width: 160px;
  height: 160px;
  pointer-events: none;
  z-index: 20;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
  transition: all var(--t-smooth);
}

.persona-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: personaFloat 6s ease-in-out infinite;
}

.track-card:hover .persona-container {
  transform: scale(1.1) translateY(-10px);
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.25));
}

@keyframes personaFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.track-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.2);
}

.track-icon.cyan {
  color: var(--cyan-light);
}

.track-icon.purple {
  color: var(--purple-light);
}

.track-title {
  font-size: 1.375rem;
  margin-bottom: var(--space-sm);
}

.track-card.active-business .track-title,
.track-card.active-business .track-desc {
  color: var(--white);
}

.track-card.active-savings .track-title,
.track-card.active-savings .track-desc {
  color: var(--white);
}

.track-desc {
  color: var(--slate-400);
  margin-bottom: var(--space-md);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.track-features {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.track-features li {
  margin-bottom: var(--space-xs);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.track-card.active-business .track-features li,
.track-card.active-savings .track-features li {
  color: rgba(255, 255, 255, 0.85);
}

.track-features i {
  color: var(--cyan-light);
  font-size: 1rem;
}

.track-action {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: 0.9375rem;
}

.track-action.cyan {
  color: var(--cyan-light);
}

.track-action.purple {
  color: var(--purple-light);
}

/* ═══════════════════════════════════════════════════════════════
   TIMELINE SECTION
   ═══════════════════════════════════════════════════════════════ */
.timeline-section {
  padding: var(--space-2xl) var(--space-md);
  margin-bottom: var(--space-2xl);
  border-radius: var(--radius-2xl);
}

.timeline-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .timeline-container {
    grid-template-columns: 1fr 1.2fr;
  }
}

.timeline-info {
  text-align: center;
}

@media (min-width: 1024px) {
  .timeline-info {
    text-align: left;
  }
}

.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.timeline-step {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.step-circle {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.step-content {
  padding-top: 0.25rem;
}

.step-title {
  font-size: 1.125rem;
  margin-bottom: var(--space-2xs);
  color: var(--navy);
}

.step-desc {
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   FINAL CTA SECTION
   ═══════════════════════════════════════════════════════════════ */
.final-cta-section {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: var(--space-lg);
  color: var(--navy);
}

.cta-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.portal-footer {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  border-top: 1px solid var(--border-light);
  color: var(--slate-500);
  font-size: 0.875rem;
}

.footer-logo {
  margin-bottom: var(--space-md);
}

.footer-logo img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(6, 182, 212, 0.22);
}

/* ═══════════════════════════════════════════════════════════════
   AUTH VIEWS
   ═══════════════════════════════════════════════════════════════ */
.auth-container {
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(4.5rem + 1.25rem) var(--space-md) var(--space-xl);
  background:
    radial-gradient(ellipse at top right, rgba(6, 182, 212, 0.08), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(139, 92, 246, 0.08), transparent 50%),
    var(--bg-main);
}

@media (max-width: 1024px) {
  .auth-container {
    padding-top: calc(4rem + 1rem);
  }

  .sgs-lead-layout {
    grid-template-columns: 1fr;
  }

  .sgs-lead-wide {
    max-width: 760px;
  }
}

.auth-card {
  width: 100%;
  max-width: 480px;
  padding: var(--space-xl);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.login-premium-wrapper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-main);
  background:
    radial-gradient(circle at 0% 0%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
    var(--bg-main);
  padding: var(--space-md);
  z-index: 10000;
  overflow-y: auto;
}

.auth-card.premium {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: var(--radius-3xl);
  padding: var(--space-xl) var(--space-lg);
  box-shadow:
    0 20px 50px rgba(0, 0, 101, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.02);
  animation: premiumEnter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-primary) !important;
}

@keyframes premiumEnter {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes premiumFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.auth-card.premium .auth-title {
  color: var(--navy);
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.04em;
}

.auth-card.premium .auth-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  opacity: 0.8;
}

.auth-card.premium .form-label {
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-card.premium .auth-input {
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--text-primary);
  border-radius: var(--radius-xl);
  padding: 1.125rem 1.5rem 1.125rem 3.25rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.auth-card.premium .auth-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.2);
}

.auth-card.premium .auth-input::placeholder {
  color: var(--slate-400);
}

.auth-card.premium .input-icon {
  color: var(--slate-400);
}

.auth-card.premium .auth-link {
  color: var(--cyan);
  font-weight: 700;
}

.auth-card.premium .auth-divider {
  color: var(--slate-400);
  margin: 2.5rem 0 1.5rem;
}

.auth-card.premium .btn-ghost {
  color: var(--text-secondary);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
}

.auth-card.premium .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.auth-card.premium .back-link {
  color: var(--text-muted);
  margin-top: 1.5rem;
  font-size: 0.85rem;
}

.auth-alert {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  padding: 0.75rem 0.875rem;
  border-radius: 0.875rem;
  font-size: 0.78rem;
  line-height: 1.45;
  border: 1px solid transparent;
}

.auth-alert.info {
  background: rgba(37, 155, 210, 0.09);
  border-color: rgba(37, 155, 210, 0.22);
  color: #0f2f4a;
}

.sgs-lead-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.14);
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.sgs-lead-wide {
  max-width: 1180px;
}

.sgs-top-grid {
  margin-top: 1rem;
}

.sgs-top-main {
  display: grid;
  gap: 0.8rem;
}

.sgs-top-header,
.sgs-top-alert,
.sgs-top-main .sgs-lead-hero {
  margin: 0;
}

.sgs-hall-of-fame {
  margin-bottom: 1rem;
}

.sgs-top-header {
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.92));
  border-radius: 1.2rem;
  padding: 1.05rem 1.1rem;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
}

.sgs-top-alert {
  border-radius: 1rem;
}

.sgs-lead-hero {
  padding: 1rem 1.05rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(37, 99, 235, 0.14);
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.94));
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.sgs-lead-hero-main h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.25;
}

.sgs-lead-hero-main p {
  margin: 0.45rem 0 0;
  color: var(--slate-600);
  font-size: 0.84rem;
  line-height: 1.6;
  max-width: 56rem;
}

.sgs-lead-hero-points {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.sgs-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.2rem;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #0f172a;
  font-size: 0.76rem;
  font-weight: 700;
}

.sgs-hero-chip i {
  color: #2563eb;
}

.sgs-lead-layout {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 1.1rem;
  align-items: start;
}

.sgs-lead-main {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.8));
  padding: 1rem;
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.06);
}

.sgs-lead-form-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sgs-section-label {
  display: inline-flex;
  margin-bottom: 0.35rem;
  color: #0f766e;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sgs-lead-form-head h3 {
  font-size: 1.05rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--navy);
}

.sgs-lead-form-head p {
  margin: 0;
  font-size: 0.79rem;
  color: var(--slate-500);
  max-width: 24rem;
  line-height: 1.5;
}

.sgs-form-progress {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.sgs-form-progress-step {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.88);
  color: var(--slate-500);
  font-size: 0.72rem;
  font-weight: 700;
}

.sgs-form-progress-step span {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.14);
  color: var(--slate-600);
  font-size: 0.7rem;
  font-weight: 800;
}

.sgs-form-progress-step.active {
  background: rgba(239, 246, 255, 0.95);
  border-color: rgba(37, 99, 235, 0.18);
  color: #1e3a8a;
}

.sgs-form-progress-step.active span {
  background: #2563eb;
  color: #fff;
}

.sgs-lead-form {
  gap: 0.75rem;
}

.sgs-form-block {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.74);
  border-radius: 1rem;
  padding: 0.9rem;
}

.sgs-form-block-head {
  margin-bottom: 0.75rem;
}

.sgs-form-block-head h4 {
  margin: 0;
  color: var(--navy);
  font-size: 0.92rem;
}

.sgs-form-block-head p {
  margin: 0.22rem 0 0;
  color: var(--slate-500);
  font-size: 0.76rem;
  line-height: 1.5;
}

.sgs-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.sgs-lead-form .auth-input {
  padding-left: 1rem;
  min-height: 3rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.96);
}

.sgs-action-panel {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.9rem 0.95rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.06));
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.sgs-action-copy {
  display: grid;
  gap: 0.25rem;
}

.sgs-action-copy strong {
  color: var(--navy);
  font-size: 0.82rem;
  line-height: 1.45;
}

.sgs-action-copy span {
  color: var(--slate-600);
  font-size: 0.75rem;
  line-height: 1.55;
}

.sgs-lead-side {
  display: grid;
  gap: 0.75rem;
  align-self: start;
  position: sticky;
  top: 1rem;
}

.sgs-info-box {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1.05rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.95rem 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.sgs-info-box.highlight {
  border-color: rgba(16, 185, 129, 0.16);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(255, 255, 255, 0.92));
}

.sgs-info-box.compact ul {
  font-size: 0.75rem;
  line-height: 1.55;
}

.sgs-info-box h4 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sgs-info-box ol,
.sgs-info-box ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--slate-600);
  font-size: 0.78rem;
  line-height: 1.6;
}

.sgs-benefit-list {
  display: grid;
  gap: 0.6rem;
}

.sgs-benefit-list>div {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--slate-600);
  line-height: 1.5;
}

.sgs-benefit-list i {
  color: #0f766e;
  font-size: 0.95rem;
  margin-top: 0.08rem;
}

.sgs-kv-list {
  display: grid;
  gap: 0.35rem;
}

.sgs-kv-list>div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--slate-600);
}

.sgs-kv-list strong {
  color: var(--navy);
}

.sgs-submit-note {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--slate-500);
  line-height: 1.45;
}

.sgs-public-program-band {
  margin-top: 1rem;
  border: 1px solid rgba(6, 182, 212, 0.18);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.92), rgba(240, 249, 255, 0.94));
  border-radius: 1.2rem;
  padding: 1rem;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
}

.sgs-program-band-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sgs-flow-list {
  display: grid;
  gap: 0.6rem;
}

.sgs-flow-list>div {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
}

.sgs-flow-list span {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 800;
}

.sgs-flow-list p {
  margin: 0;
  color: var(--slate-600);
  font-size: 0.78rem;
  line-height: 1.55;
}

.sgs-hall-of-fame {
  margin: 0;
  border: 1px solid rgba(6, 182, 212, 0.16);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.92));
  border-radius: 1.25rem;
  padding: 1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
  min-height: 100%;
}

.sgs-hof-head {
  margin-bottom: 0.85rem;
}

.sgs-hof-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sgs-hof-head h3 {
  margin: 0.55rem 0 0.3rem;
  font-size: 1.2rem;
  color: var(--navy);
  line-height: 1.2;
}

.sgs-hof-head p {
  margin: 0;
  color: var(--slate-500);
  font-size: 0.82rem;
  line-height: 1.55;
  max-width: 48rem;
}

.sgs-hof-grid {
  display: grid;
  grid-template-columns: repeat(var(--hof-count, 4), minmax(0, 1fr));
  gap: 0.8rem;
}

.sgs-hof-brandbar {
  margin-bottom: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.sgs-hof-brandchip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.15);
  background: rgba(255, 255, 255, 0.85);
  color: #0f172a;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.sgs-hof-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 1rem;
  padding: 0.75rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.sgs-hof-photo {
  width: 68px;
  height: 68px;
  border-radius: 0.9rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.18));
  border: 1px solid rgba(59, 130, 246, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
  font-size: 1.5rem;
  font-weight: 700;
}

.sgs-hof-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sgs-hof-body {
  min-width: 0;
  width: 100%;
}

.sgs-hof-company {
  margin: 0;
  color: #0f172a;
  font-size: 0.92rem;
  line-height: 1.2;
  font-weight: 900;
}

.sgs-hof-title {
  margin-top: 0.45rem;
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.09);
  color: #065f46;
  font-size: 0.7rem;
  font-weight: 700;
}

.sgs-hof-student {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.08rem;
}

.sgs-hof-student strong {
  color: var(--navy);
  font-size: 0.76rem;
  line-height: 1.25;
}

.sgs-hof-student span {
  color: var(--slate-600);
  font-size: 0.7rem;
  line-height: 1.4;
}

.sgs-lead-footer {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.sgs-footer-tip {
  font-size: 0.74rem;
  color: var(--slate-500);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.input-inner {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1.25rem;
  color: var(--slate-400);
  font-size: 1.125rem;
  pointer-events: none;
  transition: color var(--t-fast);
}

.input-inner:focus-within .input-icon {
  color: var(--cyan);
}

.auth-input {
  padding: 1rem 1.25rem 1rem 3rem;
}

.input-action {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: var(--slate-400);
  cursor: pointer;
  padding: 0.5rem;
  transition: color var(--t-fast);
}

.input-action:hover {
  color: var(--navy);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 480px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.auth-footer {
  margin-top: var(--space-xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.auth-footer p {
  font-size: 0.9375rem;
  color: var(--slate-500);
}

.auth-footer a {
  color: var(--cyan-dark);
  font-weight: 700;
  cursor: pointer;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.back-link {
  font-size: 0.875rem !important;
  color: var(--slate-400) !important;
}

.auth-divider {
  text-align: center;
  color: var(--slate-400);
  font-size: 0.8125rem;
  margin: var(--space-md) 0;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--slate-200);
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

.auth-price-card {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: var(--space-md);
  border-radius: var(--radius-xl);
  text-align: center;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.price-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.price-value {
  font-size: 1.75rem;
  font-weight: 800;
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════════ */
#dashboardView {
  padding: 0;
}

.dash-body {
  width: min(calc(100% - (var(--page-gutter, 1.5rem) * 2)), var(--content-max, 1240px));
  margin: 0 auto;
  padding: calc(var(--nav-height-desktop, 4.5rem) + var(--nav-top-offset-desktop, 0.75rem) + var(--dash-nav-gap, 0.65rem)) 0 var(--dash-bottom-gap, 3rem);
}

.dash-body.community-full {
  height: calc(100dvh - (var(--nav-height-desktop, 4.5rem) + var(--nav-top-offset-desktop, 0.75rem) + var(--dash-nav-gap, 0.65rem)));
  padding-bottom: 0;
}

.dash-body.community-full #tabCommunity {
  height: 100%;
  overflow: hidden;
}

.dash-body.community-full #tabCommunity,
.dash-body.community-full #tabCommunity .community-layout,
.dash-body.community-full #tabCommunity .community-main {
  min-height: 0;
}

.dash-body.community-full #tabCommunity .community-layout {
  height: 100%;
}

.dash-body.community-full #tabCommunity .community-main {
  height: 100%;
}

#tabCommunity.dashboard-panel {
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  height: calc(100dvh - (var(--nav-height-desktop, 4.5rem) + var(--nav-top-offset-desktop, 0.75rem) + var(--dash-nav-gap, 0.65rem)));
}

#tabCommunity.dashboard-panel .community-layout {
  flex: 1;
  min-height: 0;
}

.dash-tab {
  display: flex;
  flex-direction: column;
  gap: var(--dash-section-gap, var(--space-md));
}

#dashboardView>.dashboard-panel {
  width: min(calc(100% - (var(--page-gutter, 1.5rem) * 2)), var(--content-max, 1240px));
  margin: 0 auto;
  padding: calc(var(--nav-height-desktop, 4.5rem) + var(--nav-top-offset-desktop, 0.75rem) + var(--dash-nav-gap, 0.65rem)) 0 var(--dash-bottom-gap, 3rem);
}

@media (min-width: 1024px) {

  .dash-body,
  #dashboardView>.dashboard-panel {
    padding-top: calc(var(--nav-height-desktop, 4.5rem) + var(--nav-top-offset-desktop, 0.75rem) + var(--dash-nav-gap, 1.35rem));
    padding-bottom: 4rem;
  }
}

@media (max-width: 768px) {
  .dash-body.community-full {
    height: calc(100dvh - 7.5rem);
  }

  .dash-body.community-full #tabCommunity {
    height: 100%;
  }

  #tabCommunity.dashboard-panel {
    height: calc(100dvh - 7.5rem);
  }
}

/* Welcome Section */
.dash-welcome {
  background: linear-gradient(135deg, var(--navy), #1e1b4b);
  border-radius: var(--radius-2xl);
  padding: var(--space-lg);
  color: var(--white);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: 0;
  box-shadow: var(--shadow-xl);
}

/* Override global heading color on dark welcome surfaces */
.dash-welcome h1,
.dash-welcome h2,
.dash-welcome h3,
.dash-welcome h4,
.dash-welcome h5,
.dash-welcome h6,
.dash-welcome .welcome-name,
.dash-welcome .tier-pill {
  color: var(--white);
}

#tabHome .dash-welcome {
  padding: clamp(1.25rem, 2vw, 1.75rem);
}

#tabHome .bento-grid {
  gap: var(--dash-section-gap, var(--space-md));
}

#tabHome .bento-item {
  padding: var(--dash-card-padding, var(--space-md));
}

@media (min-width: 768px) {
  .dash-welcome {
    flex-direction: row;
    align-items: center;
  }
}

.welcome-visual {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 200px;
  height: 200px;
  background: var(--cyan);
  filter: blur(80px);
  opacity: 0.3;
}

.welcome-visual.amber {
  background: var(--amber);
}

.welcome-visual.white {
  background: var(--white);
}

.welcome-main {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  z-index: 1;
}

.welcome-avatar {
  position: relative;
  isolation: isolate;
  overflow: visible;
  width: 4.5rem;
  height: 4.5rem;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.welcome-avatar::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: calc(var(--radius-xl) + 7px);
  background:
    conic-gradient(from 0deg,
      rgba(34, 211, 238, 0.95) 0deg,
      rgba(34, 211, 238, 0.15) 40deg,
      rgba(59, 130, 246, 0.9) 86deg,
      rgba(56, 189, 248, 0.12) 138deg,
      rgba(14, 165, 233, 0.92) 196deg,
      rgba(34, 211, 238, 0.18) 248deg,
      rgba(59, 130, 246, 0.9) 304deg,
      rgba(34, 211, 238, 0.95) 360deg);
  z-index: -1;
  padding: 2px;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: avatarRingSpin 5.6s linear infinite, dashboardRingPulse 2.6s ease-in-out infinite;
}

.welcome-avatar::after {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: calc(var(--radius-xl) + 12px);
  background:
    radial-gradient(circle at 28% 20%, rgba(56, 189, 248, 0.44) 0%, rgba(56, 189, 248, 0) 52%),
    radial-gradient(circle at 74% 82%, rgba(59, 130, 246, 0.34) 0%, rgba(59, 130, 246, 0) 56%);
  z-index: -2;
  pointer-events: none;
  filter: blur(1px);
  animation: dashboardAvatarAura 3.4s ease-in-out infinite;
}

.dash-welcome:hover .welcome-avatar {
  transform: translateY(-3px) scale(1.035) rotateX(4deg);
  box-shadow: 0 18px 34px rgba(37, 155, 210, 0.38), 0 0 0 1px rgba(56, 189, 248, 0.14);
}

.dash-welcome:hover .welcome-avatar::before {
  animation-duration: 3.2s, 1.8s;
}

.welcome-label {
  font-size: 0.8125rem;
  opacity: 0.6;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.welcome-name {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 0.125rem;
}

.welcome-badges {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
  flex-wrap: wrap;
}

.tier-pill {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.welcome-balance {
  text-align: right;
  z-index: 1;
}

.balance-value {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-family: var(--font-display);
}

.balance-value.amber {
  color: var(--amber-light);
}

.balance-label {
  font-size: 0.8125rem;
  opacity: 0.7;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.home-wallet-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.875rem;
}

.wallet-chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.75rem;
  padding: 0.55rem 0.65rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.wallet-chip .w-label {
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.88;
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.wallet-chip strong {
  font-size: 0.87rem;
  font-weight: 800;
}

.wallet-chip.savings {
  background: rgba(6, 182, 212, 0.16);
}

.wallet-chip.cash {
  background: rgba(245, 158, 11, 0.17);
}

.home-wallet-hint {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0.45rem;
}

.wallet-split-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
}

.wallet-split-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--slate-600);
  padding: 0.35rem 0;
}

.wallet-split-row strong {
  font-size: 0.94rem;
  color: var(--navy);
}

.wallet-split-note {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
}

@media (max-width: 520px) {
  .home-wallet-split {
    grid-template-columns: 1fr;
  }
}

/* Bento Grid Details */
.bento-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.bento-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.bento-icon.cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.05));
  color: var(--cyan-dark);
}

.bento-icon.purple {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
  color: var(--purple);
}

.bento-icon.amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
  color: var(--amber);
}

.bento-badge {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}

.bento-badge.cyan {
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan-dark);
}

.bento-badge.purple {
  background: rgba(139, 92, 246, 0.1);
  color: var(--purple);
}

.bento-badge.amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber);
}

.bento-label {
  font-size: 0.8125rem;
  color: var(--slate-500);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.bento-value {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.bento-value.purple {
  color: var(--purple);
}

.bento-value.cyan {
  color: var(--cyan-dark);
}

.bento-value.amber {
  color: var(--amber);
}

.bento-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.bento-highlight {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(139, 92, 246, 0.08));
  border-color: rgba(6, 182, 212, 0.15);
}

/* Activity List */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.activity-empty {
  text-align: center;
  color: var(--slate-400);
  padding: var(--space-md);
  font-size: 0.875rem;
  background: var(--slate-50);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--slate-200);
}

.catalog-empty {
  grid-column: 1 / -1;
  min-height: clamp(170px, 24vh, 240px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

/* Home dashboard enhancements */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
}

.home-insight-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--space-md);
}

.home-insight-main,
.home-insight-side {
  height: 100%;
}

.kpi-card {
  border: 1px solid var(--slate-100);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.kpi-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-500);
  font-weight: 700;
}

.kpi-value {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--navy);
  margin-top: 0.375rem;
}

.kpi-meta {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--slate-500);
}

.kpi-sparkline {
  margin-top: 0.6rem;
  height: 54px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 0.45rem;
  border-radius: 0.65rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.01));
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.kpi-bar {
  flex: 1;
  min-width: 6px;
  border-radius: 0.35rem 0.35rem 0.2rem 0.2rem;
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.95), rgba(6, 182, 212, 0.45));
  transition: height 0.45s ease;
}

.kpi-sparkline.income .kpi-bar {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.95), rgba(16, 185, 129, 0.4));
}

.kpi-sparkline.ref .kpi-bar {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.95), rgba(37, 99, 235, 0.4));
}

.insight-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.insight-item {
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.insight-item.ok {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.03));
  border-color: rgba(16, 185, 129, 0.2);
}

.insight-item.warn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.03));
  border-color: rgba(245, 158, 11, 0.22);
}

.insight-item.neutral {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(6, 182, 212, 0.02));
  border-color: rgba(6, 182, 212, 0.2);
}

.insight-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
  color: var(--navy);
  flex-shrink: 0;
}

.insight-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--navy);
}

.insight-text {
  font-size: 0.765rem;
  color: var(--slate-600);
  margin-top: 0.125rem;
  line-height: 1.45;
}

.mission-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mission-list-compact {
  gap: 0.7rem;
}

.mission-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  background: var(--slate-50);
  padding: 0.75rem;
}

.mission-row .btn {
  min-width: 88px;
  justify-content: center;
}

.mission-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mission-main strong {
  font-size: 0.85rem;
  color: var(--navy);
}

.mission-main span {
  font-size: 0.75rem;
  color: var(--slate-500);
}

.mission-tracker-card {
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.mission-tracker-subtitle {
  margin-top: 0.2rem;
  font-size: 0.76rem;
  color: var(--slate-500);
  line-height: 1.5;
}

.mission-tracker-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-md);
  margin-top: 0.35rem;
}

.mission-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.15rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.98));
  padding: 0.95rem;
  min-height: 100%;
}

.mission-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.mission-panel-head strong {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 900;
}

.mission-panel-head span {
  font-size: 0.73rem;
  color: var(--slate-500);
  text-align: right;
  line-height: 1.45;
}

.mission-daily-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mission-daily-list .mission-row {
  background: #fff;
  border-color: rgba(148, 163, 184, 0.16);
  padding: 0.72rem 0.8rem;
}

.mission-recent-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.mission-recent-link {
  color: var(--cyan);
  font-weight: 800;
}

.mission-recent-list {
  margin-top: 0.85rem;
}

.mission-recent-list .activity-row {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.95rem;
  padding: 0.78rem 0.85rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.mission-recent-list .activity-row+.activity-row {
  margin-top: 0.55rem;
}

/* Account Snapshot */
.summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.summary-row {
  display: grid;
  grid-template-columns: minmax(130px, 170px) 1fr;
  align-items: center;
  gap: 0.9rem;
  padding: 0.62rem 0.75rem;
  border: 1px solid var(--slate-100);
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.summary-key {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.summary-key i {
  color: var(--cyan-dark);
  font-size: 0.8rem;
}

.summary-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  text-align: left;
  word-break: break-word;
}

/* Performance & Target */
.goal-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}

.goal-box {
  border: 1px solid var(--slate-100);
  border-radius: 0.85rem;
  padding: 0.62rem 0.75rem;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.goal-label {
  font-size: 0.72rem;
  color: var(--slate-500);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.goal-value {
  margin-top: 0.2rem;
  font-size: 1.26rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
}

.goal-hint {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-600);
}

.goal-progress-wrap {
  margin-top: 0.7rem;
}

.goal-foot {
  margin-top: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate-600);
}

/* Progress Bar */
.progress-wrap {
  background: var(--slate-100);
  border-radius: var(--radius-full);
  overflow: hidden;
  height: 8px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

/* ═══════════════════════════════════════════════════════════════
   REFERRAL TAB
   ═══════════════════════════════════════════════════════════════ */
.affiliate-id-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: var(--space-md);
  width: 430px;
  max-width: 430px;
  min-width: 430px;
  margin-inline: 0;
  padding: 0.88rem 0.88rem 0.82rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(134, 163, 255, 0.26);
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.26), transparent 34%),
    radial-gradient(circle at bottom left, rgba(34, 211, 238, 0.18), transparent 32%),
    linear-gradient(145deg, #061246 0%, #0d2175 48%, #091033 100%);
  color: #fff;
  box-shadow:
    0 18px 48px rgba(5, 16, 72, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  min-height: 0;
}

.affiliate-id-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 34%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 46px);
  pointer-events: none;
}

.affiliate-id-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 38%, rgba(15, 23, 42, 0.14));
  pointer-events: none;
}

.affiliate-id-topline,
.affiliate-id-main,
.affiliate-id-chips,
.affiliate-id-grid,
.affiliate-id-codezone,
.affiliate-id-footer {
  position: relative;
  z-index: 1;
}

.affiliate-id-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 0.72rem;
}

.affiliate-id-brand {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.affiliate-id-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.affiliate-id-main {
  display: flex;
  align-items: center;
  gap: 0.68rem;
  padding: 0.18rem 0 0.06rem;
}

.affiliate-id-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.affiliate-id-avatar-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.affiliate-id-avatar {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0.86rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.26), rgba(167, 139, 250, 0.24));
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.affiliate-id-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 40%);
  pointer-events: none;
}

.affiliate-id-avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(167, 139, 250, 0.05));
  z-index: 0;
}

.affiliate-id-role {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 226, 255, 0.92);
}

.affiliate-id-name {
  margin: 0.1rem 0 0.08rem;
  font-size: 1.02rem;
  line-height: 1.05;
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.affiliate-id-track {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.affiliate-id-submeta {
  margin-top: 0.16rem;
  font-size: 0.61rem;
  color: rgba(226, 232, 240, 0.76);
}

.affiliate-id-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.65rem;
}

.affiliate-id-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(125, 211, 252, 0.24);
  color: #e8fbff;
  font-size: 0.64rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.affiliate-id-chip.ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.84);
}

.affiliate-id-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.48rem;
  margin-top: 0.62rem;
}

.affiliate-id-codezone {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 0.52rem;
  margin-top: 0.62rem;
  align-items: stretch;
}

.affiliate-id-qrpanel,
.affiliate-id-barcode-panel {
  padding: 0.55rem;
  border-radius: 0.78rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.affiliate-id-qr {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 0.62rem;
  padding: 0.3rem;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.04);
}

.affiliate-id-qrlabel {
  margin-top: 0.32rem;
  text-align: center;
  font-size: 0.56rem;
  line-height: 1.28;
  color: rgba(255, 255, 255, 0.72);
}

.affiliate-id-barcode {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: flex-end;
  gap: 1px;
  padding: 0.18rem 0.15rem 0;
}

.affiliate-id-bar {
  display: block;
  width: 2px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(201, 231, 255, 0.84));
  opacity: 0.95;
}

.affiliate-id-barcode-code {
  margin-top: 0.28rem;
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.85);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.affiliate-id-cell {
  padding: 0.58rem 0.64rem;
  border-radius: 0.72rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.affiliate-id-cell span {
  display: block;
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 0.18rem;
  font-weight: 700;
}

.affiliate-id-cell strong {
  display: block;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  word-break: break-word;
}

.affiliate-id-footer {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.affiliate-id-footer-compact {
  display: flex;
  align-items: center;
  min-height: 40px;
}

.affiliate-id-footer-label {
  display: block;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 0.28rem;
}

.affiliate-id-footer strong {
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.35;
}

.affiliate-id-emblem {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #fff7c2;
  background: linear-gradient(135deg, rgba(255, 214, 102, 0.22), rgba(250, 204, 21, 0.08));
  border: 1px solid rgba(255, 219, 112, 0.2);
}

.referral-action-grid {
  margin-bottom: var(--space-sm);
}

.referral-box {
  background: var(--slate-50);
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  border: 1px solid var(--slate-100);
  margin-bottom: var(--space-md);
}

.ref-url {
  font-family: monospace;
  font-size: 0.8125rem;
  color: var(--slate-600);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  border: none;
}

.btn-whatsapp:hover {
  background: #22c55e;
}

.btn-facebook {
  background: #1877f2;
  color: white;
  border: none;
}

.btn-facebook:hover {
  background: #166fe5;
}

/* Tier Card */
.tier-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.tier-visual {
  font-size: 3rem;
  color: var(--cyan);
}

.tier-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
}

.tier-hint {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.bento-grid-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
}

.stat-value.purple {
  color: var(--purple);
}

.stat-value.cyan {
  color: var(--cyan-dark);
}

.stat-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════════
   PROFILE TAB
   ═══════════════════════════════════════════════════════════════ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.grid-full {
  grid-column: span 2;
}

@media (max-width: 640px) {
  .form-grid>div {
    grid-column: span 2 !important;
  }
}

.alert-pill {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.alert-pill.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-pill.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-pill.info {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.05));
  color: #0e7490;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.track-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  white-space: nowrap;
}

.track-pill.track-umum,
.track-pill.track-siswa {
  background: rgba(71, 85, 105, 0.1);
  color: #334155;
  border-color: rgba(71, 85, 105, 0.22);
}

.track-pill.track-mhs-pending {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.28);
}

.track-pill.track-mhs-approved {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.28);
}

.track-pill.track-mhs-rejected {
  background: rgba(244, 63, 94, 0.14);
  color: #9f1239;
  border-color: rgba(244, 63, 94, 0.28);
}

.track-hint {
  margin-top: -0.5rem;
  margin-bottom: var(--space-md);
  font-size: 0.8rem;
  color: var(--slate-500);
  line-height: 1.5;
}

.profile-top-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--slate-100);
  border-radius: 1rem;
  padding: 0.85rem;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.06), rgba(139, 92, 246, 0.05));
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: profileCardReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.profile-top-card::before {
  content: '';
  position: absolute;
  inset: -40% -30% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 155, 210, 0.15), transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: profileAuraDrift 5.2s ease-in-out infinite;
}

.profile-top-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -45%;
  width: 42%;
  height: 100%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  pointer-events: none;
  animation: profileShineSweep 4.6s ease-in-out infinite;
}

.profile-top-card:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.24);
  box-shadow: 0 14px 28px rgba(10, 14, 61, 0.08);
}

.profile-top-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1;
  animation: profileBlockRise 0.55s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  isolation: isolate;
}

.profile-avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 1.2rem;
  background: conic-gradient(from 0deg, rgba(34, 211, 238, 0.65), rgba(59, 130, 246, 0.35), rgba(34, 211, 238, 0.65));
  z-index: -1;
  filter: blur(0.5px);
  animation: avatarRingSpin 6s linear infinite;
}

.profile-avatar-preview {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 8px 20px rgba(37, 155, 210, 0.24);
  transition: transform var(--t-base), box-shadow var(--t-base), filter var(--t-base);
}

.profile-avatar-wrap:hover .profile-avatar-preview {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 24px rgba(37, 155, 210, 0.33);
  filter: saturate(1.05);
}

.profile-avatar-edit {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  border: 2px solid #fff;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--t-base), background var(--t-base), box-shadow var(--t-base);
  animation: cameraPulse 2.2s ease-in-out infinite;
}

.profile-avatar-edit:hover {
  background: var(--cyan-dark);
  transform: scale(1.08);
  box-shadow: 0 0 0 5px rgba(6, 182, 212, 0.16);
}

.profile-top-meta {
  min-width: 0;
}

.profile-top-meta strong {
  display: block;
  font-size: 0.98rem;
  color: var(--navy);
  font-weight: 800;
}

.profile-top-meta span {
  display: block;
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-top: 0.1rem;
}

.profile-top-meta p {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--slate-500);
  line-height: 1.45;
}

.profile-top-tier {
  width: min(42%, 290px);
  min-width: 220px;
  animation: profileBlockRise 0.55s 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.profile-top-tier .tier-level-card {
  margin-top: 0;
}

.profile-top-tier .code-hint {
  margin-top: 0.35rem;
  margin-bottom: 0;
  font-size: 0.72rem;
}

.section-subheader {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.section-subheader i {
  color: var(--cyan-dark);
}

.tier-level-card {
  margin-top: 0.45rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  padding: 0.9rem 0.95rem;
  background:
    linear-gradient(135deg, #fff, #f8fafc) padding-box,
    linear-gradient(120deg, rgba(245, 158, 11, 0.45), rgba(34, 211, 238, 0.25), rgba(245, 158, 11, 0.45)) border-box;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.tier-level-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 18%, rgba(255, 255, 255, 0.6) 45%, transparent 72%);
  transform: translateX(-140%);
  animation: tierSheenMove 4s ease-in-out infinite;
  pointer-events: none;
}

.tier-level-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.11);
}

.tier-level-icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #92400e;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fcd34d;
  animation: tierBadgePulse 2.8s ease-in-out infinite;
  z-index: 1;
}

.tier-level-meta {
  z-index: 1;
}

.tier-level-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.tier-level-caption {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-top: 0.15rem;
}

.tier-level-glow {
  position: absolute;
  right: -28px;
  top: -26px;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.28), transparent 70%);
  animation: tierGlowFloat 4s ease-in-out infinite;
}

.tier-level-card.tier-silver .tier-level-icon {
  color: #334155;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-color: #cbd5e1;
}

.tier-level-card.tier-gold .tier-level-icon {
  color: #92400e;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #fcd34d;
}

.tier-level-card.tier-diamond .tier-level-icon {
  color: #155e75;
  background: linear-gradient(135deg, #cffafe, #a5f3fc);
  border-color: #67e8f9;
}

@keyframes tierBadgePulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.28);
  }

  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 10px rgba(56, 189, 248, 0);
  }
}

@keyframes tierGlowFloat {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.75;
  }

  50% {
    transform: translateY(7px);
    opacity: 0.95;
  }
}

@keyframes profileCardReveal {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes profileBlockRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes profileAuraDrift {

  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.7;
  }

  50% {
    transform: translate(-8px, 8px);
    opacity: 1;
  }
}

@keyframes profileShineSweep {

  0%,
  60% {
    transform: translateX(0) skewX(-20deg);
    opacity: 0;
  }

  68% {
    opacity: 0.85;
  }

  100% {
    transform: translateX(360%) skewX(-20deg);
    opacity: 0;
  }
}

@keyframes avatarRingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cameraPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(10, 14, 61, 0.16);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(10, 14, 61, 0);
  }
}

@keyframes dashboardAvatarFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes dashboardAvatarAura {

  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.94);
  }

  50% {
    opacity: 0.75;
    transform: scale(1.04);
  }
}

@keyframes dashboardRingPulse {

  0%,
  100% {
    opacity: 0.78;
    filter: saturate(1) brightness(1);
  }

  50% {
    opacity: 1;
    filter: saturate(1.14) brightness(1.08);
  }
}

@keyframes tierSheenMove {

  0%,
  62% {
    transform: translateX(-140%);
    opacity: 0;
  }

  70% {
    opacity: 1;
  }

  100% {
    transform: translateX(170%);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .profile-top-card {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-top-main {
    width: 100%;
  }

  .profile-top-tier {
    width: 100%;
    min-width: 0;
  }
}

.code-display {
  font-size: 2rem;
  font-weight: 900;
  color: var(--cyan-dark);
  text-align: center;
  padding: var(--space-md);
  background: var(--slate-50);
  border-radius: var(--radius-xl);
  border: 2px dashed rgba(6, 182, 212, 0.3);
  margin: var(--space-md) 0;
  letter-spacing: 0.15em;
}

.code-hint {
  font-size: 0.8125rem;
  color: var(--slate-500);
  text-align: center;
}

/* Info Lists */
.info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) var(--space-sm);
  background: var(--slate-50);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}

.info-row.highlight-amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
  color: #b45309;
}

.text-emerald {
  color: var(--emerald);
}

.text-amber {
  color: #b45309;
}

/* ═══════════════════════════════════════════════════════════════
   TABS & FILTERS
   ═══════════════════════════════════════════════════════════════ */
.tab-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--dash-header-gap, var(--space-lg));
  /* Increased for better balance */
  padding: 0.35rem 0.1rem;
}

.tab-header-widget {
  position: relative;
  padding: 1.05rem 1.15rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background:
    radial-gradient(circle at 88% 18%, rgba(56, 189, 248, 0.12), transparent 30%),
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.75), transparent 34%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 253, 0.9));
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.tab-header-widget::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.55), rgba(37, 99, 235, 0.2));
}

.tab-header-widget::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.32;
  pointer-events: none;
}

.tab-header-widget:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
}

.tab-header-course::after {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.72), rgba(2, 132, 199, 0.32));
}

.tab-header-event::after {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.74), rgba(234, 88, 12, 0.34));
}

.tab-header-sgs::after {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.72), rgba(6, 182, 212, 0.3));
}

.tab-header-cert::after {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.7), rgba(129, 140, 248, 0.3));
}

.tab-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(30, 41, 59, 0.14);
  background: rgba(255, 255, 255, 0.62);
  color: var(--slate-500);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  backdrop-filter: blur(6px);
}

.tab-info {
  flex: 1;
  min-width: min(100%, 22rem);
}

.tab-title {
  font-size: 1.75rem;
  /* Slightly larger for modern feel */
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.tab-title i {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  color: var(--navy);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.09), rgba(15, 23, 42, 0.04));
  border: 1px solid rgba(15, 23, 42, 0.1);
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.tab-subtitle {
  font-size: 0.95rem;
  color: var(--slate-500);
  margin-top: 0.375rem;
  line-height: 1.5;
  max-width: 92ch;
}

.tab-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

.filter-pill-group {
  display: flex;
  background: rgba(255, 255, 255, 0.86);
  padding: 0.375rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 8px 14px rgba(148, 163, 184, 0.18);
  gap: 0.25rem;
  backdrop-filter: blur(8px);
}

.filter-pill {
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  background: transparent;
  color: var(--slate-500);
  border: none;
  cursor: pointer;
  transition: all var(--t-fast);
}

.filter-pill:hover {
  color: var(--navy);
  background: var(--slate-50);
}

.filter-pill.active {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.25);
}

/* ═══════════════════════════════════════════════════════════════
   CATALOG GRID
   ═══════════════════════════════════════════════════════════════ */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}

/* Horizontal Scroll for Mobile */
.horizontal-scroll {
  display: flex !important;
  overflow-x: auto !important;
  gap: 1.25rem !important;
  padding: 0.5rem 1rem 2rem !important;
  width: calc(100% + 2rem) !important;
  margin-left: -1rem !important;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.horizontal-scroll::-webkit-scrollbar {
  display: none;
}
.horizontal-scroll > * {
  flex: 0 0 calc(min(88%, 320px)) !important;
  scroll-snap-align: center;
  min-width: 260px;
}

.catalog-card {
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.8);
  /* Subtle glassmorphic border */
  border-radius: var(--radius-2xl);
  /* More rounded premium feel */
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  /* Ultra modern shadow */
  transition: all var(--t-bounce);
  display: flex;
  flex-direction: column;
}

.course-card {
  position: relative;
  isolation: isolate;
  animation: courseCardEnter 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--card-delay, 0ms);
}

.catalog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(37, 155, 210, 0.12);
  border-color: rgba(6, 182, 212, 0.3);
}

.catalog-card-cover {
  height: 140px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.catalog-card-cover .card-flyer-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.02));
  padding: 0.4rem;
}

.course-cover-glow {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35) 0%, rgba(34, 211, 238, 0.08) 38%, rgba(34, 211, 238, 0) 72%);
  left: -36px;
  top: -42px;
  filter: blur(1px);
  animation: glowDrift 8s ease-in-out infinite;
}

.course-cover-icon {
  position: relative;
  z-index: 2;
  transform-origin: center;
}

.course-cover-icon.pulse {
  animation: iconPulse 2.8s ease-in-out infinite;
}

.catalog-card-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(6, 182, 212, 0.2), transparent 60%);
}

.course-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -58%;
  width: 44%;
  height: 100%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  opacity: 0;
  pointer-events: none;
}

.course-card:hover::after {
  animation: cardSweep 900ms ease;
}

.course-card.is-premium {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow:
    0 12px 24px rgba(15, 23, 42, 0.07),
    0 0 0 1px rgba(59, 130, 246, 0.12) inset;
}

.course-card.is-premium .catalog-card-cover {
  background: linear-gradient(135deg, #091854 0%, #1d3a9f 52%, #1f77d5 100%);
}

.course-card.is-free .catalog-card-cover {
  background: linear-gradient(135deg, #0a1f64 0%, #2057c8 56%, #22d3ee 100%);
}

.catalog-card-body {
  padding: var(--space-lg);
  /* Slightly more padding for breathing room */
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-chip-row {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-xs);
}

.card-chip {
  font-size: 0.6875rem;
  padding: 0.1875rem 0.625rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.level-chip {
  background: var(--slate-100);
  color: var(--slate-600);
}

.card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.375rem;
  line-height: 1.35;
}

.card-meta {
  font-size: 0.8125rem;
  color: var(--slate-500);
  line-height: 1.5;
}

.card-selling {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #047857;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
  border: 1px dashed rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 0.375rem 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.card-progress-wrap {
  margin-top: var(--space-xs);
}

.card-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-bottom: 0.125rem;
}

.card-progress-bar {
  height: 5px;
  background: var(--slate-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.card-progress-fill {
  height: 100%;
  width: var(--p, 0%);
  background: linear-gradient(90deg, #06b6d4 0%, #22d3ee 100%);
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.26);
  animation: progressReveal 780ms ease-out both;
}

.card-cert-note {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--purple);
  font-weight: 700;
}

.card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: var(--space-xs);
}

.card-metrics span {
  font-size: 0.6875rem;
  color: var(--slate-500);
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
}

.card-actions {
  margin-top: auto;
  /* Pushes actions to the bottom for balanced alignment */
  padding-top: var(--space-md);
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}

.card-actions .cta-main {
  flex: 2;
}

.card-actions .cta-main.cta-buy {
  position: relative;
  box-shadow: 0 10px 18px rgba(14, 116, 144, 0.25);
}

.card-actions .cta-main.cta-buy::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.3);
  opacity: 0;
  animation: ctaPulse 2s ease-out infinite;
}

.card-actions .cta-secondary {
  flex: 1;
}

.course-hot-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.625rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(249, 115, 22, 0.08));
  color: #b45309;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.event-card {
  position: relative;
  isolation: isolate;
  animation: courseCardEnter 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--card-delay, 0ms);
}

.event-card .event-cover {
  background: linear-gradient(135deg, #091854 0%, #1c2f88 48%, #2563eb 100%);
}

.event-card.is-premium .event-cover {
  background: linear-gradient(135deg, #0a1246 0%, #1d4ed8 56%, #38bdf8 100%);
}

.event-cover-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.45) 0%, rgba(59, 130, 246, 0.12) 40%, rgba(59, 130, 246, 0) 72%);
  right: -28px;
  top: -40px;
  animation: glowDrift 7s ease-in-out infinite;
}

.event-cover-icon {
  position: relative;
  z-index: 2;
  animation: iconPulse 2.6s ease-in-out infinite;
}

.event-urgency {
  margin-bottom: 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
  color: #1e40af;
  background: rgba(219, 234, 254, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.event-urgency.is-soon {
  color: #92400e;
  background: rgba(254, 243, 199, 0.95);
  border-color: rgba(245, 158, 11, 0.35);
}

.event-urgency.is-past {
  color: #475569;
  background: rgba(241, 245, 249, 0.95);
  border-color: rgba(148, 163, 184, 0.35);
}

.event-seat-meter {
  margin-top: 0.5rem;
  margin-bottom: 0.125rem;
}

.event-seat-meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--slate-500);
  margin-bottom: 0.2rem;
}

.event-seat-meter-bar {
  height: 6px;
  border-radius: 9999px;
  background: #e2e8f0;
  overflow: hidden;
}

.event-seat-meter-fill {
  height: 100%;
  width: var(--p, 0%);
  border-radius: 9999px;
  background: linear-gradient(90deg, #2563eb 0%, #22d3ee 100%);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.25);
  animation: progressReveal 760ms ease-out both;
}

.event-card .card-actions .cta-main {
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.event-card .card-actions .cta-main:hover {
  transform: translateY(-1px);
}

.event-card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  align-items: stretch;
}

.event-card-actions .cta-main,
.event-card-actions .cta-secondary {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.event-card-actions .cta-secondary {
  flex: none;
}

@media (min-width: 640px) {
  .event-card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-card-actions .cta-main {
    grid-column: 1 / -1;
  }
}

.event-workspace {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1rem;
  padding: 1.15rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(191, 219, 254, 0.55);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06);
}

.event-hero-kicker {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.event-hero-copy h3 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--navy);
}

.event-hero-copy p {
  margin: 0.75rem 0 0;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 52rem;
}

.event-hero-badges {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.event-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.8);
  border: 1px solid rgba(96, 165, 250, 0.22);
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 800;
}

.event-hero-stats {
  display: grid;
  gap: 0.75rem;
}

.event-stat-card {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(241, 245, 249, 0.96));
  border: 1px solid rgba(191, 219, 254, 0.5);
}

.event-stat-card span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.event-stat-card strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
}

.event-stat-card small {
  display: block;
  margin-top: 0.35rem;
  color: var(--slate-500);
  font-size: 0.78rem;
  line-height: 1.5;
}

.event-grid-modern {
  align-items: stretch;
}

@media (max-width: 980px) {
  .event-hero-shell {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SGS PROGRAM SHOWCASE
   ═══════════════════════════════════════════════════════════════ */
.sgs-public-program-box {
  margin-top: 0.9rem;
  border: 1px solid rgba(6, 182, 212, 0.2);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.07), rgba(59, 130, 246, 0.05));
  border-radius: var(--radius-xl);
  padding: 0.9rem;
}

.sgs-program-headline h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 1rem;
  color: var(--navy);
}

.sgs-program-headline p {
  margin-top: 0.3rem;
  margin-bottom: 0;
  color: var(--slate-500);
  font-size: 0.82rem;
  line-height: 1.5;
}

.sgs-program-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.sgs-program-grid.sgs-program-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  grid-template-columns: none;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x proximity;
}

.sgs-program-grid.sgs-program-strip .sgs-program-card {
  scroll-snap-align: start;
}

.sgs-program-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

@media (max-width: 768px) {
  .sgs-lead-hero {
    padding: 0.9rem;
  }

  .sgs-lead-layout {
    grid-template-columns: 1fr;
  }

  .sgs-lead-side {
    position: static;
  }

  .sgs-form-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sgs-form-grid {
    grid-template-columns: 1fr;
  }

  .sgs-hall-of-fame {
    padding: 0.85rem;
  }

  .sgs-hof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sgs-hof-photo {
    width: 64px;
    height: 64px;
  }
}

.sgs-program-card {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0.9rem;
  padding: 0.75rem;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  animation: courseCardEnter 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--card-delay, 0ms);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.sgs-program-flyer {
  margin: -0.15rem -0.15rem 0.15rem;
  border-radius: 0.78rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(241, 245, 249, 0.8);
}

.sgs-program-flyer img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  display: block;
}

.sgs-program-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 14px 24px rgba(2, 132, 199, 0.14);
}

.sgs-program-top {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.sgs-program-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #0c4a6e;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.55), rgba(147, 197, 253, 0.55));
  border: 1px solid rgba(14, 165, 233, 0.25);
}

.shortcut-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--t-base);
}

.shortcut-card:hover {
  transform: translateY(-4px);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.shortcut-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Pillar Specific Icons */
.shortcut-icon.cyan-light {
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan);
}

.shortcut-icon.purple-light {
  background: rgba(139, 92, 246, 0.1);
  color: var(--purple);
}

.shortcut-icon.emerald-light {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
}

.shortcut-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
}

/* Pillar Layouts */
.pillar-label {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pillar-label.cyan {
  color: var(--cyan);
}

.pillar-label.purple {
  color: var(--purple);
}

.pillar-label.emerald {
  color: var(--emerald);
}

.shortcut-pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.shortcut-pillar-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .shortcut-pillar-row {
    grid-template-columns: 1fr;
  }
}

.shortcut-card-wide {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all var(--t-base);
}

.shortcut-card-wide:hover {
  transform: translateX(4px);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.shortcut-text {
  display: flex;
  flex-direction: column;
}

.shortcut-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.sgs-program-top h4 {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--navy);
}

.sgs-program-angle {
  margin: 0.2rem 0 0;
  font-size: 0.73rem;
  line-height: 1.5;
  color: var(--slate-500);
}

.sgs-program-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.sgs-skill-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.64rem;
  font-weight: 700;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.11);
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
}

.sgs-program-career strong {
  font-size: 0.72rem;
  color: var(--slate-600);
}

.sgs-program-career ul {
  margin: 0.25rem 0 0;
  padding-left: 1rem;
}

.sgs-program-career li {
  font-size: 0.74rem;
  color: var(--slate-500);
  line-height: 1.45;
}

.sgs-program-card.compact {
  padding: 0.65rem;
}

.sgs-program-card.compact .sgs-program-angle {
  display: none;
}

.sgs-program-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sgs-track-summary {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sgs-quick-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.sgs-step-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(241, 245, 249, 0.7);
  color: var(--slate-700);
  font-size: 0.8rem;
  font-weight: 700;
}

.sgs-step-chip span {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.14);
  color: #0369a1;
  font-size: 0.7rem;
  font-weight: 800;
}

@media(min-width: 640px) {
  .sgs-quick-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sgs-track-pill {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(148, 163, 184, 0.12);
  color: var(--slate-600);
  font-size: 0.72rem;
  font-weight: 700;
}

.sgs-track-pill.waiting {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.2);
  color: #0369a1;
}

.sgs-track-pill.pending {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.24);
  color: #b45309;
}

.sgs-track-pill.paid {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.24);
  color: #047857;
}

.sgs-pipeline-list {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.7rem;
}

.sgs-pipeline-item {
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 0.95rem;
  padding: 0.72rem;
  background: rgba(255, 255, 255, 0.92);
}

.sgs-pipeline-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
}

.sgs-pipeline-name {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--navy);
}

.sgs-pipeline-meta {
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--slate-500);
}

.sgs-pipeline-badge {
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.66rem;
  font-weight: 800;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--slate-600);
  background: rgba(148, 163, 184, 0.1);
}

.sgs-pipeline-badge.waiting {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.24);
  color: #0369a1;
}

.sgs-pipeline-badge.pending {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.26);
  color: #b45309;
}

.sgs-pipeline-badge.paid {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.3);
  color: #047857;
}

.sgs-pipeline-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.55rem;
  margin-top: 0.55rem;
}

.sgs-pipeline-step {
  display: flex;
  align-items: center;
  gap: 0.34rem;
  font-size: 0.69rem;
  color: var(--slate-400);
}

.sgs-pipeline-step i {
  color: var(--slate-400);
}

.sgs-pipeline-step.done {
  color: #0f766e;
  font-weight: 700;
}

.sgs-pipeline-step.done i {
  color: #10b981;
}

.sgs-pipeline-step small {
  margin-left: auto;
  font-size: 0.65rem;
  color: var(--slate-400);
}

.sgs-pipeline-finance {
  margin-top: 0.6rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
  padding-top: 0.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.22rem;
  font-size: 0.72rem;
  color: var(--slate-500);
}

.sgs-pipeline-finance strong {
  color: var(--navy);
}

.sgs-pipeline-finance strong.ok {
  color: #047857;
}

@media (max-width: 640px) {
  .sgs-pipeline-steps {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   NOTIFICATION DROPDOWN
   ═══════════════════════════════════════════════════════════════ */
#notifDropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 340px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-100);
  margin-top: 0.75rem;
  z-index: 10000;
  max-height: 420px;
  overflow-y: auto;
  animation: fadeSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-header {
  padding: var(--space-md);
  border-bottom: 1px solid var(--slate-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-title {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9375rem;
}

.notif-list {
  padding: var(--space-xs);
}

.notif-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
  transition: background var(--t-fast);
}

.notif-item:hover {
  background: var(--slate-50);
}

.notif-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-icon.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
}

.notif-icon.info {
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan);
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-text {
  font-size: 0.875rem;
  color: var(--slate-700);
  line-height: 1.4;
}

.notif-time {
  font-size: 0.75rem;
  color: var(--slate-400);
  margin-top: 0.125rem;
}

#notifBadge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--rose);
  color: var(--white);
  font-size: 0.625rem;
  padding: 2px 5px;
  border-radius: var(--radius-full);
  font-weight: 800;
  border: 2px solid var(--white);
}

/* ═══════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════ */
#portalToast {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  max-width: 360px;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  transform: translateY(-1.5rem);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

#portalToast.show {
  transform: translateY(0);
  opacity: 1;
}

#portalToast.success {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #065f46;
  border: 1px solid #6ee7b7;
}

#portalToast.error {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #9f1239;
  border: 1px solid #fca5a5;
}

#portalToast.info {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1e40af;
  border: 1px solid #93c5fd;
}

/* ═══════════════════════════════════════════════════════════════
   PAGE LOADER
   ═══════════════════════════════════════════════════════════════ */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  transition: opacity 0.4s;
}

.page-loader.hide {
  opacity: 0;
  pointer-events: none;
}

.loader-ring {
  width: 48px;
  height: 48px;
  border: 3px solid var(--slate-200);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ═══════════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: none;
}

.modal-backdrop.active {
  display: block;
}

.modal-container {
  position: fixed;
  inset: 0;
  z-index: 9001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.modal-container.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
  animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--slate-400);
  cursor: pointer;
  padding: 0.25rem;
  transition: color var(--t-fast);
}

.modal-close:hover {
  color: var(--navy);
}

/* ═══════════════════════════════════════════════════════════════
   TWO COLUMN GRID
   ═══════════════════════════════════════════════════════════════ */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--dash-section-gap, var(--space-md));
}

.referral-layout {
  gap: var(--dash-section-gap, var(--space-md));
}

.referral-layout .stats-column {
  gap: var(--space-md);
}

.referral-layout .bento-header {
  margin-bottom: var(--space-md);
}

.referral-layout .bento-grid-mini {
  margin-bottom: var(--space-md);
}

.referral-layout .bento-item {
  height: 100%;
}

.referral-layout .affiliate-id-card .affiliate-id-name {
  font-family: 'SF Pro Text', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Stats and Sidebars should use the exact same vertical gap as horizontal grids */
.stats-column,
.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--dash-section-gap, var(--space-md));
}

@media(min-width: 1024px) {
  .two-col-grid {
    grid-template-columns: 1fr 340px;
    gap: var(--dash-section-gap, var(--space-md));
    align-items: start;
  }

  .referral-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: stretch;
  }
}

@media(max-width: 767px) {
  .affiliate-id-card {
    max-width: 100%;
    padding: 0.9rem;
  }

  .affiliate-id-main {
    align-items: flex-start;
  }

  .affiliate-id-grid {
    grid-template-columns: 1fr;
  }

  .affiliate-id-codezone {
    grid-template-columns: 1fr;
  }

  .affiliate-id-qr {
    width: 92px;
    height: 92px;
  }

  .affiliate-id-footer {
    align-items: flex-start;
  }
}

@media print {
  body * {
    visibility: hidden !important;
  }

  #affiliateIdCard,
  #affiliateIdCard * {
    visibility: visible !important;
  }

  #affiliateIdCard {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 820px;
    margin: 0;
    box-shadow: none;
    border: none;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

.three-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media(min-width: 640px) {
  .three-col-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
}

/* ═══════════════════════════════════════════════════════════════
   TIER BADGES
   ═══════════════════════════════════════════════════════════════ */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.tier-bronze {
  background: linear-gradient(135deg, #fef3f2, #fee2e2);
  color: #9a3412;
  border: 1px solid #fdba74;
}

.tier-silver {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  color: #475569;
  border: 1px solid #cbd5e1;
}

.tier-gold {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: #92400e;
  border: 1px solid #fcd34d;
}

.tier-diamond {
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  color: #164e63;
  border: 1px solid #67e8f9;
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
.animate-in {
  animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-0 {
  animation-delay: 0.05s;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.15s;
}

.delay-3 {
  animation-delay: 0.2s;
}

.delay-4 {
  animation-delay: 0.25s;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Pulse Animation */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Shake Animation */
@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

.animate-shake {
  animation: shake 0.5s ease-in-out;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .bento-grid>div[style*="grid-column: span"] {
    grid-column: span 1 !important;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .home-insight-layout {
    grid-template-columns: 1fr;
  }

  .mission-tracker-grid {
    grid-template-columns: 1fr;
  }

  .mission-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .mission-panel-head span {
    text-align: left;
  }

  .mission-row {
    flex-direction: column;
    align-items: stretch;
  }

  .mission-row .btn {
    width: 100%;
  }

  .portal-nav {
    height: 3.75rem;
  }

  .dash-welcome {
    padding: var(--space-md);
  }

  .welcome-avatar {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.5rem;
  }

  .welcome-name {
    font-size: 1.375rem;
  }

  .balance-value {
    font-size: 1.75rem;
  }

  .hero-section {
    padding: var(--space-2xl) var(--space-sm);
    min-height: auto;
  }

  .auth-card {
    padding: var(--space-lg);
  }

  .bento-item {
    padding: var(--space-md);
  }

  #tabHome .bento-grid {
    gap: var(--space-md);
  }

  .card-actions {
    flex-wrap: nowrap;
  }

  .card-actions .btn {
    padding: 0.625rem 0.5rem;
    font-size: 0.8125rem;
  }

  .summary-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .summary-key {
    font-size: 0.72rem;
  }

  .summary-val {
    font-size: 0.98rem;
  }

  .goal-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) and (min-width: 769px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-grid .kpi-card:last-child {
    grid-column: span 2;
  }

  .home-insight-layout {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .portal-nav {
    border-radius: var(--radius-2xl);
  }

  .nav-logo {
    font-size: 1.25rem;
  }

  .nav-logo-img {
    width: 24px;
    height: 24px;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }

  .hero-title {
    font-size: 1.875rem;
  }

  .hero-stats {
    gap: var(--space-md);
  }

  .stat-value {
    font-size: 1.375rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .track-card {
    padding: var(--space-lg);
  }

  .tab-filter-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .tab-filter-row .btn {
    width: 100%;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

/* Hide desktop nav on mobile */
@media (max-width: 1023px) {
  .desktop-nav-tabs {
    display: none !important;
  }

  .desktop-only {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ULTRA MODERN REFINEMENT (MOBILE-FIRST)
   ═══════════════════════════════════════════════════════════════ */
:root {
  --nav-height-desktop: 4.5rem;
  --nav-height-mobile: 4rem;
  --nav-top-offset-desktop: 0.75rem;
  --nav-top-offset-mobile: 0.5rem;
  --content-max: 1240px;
  --page-gutter: clamp(1rem, 2.5vw, 2rem);
  --bottom-nav-height: 4.25rem;
  --bottom-nav-offset: clamp(0.65rem, 2.5vw, 1rem);
  --bottom-nav-safe-space: calc(var(--bottom-nav-height) + var(--bottom-nav-offset) + env(safe-area-inset-bottom, 0px) + 1.5rem);
  --dash-nav-gap: clamp(0.75rem, 1.2vw, 1.25rem);
  --dash-bottom-gap: clamp(2rem, 5vw, 3.25rem);
  --dash-section-gap: clamp(0.9rem, 1.6vw, 1.35rem);
  --dash-header-gap: clamp(1.2rem, 2.2vw, 2rem);
  --dash-card-padding: clamp(1rem, 1.45vw, 1.35rem);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -9;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, #000 20%, transparent 80%);
}

.portal-section {
  position: relative;
}

#landingView {
  padding-top: calc(var(--nav-height-desktop) + var(--nav-top-offset-desktop) + 1.25rem);
}

@media (max-width: 1024px) {
  :root {
    --dash-nav-gap: 0.7rem;
  }

  #landingView {
    padding-top: calc(var(--nav-height-mobile) + var(--nav-top-offset-mobile) + 1rem);
  }
}

.portal-nav {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--content-max));
  max-width: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 18px 46px rgba(10, 14, 61, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.portal-nav::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.d-tab {
  min-height: 2.5rem;
}

.d-tab.active {
  background: rgba(6, 182, 212, 0.08);
}

.hero-container,
.timeline-container,
.dash-body,
#dashboardView>.dashboard-panel {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--content-max));
}

.hero-content {
  position: relative;
}

.hero-actions .btn {
  min-height: 3.125rem;
}

.auth-container {
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

.auth-card {
  border-radius: clamp(1.25rem, 2.5vw, 2rem);
  box-shadow:
    0 24px 60px rgba(10, 14, 61, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  animation: cardIntro 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-input,
.form-input {
  min-height: 3.125rem;
  border-width: 1.5px;
}

.auth-input:focus,
.form-input:focus {
  transform: translateY(-1px);
}

.btn {
  min-height: 2.875rem;
}

.btn-primary {
  background: linear-gradient(145deg, #7a8ed6 0%, #5468c4 50%, #4355b0 100%);
  box-shadow: 0 6px 18px rgba(84, 104, 196, 0.22), inset 0 1px 0 rgba(255,255,255,0.12);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 28px rgba(84, 104, 196, 0.30), inset 0 1px 0 rgba(255,255,255,0.16);
}

.track-card,
.bento-item,
.catalog-card,
.auth-card {
  transition:
    transform var(--t-smooth),
    box-shadow var(--t-smooth),
    border-color var(--t-base),
    background var(--t-smooth);
}

.track-card:hover,
.bento-item:hover,
.catalog-card:hover {
  transform: translateY(-6px);
}

.catalog-card {
  border: 1px solid rgba(203, 213, 225, 0.7);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.catalog-card-cover {
  position: relative;
}

.catalog-card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(10, 14, 61, 0.22));
  pointer-events: none;
}

.activity-empty {
  position: relative;
  overflow: hidden;
}

.activity-empty::after {
  content: '';
  position: absolute;
  top: 0;
  left: -35%;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: shimmerSlide 2.2s ease-in-out infinite;
}

.tab-header {
  align-items: center;
}

.filter-pill,
.btn-sm {
  min-height: 2.5rem;
}

.bottom-nav {
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 16px 40px rgba(10, 14, 61, 0.35);
}

.bottom-nav .nav-item {
  min-height: 3.2rem;
}

@media (max-width: 768px) {
  :root {
    --bottom-nav-offset: 0.75rem;
  }

  .hero-section {
    padding-top: var(--space-xl);
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .tab-header {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 0 !important;
    transform: none !important;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    background: rgba(250, 251, 252, 0.9);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    padding: var(--space-sm);
    border: 1px solid rgba(226, 232, 240, 0.9);
  }

  .tab-header-widget {
    position: static !important;
    top: auto !important;
    z-index: 0 !important;
    transform: none !important;
    padding: 0.58rem 0.68rem;
    border-radius: 0.85rem;
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.05);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
  }

  .tab-kicker {
    display: none;
  }

  .tab-subtitle {
    display: none;
  }

  .tab-info {
    min-width: 0;
  }

  .tab-title {
    font-size: 1.05rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
  }

  .tab-title i {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 0.5rem;
    font-size: 0.92rem;
  }

  .tab-actions {
    width: auto;
    margin-left: 0;
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    min-width: 0;
    position: static !important;
    top: auto !important;
    z-index: 0 !important;
  }

  #tabCourse .tab-header,
  #tabCourse .tab-header-widget,
  #tabEvent .tab-header,
  #tabEvent .tab-header-widget,
  #tabSgs .tab-header,
  #tabSgs .tab-header-widget {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    z-index: 0 !important;
    transform: none !important;
  }

  .tab-actions .filter-pill-group {
    width: auto;
    max-width: 48vw;
    justify-content: flex-end;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.22rem;
    gap: 0.2rem;
  }

  .tab-actions .filter-pill-group::-webkit-scrollbar {
    display: none;
  }

  .tab-actions .filter-pill {
    padding: 0.36rem 0.62rem;
    font-size: 0.73rem;
    min-height: 1.95rem;
    white-space: nowrap;
  }

  .dash-body,
  #dashboardView>.dashboard-panel {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: var(--bottom-nav-safe-space, 7.5rem);
  }

  .two-col-grid,
  .catalog-grid,
  .bento-grid {
    gap: var(--space-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@keyframes shimmerSlide {
  0% {
    transform: translateX(0);
    opacity: 0;
  }

  35% {
    opacity: 0.7;
  }

  100% {
    transform: translateX(420%);
    opacity: 0;
  }
}

@keyframes cardIntro {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes courseCardEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes glowDrift {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.85;
  }

  50% {
    transform: translate3d(14px, 10px, 0) scale(1.08);
    opacity: 1;
  }
}

@keyframes iconPulse {

  0%,
  100% {
    transform: scale(1) translateY(0);
    opacity: 0.75;
  }

  50% {
    transform: scale(1.06) translateY(-2px);
    opacity: 1;
  }
}

@keyframes ctaPulse {
  0% {
    opacity: 0.55;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.06);
  }
}

@keyframes progressReveal {
  from {
    transform: scaleX(0.15);
    transform-origin: left center;
    opacity: 0.25;
  }

  to {
    transform: scaleX(1);
    transform-origin: left center;
    opacity: 1;
  }
}

@keyframes cardSweep {
  0% {
    left: -58%;
    opacity: 0;
  }

  20% {
    opacity: 0.55;
  }

  100% {
    left: 140%;
    opacity: 0;
  }
}

/* Print Styles */
@media print {

  .portal-nav,
  .bottom-nav,
  .bg-mesh,
  #portalToast,
  .page-loader {
    display: none !important;
  }

  .dash-body {
    padding: 0;
  }
}

/* ═══════════════════════════════════════════════════════════════
   REFERRAL MIND MAP (6-TIER)
   ═══════════════════════════════════════════════════════════════ */
.view-toggle-group {
  display: flex;
  background: var(--slate-100);
  padding: 0.25rem;
  border-radius: var(--radius-lg);
  gap: 0.25rem;
}

.toggle-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-btn.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.mind-map-container {
  width: 100%;
  height: 600px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
  cursor: grab;
}

.mind-map-container:active {
  cursor: grabbing;
}

.tree-canvas {
  width: 100%;
  height: 100%;
  position: relative;
  transform-origin: center;
  transition: transform 0.1s ease-out;
}

.map-controls {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
}

.map-controls .btn-icon {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--navy);
}

/* Tree Node Styling */
.tree-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.5s var(--t-bounce);
  z-index: 2;
}

.node-card {
  padding: 0.58rem 0.8rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  min-width: 120px;
  text-align: center;
  position: relative;
}

.node-card.is-placeholder {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.68));
  border: 1px dashed rgba(148, 163, 184, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.node-avatar {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.38rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(99, 102, 241, 0.16));
  border: 1px solid rgba(125, 211, 252, 0.28);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.88rem;
  background-size: cover;
  background-position: center;
}

.node-avatar.is-empty {
  background:
    linear-gradient(135deg, rgba(226, 232, 240, 0.7), rgba(241, 245, 249, 0.95)),
    repeating-linear-gradient(45deg, rgba(148, 163, 184, 0.15) 0 8px, rgba(255, 255, 255, 0) 8px 16px);
  border-style: dashed;
  color: var(--slate-400);
}

.node-level-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--navy);
  color: white;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.64rem;
  font-weight: 800;
  border: 2px solid white;
}

.node-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 92px;
}

.node-desc {
  font-size: 0.58rem;
  color: var(--muted);
}

.node-track {
  margin-top: 0.28rem;
  font-size: 0.54rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.08rem 0.34rem;
  border-radius: 4px;
}

.node-track.mahasiswa {
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan);
}

.node-track.umum,
.node-track.siswa {
  background: rgba(139, 92, 246, 0.1);
  color: var(--purple);
}

.node-track.empty {
  background: rgba(148, 163, 184, 0.12);
  color: var(--slate-500);
}

/* SVG Connectors */
.tree-canvas svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.connector-line {
  fill: none;
  stroke: rgba(37, 99, 235, 0.62);
  stroke-width: 2.4px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.connector-line.placeholder {
  stroke: rgba(100, 116, 139, 0.44);
  stroke-width: 2px;
  stroke-dasharray: 8 6;
}

/* ═══════════════════════════════════════════════════════════════
   COMMUNITY & CHAT (ULTRA MODERN)
   ═══════════════════════════════════════════════════════════════ */
.community-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-main);
}

/* Sidebar */
.community-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(85vw, 320px);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  transform: translateX(-100%);
  z-index: 1000;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.sidebar-title h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
}

.conversation-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
}

.conv-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.25rem;
}

.conv-item:hover {
  background: rgba(255, 255, 255, 0.8);
}

.conv-item.active {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.conv-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  overflow: hidden;
}

.conv-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.global-avatar {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
}

.conv-info {
  flex: 1;
  min-width: 0;
}

.conv-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.15rem;
}

.conv-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-last-msg {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-unread {
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
}

/* Main Chat Area */
.community-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  position: relative;
  min-height: 0;
}

.chat-header {
  height: 56px;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.chat-target-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.target-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.target-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.target-name {
  font-weight: 800;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.2;
}

.target-status {
  font-size: 0.75rem;
  color: var(--emerald);
  font-weight: 700;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #f8fafc;
  min-height: 0;
}

/* Bubbles */
.msg-row {
  display: flex;
  width: 100%;
  margin-bottom: 0.5rem;
}

.msg-container {
  max-width: 86%;
  display: flex;
  flex-direction: column;
}

.msg-author {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.msg-label {
  font-size: 0.6rem;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.lbl-mahasiswa {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
}

.lbl-umum,
.lbl-siswa {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.msg-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.msg-bubble {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.bubble-mine {
  background: var(--navy);
  color: white;
  border-radius: 1.25rem 1.25rem 0.25rem 1.25rem;
}

.bubble-theirs {
  background: white;
  color: var(--navy);
  border-radius: 1.25rem 1.25rem 1.25rem 0.25rem;
  border: 1px solid var(--border);
}

.msg-meta {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* Actions */
.msg-actions {
  opacity: 0;
  cursor: pointer;
  padding: 4px;
  color: var(--muted);
  transition: opacity 0.2s;
}

.msg-row:hover .msg-actions {
  opacity: 1;
}

.msg-popover {
  position: absolute;
  background: white;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
  z-index: 20;
  bottom: 100%;
  right: 0;
  width: 120px;
}

.msg-popover div {
  padding: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 0.4rem;
}

.msg-popover div:hover {
  background: var(--bg-main);
}

/* Chat Input Area */
.chat-input-area {
  padding: 0.75rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.chat-input-area textarea {
  flex: 1;
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: 1.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  resize: none;
  min-height: 48px;
  max-height: 120px;
  transition: all 0.2s;
}

.chat-input-area textarea:focus {
  background: white;
  border-color: var(--cyan);
  outline: none;
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.btn-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  flex-shrink: 0;
}

.btn-send:hover {
  transform: scale(1.05);
  background: var(--navy-light);
}

/* User Search */
.search-wrapper {
  margin-top: 0.5rem;
  position: relative;
}

.search-wrapper input {
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.search-results-popover {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  z-index: 50;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 0.5rem;
}

.search-user-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  cursor: pointer;
}

.search-user-item:hover {
  background: var(--bg-main);
}

.user-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
}

/* Mobile Responsiveness */
@media (min-width: 769px) {
  .community-layout {
    flex-direction: row;
  }

  .community-sidebar {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    width: 320px;
    transform: translateX(0);
    z-index: 100;
  }

  .community-sidebar.open {
    transform: translateX(0);
    box-shadow: none;
  }

  .chat-header {
    height: 70px;
    padding: 0 1.5rem;
  }

  .chat-messages {
    padding: 1.5rem;
  }

  .msg-container {
    max-width: 80%;
  }

  .chat-input-area {
    padding: 1rem 1.5rem 1.5rem;
  }

  .chat-input-area textarea {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
  }

  .btn-send {
    width: 48px;
    height: 48px;
  }
}

.btn-icon {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background 0.2s;
}

.btn-icon:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--navy);
}

.desktop-hidden {
  display: none;
}

.mobile-hidden {
  display: block;
}

@media (max-width: 768px) {
  .desktop-hidden {
    display: flex;
  }

  .mobile-hidden {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   FLYER SYSTEM
   ═══════════════════════════════════════════════════════════════ */
.card-flyer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--t-bounce);
}

.catalog-card:hover .card-flyer-img {
  transform: scale(1.08);
}

.sgs-flyer-container {
  margin-top: 1rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--slate-50);
  position: relative;
}

.sgs-flyer-img {
  width: 100%;
  display: block;
  height: auto;
}

.sgs-flyer-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.dashboard-compass {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.4rem;
  border-radius: 1.6rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.76));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 18px 38px rgba(10, 14, 61, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.dashboard-compass::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.14), transparent 28%),
    radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.1), transparent 30%);
  pointer-events: none;
}

.dashboard-compass-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-compass-copy h3 {
  font-size: 1.18rem;
  margin: 0.25rem 0 0.45rem;
}

.dashboard-compass-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

.dashboard-compass-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-dark);
}

.dashboard-compass-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.dashboard-compass-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.62rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 800;
}

.dashboard-focus-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.dashboard-focus-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.dashboard-focus-chip i {
  width: 2rem;
  height: 2rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.18);
}

.dashboard-focus-chip:nth-child(2) i {
  background: linear-gradient(135deg, #06b6d4, #14b8a6);
}

.dashboard-focus-chip:nth-child(3) i {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.18);
}

.dashboard-focus-chip:nth-child(4) i {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.18);
}

.dashboard-focus-chip span {
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.45;
}

.dashboard-transfer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-lg);
}

.dashboard-transfer-stack {
  display: grid;
  gap: 1rem;
}

.dashboard-transfer-grid>*,
.dashboard-transfer-stack>* {
  margin-top: 0 !important;
}

.dashboard-transfer-grid:empty,
.dashboard-transfer-stack:empty {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════
   ULTRA MODERN ICON TREATMENT
   ═══════════════════════════════════════════════════════════════ */
.desktop-nav-tabs .d-tab {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding-inline: 0.95rem 1.05rem;
  max-width: 100%;
}

.desktop-nav-tabs .d-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shortcut-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(8, 15, 64, 0.07) !important;
  box-shadow:
    0 18px 38px rgba(10, 14, 61, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.shortcut-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.12), transparent 34%),
    radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.08), transparent 36%);
  pointer-events: none;
}

.shortcut-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 24px 42px rgba(10, 14, 61, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

.shortcut-icon {
  position: relative;
  width: 58px !important;
  height: 58px !important;
  border-radius: 1.2rem !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72)) !important;
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 14px 28px rgba(10, 14, 61, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.shortcut-icon::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(139, 92, 246, 0.1));
}

.shortcut-icon i {
  position: relative;
  z-index: 1;
  font-size: 1.4rem;
  background: linear-gradient(135deg, #0ea5e9, #6366f1 60%, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#shortcutIncome2Icon,
#bottomNavScholarship i,
#navTabScholarship i {
  background: linear-gradient(135deg, #0ea5e9, #06b6d4 55%, #14b8a6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#shortcutIncome3Icon,
#bottomNavEvent i,
#navTabEvent i {
  background: linear-gradient(135deg, #8b5cf6, #6366f1 55%, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#shortcutIncome4Icon,
#bottomNavCommunity i,
#navTabCommunity i {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bottom-nav .nav-item i {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.16);
  transition: all var(--t-base);
}

.bottom-nav .nav-item.active i {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 24px rgba(6, 182, 212, 0.18);
}

.bottom-nav {
  display: none !important;
}

@media (max-width: 1023px) {
  body.is-logged-in .bottom-nav {
    display: flex !important;
  }

  .dashboard-compass-head {
    flex-direction: column;
  }

  .dashboard-compass-meta {
    justify-content: flex-start;
  }

  .dashboard-focus-row {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-transfer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1380px) {
  .portal-nav {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.85rem;
  }

  .nav-logo {
    font-size: 1.35rem;
  }

  .nav-logo-img {
    width: 28px;
    height: 28px;
  }

  .desktop-nav-tabs .d-tab {
    padding-inline: 0.75rem 0.9rem;
  }

  .desktop-nav-tabs .d-tab span {
    max-width: 9.5rem;
  }
}

@media (max-width: 640px) {
  .dashboard-compass {
    padding: 1.05rem;
    border-radius: 1.3rem;
  }

  .dashboard-compass-copy h3 {
    font-size: 1rem;
  }

  .dashboard-compass-copy p {
    font-size: 0.86rem;
  }

  .dashboard-focus-row {
    grid-template-columns: 1fr;
  }

  .dashboard-focus-chip {
    padding: 0.85rem 0.9rem;
  }
}

.civilization-hero {
  margin-bottom: var(--space-lg);
}

.civilization-hero-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.civilization-summary {
  min-width: 220px;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.09), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.12);
}

.civilization-summary-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-dark);
}

.civilization-summary-value {
  margin-top: 0.35rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--navy);
}

.civilization-summary-meta {
  margin-top: 0.28rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.45;
}

.civilization-stage-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.civilization-stage-row-inline {
  margin-top: 0.9rem;
}

.civilization-stage {
  padding: 0.72rem 0.8rem;
  min-height: 88px;
  border-radius: 1.05rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.84));
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}

.civilization-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: transparent;
}

.civilization-stage-badge {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  background: rgba(226, 232, 240, 0.9);
  color: var(--slate-700);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.civilization-stage strong,
.civilization-stage span {
  display: block;
}

.civilization-stage strong {
  color: var(--navy);
  font-size: 0.82rem;
  line-height: 1.2;
}

.civilization-stage span {
  margin-top: 0.12rem;
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.civilization-stage.is-active {
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 45%),
    linear-gradient(180deg, rgba(239, 250, 255, 0.98), rgba(244, 247, 255, 0.92));
  border-color: rgba(34, 211, 238, 0.22);
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.08);
}

.civilization-stage.is-active::after {
  background: linear-gradient(90deg, #06b6d4, #6366f1);
}

.civilization-stage.is-active .civilization-stage-badge,
.civilization-stage.is-complete .civilization-stage-badge {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
}

.civilization-stage.is-complete {
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(241, 252, 247, 0.98), rgba(247, 252, 250, 0.92));
  border-color: rgba(16, 185, 129, 0.18);
}

.civilization-stage.is-complete::after {
  background: linear-gradient(90deg, #10b981, #06b6d4);
}

.civilization-stage.is-future {
  opacity: 0.88;
}

.civilization-stage.is-future .civilization-stage-badge {
  background: rgba(226, 232, 240, 0.82);
}

.civilization-build-wrap {
  margin-top: 1.05rem;
  display: grid;
  grid-template-columns: 430px 430px;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.9);
  align-items: start;
  justify-content: space-between;
}

.civilization-build-copy,
.civilization-tower-card {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.civilization-build-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.civilization-tower-card {
  padding-left: 1rem;
  border-left: 1px solid rgba(226, 232, 240, 0.9);
  width: 430px;
  max-width: 430px;
  min-width: 430px;
}

.civilization-build-kicker,
.civilization-tower-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-dark);
}

.civilization-build-copy h3 {
  margin: 0.4rem 0;
  font-size: 1.08rem;
}

.civilization-build-copy p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9rem;
}

.civilization-progress-line {
  margin-top: 1rem;
}

.civilization-inline-card-wrap {
  margin-top: 0.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 430px;
  max-width: 430px;
  min-width: 430px;
}

.civilization-inline-card-wrap .affiliate-id-card {
  margin: 0;
}

.civilization-inline-actions,
.civilization-inline-share {
  margin-bottom: 0;
}

.civilization-inline-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.civilization-inline-actions .btn:last-child {
  min-width: 0;
}

.civilization-progress-bar {
  height: 0.72rem;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.5);
  overflow: hidden;
}

.civilization-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #6366f1, #8b5cf6);
}

.civilization-progress-meta {
  margin-top: 0.45rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.civilization-progress-meta strong {
  color: var(--navy);
}

.civilization-tower-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.civilization-tower-photo-wrap {
  position: relative;
  width: 100%;
  height: 430px;
  margin: 0.35rem auto 0.65rem;
  border-radius: 1.15rem;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.civilization-tower-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.civilization-tower-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 61, 0.1), transparent 30%, transparent 70%, rgba(10, 14, 61, 0.55)),
    linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(6, 182, 212, 0.04));
}

.civilization-tower-progress-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.88));
  backdrop-filter: grayscale(0.15);
  pointer-events: none;
}

.civilization-tower-allah {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.civilization-tower-stage-tag {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  padding: 0.48rem 0.72rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.civilization-tower-caption {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.civilization-mindmap-card {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.civilization-mindmap-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.civilization-mindmap-head h3 {
  margin: 0.35rem 0 0.28rem;
  font-size: 1.02rem;
}

.civilization-mindmap-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 780px;
}

.civilization-mindmap-surface {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at top, rgba(6, 182, 212, 0.08), transparent 35%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(241, 245, 249, 0.96));
  min-height: 380px;
}

.referral-stats-full {
  margin-top: var(--space-lg);
}

@media (max-width: 900px) {

  .civilization-hero-head,
  .civilization-build-wrap {
    display: grid;
    grid-template-columns: 1fr;
  }

  .civilization-stage-row {
    grid-template-columns: 1fr 1fr;
  }

  .civilization-mindmap-head {
    flex-direction: column;
  }

  .civilization-inline-card-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .civilization-tower-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: 0;
    padding-top: 0.3rem;
    border-left: 0;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
  }

  .civilization-tower-photo-wrap {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .civilization-inline-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .civilization-inline-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .civilization-stage-row {
    grid-template-columns: 1fr;
  }
}

/* Peradaban Emas card layout override */
.civilization-build-wrap {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  justify-content: stretch;
}

.civilization-build-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.civilization-inline-card-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.affiliate-id-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.affiliate-id-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 0.75rem;
  align-items: stretch;
}

.affiliate-id-tower-mini {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
}

.affiliate-id-tower-label {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 226, 255, 0.88);
  text-align: center;
}

.affiliate-id-tower-photo-wrap {
  position: relative;
  width: 100%;
  min-height: 232px;
  flex: 1;
  border-radius: 0.92rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.affiliate-id-tower-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.affiliate-id-tower-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 61, 0.12), transparent 30%, transparent 70%, rgba(10, 14, 61, 0.6)),
    linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(6, 182, 212, 0.04));
}

.affiliate-id-tower-progress-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.88));
  pointer-events: none;
}

.affiliate-id-tower-allah {
  position: absolute;
  top: 0.45rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.affiliate-id-tower-stage-tag {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.5rem;
  padding: 0.34rem 0.45rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.affiliate-id-tower-caption {
  font-size: 0.56rem;
  line-height: 1.35;
  color: rgba(226, 232, 240, 0.82);
  text-align: center;
  margin-top: auto;
}

@media (max-width: 900px) {
  .affiliate-id-hero {
    grid-template-columns: 1fr;
  }

  .affiliate-id-tower-mini {
    max-width: 180px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .affiliate-id-tower-mini {
    max-width: 100%;
  }
}

/* Premium right-hero emphasis */
.affiliate-id-hero {
  grid-template-columns: minmax(0, 1fr) 196px;
  gap: 0.82rem;
}

.affiliate-id-tower-mini {
  gap: 0.42rem;
}

.affiliate-id-tower-photo-wrap {
  min-height: 268px;
}

.affiliate-id-tower-caption {
  padding: 0 0.15rem;
}

@media (max-width: 900px) {
  .affiliate-id-hero {
    grid-template-columns: 1fr;
  }

  .affiliate-id-tower-photo-wrap {
    min-height: 240px;
  }
}

/* Final override: Menara 165 dominant on right side of digital card */
.affiliate-id-card .affiliate-id-hero {
  grid-template-columns: minmax(0, 1fr) 224px !important;
  gap: 0.9rem !important;
  align-items: stretch !important;
}

.affiliate-id-card .affiliate-id-tower-mini {
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.affiliate-id-card .affiliate-id-tower-photo-wrap {
  width: 100% !important;
  min-height: 300px !important;
  height: 100% !important;
}

.affiliate-id-card .affiliate-id-tower-caption {
  margin-top: 0 !important;
}

@media (max-width: 900px) {
  .affiliate-id-card .affiliate-id-hero {
    grid-template-columns: 1fr !important;
  }

  .affiliate-id-card .affiliate-id-tower-mini {
    max-width: 100% !important;
  }

  .affiliate-id-card .affiliate-id-tower-photo-wrap {
    min-height: 240px !important;
    height: auto !important;
  }
}

/* Final locked card size */
.civilization-inline-card-wrap {
  width: 430px !important;
  max-width: 430px !important;
  min-width: 430px !important;
}

.affiliate-id-card {
  width: 430px !important;
  max-width: 430px !important;
  min-width: 430px !important;
}

.civilization-inline-card-wrap {
  display: grid !important;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: 1rem !important;
  align-items: start !important;
}

.civilization-inline-card-stack {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.civilization-mindmap-inline {
  margin-top: 0 !important;
  height: 100%;
}

.civilization-mindmap-inline .civilization-mindmap-surface {
  min-height: 560px;
}

.affiliate-id-card .affiliate-id-hero {
  grid-template-columns: minmax(0, 1fr) 186px !important;
  gap: 0.72rem !important;
}

.affiliate-id-card .affiliate-id-main {
  align-items: flex-start !important;
}

.affiliate-id-card .affiliate-id-tower-mini {
  max-width: none !important;
  width: 100% !important;
}

.affiliate-id-card .affiliate-id-tower-photo-wrap {
  min-height: 248px !important;
}

@media (max-width: 900px) {
  .civilization-inline-card-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: 1fr !important;
  }

  .affiliate-id-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .civilization-mindmap-inline .civilization-mindmap-surface {
    min-height: 380px;
  }
}

/* Final card balance override */
.affiliate-id-card .affiliate-id-hero {
  grid-template-columns: minmax(0, 1fr) 186px !important;
  gap: 0.72rem !important;
  align-items: stretch !important;
}

.affiliate-id-card .affiliate-id-identity {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 300px !important;
}

.affiliate-id-card .affiliate-id-main {
  align-items: center !important;
  gap: 0.82rem !important;
}

.affiliate-id-card .affiliate-id-avatar-wrap {
  width: 68px !important;
  height: 68px !important;
}

.affiliate-id-card .affiliate-id-contact-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.5rem !important;
  margin-top: 0.75rem !important;
}

.affiliate-id-card .affiliate-id-contact-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.42rem !important;
  min-height: 34px !important;
  padding: 0.45rem 0.6rem !important;
  border-radius: 0.8rem !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06)) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: rgba(233, 245, 255, 0.94) !important;
  font-size: 0.66rem !important;
  font-weight: 700 !important;
  overflow: hidden !important;
}

.affiliate-id-card .affiliate-id-contact-pill.ghost {
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.16), rgba(129, 140, 248, 0.08)) !important;
}

.affiliate-id-card .affiliate-id-contact-pill i {
  font-size: 0.72rem !important;
  opacity: 0.9 !important;
}

.affiliate-id-card .affiliate-id-contact-pill span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.affiliate-id-card .affiliate-id-chips {
  margin-top: auto !important;
}

.affiliate-id-card .affiliate-id-tower-photo-wrap {
  min-height: 248px !important;
}

@media (max-width: 900px) {
  .affiliate-id-card .affiliate-id-identity {
    min-height: 0 !important;
  }

  .affiliate-id-card .affiliate-id-contact-row {
    grid-template-columns: 1fr !important;
  }
}

/* Final card content balancing */
.affiliate-id-card .affiliate-id-identity {
  padding-top: 0.85rem !important;
}

.affiliate-id-card .affiliate-id-main {
  align-items: flex-start !important;
}

.affiliate-id-card .affiliate-id-contact-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.5rem !important;
  margin-top: 0.75rem !important;
}

.affiliate-id-card .affiliate-id-contact-pill.phone {
  grid-column: 1 / -1 !important;
  justify-content: flex-start !important;
}

.affiliate-id-card .affiliate-id-contact-pill.phone span {
  font-size: 0.72rem !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.affiliate-id-mini-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.5rem !important;
  margin-top: 0.55rem !important;
}

.affiliate-id-mini-cell {
  padding: 0.5rem 0.58rem !important;
  border-radius: 0.78rem !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05)) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.affiliate-id-mini-cell span {
  display: block !important;
  font-size: 0.54rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: rgba(226, 232, 240, 0.72) !important;
  margin-bottom: 0.18rem !important;
  font-weight: 700 !important;
}

.affiliate-id-mini-cell strong {
  display: block !important;
  font-size: 0.72rem !important;
  color: #fff !important;
  font-weight: 800 !important;
}

.affiliate-id-card .affiliate-id-chips {
  margin-top: 0.6rem !important;
}

@media (max-width: 900px) {
  .affiliate-id-card .affiliate-id-identity {
    padding-top: 0 !important;
  }

  .affiliate-id-card .affiliate-id-contact-pill.phone span {
    font-size: 0.66rem !important;
  }
}

/* Final layout fix for card + mind map */
.civilization-inline-card-wrap {
  display: grid !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: 430px minmax(320px, 1fr) !important;
  gap: 1rem !important;
  align-items: start !important;
}

.civilization-mindmap-inline {
  display: block !important;
  min-width: 320px !important;
  width: 100% !important;
  max-width: 100% !important;
}

.civilization-digital-shell {
  margin-top: 0 !important;
  width: 430px !important;
  max-width: 430px !important;
  min-width: 430px !important;
}

.civilization-digital-head {
  margin-bottom: 0.8rem !important;
}

.civilization-digital-shell .civilization-inline-card-stack {
  gap: 0.8rem;
  min-width: 0 !important;
}

.civilization-digital-shell .affiliate-id-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.civilization-inline-card-wrap>.civilization-digital-shell {
  grid-column: 1 !important;
}

.civilization-inline-card-wrap>.civilization-mindmap-inline {
  grid-column: 2 !important;
}

.civilization-mindmap-inline .civilization-mindmap-head {
  margin-bottom: 0.7rem !important;
}

.civilization-mindmap-inline .civilization-mindmap-head h3 {
  font-size: 0.96rem !important;
}

.civilization-mindmap-inline .civilization-mindmap-head p {
  font-size: 0.82rem !important;
  line-height: 1.45 !important;
}

.civilization-mindmap-inline .civilization-mindmap-surface {
  min-height: 460px !important;
  width: 100% !important;
}

.civilization-mindmap-inline .mind-map-container {
  height: 460px !important;
}

@media (max-width: 900px) {
  .civilization-inline-card-wrap {
    grid-template-columns: 1fr !important;
  }

  .civilization-digital-shell {
    width: 100% !important;
    max-width: 430px !important;
    min-width: 0 !important;
  }

  .civilization-mindmap-inline {
    min-width: 0 !important;
  }

  .civilization-mindmap-inline .civilization-mindmap-surface,
  .civilization-mindmap-inline .mind-map-container {
    min-height: 380px !important;
    height: 380px !important;
  }
}

/* SGS workspace refresh */
.sgs-workspace {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sgs-command-grid,
.sgs-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 1rem;
}

.sgs-command-card,
.sgs-toolkit-card,
.sgs-script-card,
.sgs-tracking-card,
.sgs-program-shell,
.sgs-flyer-shell {
  margin-top: 0 !important;
  border-radius: 1.3rem;
  border: 1px solid rgba(201, 213, 225, 0.75);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.07);
}

.sgs-command-card {
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.12), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
}

.sgs-command-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.sgs-command-kicker {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sgs-command-copy {
  margin: 0.35rem 0 0;
  color: var(--text-secondary);
  max-width: 46rem;
  line-height: 1.6;
}

.sgs-command-alert {
  margin-top: 0.9rem !important;
}

.sgs-command-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.95rem;
}

.sgs-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.sgs-insight-card {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.94));
  border: 1px solid rgba(191, 219, 254, 0.55);
  min-height: 88px;
}

.sgs-insight-card.wide {
  grid-column: 1 / -1;
}

.sgs-insight-card span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sgs-insight-card strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.45;
}

.sgs-home-mount {
  margin-top: 0 !important;
}

.sgs-script-card .referral-box {
  margin-top: 0.85rem;
}

.sgs-script-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.sgs-tracking-card .sgs-track-summary {
  margin-top: 0.9rem;
}

.sgs-program-shell {
  overflow: hidden;
}

#tabSgs .tab-header {
  margin-bottom: 0;
}

#tabSgs .tab-actions .filter-pill-group {
  flex-wrap: wrap;
  gap: 0.55rem;
}

@media (max-width: 1100px) {

  .sgs-command-grid,
  .sgs-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .sgs-command-top {
    flex-direction: column;
  }

  .sgs-command-actions,
  .sgs-script-actions,
  .sgs-insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .civilization-inline-card-wrap {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 1rem !important;
  }

  .civilization-inline-card-wrap>.civilization-digital-shell,
  .civilization-inline-card-wrap>.civilization-mindmap-inline {
    grid-column: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
  }

  .civilization-digital-shell {
    overflow: hidden !important;
    padding: 1rem !important;
  }

  .civilization-digital-shell .civilization-inline-card-stack,
  .civilization-digital-shell .affiliate-id-card,
  .civilization-mindmap-inline,
  .civilization-mindmap-inline .civilization-mindmap-surface,
  .civilization-mindmap-inline .mind-map-container,
  .civilization-mindmap-inline #treeCanvas {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .civilization-mindmap-inline {
    overflow: hidden !important;
    padding: 1rem !important;
  }

  .civilization-mindmap-inline .civilization-mindmap-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .civilization-mindmap-inline .map-controls {
    width: 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 0.5rem !important;
  }
}

@media (max-width: 640px) {

  .civilization-digital-shell,
  .civilization-mindmap-inline {
    border-radius: 1.1rem !important;
    padding: 0.9rem !important;
  }

  .civilization-digital-head,
  .civilization-mindmap-inline .civilization-mindmap-head {
    margin-bottom: 0.75rem !important;
  }

  .civilization-digital-head h3,
  .civilization-mindmap-inline .civilization-mindmap-head h3 {
    font-size: 1rem !important;
    line-height: 1.3 !important;
  }

  .civilization-digital-head p,
  .civilization-mindmap-inline .civilization-mindmap-head p {
    font-size: 0.86rem !important;
    line-height: 1.5 !important;
  }

  .civilization-mindmap-inline .civilization-mindmap-surface,
  .civilization-mindmap-inline .mind-map-container {
    min-height: 340px !important;
    height: 340px !important;
  }
}

/* Landing 2026 overhaul */
.hero-shell {
  position: relative;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border-radius: 2rem;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.76)),
    radial-gradient(circle at top right, rgba(6,182,212,0.12), transparent 35%);
  border: 1px solid rgba(255,255,255,0.82);
  box-shadow:
    0 28px 80px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255,255,255,0.95);
  overflow: hidden;
}

.hero-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, #000 35%, transparent 100%);
  pointer-events: none;
}

.hero-shell .hero-content,
.hero-shell .hero-visual {
  position: relative;
  z-index: 1;
}

.hero-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
  justify-content: center;
}

.hero-feature-pills span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(191, 219, 254, 0.8);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.hero-mobile-tower {
  display: none;
  margin-top: 1rem;
}

.hero-mobile-tower-card {
  position: relative;
  border-radius: 1.4rem;
  overflow: hidden;
  min-height: 240px;
  background: linear-gradient(180deg, rgba(10,14,61,0.92), rgba(27,42,149,0.88));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 38px rgba(10,14,61,0.18);
}

.hero-mobile-tower-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  mix-blend-mode: screen;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.hero-mobile-tower-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,14,61,0.1), transparent 28%, transparent 65%, rgba(10,14,61,0.75));
}

.hero-mobile-tower-allah {
  position: absolute;
  top: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

.hero-mobile-tower-chip {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.8rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.9rem;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-proof-card {
  padding: 1rem;
  border-radius: 1.2rem;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(226,232,240,0.92);
  box-shadow: 0 14px 30px rgba(15,23,42,0.05);
}

.hero-proof-kicker {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--cyan-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-proof-card strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.hero-proof-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.55;
}

.hero-tower-frame {
  position: relative;
  width: min(100%, 430px);
  padding: 1rem;
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(10,14,61,0.94), rgba(27,42,149,0.9));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 50px rgba(10, 14, 61, 0.35), inset 0 1px 0 rgba(255,255,255,0.08);
  animation: heroTowerFloat 7s ease-in-out infinite;
}

.hero-tower-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-tower-badge,
.hero-floating-card,
.hero-floating-kpi {
  position: relative;
  z-index: 1;
}

.hero-tower-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #d8f5ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
}

.hero-tower-image-wrap {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 540px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 20px 40px rgba(15,23,42,0.28);
}

.hero-tower-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1.15);
  mix-blend-mode: screen;
  mask-image: radial-gradient(circle at center, black 50%, transparent 95%);
  -webkit-mask-image: radial-gradient(circle at center, black 50%, transparent 95%);
}

.hero-tower-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,14,61,0.1), transparent 25%, transparent 65%, rgba(10,14,61,0.7)),
    radial-gradient(circle at top, rgba(255,255,255,0.12), transparent 35%);
}

.hero-tower-allah {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(15,23,42,0.2);
}

.hero-tower-stage-chip {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.16);
}

.hero-floating-card {
  position: absolute;
  max-width: 210px;
  padding: 0.8rem 0.95rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.14);
}

.hero-floating-card span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  margin-bottom: 0.3rem;
}

.hero-floating-card strong {
  display: block;
  color: var(--navy);
  font-size: 0.88rem;
  line-height: 1.45;
}

.hero-floating-card-top {
  top: 4.1rem;
  left: -2rem;
  animation: floatCardY 6s ease-in-out infinite;
}

.hero-floating-card-bottom {
  right: -2.5rem;
  bottom: 0.5rem;
  animation: floatCardY 6s ease-in-out infinite 1.2s;
}

.hero-floating-kpi {
  position: absolute;
  min-width: 128px;
  padding: 0.78rem 0.88rem;
  border-radius: 1rem;
  background: rgba(10,14,61,0.84);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 16px 36px rgba(10,14,61,0.25);
}

.hero-floating-kpi small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(165,243,252,0.88);
  margin-bottom: 0.22rem;
}

.hero-floating-kpi strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.4;
}

.hero-floating-kpi-a {
  top: 9.8rem;
  right: -2rem;
  animation: floatCardX 5s ease-in-out infinite;
}

.hero-floating-kpi-b {
  left: -1.5rem;
  bottom: 10.5rem;
  animation: floatCardX 5s ease-in-out infinite 1.5s;
}

.hero-tower-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-tower-orb-a {
  width: 220px;
  height: 220px;
  background: rgba(6, 182, 212, 0.25);
  top: 10%;
  right: 8%;
}

.hero-tower-orb-b {
  width: 160px;
  height: 160px;
  background: rgba(139, 92, 246, 0.2);
  bottom: 15%;
  left: 6%;
}

.landing-signal-band,
.landing-products-section {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--content-max));
  margin: 0 auto var(--space-2xl);
}

.landing-signal-band {
  overflow: hidden;
  padding: 0 var(--space-sm);
}

.landing-signal-track {
  display: flex;
  gap: 0.8rem;
  width: max-content;
  animation: marqueeSignal 26s linear infinite;
}

.landing-signal-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(226,232,240,0.95);
  box-shadow: 0 12px 24px rgba(15,23,42,0.05);
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.landing-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.landing-product-card {
  position: relative;
  padding: 1.4rem;
  border-radius: 1.5rem;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(226,232,240,0.9);
  box-shadow: 0 18px 40px rgba(15,23,42,0.06);
  overflow: hidden;
}

.landing-product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent 45%);
  pointer-events: none;
}

.landing-product-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.landing-product-icon {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  box-shadow: 0 18px 30px rgba(15,23,42,0.12);
}

.product-event .landing-product-icon {
  background: linear-gradient(135deg, #1d4ed8, #06b6d4);
}

.product-sgs .landing-product-icon {
  background: linear-gradient(135deg, #0f766e, #10b981);
}

.product-fellowship .landing-product-icon {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.landing-product-kicker {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--cyan-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-product-head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.landing-product-card p {
  margin: 0 0 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.92rem;
}

.landing-product-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.landing-product-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--navy);
  font-size: 0.84rem;
  line-height: 1.5;
}

.landing-product-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.44rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

@keyframes heroTowerFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes floatCardY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floatCardX {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

@keyframes marqueeSignal {
  0% { transform: translateX(0); }
  100% { transform: translateX(-35%); }
}

@media (min-width: 1024px) {
  .hero-shell .hero-feature-pills,
  .hero-shell .hero-promo,
  .hero-shell .hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1024px) {
  .hero-proof-grid,
  .landing-products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .hero-shell {
    border-radius: 1.6rem;
    padding: 1.1rem;
  }

  .hero-feature-pills {
    justify-content: flex-start;
  }

  .landing-signal-track {
    animation-duration: 18s;
  }

  .hero-mobile-tower {
    display: block;
  }
}

/* Fellowship Action Menu Dropdown */
.action-menu-container {
    position: relative;
    display: inline-block;
}

.action-menu-trigger {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-menu-trigger:hover {
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
    border-color: rgba(34, 211, 238, 0.2);
    transform: scale(1.05);
}

.action-menu-dropdown {
    position: fixed;
    z-index: 10000;
    min-width: 180px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
    padding: 8px;
    display: none;
    animation: menuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: top right;
}

.action-menu-dropdown.show {
    display: block;
}

@keyframes menuFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.action-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding-left: 18px;
}

.action-menu-item i {
    font-size: 14px;
    opacity: 0.8;
}

.action-menu-item.danger {
    color: #f43f5e;
}

.action-menu-item.danger:hover {
    background: rgba(244, 63, 94, 0.15);
    color: #fff;
}

/* ===== Exploding Info Nodes UX ===== */
.explode-node {
    position: absolute;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(125, 211, 252, 0.25);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 20;
    color: #38bdf8;
    box-shadow: 0 8px 25px rgba(2, 6, 23, 0.5);
    overflow: hidden;
}

.explode-node::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.explode-node-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    font-size: 1.4rem;
}
.explode-node-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.explode-node-content {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: scale(0.4) translateY(10px);
    transition: all 0.4s ease;
    white-space: nowrap;
    padding: 0 1.5rem;
    pointer-events: none;
}

.explode-node-content strong {
    color: #f8fbff;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.15rem;
}

.explode-node-content span {
    color: #94a3b8;
    font-size: 0.75rem;
}

.explode-node:hover {
    width: 17rem;
    height: 4.5rem;
    border-radius: 1.2rem;
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 15px 35px rgba(2, 6, 23, 0.6), 0 0 20px rgba(56, 189, 248, 0.2);
}

.explode-node:hover::before {
    opacity: 1;
}

.explode-node:hover .explode-node-icon {
    opacity: 0;
    transform: scale(0) rotate(180deg);
}

.explode-node:hover .explode-node-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

@keyframes explodeFloat1 {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-15px) translateX(10px); }
}
@keyframes explodeFloat2 {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(15px) translateX(-10px); }
}

/* ===== FOUNDER SECTION ===== */
.founder-section {
    width: min(calc(100% - (var(--page-gutter) * 2)), 960px);
    margin: 0 auto var(--space-2xl);
    position: relative;
    border-radius: 2rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(240, 245, 255, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06), inset 0 0 30px rgba(255,255,255,0.6);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.founder-visual {
    position: relative;
    width: 380px;
    height: 360px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.founder-image {
    width: 100%;
    height: 125%;
    object-fit: cover;
    object-position: top center;
    mix-blend-mode: multiply; /* Menghilangkan background putih foto secara natural */
    filter: contrast(1.08) brightness(1.02);
    animation: founderBreathe 6s ease-in-out infinite;
    transform-origin: bottom center;
}

.founder-content {
    padding: 2.5rem 3rem;
    position: relative;
    z-index: 2;
}

.founder-quote-icon {
    font-size: 4rem;
    color: var(--cyan);
    opacity: 0.15;
    position: absolute;
    top: 1rem;
    left: 2rem;
}

.founder-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.55;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.founder-name {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--blue);
}

.founder-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.founder-signature {
    margin-top: 1rem;
    width: 120px;
    opacity: 0.8;
}

@keyframes founderBreathe {
    0%, 100% { transform: scale(1) translateY(0); filter: contrast(1.08) brightness(1.02) drop-shadow(0 0 0 rgba(0,0,0,0)); }
    50% { transform: scale(1.02) translateY(-6px); filter: contrast(1.1) brightness(1.05) drop-shadow(0 15px 25px rgba(2, 6, 23, 0.4)); }
}

@media (max-width: 800px) {
    .founder-section {
        flex-direction: column-reverse;
        text-align: center;
    }
    .founder-visual {
        width: 100%;
        height: 280px;
    }
    .founder-image {
        height: 110%;
    }
    .founder-content {
        padding: 2rem;
    }
    .founder-quote-icon {
        left: 50%;
        transform: translateX(-50%);
        top: 0.5rem;
    }
}
