/* ==========================================================================
   Startup Survival - Modern B2B SaaS Dark Mode Theme + Physics & Lead Capture
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg-primary: #080c14;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.88);
  --bg-card-preview: rgba(15, 23, 42, 0.55);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(56, 189, 248, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --color-runway: #38bdf8;
  --color-morale: #c084fc;
  --color-tech: #2dd4bf;
  --color-growth: #34d399;

  --color-danger: #f43f5e;
  --color-warning: #fbbf24;
  --color-success: #10b981;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --card-width: min(390px, 90vw);
  --card-height: 410px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

button, select, input {
  font-family: inherit;
  color-scheme: dark;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

button {
  cursor: pointer;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(56, 189, 248, 0.12), transparent);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  user-select: none;
  -webkit-user-select: none;
}

/* Matter.js Fullscreen Canvas Overlay */
.physics-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 50;
  pointer-events: none;
  display: none;
}

/* App Full-Screen Layout */
.app-wrapper {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  height: 100vh;
  max-width: 520px;
  margin: 0 auto;
  padding: env(safe-area-inset-top, 12px) 16px env(safe-area-inset-bottom, 12px) 16px;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

/* --------------------------------------------------------------------------
   Top Brand & Quarter Progress
   -------------------------------------------------------------------------- */
.dashboard-header {
  padding: 8px 4px 4px 4px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.15);
  color: var(--color-runway);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tutorial-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #131c2e !important;
  background: #131c2e !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #f1f5f9 !important;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.tutorial-nav-btn:hover {
  background-color: #1e293b !important;
  background: #1e293b !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  color: var(--color-runway) !important;
  transform: translateY(-1px);
}

.tutorial-nav-icon {
  font-size: 12px;
}

.quarter-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stage-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  background-color: #131c2e !important;
  background: #131c2e !important;
  color: var(--text-secondary) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  white-space: nowrap;
}

.quarter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-runway);
}

.progress-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Four Live Metric Bars with Reigns-Style Indicators
   -------------------------------------------------------------------------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px 0 12px 0;
}

.metric-card {
  position: relative;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 8px 8px 8px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.metric-card.critical {
  border-color: rgba(244, 63, 94, 0.6);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.25);
  animation: pulse-border 1.5s infinite ease-in-out;
}

.metric-card.warning {
  border-color: rgba(251, 191, 36, 0.5);
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(244, 63, 94, 0.4); }
  50% { border-color: rgba(244, 63, 94, 0.9); }
}

/* The Reigns-Style Indicator Dot */
.metric-indicator-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 8px;
  margin-bottom: 2px;
}

.metric-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.15;
  transform: scale(0.6);
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.metric-dot.active {
  opacity: 1;
  transform: scale(1.4);
  background: #38bdf8;
  box-shadow: 0 0 8px 2px rgba(56, 189, 248, 0.8), 0 0 14px rgba(56, 189, 248, 0.4);
  animation: pulse-dot 1.2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1.3); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.85; }
}

.metric-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.metric-icon {
  font-size: 15px;
  line-height: 1;
}

