/* 
  HORIZON GLOBAL CONSULTANCY SERVICES - Premium Web App Design System
  Executive Style Guide: Midnight Navy, Sapphire Blue, and Champagne Gold
  Fully Responsive Layout, High-End Glassmorphism, Micro-Animations & Charts
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-deep: hsl(222, 40%, 6%);
  --bg-surface: hsl(222, 35%, 10%);
  --bg-card: hsla(222, 30%, 15%, 0.75);
  --bg-card-hover: hsla(222, 30%, 20%, 0.85);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(212, 175, 55, 0.2);

  --primary: hsl(45, 60%, 60%);
  /* Champagne Gold */
  --primary-glow: hsla(45, 60%, 60%, 0.25);
  --secondary: hsl(210, 90%, 55%);
  /* Sapphire Blue */
  --secondary-glow: hsla(210, 90%, 55%, 0.3);
  --accent: hsl(15, 80%, 55%);
  /* Coral Rose */
  --accent-glow: hsla(15, 80%, 55%, 0.2);

  --text-main: hsl(210, 20%, 95%);
  --text-muted: hsl(215, 15%, 70%);
  --text-dark: hsl(222, 20%, 8%);

  /* Status Colors */
  --success: hsl(145, 75%, 45%);
  --success-bg: hsla(145, 75%, 45%, 0.15);
  --warning: hsl(38, 92%, 50%);
  --warning-bg: hsla(38, 92%, 50%, 0.15);
  --danger: hsl(355, 85%, 55%);
  --danger-bg: hsla(355, 85%, 55%, 0.15);
  --info: hsl(195, 85%, 50%);
  --info-bg: hsla(195, 85%, 50%, 0.15);

  /* Effects */
  --glass-blur: blur(20px);
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px -5px hsla(45, 60%, 60%, 0.2);
  --radius-lg: 16px;
  --radius-md: 10px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
}

/* Base Resets & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-glow) transparent;
}

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

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-main) 30%, var(--secondary) 70%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-gradient-text {
  background: linear-gradient(135deg, hsl(45, 90%, 75%) 0%, var(--primary) 50%, hsl(35, 75%, 45%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, hsl(38, 70%, 50%) 100%);
  color: var(--bg-deep);
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px -2px hsla(45, 60%, 60%, 0.4);
  background: linear-gradient(135deg, hsl(45, 70%, 65%) 0%, hsl(38, 70%, 55%) 100%);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

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

.btn-blue {
  background: linear-gradient(135deg, var(--secondary) 0%, hsl(200, 80%, 45%) 100%);
  color: #fff;
  box-shadow: 0 4px 20px -5px hsla(210, 90%, 55%, 0.3);
}

.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -3px hsla(210, 90%, 55%, 0.5);
  filter: brightness(1.1);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 6px;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
  background: hsla(222, 40%, 6%, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  cursor: pointer;
  user-select: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--bg-deep);
  box-shadow: 0 0 15px -3px var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.admin-trigger-badge {
  font-size: 0.7rem;
  background: var(--border-light);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.admin-trigger-badge:hover {
  background: var(--primary-glow);
  color: var(--primary);
  border-color: var(--primary);
}

/* App Views Layout */
.app-view {
  display: none;
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 60px;
}

.app-view.active {
  display: block;
  animation: fadeIn 0.5s ease-out;
}

#landing-view {
  background: linear-gradient(180deg, rgba(11, 15, 26, 0.85) 0%, rgba(11, 15, 26, 0.98) 100%),
    url('assets/hero_bg.png') no-repeat center center / cover;
}

#relocation-view {
  background: linear-gradient(180deg, rgba(11, 15, 26, 0.88) 0%, rgba(11, 15, 26, 0.98) 100%),
    url('assets/relocation_bg.png') no-repeat center center / cover;
}

#education-view {
  background: linear-gradient(180deg, rgba(11, 15, 26, 0.88) 0%, rgba(11, 15, 26, 0.98) 100%),
    url('assets/education_bg.png') no-repeat center center / cover;
}

#assessment-view {
  background: radial-gradient(circle at 50% 30%, rgba(45, 60, 60, 0.08) 0%, transparent 60%);
}

