/* ==========================================================================
   FEFCON 2026 - JOURNEY 1 DESIGN SYSTEM
   ========================================================================== */

:root {
  /* FeFCon Journey Color Palette */
  --bg-primary: #eef3f9;
  --bg-surface: #ffffff;
  --bg-surface-border: #cbd5e1;
  --bg-card: #ffffff;
  
  --fefcon-blue: #0b4ab9;
  --fefcon-blue-hover: #083b96;
  --primary: #0b4ab9;
  --primary-glow: rgba(11, 74, 185, 0.22);
  --primary-hover: #083b96;
  
  --pink-card-bg: #fff0f3;
  --pink-card-border: #fbcfe8;
  --pink-icon-bg: #e11d48;
  
  --accent: #0284c7;
  --accent-glow: rgba(2, 132, 199, 0.25);
  
  --success: #10b981;
  --success-dark: #047857;
  --success-glow: rgba(16, 185, 129, 0.25);
  --warning: #d97706;
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.25);
  
  --text-main: #1e293b;
  --text-heading: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  
  /* Fonts */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', var(--font-family);

  /* Frame & Curves */
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --box-shadow: 0 10px 30px rgba(11, 74, 185, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 10% 10%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(14, 165, 233, 0.08) 0px, transparent 50%);
  background-attachment: scroll;
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

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

/* Layout Utilities */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

main {
  flex: 1;
}

/* ==========================================================================
   TOP JOURNEY HEADER & STEP SWITCHER BAR
   ========================================================================== */
.top-journey-header {
  background: linear-gradient(135deg, #0b4ab9 0%, #1e40af 100%);
  color: #ffffff;
  padding: 1.25rem 0;
  box-shadow: 0 4px 15px rgba(11, 74, 185, 0.15);
}

.journey-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.journey-badge {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.875rem;
  padding: 6px 14px;
  border-radius: 30px;
  letter-spacing: 0.04em;
}

.journey-main-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.journey-tagline {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
  display: block;
}

.journey-subtext {
  font-size: 0.9rem;
  opacity: 0.95;
  font-style: italic;
}

/* Step Navigation Bar */
.step-nav-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.6rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  position: sticky;
  top: 0;
  z-index: 100;
}

