/* ============================================
   Liberation Compass - An Elevated Liberation™ Product
   © 2025 Elevated Labs LLC. All Rights Reserved.
   Proprietary and Confidential - Beta Software
   Grounded Elegance with Clinical Clarity
   Love • Community • Grace • Self-Determination
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
  /* Core Color Palette - Soulful & Ancestral */
  --terracotta-earth: #C66B3D;     /* grounding, ancestral */
  --deep-plum: #3D1C40;            /* luxury, legacy */
  --sun-gold: #F4B942;             /* radiance, hope */
  --cloud-linen: #F5F2EF;          /* elegance, ease */
  --onyx-black: #1B1B1B;           /* strength, clarity */
  
  /* Extended Palette */
  --warm-rust: #A8563D;            /* deeper earth tone */
  --soft-plum: #5D2C60;            /* lighter plum */
  --golden-glow: #FFD580;          /* soft gold highlight */
  --warm-white: #FFFCF9;           /* warmest white */
  --charcoal: #2D2D2D;             /* soft black */
  
  /* Typography - Elegant & Accessible */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Playfair Display', cursive;
  
  /* Spacing - Luxurious Breathing Room */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  
  /* Shadows & Effects - Soft & Grounded */
  --shadow-warm: 0 4px 16px rgba(198, 107, 61, 0.15);
  --shadow-soft: 0 2px 8px rgba(61, 28, 64, 0.1);
  --shadow-deep: 0 8px 32px rgba(61, 28, 64, 0.2);
  --glow-gold: 0 0 24px rgba(244, 185, 66, 0.4);
  --glow-sun: 0 0 40px rgba(244, 185, 66, 0.3);
}

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

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, var(--deep-plum) 0%, var(--onyx-black) 50%, var(--charcoal) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--cloud-linen);
  line-height: 1.8;
  letter-spacing: 0.01em;
  position: relative;
}

/* Sunrise gradient overlay - bringing hope and radiance */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40vh;
  background: linear-gradient(180deg, rgba(244, 185, 66, 0.12) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   HEADER - Soulful & Grounded
   ============================================ */
header {
  background: linear-gradient(135deg, rgba(61, 28, 64, 0.95) 0%, rgba(93, 44, 96, 0.85) 100%);
  backdrop-filter: blur(20px);
  padding: var(--space-xl) var(--space-md);
  box-shadow: var(--shadow-deep);
  border-bottom: 2px solid var(--sun-gold);
  position: relative;
  z-index: 1;
}

/* Compass rose motif */
header::after {
  content: '✦';
  position: absolute;
  top: 50%;
  right: var(--space-lg);
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--sun-gold);
  opacity: 0.3;
}

/* Logo Container - Focal Point */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  isolation: isolate;
}

.main-logo {
  width: 240px;
  height: 240px;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 0 30px rgba(244, 185, 66, 0.6));
  animation: gentle-glow 4s ease-in-out infinite;
  transition: transform 0.3s ease;
  clip-path: circle(34% at center);
}

.main-logo:hover {
  transform: scale(1.08);
}

@keyframes gentle-glow {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(244, 185, 66, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(244, 185, 66, 0.6));
  }
}

h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  background: linear-gradient(135deg, var(--sun-gold) 0%, var(--golden-glow) 50%, var(--sun-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
  text-shadow: var(--glow-sun);
}

.tagline {
  font-family: var(--font-accent);
  font-size: 1.25rem;
  font-weight: 400;
  text-align: center;
  color: var(--golden-glow);
}

.beta-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--terracotta-earth), var(--warm-rust));
  color: var(--warm-white);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: var(--space-xs);
  box-shadow: 0 2px 8px rgba(198, 107, 61, 0.4);
}

.beta-notice {
  background: linear-gradient(135deg, rgba(198, 107, 61, 0.2), rgba(198, 107, 61, 0.1));
  color: var(--sun-gold);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  border: 1px solid rgba(198, 107, 61, 0.3);
}

.product-line {
  font-size: 0.85rem;
  color: var(--golden-glow);
  margin-top: var(--space-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.sub-tagline {
  font-size: 0.9rem;
  color: var(--cloud-linen);
  opacity: 0.8;
  margin-top: var(--space-xs);
  font-style: italic;
}

.lc-purpose-box {
  background: linear-gradient(135deg, rgba(244, 185, 66, 0.15) 0%, rgba(198, 107, 61, 0.1) 100%);
  border: 1px solid rgba(244, 185, 66, 0.3);
  border-radius: 12px;
  padding: var(--space-md) var(--space-lg);
  margin-top: var(--space-md);
  text-align: center;
}

.lc-purpose-box p {
  color: var(--cloud-linen);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

.beta-agreement {
  background: rgba(198, 107, 61, 0.15) !important;
  border: 1px solid rgba(198, 107, 61, 0.3) !important;
}

.beta-agreement-primary {
  background: linear-gradient(135deg, rgba(198, 107, 61, 0.25) 0%, rgba(61, 28, 64, 0.4) 100%) !important;
  border: 2px solid var(--terracotta-earth) !important;
  padding: var(--space-lg) !important;
  border-radius: 12px !important;
  margin-bottom: var(--space-lg);
}

.beta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.beta-header h4 {
  color: var(--sun-gold);
  font-size: 1.1rem;
  margin: 0;
}

.beta-required-tag {
  background: var(--terracotta-earth);
  color: var(--warm-white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.beta-notice-box {
  background: rgba(0, 0, 0, 0.3);
  border-left: 4px solid var(--sun-gold);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
  border-radius: 0 8px 8px 0;
}

.beta-notice-box p {
  color: var(--cloud-linen);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.optional-preferences {
  background: rgba(109, 65, 109, 0.15);
  border: 1px dashed rgba(244, 185, 66, 0.3);
  padding: var(--space-md);
  border-radius: 8px;
  margin-top: var(--space-md);
  font-style: italic;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

/* Progress Tracker - Warm & Affirming */
.progress-header {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: rgba(198, 107, 61, 0.1);
  border-radius: 16px;
  border: 1px solid var(--terracotta-earth);
  box-shadow: var(--shadow-warm);
}

.progress-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 1rem;
  color: var(--cloud-linen);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.progress-item span {
  color: var(--sun-gold);
  font-weight: 700;
  text-shadow: var(--glow-gold);
}

/* ============================================
   NAVIGATION - Sophisticated Tabs
   ============================================ */
nav {
  background: rgba(61, 28, 64, 0.7);
  backdrop-filter: blur(15px);
  padding: 0;
  margin: var(--space-lg) 0;
  border-radius: 20px;
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  border: 1px solid rgba(244, 185, 66, 0.2);
}

.tab-list {
  display: flex;
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
}

.tab-list li {
  flex: 1;
  min-width: 140px;
}

.tab {
  display: block;
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  color: var(--cloud-linen);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.tab-list li:last-child .tab {
  border-right: none;
}

/* Gold linework accent */
.tab::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sun-gold), var(--terracotta-earth));
  transform: translateX(-50%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--glow-gold);
}

.tab:hover {
  background: rgba(244, 185, 66, 0.15);
  color: var(--sun-gold);
}

.tab:hover::before,
.tab.active::before {
  width: 80%;
}

.tab.active {
  background: linear-gradient(180deg, rgba(198, 107, 61, 0.2), rgba(61, 28, 64, 0.3));
  color: var(--sun-gold);
  font-weight: 700;
}

/* ============================================
   MAIN CONTAINER - Elegant Card Design
   ============================================ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md) var(--space-xl);
}

.tab-content {
  display: none;
  animation: fadeIn 0.6s ease-in-out;
}

.tab-content.active {
  display: block;
}

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

.card {
  background: linear-gradient(135deg, rgba(245, 242, 239, 0.08), rgba(198, 107, 61, 0.05));
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-warm);
  border: 1px solid rgba(244, 185, 66, 0.2);
  transition: all 0.4s ease;
  position: relative;
}

/* Brushstroke element - subtle artistic touch */
.card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(244, 185, 66, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.card:hover {
  box-shadow: var(--shadow-deep), var(--glow-gold);
  transform: translateY(-4px);
  border-color: var(--sun-gold);
}

/* ============================================
   TYPOGRAPHY - Soulful & Accessible
   ============================================ */
h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--sun-gold);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.03em;
  border-bottom: 2px solid rgba(201, 176, 55, 0.3);
  padding-bottom: var(--space-md);
}

h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--golden-glow);
  margin: var(--space-lg) 0 var(--space-md);
  letter-spacing: 0.02em;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--terracotta-earth);
  margin: var(--space-md) 0 var(--space-sm);
  letter-spacing: 0.02em;
}

p {
  margin-bottom: var(--space-md);
  color: var(--cloud-linen);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ============================================
   FORMS - Warm & Inviting Design
   ============================================ */
.form-section {
  background: rgba(198, 107, 61, 0.08);
  padding: var(--space-lg);
  border-radius: 16px;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(244, 185, 66, 0.25);
}

label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--golden-glow);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: var(--space-md);
  background: rgba(245, 242, 239, 0.08);
  border: 2px solid rgba(244, 185, 66, 0.3);
  border-radius: 12px;
  color: var(--cloud-linen);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--sun-gold);
  background: rgba(245, 242, 239, 0.15);
  box-shadow: var(--glow-gold);
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: var(--space-sm);
  accent-color: var(--sun-gold);
  cursor: pointer;
}

