/* ================================================
   NFORGE AI - REVAMPED DESIGN SYSTEM
   Beautiful, Modern, Professional Financial Platform
   ================================================ */

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette - Blues & Darks */
  --primary-blue: #3b82f6;
  --primary-blue-light: #60a5fa;
  --primary-blue-dark: #2563eb;
  --accent-blue: #0ea5e9;
  
  --dark-900: #0f172a;
  --dark-800: #1e293b;
  --dark-700: #334155;
  --dark-600: #475569;
  --dark-500: #64748b;
  
  --light-100: #f8fafc;
  --light-200: #e2e8f0;
  --light-300: #cbd5e1;
  --light-400: #94a3b8;
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --gradient-glow: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 32px rgba(59, 130, 246, 0.3);
  
  /* Typography */
  --font-primary: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.5rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font-primary);
  background: var(--dark-900);
  color: var(--light-200);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-blue) 0%, transparent 70%);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
  bottom: -150px;
  right: -150px;
  animation-delay: 5s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary-blue-light) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(100px, -100px) scale(1.1);
  }
  66% {
    transform: translate(-100px, 100px) scale(0.9);
  }
}

.grid-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  animation: slideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.625rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform var(--transition-base);
}

.logo:hover {
  transform: translateY(-2px);
}

.logo-icon-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon {
  font-size: 2rem;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.5));
}

.logo-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--gradient-glow);
  border-radius: 50%;
  opacity: 0.2;
  filter: blur(12px);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.3;
  }
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.logo-subtext {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--light-400);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: -4px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--light-200);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  transition: color var(--transition-base);
}

.nav-link-text {
  position: relative;
  z-index: 1;
}

.nav-link-hover {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-glow);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--primary-blue-light);
}

.nav-link:hover .nav-link-hover {
  width: 100%;
}

.nav-link-primary {
  padding: 0.5rem 1.25rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  color: white;
}

.nav-link-primary:hover {
  color: white;
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.nav-link-primary .nav-link-hover {
  display: none;
}

/* ===== MAIN WRAPPER ===== */
.main-wrapper {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

/* ===== HERO SECTION ===== */
.hero-section {
  text-align: center;
  padding: 2rem 0 2.5rem;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-blue-light);
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-blue);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--light-100);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s backwards;
}

.gradient-text {
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-top: 0.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--light-400);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s backwards;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s backwards;
}

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

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

.stat-label {
  font-size: 0.9rem;
  color: var(--light-400);
  margin-top: 0.5rem;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(59, 130, 246, 0.2);
}

/* ===== FORM CARD ===== */
.form-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s backwards;
}

.form-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.card-header-icon {
  font-size: 3rem;
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.4));
}

.card-header-text h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--light-100);
  margin-bottom: 0.25rem;
}

.card-header-text p {
  font-size: 1rem;
  color: var(--light-400);
}

/* ===== UPLOAD SECTION ===== */
.upload-section {
  margin-bottom: 1.5rem;
}

.upload-area {
  position: relative;
  border: 2px dashed rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  background: rgba(59, 130, 246, 0.02);
  transition: all var(--transition-base);
  cursor: pointer;
}

.upload-area:hover {
  border-color: var(--primary-blue);
  background: rgba(59, 130, 246, 0.05);
  transform: translateY(-2px);
}

.upload-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
}

.file-label {
  display: inline-block;
  cursor: pointer;
}

.file-label-text {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--light-100);
  margin-bottom: 0.5rem;
}

.file-label-hint {
  display: block;
  font-size: 0.95rem;
  color: var(--light-400);
}

input[type="file"] {
  display: none;
}

.upload-formats {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--light-500);
  font-weight: 500;
}

/* ===== CONFIG SECTION ===== */
.config-section,
.premium-section {
  margin-bottom: 1.5rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--light-100);
  margin-bottom: 1rem;
}

.title-icon {
  font-size: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--light-200);
}

.label-icon {
  font-size: 1.1rem;
}

.info-tooltip {
  cursor: help;
  opacity: 0.6;
  transition: opacity var(--transition-base);
}

.info-tooltip:hover {
  opacity: 1;
}

.select-wrapper,
.input-wrapper {
  position: relative;
}

select,
input[type="text"] {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(51, 65, 85, 0.4);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  color: var(--light-200);
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: all var(--transition-base);
  outline: none;
}

select:focus,
input[type="text"]:focus {
  border-color: var(--primary-blue);
  background: rgba(51, 65, 85, 0.6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.select-multi select {
  min-height: 140px;
}

select option:checked {
  background: var(--primary-blue);
}

.select-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--light-500);
  font-style: italic;
}

.hint-icon {
  font-size: 1rem;
}

/* ===== PREMIUM FEATURES ===== */
.feature-toggle-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.toggle-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.toggle-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.toggle-icon {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-emoji {
  font-size: 2rem;
  position: relative;
  z-index: 2;
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary-blue);
  border-radius: 50%;
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.toggle-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--light-100);
  margin-bottom: 0.25rem;
}

.toggle-info p {
  font-size: 0.9rem;
  color: var(--light-400);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 64px;
  height: 36px;
  cursor: pointer;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(100, 116, 139, 0.3);
  border: 2px solid rgba(100, 116, 139, 0.5);
  border-radius: 34px;
  transition: all var(--transition-base);
}

.toggle-slider:before {
  content: "";
  position: absolute;
  height: 26px;
  width: 26px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: all var(--transition-base);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .toggle-slider {
  background: var(--gradient-primary);
  border-color: var(--primary-blue);
}

input:checked + .toggle-slider:before {
  transform: translateX(28px);
}

.toggle-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--radius-md);
}

.comparison-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--light-300);
}

.comparison-icon {
  font-size: 1.25rem;
}

.comparison-divider {
  width: 1px;
  height: 32px;
  background: rgba(59, 130, 246, 0.2);
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ===== PRICING DISPLAY ===== */
.pricing-display {
  margin-bottom: 1.25rem;
}

.pricing-card-new {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.4) 0%, rgba(30, 41, 59, 0.4) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all var(--transition-base);
}

.pricing-card-new:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.pricing-header-new {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.pricing-icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 12px;
}

.pricing-icon {
  font-size: 1.75rem;
}

.pricing-title-wrapper h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--light-100);
  margin-bottom: 0.25rem;
}

.pricing-title-wrapper p {
  font-size: 0.9rem;
  color: var(--light-400);
}

.pricing-amount-wrapper {
  text-align: center;
  padding: 1rem 0;
  margin-bottom: 1rem;
  background: rgba(59, 130, 246, 0.05);
  border-radius: var(--radius-md);
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
}

.currency-symbol {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue-light);
}

.amount-value {
  font-size: 4rem;
  font-weight: 800;
  color: var(--light-100);
  line-height: 1;
  font-family: var(--font-mono);
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--light-500);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-breakdown-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.breakdown-item-new {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: rgba(59, 130, 246, 0.05);
  border-left: 3px solid var(--primary-blue);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.breakdown-item-new:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: translateX(4px);
}

.breakdown-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.breakdown-label {
  flex: 1;
  font-size: 0.95rem;
  color: var(--light-300);
}

.breakdown-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-blue-light);
}

/* ===== SUBMIT BUTTON ===== */
.submit-btn {
  position: relative;
  width: 100%;
  padding: 1.25rem 2rem;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-primary);
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5);
}

.submit-btn:active {
  transform: translateY(0);
}

.btn-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.submit-btn:hover .btn-bg {
  transform: translateX(100%);
}

.btn-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.btn-text {
  position: relative;
  z-index: 1;
}

.btn-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shine 3s ease-in-out infinite;
}

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

.submit-btn.payment-required {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.submit-btn.payment-required:hover {
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.5);
}

/* ===== PROGRESS BAR ===== */
.progress-container {
  margin-top: 1.5rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.progress-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--light-300);
}

.progress-percentage {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-blue-light);
  font-family: var(--font-mono);
}

.progress-track {
  height: 12px;
  background: rgba(51, 65, 85, 0.5);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-glow);
  border-radius: 12px;
  transition: width var(--transition-base);
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progress-shimmer 1.5s ease-in-out infinite;
}

@keyframes progress-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ===== LOADING STATE ===== */
.loading-state {
  margin-top: 1rem;
  text-align: center;
  padding: 1.5rem 0;
}

.loading-spinner-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
}