.step-nav-inner {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.step-nav-btn {
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.step-nav-btn:hover {
  background: #e2e8f0;
  color: var(--text-heading);
}

.step-nav-btn.active {
  background: var(--fefcon-blue);
  color: #ffffff;
  border-color: var(--fefcon-blue);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* ==========================================================================
   MOBILE APP FRAME & VIEWPORT
   ========================================================================== */
.app-viewport {
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.mobile-frame {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 36px;
  box-shadow: 0 12px 35px rgba(11, 74, 185, 0.1);
  overflow: hidden;
  position: relative;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

/* Mobile Status/Nav Header */
.mobile-nav-header {
  height: 115px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  z-index: 50;
  position: relative;
}

.nav-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #f8fafc;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.nav-icon-btn:hover {
  background: #e2e8f0;
  color: var(--fefcon-blue);
}

.header-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.mobile-header-logo {
  height: 100px;
  max-height: 100px;
  width: auto;
  object-fit: contain;
}

/* Verification Drawer */
.verification-drawer {
  background: #ffffff;
  border-bottom: 2px solid var(--fefcon-blue);
  padding: 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 60;
  animation: slideDown 0.25s ease-out;
}

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

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

.drawer-header h4 {
  font-size: 0.95rem;
  color: var(--fefcon-blue);
}

.close-drawer-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* Screen Wrapper & Screens */
.mobile-screens-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.step-screen {
  display: none;
  flex-direction: column;
  padding: 1.25rem;
  flex: 1;
  animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-screen.active {
  display: flex;
}

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

/* ==========================================================================
   SCREEN 1: HOME / DASHBOARD COMPONENTS
   ========================================================================== */
.welcome-box {
  display: none;
  margin-bottom: 1.25rem;
}

.welcome-title {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.welcome-doctor-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--fefcon-blue);
  line-height: 1.2;
}

.welcome-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Featured Promo Card (FeFCon Voices) */
.featured-promo-card {
  background: linear-gradient(135deg, #fff0f3 0%, #eff6ff 100%);
  border: 1px solid var(--pink-card-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.06);
}

.featured-promo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(225, 29, 72, 0.12);
  border-color: #f43f5e;
}

.promo-icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--pink-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.promo-content h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--fefcon-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chevron-arrow {
  font-size: 1.2rem;
  color: var(--fefcon-blue);
}

.promo-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Fever Foundation Promo Card */
.foundation-promo-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.foundation-logo-box {
  width: 60px;
  flex-shrink: 0;
}

.foundation-logo-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.foundation-promo-text h4 {
  font-size: 0.8rem;
  color: var(--fefcon-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.foundation-promo-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Menu Links List */
.menu-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.menu-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-heading);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.menu-link-item:hover {
  background: #f8fafc;
  border-color: var(--fefcon-blue);
  color: var(--fefcon-blue);
}

.menu-link-icon {
  font-size: 1.1rem;
  margin-right: 0.75rem;
}

.link-chevron {
  color: var(--text-dim);
  font-size: 1rem;
}

/* Bottom Navigation */
.mobile-bottom-nav {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 0.5rem 0;
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  margin-bottom: -1.25rem;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  transition: var(--transition);
}

.bottom-nav-item.active, .bottom-nav-item:hover {
  color: var(--fefcon-blue);
}

.nav-icon {
  font-size: 1.2rem;
  margin-bottom: 2px;
}

/* ==========================================================================
   SCREEN 2: FEFCON VOICES HOME COMPONENTS
   ========================================================================== */
.screen-hero-header {
  margin-bottom: 1.5rem;
}

.screen-main-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--fefcon-blue);
  line-height: 1.15;
}

.screen-sub-title {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.screen-body-text {
  font-size: 0.875rem;
  color: var(--text-main);
  line-height: 1.5;
}

.share-action-card {
  background: linear-gradient(135deg, #fff0f3 0%, #eff6ff 100%);
  border: 1px solid var(--pink-card-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.08);
}

.share-action-card:hover {
  transform: translateY(-2px);
  border-color: #f43f5e;
  box-shadow: 0 8px 30px rgba(225, 29, 72, 0.15);
}

.action-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.red-camera-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--pink-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.card-chevron {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fefcon-blue);
}

.action-card-content h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--fefcon-blue);
  margin-bottom: 0.35rem;
}

.action-card-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.foundation-footer-box {
  margin-top: auto;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

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

.visit-website-btn {
  padding: 0.4rem 1.25rem;
  font-size: 0.8rem;
  border-radius: 20px;
}

/* ==========================================================================
   SCREEN 3: SELECT VIDEO TYPE COMPONENTS
   ========================================================================== */
.type-options-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.radio-option-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  display: grid;
  grid-template-columns: 24px 42px 1fr;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.radio-option-card:hover {
  border-color: var(--fefcon-blue);
  background: #f8fafc;
}

.radio-option-card.active {
  border-color: var(--fefcon-blue);
  background: rgba(11, 74, 185, 0.04);
  box-shadow: 0 4px 15px rgba(11, 74, 185, 0.1);
}

.radio-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.radio-option-card.active .radio-circle {
  border-color: var(--fefcon-blue);
}

.radio-inner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fefcon-blue);
  opacity: 0;
  transform: scale(0.5);
  transition: var(--transition);
}

.radio-option-card.active .radio-inner-dot {
  opacity: 1;
  transform: scale(1);
}

.option-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(11, 74, 185, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.option-details h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fefcon-blue);
  margin-bottom: 2px;
}

.option-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.screen-action-footer {
  margin-top: auto;
  padding-top: 1rem;
}

/* ==========================================================================
   SCREEN 4: RECORD / UPLOAD VIDEO COMPONENTS
   ========================================================================== */
.video-capture-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.record-now-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.record-now-card:hover {
  border-color: var(--fefcon-blue);
  background: rgba(11, 74, 185, 0.03);
  transform: translateY(-2px);
}

.record-camera-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--fefcon-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px var(--primary-glow);
}

.record-now-card span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fefcon-blue);
}

.or-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.or-divider::before, .or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #cbd5e1;
}