/* ============================================
   BUTTONS - Radiant & Affirming
   ============================================ */
button,
.btn {
  padding: var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, var(--sun-gold), var(--golden-glow));
  color: var(--onyx-black);
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-warm), var(--glow-gold);
  font-family: var(--font-body);
}

button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-deep), var(--glow-sun);
  background: linear-gradient(135deg, var(--golden-glow), var(--sun-gold));
}

button:active,
.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--terracotta-earth), var(--warm-rust));
  color: var(--warm-white);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--warm-rust), var(--terracotta-earth));
}

/* ============================================
   BADGES & INDICATORS - Refined Status Display
   ============================================ */
.badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge.grade-a {
  background: linear-gradient(135deg, #4CAF50, #66BB6A);
  color: white;
}

.badge.grade-b {
  background: linear-gradient(135deg, #8BC34A, #9CCC65);
  color: white;
}

.badge.grade-c {
  background: linear-gradient(135deg, #FFC107, #FFD54F);
  color: var(--onyx-black);
}

.badge.grade-d {
  background: linear-gradient(135deg, #FF9800, #FFB74D);
  color: white;
}

.badge.grade-e {
  background: linear-gradient(135deg, #FF5722, #FF7043);
  color: white;
}

/* ============================================
   EXPLORER - Country Cards with Ancestral Warmth
   ============================================ */
.countries-grid,
#explorer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.country-card,
.explorer-card {
  background: linear-gradient(135deg, rgba(198, 107, 61, 0.12), rgba(61, 28, 64, 0.15));
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: var(--space-lg);
  border: 2px solid rgba(244, 185, 66, 0.3);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Palm leaf silhouette motif */
.country-card::before,
.explorer-card::before {
  content: '🌴';
  position: absolute;
  bottom: -10px;
  right: -10px;
  font-size: 3rem;
  opacity: 0.08;
  pointer-events: none;
}

.country-card:hover,
.explorer-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-deep), var(--glow-sun);
  border-color: var(--sun-gold);
  background: linear-gradient(135deg, rgba(198, 107, 61, 0.18), rgba(61, 28, 64, 0.2));
}

.country-flag {
  font-size: 4rem;
  text-align: center;
  margin-bottom: var(--space-md);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.country-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sun-gold);
  text-align: center;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.country-tagline,
.tagline {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--golden-glow);
  text-align: center;
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.country-scores {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* ============================================
   PHASE INDICATORS - Journey with Grounded Purpose
   ============================================ */
.phase-indicator {
  background: linear-gradient(135deg, rgba(244, 185, 66, 0.15), rgba(198, 107, 61, 0.15));
  padding: var(--space-lg);
  border-radius: 16px;
  margin-bottom: var(--space-lg);
  border-left: 4px solid var(--sun-gold);
  box-shadow: var(--shadow-warm);
  position: relative;
}

/* Compass rose accent */
.phase-indicator::after {
  content: '✦';
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 2rem;
  color: var(--sun-gold);
  opacity: 0.2;
}

.phase-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--sun-gold);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  text-shadow: var(--glow-gold);
}

.phase-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--golden-glow);
  margin-bottom: var(--space-sm);
  font-weight: 700;
}

.phase-description {
  color: var(--cloud-linen);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ============================================
   EDUCATIONAL STEP COMPONENTS - Engaging & Guiding
   ============================================ */

/* Step Introduction Header */
.step-intro {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid rgba(244, 185, 66, 0.3);
}

.step-number-badge {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--sun-gold), var(--golden-glow));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--onyx-black);
  flex-shrink: 0;
  box-shadow: var(--glow-gold), var(--shadow-warm);
}

.step-intro-content h2 {
  margin-bottom: var(--space-xs);
  font-size: 1.75rem;
}

