/* ========================================
   YANTRA WORKS - Voice Screening Demo
   Brand Theme v2.0
   ======================================== */

:root {
  /* Brand Colors */
  --brand-peach: #F6C992;      /* Headings & Accents */
  --brand-garnet: #B03060;     /* Action & Signature Accents */
  --brand-teal: #09A1A1;       /* Logic & Labels */
  --brand-blue: #5484A4;       /* Atmospheric UI */
  --brand-soft: #ACC0D3;       /* Metadata Text */
  --brand-deep: #1A1A1A;       /* Core Surfaces */
  
  /* Semantic Colors */
  --bg-dark: #0d0d0f;
  --bg-card: #141417;
  --bg-card-hover: #1c1c21;
  --border: #2a2a30;
  --text: #f4f4f5;
  --text-muted: var(--brand-soft);
  --text-dim: #6b7280;
  --primary: var(--brand-teal);
  --primary-dim: rgba(9, 161, 161, 0.2);
  --accent: var(--brand-peach);
  --action: var(--brand-garnet);
  --atmospheric: var(--brand-blue);
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* Typography */
  --font-main: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--brand-deep);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

#app {
  min-height: 100%;
  width: 100%;
}

.screen {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

/* ========================================
   WELCOME SCREEN
   ======================================== */

.welcome-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--brand-deep);
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(9, 161, 161, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(176, 48, 96, 0.08) 0%, transparent 40%);
  overflow-y: auto;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  position: sticky;
  top: 0;
  background: rgba(13, 13, 15, 0.9);
  backdrop-filter: blur(10px);
  z-index: 50;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.nav-logo:hover {
  opacity: 0.85;
}

.logo-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.logo-yantra {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--brand-peach);
  text-transform: uppercase;
  margin-bottom: 1px;
}

.logo-works {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--brand-teal);
  text-transform: uppercase;
}

.nav-badge {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--brand-soft);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
}

.welcome-content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 20px 60px;
}

.welcome-card {
  width: 100%;
  max-width: 750px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 32px;
  text-align: center;
}

.welcome-greeting {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand-peach);
  margin: 0 0 4px 0;
  letter-spacing: -0.02em;
}

.welcome-mic-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  background: rgba(9, 161, 161, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-mic-icon svg {
  width: 28px;
  height: 28px;
}

.welcome-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-teal);
  margin-bottom: 6px;
}

.welcome-subtitle {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--brand-soft);
  margin-bottom: 32px;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.info-card {
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
}

.info-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--brand-teal);
  margin-bottom: 12px;
}

.info-title svg {
  width: 16px;
  height: 16px;
}

.info-list {
  list-style: none;
}

.info-list li {
  font-size: 0.85rem;
  color: var(--brand-soft);
  margin-bottom: 10px;
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}

.info-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  background: var(--brand-teal);
  border-radius: 50%;
}

.candidate-brief {
  background: linear-gradient(135deg, rgba(9, 161, 161, 0.1), rgba(176, 48, 96, 0.1));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 24px;
}

.candidate-brief p {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--brand-soft);
  margin: 0 0 12px 0;
}

.candidate-brief p:last-child {
  margin-bottom: 0;
}

.candidate-brief strong {
  color: var(--brand-teal);
  font-weight: 600;
}

.candidate-intro {
  margin-bottom: 20px;
}

.candidate-intro p {
  font-size: 1rem;
  color: var(--brand-soft);
  margin: 0;
}

.candidate-intro strong {
  color: var(--brand-teal);
}

.demo-note-box {
  margin-bottom: 24px;
}

.demo-note {
  font-size: 0.85rem;
  color: var(--brand-teal);
  background: rgba(9, 161, 161, 0.1);
  padding: 12px;
  border-radius: 8px;
  border-left: 3px solid var(--brand-teal);
  margin: 0;
}

.welcome-subtitle a {
  color: var(--brand-peach);
  text-decoration: none;
  transition: color 0.2s;
}

.welcome-subtitle a:hover {
  color: var(--brand-teal);
  text-decoration: underline;
}

.btn-begin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  padding: 18px 36px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-garnet), #8b2050);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-begin:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(176, 48, 96, 0.4);
}

.btn-begin svg {
  width: 18px;
  height: 18px;
}

/* Site Footer - matching yantra.works */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-top: 1px solid var(--border);
  background: var(--brand-deep);
  flex-shrink: 0;
}

.site-footer .footer-logo-icon {
  width: 32px;
  height: 32px;
}

.footer-privacy {
  color: var(--brand-soft);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-privacy:hover {
  color: var(--brand-teal);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.footer-yantra {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--brand-peach);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.footer-works {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--brand-teal);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--brand-soft);
  white-space: nowrap;
}