#analysis-view {
  background: radial-gradient(circle at 50% 30%, rgba(210, 90, 55, 0.08) 0%, transparent 60%);
}

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

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

/* =========================================
   1. LANDING VIEW STYLES
   ========================================= */
.landing-hero {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 24px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 30px;
  background: var(--primary-glow);
  border: 1px solid var(--border-glow);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 24px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

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

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

.landing-hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 24px;
  font-weight: 800;
}

.landing-hero p.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 48px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto 60px;
}

.portal-card {
  padding: 48px 36px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 70%, var(--card-accent-glow) 100%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.portal-card.relocation-portal {
  --card-accent-glow: rgba(212, 175, 55, 0.15);
}

.portal-card.education-portal {
  --card-accent-glow: rgba(59, 130, 246, 0.15);
}

.portal-card:hover {
  transform: translateY(-8px);
  border-color: var(--hover-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), var(--hover-shadow);
}

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

.portal-card.relocation-portal:hover {
  --hover-border: var(--primary);
  --hover-shadow: 0 0 30px -5px var(--primary-glow);
}

.portal-card.education-portal:hover {
  --hover-border: var(--secondary);
  --hover-shadow: 0 0 30px -5px var(--secondary-glow);
}

.portal-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 32px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.portal-card:hover .portal-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--icon-highlight);
  color: var(--bg-deep);
}

.portal-card.relocation-portal .portal-icon {
  --icon-highlight: var(--primary);
}

.portal-card.education-portal .portal-icon {
  --icon-highlight: var(--secondary);
  color: #fff !important;
}

.portal-card h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.portal-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.feature-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.feature-chip {
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =========================================
   2. RELOCATION & EDUCATION PORTALS (SEARCH SECTIONS)
   ========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.back-btn-container {
  margin-bottom: 32px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.back-btn:hover {
  color: var(--text-main);
  transform: translateX(-4px);
}

.portal-title-area {
  margin-bottom: 40px;
}

.portal-title-area h1 {
  font-size: 3rem;
  margin-bottom: 12px;
}

.search-filter-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

.filter-sidebar {
  padding: 24px;
}

.filter-sidebar h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px -3px var(--primary-glow);
}

/* Range Display Custom Slider */
.budget-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-top: 4px;
  color: var(--primary);
  font-weight: 600;
}

/* Custom range sliders */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-light);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px var(--primary);
}

/* Results Content Area */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.results-count {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.cards-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  padding: 24px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.info-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.card-title-block h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.card-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.badge-tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-primary {
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid var(--border-glow);
}

.badge-secondary {
  background: var(--secondary-glow);
  color: var(--secondary);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-gold {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.card-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
}

.card-details-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.detail-value {
  font-size: 1.05rem;
  font-weight: 600;
}

.info-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.disclaimer-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 60%;
}

/* =========================================
   3. ASSESSMENT & REGISTRATION WIZARD
   ========================================= */
.wizard-container {
  max-width: 900px;
  margin: 0 auto;
}

.wizard-card {
  padding: 40px;
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 40px;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border-light);
  z-index: 1;
}

.wizard-step-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  z-index: 2;
  transition: var(--transition-smooth);
}