.step-time {
  color: var(--golden-glow);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Why This Matters Box */
.why-matters-box {
  background: linear-gradient(135deg, rgba(93, 44, 96, 0.3), rgba(61, 28, 64, 0.4));
  border: 2px solid rgba(244, 185, 66, 0.25);
  border-radius: 16px;
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.why-matters-box::before {
  content: '💡';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 3rem;
  opacity: 0.15;
}

.why-matters-box h3 {
  color: var(--sun-gold);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.why-matters-box p {
  color: var(--cloud-linen);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.why-matters-box p:last-child {
  margin-bottom: 0;
}

/* Immediate Action Box */
.immediate-action-box {
  background: linear-gradient(135deg, rgba(198, 107, 61, 0.25), rgba(168, 86, 61, 0.2));
  border: 2px solid var(--terracotta-earth);
  border-radius: 16px;
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.immediate-action-box::before {
  content: '🎯';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 3rem;
  opacity: 0.15;
}

.immediate-action-box h3 {
  color: var(--terracotta-earth);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.immediate-action-box p {
  color: var(--cloud-linen);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.immediate-action-box p:last-child {
  margin-bottom: 0;
}

/* Next Step Preview */
.next-step-preview {
  background: linear-gradient(135deg, rgba(244, 185, 66, 0.15), rgba(255, 213, 128, 0.1));
  border: 2px dashed rgba(244, 185, 66, 0.4);
  border-radius: 16px;
  padding: var(--space-lg);
  margin-top: var(--space-xl);
  text-align: center;
}

.next-step-preview h3 {
  color: var(--sun-gold);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
}

.next-step-preview p {
  color: var(--cloud-linen);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.next-step-preview .btn-secondary {
  margin-top: var(--space-sm);
}

/* Education Card Styling */
.education-card {
  border-top: 4px solid var(--sun-gold);
}

/* ============================================
   ALERTS & NOTIFICATIONS - Affirming Messaging
   ============================================ */
.alert {
  padding: var(--space-lg);
  border-radius: 12px;
  margin-bottom: var(--space-lg);
  border-left: 4px solid;
  font-family: var(--font-body);
}

.alert-info {
  background: rgba(93, 44, 96, 0.2);
  border-color: var(--soft-plum);
  color: var(--cloud-linen);
}

.alert-warning {
  background: rgba(244, 185, 66, 0.15);
  border-color: var(--sun-gold);
  color: var(--cloud-linen);
}

.alert-success {
  background: rgba(198, 107, 61, 0.15);
  border-color: var(--terracotta-earth);
  color: var(--cloud-linen);
}

/* Status messages */
.status-message {
  padding: var(--space-md);
  border-radius: 8px;
  margin-top: var(--space-sm);
  font-weight: 500;
  text-align: center;
}

.status-message.success {
  background: rgba(198, 107, 61, 0.2);
  color: var(--sun-gold);
  border: 1px solid var(--terracotta-earth);
}

.status-message.error {
  background: rgba(255, 87, 34, 0.2);
  color: #FFB74D;
  border: 1px solid #FF5722;
}

/* ============================================
   RESPONSIVE DESIGN - Mobile Elegance
   ============================================ */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  .tagline {
    font-size: 1rem;
  }
  
  .progress-header {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .tab-list {
    flex-direction: column;
  }
  
  .tab {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .countries-grid {
    grid-template-columns: 1fr;
  }
  
  .card {
    padding: var(--space-lg);
  }
}

/* ============================================
   CENTERING BLACK WOMEN - Visual Language
   ============================================ */
.centered-message {
  background: linear-gradient(135deg, rgba(198, 107, 61, 0.2), rgba(93, 44, 96, 0.2));
  padding: var(--space-xl);
  border-radius: 20px;
  text-align: center;
  margin: var(--space-xl) 0;
  border: 2px solid var(--sun-gold);
  box-shadow: var(--shadow-warm);
}

.centered-message h2 {
  border: none;
  padding: 0;
}

.wisdom-quote {
  font-family: var(--font-accent);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--golden-glow);
  text-align: center;
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  border-left: 3px solid var(--sun-gold);
  background: rgba(245, 242, 239, 0.05);
  border-radius: 0 12px 12px 0;
}

/* ============================================
   LIBERATION COMPASS: FOUR DIMENSIONS
   ============================================ */

.liberation-compass-section {
  background: linear-gradient(135deg, rgba(61, 28, 64, 0.3), rgba(198, 107, 61, 0.2));
  padding: var(--space-lg);
  border-radius: var(--radius);
  border: 2px solid var(--sun-gold);
  margin: var(--space-lg) 0;
}

.four-dimensions-section {
  background: rgba(245, 242, 239, 0.05);
  padding: var(--space-md);
  border-radius: var(--radius);
  margin: var(--space-md) 0;
  border-left: 4px solid var(--terracotta-earth);
}

.four-dimensions-section h3 {
  color: var(--sun-gold);
  font-family: var(--font-heading);
  margin-bottom: var(--space-sm);
  font-size: 1.3rem;
}

.four-dimensions-section em {
  color: var(--cloud-linen);
  opacity: 0.8;
  font-size: 0.95rem;
}

.two-column-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin: var(--space-sm) 0;
}

@media (max-width: 768px) {
  .two-column-grid {
    grid-template-columns: 1fr;
  }
}

/* Severity Indicators */
.severity-low, .severity-verylow {
  color: #4CAF50;
  font-weight: 600;
  padding: var(--space-xs);
  border-radius: 4px;
  background: rgba(76, 175, 80, 0.1);
}

.severity-lowmoderate, .severity-moderatelow {
  color: #8BC34A;
  font-weight: 600;
  padding: var(--space-xs);
  border-radius: 4px;
  background: rgba(139, 195, 74, 0.1);
}

.severity-moderate {
  color: #FFC107;
  font-weight: 600;
  padding: var(--space-xs);
  border-radius: 4px;
  background: rgba(255, 193, 7, 0.1);
}

.severity-moderatehigh, .severity-highmoderate {
  color: #FF9800;
  font-weight: 600;
  padding: var(--space-xs);
  border-radius: 4px;
  background: rgba(255, 152, 0, 0.1);
}

.severity-high {
  color: #FF5722;
  font-weight: 600;
  padding: var(--space-xs);
  border-radius: 4px;
  background: rgba(255, 87, 34, 0.1);
}

/* Community Posts */
.community-post {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.community-post:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-warm);
}

/* ============================================
   MODAL - Country Detail
   ============================================ */
/* ============================================
   FULL-SCREEN MODAL SYSTEM
   ============================================ */
.fullscreen-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, var(--deep-plum) 0%, var(--onyx-black) 50%, var(--charcoal) 100%);
  background-attachment: fixed;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.fullscreen-modal.active {
  display: flex;
  flex-direction: column;
}

.fullscreen-modal-header {
  background: linear-gradient(135deg, rgba(61, 28, 64, 0.95) 0%, rgba(93, 44, 96, 0.85) 100%);
  backdrop-filter: blur(20px);
  padding: var(--space-lg) var(--space-md);
  box-shadow: var(--shadow-deep);
  border-bottom: 2px solid var(--sun-gold);
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fullscreen-modal-title {
  color: var(--sun-gold);
  font-family: var(--font-heading);
  font-size: 2rem;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.fullscreen-modal-close {
  color: var(--sun-gold);
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  background: none;
  border: none;
  line-height: 1;
  padding: var(--space-xs) var(--space-sm);
}

.fullscreen-modal-close:hover {
  color: var(--golden-glow);
  transform: scale(1.15);
}

.fullscreen-modal-body {
  flex: 1;
  padding: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Country Profile Full-Screen Modal */
.fullscreen-modal.country-profile-modal .fullscreen-modal-body {
  max-width: 1400px;
}

.country-profile-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

@media (max-width: 968px) {
  .country-profile-two-column {
    grid-template-columns: 1fr;
  }
}

.country-profile-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Legacy modal (for backward compatibility) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(27, 27, 27, 0.9);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: linear-gradient(135deg, var(--deep-plum) 0%, var(--charcoal) 100%);
  margin: auto;
  padding: 0;
  border: 2px solid var(--sun-gold);
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-deep), var(--glow-gold);
  position: relative;
}

.modal-close {
  color: var(--sun-gold);
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--golden-glow);
  transform: scale(1.2);
}

.country-detail {
  padding: var(--space-lg);
}

.country-header-images {
  margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-lg);
}

.terrain-banner {
  position: relative;
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, var(--deep-plum) 0%, var(--soft-plum) 50%, var(--terracotta-earth) 100%);
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terrain-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.country-title-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
}

.country-title-overlay .flag-icon {
  font-size: 5rem;
  margin-bottom: var(--space-sm);
  filter: drop-shadow(var(--glow-gold));
}

.country-title-overlay h2 {
  color: var(--sun-gold);
  font-family: var(--font-heading);
  font-size: 3rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  margin: 0;
}

.detail-section {
  margin: var(--space-lg) 0;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--sun-gold);
}

.detail-section h3 {
  color: var(--sun-gold);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.detail-section p {
  margin: var(--space-sm) 0;
  line-height: 1.8;
}

.detail-section strong {
  color: var(--golden-glow);
  font-weight: 600;
}

.sdoh-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.score-badge {
  padding: var(--space-xs) var(--space-md);
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.sdoh-indicators {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.indicator-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.indicator-label {
  color: var(--cloud-linen);
  font-weight: 500;
}

.indicator-value {
  color: var(--sun-gold);
  font-weight: 700;
}

/* ============================================
   FOUR COMPASS DIMENSIONS
   ============================================ */
.four-dimensions-section {
  margin: var(--space-lg) 0;
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

@media (max-width: 768px) {
  .dimension-grid {
    grid-template-columns: 1fr;
  }
}

.dimension-card {
  background: linear-gradient(135deg, rgba(109, 65, 109, 0.3) 0%, rgba(27, 27, 27, 0.5) 100%);
  border: 2px solid var(--soft-plum);
  border-radius: 12px;
  padding: var(--space-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.dimension-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-gold);
  border-color: var(--sun-gold);
}

.dimension-card h4 {
  color: var(--sun-gold);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
}

.dimension-card p {
  color: var(--cloud-linen);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ============================================
   LIBERATION DECLARATION BLOCKQUOTE
   ============================================ */
.liberation-declaration {
  background: linear-gradient(135deg, var(--deep-plum) 0%, var(--charcoal) 100%);
  border-left: 5px solid var(--sun-gold);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--golden-glow);
  font-style: italic;
  box-shadow: var(--shadow-warm);
}

/* ============================================
   CHECKBOX GROUPS
   ============================================ */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--cloud-linen);
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: 6px;
  transition: background 0.2s ease;
}

.checkbox-group label:hover {
  background: rgba(255, 255, 255, 0.05);
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--sun-gold);
}

/* ============================================
   DECISION BUTTON
   ============================================ */
.btn-decision {
  background: linear-gradient(135deg, var(--terracotta-earth) 0%, var(--deep-plum) 100%);
  font-size: 1.2rem;
  padding: var(--space-md) var(--space-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-deep), var(--glow-gold);
}

.btn-decision:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(218, 147, 71, 0.5);
}

/* ============================================
   WELCOME TOAST NOTIFICATION
   ============================================ */
.welcome-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  z-index: 20000;
  opacity: 0;
  transition: all 0.5s ease;
}

.welcome-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.welcome-toast-content {
  background: linear-gradient(135deg, var(--deep-plum) 0%, var(--charcoal) 100%);
  border: 2px solid var(--sun-gold);
  border-radius: 16px;
  padding: var(--space-lg) var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-deep), var(--glow-gold);
  min-width: 300px;
  max-width: 500px;
}

.welcome-toast-content h3 {
  color: var(--sun-gold);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: var(--space-xs);
}

.welcome-toast-content p {
  color: var(--cloud-linen);
  font-size: 1rem;
  margin: 0;
}

/* ============================================
   REGISTRATION & LOGIN MODALS
   ============================================ */
.registration-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.registration-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.registration-modal-content {
  position: relative;
  background: linear-gradient(145deg, var(--deep-plum) 0%, var(--charcoal) 100%);
  border-radius: 16px;
  padding: var(--space-xl);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(244, 185, 66, 0.3);
  box-shadow: var(--shadow-deep), var(--glow-gold);
}

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

.registration-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: var(--space-md);
}

.registration-header h2 {
  font-family: var(--font-heading);
  color: var(--sun-gold);
  font-size: 1.8rem;
  margin-bottom: var(--space-xs);
}

.registration-header p {
  color: var(--cloud-linen);
  opacity: 0.9;
}

.reg-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sun-gold) !important;
  opacity: 1 !important;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.5px;
}

.reg-description {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--space-xs);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.reg-cta {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--sun-gold) !important;
  opacity: 1 !important;
  margin-top: var(--space-sm);
}

.motivation-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--space-xs);
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(244, 185, 66, 0.15);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-option:hover {
  background: rgba(244, 185, 66, 0.1);
  border-color: rgba(244, 185, 66, 0.3);
}

.radio-option input[type="radio"] {
  accent-color: var(--sun-gold);
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

.radio-option input[type="radio"]:checked + span {
  color: var(--sun-gold);
  font-weight: 500;
}

.radio-option span {
  color: var(--cloud-linen);
  font-size: 0.95rem;
}

.reg-calibration-note {
  font-size: 0.85rem;
  color: var(--earth);
  font-style: italic;
  text-align: center;
  margin: var(--space-sm) 0;
  opacity: 0.8;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-xs);
}

.slider-label-left,
.slider-label-right {
  font-size: 0.8rem;
  color: var(--cloud-linen);
  opacity: 0.7;
  white-space: nowrap;
  min-width: 70px;
}

.slider-label-left { text-align: right; }
.slider-label-right { text-align: left; }

.compass-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, rgba(244,185,66,0.2), rgba(244,185,66,0.5));
  outline: none;
  transition: background 0.2s;
}

.compass-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sun-gold);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(244,185,66,0.5);
  transition: transform 0.15s;
}

.compass-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.compass-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sun-gold);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 6px rgba(244,185,66,0.5);
}

.slider-value-display {
  text-align: center;
  font-size: 0.85rem;
  color: var(--sun-gold);
  font-weight: 600;
  margin-top: 4px;
}

.reg-followup {
  padding: var(--space-sm);
  margin-top: var(--space-xs);
  border-left: 3px solid var(--sun-gold);
  background: rgba(244, 185, 66, 0.05);
  border-radius: 0 8px 8px 0;
}

