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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --bg: #f1f5f9;
  --card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 40px 0 36px;
  text-align: center;
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo span {
  color: #60a5fa;
}

.lang-select-wrap {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 6px 30px 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.lang-select:hover {
  background-color: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.25);
}

.lang-select:focus {
  outline: none;
  border-color: #C5A572;
}

.lang-select option {
  background: #1e293b;
  color: #fff;
}

.tagline {
  color: #e2e8f0;
  font-size: 1.15rem;
  font-weight: 500;
  margin-top: 12px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.hero-pitch {
  margin-top: 16px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #60a5fa;
  letter-spacing: 0.5px;
}

.hero-counters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 20px;
}

.hero-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.counter-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #C5A572;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}

.counter-label {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-counter-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
}

/* ===== Form ===== */
.form {
  margin-top: -20px;
}

.form-section {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 28px 20px;
  margin-bottom: 16px;
}

/* ===== Email Bar (compact) ===== */
.email-hero-section {
  background: linear-gradient(135deg, #1B2A4A 0%, #2d4a7a 100%);
  color: #fff;
  border: 1px solid rgba(197, 165, 114, 0.3);
  padding: 16px 24px 12px;
}

.email-bar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.email-bar-left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(197, 165, 114, 0.3);
  border-radius: 8px;
  padding: 0 12px;
}

.email-bar-left svg {
  flex-shrink: 0;
}

.email-bar-left input {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  padding: 10px 0;
  outline: none;
}

.email-bar-left input::placeholder {
  color: #64748b;
}

.magic-link-btn {
  flex-shrink: 0;
  background: rgba(197, 165, 114, 0.15);
  border: 1px solid rgba(197, 165, 114, 0.4);
  color: #C5A572;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.magic-link-btn:hover {
  background: rgba(197, 165, 114, 0.3);
  color: #fff;
}

/* Coming Soon Badge */
.badge-coming-soon {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
  vertical-align: middle;
  margin-left: 4px;
}

/* ===== Toast Notifications ===== */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s;
  max-width: 400px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background: #065f46;
  color: #d1fae5;
  border: 1px solid #10b981;
}

.toast-error {
  background: #7f1d1d;
  color: #fecaca;
  border: 1px solid #ef4444;
}

.toast-info {
  background: #1e3a5f;
  color: #dbeafe;
  border: 1px solid #60a5fa;
}

.email-bar-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.consent-toggle-inline,
.investor-toggle-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  color: #cbd5e1;
  white-space: nowrap;
}

.consent-toggle-inline input[type="checkbox"] {
  accent-color: #C5A572;
  width: 16px;
  height: 16px;
}

.consent-toggle-inline .info-icon {
  background: rgba(255, 255, 255, 0.15);
  color: #C5A572;
  width: 16px;
  height: 16px;
  font-size: 0.65rem;
}

.investor-toggle-inline input[type="checkbox"] {
  accent-color: #C5A572;
  width: 16px;
  height: 16px;
}

.investor-toggle-inline .info-icon {
  background: rgba(255, 255, 255, 0.15);
  color: #C5A572;
  width: 16px;
  height: 16px;
  font-size: 0.65rem;
}

.email-bar-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 0.72rem;
  color: #64748b;
}

/* ===== Mode Switcher ===== */
.mode-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  box-shadow: var(--shadow);
  font-family: 'Inter', sans-serif;
}

.mode-btn:hover {
  border-color: #C5A572;
  box-shadow: 0 4px 12px rgba(197, 165, 114, 0.15);
}