.wizard-step-node.active {
  border-color: var(--primary);
  background: var(--bg-deep);
  color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.wizard-step-node.completed {
  border-color: var(--success);
  background: var(--success);
  color: var(--bg-deep);
}

.wizard-slide {
  display: none;
}

.wizard-slide.active {
  display: block;
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

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

.wizard-slide h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.wizard-slide p.subtitle {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.interest-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.interest-option {
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.interest-option:hover {
  border-color: var(--secondary-glow);
  background: rgba(255, 255, 255, 0.02);
}

.interest-option.selected {
  border-color: var(--primary);
  background: var(--primary-glow);
  box-shadow: 0 0 20px -5px var(--primary-glow);
}

.interest-option-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.wizard-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

/* Interactive Loader Slide */
.loader-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
  text-align: center;
}

.pulse-spinner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--primary);
  border-bottom-color: var(--secondary);
  animation: spin 1.5s linear infinite;
  margin-bottom: 30px;
  position: relative;
}

.pulse-spinner::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-left-color: var(--accent);
  animation: spin-reverse 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  0% {
    transform: rotate(360deg);
  }

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

.loading-log {
  font-family: monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 16px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  width: 100%;
  max-width: 480px;
  height: 100px;
  overflow-y: hidden;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.loading-log-line {
  margin-bottom: 6px;
}

.loading-log-line.active {
  color: var(--secondary);
}

.loading-log-line.done {
  color: var(--success);
}

/* =========================================
   4. ANALYSIS RESULTS & SCHEDULER VIEW
   ========================================= */
.analysis-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

.score-radial-card {
  text-align: center;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.radial-progress {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: conic-gradient(var(--score-color) var(--score-degrees), var(--border-light) 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.radial-progress::before {
  content: '';
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--bg-surface);
}

.radial-score-content {
  position: relative;
  z-index: 2;
}

.radial-score-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.8rem;
  line-height: 1.1;
}

.radial-score-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.score-badge {
  padding: 6px 16px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.score-badge.excellent {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success);
}

.score-badge.feasible {
  background: var(--info-bg);
  color: var(--info);
  border: 1px solid var(--info);
}

.score-badge.borderline {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.score-badge.deficit {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.cost-comparison-list {
  width: 100%;
  margin-top: 24px;
}

.cost-bar-item {
  margin-bottom: 16px;
}

.cost-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.cost-bar-track {
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.cost-bar-fill {
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: width 1s ease-out;
}

/* Scheduler & Ticket Card */
.scheduler-card {
  padding: 32px;
}

.scheduler-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.time-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.time-slot-btn {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.time-slot-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.time-slot-btn.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--bg-deep);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Ticket Receipt layout */
.ticket-box {
  background: radial-gradient(circle at 0px 50px, transparent 12px, var(--bg-surface) 13px),
    radial-gradient(circle at 100% 50px, transparent 12px, var(--bg-surface) 13px);
  background-position: left, right;
  background-size: 100%;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 24px;
}

.ticket-header {
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.ticket-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
}

.ticket-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  font-size: 0.85rem;
}

.ticket-row {
  grid-column: span 2;
  border-top: 1px solid var(--border-light);
  padding-top: 8px;
  margin-top: 8px;
}

/* =========================================
   5. SECRET ADMIN PORTAL
   ========================================= */
/* Secret Modal Trigger */
.secret-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: var(--glass-blur);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.secret-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.secret-modal-card {
  width: 100%;
  max-width: 420px;
  padding: 40px;
  text-align: center;
}

.secret-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

/* Fullscreen Admin View Layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: hsl(222, 40%, 5%);
}

.admin-sidebar {
  width: 260px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  padding: 24px;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 90;
}

.admin-sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.admin-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.admin-menu-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  gap: 12px;
}

.admin-menu-item:hover,
.admin-menu-item.active {
  background: var(--primary-glow);
  color: var(--primary);
}

.admin-main-content {
  margin-left: 260px;
  flex-grow: 1;
  padding: 40px;
  background: hsl(222, 40%, 5%);
}

.admin-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
}

/* KPI Dashboard Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.kpi-card {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.kpi-card.purple .kpi-icon {
  color: var(--primary);
  background: var(--primary-glow);
}

.kpi-card.cyan .kpi-icon {
  color: var(--secondary);
  background: var(--secondary-glow);
}

.kpi-card.gold .kpi-icon {
  color: var(--accent);
  background: var(--accent-glow);
}

.kpi-card.green .kpi-icon {
  color: var(--success);
  background: var(--success-bg);
}

.kpi-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
}

.kpi-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* CRM Lead Table Styles */
.crm-panel-card {
  padding: 24px;
  margin-bottom: 32px;
}

.crm-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.crm-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

table.crm-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

table.crm-table th,
table.crm-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

table.crm-table th {
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.1);
}

table.crm-table tbody tr {
  transition: var(--transition-smooth);
  cursor: pointer;
}

table.crm-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Status Chips */
.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-new {
  background: var(--primary-glow);
  color: var(--primary);
}

.status-assessment {
  background: var(--secondary-glow);
  color: var(--secondary);
}

.status-booked {
  background: var(--accent-glow);
  color: var(--accent);
}

.status-processing {
  background: var(--info-bg);
  color: var(--info);
}

.status-closed-success {
  background: var(--success-bg);
  color: var(--success);
}

.status-closed-fail {
  background: var(--danger-bg);
  color: var(--danger);
}

/* Case Slider Drawer Panel */
.case-drawer {
  position: fixed;
  top: 0;
  right: -520px;
  width: 500px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-light);
  z-index: 150;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 32px;
  overflow-y: auto;
}

.case-drawer.open {
  right: 0;
}

.case-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.drawer-close-btn {
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.drawer-close-btn:hover {
  color: var(--text-main);
  transform: rotate(90deg);
}

/* Case Detail Modules */
.drawer-section {
  margin-bottom: 28px;
}

.drawer-section h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  background: rgba(0, 0, 0, 0.15);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

/* Case Progress Timeline */
.timeline-track {
  position: relative;
  padding-left: 32px;
  margin-top: 16px;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 0;
  left: 6px;
  width: 2px;
  height: 100%;
  background: var(--border-light);
}

.timeline-node {
  position: relative;
  margin-bottom: 20px;
}

.timeline-node::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
}

.timeline-node.completed::before {
  background: var(--success);
  border-color: var(--success);
  box-shadow: 0 0 10px var(--success-bg);
}

.timeline-node-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.timeline-node-desc {
  font-size: 0.85rem;
  font-weight: 500;
}

.notes-input-area {
  margin-top: 16px;
}

/* Footer Section */
footer {
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface);
  padding: 40px 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-muted);
  user-select: none;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Charts CSS widget helper */
.analytics-section-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  margin-bottom: 30px;
}

.bar-chart-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 200px;
  padding: 20px 10px 0;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-top: 16px;
}