.footer-email {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--brand-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-email:hover {
  color: var(--brand-peach);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-copyright {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--brand-soft);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--brand-teal);
}

@media (max-width: 768px) {
  .site-footer {
    flex-direction: column;
    gap: 32px;
    padding: 32px 24px;
  }
  
  .footer-left {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .footer-right {
    align-items: center;
  }
  
  .footer-links {
    gap: 20px;
  }
}

/* ========================================
   INTERVIEW SCREEN
   ======================================== */

.interview-screen {
  background: var(--brand-deep);
  background-image: 
    linear-gradient(rgba(9, 161, 161, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 161, 161, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.interview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 13, 15, 0.95);
  backdrop-filter: blur(10px);
}

.header-left, .header-right {
  flex: 1;
}

.header-right {
  text-align: right;
}

.header-center {
  flex: 0 0 auto;
}

.timer-display {
  text-align: center;
}

.timer-value {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--brand-teal);
  line-height: 1;
}

.timer-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--brand-soft);
  margin-top: 4px;
}

.candidate-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
}

.candidate-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.candidate-role {
  font-size: 0.75rem;
  color: var(--brand-soft);
}

.doc-links {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.doc-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(9, 161, 161, 0.15);
  border: 1px solid var(--brand-teal);
  border-radius: 4px;
  color: var(--brand-teal);
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.doc-link:hover {
  background: var(--brand-teal);
  color: var(--brand-deep);
}

.doc-link svg {
  width: 14px;
  height: 14px;
}

/* Old interview-main removed - using new layout below */

/* Particle Sphere */
.sphere-container {
  position: relative;
  width: 350px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#particleSphere {
  width: 100%;
  height: 100%;
}

.sphere-status {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--brand-soft);
  text-transform: uppercase;
}

/* Interview Main Layout */
.interview-main {
  display: flex;
  flex-direction: row;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - 80px);
}

.interview-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 20px;
  min-width: 0;
}

/* CV Sidebar - Full Height Right Panel */
.cv-sidebar {
  width: 380px;
  min-width: 320px;
  max-width: 450px;
  height: 100%;
  background: linear-gradient(180deg, rgba(20, 20, 22, 0.98) 0%, rgba(15, 15, 17, 0.99) 100%);
  border-left: 2px solid var(--brand-teal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.cv-sidebar-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 161, 161, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cv-sidebar-header h3 {
  font-size: 1rem;
  color: var(--brand-peach);
  margin: 0;
  letter-spacing: 0.03em;
}

.demo-badge {
  background: var(--brand-garnet);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.1em;
}

.cv-legend {
  display: flex;
  gap: 12px;
  font-size: 0.7rem;
}

.legend-match { color: #4CAF50; }
.legend-gap { color: #FF9800; }
.legend-probe { color: #f44336; }

.cv-sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
}

/* Demo Warning Banner */
.demo-warning {
  background: rgba(176, 48, 96, 0.2);
  border: 1px solid var(--brand-garnet);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--brand-peach);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.warning-icon {
  font-size: 1rem;
}

/* Prompt Sections */
.prompt-section {
  background: rgba(30, 30, 35, 0.8);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.prompt-section.tips {
  background: rgba(9, 161, 161, 0.1);
  border-color: rgba(9, 161, 161, 0.3);
}

.prompt-header {
  background: rgba(9, 161, 161, 0.15);
  padding: 10px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-teal);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.prompt-number {
  background: var(--brand-teal);
  color: var(--brand-deep);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.prompt-content {
  padding: 12px;
  font-size: 0.8rem;
  line-height: 1.5;
}

.prompt-content ul {
  margin: 0;
  padding-left: 16px;
}

.prompt-content li {
  margin-bottom: 4px;
}

.prompt-answer {
  padding: 12px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--brand-peach);
  background: rgba(246, 201, 146, 0.05);
  font-style: italic;
}

.cv-sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: rgba(176, 48, 96, 0.1);
}

.yantra-link {
  color: var(--brand-peach);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  display: block;
  text-align: center;
}

.yantra-link:hover {
  color: var(--brand-garnet);
  text-decoration: underline;
}

.cv-placeholder {
  color: var(--brand-soft);
  font-style: italic;
  text-align: center;
  padding: 40px 20px;
}

.cv-section {
  margin-bottom: 16px;
}

.cv-section-title {
  font-weight: 600;
  color: var(--brand-teal);
  font-size: 0.75rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.cv-item {
  padding: 6px 10px;
  border-radius: 4px;
  margin: 4px 0;
  font-size: 0.8rem;
}

.cv-item.match {
  background: rgba(76, 175, 80, 0.15);
  border-left: 3px solid #4CAF50;
}

.cv-item.gap {
  background: rgba(255, 152, 0, 0.15);
  border-left: 3px solid #FF9800;
}

.cv-item.probe {
  background: rgba(244, 67, 54, 0.15);
  border-left: 3px solid #f44336;
}

/* Yantra Promo Link */
.yantra-promo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--brand-soft);
}

.yantra-promo a {
  color: var(--brand-teal);
  text-decoration: none;
  font-weight: 500;
}

.yantra-promo a:hover {
  text-decoration: underline;
}
}

/* Interview Controls */
.interview-controls {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.interview-controls {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.ctrl-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 36px;
  font-family: var(--font-main);
  background: linear-gradient(135deg, rgba(9, 161, 161, 0.2) 0%, rgba(26, 26, 26, 0.9) 100%);
  border: 2px solid var(--brand-teal);
  border-radius: 16px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
}

.ctrl-btn:hover {
  background: linear-gradient(135deg, rgba(9, 161, 161, 0.4) 0%, rgba(26, 26, 26, 0.95) 100%);
  border-color: var(--brand-peach);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(9, 161, 161, 0.3);
}

.ctrl-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.ctrl-btn svg {
  width: 28px;
  height: 28px;
}

.ctrl-btn .btn-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn-mute {
  border-color: var(--brand-teal);
}

.btn-mute .icon-muted { display: none; }
.btn-mute.muted .icon-mic { display: none; }
.btn-mute.muted .icon-muted { display: block; }
.btn-mute.muted { 
  border-color: var(--brand-garnet); 
  color: var(--brand-garnet);
  background: linear-gradient(135deg, rgba(176, 48, 96, 0.2) 0%, rgba(26, 26, 26, 0.9) 100%);
}

.btn-end {
  border-color: var(--brand-garnet);
  background: linear-gradient(135deg, rgba(176, 48, 96, 0.15) 0%, rgba(26, 26, 26, 0.9) 100%);
}

.btn-end:hover {
  border-color: #ff4444;
  background: linear-gradient(135deg, rgba(176, 48, 96, 0.4) 0%, rgba(26, 26, 26, 0.95) 100%);
  box-shadow: 0 8px 20px rgba(176, 48, 96, 0.3);
}

/* Debug Panel */
.debug-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--brand-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.debug-toggle svg {
  width: 20px;
  height: 20px;
}

.debug-panel {
  position: fixed;
  top: 0;
  right: -380px;
  width: 360px;
  height: 100%;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: right 0.3s ease;
}

.debug-panel.visible {
  right: 0;
}

.debug-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-close {
  background: none;
  border: none;
  color: var(--brand-soft);
  font-size: 1.1rem;
  cursor: pointer;
}

.debug-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--brand-soft);
  text-transform: uppercase;
}

.stat-value {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--brand-teal);
}