.mode-btn.active {
  border-color: #1B2A4A;
  background: linear-gradient(135deg, #f8fafc 0%, #F7F4EF 100%);
  box-shadow: 0 4px 12px rgba(27, 42, 74, 0.12);
}

.mode-btn.active svg {
  stroke: #C5A572;
}

.mode-btn svg {
  flex-shrink: 0;
  stroke: #94a3b8;
  transition: stroke 0.2s;
}

.mode-btn div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mode-btn strong {
  font-size: 0.9rem;
  color: var(--text);
}

.mode-btn span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Simple Mode */
.simple-mode-section.hidden {
  display: none;
}

.url-input-large input {
  font-size: 1.05rem;
  padding: 14px 16px;
}

.simple-hint,
.section-hint {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.section-hint {
  margin-bottom: 12px;
}

/* TAM auto-fetch */
.tam-input-wrap {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.tam-input-wrap input {
  flex: 1;
  min-width: 0;
}

.btn-auto-fetch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.btn-auto-fetch:hover {
  background: var(--primary);
  color: #fff;
}

.btn-auto-fetch:hover svg {
  stroke: #fff;
}

.btn-auto-fetch:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-auto-fetch .tam-btn-loading {
  display: inline-flex;
  align-items: center;
}

.spinner-small {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(37, 99, 235, 0.3);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-auto-fetch:hover .spinner-small {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
}

@media (max-width: 600px) {
  .tam-input-wrap {
    flex-direction: column;
  }

  .btn-auto-fetch {
    justify-content: center;
  }
}

/* Pitchdeck coming soon overlay */
.pitchdeck-disabled-wrap {
  position: relative;
}

.pitchdeck-coming-soon-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(1px);
  border-radius: var(--radius);
}

.pitchdeck-coming-soon-overlay span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  transform: rotate(-8deg);
  padding: 10px 32px;
  border: 3px solid var(--primary);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.pitchdeck-content-disabled {
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}

/* Pitchdeck upload */
.pitchdeck-dropzone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  color: var(--text-muted);
}

.pitchdeck-dropzone:hover,
.pitchdeck-dropzone.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.pitchdeck-dropzone svg {
  margin-bottom: 8px;
  opacity: 0.5;
}

.pitchdeck-dropzone:hover svg,
.pitchdeck-dropzone.drag-over svg {
  opacity: 1;
  stroke: var(--primary);
}

.dropzone-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-text {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.dropzone-hint {
  font-size: 0.75rem;
  opacity: 0.7;
}

.pitchdeck-status {
  margin-top: 10px;
}

.pitchdeck-uploading,
.pitchdeck-success,
.pitchdeck-error {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: var(--radius);
}

.pitchdeck-uploading {
  background: var(--primary-light);
  color: var(--primary);
}

.pitchdeck-success {
  background: #f0fdf4;
  color: #15803d;
}

.pitchdeck-error {
  background: #fef2f2;
  color: #dc2626;
}

.pitchdeck-remove {
  margin-left: auto;
  background: none;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.78rem;
  color: #15803d;
  cursor: pointer;
  transition: background 0.2s;
}

.pitchdeck-remove:hover {
  background: #dcfce7;
}

/* Expert sections hidden in simple mode */
.expert-section.hidden {
  display: none;
}

@media (max-width: 600px) {
  .mode-switcher {
    grid-template-columns: 1fr;
  }

  .email-bar {
    flex-direction: column;
    gap: 10px;
  }

  .email-bar-left {
    width: 100%;
  }

  .email-bar-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  .consent-toggle-inline span,
  .investor-toggle-inline span {
    white-space: normal;
  }
}

.section-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.subsection-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 16px 0 8px;
}

/* Info Icon Tooltip */
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  font-style: italic;
  cursor: help;
  position: relative;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.info-icon:hover {
  background: var(--primary);
  color: #fff;
}

.info-icon:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  white-space: normal;
  width: 280px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.info-icon:hover::before {
  content: '';
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--text);
  z-index: 101;
  pointer-events: none;
}

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

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

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

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

.form-group.hidden {
  display: none;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}

.checkbox-label:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.checkbox-label:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.inline-input {
  width: 160px;
  padding: 4px 8px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: inherit;
  margin-left: 4px;
}

.inline-input:focus {
  outline: none;
  border-color: var(--primary);
}

.inline-input:disabled {
  background: #f1f5f9;
  cursor: not-allowed;
}

.form-group.invalid .checkbox-group {
  outline: 2px solid var(--error);
  outline-offset: 4px;
  border-radius: 6px;
}

label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

label > .info-icon {
  width: 16px;
  height: 16px;
  font-size: 0.62rem;
}

input, select, textarea {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

input::placeholder, textarea::placeholder {
  color: #a0aec0;
}

textarea {
  resize: vertical;
  min-height: 60px;
}

/* URL Input */
.url-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.url-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.url-prefix {
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}

.url-input-wrap input {
  border: none;
  border-radius: 0;
  flex: 1;
}

.url-input-wrap input:focus {
  box-shadow: none;
}

/* Scraping indicator */
.scrape-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.scrape-status.success {
  color: var(--success);
}

.scrape-status.error {
  color: var(--error);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%2364748b'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
  border-color: var(--error);
}

.form-group.invalid label {
  color: var(--error);
}

/* ===== Valuation Toggle ===== */
.valuation-option {
  border: 2px dashed var(--border);
  background: #fafbfc;
}

.valuation-toggle {
  padding: 12px 16px !important;
  border: none !important;
  gap: 10px !important;
  cursor: pointer;
}

.valuation-toggle:has(input:checked) {
  background: none !important;
}

.valuation-toggle-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.valuation-toggle-content strong {
  font-size: 0.95rem;
}

.valuation-desc {
  width: 100%;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 2px 0 0;
  line-height: 1.4;
}

.valuation-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
}

/* Additional Context */
.additional-context-section {
  border: 1.5px solid #C5A572;
  background: #FDFCF9;
}

.additional-context-section .section-title {
  border-bottom-color: #C5A572;
}

/* Valuation Result */
.valuation-result {
  border-top: 4px solid #C5A572;
}

.valuation-header {
  background: linear-gradient(135deg, #3D2B10 0%, #5C3D18 100%);
}

.valuation-header h2 {
  color: #C5A572;
}

.valuation-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.valuation-loading .spinner {
  border-color: rgba(197, 165, 114, 0.3);
  border-top-color: #C5A572;
}

.valuation-header .badge {
  background: rgba(197, 165, 114, 0.2);
  color: #C5A572;
  border-color: rgba(197, 165, 114, 0.4);
}

/* ===== Method Selector (Expert Mode) ===== */
.method-selector-section {
  border: 1.5px solid #EBE4D1;
  background: #FDFCF9;
  transition: border-color 0.2s, background 0.2s;
}

.method-selector-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.method-selector-header .section-title {
  margin: 0;
  border: none;
  padding: 0;
}

.method-selector-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.method-selector-sep {
  color: var(--border);
}

.btn-link {
  background: none;
  border: none;
  color: #8A6B3A;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.btn-link:hover {
  background: rgba(197, 165, 114, 0.15);
  color: #1B2A4A;
}

.method-selector-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 4px 0 14px;
  line-height: 1.5;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.method-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  position: relative;
}

.method-card:hover {
  border-color: #C5A572;
  background: #FDFBF6;
}

.method-card.is-checked {
  border-color: #C5A572;
  background: #FBF7EE;
  box-shadow: 0 1px 4px rgba(197, 165, 114, 0.18);
}

.method-card .method-check {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #C5A572;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.method-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.method-card-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1B2A4A;
  line-height: 1.3;
}

.method-card-src {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
  .method-grid {
    grid-template-columns: 1fr;
  }
  .method-selector-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Buttons ===== */
.form-actions {
  text-align: center;
  margin: 24px 0 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 14px 48px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

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

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--primary);
  color: var(--primary);
}

.hidden {
  display: none !important;
}

/* ===== Spinner ===== */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ===== Result — Premium Consulting Report ===== */
.result-section {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
  overflow: hidden;
  border-top: 4px solid #1B2A4A;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 32px;
  border-bottom: 2px solid #1B2A4A;
  background: linear-gradient(135deg, #1B2A4A 0%, #243756 100%);
  color: #fff;
}

.result-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(197, 165, 114, 0.2);
  color: #C5A572;
  border: 1px solid rgba(197, 165, 114, 0.4);
}

.result-header .btn-secondary {
  background: transparent;
  color: #C5A572;
  border-color: rgba(197, 165, 114, 0.4);
}

.result-header .btn-secondary:hover {
  background: rgba(197, 165, 114, 0.15);
  border-color: #C5A572;
  color: #C5A572;
}

.result-content {
  padding: 48px 40px 44px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: #2D3748;
  counter-reset: dimension;
}

/* — Section Headers (H2) — Serif, premium consulting feel — */
.result-content h2 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #1B2A4A;
  margin: 52px 0 18px;
  padding: 0 0 14px;
  border-bottom: 3px solid #C5A572;
  letter-spacing: 0.3px;
  text-transform: none;
  line-height: 1.25;
  position: relative;
  counter-reset: dimension;
}