.reg-field-hint {
  font-size: 0.82rem;
  color: var(--cloud-linen);
  opacity: 0.6;
  margin: 2px 0 6px 0;
}

.currency-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-xs);
}

.currency-symbol {
  color: var(--sun-gold);
  font-size: 1.1rem;
  font-weight: 600;
}

.currency-suffix {
  color: var(--cloud-linen);
  opacity: 0.6;
  font-size: 0.85rem;
  white-space: nowrap;
}

.currency-input-wrap input[type="number"] {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(244, 185, 66, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--cloud-linen);
  font-size: 1rem;
  font-family: var(--font-body);
}

.currency-input-wrap input[type="number"]:focus {
  outline: none;
  border-color: var(--sun-gold);
  box-shadow: 0 0 0 2px rgba(244, 185, 66, 0.15);
}

.currency-input-wrap input[type="number"]::-webkit-inner-spin-button,
.currency-input-wrap input[type="number"]::-webkit-outer-spin-button {
  opacity: 0.5;
}

.reg-step { display: none; }
.reg-step.active { display: block; }

.reg-step h3 {
  color: var(--sun-gold);
  font-family: var(--font-heading);
  margin-bottom: var(--space-xs);
}

.reg-step-desc {
  color: var(--cloud-linen);
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}

.reg-field {
  margin-bottom: var(--space-md);
}

.reg-field label {
  display: block;
  color: var(--cloud-linen);
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.reg-field input, .reg-field select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(244, 185, 66, 0.3);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--cloud-linen);
  font-family: var(--font-body);
  font-size: 1rem;
}

.reg-field input:focus, .reg-field select:focus {
  outline: none;
  border-color: var(--sun-gold);
  box-shadow: 0 0 0 3px rgba(244, 185, 66, 0.2);
}

.reg-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.reg-next-btn, .reg-submit-btn {
  width: 100%;
  margin-top: var(--space-md);
}

.consent-section {
  background: rgba(0, 0, 0, 0.2);
  padding: var(--space-md);
  border-radius: 8px;
  margin-bottom: var(--space-md);
}

.consent-section h4 {
  color: var(--sun-gold);
  margin-bottom: var(--space-sm);
}

.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--cloud-linen);
  cursor: pointer;
  margin-bottom: var(--space-xs);
}

.consent-checkbox input {
  margin-top: 3px;
  accent-color: var(--sun-gold);
}

.consent-detail {
  font-size: 0.85rem;
  color: rgba(245, 242, 239, 0.7);
  margin-top: var(--space-xs);
  padding-left: 24px;
}

.comm-prefs {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.compass-checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.reg-field textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(244, 185, 66, 0.3);
  border-radius: 8px;
  color: var(--cloud-linen);
  font-size: 1rem;
  font-family: var(--body-font);
  resize: vertical;
  min-height: 80px;
}

.reg-field textarea:focus {
  outline: none;
  border-color: var(--sun-gold);
  box-shadow: 0 0 0 2px rgba(244, 185, 66, 0.2);
}

.reg-field textarea::placeholder {
  color: rgba(245, 242, 239, 0.5);
}

.reg-buttons {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.reg-buttons button { flex: 1; }

.reg-error {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.5);
  color: #ff6b6b;
  padding: var(--space-sm);
  border-radius: 8px;
  margin-top: var(--space-md);
  display: none;
  text-align: center;
}

.registration-footer {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(244, 185, 66, 0.2);
}

.registration-footer p { color: var(--cloud-linen); }
.registration-footer a { color: var(--sun-gold); text-decoration: underline; }

.user-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: rgba(244, 185, 66, 0.1);
  border-radius: 8px;
  margin-top: var(--space-md);
}

.user-greeting {
  color: var(--sun-gold);
  font-weight: 500;
}

.btn-logout {
  background: transparent;
  border: 1px solid var(--sun-gold);
  color: var(--sun-gold);
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: var(--sun-gold);
  color: var(--deep-plum);
}

/* Mobility Profile Summary */
.mobility-profile-content {
  max-height: 90vh;
  overflow-y: auto;
}

.mobility-profile-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.mobility-check-badge {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--sun-gold), #e8a020);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  font-size: 1.8rem;
  color: var(--deep-plum);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(244, 185, 66, 0.4);
}

.mobility-profile-header h2 {
  color: var(--sun-gold);
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.mobility-score-section {
  text-align: center;
  margin: var(--space-md) 0;
}

.mobility-score-ring {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto var(--space-sm);
}

.score-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-bg-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.score-fill-ring {
  fill: none;
  stroke: var(--sun-gold);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 1.5s ease-out;
}

.score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--sun-gold);
  font-family: var(--font-heading);
}

.score-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  font-size: 0.85rem;
  color: var(--cloud-linen);
  opacity: 0.6;
}

.mobility-score-section h3 {
  color: var(--cloud-linen);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  opacity: 0.9;
}

.mobility-factors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.factors-column h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin-bottom: var(--space-xs);
}

.factors-strong h4 { color: #6ecf6e; }
.factors-weak h4 { color: #f0ad4e; }

.factors-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.factors-column li {
  font-size: 0.88rem;
  color: var(--cloud-linen);
  padding: 5px 0;
  padding-left: 22px;
  position: relative;
  opacity: 0.85;
}

.factors-strong li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #6ecf6e;
  font-weight: 700;
}

.factors-weak li::before {
  content: '\26A0';
  position: absolute;
  left: 0;
  font-size: 0.85rem;
}

.mobility-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 185, 66, 0.3), transparent);
  margin: var(--space-md) 0;
}

.mobility-pathways-header {
  text-align: center;
  margin-bottom: var(--space-md);
}

.mobility-pathways-header p {
  color: var(--cloud-linen);
  font-size: 0.95rem;
}

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

.pathway-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(244, 185, 66, 0.15);
  border-radius: 12px;
  padding: var(--space-md);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-sm);
  align-items: center;
  transition: border-color 0.2s, background 0.2s;
}

.pathway-card:hover {
  border-color: rgba(244, 185, 66, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.pathway-rank {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sun-gold), #e8a020);
  color: var(--deep-plum);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pathway-info h4 {
  color: var(--cloud-linen);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.pathway-info h4 .pathway-flag {
  margin-right: 6px;
}

.pathway-best-for {
  font-size: 0.82rem;
  color: var(--sun-gold);
  opacity: 0.85;
  margin-bottom: 2px;
}

.pathway-details {
  display: flex;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--cloud-linen);
  opacity: 0.6;
}

.pathway-match {
  text-align: right;
}

.pathway-match-pct {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sun-gold);
  font-family: var(--font-heading);
  line-height: 1;
}

.pathway-match-label {
  font-size: 0.75rem;
  color: var(--cloud-linen);
  opacity: 0.5;
}

.mobility-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  justify-content: center;
}

.mobility-action-btn {
  flex: 1;
  max-width: 240px;
  text-align: center;
}

/* =============================================
   MOBILITY COMMAND CENTER
   ============================================= */

.command-center {
  margin-bottom: var(--space-xl);
}