.debug-log {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.5;
}

.debug-log .log-entry {
  margin-bottom: 5px;
  color: var(--brand-soft);
}

.debug-log .log-entry.success { color: var(--success); }
.debug-log .log-entry.error { color: var(--error); }
.debug-log .log-entry.warn { color: var(--warning); }
.debug-log .log-entry.event { color: var(--brand-garnet); }

/* ========================================
   REPORT SCREEN
   ======================================== */

.report-screen {
  background: var(--brand-deep);
  overflow-y: auto;
}

.report-header {
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
}

.report-main {
  padding: 32px 20px 60px;
  display: flex;
  justify-content: center;
}

.report-card {
  width: 100%;
  max-width: 900px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
}

.report-title-section {
  text-align: center;
  margin-bottom: 32px;
}

.report-title-section h1 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 10px;
}

.report-meta {
  font-size: 0.85rem;
  color: var(--brand-soft);
}

.report-meta span:first-child {
  color: var(--brand-teal);
  font-weight: 600;
}

.report-date {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Grade Section */
.report-grade-section {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.overall-grade {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 40px;
  background: linear-gradient(135deg, rgba(9, 161, 161, 0.15), rgba(246, 201, 146, 0.15));
  border: 1px solid var(--border);
  border-radius: 20px;
}

.grade-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-peach));
  display: flex;
  align-items: center;
  justify-content: center;
}

.grade-letter {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.grade-details {
  text-align: left;
}

.grade-score {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
}

.grade-score span {
  color: var(--brand-teal);
}

.grade-verdict {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-peach);
  margin-top: 6px;
}

/* Report Sections */
.report-section {
  margin-bottom: 32px;
}

.report-section h2 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--brand-teal);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Competency Grid */
.competency-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.competency-item {
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 10px;
  text-align: center;
}

.competency-score {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand-teal);
}

.competency-max {
  font-size: 0.8rem;
  color: var(--brand-soft);
}

.competency-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--brand-soft);
  margin-top: 6px;
  text-transform: uppercase;
}