.result-content h2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 48px;
  height: 3px;
  background: #1B2A4A;
}

.result-content h2:first-child {
  margin-top: 0;
}

/* — Dimension Headers (H3) — auto-numbered with gold numeral marker — */
.result-content h3 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1B2A4A;
  margin: 40px 0 16px;
  padding: 14px 18px 14px 62px;
  background: linear-gradient(135deg, #FBF9F4 0%, #F2EDDF 100%);
  border-left: 4px solid #C5A572;
  border-radius: 0 6px 6px 0;
  position: relative;
  counter-increment: dimension;
  letter-spacing: 0.2px;
}

.result-content h3::before {
  content: counter(dimension, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #C5A572;
  letter-spacing: -0.5px;
  line-height: 1;
}

.result-content h3:first-child {
  margin-top: 0;
}

/* — Sub-Headers (H4) — */
.result-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1B2A4A;
  margin: 22px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e2e8f0;
}

/* — Paragraphs — */
.result-content p {
  margin: 10px 0;
}

/* Kicker text: first paragraph after H2 slightly larger */
.result-content h2 + p {
  font-size: 1rem;
  line-height: 1.75;
  color: #2a3549;
}

/* Emphasize mono-strong values (EUR figures, scores, etc.) when alone in a cell */
.result-content td strong:only-child {
  color: #1B2A4A;
  font-size: 0.88rem;
  letter-spacing: 0.2px;
}