.loading-spinner {
  width: 100%;
  height: 100%;
  border: 4px solid rgba(59, 130, 246, 0.1);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-orbs {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 8px;
}

.loading-orb {
  width: 12px;
  height: 12px;
  background: var(--primary-blue);
  border-radius: 50%;
  animation: loading-pulse 1.4s ease-in-out infinite;
}

.loading-orb:nth-child(1) {
  animation-delay: 0s;
}

.loading-orb:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-orb:nth-child(3) {
  animation-delay: 0.4s;
}

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

.loading-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-blue-light);
}

/* ===== DATA SECTIONS ===== */
.data-section {
  margin-top: 1.25rem;
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.section-header-icon {
  font-size: 1.75rem;
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.4));
}

.section-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--light-100);
}

.subsection-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--light-100);
  margin: 1rem 0 0.75rem;
}

/* ===== ANALYSIS METADATA & SUMMARY ===== */
.analysis-metadata-section {
  margin-bottom: 1.25rem;
}

.metadata-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.metadata-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.metadata-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.metadata-card.primary {
  border-color: var(--primary-blue);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
}

.metadata-card.success {
  border-color: var(--success);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 95, 70, 0.1) 100%);
}

.metadata-card.excellent {
  border-color: var(--success);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 95, 70, 0.15) 100%);
}

.metadata-card.good {
  border-color: var(--primary-blue);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
}

.metadata-card.average {
  border-color: var(--warning);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
}

.metadata-card.poor {
  border-color: var(--danger);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
}

.metadata-card.info {
  border-color: rgba(139, 92, 246, 0.3);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(124, 58, 237, 0.1) 100%);
}

.metadata-card.secondary {
  border-color: rgba(100, 116, 139, 0.3);
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.15) 0%, rgba(71, 85, 105, 0.1) 100%);
}

.metadata-icon {
  font-size: 1.5rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.4));
}

.metadata-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metadata-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--light-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metadata-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--light-100);
  font-family: var(--font-mono);
}

.summary-section {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.5) 0%, rgba(30, 41, 59, 0.5) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(59, 130, 246, 0.2);
}

.summary-icon {
  font-size: 1.5rem;
}

.summary-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--light-100);
  margin: 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--radius-sm);
  border-left: 3px solid rgba(59, 130, 246, 0.5);
}

.summary-label {
  font-size: 0.85rem;
  color: var(--light-400);
  font-weight: 600;
}

.summary-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--light-100);
  font-family: var(--font-mono);
}

.summary-value.success {
  color: var(--success);
}

.summary-value.danger {
  color: var(--danger);
}

.summary-value.warning {
  color: var(--warning);
}

/* ===== QUALITATIVE INSIGHTS ===== */
.qualitative-insights-section {
  margin: 1rem 0;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.insight-card {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.5) 0%, rgba(30, 41, 59, 0.5) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  transition: all var(--transition-base);
}

.insight-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.insight-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.insight-icon {
  font-size: 1.75rem;
  filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.3));
}

.insight-header h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--light-100);
  margin: 0;
}

.insight-content {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.insight-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.insight-row.highlight {
  background: rgba(59, 130, 246, 0.05);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  margin: -0.25rem 0;
}

.insight-label {
  font-size: 0.9rem;
  color: var(--light-400);
  font-weight: 600;
  flex-shrink: 0;
}

.insight-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--light-100);
  text-align: right;
  font-family: var(--font-mono);
}

.insight-row.highlight .insight-value {
  color: var(--primary-blue-light);
  font-size: 1.05rem;
}

/* ===== GRIDS ===== */
.benchmark-grid,
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.benchmark-card,
.metric-card {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.5) 0%, rgba(30, 41, 59, 0.5) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  transition: all var(--transition-base);
}

.benchmark-card:hover,
.metric-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2);
}

.benchmark-card .icon,
.metric-card .icon {
  font-size: 1.5rem;
  margin-bottom: 0.375rem;
}

.benchmark-card .label,
.metric-card .label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--light-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.benchmark-card .value,
.metric-card .value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--light-100);
  font-family: var(--font-mono);
}

.benchmark-card .value.excellent,
.metric-card .value.positive {
  color: var(--success);
}

.benchmark-card .value.good {
  color: var(--primary-blue-light);
}

.benchmark-card .value.average,
.metric-card .value.warning {
  color: var(--warning);
}

.benchmark-card .value.poor,
.metric-card .value.negative {
  color: var(--danger);
}

/* ===== CHARTS ===== */
.charts-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.chart-card {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.4) 0%, rgba(30, 41, 59, 0.4) 100%);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  transition: all var(--transition-base);
}

.chart-card:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.chart-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--light-100);
}

.chart-badge {
  padding: 0.375rem 0.875rem;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-blue-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chart-card canvas {
  max-height: 300px;
}

/* ===== TABLES ===== */
.data-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(15, 23, 42, 0.5);
}

.data-table th {
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-weight: 700;
  color: var(--light-100);
  background: rgba(51, 65, 85, 0.5);
  border-bottom: 2px solid rgba(59, 130, 246, 0.2);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 0.5rem 0.75rem;
  color: var(--light-300);
  border-bottom: 1px solid rgba(59, 130, 246, 0.05);
  font-size: 0.95rem;
}

.data-table tr:hover td {
  background: rgba(59, 130, 246, 0.05);
}

.data-table td.positive {
  color: var(--success);
  font-weight: 600;
}

.data-table td.negative {
  color: var(--danger);
  font-weight: 600;
}

.rating-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rating-badge.excellent {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.rating-badge.good {
  background: rgba(59, 130, 246, 0.2);
  color: var(--primary-blue-light);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.rating-badge.average {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.rating-badge.poor {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ===== ANALYSIS CONTENT ===== */
.analysis-content {
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.analysis-content pre {
  color: var(--light-200);
  line-height: 1.7;
  font-size: 0.95rem;
  white-space: pre-wrap;
  font-family: var(--font-primary);
  background: none;
  border: none;
  padding: 0;
}

/* LLM Status Badges */
.llm-status {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.llm-success {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.llm-warning {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ===== RISK SECTION ===== */
.risk-section {
  margin-top: 1.25rem;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.3) 0%, rgba(153, 27, 27, 0.2) 100%);
  border: 2px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.risk-section.no-risk {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.3) 0%, rgba(6, 95, 70, 0.2) 100%);
  border-color: rgba(16, 185, 129, 0.3);
}

.risk-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.risk-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 8px rgba(239, 68, 68, 0.5));
}

.risk-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fecaca;
}

.risk-section.no-risk .risk-header h3 {
  color: #a7f3d0;
}

.risk-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.risk-item {
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-sm);
  color: #fecaca;
  font-size: 0.95rem;
}

.risk-section.no-risk .risk-item {
  border-left-color: var(--success);
  color: #d1fae5;
}

/* ===== PERIOD DETAILS SECTION ===== */
.period-card {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.4) 0%, rgba(30, 41, 59, 0.4) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: all var(--transition-base);
}

.period-card:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.period-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(30, 41, 59, 0.6);
  cursor: pointer;
  transition: background var(--transition-base);
}

.period-header:hover {
  background: rgba(30, 41, 59, 0.8);
}

.period-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.period-icon {
  font-size: 1.5rem;
}

.period-title h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--light-100);
  margin: 0;
}

.health-badge {
  padding: 0.375rem 0.875rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 1rem;
}

.health-badge.excellent {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.health-badge.good {
  background: rgba(59, 130, 246, 0.2);
  color: var(--primary-blue-light);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.health-badge.average {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.health-badge.poor {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.period-toggle {
  font-size: 1.25rem;
  color: var(--light-400);
  transition: transform var(--transition-base);
}

.period-content {
  padding: 0.75rem;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.period-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-blue);
}

.metric-label {
  font-size: 0.85rem;
  color: var(--light-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--light-100);
  font-family: var(--font-mono);
}

.period-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--light-100);
  margin: 0.75rem 0 0.5rem;
  padding-bottom: 0.375rem;
  border-bottom: 2px solid rgba(59, 130, 246, 0.2);
}

.section-icon {
  font-size: 1.25rem;
}

.ratios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ratio-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: rgba(59, 130, 246, 0.05);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.ratio-item:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: translateX(4px);
}

.ratio-label {
  font-size: 0.9rem;
  color: var(--light-300);
}

.ratio-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-blue-light);
  font-family: var(--font-mono);
}

.period-risk-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.period-risk-item {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.6;
  border-left: 4px solid;
  transition: all var(--transition-base);
}

.period-risk-item:hover {
  transform: translateX(4px);
}