.cc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: linear-gradient(135deg, var(--deep-plum) 0%, #2a1528 60%, #1a0f19 100%);
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.cc-title {
  font-family: var(--font-display);
  color: var(--sun-gold);
  font-size: 1.6rem;
  margin: 0 0 4px 0;
}

.cc-subtitle {
  color: var(--cloud-linen);
  opacity: 0.8;
  font-size: 0.95rem;
  margin: 0;
}

.cc-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cc-overall-badge {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.cc-overall-score {
  font-size: 2rem;
  font-weight: 800;
  color: var(--sun-gold);
  line-height: 1;
}

.cc-overall-max {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.cc-readiness-tag {
  background: rgba(212, 175, 55, 0.15);
  color: var(--sun-gold);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cc-sub-scores {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.cc-sub-item {
  flex: 1;
  min-width: 140px;
  background: rgba(42, 21, 40, 0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cc-sub-bar-wrap {
  flex: 1;
}

.cc-sub-name {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

.cc-sub-name span {
  color: var(--cloud-linen);
  font-weight: 600;
}

.cc-sub-track {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}

.cc-sub-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
  width: 0%;
}

.cc-sub-fill.sub-check { background: #7ecf8e; }
.cc-sub-fill.sub-warning { background: #e8a87c; }
.cc-sub-fill.sub-arrow { background: #e85d5d; }

.cc-sub-status {
  font-size: 14px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.cc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: var(--space-md);
}

.cc-card {
  background: rgba(42, 21, 40, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 14px;
  padding: var(--space-lg);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.cc-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.08);
}

.cc-pathways {
  grid-column: 1;
  grid-row: 1 / 3;
}

.cc-projects {
  grid-column: 2;
  grid-row: 1;
}

.cc-risks {
  grid-column: 2;
  grid-row: 2;
}

.cc-insights {
  grid-column: 1 / 3;
  grid-row: 3;
}

.cc-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-md);
}

.cc-card-header h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--sun-gold);
  font-size: 1.1rem;
}

.cc-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.cc-icon-target { background: rgba(212, 175, 55, 0.15); }
.cc-icon-target::before { content: '\1F3AF'; }
.cc-icon-chart { background: rgba(100, 200, 120, 0.15); }
.cc-icon-chart::before { content: '\1F4CA'; }
.cc-icon-list { background: rgba(100, 150, 255, 0.15); }
.cc-icon-list::before { content: '\1F4CB'; }
.cc-icon-alert { background: rgba(255, 100, 100, 0.15); }
.cc-icon-alert::before { content: '\1F6A8'; }
.cc-icon-bulb { background: rgba(255, 200, 50, 0.15); }
.cc-icon-bulb::before { content: '\1F4A1'; }

.cc-badge {
  background: var(--sun-gold);
  color: var(--deep-plum);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: auto;
}

.cc-card-body {
  color: var(--cloud-linen);
}

.cc-card-footer {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.cc-link {
  color: var(--sun-gold);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}

.cc-link:hover {
  text-decoration: underline;
}

/* Enhanced Pathway Cards */
.cc-pathway-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: border-color 0.2s, background 0.2s;
}

.cc-pathway-card:hover {
  border-color: rgba(212, 175, 55, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.cc-pathway-card:last-child { margin-bottom: 0; }

.cc-pw-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.cc-pw-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sun-gold), #c49b2f);
  color: var(--deep-plum);
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cc-pw-header { flex: 1; }

.cc-pw-name {
  font-weight: 600;
  color: var(--cloud-linen);
  font-size: 0.95rem;
}

.cc-pw-flag { margin-right: 6px; }

.cc-pw-meta {
  display: flex;
  gap: 10px;
  margin-top: 2px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.cc-pw-match {
  text-align: center;
  flex-shrink: 0;
}

.cc-pw-pct {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--sun-gold);
  display: block;
}

.cc-pw-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.4);
}

.cc-pw-fits {
  margin: 8px 0;
}

.cc-pw-fits-title,
.cc-pw-challenges-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.cc-pw-fits-title { color: #7ecf8e; }
.cc-pw-challenges-title { color: #e8a87c; }

.cc-pw-fit-list,
.cc-pw-challenge-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cc-pw-fit-list li {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 2px 0;
}

.cc-pw-fit-list li::before {
  content: '\2713 ';
  color: #7ecf8e;
  margin-right: 4px;
}

.cc-pw-challenge-list li {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  padding: 2px 0;
}

.cc-pw-challenge-list li.ch-warning::before {
  content: '\26A0 ';
  color: #e8a87c;
  margin-right: 4px;
}

.cc-pw-challenge-list li.ch-info::before {
  content: '\2139 ';
  color: rgba(255, 255, 255, 0.4);
  margin-right: 4px;
}

.cc-pw-bottom {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.cc-pw-bottom span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Projects progress */
.cc-proj-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--cloud-linen);
  margin-bottom: 10px;
}

.cc-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.cc-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--sun-gold), #e8a87c);
  border-radius: 4px;
  transition: width 1.2s ease;
  width: 0%;
}

.cc-progress-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.cc-task-list {
  margin-bottom: 12px;
}

.cc-task-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.82rem;
}

.cc-task-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}

.cc-task-check.task-done {
  background: #7ecf8e;
  color: var(--deep-plum);
}

.cc-task-check.task-done::after { content: '\2713'; }

.cc-task-check.task-pending {
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
}

.cc-task-check.task-in_progress {
  background: rgba(212, 175, 55, 0.2);
  border: 1.5px solid var(--sun-gold);
}

.cc-task-check.task-in_progress::after { content: '\25B6'; color: var(--sun-gold); }

.cc-task-label {
  color: rgba(255, 255, 255, 0.7);
}

.cc-task-label.task-done-label {
  text-decoration: line-through;
  opacity: 0.5;
}

.cc-next-actions h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sun-gold);
  margin: 0 0 6px 0;
}

.cc-next-actions ol {
  list-style: none;
  counter-reset: actions;
  padding: 0;
  margin: 0;
}

.cc-next-actions li {
  counter-increment: actions;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 3px 0;
}

.cc-next-actions li::before {
  content: counter(actions) '. ';
  color: var(--sun-gold);
  font-weight: 600;
}

.cc-link-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--sun-gold), #c49b2f);
  color: var(--deep-plum);
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cc-link-btn:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* Risk alerts */
.cc-badge-risk {
  background: #e85d5d;
  color: white;
}

.cc-risk-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid transparent;
}

.cc-risk-item:last-child { margin-bottom: 0; }

.cc-risk-item.risk-level-high { border-left-color: #e85d5d; }
.cc-risk-item.risk-level-medium { border-left-color: #e8a87c; }
.cc-risk-item.risk-level-low { border-left-color: #7ecf8e; }

.cc-risk-info { flex: 1; }

.cc-risk-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.cc-risk-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--cloud-linen);
}

.cc-risk-impact {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cc-risk-impact.impact-High {
  background: rgba(232, 93, 93, 0.15);
  color: #e85d5d;
}

.cc-risk-impact.impact-Moderate {
  background: rgba(232, 168, 124, 0.15);
  color: #e8a87c;
}

.cc-risk-impact.impact-Low {
  background: rgba(126, 207, 142, 0.15);
  color: #7ecf8e;
}

.cc-risk-detail {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}

.cc-risk-action {
  font-size: 0.78rem;
  color: var(--sun-gold);
  font-style: italic;
}

/* Insights */
.cc-insights .cc-card-body {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cc-insight-item {
  flex: 1;
  min-width: 200px;
  display: flex;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cc-insight-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.cc-insight-icon.insight-data { background: rgba(100, 150, 255, 0.15); }
.cc-insight-icon.insight-community { background: rgba(126, 207, 142, 0.15); }
.cc-insight-icon.insight-tip { background: rgba(212, 175, 55, 0.15); }

.cc-insight-text {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
}

/* Responsive */
@media (max-width: 768px) {
  .cc-grid {
    grid-template-columns: 1fr;
  }
  .cc-pathways,
  .cc-projects,
  .cc-risks,
  .cc-insights {
    grid-column: 1;
    grid-row: auto;
  }
  .cc-header {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
  .cc-title { font-size: 1.3rem; }
  .cc-sub-scores { flex-direction: column; }
  .cc-insights .cc-card-body { flex-direction: column; }
}

@media (max-width: 600px) {
  .reg-field-row { grid-template-columns: 1fr; }
  .registration-modal-content { padding: var(--space-lg); }
  .mobility-factors { grid-template-columns: 1fr; }
  .pathway-card { grid-template-columns: 1fr; text-align: center; }
  .pathway-match { text-align: center; }
  .pathway-rank { margin: 0 auto; }
  .mobility-actions { flex-direction: column; align-items: center; }
}

/* =============================================
   PATHWAY DETAIL MODAL
   ============================================= */

.pd-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.pd-container {
  position: relative;
  width: 92%;
  max-width: 900px;
  max-height: 90vh;
  background: linear-gradient(160deg, #1a0f19 0%, var(--deep-plum) 40%, #1a0f19 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.pd-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}

.pd-close:hover { color: var(--cloud-linen); }

.pd-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px 16px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.pd-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pd-flag { font-size: 2.4rem; }

.pd-country-name {
  font-family: var(--font-display);
  color: var(--sun-gold);
  font-size: 1.5rem;
  margin: 0;
}

.pd-tagline {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  margin: 2px 0 0 0;
}

.pd-header-right {
  text-align: center;
}

.pd-match-score {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.pd-match-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--sun-gold);
  line-height: 1;
}

.pd-match-max {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.35);
}

.pd-match-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.45);
}

.pd-tabs {
  display: flex;
  gap: 0;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow-x: auto;
  scrollbar-width: none;
}

.pd-tabs::-webkit-scrollbar { display: none; }

.pd-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 12px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.pd-tab:hover { color: var(--cloud-linen); }

.pd-tab-active {
  color: var(--sun-gold);
  border-bottom-color: var(--sun-gold);
}

.pd-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
}

.pd-panel { display: none; }
.pd-panel-active { display: block; }

.pd-footer {
  display: flex;
  gap: 12px;
  padding: 16px 32px;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  justify-content: center;
}

.pd-cta-primary {
  background: linear-gradient(135deg, var(--sun-gold), #c49b2f);
  color: var(--deep-plum);
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.pd-cta-primary:hover { opacity: 0.9; }

.pd-cta-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--cloud-linen);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}

.pd-cta-secondary:hover { background: rgba(255,255,255,0.1); }

.pd-section {
  margin-bottom: 24px;
}

.pd-section-title {
  font-family: var(--font-display);
  color: var(--sun-gold);
  font-size: 1.1rem;
  margin: 0 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.pd-dim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.pd-dim-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pd-dim-label {
  font-size: 0.85rem;
  color: var(--cloud-linen);
  font-weight: 500;
}

.pd-dim-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pd-dim-score {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--sun-gold);
}

.pd-dim-grade {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.pd-grade-A, .pd-grade-B { background: rgba(126,207,142,0.15); color: #7ecf8e; }
.pd-grade-C { background: rgba(232,168,124,0.15); color: #e8a87c; }
.pd-grade-D, .pd-grade-F { background: rgba(232,93,93,0.15); color: #e85d5d; }

.pd-dim-star { color: var(--sun-gold); }

.pd-analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pd-analysis-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 16px;
}

.pd-analysis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.pd-analysis-title {
  font-weight: 600;
  color: var(--cloud-linen);
  font-size: 0.9rem;
}

.pd-analysis-score {
  font-weight: 700;
  color: var(--sun-gold);
  font-size: 0.9rem;
}

.pd-pro-list, .pd-con-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pd-pro-list li {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  padding: 3px 0;
}

.pd-pro-list li::before {
  content: '\2713 ';
  color: #7ecf8e;
  margin-right: 4px;
}

.pd-con-list li {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  padding: 3px 0;
}

.pd-con-list li::before {
  content: '\26A0 ';
  color: #e8a87c;
  margin-right: 4px;
}

.pd-timeline-wrap {
  position: relative;
  padding-left: 28px;
}

.pd-timeline-line {
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(212, 175, 55, 0.2);
}

.pd-phase {
  position: relative;
  margin-bottom: 24px;
}

.pd-phase:last-child { margin-bottom: 0; }

.pd-phase-dot {
  position: absolute;
  left: -24px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sun-gold);
  border: 2px solid rgba(212, 175, 55, 0.3);
}

.pd-phase-name {
  font-weight: 700;
  color: var(--cloud-linen);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.pd-phase-duration {
  font-size: 0.78rem;
  color: var(--sun-gold);
  margin-bottom: 8px;
}

.pd-phase-tasks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pd-phase-tasks li {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  padding: 2px 0 2px 16px;
  position: relative;
}

.pd-phase-tasks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: rgba(255,255,255,0.2);
}

.pd-capacity-note {
  margin-top: 16px;
  padding: 12px;
  background: rgba(126, 207, 142, 0.08);
  border: 1px solid rgba(126, 207, 142, 0.15);
  border-radius: 8px;
  font-size: 0.85rem;
  color: #7ecf8e;
}

.pd-cost-total {
  text-align: center;
  margin-bottom: 20px;
}

.pd-cost-total-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.pd-cost-total-amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--sun-gold);
}

.pd-cost-breakdown {
  margin-bottom: 20px;
}

.pd-cost-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.85rem;
}

.pd-cost-label { color: rgba(255,255,255,0.7); }
.pd-cost-value { color: var(--cloud-linen); font-weight: 600; }

.pd-cost-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.pd-cost-stat {
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.pd-cost-stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sun-gold);
  display: block;
}