/* — Lists — */
.result-content ul, .result-content ol {
  margin: 10px 0 10px 28px;
}

.result-content li {
  margin: 6px 0;
  padding-left: 4px;
}

.result-content li::marker {
  color: #C5A572;
  font-weight: 700;
}

/* — Bold / Strong — */
.result-content strong {
  color: #1B2A4A;
  font-weight: 700;
}

/* — Table Wrapper — scrollable for wide tables — */
.result-content .table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.result-content .table-wrap table {
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* — Tables — Premium Consulting Style — */
.result-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0;
  font-size: 0.82rem;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  table-layout: auto;
  word-break: normal;
}

/* Compact tables with 6+ columns */
.result-content table.table-compact th,
.result-content table.table-compact td {
  padding: 8px 8px;
  font-size: 0.75rem;
}

.result-content table.table-compact th {
  font-size: 0.68rem;
  letter-spacing: 0.3px;
}

.result-content thead tr {
  background: linear-gradient(135deg, #1B2A4A 0%, #243756 100%);
}

.result-content th {
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  color: #C5A572;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #C5A572;
  white-space: nowrap;
}

.result-content td {
  padding: 10px 14px;
  border-bottom: 1px solid #E5E7EB;
  color: #374151;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.result-content tbody tr:nth-child(even) {
  background: #F9FAFB;
}

.result-content tbody tr:nth-child(odd) {
  background: #fff;
}

.result-content tbody tr:hover {
  background: #F0EDE6;
}

.result-content tbody tr:last-child td {
  border-bottom: none;
}

/* Bold table rows (totals, summaries) */
.result-content tbody tr:last-child td strong,
.result-content td strong {
  color: #1B2A4A;
  font-weight: 700;
  letter-spacing: 0.1px;
}

/* Totals / final row — visually anchored */
.result-content tbody tr:last-child {
  background: linear-gradient(135deg, #FBF9F4 0%, #F2EDDF 100%) !important;
  border-top: 2px solid #C5A572;
}

.result-content tbody tr:last-child td {
  font-weight: 600;
  color: #1B2A4A;
}

.result-content tbody tr:last-child td strong {
  font-size: 0.88rem;
  color: #1B2A4A;
}

/* — Blockquotes — Executive Insight Callouts — */
.result-content blockquote {
  border-left: 4px solid #C5A572;
  padding: 22px 28px 22px 56px;
  margin: 28px 0;
  background: linear-gradient(135deg, #FDFCF9 0%, #F7F4EF 100%);
  border-radius: 0 10px 10px 0;
  color: #1B2A4A;
  font-weight: 500;
  font-size: 0.96rem;
  line-height: 1.75;
  box-shadow: 0 4px 14px rgba(197, 165, 114, 0.14);
  position: relative;
  font-style: normal;
}

.result-content blockquote::before {
  content: '\201C';
  position: absolute;
  top: 4px;
  left: 14px;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 3.4rem;
  color: #C5A572;
  line-height: 1;
  opacity: 0.55;
  font-weight: 800;
}

.result-content blockquote p {
  margin: 6px 0;
}

.result-content blockquote strong {
  color: #8a6d2f;
}

/* Nested heading inside blockquote (SeedScore callout) */
.result-content blockquote h3 {
  background: none;
  border-left: none;
  padding: 0;
  margin: 0 0 8px 0;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.4rem;
  color: #1B2A4A;
  counter-increment: none;
}

.result-content blockquote h3::before {
  content: none;
}

/* — Code — */
.result-content code {
  background: #F3F0EA;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.83em;
  color: #1B2A4A;
  font-weight: 500;
}

.result-content pre {
  background: #1B2A4A;
  color: #E2D9C8;
  padding: 18px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid #2D3E5C;
}

.result-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-weight: 400;
}

/* — Donut Charts — injected before weighted tables — */
.result-content .donut-chart-wrap {
  margin: 30px 0 18px;
  padding: 26px 24px 22px;
  background: linear-gradient(135deg, #FDFCF9 0%, #F7F4EF 100%);
  border: 1px solid #EBE4D1;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(27, 42, 74, 0.06);
}

.result-content .donut-chart-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1B2A4A;
  margin: 0 0 18px;
  text-align: center;
  letter-spacing: 0.2px;
}

.result-content .donut-chart-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.result-content .donut-chart-svg {
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(27, 42, 74, 0.12));
}

.result-content .donut-chart-svg path {
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform-origin: center;
}

.result-content .donut-chart-svg:hover path:not(:hover) {
  opacity: 0.55;
}

.result-content .donut-chart-legend {
  flex: 1;
  min-width: 220px;
  max-width: 360px;
  display: grid;
  gap: 6px;
}

.result-content .donut-legend-item {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #EBE4D1;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.3;
}

.result-content .donut-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.result-content .donut-legend-label {
  color: #1B2A4A;
  font-weight: 500;
}

.result-content .donut-legend-value {
  color: #8A6B3A;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .result-content .donut-chart-body {
    flex-direction: column;
    gap: 18px;
  }
  .result-content .donut-chart-svg {
    width: 180px;
    height: 180px;
  }
  .result-content .donut-chart-legend {
    width: 100%;
    max-width: none;
  }
}