.period-risk-item.healthy {
  background: rgba(6, 78, 59, 0.2);
  border-left-color: var(--success);
  color: #d1fae5;
}

.period-risk-item.low {
  background: rgba(6, 95, 70, 0.15);
  border-left-color: #34d399;
  color: #a7f3d0;
}

.period-risk-item.moderate {
  background: rgba(217, 119, 6, 0.2);
  border-left-color: var(--warning);
  color: #fed7aa;
}

.period-risk-item.warning {
  background: rgba(245, 158, 11, 0.2);
  border-left-color: var(--warning);
  color: #fde68a;
}

.period-risk-item.critical {
  background: rgba(127, 29, 29, 0.2);
  border-left-color: var(--danger);
  color: #fecaca;
}

/* ===== GAUGE CENTER TEXT ===== */
.gauge-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.gauge-score {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--light-100);
  line-height: 1;
  font-family: var(--font-mono);
}

.gauge-label {
  font-size: 0.85rem;
  color: var(--light-400);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  margin-top: 2rem;
  padding: 2rem 0 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand .logo-icon {
  font-size: 1.75rem;
  filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.4));
}

.footer-brand .logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  color: var(--light-400);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--light-100);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-column a {
  display: block;
  color: var(--light-400);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  transition: color var(--transition-base);
}

.footer-column a:hover {
  color: var(--primary-blue-light);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 0;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--light-500);
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  color: var(--light-400);
  text-decoration: none;
  font-size: 1.25rem;
  transition: all var(--transition-base);
}

.footer-social a:hover {
  color: var(--primary-blue-light);
  transform: translateY(-2px);
}

/* ===== SAMPLE REPORT TYPE TOGGLE ===== */
.sample-toggle-container {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.06) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.sample-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.sample-toggle-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  transition: color 0.3s ease, font-weight 0.3s ease;
  cursor: default;
}

.sample-toggle-label.active {
  color: #e2e8f0;
  font-weight: 600;
}

.sample-toggle-btn {
  position: relative;
  width: 56px;
  height: 28px;
  background: rgba(51, 65, 85, 0.8);
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  outline: none;
}

.sample-toggle-btn:hover {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

.sample-toggle-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.sample-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
}

.sample-toggle-btn[aria-checked="true"] .sample-toggle-thumb {
  transform: translateX(28px);
}

.sample-toggle-btn[aria-checked="true"] {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(139, 92, 246, 0.5);
}

.sample-toggle-subtitle {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #8892a0;
  font-style: italic;
}

/* ===== SAMPLE REPORT BANNER ===== */
.sample-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(124, 58, 237, 0.15) 100%);
  border: 2px dashed rgba(139, 92, 246, 0.5);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  animation: pulse-border 3s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 0 rgba(139, 92, 246, 0.3);
  }
  50% {
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
  }
}

.sample-icon {
  font-size: 1.5rem;
}

.sample-text {
  font-size: 1rem;
  font-weight: 700;
  color: #c4b5fd;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

/* ===== DOWNLOAD REPORT BUTTON ===== */
.download-report-container {
  max-width: 1400px;
  margin: 1.5rem auto 1rem;
  padding: 0 1.5rem;
  text-align: center;
}

.download-report-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: 2px solid rgba(59, 130, 246, 0.5);
  border-radius: var(--radius-lg);
  color: white;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.download-report-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.download-report-btn:hover::before {
  left: 100%;
}

.download-report-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(59, 130, 246, 0.4);
  border-color: rgba(59, 130, 246, 0.8);
}

.download-report-btn:active {
  transform: translateY(-2px);
}

.download-icon {
  font-size: 1.75rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.download-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.download-subtext {
  font-size: 0.875rem;
  font-weight: 400;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.95);
}