.pd-cost-stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.pd-readiness-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 8px;
}

.pd-readiness-STRONG { background: rgba(126,207,142,0.15); color: #7ecf8e; }
.pd-readiness-MODERATE { background: rgba(232,168,124,0.15); color: #e8a87c; }
.pd-readiness-NEEDS { background: rgba(232,93,93,0.15); color: #e85d5d; }

.pd-hc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.pd-hc-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 16px;
}

.pd-hc-box-title {
  font-weight: 600;
  color: var(--sun-gold);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.pd-hc-row {
  display: flex;
  gap: 6px;
  padding: 3px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}

.pd-hc-icon { flex-shrink: 0; }

.pd-hc-recommendation {
  padding: 14px;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 10px;
  color: var(--cloud-linen);
  font-size: 0.85rem;
}

.pd-hc-recommendation strong {
  color: var(--sun-gold);
}

.pd-comm-group {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}

.pd-comm-group:last-child { margin-bottom: 0; }

.pd-comm-group-name {
  font-weight: 600;
  color: var(--cloud-linen);
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.pd-comm-group-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
}

.pd-comm-activities {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pd-comm-tag {
  font-size: 0.72rem;
  background: rgba(212, 175, 55, 0.1);
  color: var(--sun-gold);
  padding: 3px 10px;
  border-radius: 12px;
}

.pd-risk-overall {
  text-align: center;
  margin-bottom: 16px;
}

.pd-risk-overall-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pd-risk-overall-level {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sun-gold);
  margin-top: 4px;
}

.pd-risk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.pd-risk-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 10px 14px;
}

.pd-risk-bar-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}

.pd-risk-bar-level {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

.pd-risk-bar-level.risk-Low { background: rgba(126,207,142,0.15); color: #7ecf8e; }
.pd-risk-bar-level.risk-Moderate { background: rgba(232,168,124,0.15); color: #e8a87c; }
.pd-risk-bar-level.risk-High { background: rgba(232,93,93,0.15); color: #e85d5d; }
.pd-risk-bar-level.risk-Low-Moderate { background: rgba(232,168,124,0.12); color: #e8a87c; }

.pd-risk-personal {
  margin-bottom: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border-left: 3px solid rgba(232,168,124,0.5);
  border-radius: 0 8px 8px 0;
}

.pd-risk-personal.pd-risk-check {
  border-left-color: rgba(126,207,142,0.5);
}

.pd-risk-personal-text {
  font-size: 0.85rem;
  color: var(--cloud-linen);
  margin-bottom: 4px;
}

.pd-risk-mitigation {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  font-style: italic;
}

.pd-comp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
}

.pd-comp-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--sun-gold);
  font-weight: 600;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  font-size: 0.82rem;
}

.pd-comp-table td {
  padding: 10px 12px;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.pd-comp-table tr:last-child td { border-bottom: none; }

.pd-comp-highlight {
  background: rgba(212, 175, 55, 0.05);
}

.pd-comp-highlight td {
  color: var(--cloud-linen);
  font-weight: 500;
}

@media (max-width: 768px) {
  .pd-container { width: 98%; max-height: 95vh; border-radius: 14px; }
  .pd-header { padding: 16px 20px 12px; flex-direction: column; gap: 10px; }
  .pd-content { padding: 16px 20px; }
  .pd-footer { padding: 12px 20px; flex-direction: column; }
  .pd-analysis-grid { grid-template-columns: 1fr; }
  .pd-hc-grid { grid-template-columns: 1fr; }
  .pd-risk-grid { grid-template-columns: 1fr; }
  .pd-cost-comparison { grid-template-columns: 1fr; }
  .pd-dim-grid { grid-template-columns: 1fr; }
  .pd-comp-table { font-size: 0.75rem; }
  .pd-comp-table th, .pd-comp-table td { padding: 8px 6px; }
}

/* ============================================
   AI ADVISOR CHAT PANEL
   ============================================ */
.advisor-panel {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 400px;
    max-height: 600px;
    background: linear-gradient(135deg, rgba(61, 28, 64, 0.98), rgba(27, 27, 27, 0.98));
    border: 1px solid rgba(244, 185, 66, 0.3);
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(20px);
}
.advisor-panel.active { display: flex; }

.advisor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, var(--sun-gold), var(--golden-glow)) 1;
}
.advisor-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.advisor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sun-gold), var(--golden-glow));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.advisor-title {
    color: var(--cloud-linen);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}
.advisor-status {
    color: var(--cloud-linen);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.advisor-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
}
.advisor-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--cloud-linen);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: none;
    padding: 0;
}
.advisor-close:hover {
    background: rgba(198,107,61,0.3);
    color: var(--terracotta-earth);
    transform: none;
    box-shadow: none;
}

.advisor-messages {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px;
    flex: 1;
    max-height: 380px;
}
.advisor-messages::-webkit-scrollbar { width: 6px; }
.advisor-messages::-webkit-scrollbar-track { background: var(--soft-plum); border-radius: 3px; }
.advisor-messages::-webkit-scrollbar-thumb { background: var(--terracotta-earth); border-radius: 3px; }

.advisor-msg { margin-bottom: 16px; }
.advisor-msg-ai .advisor-msg-content {
    background: rgba(244,185,66,0.1);
    border-left: 3px solid var(--sun-gold);
    border-radius: 4px 16px 16px 16px;
    padding: 14px 18px;
    color: var(--cloud-linen);
}
.advisor-msg-user .advisor-msg-content {
    background: rgba(198,107,61,0.2);
    border-right: 3px solid var(--terracotta-earth);
    border-radius: 16px 4px 16px 16px;
    padding: 14px 18px;
    margin-left: auto;
    max-width: 85%;
}
.advisor-msg-content p {
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 0.95rem;
}
.advisor-msg-content p:last-child { margin-bottom: 0; }

.advisor-data-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.advisor-data-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(244,185,66,0.2);
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 100px;
}
.advisor-data-card .adc-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cloud-linen);
    opacity: 0.6;
    margin-bottom: 4px;
}
.advisor-data-card .adc-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sun-gold);
}
.advisor-data-card .adc-trend {
    font-size: 0.75rem;
    margin-top: 2px;
}
.advisor-data-card .adc-trend.up { color: #4ade80; }
.advisor-data-card .adc-trend.down { color: var(--terracotta-earth); }

.advisor-input-area {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.advisor-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.advisor-suggestion-btn {
    background: rgba(244,185,66,0.15);
    border: 1px solid rgba(244,185,66,0.3);
    color: var(--sun-gold);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
    box-shadow: none;
}
.advisor-suggestion-btn:hover {
    background: rgba(244,185,66,0.3);
    transform: none;
    box-shadow: none;
}
.advisor-input-row {
    display: flex;
    gap: 8px;
}
.advisor-input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 24px;
    padding: 12px 20px;
    color: var(--cloud-linen);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: border-color 0.3s;
    box-shadow: none;
}
.advisor-input:focus {
    outline: none;
    border-color: var(--sun-gold);
    box-shadow: none;
}
.advisor-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--terracotta-earth), var(--warm-rust));
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    box-shadow: none;
    padding: 0;
    flex-shrink: 0;
}
.advisor-send:hover {
    transform: scale(1.05);
    box-shadow: none;
}