/* ===== Donut "Weitere" grouping ===== */
.result-content .donut-legend-item.is-weitere {
  background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
  border-color: #D1D5DB;
  grid-template-columns: 16px 1fr auto;
}

.result-content .donut-legend-item.is-weitere .donut-legend-label {
  color: #475569;
  font-style: italic;
}

.result-content .donut-weitere-sub {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #D1D5DB;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
}

.result-content .donut-weitere-sub-item em {
  color: #1B2A4A;
  font-style: normal;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ===== Method Block Collapsers (valuation result) ===== */
.result-content .method-block {
  margin: 18px 0;
  border: 1px solid #EBE4D1;
  border-radius: 8px;
  background: #FDFCF9;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.result-content .method-block:hover {
  box-shadow: 0 2px 8px rgba(27, 42, 74, 0.06);
}

.result-content .method-block .method-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 16px;
  background: linear-gradient(135deg, #F7F4EF 0%, #FDFCF9 100%);
  border-bottom: 1px solid transparent;
  border-left: 3px solid #C5A572;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1B2A4A;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, border-bottom-color 0.15s;
}

.result-content .method-block.is-expanded .method-heading {
  border-bottom-color: #EBE4D1;
}

.result-content .method-block .method-heading:hover {
  background: linear-gradient(135deg, #F2EDE1 0%, #F7F4EF 100%);
}

.result-content .method-block .method-heading:focus-visible {
  outline: 2px solid #C5A572;
  outline-offset: -2px;
}

.result-content .method-heading-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #8A6B3A;
  transition: transform 0.25s ease;
}

.result-content .method-block.is-collapsed .method-heading-chevron {
  transform: rotate(-90deg);
}

.result-content .method-heading-text {
  flex: 1;
  min-width: 0;
}

.result-content .method-block-body {
  padding: 14px 18px 8px;
  max-height: 5000px;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.25s ease, opacity 0.2s ease;
  opacity: 1;
}

.result-content .method-block.is-collapsed .method-block-body {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

.result-content .method-block-body > *:first-child {
  margin-top: 0;
}

.result-content .method-block-body > *:last-child {
  margin-bottom: 0;
}

/* PDF page-break marker (invisible in browser, forces break in PDF) */
.pdf-pagebreak {
  height: 0;
  margin: 0;
  padding: 0;
  border: none;
  display: block;
}

/* — Horizontal Rules — Section Dividers — */
.result-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #C5A572 20%, #C5A572 80%, transparent 100%);
  margin: 36px 0;
}

/* Streaming cursor */
.streaming-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--primary);
  margin-left: 2px;
  animation: blink 0.8s infinite;
  vertical-align: text-bottom;
}

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