.bar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  height: 100%;
  justify-content: flex-end;
}

.bar-fill {
  width: 32px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(0deg, var(--secondary) 0%, var(--primary) 100%);
  transition: height 0.8s ease-out;
  position: relative;
}

.bar-fill::after {
  content: attr(data-value);
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
}

.bar-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

/* Responsive Breakdown */
@media (max-width: 1024px) {
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .search-filter-layout {
    grid-template-columns: 1fr;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .analytics-section-grid {
    grid-template-columns: 1fr;
  }

  .analysis-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .full-width {
    grid-column: span 1;
  }

  .case-drawer {
    width: 100%;
    right: -100%;
  }

  .landing-hero h1 {
    font-size: 2.5rem;
  }
}

/* =========================================
   6. SECURE DOCUMENT UPLOAD STYLING
   ========================================= */
.document-upload-zone {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 8px;
}

.document-upload-zone:hover,
.document-upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(212, 175, 55, 0.05);
  box-shadow: 0 0 15px -3px var(--primary-glow);
}

.upload-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.upload-icon {
  font-size: 2rem;
  transition: var(--transition-smooth);
}

.document-upload-zone:hover .upload-icon {
  transform: translateY(-4px) scale(1.1);
}

.upload-zone-content .highlight {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

.uploaded-files-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uploaded-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.uploaded-file-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-glow);
}

.uploaded-file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-grow: 1;
}

.uploaded-file-name {
  font-weight: 500;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uploaded-file-size {
  color: var(--text-muted);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.btn-remove-file {
  background: transparent;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0 6px;
  line-height: 1;
  transition: var(--transition-smooth);
  margin-left: 10px;
  flex-shrink: 0;
}

.btn-remove-file:hover {
  transform: scale(1.2);
  color: hsl(355, 95%, 65%);
}

.doc-download-link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.doc-download-link:hover {
  color: hsl(45, 90%, 75%);
  text-shadow: 0 0 10px var(--primary-glow);
}

/* =========================================
   7. PREMIUM FOOTER STYLING
   ========================================= */
#client-footer {
  margin-top: auto;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-top: 1px solid var(--border-light);
  padding: 48px 24px 24px;
  background: hsla(222, 40%, 6%, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 420px;
}

.footer-column h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--primary);
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-contact-list li span:last-child {
  word-break: break-word;
}

.footer-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.footer-social-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-svg {
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--primary-glow);
}

.social-link:hover .social-svg {
  fill: var(--primary);
  transform: scale(1.1);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  text-align: center;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Adjust layout on mobile devices */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}