.advisor-typing {
    display: flex;
    gap: 4px;
    padding: 10px 18px;
}
.advisor-typing .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sun-gold);
    animation: advisorBounce 1.4s infinite;
}
.advisor-typing .dot:nth-child(2) { animation-delay: 0.2s; }
.advisor-typing .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes advisorBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

/* ============================================
   PROJECT TRACKER MODAL
   ============================================ */
.project-tracker-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pt-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
}
.pt-container {
    position: relative;
    width: 95%;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, var(--deep-plum), var(--onyx-black));
    border: 1px solid rgba(244,185,66,0.3);
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.pt-container::-webkit-scrollbar { width: 6px; }
.pt-container::-webkit-scrollbar-track { background: var(--soft-plum); border-radius: 3px; }
.pt-container::-webkit-scrollbar-thumb { background: var(--terracotta-earth); border-radius: 3px; }

.pt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
    border-bottom: 1px solid rgba(244,185,66,0.2);
    background: linear-gradient(135deg, rgba(93,44,96,0.3), transparent);
}
.pt-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.pt-flag { font-size: 2.5rem; }
.pt-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sun-gold);
}
.pt-status {
    display: inline-block;
    background: rgba(74,222,128,0.2);
    color: #4ade80;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.pt-header-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.pt-progress-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--sun-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(244,185,66,0.1);
}
.pt-progress-num {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--sun-gold);
}
.pt-target {
    font-size: 0.8rem;
    color: var(--cloud-linen);
    opacity: 0.7;
    margin-top: 4px;
}
.pt-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--cloud-linen);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: none;
    padding: 0;
}
.pt-close:hover {
    background: rgba(198,107,61,0.3);
    color: var(--terracotta-earth);
    transform: none;
    box-shadow: none;
}

.pt-timeline-visual {
    display: flex;
    flex-direction: row;
    padding: 24px 32px;
    overflow-x: auto;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pt-timeline-visual::-webkit-scrollbar { height: 6px; }
.pt-timeline-visual::-webkit-scrollbar-track { background: var(--soft-plum); border-radius: 3px; }
.pt-timeline-visual::-webkit-scrollbar-thumb { background: var(--terracotta-earth); border-radius: 3px; }

.pt-tl-month {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    position: relative;
}
.pt-tl-month::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: var(--golden-glow);
    opacity: 0.3;
    z-index: 0;
}
.pt-tl-month:last-child::after { display: none; }
.pt-tl-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--charcoal);
    border: 2px solid var(--sun-gold);
    position: relative;
    z-index: 1;
}
.pt-tl-dot.active { background: var(--sun-gold); }
.pt-tl-dot.done { background: var(--terracotta-earth); }
.pt-tl-label {
    font-size: 0.7rem;
    color: var(--cloud-linen);
    margin-top: 6px;
    white-space: nowrap;
}
.pt-tl-hours {
    font-size: 0.65rem;
    color: var(--golden-glow);
    opacity: 0.6;
}
.pt-tl-current .pt-tl-dot {
    width: 18px;
    height: 18px;
    animation: ptPulse 2s infinite;
    box-shadow: 0 0 12px rgba(244,185,66,0.5);
}
@keyframes ptPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(244,185,66,0.4); }
    50% { box-shadow: 0 0 20px rgba(244,185,66,0.7); }
}

.pt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 24px 32px;
}
.pt-section {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 24px;
}
.pt-section h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--sun-gold);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(244,185,66,0.15);
    margin-top: 0;
}

.pt-phase { margin-bottom: 16px; }
.pt-phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.pt-phase-name {
    font-weight: 600;
    color: var(--cloud-linen);
    font-size: 0.95rem;
}
.pt-phase-pct {
    color: var(--sun-gold);
    font-size: 0.85rem;
    font-weight: 600;
}
.pt-phase-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}
.pt-phase-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--terracotta-earth), var(--sun-gold));
    transition: width 0.6s ease;
}
.pt-phase-tasks { margin-top: 8px; }
.pt-task-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--cloud-linen);
}
.pt-task-done {
    opacity: 0.6;
    text-decoration: line-through;
}
.pt-task-icon { font-size: 0.85rem; }
.pt-task-icon.done { color: #4ade80; }
.pt-task-icon.in-progress { color: var(--sun-gold); }
.pt-task-icon.pending { color: var(--cloud-linen); opacity: 0.3; }
.pt-task-next {
    font-size: 0.75rem;
    color: var(--terracotta-earth);
    margin-left: 24px;
}

.pt-crit-task {
    background: rgba(198,107,61,0.1);
    border-left: 3px solid var(--terracotta-earth);
    border-radius: 4px 12px 12px 4px;
    padding: 16px;
    margin-bottom: 12px;
}
.pt-crit-due {
    font-weight: 700;
    color: var(--sun-gold);
    font-size: 0.8rem;
    margin-bottom: 4px;
}
.pt-crit-label {
    font-weight: 600;
    font-size: 1rem;
    color: var(--cloud-linen);
}
.pt-crit-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 6px;
    color: var(--cloud-linen);
}
.pt-crit-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--terracotta-earth), var(--warm-rust));
    color: white;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 8px;
    border: none;
    font-family: var(--font-body);
    transition: filter 0.3s;
    box-shadow: none;
}
.pt-crit-cta:hover {
    filter: brightness(1.15);
    transform: none;
    box-shadow: none;
}

.pt-milestone {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    align-items: center;
}
.pt-ms-date {
    min-width: 60px;
    font-weight: 700;
    color: var(--sun-gold);
    font-size: 0.85rem;
}
.pt-ms-label {
    color: var(--cloud-linen);
    font-size: 0.9rem;
}
.pt-ms-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--sun-gold);
    align-self: center;
    flex-shrink: 0;
}

.pt-doc-group { margin-bottom: 16px; }
.pt-doc-group-title {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    color: var(--cloud-linen);
}
.pt-doc-group.uploaded .pt-doc-group-title { color: #4ade80; }
.pt-doc-group.needed .pt-doc-group-title { color: var(--sun-gold); }
.pt-doc-group.library .pt-doc-group-title { color: var(--golden-glow); }
.pt-doc-item {
    padding: 4px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--cloud-linen);
}
.pt-doc-icon { font-size: 0.85rem; }
.pt-doc-group.uploaded .pt-doc-icon::before { content: '✓'; color: #4ade80; }
.pt-doc-group.needed .pt-doc-icon::before { content: '⚠'; color: var(--sun-gold); }
.pt-doc-group.library .pt-doc-icon::before { content: '📖'; }

.pt-cap-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}
.pt-cap-label {
    color: var(--cloud-linen);
    font-size: 0.9rem;
}
.pt-cap-value {
    color: var(--sun-gold);
    font-weight: 600;
}
.pt-cap-status {
    margin-top: 12px;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}
.pt-cap-status.on_track {
    background: rgba(74,222,128,0.1);
    border: 1px solid rgba(74,222,128,0.3);
    color: #4ade80;
}
.pt-cap-status.at_risk {
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.3);
    color: #fbbf24;
}

.pt-chart-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.pt-chart-label {
    min-width: 100px;
    font-size: 0.85rem;
    text-align: right;
    color: var(--cloud-linen);
}
.pt-chart-bar-track {
    flex: 1;
    height: 20px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
}
.pt-chart-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--terracotta-earth), var(--sun-gold));
    transition: width 0.8s ease-out;
}
.pt-chart-score {
    min-width: 40px;
    font-weight: 700;
    color: var(--sun-gold);
    font-size: 0.9rem;
}

.pt-cost-boxes {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 20px;
    align-items: center;
}
.pt-cost-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 16px;
    min-width: 140px;
}
.pt-cost-box.current {
    background: rgba(198,107,61,0.15);
    border: 1px solid rgba(198,107,61,0.3);
}
.pt-cost-box.destination {
    background: rgba(74,222,128,0.1);
    border: 1px solid rgba(74,222,128,0.3);
}
.pt-cost-box-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 6px;
    color: var(--cloud-linen);
    letter-spacing: 0.03em;
}
.pt-cost-box-amount {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--sun-gold);
}
.pt-cost-arrow {
    font-size: 2rem;
    color: var(--sun-gold);
    align-self: center;
}
.pt-cost-savings {
    text-align: center;
    margin-top: 12px;
    font-weight: 600;
    color: #4ade80;
    font-size: 1rem;
}
.pt-cost-breakeven {
    text-align: center;
    font-size: 0.85rem;
    color: var(--cloud-linen);
    opacity: 0.7;
    margin-top: 4px;
}
.pt-cost-details { margin-top: 20px; }
.pt-cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pt-cost-cat {
    color: var(--cloud-linen);
    font-size: 0.9rem;
}
.pt-cost-vals {
    display: flex;
    gap: 16px;
    align-items: center;
}
.pt-cost-old {
    opacity: 0.5;
    text-decoration: line-through;
    color: var(--cloud-linen);
    font-size: 0.9rem;
}
.pt-cost-new {
    color: var(--sun-gold);
    font-weight: 600;
    font-size: 0.9rem;
}
.pt-cost-pct {
    font-size: 0.8rem;
    color: #4ade80;
}