.or-divider span {
  padding: 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.btn-outline {
  background: #ffffff;
  border: 2px solid var(--fefcon-blue);
  color: var(--fefcon-blue);
  font-weight: 700;
}

.btn-outline:hover {
  background: rgba(11, 74, 185, 0.05);
}

.btn-lg {
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
}

/* Guidelines Box */
.guidelines-card {
  background: rgba(11, 74, 185, 0.04);
  border: 1px solid rgba(11, 74, 185, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: auto;
}

.guidelines-card h4 {
  font-size: 0.875rem;
  color: var(--fefcon-blue);
  margin-bottom: 0.5rem;
}

.guidelines-card ul {
  list-style-type: disc;
  padding-left: 1.25rem;
}

.guidelines-card li {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

/* Live Webcam UI */
.live-webcam-card {
  background: #0f172a;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.webcam-viewport {
  position: relative;
  aspect-ratio: 4/3;
  background: #000000;
  width: 100%;
}

.webcam-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Selfie mirror effect for live capture viewport only */
  -webkit-transform: scaleX(-1);
}

.webcam-overlay-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.live-pulse-badge {
  background: rgba(239, 68, 68, 0.85);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.webcam-controls-row {
  padding: 0.85rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  background: #1e293b;
}

/* ==========================================================================
   SCREEN 5: PREVIEW & SUBMIT COMPONENTS
   ========================================================================== */
.preview-player-container {
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1rem;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

.player-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.player-timer-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  font-family: monospace;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 12px;
}

.preview-file-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--success-dark);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ==========================================================================
   SCREEN 6: CONFIRMATION SCREEN COMPONENTS
   ========================================================================== */
.confirmation-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0.5rem;
  flex: 1;
}

.success-checkmark-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: 0 8px 25px var(--success-glow);
}

.pulse-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed var(--success);
  animation: spinRing 10s linear infinite;
}

@keyframes spinRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.thank-you-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--fefcon-blue);
  margin-bottom: 0.25rem;
}

.thank-you-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.thank-you-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  max-width: 320px;
}

.ticket-id-badge {
  background: rgba(11, 74, 185, 0.08);
  border: 1px solid rgba(11, 74, 185, 0.2);
  color: var(--fefcon-blue);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.confirmation-actions {
  width: 100%;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--bg-surface-border);
  padding: 0.75rem 0;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  width: 100%;
}

.header-logos {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.header-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.header-logo-img:hover {
  transform: scale(1.05);
}

.brand-text {
  min-width: 0;
}

.brand-text h1 {
  font-size: 1.25rem;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--text-heading);
}

.brand-text span {
  font-size: 0.725rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: block;
}

/* View Switcher Controls */
.view-switch {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 30px;
  border: 1px solid var(--bg-surface-border);
}

.view-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  text-decoration: none;
}

.view-btn:hover {
  color: var(--text-heading);
}

.view-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #ffffff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Live Badge Indicator */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #dc2626;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--danger);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* Main Container Section */
.hero-section {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #0f172a 30%, #4338ca 70%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 2rem;
}

/* Question Option Tabs */
.option-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 850px;
  margin: 0 auto 2rem;
}

.tab-card {
  background: #ffffff;
  border: 1px solid var(--bg-surface-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.tab-card:hover {
  background: #ffffff;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.15);
}

.tab-card.active {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(2, 132, 199, 0.04));
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.18);
}

.tab-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition);
}

.tab-card.active .tab-icon {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.tab-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
}

.tab-card p {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* Glass Form Container */
.form-wrapper {
  max-width: 850px;
  margin: 0 auto 3rem;
  background: #ffffff;
  border: 1px solid var(--bg-surface-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.form-control, .form-select {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-heading);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

/* Grid Form Layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Verified Delegate Card Component */
.verified-card {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.08), rgba(2, 132, 199, 0.05));
  border: 1px solid rgba(5, 150, 105, 0.3);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

.verified-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(5, 150, 105, 0.2);
}

.verified-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.verified-check-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), #047857);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--success-glow);
}

.verified-card-body {
  margin-bottom: 1rem;
}

.verified-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  text-transform: capitalize;
  line-height: 1.3;
  margin-bottom: 0.35rem;
  word-break: break-word;
}

.verified-reg-badge {
  background: rgba(5, 150, 105, 0.15) !important;
  color: #047857 !important;
  border: 1px solid rgba(5, 150, 105, 0.4) !important;
  white-space: nowrap !important;
  font-family: monospace;
  font-size: 0.825rem !important;
  padding: 4px 10px !important;
  display: inline-block !important;
}

.verified-meta {
  font-size: 0.85rem;
  color: #047857;
  line-height: 1.5;
  word-break: break-word;
}

/* Mode 1: Drag & Drop Video Upload */
.upload-dropzone {
  border: 2px dashed rgba(79, 70, 229, 0.4);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: rgba(79, 70, 229, 0.03);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.08);
}

.dropzone-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.dropzone-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--text-heading);
}

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

/* Mode 2: Live Video Recorder Component */
.recorder-container {
  background: #0f172a;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--bg-surface-border);
  position: relative;
}