.download-progress-indicator {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.download-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(59, 130, 246, 0.3);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.download-status {
  font-size: 1rem;
  font-weight: 600;
  color: #3b82f6;
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .charts-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .container {
    padding: 0 1rem 3rem;
  }
  
  .hero-section {
    padding: 2rem 0 3rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .stat-divider {
    display: none;
  }
  
  .form-card {
    padding: 1.5rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .charts-section {
    grid-template-columns: 1fr;
  }
  
  .benchmark-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  /* Mobile responsive pricing */
  .dual-currency-display {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .currency-symbol {
    font-size: 1.5rem;
  }
  
  .amount-value {
    font-size: 2.5rem;
  }
  
  .pricing-amount-wrapper {
    padding: 1rem 0;
  }
  
  .pricing-card-new {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .form-card-header {
    flex-direction: column;
    text-align: center;
  }
  
  .upload-area {
    padding: 2rem 1rem;
  }
  
  .toggle-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .toggle-comparison {
    grid-template-columns: 1fr;
  }
  
  .comparison-divider {
    width: 100%;
    height: 1px;
  }
  
  /* Even smaller pricing for small phones */
  .currency-symbol {
    font-size: 1.25rem;
  }
  
  .amount-value {
    font-size: 2rem;
  }
  
  .pricing-period {
    font-size: 0.75rem;
  }
  
  .pricing-card-new h3 {
    font-size: 1.1rem;
  }
  
  .pricing-card-new p {
    font-size: 0.85rem;
  }
}
/* ===========================
   PAYMENT MODAL STYLES
   ADD TO END OF STYLES.CSS
   =========================== */

.payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.payment-modal.hidden {
  display: none;
}

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

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

.payment-modal-content {
  position: relative;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.payment-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  color: #f87171;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.payment-modal-close:hover {
  background: rgba(248, 113, 113, 0.2);
  transform: rotate(90deg);
}

/* Header */
.payment-header {
  text-align: center;
  margin-bottom: 28px;
}

.payment-icon {
  font-size: 52px;
  margin-bottom: 12px;
  animation: pulse 2s ease-in-out infinite;
}

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

.payment-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 6px 0;
  font-family: 'Sora', sans-serif;
}

.payment-header p {
  color: #94a3b8;
  font-size: 14px;
  margin: 0;
}

/* Features */
.payment-features {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 20px;
}

.payment-features h3 {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 14px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
  font-size: 14px;
}

.feature-item svg {
  flex-shrink: 0;
}

/* Pricing */
.payment-pricing {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 20px;
}

.pricing-header {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-amounts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

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

.currency-label {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.price-value {
  color: #10b981;
  font-size: 26px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
}

.price-divider {
  color: #64748b;
  font-size: 13px;
  margin: 0 4px;
  padding-top: 12px;
}

/* Payment Methods */
.payment-methods {
  margin-bottom: 20px;
}

.payment-methods h3 {
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 14px 0;
}

.payment-method-section {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  transition: all 0.3s ease;
}

.payment-method-section:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(30, 41, 59, 0.7);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.payment-method-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.method-logo-large {
  flex-shrink: 0;
}

.method-info {
  flex: 1;
}

.method-title {
  color: #f8fafc;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.method-subtitle {
  color: #94a3b8;
  font-size: 12px;
}

.method-price {
  flex-shrink: 0;
}

.method-amount {
  color: #10b981;
  font-size: 17px;
  font-weight: 700;
}

/* PayPal Button Container */
#paypal-button-container {
  min-height: 45px;
}

/* Razorpay Pay Button */
.razorpay-pay-button {
  width: 100%;
  background: linear-gradient(135deg, #3395FF, #0078FF);
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.razorpay-pay-button:hover {
  background: linear-gradient(135deg, #0078FF, #0056CC);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(51, 149, 255, 0.4);
}

.razorpay-pay-button .button-text {
  flex: 1;
  text-align: center;
}

/* OLD STYLES - Keep for compatibility */
.payment-method-btn {
  width: 100%;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.payment-method-btn:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(30, 41, 59, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.method-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.method-icon {
  flex-shrink: 0;
}

.method-details {
  text-align: left;
}

.method-name {
  color: #f8fafc;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.method-desc {
  color: #94a3b8;
  font-size: 12px;
}

.method-right {
  flex-shrink: 0;
}

/* Payment Processing */
.payment-processing {
  text-align: center;
  padding: 28px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 14px;
  margin: 16px 0;
}

.payment-processing.hidden {
  display: none;
}

.processing-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(59, 130, 246, 0.1);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 12px;
}

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

.payment-processing p {
  color: #94a3b8;
  font-size: 14px;
  margin: 0;
}

/* Security Badge */
.payment-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  color: #10b981;
  font-size: 12px;
  font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .payment-modal-content {
    padding: 28px 20px;
  }
  
  .payment-header h2 {
    font-size: 22px;
  }
  
  .payment-icon {
    font-size: 44px;
  }
  
  .price-value {
    font-size: 22px;
  }
  
  .pricing-amounts {
    flex-direction: column;
    gap: 8px;
  }
  
  .price-divider {
    display: none;
  }
}

/* Scrollbar */
.payment-modal-content::-webkit-scrollbar {
  width: 7px;
}

.payment-modal-content::-webkit-scrollbar-track {
  background: rgba(30, 41, 59, 0.5);
  border-radius: 4px;
}

.payment-modal-content::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.5);
  border-radius: 4px;
}

.payment-modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.7);
}

/* ===========================
   PRINT STYLES FOR PDF
   =========================== */

@media print {
  /* Hide UI elements */
  header,
  .upload-section,
  .download-report-container,
  footer,
  .payment-modal,
  .sample-banner {
    display: none !important;
  }
  
  /* Show analysis sections */
  #previewSection,
  #benchmarkingSection,
  #metricsSection,
  #aiAnalysisSection,
  #riskSection,
  #companyComparisonSection {
    display: block !important;
    page-break-inside: avoid;
  }
  
  /* Optimize for printing */
  body {
    background: white !important;
    color: black !important;
  }
  
  .section-header {
    background: #f0f0f0 !important;
    color: #1e40af !important;
    border: 1px solid #ddd !important;
    page-break-after: avoid;
  }
  
  table {
    border-collapse: collapse;
    border: 1px solid #ddd !important;
  }
  
  th, td {
    border: 1px solid #ddd !important;
    padding: 8px;
  }
  
  canvas {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
}

.dual-currency-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.currency-divider {
  color: var(--text-secondary);
  font-size: 1rem;
  opacity: 0.7;
}

/* ===============================================
   AI-POWERED CHARTS STYLES
   Add to your styles.css file
   =============================================== */

/* AI Chart Section Container */
.ai-chart-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Risk Heat Map Grid */
.risk-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0;
}

/* Risk Card */
.risk-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.risk-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Risk Colors */
.risk-low {
  border-color: #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.risk-moderate {
  border-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.risk-elevated {
  border-color: #f97316;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(249, 115, 22, 0.05) 100%);
}

.risk-high {
  border-color: #ef4444;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
}

/* Risk Card Elements */
.risk-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.risk-icon {
  font-size: 2rem;
}

.risk-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.risk-score {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0.5rem 0;
}

.risk-level {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.5rem 0;
  color: var(--text-primary);
}

.risk-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 0.75rem;
}

/* Risk Legend */
.risk-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid currentColor;
}

.legend-color.risk-low {
  background: #10b981;
  border-color: #10b981;
}

.legend-color.risk-moderate {
  background: #f59e0b;
  border-color: #f59e0b;
}

.legend-color.risk-elevated {
  background: #f97316;
  border-color: #f97316;
}

.legend-color.risk-high {
  background: #ef4444;
  border-color: #ef4444;
}

/* Radar Chart Container */
.radar-chart-container {
  max-width: 600px;
  margin: 0.75rem auto;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

/* Strategy Insights Grid */
.strategy-insights {
  margin-top: 0.75rem;
}

.strategy-insights h4 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  text-align: center;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

/* Insight Item */
.insight-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.75rem;
  border-left: 4px solid;
  transition: transform 0.2s ease;
}

.insight-item:hover {
  transform: translateX(5px);
}

.priority-high {
  border-left-color: #10b981;
}

.priority-medium {
  border-left-color: #f59e0b;
}

.priority-low {
  border-left-color: #64748b;
}

.insight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.insight-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.insight-priority {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.priority-high .insight-priority {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.priority-medium .insight-priority {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.priority-low .insight-priority {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
}

.insight-score {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3b82f6;
  margin: 0.5rem 0;
}

.insight-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .risk-heatmap-grid {
    grid-template-columns: 1fr;
  }
  
  .insight-grid {
    grid-template-columns: 1fr;
  }
  
  .radar-chart-container {
    padding: 1rem;
  }
  
  .ai-chart-section {
    padding: 1rem;
  }
}

/* Chart Badge Styling */
.chart-badge {
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Animation for Risk Cards */
@keyframes riskPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.risk-card.risk-high {
  animation: riskPulse 2s ease-in-out infinite;
}



/* =============================
   COMPANY SELECTION SYSTEM
   ============================= */

/* Section Header */
.selection-count {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  padding: 0.35rem 0.9rem;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: 0.75rem;
  transition: all 0.3s ease;
}

.selection-count.limit-reached {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  animation: pulse 2s infinite;
}

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

/* Industry Filter */
.industry-filter-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--light-300);
}

.industry-filter-select {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  color: var(--light-100);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.industry-filter-select:hover {
  border-color: rgba(59, 130, 246, 0.5);
}

.industry-filter-select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.company-count-badge {
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  color: var(--primary-blue);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Search Wrapper */
.company-search-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.company-search-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.6);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 10px;
  color: var(--light-100);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.company-search-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  background: rgba(15, 23, 42, 0.8);
}

.company-search-input::placeholder {
  color: var(--light-600);
}

.search-loading {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-blue);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Search Results Dropdown */
.company-search-results {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  right: 0;
  max-height: 400px;
  overflow-y: auto;
  background: var(--dark-700);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: none;
}

.company-search-results::-webkit-scrollbar {
  width: 8px;
}

.company-search-results::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 4px;
}

.company-search-results::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.5);
  border-radius: 4px;
}

.company-search-results::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.7);
}

.search-result-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-result-item:hover {
  background: rgba(59, 130, 246, 0.1);
}

.search-result-item.selected {
  background: rgba(59, 130, 246, 0.15);
  border-left: 3px solid var(--primary-blue);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.result-ticker {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-blue);
}

.selected-badge {
  padding: 0.25rem 0.6rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

.result-name {
  color: var(--light-200);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--light-500);
  font-size: 0.8rem;
}

.meta-separator {
  color: var(--light-700);
}

.search-empty {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--light-500);
}

.search-empty .empty-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

.search-empty .empty-hint {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  color: var(--light-600);
}

.search-error {
  padding: 2rem;
  text-align: center;
  color: #ef4444;
  font-weight: 600;
}

/* Selected Companies Container */
.selected-companies-container {
  background: rgba(15, 23, 42, 0.4);
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  min-height: 200px;
}

.selected-companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.empty-selection-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
}

.empty-selection-state .empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.empty-selection-state .empty-text {
  font-size: 1.05rem;
  color: var(--light-400);
  margin-bottom: 0.75rem;
}

.empty-selection-state .empty-hint {
  font-size: 0.9rem;
  color: var(--light-600);
  font-style: italic;
}

/* Company Cards */
.company-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
  border: 2px solid rgba(59, 130, 246, 0.4);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.company-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.company-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.company-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.card-ticker-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-ticker {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-blue);
  letter-spacing: 0.5px;
}

.card-exchange {
  padding: 0.2rem 0.5rem;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-transform: uppercase;
}

.card-remove-btn {
  width: 32px;
  height: 32px;
  background: rgba(239, 68, 68, 0.2);
  border: 2px solid rgba(239, 68, 68, 0.4);
  border-radius: 50%;
  color: #ef4444;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-remove-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.6);
  transform: scale(1.1) rotate(90deg);
}