/* --- Analysis Spinner --- */
.analysis-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 20px;
}
.analysis-spinner p {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.spinner-ring {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(197, 165, 114, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Error ===== */
.error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 24px;
  color: #991b1b;
  font-weight: 500;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 20px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #C5A572;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .header {
    padding: 28px 0 24px;
  }

  .logo {
    font-size: 1.6rem;
  }

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

  .form-section {
    padding: 20px 16px 16px;
  }

  .result-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .result-content {
    padding: 16px;
  }

  .btn-primary {
    width: 100%;
    padding: 14px 24px;
  }
}

/* ===== Bottom Action Buttons ===== */
.bottom-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 32px 0;
  flex-wrap: wrap;
}

.bottom-actions.hidden {
  display: none;
}

.bottom-actions .btn-primary,
.bottom-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.bottom-actions .btn-primary {
  background: linear-gradient(135deg, #1B2A4A, #243756);
  color: #C5A572;
  border: 2px solid #C5A572;
}

.bottom-actions .btn-primary:hover {
  background: linear-gradient(135deg, #243756, #2d4470);
  box-shadow: 0 4px 12px rgba(27, 42, 74, 0.3);
}

.bottom-actions .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== Print / PDF ===== */
@media print {
  .header, .form, .form-actions, .result-header,
  .error-banner, .footer, .streaming-cursor,
  .valuation-option, .additional-context-section {
    display: none !important;
  }

  .result-section {
    box-shadow: none;
    margin: 0;
    border: none;
  }

  .result-content {
    padding: 0;
  }

  .result-content table {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .result-content thead {
    display: table-header-group;
  }

  .result-content tr {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .result-content blockquote {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .result-content .donut-chart-wrap {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    box-shadow: none !important;
  }

  .result-content .donut-chart-svg {
    filter: none !important;
  }

  .result-content h2, .result-content h3, .result-content h4 {
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  .result-content li {
    page-break-inside: avoid !important;
  }

  .pdf-page-break {
    page-break-before: always !important;
    break-before: page !important;
  }
}

/* ===== Waitlist Modal ===== */
.waitlist-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.3s ease;
  padding: 20px;
}

.waitlist-overlay.hidden {
  display: none;
}

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

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

@keyframes scaleIn {
  from { transform: scale(0.3); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.waitlist-modal {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 60px rgba(27, 42, 74, 0.3),
              0 0 0 1px rgba(197, 165, 114, 0.2);
  animation: slideUp 0.4s ease;
  border-top: 4px solid #C5A572;
}

.waitlist-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.waitlist-close:hover {
  color: #1B2A4A;
}

.waitlist-icon {
  margin-bottom: 16px;
  opacity: 0.9;
}

.waitlist-title {
  font-size: 22px;
  font-weight: 700;
  color: #1B2A4A;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.waitlist-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 8px;
}

.waitlist-desc strong {
  color: #1B2A4A;
}

.waitlist-form {
  margin-top: 24px;
}

.waitlist-input-group {
  display: flex;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(27, 42, 74, 0.1);
  border: 2px solid #e2e8f0;
  transition: border-color 0.2s;
}

.waitlist-input-group:focus-within {
  border-color: #C5A572;
}

.waitlist-input-group input {
  flex: 1;
  padding: 14px 16px;
  border: none;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: #1B2A4A;
  background: #fff;
  outline: none;
  min-width: 0;
}

.waitlist-input-group input::placeholder {
  color: #94a3b8;
}

.waitlist-input-group button {
  padding: 14px 24px;
  background: linear-gradient(135deg, #1B2A4A 0%, #2d4a7a 100%);
  color: #C5A572;
  border: none;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.waitlist-input-group button:hover {
  background: linear-gradient(135deg, #0f1d35 0%, #1B2A4A 100%);
}

.waitlist-input-group button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.waitlist-field-error {
  margin-top: 8px;
  font-size: 13px;
  color: #ef4444;
}

.waitlist-field-error.hidden {
  display: none;
}

/* Success State */
.waitlist-success {
  margin-top: 20px;
}

.waitlist-success.hidden {
  display: none;
}

.waitlist-checkmark {
  margin-bottom: 12px;
  animation: scaleIn 0.5s ease;
}

.waitlist-position-label {
  font-size: 13px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.waitlist-position-number {
  font-size: 52px;
  font-weight: 800;
  color: #1B2A4A;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 16px;
  animation: countUp 0.6s ease;
}

.waitlist-confirm-text {
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
}

/* Responsive */
@media (max-width: 520px) {
  .waitlist-modal {
    padding: 28px 20px;
  }

  .waitlist-input-group {
    flex-direction: column;
    border-radius: 10px;
  }

  .waitlist-input-group input {
    border-bottom: 1px solid #e2e8f0;
  }

  .waitlist-input-group button {
    padding: 14px;
  }

  .waitlist-position-number {
    font-size: 42px;
  }
}

/* ===== Score Donut Chart ===== */
.score-donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 22px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #1B2A4A 0%, #2d4a7a 100%);
  border-radius: 12px;
  color: #fff;
}

.score-donut-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #C5A572;
  margin-bottom: 16px;
  font-weight: 600;
}

.score-donut {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-donut-inner {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #1B2A4A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-donut-value {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.score-donut-max {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 400;
}

.score-donut-tagline {
  margin-top: 12px;
  font-size: 14px;
  color: #cbd5e1;
  font-style: italic;
  text-align: center;
  max-width: 400px;
}

/* ===== Feedback Section ===== */
.feedback-section {
  margin-top: 24px;
  margin-bottom: 24px;
}

.feedback-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
}

.feedback-title {
  font-size: 18px;
  font-weight: 700;
  color: #1B2A4A;
  margin-bottom: 4px;
}

.feedback-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
}

.feedback-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.feedback-satisfaction {
  margin-bottom: 16px;
}

.feedback-scale {
  display: flex;
  align-items: center;
  gap: 4px;
}

.scale-label-left,
.scale-label-right {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  min-width: 16px;
  text-align: center;
}

.scale-radios {
  display: flex;
  gap: 2px;
  flex: 1;
  justify-content: space-between;
}

.scale-radio {
  display: none;
}

.scale-radio-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s;
}

.scale-radio-label:hover {
  border-color: #C5A572;
  color: #C5A572;
}

.scale-radio:checked + .scale-radio-label {
  background: #1B2A4A;
  border-color: #1B2A4A;
  color: #C5A572;
}

.feedback-field {
  margin-bottom: 14px;
}

.feedback-field textarea,
.feedback-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #1e293b;
  background: #fff;
  transition: border-color 0.2s;
}

.feedback-field textarea:focus,
.feedback-field input:focus {
  outline: none;
  border-color: #C5A572;
}

.feedback-submit {
  margin-top: 4px;
}

.feedback-success {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #166534;
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 480px) {
  .scale-radio-label {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }
}