/* Traits Grid */
.traits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.trait-item {
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

.trait-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.trait-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

.trait-rating {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  background: var(--primary-dim);
  color: var(--brand-teal);
}

.trait-bar {
  height: 5px;
  background: var(--brand-deep);
  border-radius: 3px;
  overflow: hidden;
}

.trait-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-peach));
  border-radius: 3px;
  transition: width 0.5s ease;
}

.trait-description {
  font-size: 0.75rem;
  color: var(--brand-soft);
  margin-top: 10px;
  line-height: 1.4;
}

/* Summary */
.summary-section p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--brand-soft);
}

/* Questions List */
.question-item {
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 10px;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.question-number {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brand-teal);
  text-transform: uppercase;
}

.question-score {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-peach);
}

.question-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.question-feedback {
  font-size: 0.8rem;
  color: var(--brand-soft);
  line-height: 1.5;
}

/* Report Actions */
.report-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}

.btn-primary, .btn-secondary {
  padding: 14px 28px;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--brand-teal);
  border: none;
  color: var(--brand-deep);
}

.btn-primary:hover {
  background: #0ab8b8;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--brand-soft);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .welcome-card {
    padding: 28px 20px;
  }
  
  .welcome-title {
    font-size: 1.6rem;
  }
  
  .info-cards {
    grid-template-columns: 1fr;
  }
  
  .interview-header {
    padding: 12px 16px;
  }
  
  .timer-value {
    font-size: 1.8rem;
  }
  
  /* Hide demo prompts on mobile - not enough space */
  .cv-sidebar {
    display: none;
  }
  
  .interview-center {
    width: 100%;
  }
  
  .sphere-container {
    width: 280px;
    height: 280px;
  }
  
  .competency-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .traits-grid {
    grid-template-columns: 1fr;
  }
  
  .overall-grade {
    flex-direction: column;
    text-align: center;
  }
  
  .grade-details {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav-badge {
    display: none;
  }
  
  .welcome-title {
    font-size: 1.3rem;
  }
  
  .sphere-container {
    width: 220px;
    height: 220px;
  }
  
  .interview-controls {
    flex-direction: column;
    width: 100%;
    max-width: 180px;
  }
  
  .ctrl-btn {
    width: 100%;
  }
  
  .competency-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .report-card {
    padding: 20px 14px;
  }
}

/* ========================================
   CV MODAL
   ======================================== */

/* ========================================
   LOADING SCREEN
   ======================================== */

.loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--brand-deep);
  background-image: 
    radial-gradient(ellipse at 50% 50%, rgba(9, 161, 161, 0.15) 0%, transparent 50%);
}

.loading-content {
  text-align: center;
  padding: 40px;
  max-width: 500px;
}

.loading-logo {
  display: block;
  margin-bottom: 24px;
}

.loading-logo-img {
  width: 80px;
  height: 80px;
}

.loading-about {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.yantra-intro {
  color: var(--brand-peach);
  font-size: 1rem;
  margin-bottom: 10px;
}

.yantra-desc {
  color: var(--brand-soft);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.loading-features {
  text-align: left;
  background: rgba(9, 161, 161, 0.1);
  border: 1px solid rgba(9, 161, 161, 0.2);
  border-radius: 10px;
  padding: 15px;
  margin: 15px 0;
}

.loading-features .feature-note {
  color: var(--brand-peach);
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.loading-features ul {
  margin: 0;
  padding-left: 20px;
  color: var(--brand-soft);
  font-size: 0.8rem;
}

.loading-features li {
  margin-bottom: 6px;
}

.yantra-link-btn {
  display: inline-block;
  color: var(--brand-teal);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 10px 20px;
  border: 1px solid var(--brand-teal);
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.yantra-link-btn:hover {
  background: var(--brand-teal);
  color: var(--brand-deep);
}

.yantra-intro-box {
  background: rgba(9, 161, 161, 0.1);
  border: 1px solid rgba(9, 161, 161, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: left;
}

.intro-highlight {
  color: var(--brand-peach);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.intro-text {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 24px;
  border: 3px solid var(--border);
  border-top-color: var(--brand-teal);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-content h2 {
  color: var(--brand-peach);
  font-size: 1.4rem;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.loading-content p {
  color: var(--brand-soft);
  font-size: 0.9rem;
}

.cv-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.cv-modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.cv-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
}

.cv-close:hover {
  color: var(--brand-garnet);
}

.cv-modal-content h2 {
  color: var(--brand-peach);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.cv-modal-content h3 {
  color: var(--brand-teal);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-top: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.cv-contact {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.cv-summary {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cv-item {
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.cv-item strong {
  color: var(--text);
}

.cv-item ul {
  margin: 8px 0 0 20px;
  color: var(--text-dim);
}

.cv-skills {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.skill-label {
  color: var(--brand-soft);
  font-weight: 600;
}