.pt-footer {
    padding: 20px 32px;
    border-top: 1px solid rgba(244,185,66,0.2);
    text-align: center;
}
.pt-cta-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--terracotta-earth), var(--warm-rust));
    color: var(--warm-white);
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    letter-spacing: 0.03em;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(198,107,61,0.3);
    text-transform: uppercase;
}
.pt-cta-primary:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(198,107,61,0.4);
}

/* ============================================
   NOTIFICATION PANEL
   ============================================ */
.notif-panel {
    position: fixed;
    top: 80px;
    right: 24px;
    width: 380px;
    max-height: 500px;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(61, 28, 64, 0.98), rgba(27, 27, 27, 0.98));
    border: 1px solid rgba(244, 185, 66, 0.3);
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.5);
    z-index: 9997;
    backdrop-filter: blur(20px);
    display: none;
}
.notif-panel.active { display: block; }
.notif-panel::-webkit-scrollbar { width: 6px; }
.notif-panel::-webkit-scrollbar-track { background: var(--soft-plum); border-radius: 3px; }
.notif-panel::-webkit-scrollbar-thumb { background: var(--terracotta-earth); border-radius: 3px; }

.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(244,185,66,0.2);
}
.notif-header h3 {
    color: var(--sun-gold);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin: 0;
}
.notif-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--cloud-linen);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: none;
    padding: 0;
}
.notif-close:hover {
    background: rgba(198,107,61,0.3);
    color: var(--terracotta-earth);
    transform: none;
    box-shadow: none;
}

.notif-list { padding: 12px; }
.notif-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s;
}
.notif-item:hover {
    background: rgba(255,255,255,0.08);
}
.notif-item.task { border-left: 3px solid var(--sun-gold); }
.notif-item.risk { border-left: 3px solid #ef4444; }
.notif-item.community { border-left: 3px solid #8b5cf6; }
.notif-item.achievement { border-left: 3px solid #4ade80; }

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.notif-icon.task { background: rgba(244,185,66,0.15); }
.notif-icon.risk { background: rgba(239,68,68,0.15); }
.notif-icon.community { background: rgba(139,92,246,0.15); }
.notif-icon.achievement { background: rgba(74,222,128,0.15); }

.notif-body { flex: 1; }
.notif-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--cloud-linen);
}
.notif-message {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 2px;
    color: var(--cloud-linen);
}
.notif-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.notif-action-btn {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: var(--cloud-linen);
    transition: all 0.3s;
    font-family: var(--font-body);
    box-shadow: none;
}
.notif-action-btn:hover {
    background: rgba(244,185,66,0.15);
    transform: none;
    box-shadow: none;
}
.notif-action-btn.primary {
    background: rgba(198,107,61,0.3);
    border-color: var(--terracotta-earth);
}

/* ============================================
   PLAN / SUBSCRIPTION MODAL
   ============================================ */
.plan-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}
.plan-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
}
.plan-container {
    position: relative;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    background: linear-gradient(135deg, var(--deep-plum), var(--onyx-black));
    border: 1px solid rgba(244,185,66,0.3);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.plan-container::-webkit-scrollbar { width: 6px; }
.plan-container::-webkit-scrollbar-track { background: var(--soft-plum); border-radius: 3px; }
.plan-container::-webkit-scrollbar-thumb { background: var(--terracotta-earth); border-radius: 3px; }

.plan-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--cloud-linen);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: none;
    padding: 0;
}
.plan-close:hover {
    background: rgba(198,107,61,0.3);
    color: var(--terracotta-earth);
    transform: none;
    box-shadow: none;
}

.plan-current {
    background: rgba(244,185,66,0.08);
    border: 2px solid rgba(244,185,66,0.3);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}
.plan-current h3 {
    color: var(--sun-gold);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin: 0 0 12px 0;
}
.plan-current .plan-price {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--sun-gold);
}

.plan-features {
    list-style: none;
    margin-top: 12px;
    padding: 0;
}
.plan-features li {
    padding: 6px 0;
    font-size: 0.95rem;
    color: var(--cloud-linen);
    display: flex;
    align-items: center;
}
.plan-features li.active::before {
    content: '✓';
    color: #4ade80;
    margin-right: 8px;
    font-weight: 700;
}
.plan-features li.locked::before {
    content: '○';
    color: rgba(255,255,255,0.3);
    margin-right: 8px;
}

.plan-upgrade {
    background: linear-gradient(135deg, var(--terracotta-earth), var(--warm-rust));
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}
.plan-upgrade h3 {
    color: var(--warm-white);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin: 0 0 12px 0;
}
.plan-upgrade .plan-price {
    color: var(--warm-white);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}
.plan-upgrade-cta {
    display: block;
    text-align: center;
    background: var(--sun-gold);
    color: var(--deep-plum);
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 16px;
    cursor: pointer;
    border: none;
    width: 100%;
    font-family: var(--font-body);
    transition: filter 0.3s;
    box-shadow: none;
}
.plan-upgrade-cta:hover {
    filter: brightness(1.1);
    transform: none;
    box-shadow: none;
}

.plan-coming-soon {
    border: 1px dashed rgba(244,185,66,0.3);
    border-radius: 16px;
    padding: 24px;
}
.plan-coming-soon h3 {
    color: var(--golden-glow);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin: 0 0 12px 0;
}
.plan-waitlist-btn {
    display: block;
    text-align: center;
    background: transparent;
    color: var(--sun-gold);
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 16px;
    cursor: pointer;
    border: 2px solid var(--sun-gold);
    width: 100%;
    font-family: var(--font-body);
    transition: all 0.3s;
    box-shadow: none;
}
.plan-waitlist-btn:hover {
    background: rgba(244,185,66,0.15);
    transform: none;
    box-shadow: none;
}

/* ============================================
   FLOATING ACTION BUTTON
   ============================================ */
.fab-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9996;
}
.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--terracotta-earth), var(--sun-gold));
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(198,107,61,0.4);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    z-index: 9997;
    position: relative;
    padding: 0;
}
.fab-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(198,107,61,0.5);
}
.fab-btn.active {
    transform: rotate(45deg);
    background: linear-gradient(135deg, var(--sun-gold), var(--terracotta-earth));
}
.fab-icon {
    transition: transform 0.3s;
    line-height: 1;
}

.fab-menu {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 220px;
    background: linear-gradient(135deg, rgba(61, 28, 64, 0.98), rgba(27, 27, 27, 0.98));
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(244,185,66,0.2);
    animation: fadeInUp 0.2s ease-out;
    backdrop-filter: blur(20px);
}
.fab-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--cloud-linen);
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 10px;
    text-align: left;
    transition: background 0.2s;
    font-family: var(--font-body);
    box-shadow: none;
}
.fab-item:hover {
    background: rgba(244,185,66,0.1);
    transform: none;
    box-shadow: none;
}
.fab-item-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}
.fab-notif-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid var(--deep-plum);
    animation: fabPulse 2s infinite;
}
@keyframes fabPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE - NEW FEATURES
   ============================================ */
@media (max-width: 768px) {
    .advisor-panel {
        width: calc(100% - 16px);
        right: 8px;
        bottom: 80px;
        max-height: 70vh;
    }
    .pt-grid {
        grid-template-columns: 1fr;
    }
    .pt-timeline-visual {
        padding: 16px 20px;
    }
    .pt-tl-month {
        min-width: 70px;
    }
    .pt-tl-dot {
        width: 10px;
        height: 10px;
    }
    .pt-tl-label {
        font-size: 0.6rem;
    }
    .pt-tl-hours {
        font-size: 0.55rem;
    }
    .pt-cost-boxes {
        flex-direction: column;
    }
    .pt-header {
        padding: 20px;
        flex-direction: column;
        gap: 16px;
    }
    .pt-grid {
        padding: 16px 20px;
    }
    .fab-btn {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }
    .notif-panel {
        width: calc(100% - 16px);
        right: 8px;
    }
}

@media (max-width: 480px) {
    .advisor-panel {
        border-radius: 16px 16px 0 0;
        bottom: 0;
        right: 0;
        width: 100%;
        max-height: 80vh;
    }
}

.pt-status-ontrack { background: rgba(74, 222, 128, 0.2); color: #4ade80; padding: 4px 12px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; }
.pt-status-atrisk { background: rgba(251, 191, 36, 0.2); color: #fbbf24; padding: 4px 12px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; }

.pt-tl-done .pt-tl-dot { background: var(--terracotta-earth) !important; border-color: var(--terracotta-earth) !important; }

.pt-chart-total { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; margin-bottom: 16px; border-bottom: 1px solid rgba(244, 185, 66, 0.15); }
.pt-chart-total-label { font-weight: 600; color: var(--cloud-linen); font-size: 1rem; }
.pt-chart-total-score { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--sun-gold); }

.pt-tl-sublabel { font-size: 0.65rem; color: var(--golden-glow); opacity: 0.7; margin-top: 2px; }

.trend-up { color: #4ade80; }
.trend-down { color: var(--terracotta-earth); }