.metric-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 2px;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.runway-fill { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.morale-fill { background: linear-gradient(90deg, #9333ea, #c084fc); }
.tech-fill   { background: linear-gradient(90deg, #0d9488, #2dd4bf); }
.growth-fill { background: linear-gradient(90deg, #059669, #34d399); }

/* --------------------------------------------------------------------------
   Central Card Stage & Stack
   -------------------------------------------------------------------------- */
.card-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: var(--card-height);
  perspective: 1000px;
}

.card-stack-wrapper {
  position: relative;
  width: var(--card-width);
  height: var(--card-height);
}

.preview-card {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 94%;
  height: 96%;
  background: var(--bg-card-preview);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  transform: translateY(8px) scale(0.96);
  z-index: 1;
  opacity: 0.6;
  pointer-events: none;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.preview-card .character-avatar {
  font-size: 32px;
}

.active-card-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.game-card {
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 
    0 20px 35px -10px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: grab;
  position: relative;
  overflow: hidden;
  will-change: transform, opacity;
}

.game-card.is-dragging {
  cursor: grabbing;
  box-shadow: 
    0 30px 45px -12px rgba(0, 0, 0, 0.85),
    0 0 25px rgba(56, 189, 248, 0.15);
}

.choice-stamp {
  position: absolute;
  top: 24px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  border: 2px solid;
}

.choice-stamp.left-stamp {
  right: 20px;
  color: #fb7185;
  border-color: #fb7185;
  background: rgba(251, 113, 133, 0.15);
  transform: rotate(10deg);
}

.choice-stamp.right-stamp {
  left: 20px;
  color: #34d399;
  border-color: #34d399;
  background: rgba(52, 211, 153, 0.15);
  transform: rotate(-10deg);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.character-avatar {
  font-size: 42px;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.3);
}

.character-meta {
  display: flex;
  flex-direction: column;
}

.character-name {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.character-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-runway);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-body {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 18px 0;
}

.dialogue-text {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  color: #e2e8f0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.hint-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.hint-arrow {
  color: var(--color-runway);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Action Footer & Tactile Buttons
   -------------------------------------------------------------------------- */
.action-footer {
  padding: 8px 4px 4px 4px;
}

.decision-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.choice-btn {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  min-height: 58px;
}

.choice-btn:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.choice-btn:active, .choice-btn.drag-active {
  transform: scale(0.97);
}

.choice-btn-left.drag-active {
  border-color: #fb7185;
  background: rgba(251, 113, 133, 0.15);
}

.choice-btn-right.drag-active {
  border-color: #34d399;
  background: rgba(52, 211, 153, 0.15);
}

.choice-btn-content {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
}

.btn-arrow {
  font-size: 14px;
  color: var(--color-runway);
  font-weight: 800;
}

.btn-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: #f1f5f9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-hotkey {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

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

.instruction-text {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
}

.footer-copyright {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Tutorial / How It Works Modal
   -------------------------------------------------------------------------- */
.modal-status-badge.tutorial-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.tutorial-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 6px 0;
  text-align: left;
}

.tutorial-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.tutorial-step-item.highlight-step {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.3);
}

.step-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.2);
  color: var(--color-runway);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.highlight-step .step-badge {
  background: rgba(244, 63, 94, 0.25);
  color: #fb7185;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-heading {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.step-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.tutorial-metric-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Modal & Lead Capture (Rendered cleanly with high z-index over canvas)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.95);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-scroll-body {
  padding: 24px 24px 20px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-header {
  text-align: center;
  margin-bottom: 12px;
}

.modal-status-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.modal-status-badge.loss {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.modal-status-badge.win {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.modal-title {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.modal-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 16px;
}

.modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-bottom: 18px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}

/* --------------------------------------------------------------------------
   B2B Lead Capture Form (Free Infrastructure Audit)
   -------------------------------------------------------------------------- */
.lead-capture-section {
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
  position: relative;
}

.lead-section-header {
  text-align: left;
  margin-bottom: 14px;
}

.lead-section-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-growth);
  display: inline-block;
  margin-bottom: 4px;
}

.lead-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.lead-section-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

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

.form-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input, .form-select {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: #f8fafc;
  font-size: 13px;
  font-family: var(--font-sans);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus, .form-select:focus {
  border-color: var(--color-runway);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.form-input::placeholder {
  color: #475569;
}

.form-error-msg {
  font-size: 11px;
  color: #fb7185;
  font-weight: 500;
  min-height: 14px;
}

.lead-submit-btn {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #040810;
  font-size: 13px;
  font-weight: 700;
  padding: 11px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 4px;
}

.lead-submit-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.lead-submit-btn:active {
  transform: scale(0.98);
}

.btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* Success Card */
.lead-success-box {
  text-align: center;
  padding: 8px 0;
}

.success-icon {
  font-size: 26px;
  margin-bottom: 4px;
}

.success-title {
  font-size: 16px;
  font-weight: 700;
  color: #34d399;
  margin-bottom: 4px;
}

.success-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.voucher-card {
  background: rgba(56, 189, 248, 0.08);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-bottom: 10px;
}

.voucher-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--color-runway);
  display: block;
  margin-bottom: 2px;
}

.voucher-code {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.06em;
}

.weakest-metric-advice {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.modal-btn-linkedin {
  background: #0a66c2;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.3);
}

.modal-btn-linkedin:hover {
  background: #004182;
  transform: translateY(-1px);
}

.modal-btn-linkedin:active {
  transform: scale(0.98);
}

.linkedin-svg-icon {
  flex-shrink: 0;
}

.modal-btn-primary {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #040810;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.modal-btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.modal-btn-primary:active {
  transform: scale(0.98);
}

.modal-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}

.modal-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* --------------------------------------------------------------------------
   Viral B2B Growth UI: Challenge Banner, Audio, Track Selector & Archetypes
   -------------------------------------------------------------------------- */
.challenge-banner {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.2), rgba(239, 68, 68, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fef08a;
  animation: pulse-border 2s infinite ease-in-out;
}

.audio-toggle-btn {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #131c2e !important;
  background: #131c2e !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: var(--radius-full);
  width: 30px;
  height: 30px;
  min-width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  color: #f1f5f9 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.audio-toggle-btn:hover {
  background-color: #1e293b !important;
  background: #1e293b !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  transform: scale(1.05);
}

.track-select-pill {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #131c2e !important;
  background: #131c2e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2338bdf8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: var(--radius-full);
  color: var(--color-runway) !important;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 24px 5px 10px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.track-select-pill:hover {
  background-color: #1e293b !important;
  border-color: #38bdf8 !important;
}

.track-select-pill:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25) !important;
}

.track-select-pill option {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  font-weight: 500;
  padding: 6px 10px;
}

/* Archetype Card in Modal */
.archetype-card {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 14px;
  text-align: left;
}

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

.archetype-emoji {
  font-size: 32px;
  line-height: 1;
}

.archetype-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-runway);
  display: block;
}

.archetype-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}

.archetype-quote {
  font-size: 12px;
  font-style: italic;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.archetype-diagnosis {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 10px;
}

.financial-drag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(244, 63, 94, 0.1);
  border: 1px dashed rgba(244, 63, 94, 0.35);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 11px;
}

.drag-label {
  color: #fca5a5;
  font-weight: 600;
}

.drag-value {
  font-family: var(--font-mono);
  font-weight: 800;
  color: #fb7185;
}

/* Scorecard & Viral Challenge Actions */
.scorecard-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.scorecard-action-btn {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  border: none;
}

.scorecard-action-btn.primary {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.scorecard-action-btn.primary:hover {
  background: rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
}

.scorecard-action-btn.challenge {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.scorecard-action-btn.challenge:hover {
  background: rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

/* 1-Click Calendar Strategy Call */
.calendar-booking-cta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.cal-booking-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.cal-booking-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.cal-booking-note {
  font-size: 10px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Small Screen Adaptations
   -------------------------------------------------------------------------- */
@media (max-height: 680px) {
  :root {
    --card-height: 340px;
  }
  .card-body {
    padding: 8px 0;
  }
  .dialogue-text {
    font-size: 14px;
  }
  .character-avatar {
    width: 48px;
    height: 48px;
    font-size: 30px;
  }
}