.video-preview-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-preview-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recording-overlay {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.timer-badge {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 20px;
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: bold;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.recorder-controls {
  padding: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  background: #1e293b;
}

/* Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #b91c1c);
  color: white;
  box-shadow: 0 4px 15px var(--danger-glow);
}

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

.btn-secondary {
  background: #f1f5f9;
  color: var(--text-heading);
  border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #047857);
  color: white;
  box-shadow: 0 4px 15px var(--success-glow);
}

.btn-block {
  width: 100%;
}

/* Preview Card for Video Files */
.video-file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.3);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
}

.video-file-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   ADMIN DASHBOARD STYLES
   ========================================================================== */

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bg-surface-border);
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--bg-surface-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.12);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-icon.violet { background: rgba(79, 70, 229, 0.12); color: var(--primary); }
.stat-icon.cyan { background: rgba(2, 132, 199, 0.12); color: var(--accent); }
.stat-icon.emerald { background: rgba(5, 150, 105, 0.12); color: var(--success); }
.stat-icon.amber { background: rgba(217, 119, 6, 0.12); color: var(--warning); }

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

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-heading);
}

/* Filter Bar */
.filter-bar {
  background: #ffffff;
  border: 1px solid var(--bg-surface-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Question Cards List */
.questions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.q-card {
  background: #ffffff;
  border: 1px solid var(--bg-surface-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

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

.q-card.type-live_video::before { background: var(--danger); }
.q-card.type-uploaded_video::before { background: var(--accent); }
.q-card.type-text::before { background: var(--success); }

.q-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.q-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.q-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}

.user-meta h4 {
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--text-heading);
}

.user-meta span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-video { background: rgba(2, 132, 199, 0.12); color: #0284c7; border: 1px solid rgba(2, 132, 199, 0.3); }
.badge-live { background: rgba(220, 38, 38, 0.12); color: #dc2626; border: 1px solid rgba(220, 38, 38, 0.3); }
.badge-text { background: rgba(5, 150, 105, 0.12); color: #059669; border: 1px solid rgba(5, 150, 105, 0.3); }

.status-pending { background: rgba(217, 119, 6, 0.12); color: #b45309; }
.status-answered { background: rgba(5, 150, 105, 0.12); color: #047857; }
.status-in_review { background: rgba(79, 70, 229, 0.12); color: #4338ca; }

.q-body {
  margin-bottom: 1.25rem;
}

.q-text {
  font-size: 0.925rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

/* Video Thumbnail Card */
.video-thumb-preview {
  width: 100%;
  height: 160px;
  background: #000;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  cursor: pointer;
}

.video-thumb-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.play-overlay:hover {
  background: rgba(79, 70, 229, 0.3);
}

.play-btn-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.q-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

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

.modal-container {
  background: #ffffff;
  border: 1px solid var(--bg-surface-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 650px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-heading);
}

.modal-body {
  padding: 1.5rem;
  max-height: 80vh;
  overflow-y: auto;
}

/* Notification Toast */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #ffffff;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer Design System */
.footer {
  margin-top: 4rem;
  padding: 1.75rem 0;
  background: #ffffff;
  border-top: 1px solid var(--bg-surface-border);
  text-align: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.02);
}

.footer-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.925rem;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.footer-content:hover {
  color: var(--text-heading);
  background: #f1f5f9;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.12);
}

.footer-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.footer-content:hover .footer-logo {
  transform: scale(1.06);
}

/* ==========================================================================
   MOBILE & RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .brand {
    justify-content: center;
    gap: 0.6rem;
  }

  .header-logos {
    padding: 3px 6px;
    gap: 4px;
  }

  .header-logo-img {
    height: 32px;
  }

  .brand-text h1 {
    font-size: 1.05rem;
  }

  .brand-text span {
    font-size: 0.65rem;
  }

  .hero-section {
    padding: 1.5rem 0 1rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  .option-tabs {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .form-wrapper {
    padding: 1.25rem 1rem;
  }

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

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

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 520px) {
  .brand {
    flex-direction: row;
    align-items: center;
  }

  .header-logos {
    gap: 3px;
    padding: 2px 4px;
  }

  .header-logo-img {
    height: 28px;
  }

  .brand-text h1 {
    font-size: 0.95rem;
    letter-spacing: -0.01em;
  }

  .brand-text span {
    font-size: 0.58rem;
    letter-spacing: 0.02em;
  }

  .hero-title {
    font-size: 1.45rem;
  }

  .live-indicator {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  .verified-name {
    font-size: 1rem;
  }

  .verified-reg-badge {
    font-size: 0.75rem !important;
  }

  .questions-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .footer-logo {
    height: 26px;
  }
}