.card-company-name {
  color: var(--light-200);
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.card-industry {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 6px;
  color: var(--light-400);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

/* Limit Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
}

.limit-modal {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 3px solid #ef4444;
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 450px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.show .limit-modal {
  transform: scale(1);
}

.modal-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.limit-modal h3 {
  color: #ef4444;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.limit-modal p {
  color: var(--light-300);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.limit-modal .modal-hint {
  color: var(--light-500);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.modal-close-btn {
  padding: 0.875rem 2.5rem;
  background: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close-btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Notifications */
.notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.75rem;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 10001;
  opacity: 0;
  transform: translateY(20px) translateX(100px);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification.show {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

.notification-success {
  background: linear-gradient(135deg, #10b981, #059669);
}

.notification-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.notification-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notification-info {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Responsive Design */
@media (max-width: 768px) {
  .industry-filter-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  
  .industry-filter-select {
    width: 100%;
  }
  
  .company-count-badge {
    text-align: center;
  }
  
  .selected-companies-grid {
    grid-template-columns: 1fr;
  }
  
  .company-search-results {
    max-height: 300px;
  }
  
  .notification {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}

/* Loading States */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}


.performance-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.performance-badge.excellent {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.performance-badge.above-average {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.performance-badge.average {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.performance-badge.below-average {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* 
User Dashboard Styles
Dark cyberpunk theme matching NForge AI design
*/

/* =============================
   Dashboard Section
   ============================= */

.dashboard-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0a0a0f 0%, #12121a 50%, #0d0d12 100%);
    z-index: 1000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

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

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 30px 40px;
}

/* =============================
   Dashboard Header
   ============================= */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 30px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 25px;
}

.dashboard-title-area {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dashboard-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.dashboard-icon {
    font-size: 32px;
}

.dashboard-subtitle {
    color: #8892a0;
    font-size: 14px;
    margin: 0;
    padding-left: 44px;
}

#dashboardUsername {
    color: #00d4ff;
    font-weight: 600;
}

.btn-close-dashboard {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #8892a0;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-dashboard:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

/* =============================
   Dashboard Tabs
   ============================= */

.dashboard-tabs {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: rgba(26, 26, 31, 0.8);
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: #8892a0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #ffffff;
}

.tab-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.tab-icon {
    font-size: 16px;
}

/* =============================
   Tab Content
   ============================= */

.dashboard-content {
    min-height: 500px;
}

.tab-content {
    display: none;
    animation: slideIn 0.3s ease;
}

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

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

/* =============================
   Stats Grid
   ============================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(26, 26, 31, 0.9);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.stat-card.stat-primary {
    border-left: 4px solid #6366f1;
}

.stat-card.stat-success {
    border-left: 4px solid #10b981;
}

.stat-card.stat-warning {
    border-left: 4px solid #f59e0b;
}

.stat-card.stat-info {
    border-left: 4px solid #00d4ff;
}

.stat-icon {
    font-size: 36px;
    opacity: 0.9;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: #8892a0;
    margin-top: 4px;
}

/* =============================
   Charts
   ============================= */

.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: rgba(26, 26, 31, 0.9);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* =============================
   Recent Activity
   ============================= */

.recent-activity-card {
    background: rgba(26, 26, 31, 0.9);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.recent-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.recent-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 14px;
}

.recent-item-icon.income {
    background: rgba(16, 185, 129, 0.2);
}

.recent-item-icon.balance {
    background: rgba(99, 102, 241, 0.2);
}

.recent-item-icon.cashflow {
    background: rgba(0, 212, 255, 0.2);
}

.recent-item-icon.mixed {
    background: rgba(139, 92, 246, 0.2);
}

.recent-item-content {
    flex: 1;
}

.recent-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.recent-item-subtitle {
    font-size: 12px;
    color: #8892a0;
    margin-top: 2px;
}

.recent-item-meta {
    text-align: right;
}

.recent-item-score {
    font-size: 18px;
    font-weight: 700;
}

.recent-item-score.excellent { color: #10b981; }
.recent-item-score.good { color: #00d4ff; }
.recent-item-score.fair { color: #f59e0b; }
.recent-item-score.poor { color: #ef4444; }

.recent-item-date {
    font-size: 11px;
    color: #5a6270;
    margin-top: 2px;
}

.empty-state {
    text-align: center;
    color: #5a6270;
    padding: 40px;
    font-size: 14px;
}

/* =============================
   Profile Tab
   ============================= */

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.profile-card {
    background: rgba(26, 26, 31, 0.9);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #8892a0;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-hint {
    font-size: 11px;
    color: #5a6270;
    margin-top: 4px;
    display: block;
}

.btn-primary, .btn-secondary {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon {
    font-size: 14px;
}

/* Account Stats */
.account-stats {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.account-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.account-stat-row:last-child {
    border-bottom: none;
}

.stat-name {
    color: #8892a0;
    font-size: 13px;
}

.account-stat-row .stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.status-active {
    color: #10b981 !important;
}

.status-inactive {
    color: #ef4444 !important;
}

/* =============================
   Tables
   ============================= */

.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.table-filters {
    display: flex;
    gap: 12px;
}

.filter-select {
    padding: 10px 16px;
    background: rgba(26, 26, 31, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
    min-width: 160px;
}

.filter-select:focus {
    outline: none;
    border-color: #6366f1;
}

.search-input {
    padding: 10px 16px;
    background: rgba(26, 26, 31, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    width: 280px;
}

.search-input:focus {
    outline: none;
    border-color: #6366f1;
}

.search-input::placeholder {
    color: #5a6270;
}

.table-container {
    background: rgba(26, 26, 31, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: rgba(99, 102, 241, 0.1);
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table td {
    padding: 14px 16px;
    font-size: 13px;
    color: #e8e8e8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table tbody tr {
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status-badge.failed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Score Badges */
.score-badge {
    font-weight: 700;
    font-size: 14px;
}

.score-badge.excellent { color: #10b981; }
.score-badge.good { color: #00d4ff; }
.score-badge.fair { color: #f59e0b; }
.score-badge.poor { color: #ef4444; }

/* Risk Badges */
.risk-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.risk-badge.low {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.risk-badge.moderate {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.risk-badge.high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Action Buttons */
.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
}

.action-btn:hover {
    background: rgba(99, 102, 241, 0.4);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.page-btn {
    padding: 8px 14px;
    background: rgba(26, 26, 31, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #8892a0;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    color: #ffffff;
}

.page-btn.active {
    background: #6366f1;
    border-color: #6366f1;
    color: #ffffff;
}

/* =============================
   Payment Summary
   ============================= */

.payment-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 25px;
}

.payment-summary-card {
    background: rgba(26, 26, 31, 0.9);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.summary-label {
    font-size: 12px;
    color: #8892a0;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

/* =============================
   Modal
   ============================= */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(135deg, #12121a 0%, #1a1a2e 100%);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-content.modal-lg {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #8892a0;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

/* =============================
   Responsive
   ============================= */

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-row {
        grid-template-columns: 1fr;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 15px;
    }
    
    .dashboard-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 1 45%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .table-filters {
        flex-direction: column;
    }
    
    .filter-select,
    .search-input {
        width: 100%;
    }
    
    .payment-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }
}

/* =============================
   Utility Classes
   ============================= */

.hidden,
.dashboard-hidden,
#userDashboardSection.hidden,
#userDashboardSection.dashboard-hidden {
    display: none !important;
}

#userDashboardSection {
    display: none;
}

#userDashboardSection:not(.hidden):not(.dashboard-hidden) {
    display: block;
}

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

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

.text-muted {
    color: #8892a0;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}


/*
 * Analysis Report Viewer - Styles
 * ================================
 * Add this to your styles.css or include separately
 */

/* Report Viewer Modal */
.nf-report-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 100002;
    padding: 20px;
    overflow-y: auto;
}

.nf-report-viewer-content {
    background: linear-gradient(135deg, #0a0a0f 0%, #12121a 100%);
    border-radius: 20px;
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.nf-report-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px 20px 0 0;
}

.nf-report-viewer-header h2 {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

.nf-report-viewer-body {
    padding: 24px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

/* Loading & Error States */
.nf-report-loading,
.nf-report-empty,
.nf-report-error {
    text-align: center;
    padding: 60px 20px;
    color: #8892a0;
}

.nf-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.nf-empty-icon,
.nf-error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.nf-report-empty h3,
.nf-report-error h3 {
    color: #fff;
    margin: 0 0 12px;
}

/* Stored Report Styles */
.nf-stored-report {
    color: #e8e8e8;
}

.nf-report-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nf-report-title-section {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.nf-report-title-section h2 {
    font-size: 22px;
    color: #fff;
    margin: 0;
}

.nf-report-badge {
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    font-size: 12px;
    color: #6366f1;
}

.nf-report-meta {
    display: flex;
    gap: 20px;
    color: #8892a0;
    font-size: 13px;
}

/* Health Score Card */
.nf-health-card {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 24px;
    background: rgba(26, 26, 31, 0.9);
    border-radius: 16px;
    margin-bottom: 20px;
    border-left: 5px solid #6366f1;
}

.nf-health-card.excellent { border-left-color: #10b981; }
.nf-health-card.good { border-left-color: #00d4ff; }
.nf-health-card.fair { border-left-color: #f59e0b; }
.nf-health-card.poor { border-left-color: #ef4444; }

.nf-score-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid currentColor;
}

.nf-health-card.excellent .nf-score-circle { color: #10b981; }
.nf-health-card.good .nf-score-circle { color: #00d4ff; }
.nf-health-card.fair .nf-score-circle { color: #f59e0b; }
.nf-health-card.poor .nf-score-circle { color: #ef4444; }

.nf-score-number {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.nf-score-label {
    font-size: 10px;
    color: #8892a0;
    margin-top: 4px;
}

.nf-health-info {
    flex: 1;
}

.nf-health-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 14px;
}

.nf-health-row span:first-child {
    color: #8892a0;
}

.nf-risk-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.nf-risk-badge.low { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.nf-risk-badge.moderate,
.nf-risk-badge.medium { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.nf-risk-badge.high,
.nf-risk-badge.critical { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

.nf-grade {
    font-size: 18px;
    font-weight: 700;
    color: #6366f1;
}

.nf-interpretation {
    color: #8892a0;
    font-size: 13px;
    margin: 10px 0 0;
    line-height: 1.5;
}

/* Report Sections */
.nf-report-section {
    background: rgba(26, 26, 31, 0.8);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nf-report-section h3 {
    font-size: 15px;
    color: #fff;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nf-section-note {
    color: #8892a0;
    font-size: 12px;
    margin: -8px 0 14px;
}

/* Metrics Grid */
.nf-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.nf-metric-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px;
}

.nf-metric-name {
    font-size: 11px;
    color: #8892a0;
    margin-bottom: 4px;
}

.nf-metric-value {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

/* Periods Grid */
.nf-periods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.nf-period-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 14px;
}

.nf-period-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nf-period-name {
    font-weight: 600;
    color: #fff;
}

.nf-period-score {
    font-size: 16px;
    font-weight: 700;
}

.nf-period-score.excellent { color: #10b981; }
.nf-period-score.good { color: #00d4ff; }
.nf-period-score.fair { color: #f59e0b; }
.nf-period-score.poor { color: #ef4444; }

.nf-ratio-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 4px 0;
}

.nf-ratio-row span:first-child { color: #8892a0; }
.nf-ratio-row span:last-child { color: #e8e8e8; }

/* Benchmark Table */
.nf-benchmark-table {
    width: 100%;
    border-collapse: collapse;
}

.nf-benchmark-table th {
    text-align: left;
    padding: 10px;
    font-size: 11px;
    color: #00d4ff;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nf-benchmark-table td {
    padding: 10px;
    font-size: 12px;
    color: #e8e8e8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nf-status-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.nf-status-badge.above { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.nf-status-badge.below { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.nf-status-badge.equal { background: rgba(99, 102, 241, 0.2); color: #6366f1; }

/* Comparison Cards */
.nf-comparison-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.nf-comp-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px;
}

.nf-comp-name {
    font-size: 11px;
    color: #8892a0;
    margin-bottom: 6px;
}

.nf-comp-values {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.nf-comp-yours { color: #6366f1; font-weight: 600; }
.nf-comp-avg { color: #8892a0; }

/* Risk Items */
.nf-risks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nf-risk-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 14px;
    border-left: 4px solid #f59e0b;
}

.nf-risk-item.critical { border-left-color: #ef4444; }
.nf-risk-item.high { border-left-color: #f97316; }
.nf-risk-item.medium,
.nf-risk-item.moderate { border-left-color: #f59e0b; }
.nf-risk-item.low { border-left-color: #10b981; }

.nf-risk-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.nf-risk-icon { font-size: 14px; }
.nf-risk-title { font-weight: 600; color: #fff; flex: 1; font-size: 13px; }
.nf-risk-level {
    font-size: 10px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #8892a0;
}

.nf-risk-desc {
    font-size: 12px;
    color: #8892a0;
    margin: 0;
    line-height: 1.4;
}

/* AI Section */
.nf-ai-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.nf-ai-content {
    font-size: 13px;
    line-height: 1.7;
    color: #e8e8e8;
}

.nf-ai-content p {
    margin: 0 0 14px;
}

.nf-ai-content p:last-child {
    margin-bottom: 0;
}

.nf-ai-content strong {
    color: #fff;
}

/* Scoring Grid */
.nf-scoring-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nf-scoring-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px 14px;
}

.nf-scoring-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.nf-scoring-name {
    font-size: 13px;
    color: #e8e8e8;
}

.nf-scoring-value {
    font-size: 14px;
    font-weight: 600;
}

.nf-scoring-value.excellent { color: #10b981; }
.nf-scoring-value.good { color: #00d4ff; }
.nf-scoring-value.fair { color: #f59e0b; }
.nf-scoring-value.poor { color: #ef4444; }

.nf-scoring-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.nf-scoring-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.nf-scoring-fill.excellent { background: #10b981; }
.nf-scoring-fill.good { background: #00d4ff; }
.nf-scoring-fill.fair { background: #f59e0b; }
.nf-scoring-fill.poor { background: #ef4444; }

/* Trends Grid */
.nf-trends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.nf-trend-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.nf-trend-name {
    font-size: 11px;
    color: #8892a0;
    margin-bottom: 6px;
}

.nf-trend-value {
    font-size: 16px;
    font-weight: 600;
}

.nf-trend-value.positive { color: #10b981; }
.nf-trend-value.negative { color: #ef4444; }

/* AI Charts Info */
.nf-ai-charts-info {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.nf-chart-badge {
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    font-size: 12px;
    color: #6366f1;
}

/* Charts Container */
.nf-charts-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.nf-chart-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nf-chart-wrapper.nf-chart-wide {
    grid-column: 1 / -1;
}

.nf-chart-wrapper h4 {
    font-size: 13px;
    color: #8892a0;
    margin: 0 0 12px;
    font-weight: 500;
}

.nf-chart-wrapper canvas {
    max-height: 250px;
}

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

/* Report Footer */
.nf-report-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nf-features-used {
    display: flex;
    gap: 14px;
}

.nf-features-used span {
    font-size: 11px;
    color: #5a6270;
}

.nf-features-used span.active {
    color: #10b981;
}

.nf-report-cost {
    font-size: 13px;
    color: #8892a0;
}

/* Responsive */
@media (max-width: 768px) {
    .nf-report-viewer-content {
        margin: 10px;
        border-radius: 14px;
    }
    
    .nf-report-viewer-body {
        padding: 16px;
    }
    
    .nf-health-card {
        flex-direction: column;
        text-align: center;
    }
    
    .nf-metrics-grid,
    .nf-periods-grid,
    .nf-comparison-cards {
        grid-template-columns: 1fr;
    }
    
    .nf-report-footer {
        flex-direction: column;
        gap: 10px;
    }
}

/* =====================================================
   BENCHMARK CHARTS - Compact Size (add to styles.css)
   =====================================================
   Add this CSS to your styles.css file to make the 
   benchmark charts smaller and match the other charts.
   ===================================================== */

/* Charts Grid - for both benchmark and regular charts */
.charts-grid,
.benchmark-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

/* Chart Wrapper - compact card style */
.chart-wrapper {
  background: linear-gradient(135deg, rgba(26, 26, 35, 0.9) 0%, rgba(18, 18, 26, 0.9) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.chart-wrapper:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.chart-wrapper h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #94a3b8;
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Canvas sizing - Match cash flow chart size */
.chart-wrapper canvas {
  max-height: 250px !important;
  width: 100% !important;
}

/* Performance Gauge Container - ensures proper centering */
.chart-wrapper > div[style*="position: relative"] {
  position: relative !important;
  max-width: 220px !important;
  margin: 0 auto !important;
  aspect-ratio: 1 / 1;
}

/* Performance Gauge specific */
.chart-wrapper #performanceGauge,
.chart-wrapper #samplePerformanceGauge {
  max-height: 220px !important;
  max-width: 220px !important;
  margin: 0 auto;
  display: block;
}

/* Gauge center text - fix positioning for smaller gauge */
.chart-wrapper .gauge-center-text {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  text-align: center;
  pointer-events: none;
  z-index: 10;
}

.chart-wrapper .gauge-score {
  font-size: 2rem !important;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.chart-wrapper .gauge-label {
  font-size: 0.7rem !important;
  color: #94a3b8;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Radar chart specific */
.chart-wrapper #radarChart,
.chart-wrapper #sampleRadarChart {
  max-height: 250px !important;
}

/* Bar chart specific */
.chart-wrapper #barChart,
.chart-wrapper #sampleBarChart {
  max-height: 250px !important;
}

/* Peer chart */
.chart-wrapper #peerChart {
  max-height: 250px !important;
}

/* Benchmark Charts Section */
.benchmark-charts-section {
  margin: 1.5rem 0;
}

.benchmark-charts-section .subsection-title {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

/* Sample charts should match */
#sampleRevenueChart,
#sampleScoreChart,
#sampleCashflowChart,
#sampleRatiosChart {
  max-height: 250px !important;
}

/* Remove the full-width override for sample bar chart */
.benchmark-charts-grid .chart-wrapper[style*="grid-column"] {
  grid-column: auto !important;
}

/* Responsive - stack on mobile */
@media (max-width: 768px) {
  .charts-grid,
  .benchmark-charts-grid {
    grid-template-columns: 1fr;
  }
  
  .chart-wrapper canvas {
    max-height: 220px !important;
  }
  
  .chart-wrapper .gauge-score {
    font-size: 1.75rem !important;
  }
}

/* Keep 2 per row even on large screens */
@media (min-width: 1200px) {
  .benchmark-charts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================================================
   ADVANCED SCORING SECTION - Additional CSS
   Add this to the end of your styles.css file
   ================================================ */

/* ===== ADVANCED SCORING SECTION ===== */
#advancedScoringSection {
  margin-top: var(--space-lg);
}

#advancedScoringSection .section-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

#advancedScoringSection .section-header-icon {
  font-size: 1.75rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
}

#advancedScoringSection h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light-100);
}

/* Advanced Scores Grid */
.advanced-scores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 0.75rem;
  margin-bottom: var(--space-lg);
}

/* Score Card Base */
.score-card {
  background: linear-gradient(135deg, var(--dark-800) 0%, var(--dark-900) 100%);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.score-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.score-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

/* Score Card Header */
.score-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.score-card-title {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.score-card-title h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--light-100);
  margin: 0;
}

.score-card-title .card-icon {
  font-size: 1.25rem;
}

.score-card-badge {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Score Value Display */
.score-value-container {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.score-value-large {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1;
  font-family: var(--font-mono);
}

.score-value-max {
  font-size: 1.25rem;
  color: var(--light-400);
  font-weight: 500;
}

/* Score Signal Badges */
.score-signal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.score-signal.strong-buy {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.score-signal.buy {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.score-signal.hold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #1f2937;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.score-signal.sell {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.score-signal.strong-sell {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.score-signal.safe {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.score-signal.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #1f2937;
}

.score-signal.danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

/* Score Interpretation */
.score-interpretation {
  font-size: 0.9rem;
  color: var(--light-300);
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

/* Score Breakdown */
.score-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.score-breakdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.score-breakdown-item .breakdown-label {
  color: var(--light-400);
}

.score-breakdown-item .breakdown-value {
  color: var(--light-100);
  font-weight: 600;
  font-family: var(--font-mono);
}

/* ===== DUPONT ANALYSIS ===== */
.dupont-factors {
  margin: var(--space-md) 0;
}

.dupont-factor {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.dupont-factor:last-child {
  border-bottom: none;
}

.dupont-factor-name {
  color: var(--light-400);
  font-size: 0.9rem;
  text-transform: capitalize;
}

.dupont-factor-value {
  color: var(--light-100);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 1rem;
}

.dupont-primary-driver {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm);
  background: rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-sm);
  margin-top: var(--space-sm);
}

.dupont-primary-driver .driver-icon {
  font-size: 1.25rem;
}

.dupont-primary-driver .driver-label {
  color: var(--light-400);
  font-size: 0.85rem;
}

.dupont-primary-driver .driver-value {
  color: var(--primary-blue-light);
  font-weight: 600;
  margin-left: auto;
}

/* ===== BENEISH M-SCORE ===== */
.beneish-threshold {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.85rem;
  color: var(--light-400);
  margin-bottom: var(--space-xs);
}

.beneish-probability {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.beneish-probability.low {
  color: var(--success);
}

.beneish-probability.moderate {
  color: var(--warning);
}

.beneish-probability.elevated,
.beneish-probability.high {
  color: var(--danger);
}

/* Red Flags Section */
.red-flags-section {
  margin-top: var(--space-md);
  padding: var(--space-sm);
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--danger);
}

.red-flags-header {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 600;
  color: #fca5a5;
  margin-bottom: var(--space-xs);
}

.red-flags-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.red-flags-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: 0.85rem;
  color: #fecaca;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.red-flags-list li:last-child {
  border-bottom: none;
}

.red-flags-list li::before {
  content: '⚠️';
  font-size: 0.75rem;
}

.no-red-flags {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--success);
  font-weight: 500;
  margin-top: var(--space-sm);
}

/* ===== PIOTROSKI SPECIFIC ===== */
.piotroski-gauge {
  width: 100%;
  height: 24px;
  background: linear-gradient(90deg, 
    #dc2626 0%, 
    #ef4444 22%, 
    #f59e0b 44%, 
    #10b981 66%, 
    #059669 100%
  );
  border-radius: var(--radius-sm);
  position: relative;
  margin: var(--space-sm) 0;
  overflow: hidden;
}

.piotroski-gauge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255,255,255,0.1) 50%,
    transparent 100%
  );
}

.piotroski-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 32px;
  background: white;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.piotroski-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--light-400);
  margin-top: 0.25rem;
}

/* ===== ADVANCED SCORING SUMMARY ===== */
.advanced-scoring-summary {
  background: linear-gradient(135deg, var(--dark-700) 0%, var(--dark-800) 100%);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

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

.summary-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--light-100);
  margin: 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.summary-column h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--light-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xs);
}

.summary-signals,
.summary-strengths,
.summary-concerns {
  list-style: none;
  padding: 0;
  margin: 0;
}

.summary-signals li,
.summary-strengths li,
.summary-concerns li {
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--light-300);
}

.summary-signals li:last-child,
.summary-strengths li:last-child,
.summary-concerns li:last-child {
  border-bottom: none;
}

.summary-strengths li {
  color: #86efac;
}

.summary-concerns li {
  color: #fca5a5;
}

/* ===== IMPROVEMENT AREAS ===== */
.improvement-areas {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.improvement-areas-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--light-400);
  margin-bottom: var(--space-xs);
}

.improvement-areas-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.improvement-areas-list li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.85rem;
  color: var(--warning);
  padding: 0.25rem 0;
}

.improvement-areas-list li::before {
  content: '→';
  color: var(--light-500);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .advanced-scores-grid {
    grid-template-columns: 1fr;
  }
  
  .score-value-large {
    font-size: 2.5rem;
  }
  
  .score-breakdown {
    flex-direction: column;
  }
  
  .score-breakdown-item {
    width: 100%;
    justify-content: space-between;
  }
  
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ANIMATION FOR SCORE CARDS ===== */
@keyframes scoreCardEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.score-card {
  animation: scoreCardEnter 0.5s ease-out forwards;
}

.score-card:nth-child(1) { animation-delay: 0.1s; }
.score-card:nth-child(2) { animation-delay: 0.2s; }
.score-card:nth-child(3) { animation-delay: 0.3s; }

/* ===== XLSX FILE SUPPORT INDICATOR ===== */
.file-type-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--primary-blue-light);
  margin-left: var(--space-sm);
}

.file-type-indicator.csv { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.file-type-indicator.xlsx { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.file-type-indicator.xls { background: rgba(245, 158, 11, 0.15); color: var(--warning); }

/* Update upload area to show supported formats */
.upload-formats {
  font-size: 0.8rem;
  color: var(--light-500);
  margin-top: var(--space-xs);
}

.upload-formats-list {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.25rem;
}

.format-badge {
  padding: 0.125rem 0.5rem;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--light-400);
}


/* ================================================
   EXCEL PREVIEW STYLES
   Add this to the end of your styles.css file
   ================================================ */

/* Excel loading spinner */
.excel-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: excel-spin 0.8s linear infinite;
}

@keyframes excel-spin {
  to { transform: rotate(360deg); }
}

/* Sheet info banner */
.sheet-info-row td {
  background: rgba(59, 130, 246, 0.1) !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.85rem;
  color: var(--primary-blue-light);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.sheet-info-row .sheet-icon {
  margin-right: 0.5rem;
}

.sheet-info-row .sheet-count {
  margin-left: 0.5rem;
  color: var(--light-400);
  font-size: 0.8rem;
}

/* Number cells - right aligned */
.data-table .cell-number {
  text-align: right;
  font-family: var(--font-mono);
  color: var(--light-100);
}

/* Section header cells */
.data-table .cell-section {
  color: var(--primary-blue-light);
  font-weight: 600;
  background: rgba(59, 130, 246, 0.05);
}

/* More rows indicator */
.more-rows-row td {
  text-align: center !important;
  padding: 0.75rem !important;
  color: var(--light-400);
  font-size: 0.85rem;
  font-style: italic;
  background: rgba(148, 163, 184, 0.05);
  border-top: 1px dashed rgba(148, 163, 184, 0.2);
}

/* Excel placeholder (fallback) */
.excel-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
}

.excel-placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.8;
}

.excel-placeholder-name {
  font-weight: 600;
  color: var(--light-100);
  font-size: 1rem;
}

.excel-placeholder-meta {
  font-size: 0.8rem;
  color: var(--light-400);
}

.excel-placeholder-msg {
  font-size: 0.85rem;
  color: var(--primary-blue-light);
  background: rgba(59, 130, 246, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  margin-top: 0.5rem;
}

/* Ensure preview table handles Excel data well */
#previewTable th,
#previewTable td {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#previewTable th:first-child,
#previewTable td:first-child {
  max-width: 250px;
}


/* ================================================
   EXCEL PREVIEW - CENTER ALIGNED
   Add this to your styles.css file
   (This replaces/overrides the previous Excel preview CSS)
   ================================================ */

/* Preview table - center align all content */
#previewTable th,
#previewTable td {
  text-align: center !important;
  vertical-align: middle;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.75rem 1rem;
}

/* First column (metric names) - can be left aligned if preferred */
/* Uncomment below if you want first column left-aligned instead:
#previewTable th:first-child,
#previewTable td:first-child {
  text-align: left !important;
  max-width: 220px;
}
*/

/* Excel loading spinner */
.excel-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: excel-spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes excel-spin {
  to { transform: rotate(360deg); }
}

/* Sheet info banner */
.sheet-info-row td {
  background: rgba(59, 130, 246, 0.1) !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.85rem;
  color: var(--primary-blue-light);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  text-align: center !important;
}

.sheet-info-row .sheet-icon {
  margin-right: 0.5rem;
}

.sheet-info-row .sheet-count {
  margin-left: 0.5rem;
  color: var(--light-400);
  font-size: 0.8rem;
}

/* Number cells */
.cell-number {
  font-family: var(--font-mono);
  color: var(--light-100);
}

/* Section header cells */
.cell-section {
  color: var(--primary-blue-light) !important;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.05);
}

/* More rows indicator */
.more-rows-row td {
  text-align: center !important;
  padding: 0.75rem !important;
  color: var(--light-400);
  font-size: 0.85rem;
  font-style: italic;
  background: rgba(148, 163, 184, 0.05);
  border-top: 1px dashed rgba(148, 163, 184, 0.2);
}

/* Excel placeholder (fallback) */
.excel-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  text-align: center;
}

.excel-placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.8;
}

.excel-placeholder-name {
  font-weight: 600;
  color: var(--light-100);
  font-size: 1rem;
}

.excel-placeholder-meta {
  font-size: 0.8rem;
  color: var(--light-400);
}

.excel-placeholder-msg {
  font-size: 0.85rem;
  color: var(--primary-blue-light);
  background: rgba(59, 130, 246, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  margin-top: 0.5rem;
}

/* Header row styling */
#previewTable thead th {
  background: var(--dark-700);
  color: var(--light-100);
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  border-bottom: 2px solid var(--primary-blue);
}

/* Alternating row colors for better readability */
#previewTable tbody tr:nth-child(even) {
  background: rgba(148, 163, 184, 0.03);
}

#previewTable tbody tr:hover {
  background: rgba(59, 130, 246, 0.08);
}

/* ===========================
   HR KPI CATEGORY SECTIONS
   =========================== */

.hr-kpi-category {
  margin-bottom: 1.25rem;
}

.hr-kpi-category-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.hr-kpi-category-header .category-icon,
.hr-kpi-category-header .hr-kpi-category-icon {
  font-size: 1.25rem;
}

.hr-kpi-category-header .category-label,
.hr-kpi-category-header .hr-kpi-category-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--light-200);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.hr-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.625rem;
}

/* HR KPI Badge Styling */
.hr-kpi-badge {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.5) 0%, rgba(30, 41, 59, 0.5) 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.hr-kpi-badge:hover {
  border-color: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.hr-kpi-badge .badge-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--light-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.375rem;
  line-height: 1.3;
}

.hr-kpi-badge .badge-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--light-100);
  font-family: var(--font-mono);
  line-height: 1.2;
}

.hr-kpi-badge .badge-sub {
  font-size: 0.7rem;
  color: var(--light-500);
  margin-top: 0.25rem;
}

/* Badge color variants */
.hr-kpi-badge.excellent .badge-value {
  color: var(--success);
}

.hr-kpi-badge.excellent {
  border-color: rgba(16, 185, 129, 0.25);
}

.hr-kpi-badge.good .badge-value {
  color: var(--primary-blue-light);
}

.hr-kpi-badge.good {
  border-color: rgba(59, 130, 246, 0.25);
}

.hr-kpi-badge.warning .badge-value {
  color: var(--warning);
}

.hr-kpi-badge.warning {
  border-color: rgba(245, 158, 11, 0.25);
}

.hr-kpi-badge.danger .badge-value {
  color: var(--danger);
}

.hr-kpi-badge.danger {
  border-color: rgba(239, 68, 68, 0.25);
}

/* Health score letter grade badge */
.hr-kpi-badge.grade-a .badge-value {
  color: var(--success);
  font-size: 1.5rem;
}

.hr-kpi-badge.grade-b .badge-value {
  color: var(--primary-blue-light);
  font-size: 1.5rem;
}

.hr-kpi-badge.grade-c .badge-value {
  color: var(--warning);
  font-size: 1.5rem;
}

.hr-kpi-badge.grade-d .badge-value {
  color: var(--danger);
  font-size: 1.5rem;
}

/* ===========================
   HR CHARTS GRID (8 charts)
   =========================== */

.hr-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hr-chart-card {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.4) 0%, rgba(30, 41, 59, 0.4) 100%);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-md);
  padding: 1rem;
  position: relative;
}

.hr-chart-card .chart-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--light-300);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hr-chart-card canvas {
  width: 100% !important;
  max-height: 220px;
}

/* ===========================
   AI INSIGHT CARDS
   =========================== */

.ai-insights-section {
  margin-top: 1.25rem;
}

.ai-insights-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.ai-insights-header .header-icon {
  font-size: 1.25rem;
}

.ai-insights-header .header-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--light-200);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.ai-insight-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 0.75rem;
}

.ai-insight-card {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.35) 0%, rgba(30, 41, 59, 0.35) 100%);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-left: 3px solid var(--primary-blue);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  transition: all var(--transition-base);
}

.ai-insight-card:hover {
  border-left-color: var(--primary-blue-light);
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.45) 0%, rgba(30, 41, 59, 0.45) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.1);
}

.ai-insight-card.risk {
  border-left-color: var(--danger);
}

.ai-insight-card.warning {
  border-left-color: var(--warning);
}

.ai-insight-card.success {
  border-left-color: var(--success);
}

.ai-insight-card .card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}

.ai-insight-card .card-icon {
  font-size: 1.1rem;
}

.ai-insight-card .card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--light-200);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.ai-insight-card .card-body {
  font-size: 0.85rem;
  color: var(--light-400);
  line-height: 1.6;
}

.ai-insight-card .card-body ul {
  padding-left: 1.25rem;
  margin: 0.375rem 0 0;
}

.ai-insight-card .card-body li {
  margin-bottom: 0.25rem;
}

.ai-insight-card .card-body strong {
  color: var(--light-200);
}

/* ===========================
   MOBILE RESPONSIVE - HR
   =========================== */

@media (max-width: 1024px) {
  .hr-charts-grid {
    grid-template-columns: 1fr;
  }

  .hr-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .ai-insight-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hr-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hr-kpi-badge .badge-value {
    font-size: 1.1rem;
  }

  .hr-chart-card canvas {
    max-height: 180px;
  }
}


/* ===== BREADCRUMB NAVIGATION ===== */
.breadcrumb-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem 0;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--light-400);
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-list li:not(:last-child)::after {
  content: "/";
  color: var(--dark-500);
  margin-left: 0.25rem;
}

.breadcrumb-list a {
  color: var(--primary-blue-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-list a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

.breadcrumb-list li[aria-current="page"] {
  color: var(--light-200);
  font-weight: 600;
}
