/* ========================================
   PitchTank — Video Call UI
   Premium dark aesthetic with gold accents
   Superdesign-inspired elegance
   ======================================== */

/* Google Fonts - Playfair Display (elegant serif) + Inter (clean sans) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

/* ========================================
   Design System Variables
   ======================================== */
:root {
  /* === PRIMARY DARKS === */
  --bg-deep: #050505;
  --bg-card: #111111;
  --bg-elevated: #1a1a1a;
  --shark-blue-deep: #0a0a0a;
  --shark-blue-dark: #111111;
  --shark-blue-mid: #1a1a1a;
  --shark-blue-accent: #D4AF37;
  --shark-blue-glow: #FFD700;
  --shark-blue-light: #FFE55C;

  /* === MONEY GOLD === */
  --gold-rich: #D4AF37;
  --gold-bright: #FFD700;
  --gold-amber: #F59E0B;
  --gold-dark: #92702B;
  --accent-warm: #FF6B35;

  /* === DEAL STATUS === */
  --deal-green: #10B981;
  --deal-green-glow: #34D399;
  --danger-red: #DC2626;
  --danger-red-deep: #7F1D1D;

  /* === SURFACES (deep blacks) === */
  --surface-0: #050505;
  --surface-1: #0a0a0a;
  --surface-2: #111111;
  --surface-3: #1a1a1a;
  --surface-4: #252525;

  /* === TEXT HIERARCHY === */
  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA;
  --text-tertiary: #71717A;
  --text-muted: #52525B;

  /* === TYPOGRAPHY === */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* === SHADOWS === */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.7), 0 4px 16px rgba(0, 0, 0, 0.5);

  /* === GLOW EFFECTS === */
  --glow-gold: 0 0 20px rgba(212, 175, 55, 0.4), 0 0 40px rgba(212, 175, 55, 0.2);
  --glow-blue: 0 0 20px rgba(212, 175, 55, 0.3), 0 0 40px rgba(212, 175, 55, 0.15);
  --glow-green: 0 0 20px rgba(16, 185, 129, 0.4), 0 0 40px rgba(16, 185, 129, 0.2);
  --glow-red: 0 0 20px rgba(220, 38, 38, 0.4), 0 0 40px rgba(220, 38, 38, 0.2);
}

/* ========================================
   Global Noise Overlay
   ======================================== */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--gold-rich);
  color: #000;
}

/* App Container */
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  background: var(--bg-deep);
  position: relative;
}

/* Subtle atmospheric ambient effect */
.app::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 107, 53, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ========================================
   Views
   ======================================== */
.view {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.view--panel {
  display: flex;
  flex-direction: column;
}

/* ========================================
   Entry Form View
   ======================================== */
.view--entry {
  display: flex;
  align-items: safe center;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  background: var(--bg-deep);
  position: relative;
  z-index: 1;
}

.entry-container {
  width: 100%;
  max-width: 480px;
}

.entry-header {
  text-align: center;
  margin-bottom: 40px;
}

.entry-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--gold-rich) 0%, var(--accent-warm) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.entry-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.entry-subtitle {
  font-size: 15px;
  color: var(--text-tertiary);
  font-weight: 300;
}

/* Form */
.entry-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-row {
  display: flex;
  gap: 12px;
}

.form-group--flex {
  flex: 1;
}

.form-group--small {
  width: 120px;
  flex-shrink: 0;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-label-optional {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-tertiary);
}

.form-input,
.form-textarea,
.form-select {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--gold-rich);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: none;
  line-height: 1.5;
}

.form-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 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-select option {
  background-color: var(--surface-2);
  color: var(--text-primary);
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
}

/* Input with prefix/suffix */
.input-with-prefix,
.input-with-suffix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix,
.input-suffix {
  position: absolute;
  font-size: 14px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.input-prefix {
  left: 12px;
}

.input-suffix {
  right: 12px;
}

.form-input--with-prefix {
  padding-left: 28px;
}

.form-input--with-suffix {
  padding-right: 32px;
}

/* Optional field styling */
.form-group--optional .form-input {
  border-style: dashed;
}

/* Submit button */
.entry-submit {
  margin-top: 16px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: #000;
  background: linear-gradient(135deg, var(--gold-rich) 0%, var(--accent-warm) 100%);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.3);
}

.entry-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.5);
}

.entry-submit:active {
  transform: translateY(0);
}

/* Skip button (dev/testing) */
.entry-skip {
  margin-top: 8px;
  padding: 10px 24px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  background-color: transparent;
  border: 1px dashed var(--surface-4);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.entry-skip:hover {
  border-color: var(--text-tertiary);
  color: var(--text-secondary);
}

/* Quick Test Section */
.quick-test-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--surface-4);
}

.quick-test-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-align: center;
}

.quick-test-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.quick-test-select {
  flex: 1;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
  background-color: var(--surface-2);
  border: 1px solid var(--surface-4);
  border-radius: 8px;
  cursor: pointer;
}

.quick-test-select:focus {
  outline: none;
  border-color: var(--gold-rich);
}

.quick-test-select option {
  background-color: var(--surface-2);
  color: var(--text-primary);
}

/* ========================================
   Transition View
   ======================================== */
.view--transition {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, var(--surface-1) 0%, var(--surface-0) 100%);
}

.transition-content {
  text-align: center;
}

.transition-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--shark-blue-dark) 0%, var(--shark-blue-mid) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  box-shadow: var(--glow-blue);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: var(--glow-blue); }
  50% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.6), 0 0 60px rgba(59, 130, 246, 0.3); }
}

.transition-message {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

/* ========================================
   Header Bar
   ======================================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 0 20px;
  background: linear-gradient(90deg, var(--surface-1) 0%, var(--shark-blue-dark) 50%, var(--surface-1) 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold-rich) 0%, var(--gold-amber) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--surface-0);
  box-shadow: var(--glow-gold);
  font-weight: bold;
}

.meeting-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

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

.timer {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--surface-4);
  padding: 8px 16px;
  border-radius: 6px;
}

/* Timer states */
.timer[data-state="neutral"] {
  color: var(--text-primary);
  border-color: var(--surface-4);
}

.timer[data-state="warning"] {
  color: var(--gold-amber);
  border-color: var(--gold-amber);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.timer[data-state="critical"] {
  color: var(--danger-red);
  border-color: var(--danger-red);
  animation: timer-pulse 0.5s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
}

@keyframes timer-pulse {
  0%, 100% { opacity: 1; text-shadow: 0 0 10px rgba(220, 38, 38, 0.5); }
  50% { opacity: 0.7; text-shadow: 0 0 20px rgba(220, 38, 38, 0.8); }
}

/* Pressure bar */
.pressure-bar {
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--surface-4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.pressure-bar[data-state="neutral"] {
  background-color: var(--shark-blue-accent);
}

.pressure-bar[data-state="warning"] {
  background-color: var(--gold-amber);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.pressure-bar[data-state="critical"] {
  background-color: var(--danger-red);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

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

/* End Pitch tab button - styled as red action button */
.chat-tab--end {
  background: linear-gradient(135deg, var(--danger-red) 0%, #991B1B 100%) !important;
  color: #ffffff !important;
  border: none !important;
  margin-left: auto;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.chat-tab--end:hover {
  background: linear-gradient(135deg, #EF4444 0%, var(--danger-red) 100%) !important;
  transform: scale(1.02);
}

.chat-tab--end.leave-mode {
  background: linear-gradient(135deg, var(--gold-rich) 0%, var(--gold-amber) 100%) !important;
  color: var(--surface-0) !important;
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.3);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--shark-blue-mid) 0%, var(--shark-blue-dark) 100%);
  border: 2px solid var(--surface-4);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

/* ========================================
   Main Layout
   ======================================== */
.main-wrapper {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* ========================================
   Video Area
   ======================================== */
.video-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
  min-width: 0;
}

/* Participant Strip */
.participant-strip {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.participant {
  position: relative;
  flex-shrink: 0;
  width: 180px;
  cursor: pointer;
}

.participant-video {
  position: relative;
  height: 120px;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-1) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface-4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.participant:hover .participant-video {
  border-color: var(--shark-blue-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.participant-video--you {
  border-color: var(--shark-blue-accent);
  box-shadow: var(--glow-blue);
}

/* OUT state - shark has left the deal */
.participant-video--out {
  pointer-events: none;
}

.participant-video--out .participant-img {
  opacity: 0.3;
  filter: grayscale(100%) brightness(0.5) blur(1px);
}

.participant--out {
  pointer-events: none;
}

.participant-video--out::after {
  content: "OUT";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--danger-red) 0%, #991B1B 100%);
  padding: 10px 20px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 10;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  box-shadow: var(--glow-red);
}

/* INTERESTED state */
.participant-video--interested {
  border: 2px solid var(--gold-rich);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, var(--surface-2) 100%);
  animation: pulse-interest 0.5s ease-out;
  box-shadow: var(--glow-gold);
}

@keyframes pulse-interest {
  0% {
    transform: scale(1);
    box-shadow: var(--glow-gold);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6), 0 0 60px rgba(212, 175, 55, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: var(--glow-gold);
  }
}

/* Interrupt flash effect */
.participant-video.interrupt {
  filter: brightness(1.4) contrast(1.15);
  border-color: #ffffff;
  transition: filter 0.05s ease-out, border-color 0.05s ease-out;
}

.participant-video:not(.interrupt) {
  transition: filter 0.1s ease-out, border-color 0.15s ease;
}

.participant-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--surface-3) 0%, var(--surface-2) 100%);
  border: 2px solid var(--surface-4);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.participant-img,
.participant-webcam {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  background: #1a1a2e; /* Dark background to hide any white edges */
}

/* Fix for Robert Herjavec image - crop to hide white chair */
.participant[data-investor="daniel"] .participant-img {
  object-fit: cover;
  object-position: center 15%; /* Focus on face, crop bottom chair */
  transform: scale(1.2); /* Zoom in to hide chair edges */
  background: #1a1a2e;
}

.participant[data-investor="daniel"] .participant-video {
  overflow: hidden; /* Ensure zoom doesn't overflow */
}

.participant-webcam {
  transform: scaleX(-1);
  object-position: center center;
}

.participant-webcam:not([srcObject]) + .participant-avatar,
.participant-webcam[src=""] + .participant-avatar {
  display: flex;
}

.participant-video:has(.participant-webcam[srcObject]) .participant-avatar {
  display: none;
}

/* Participant overlay */
.participant-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  z-index: 2;
}

.participant-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.participant-badge {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.badge--live {
  background: linear-gradient(135deg, var(--deal-green) 0%, #059669 100%);
  color: var(--text-primary);
}

.badge--out {
  background: linear-gradient(135deg, var(--danger-red) 0%, #991B1B 100%);
  color: var(--text-primary);
}

.badge--interested {
  background: linear-gradient(135deg, var(--gold-rich) 0%, var(--gold-amber) 100%);
  color: var(--surface-0);
}

.badge--presenting {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-amber) 100%);
  color: var(--surface-0);
  box-shadow: var(--glow-gold);
}

/* Confidence Bar - Shows shark interest level */
.confidence-bar-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.5);
  z-index: 3;
  overflow: hidden;
}

.confidence-bar {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, var(--gold-amber) 0%, var(--deal-green) 100%);
  transition: width 0.5s ease-out, background 0.3s ease;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

/* Confidence bar color states */
.confidence-bar.low {
  background: linear-gradient(90deg, var(--danger-red) 0%, #F87171 100%);
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.5);
}

.confidence-bar.medium {
  background: linear-gradient(90deg, var(--gold-amber) 0%, var(--gold-bright) 100%);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.confidence-bar.high {
  background: linear-gradient(90deg, var(--deal-green) 0%, var(--deal-green-glow) 100%);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

/* Pulse animation when confidence changes significantly */
.confidence-bar.pulse {
  animation: confidenceBarPulse 0.5s ease-out;
}

@keyframes confidenceBarPulse {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.5); }
  100% { filter: brightness(1); }
}

/* Featured Video */
.featured-video {
  flex: 1;
  position: relative;
  background: radial-gradient(ellipse at center, var(--surface-2) 0%, var(--surface-1) 70%, var(--surface-0) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--surface-4);
  box-shadow: var(--shadow-lg);
}

/* Spotlight vignette effect */
.featured-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
  z-index: 1;
}

.featured-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-webcam {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  z-index: 0;
}

.featured-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--shark-blue-accent) 0%, var(--shark-blue-dark) 100%);
  border: 3px solid var(--surface-4);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}

.featured-name-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--surface-4);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 5;
}

.featured-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--surface-4);
  color: var(--text-primary);
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 8px;
  max-width: 80%;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
}

.caption-text {
  flex: 1;
}

.caption-listening {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--deal-green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.listening-dot {
  width: 8px;
  height: 8px;
  background-color: var(--deal-green);
  border-radius: 50%;
  animation: listening-pulse 1s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

@keyframes listening-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.caption-listening.hidden {
  display: none;
}

/* Controls Bar */
.controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  flex-shrink: 0;
}

.controls-left,
.controls-right {
  flex: 1;
}

.controls-right {
  display: flex;
  justify-content: flex-end;
}

.controls-center {
  display: flex;
  gap: 8px;
}

.meeting-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--surface-2);
  border: 1px solid var(--surface-4);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.copy-btn:hover {
  color: var(--text-primary);
}

.control-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--surface-4);
  background-color: var(--surface-2);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.control-btn:hover {
  background-color: var(--surface-3);
  border-color: var(--gold-dark);
}

.control-btn--active {
  background: linear-gradient(135deg, var(--gold-rich) 0%, var(--gold-amber) 100%);
  border-color: var(--gold-rich);
  box-shadow: var(--glow-gold);
}

.control-btn--active:hover {
  background: linear-gradient(135deg, var(--gold-amber) 0%, var(--gold-rich) 100%);
}

.control-btn--muted {
  background: linear-gradient(135deg, var(--danger-red) 0%, #B91C1C 100%);
  border-color: var(--danger-red);
}

.control-btn--muted:hover {
  background: linear-gradient(135deg, #B91C1C 0%, var(--danger-red) 100%);
}

.leave-btn,
.end-pitch-btn {
  background: linear-gradient(135deg, var(--danger-red) 0%, #B91C1C 100%);
  color: var(--text-primary);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-md);
}

.leave-btn:hover,
.end-pitch-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-red), var(--shadow-lg);
}

.leave-btn--final {
  background: linear-gradient(135deg, var(--surface-3) 0%, var(--surface-2) 100%);
}

.leave-btn--final:hover {
  background: linear-gradient(135deg, var(--surface-4) 0%, var(--surface-3) 100%);
}

/* ========================================
   Chat Panel
   ======================================== */
.chat-panel {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface-1) 0%, var(--surface-0) 100%);
  border-left: 1px solid var(--surface-4);
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--surface-4);
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.chat-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

/* Chat Tabs */
.chat-tabs {
  display: flex;
  gap: 4px;
}

.chat-tab {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.chat-tab:hover {
  color: var(--text-secondary);
  background: var(--surface-3);
}

.chat-tab--active {
  color: var(--text-primary);
  background: var(--surface-3);
}

.offers-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 9px;
  background: var(--success);
  color: white;
  font-size: 11px;
  font-weight: 600;
}

/* Offers Panel */
.offers-panel {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.offers-empty {
  text-align: center;
  color: var(--text-tertiary);
  padding: 32px 16px;
}

.offers-empty p {
  margin: 0 0 8px;
}

.offers-hint {
  font-size: 12px;
  opacity: 0.7;
}

.offers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Offer Card in Panel */
.offer-panel-card {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 12px;
  border: 1px solid var(--surface-4);
}

.offer-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.offer-panel-shark {
  font-weight: 600;
  color: var(--text-primary);
}

.offer-panel-timer {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.offer-panel-timer.expiring {
  color: var(--warning);
  animation: pulse 1s ease-in-out infinite;
}

.offer-panel-timer.critical {
  color: var(--danger);
  animation: pulse 0.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.offer-panel-terms {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.offer-panel-terms .amount {
  color: var(--success);
  font-weight: 600;
}

.offer-panel-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.offer-panel-actions .offer-btn {
  flex: 1;
  min-width: 60px;
  padding: 6px 8px;
  font-size: 11px;
}

.chat-menu-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background-color: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.chat-menu-btn:hover {
  background-color: var(--surface-3);
  color: var(--text-primary);
}

/* Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  background-color: transparent;
  padding: 8px 12px;
  border-radius: 0;
  border-left: 2px solid var(--surface-4);
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.message-author {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.message-time {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.message-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* System messages — full-width, italic, smaller */
.message--system {
  background-color: transparent;
  border-left: none;
  border-radius: 0;
  padding: 6px 0;
  margin: 4px 0;
}

.message--system .message-text {
  font-size: 11px;
  color: var(--text-tertiary);
  font-style: italic;
  text-align: center;
}

/* Founder (You) messages — right-aligned, distinct */
.message--you {
  background: rgba(212, 175, 55, 0.08);
  border-left: none;
  border-right: 2px solid var(--gold-rich);
  border-radius: 6px 0 0 6px;
  margin-left: 32px;
  text-align: right;
}

.message--you .message-header {
  flex-direction: row-reverse;
}

.message--you .message-author {
  color: var(--gold-rich);
}

.message--you .message-text {
  color: var(--text-primary);
}

/* Thinking placeholder — muted */
.message--thinking {
  border-left-color: var(--surface-3);
  opacity: 0.6;
}

.message--thinking .message-author {
  font-weight: 500;
}

.message--thinking .message-text {
  color: var(--text-tertiary);
  font-style: italic;
}

/* Chat Input - Now at top, below header */
.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--surface-4);
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Response guidance takes full width, appears first */
.chat-input-area .response-guidance {
  width: 100%;
  order: -1;
  margin-bottom: 4px;
}

/* Input controls container - inline flex to keep them together */
.chat-input-area .record-btn,
.chat-input-area .send-btn {
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  font-size: 13px;
  font-family: var(--font-body);
  border: 1px solid var(--surface-4);
  border-radius: 8px;
  background-color: var(--surface-2);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.chat-input:focus {
  border-color: var(--gold-rich);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.send-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--gold-rich) 0%, var(--accent-warm) 100%);
  color: var(--bg-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.send-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-gold);
}

/* Scrollbar */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: var(--surface-1);
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--surface-4);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--shark-blue-mid);
}

/* Mobile User Preview - hidden on desktop */
.mobile-user-preview {
  display: none;
}

/* ========================================
   Responsive - Mobile First Design
   Optimized for sharks visibility + chat usability
   ======================================== */

/* Tablet and below - Stacked layout with shark grid */
@media (max-width: 900px) {
  .main-wrapper {
    flex-direction: column;
    height: 100%;
  }

  /* Compact video area - sharks only, no featured */
  .video-area {
    flex: 0 0 auto;
    min-height: auto;
    padding: 8px;
    gap: 8px;
  }

  /* Hide the featured video on mobile - focus on sharks */
  .featured-video {
    display: none;
  }

  /* Hide controls bar on mobile to save space */
  .controls-bar {
    display: none;
  }

  /* 2x3 grid for shark strip */
  .participant-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 6px;
    overflow: visible;
    padding: 0;
  }

  /* Hide the "You" participant on mobile - it's in the chat area */
  .participant--you {
    display: none;
  }

  .participant {
    width: 100%;
    flex-shrink: 0;
  }

  .participant-video {
    height: 70px;
    border-radius: 8px;
  }

  .participant-name {
    font-size: 9px;
    padding: 2px 4px;
  }

  .participant-badge {
    font-size: 7px;
    padding: 2px 5px;
  }

  /* Chat panel takes most of the screen */
  .chat-panel {
    flex: 1;
    width: 100%;
    max-width: none;
    border-left: none;
    border-top: 1px solid var(--surface-4);
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  /* Make chat messages scrollable and flexible - reversed so newest at top */
  .chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column-reverse;
  }

  /* Compact header for mobile */
  .chat-header {
    padding: 8px 12px;
    flex-shrink: 0;
  }

  .chat-tab {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* Mobile phones - further refinements */
@media (max-width: 600px) {
  .header {
    padding: 6px 10px;
    height: auto;
    min-height: 44px;
  }

  .meeting-title {
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .header-left .logo {
    width: 32px;
    height: 32px;
  }

  .header-left .logo svg {
    width: 16px;
    height: 16px;
  }

  /* Even more compact shark grid */
  .video-area {
    padding: 6px;
  }

  .participant-strip {
    gap: 4px;
  }

  .participant-video {
    height: 60px;
    border-width: 1px;
  }

  .participant-name {
    font-size: 8px;
  }

  .participant-badge {
    font-size: 6px;
    padding: 1px 4px;
  }

  /* OUT overlay smaller on mobile */
  .participant-video--out::after {
    font-size: 14px;
    padding: 4px 8px;
    letter-spacing: 0.1em;
  }

  /* Chat messages area */
  .chat-messages {
    padding: 8px;
  }

  .message {
    padding: 6px 10px;
    font-size: 13px;
  }

  .message-author {
    font-size: 11px;
  }

  /* Input area - larger touch targets */
  .chat-input-area {
    padding: 10px;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
  }

  /* Response guidance above input - full width on its own row */
  .chat-input-area .response-guidance {
    width: 100%;
    order: -1;
    padding: 8px 12px;
    font-size: 12px;
    margin-bottom: 4px;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
  }

  /* Keep input controls on same row */
  .chat-input-area .record-btn,
  .chat-input-area .send-btn {
    flex-shrink: 0;
  }

  .chat-input-area .chat-input {
    flex: 1;
    min-width: 0;
  }

  /* Mobile user preview - show yourself */
  .mobile-user-preview {
    display: block;
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold-rich);
    box-shadow: var(--glow-gold);
    flex-shrink: 0;
    background: var(--surface-2);
  }

  .mobile-user-webcam {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
  }

  .mobile-user-avatar {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--bg-deep);
    background: linear-gradient(135deg, var(--gold-rich) 0%, var(--gold-dark) 100%);
  }

  /* Hide avatar when webcam is active */
  .mobile-user-preview.has-webcam .mobile-user-avatar {
    display: none;
  }

  .chat-input {
    flex: 1;
    min-width: 0;
    font-size: 16px; /* Prevent iOS zoom on focus */
    padding: 12px 14px;
    height: 48px;
    border-radius: 24px;
  }

  .record-btn,
  .send-btn {
    width: 48px;
    height: 48px;
    min-width: 48px; /* Touch target minimum */
    border-radius: 50%;
    flex-shrink: 0;
  }

  /* Offer cards on mobile - compact */
  .offer-card {
    padding: 10px;
    margin: 6px 0;
  }

  .offer-shark {
    font-size: 12px;
  }

  .offer-amount,
  .offer-equity {
    font-size: 18px;
  }

  .offer-actions {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .offer-btn {
    padding: 10px 8px;
    font-size: 11px;
  }

  .guidance-close {
    padding: 4px 8px;
    font-size: 16px;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .participant-strip {
    gap: 3px;
  }

  .participant-video {
    height: 50px;
  }

  .participant-name {
    font-size: 7px;
  }

  .participant-badge {
    font-size: 5px;
    padding: 1px 3px;
  }

  .chat-input {
    padding: 10px 12px;
    font-size: 16px;
  }

  .record-btn,
  .send-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
}

/* Entry form mobile styles */
@media (max-width: 600px) {
  .entry-container {
    padding: 16px;
    margin: 8px;
    max-height: 95vh;
    overflow-y: auto;
  }

  .entry-header h1 {
    font-size: 24px;
  }

  .entry-header p {
    font-size: 14px;
  }

  .form-row {
    flex-direction: column;
  }

  .form-group {
    width: 100%;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px; /* Prevent iOS zoom */
    padding: 12px;
  }

  .submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
  }

  .auth-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .auth-btn {
    width: 100%;
    padding: 12px;
  }

  .credits-bar {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* Auth view mobile */
@media (max-width: 600px) {
  .auth-container {
    padding: 20px;
    margin: 16px;
  }

  .auth-header h1 {
    font-size: 28px;
  }

  .auth-benefits {
    gap: 12px;
  }

  .benefit-item {
    padding: 12px;
  }
}

/* Mobile landscape mode - side by side layout */
@media (max-width: 900px) and (orientation: landscape) {
  .main-wrapper {
    flex-direction: row;
  }

  .video-area {
    flex: 0 0 30%;
    max-width: 30%;
    padding: 6px;
  }

  /* Show featured video in landscape for speaker focus */
  .featured-video {
    display: flex;
    flex: 1;
    min-height: 120px;
  }

  /* Horizontal strip in landscape */
  .participant-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    overflow: visible;
  }

  .participant {
    width: calc(50% - 2px);
    flex-shrink: 0;
  }

  .participant--you {
    display: block;
  }

  .participant-video {
    height: 50px;
  }

  /* Show controls in landscape */
  .controls-bar {
    display: flex;
    padding: 6px 0;
  }

  .chat-panel {
    flex: 1;
    border-top: none;
    border-left: 1px solid var(--surface-4);
  }

  .chat-messages {
    padding: 8px;
  }
}

/* Confidence delta on mobile - smaller */
@media (max-width: 600px) {
  .confidence-delta {
    font-size: 11px;
    padding: 2px 6px;
    top: 4px;
    right: 4px;
  }
}

/* ========================================
   Speaking Indicator
   ======================================== */
.participant-video--speaking {
  box-shadow: 0 0 0 3px var(--deal-green), var(--glow-green);
}

.participant-video--speaking::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
  animation: speaking-pulse 1s ease-in-out infinite;
}

@keyframes speaking-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ========================================
   User Messages
   ======================================== */
.message--user {
  background: rgba(212, 175, 55, 0.1);
  border-left: 2px solid var(--gold-rich);
  border-radius: 0 8px 8px 0;
  padding: 8px 12px;
  margin-left: 20px;
}

.message--user .message-author {
  color: var(--gold-rich);
}

/* ========================================
   Offer Cards - THE MONEY MOMENT
   ======================================== */
.offer-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-left: 4px solid var(--gold-rich);
  border-radius: 8px;
  padding: 14px;
  margin: 8px 0;
  box-shadow: var(--shadow-md);
  animation: offer-appear 0.3s ease-out;
}

@keyframes offer-appear {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.offer-card--declined {
  opacity: 0.4;
  border-left-color: var(--surface-4);
  background: var(--surface-2);
  filter: grayscale(50%);
}

.offer-card--expired {
  opacity: 0.3;
  border-left-color: var(--danger, #ef4444);
  background: var(--surface-2);
  filter: grayscale(70%);
}

.offer-card--expired::after {
  content: 'EXPIRED';
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 600;
  color: var(--danger, #ef4444);
  letter-spacing: 0.05em;
}

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

.offer-shark {
  font-weight: 700;
  color: var(--gold-rich);
  font-size: 14px;
}

.offer-badge {
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--gold-rich) 0%, var(--gold-amber) 100%);
  color: var(--surface-0);
  font-size: 10px;
  font-weight: 400;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.1em;
  box-shadow: var(--glow-gold);
}

.offer-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 12px;
}

.offer-amount {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-bright);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.offer-for {
  font-size: 12px;
  color: var(--text-tertiary);
}

.offer-equity {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.offer-royalty {
  display: block;
  width: 100%;
  font-size: 11px;
  color: var(--gold-amber);
  margin-top: 2px;
}

.offer-conditions {
  display: block;
  width: 100%;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  border-left: 2px solid var(--gold-amber);
}

.offer-conditions strong {
  color: var(--gold-amber);
}

.offer-rationale {
  display: block;
  width: 100%;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 6px;
}

.offer-valuation {
  display: block;
  width: 100%;
  font-size: 10px;
  color: var(--shark-blue-light);
  margin-top: 4px;
  font-family: var(--font-mono);
}

/* Deal Type Badge Variants */
.offer-badge--cash_equity {
  background: linear-gradient(135deg, var(--gold-rich) 0%, var(--gold-amber) 100%);
}

.offer-badge--safe_cap,
.offer-badge--safe_milestone {
  background: linear-gradient(135deg, var(--shark-blue-accent) 0%, var(--shark-blue-glow) 100%);
  color: var(--text-primary);
}

.offer-badge--tranche {
  background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
  color: var(--text-primary);
}

.offer-badge--royalty {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-rich) 100%);
  color: var(--text-primary);
}

.offer-badge--no_offer {
  background: linear-gradient(135deg, var(--surface-3) 0%, var(--surface-4) 100%);
  color: var(--text-secondary);
}

/* Offer Panel Type Label */
.offer-panel-type {
  font-family: var(--font-display);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--surface-3);
  color: var(--shark-blue-light);
  letter-spacing: 0.05em;
}

.offer-panel-terms .conditions {
  margin-top: 4px;
  color: var(--text-tertiary);
}

.offer-panel-terms .rationale {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 10px;
}

.offer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.offer-btn {
  padding: 8px 10px;
  border-radius: 6px;
  border: none;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-align: center;
}

.offer-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.offer-btn--accept {
  background: linear-gradient(135deg, var(--deal-green) 0%, #059669 100%);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.offer-btn--accept:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--glow-green);
}

.offer-btn--counter {
  background: linear-gradient(135deg, var(--gold-rich) 0%, var(--gold-amber) 100%);
  color: var(--surface-0);
  box-shadow: var(--shadow-sm);
}

.offer-btn--counter:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--glow-gold);
}

.offer-btn--decline {
  background: var(--surface-3);
  color: var(--text-secondary);
  border: 1px solid var(--surface-4);
}

.offer-btn--decline:hover:not(:disabled) {
  background: var(--surface-4);
  color: var(--text-primary);
}

.offer-btn--reply {
  background: var(--surface-3);
  color: #60a5fa;
  border: 1px solid #60a5fa;
}

.offer-btn--reply:hover:not(:disabled) {
  background: #60a5fa;
  color: white;
}

/* ========================================
   Modal
   ======================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: linear-gradient(135deg, var(--surface-1) 0%, var(--surface-0) 100%);
  border: 1px solid var(--surface-4);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 400px;
  margin: 16px;
  box-shadow: var(--shadow-lg);
}

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

.modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.15s ease;
}

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

.modal-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
}

/* Original offer display in counter modal */
.original-offer-display {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid var(--gold-rich);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.original-offer-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.original-offer-terms {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-bright);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn--cancel {
  background: var(--surface-3);
  color: var(--text-secondary);
  border: 1px solid var(--surface-4);
}

.btn--cancel:hover {
  background: var(--surface-4);
  color: var(--text-primary);
}

.btn--submit {
  background: linear-gradient(135deg, var(--gold-rich) 0%, var(--accent-warm) 100%);
  color: var(--bg-deep);
  box-shadow: var(--shadow-sm);
}

.btn--submit:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-gold);
}

/* ========================================
   Transcript Panel
   ======================================== */
.transcript-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--surface-4);
  background-color: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  transition: all 0.15s ease;
}

.transcript-toggle-btn:hover {
  background-color: var(--surface-3);
  color: var(--text-primary);
}

.transcript-toggle-btn.active {
  background: linear-gradient(135deg, var(--gold-rich) 0%, var(--gold-amber) 100%);
  border-color: var(--gold-rich);
  color: var(--bg-deep);
  box-shadow: var(--glow-gold);
}

.transcript-panel {
  position: fixed;
  bottom: 80px;
  left: 20px;
  width: 360px;
  max-height: 300px;
  background: linear-gradient(135deg, var(--surface-1) 0%, var(--surface-0) 100%);
  border: 1px solid var(--surface-4);
  border-radius: 12px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.transcript-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--surface-4);
}

.transcript-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.transcript-close {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.15s ease;
}

.transcript-close:hover {
  color: var(--text-primary);
}

.transcript-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  max-height: 240px;
}

.transcript-empty {
  color: var(--text-tertiary);
  font-size: 13px;
  font-style: italic;
}

.transcript-entry {
  margin-bottom: 8px;
  padding: 8px 12px;
  background-color: var(--surface-2);
  border-radius: 6px;
  border-left: 2px solid var(--surface-4);
}

.transcript-time {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.transcript-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ========================================
   Record Button & Live Transcript
   ======================================== */
.record-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #3f3f46;
  background-color: transparent;
  color: #a1a1aa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.record-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.record-btn.recording {
  background-color: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  animation: pulse-record 1s ease-in-out infinite;
}

@keyframes pulse-record {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.chat-input-area {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #27272a;
  align-items: center;
}

/* Make input controls row */
.chat-input-area > .record-btn,
.chat-input-area > .chat-input,
.chat-input-area > .send-btn {
  flex-shrink: 0;
}

.chat-transcript {
  padding: 8px 12px;
  background: rgba(37, 99, 235, 0.1);
  border-top: 1px solid var(--shark-blue-accent);
  font-size: 13px;
}

.transcript-label {
  color: var(--shark-blue-light);
  font-weight: 600;
  margin-right: 8px;
}

.transcript-live {
  color: var(--text-primary);
}

/* ========================================
   Ending Overlays - THE BIG MOMENT
   ======================================== */
.ending-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.5s ease-out;
}

.ending-overlay--sad {
  background: radial-gradient(ellipse at center, rgba(127, 29, 29, 0.2) 0%, var(--surface-0) 70%);
}

.ending-overlay--success {
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.15) 0%, var(--surface-0) 70%);
}

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

.ending-content {
  text-align: center;
  animation: slideUp 0.6s ease-out 0.2s both;
}

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

.ending-icon {
  font-size: 80px;
  margin-bottom: 24px;
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.ending-title {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0 0 16px 0;
  letter-spacing: 0.1em;
}

.ending-overlay--sad .ending-title {
  color: var(--danger-red);
  text-shadow: 0 0 30px rgba(220, 38, 38, 0.5);
}

.ending-overlay--success .ending-title {
  color: var(--gold-bright);
  text-shadow: 0 0 40px rgba(255, 215, 0, 0.6), 0 0 80px rgba(255, 215, 0, 0.3);
  animation: goldGlow 2s ease-in-out infinite;
}

@keyframes goldGlow {
  0%, 100% { text-shadow: 0 0 40px rgba(255, 215, 0, 0.6), 0 0 80px rgba(255, 215, 0, 0.3); }
  50% { text-shadow: 0 0 60px rgba(255, 215, 0, 0.8), 0 0 100px rgba(255, 215, 0, 0.5); }
}

.ending-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  max-width: 400px;
}

.ending-message {
  font-size: 14px;
  color: var(--text-tertiary);
  margin: 0 0 40px 0;
  max-width: 500px;
  line-height: 1.6;
}

.ending-btn {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-body);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ending-overlay--sad .ending-btn {
  background: var(--surface-3);
  color: var(--text-primary);
  border: 1px solid var(--surface-4);
}

.ending-overlay--sad .ending-btn:hover {
  background: var(--surface-4);
  transform: translateY(-2px);
}

.ending-overlay--success .ending-btn {
  background: linear-gradient(135deg, var(--gold-rich) 0%, var(--gold-amber) 100%);
  color: var(--surface-0);
  box-shadow: var(--glow-gold);
}

.ending-overlay--success .ending-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.6), 0 0 60px rgba(212, 175, 55, 0.3);
}

.ending-overlay--success .ending-btn--share {
  background: linear-gradient(135deg, var(--gold-rich) 0%, var(--gold-amber) 100%);
  margin-bottom: 12px;
  display: block;
  width: 100%;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.ending-overlay--success .ending-btn--secondary {
  background: transparent;
  border: 1px solid var(--surface-4);
  color: var(--text-secondary);
  font-weight: 500;
  padding: 12px 24px;
  font-size: 14px;
}

.ending-overlay--success .ending-btn--secondary:hover {
  background: var(--surface-3);
  box-shadow: none;
}

/* Deal Details */
.deal-details {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 2px solid var(--gold-rich);
  border-radius: 16px;
  padding: 28px 36px;
  margin-bottom: 32px;
  animation: dealPop 0.5s ease-out 0.4s both;
  box-shadow: var(--glow-gold);
}

@keyframes dealPop {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.deal-shark {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--gold-rich);
  margin-bottom: 16px;
}

.deal-terms {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.deal-amount {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 700;
  color: var(--gold-bright);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.deal-for {
  font-size: 16px;
  color: var(--text-tertiary);
}

.deal-equity {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 700;
  color: var(--text-primary);
}

.deal-royalty {
  margin-top: 12px;
  font-size: 14px;
  color: var(--gold-amber);
}

/* ========================================
   AUTH VIEW STYLES
   ======================================== */

.view--auth {
  background: var(--bg-deep);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.view--auth::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.auth-container {
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.auth-header {
  margin-bottom: 48px;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--gold-rich) 0%, var(--accent-warm) 100%);
  border-radius: 20px;
  margin-bottom: 28px;
  color: #000;
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3);
}

.auth-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.auth-subtitle {
  font-size: 16px;
  color: var(--text-tertiary);
  font-weight: 300;
}

.auth-content {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 36px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-btn--twitter {
  background: var(--text-primary);
  color: var(--bg-deep);
}

.auth-btn--twitter:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.auth-btn--twitter:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-note {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 16px;
  line-height: 1.6;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 28px 0;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  padding: 0 16px;
}

.auth-btn--guest {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-btn--guest:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--gold-rich);
  color: var(--text-primary);
}

.auth-guest-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Auth logged-in state */
.auth-logged-in {
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.auth-user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
}

.auth-user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-rich);
  box-shadow: var(--glow-gold);
}

.auth-user-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.auth-btn--primary {
  background: linear-gradient(135deg, var(--gold-rich) 0%, var(--gold-amber) 100%);
  color: var(--surface-0);
  box-shadow: var(--shadow-sm);
}

.auth-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-gold);
}

.auth-btn--secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--surface-4);
}

.auth-btn--secondary:hover {
  background: var(--surface-3);
  color: var(--text-primary);
}

.auth-footer {
  text-align: center;
}

.auth-leaderboard-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.auth-leaderboard-btn:hover {
  background: var(--surface-3);
  color: var(--gold-rich);
}

/* ========================================
   USER BAR (Entry Form)
   ======================================== */

.user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface-1);
  border: 1px solid var(--surface-4);
  border-radius: 12px;
  margin-bottom: 24px;
}

.user-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-bar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-dark);
}

.user-bar-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.user-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--surface-4);
  border-radius: 8px;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-bar-btn:hover {
  background: var(--surface-3);
  color: var(--text-primary);
}

.user-bar-btn--logout:hover {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
  color: var(--danger-red);
}

/* Entry Back Button Row */
.entry-back-row {
  width: 100%;
  margin-bottom: 16px;
}

.entry-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--surface-4);
  border-radius: 8px;
  color: var(--text-tertiary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.entry-back-btn:hover {
  background: var(--surface-2);
  border-color: var(--shark-blue-accent);
  color: var(--text-secondary);
}

.entry-back-btn svg {
  flex-shrink: 0;
}

/* ========================================
   LEADERBOARD VIEW STYLES
   ======================================== */

.view--leaderboard {
  background: linear-gradient(180deg, var(--surface-0) 0%, var(--surface-1) 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

.view--leaderboard::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.leaderboard-container {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 40px;
  position: relative;
  z-index: 1;
}

.leaderboard-header {
  margin-bottom: 24px;
}

.leaderboard-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 16px;
  transition: color 0.2s ease;
}

.leaderboard-back:hover {
  color: var(--text-primary);
}

.leaderboard-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--gold-rich);
  margin-bottom: 16px;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.leaderboard-tabs {
  display: flex;
  gap: 8px;
}

.leaderboard-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--surface-4);
  border-radius: 8px;
  color: var(--text-tertiary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.leaderboard-tab:hover {
  background: var(--surface-3);
  color: var(--text-primary);
}

.leaderboard-tab--active {
  background: linear-gradient(135deg, var(--gold-rich) 0%, var(--gold-amber) 100%);
  border-color: var(--gold-rich);
  color: var(--surface-0);
  box-shadow: var(--glow-gold);
}

.leaderboard-tab--active:hover {
  background: linear-gradient(135deg, var(--gold-amber) 0%, var(--gold-rich) 100%);
}

/* User Card */
.leaderboard-user-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
  border: 2px solid var(--gold-rich);
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: var(--glow-gold);
}

.user-card-rank {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--gold-rich);
  min-width: 40px;
}

.user-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-dark);
}

.user-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.user-card-company {
  font-size: 12px;
  color: var(--text-tertiary);
}

.user-card-amount {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-bright);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Leaderboard List */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leaderboard-loading,
.leaderboard-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: var(--text-tertiary);
  text-align: center;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--surface-4);
  border-top-color: var(--gold-rich);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

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

/* Leaderboard Entry - Expanded Layout */
.leaderboard-entry {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--surface-1);
  border: 1px solid var(--surface-4);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.leaderboard-entry:hover {
  background: var(--surface-2);
  border-color: var(--shark-blue-mid);
  transform: translateX(4px);
}

.leaderboard-entry--top {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, var(--surface-1) 100%);
  border-color: rgba(212, 175, 55, 0.3);
}

.leaderboard-entry--top:first-child {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, var(--surface-1) 100%);
  border-color: var(--gold-rich);
  box-shadow: var(--glow-gold);
}

/* Entry Header Row */
.view--entry .entry-header,
.leaderboard-entry .entry-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.entry-rank {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-tertiary);
  min-width: 32px;
}

.leaderboard-entry--top:first-child .entry-rank {
  color: var(--gold-bright);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.leaderboard-entry--top:nth-child(2) .entry-rank {
  color: #C0C0C0;
  text-shadow: 0 0 8px rgba(192, 192, 192, 0.5);
}

.leaderboard-entry--top:nth-child(3) .entry-rank {
  color: #CD7F32;
  text-shadow: 0 0 8px rgba(205, 127, 50, 0.5);
}

.leaderboard-entry .entry-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-3);
  flex-shrink: 0;
}

.entry-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.entry-deal-amount {
  display: flex;
  align-items: center;
  gap: 8px;
}

.entry-amount {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-bright);
}

.entry-verified {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  color: var(--deal-green);
}

/* Entry Details Section */
.entry-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 44px;
}

/* When logo is present, align details with the text after logo */
.leaderboard-entry:has(.entry-logo) .entry-details {
  padding-left: 88px;
}

.entry-company {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.entry-description {
  font-size: 12px;
  color: var(--text-tertiary);
  font-style: italic;
  line-height: 1.4;
}

.entry-terms {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.entry-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.entry-shark {
  font-size: 12px;
  color: var(--gold-dark);
}

.entry-metrics {
  font-size: 12px;
  color: var(--shark-blue-light);
  font-weight: 500;
}

/* Legacy support */
.entry-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.entry-deal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

/* ========================================
   Verification UI
   ======================================== */

.form-group--verification {
  margin-top: 16px;
  padding: 16px;
  background: rgba(30, 58, 90, 0.3);
  border: 1px solid var(--surface-4);
  border-radius: 12px;
}

.verification-hint {
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.verification-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.verification-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.verification-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface-2);
  border: 1px solid var(--surface-4);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.verification-btn:hover {
  background: var(--surface-3);
  border-color: var(--shark-blue-accent);
}

.verification-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.verification-icon {
  flex-shrink: 0;
}

.verification-desc {
  font-size: 11px;
  color: var(--text-tertiary);
  padding-left: 4px;
}

.verification-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
}

/* Verification level styles */
.verification-status.verification-verified {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.verification-status.verification-verified .verification-badge {
  color: var(--deal-green);
}

.verification-status.verification-followed {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
}

.verification-status.verification-followed .verification-badge {
  color: var(--shark-blue-accent);
}

.verification-status.verification-claimed {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.3);
}

.verification-status.verification-claimed .verification-badge {
  color: var(--gold-rich);
}

.verification-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--deal-green);
  font-weight: 600;
  font-size: 14px;
}

.verification-details {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ========================================
   Modal Styles (Search Modal)
   ======================================== */

.modal.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal.search-modal .modal-content,
.modal-content.search-modal-content {
  background: linear-gradient(135deg, var(--surface-1) 0%, var(--surface-0) 100%);
  border: 1px solid var(--surface-4);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.modal-body p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 14px;
}

.search-input-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.search-spinner {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid var(--surface-4);
  border-top-color: var(--gold-rich);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--surface-4);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.search-result-item:hover {
  background: var(--surface-3);
  border-color: var(--shark-blue-accent);
}

.search-result-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-1);
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  font-size: 12px;
  color: var(--text-tertiary);
}

.search-result-tvl {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--gold-rich);
  font-size: 14px;
}

.verification-result {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
}

.verification-result.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--deal-green);
}

.verification-result.error {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: var(--danger-red);
}

.verification-result.warning {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-rich);
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold-rich) 0%, var(--accent-warm) 100%);
  color: var(--bg-deep);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-gold);
}

.btn--primary:disabled {
  background: var(--shark-blue-dark);
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ========================================
   Demo Mode Styles
   ======================================== */

/* Demo Banner - Fixed at top of panel view */
.demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, var(--gold-amber), var(--gold-dark));
  color: var(--text-primary);
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), var(--glow-gold);
  animation: slideDown 0.3s ease-out;
  border-bottom: 1px solid var(--gold-rich);
}

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

.demo-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.demo-badge {
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.demo-badge::before {
  content: "🎬";
}

.demo-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
}

.demo-cta {
  background: var(--surface-0);
  color: var(--gold-bright);
  border: 1px solid var(--gold-rich);
  padding: 8px 16px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.demo-cta:hover {
  transform: translateY(-1px);
  background: var(--surface-1);
  box-shadow: var(--glow-gold);
}

.demo-cta .x-logo {
  font-weight: 900;
  font-size: 16px;
}

/* Disabled state for demo mode inputs */
.demo-disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none;
}

.demo-disabled::after {
  content: "🔒";
  margin-left: 4px;
  font-size: 12px;
}

/* Demo End Overlay */
.demo-end-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 10, 18, 0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(12px);
}

.demo-end-overlay.visible {
  opacity: 1;
}

.demo-end-content {
  background: linear-gradient(135deg, var(--shark-blue-dark) 0%, var(--shark-blue-deep) 100%);
  border: 2px solid var(--gold-rich);
  border-radius: 16px;
  padding: 40px 50px;
  text-align: center;
  max-width: 450px;
  box-shadow: var(--shadow-lg), var(--glow-gold);
  animation: scaleIn 0.3s ease-out;
}

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

.demo-end-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.demo-end-content h2 {
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: 32px;
  margin-bottom: 16px;
  font-weight: 400;
  letter-spacing: 2px;
  text-shadow: var(--glow-gold);
}

.demo-end-content p {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.demo-end-content p strong {
  color: var(--shark-blue-light);
}

.demo-end-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.demo-end-cta {
  background: linear-gradient(135deg, var(--gold-rich), var(--accent-warm));
  color: var(--bg-deep);
  border: none;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.demo-end-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-gold);
}

.demo-end-cta .x-logo {
  font-weight: 900;
  font-size: 18px;
}

.demo-end-secondary {
  background: transparent;
  color: var(--text-tertiary);
  border: 1px solid var(--surface-4);
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.demo-end-secondary:hover {
  border-color: var(--shark-blue-mid);
  color: var(--text-secondary);
}

/* Adjust panel view when demo banner is visible */
.view--panel:has(.demo-banner[style*="display: flex"]) .header {
  margin-top: 44px;
}

/* ========================================
   Special Effects & Animations
   ======================================== */

/* Gold Pulse Animation - for highlights and emphasis */
@keyframes goldPulse {
  0%, 100% {
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6), 0 0 40px rgba(212, 175, 55, 0.3);
  }
}

/* Blue Glow Animation - for interactive elements */
@keyframes blueGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
  }
  50% {
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.5), 0 0 50px rgba(37, 99, 235, 0.2);
  }
}

/* Subtle Float Animation - for cards */
@keyframes subtleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Shimmer Effect - for money/value displays */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Success Burst Animation */
@keyframes successBurst {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Apply gold shimmer to money amounts */
.money-shimmer {
  background: linear-gradient(
    90deg,
    var(--gold-rich) 0%,
    var(--gold-bright) 25%,
    var(--gold-rich) 50%,
    var(--gold-bright) 75%,
    var(--gold-rich) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* Enhanced focus states with blue glow */
input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--shark-blue-accent), var(--glow-blue);
}

/* Smooth hover transitions for all interactive elements */
button,
a,
.pitch-card,
.offer-item,
.leaderboard-entry {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Ambient underwater vignette effect on main app */
.app::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(10, 22, 40, 0.4) 100%
  );
  z-index: 9998;
}

/* Spotlight effect on main content */
.main-stage::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 100%;
  background: radial-gradient(
    ellipse at center top,
    rgba(212, 175, 55, 0.05) 0%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 0;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ========================================
   Deal Flow Animations & Notifications
   ======================================== */

/* Slide animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}

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

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

/* Pulse animation for urgency */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* Bidding war notification */
.bidding-war-notification {
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bidding-war-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bidding-war-icon {
  font-size: 1.4rem;
}

/* Final offer countdown */
.final-offer-countdown {
  font-family: var(--font-primary);
}

.countdown-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.countdown-header {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.countdown-timer {
  font-size: 48px;
  font-weight: bold;
  font-family: var(--font-display);
  line-height: 1;
}

.countdown-message {
  font-size: 12px;
  opacity: 0.9;
}

/* Proof satisfied notification */
.proof-satisfied-notification {
  font-family: var(--font-primary);
}

.proof-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.proof-icon {
  font-size: 1.2rem;
  font-weight: bold;
}

/* Deal comparison in success overlay */
.deal-comparison {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.deal-comparison h3 {
  color: rgba(0, 0, 0, 0.6);
}

.other-offers {
  max-width: 400px;
  margin: 0 auto;
}

.passed-offer {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* ========================================
   Camera Toggle Button
   ======================================== */
.control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.control-btn.camera-off {
  background: rgba(239, 68, 68, 0.8);
}

.control-btn.camera-off:hover {
  background: rgba(239, 68, 68, 1);
}

/* ========================================
   Response Guidance Tooltip (In Chat Input Area)
   ======================================== */
.response-guidance {
  display: none;
  width: 100%;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(37, 99, 235, 0.3);
  margin-bottom: 8px;
  animation: fadeIn 0.3s ease-out;
}

.response-guidance.visible {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.guidance-header {
  display: none;
}

.guidance-options {
  display: flex;
  align-items: center;
  gap: 16px;
}

.guidance-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: none;
}

.guidance-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
}

.guidance-icon svg {
  width: 16px;
  height: 16px;
}

.guidance-text {
  display: flex;
  align-items: center;
}

.guidance-text strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 500;
}

.guidance-text span {
  display: none;
}

.guidance-divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

.guidance-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
  cursor: pointer;
  padding: 0 0 0 8px;
  line-height: 1;
}

.guidance-close:hover {
  color: white;
}

/* ========================================
   Credits System
   ======================================== */

/* Credits Bar (Entry Form) */
.credits-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border-radius: 12px;
  margin-bottom: 16px;
}

.credits-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 14px;
}

.credits-info svg {
  opacity: 0.8;
}

.credits-info strong {
  font-weight: 600;
}

.credits-upgrade-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.credits-upgrade-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Credits Banner (Panel View) */
.credits-banner {
  position: relative;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  padding: 8px 16px;
  z-index: 50;
}

.credits-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.credits-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.credits-text {
  color: white;
  font-size: 14px;
}

.credits-text strong {
  font-weight: 600;
}

.credits-banner-cta {
  background: white;
  color: #4f46e5;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.credits-banner-cta:hover {
  background: #f0f0f0;
}

/* Credits Exhausted Modal */
.credits-modal-content {
  text-align: center;
  padding: 32px;
  max-width: 400px;
}

.credits-modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.credits-modal-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1a2e;
}

.credits-modal-text {
  color: #666;
  margin-bottom: 24px;
  line-height: 1.6;
}

.credits-modal .auth-btn--twitter {
  width: 100%;
  margin-bottom: 12px;
}

.credits-modal-close {
  background: none;
  border: none;
  color: #888;
  font-size: 14px;
  cursor: pointer;
  padding: 8px;
}

.credits-modal-close:hover {
  color: #333;
}

/* Low credits warning */
.credits-low {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.credits-critical {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* ========================================
   Confidence Flag System - Visual Indicators
   ======================================== */

/* Confidence delta floating indicator */
.confidence-delta {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  z-index: 100;
  animation: confidenceFloat 1.5s ease-out forwards;
  pointer-events: none;
}

.confidence-delta.positive {
  background: rgba(34, 197, 94, 0.95);
  color: white;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}

.confidence-delta.negative {
  background: rgba(239, 68, 68, 0.95);
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.confidence-delta.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

@keyframes confidenceFloat {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(-15px);
    opacity: 1;
  }
  100% {
    transform: translateY(-20px);
    opacity: 0.5;
  }
}

/* Shark returned highlight effect */
.shark-returned {
  animation: sharkReturnPulse 2s ease-out;
}

@keyframes sharkReturnPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  30% {
    box-shadow: 0 0 20px 10px rgba(34, 197, 94, 0.4);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Shark returned badge animation */
.shark-returned .participant-badge {
  animation: badgeReturn 0.5s ease-out;
}

@keyframes badgeReturn {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
    background: var(--deal-green);
  }
  100% {
    transform: scale(1);
  }
}

/* ========================================
   Shark Reaction Notifications
   ======================================== */
.shark-reactions {
  position: fixed;
  top: 80px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
  max-width: 320px;
  pointer-events: none;
}

.shark-reaction {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--surface-1) 0%, var(--surface-0) 100%);
  border: 1px solid var(--surface-4);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  animation: reactionSlideIn 0.4s ease-out;
  pointer-events: auto;
}

.shark-reaction.exiting {
  animation: reactionSlideOut 0.3s ease-in forwards;
}

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

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

.shark-reaction-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--surface-4);
}

.shark-reaction-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shark-reaction-content {
  flex: 1;
  min-width: 0;
}

.shark-reaction-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.shark-reaction-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.3;
}

.shark-reaction-emoji {
  font-size: 24px;
  flex-shrink: 0;
}

/* Reaction type variants */
.shark-reaction.positive {
  border-left: 3px solid var(--deal-green);
}

.shark-reaction.negative {
  border-left: 3px solid var(--danger-red);
}

.shark-reaction.interested {
  border-left: 3px solid var(--gold-rich);
}

.shark-reaction.skeptical {
  border-left: 3px solid var(--shark-blue-accent);
}

/* Mobile positioning */
@media (max-width: 600px) {
  .shark-reactions {
    top: auto;
    bottom: 200px;
    right: 8px;
    left: 8px;
    max-width: none;
  }

  .shark-reaction {
    padding: 10px 12px;
  }

  .shark-reaction-avatar {
    width: 32px;
    height: 32px;
  }

  .shark-reaction-text {
    font-size: 13px;
  }

  .shark-reaction-emoji {
    font-size: 20px;
  }
}

/* ========================================
   Shareable Deal Card
   ======================================== */
.deal-card-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.deal-card-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}

.deal-card-container {
  position: relative;
  z-index: 10; /* Above backdrop */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 100%;
}

.deal-card-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 32px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color 0.15s ease;
}

.deal-card-close:hover {
  color: var(--text-primary);
}

/* The actual card */
.deal-card {
  width: 400px;
  max-width: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5a 50%, #0f172a 100%);
  border: 2px solid var(--gold-rich);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  box-shadow:
    0 0 40px rgba(212, 175, 55, 0.3),
    0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

/* Decorative background effect */
.deal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.deal-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.deal-card-logo {
  font-size: 28px;
}

.deal-card-title {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
}

.deal-card-result {
  margin-bottom: 16px;
}

.deal-result-label {
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-rich) 50%, var(--gold-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
}

.deal-card-result.no-deal .deal-result-label {
  background: linear-gradient(135deg, var(--danger-red) 0%, #F87171 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.deal-card-company {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.deal-card-terms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.deal-card-amount {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold-bright);
}

.deal-card-for {
  font-size: 16px;
  color: var(--text-tertiary);
}

.deal-card-equity {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}

.deal-card-shark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.deal-card-shark-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-rich);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.deal-card-shark-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.deal-card-valuation {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--shark-blue-light);
  margin-bottom: 20px;
}

.deal-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--surface-4);
}

/* Share action buttons */
.deal-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.deal-card-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}

.deal-card-btn--download {
  background: var(--surface-2);
  color: var(--text-primary);
  border: 1px solid var(--surface-4);
}

.deal-card-btn--download:hover {
  background: var(--surface-3);
}

.deal-card-btn--twitter {
  background: #000;
  color: #fff;
}

.deal-card-btn--twitter:hover {
  background: #333;
}

.deal-card-btn--copy {
  background: var(--shark-blue-accent);
  color: #fff;
}

.deal-card-btn--copy:hover {
  background: var(--shark-blue-glow);
}

/* Mobile deal card */
@media (max-width: 500px) {
  .deal-card {
    padding: 24px 20px;
  }

  .deal-card-title {
    font-size: 12px;
  }

  .deal-result-label {
    font-size: 36px;
  }

  .deal-card-company {
    font-size: 22px;
  }

  .deal-card-amount,
  .deal-card-equity {
    font-size: 26px;
  }

  .deal-card-shark-img {
    width: 64px;
    height: 64px;
  }

  .deal-card-actions {
    flex-direction: column;
    width: 100%;
  }

  .deal-card-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   Pitch Guidance Overlay
   ======================================== */

.pitch-guidance-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  animation: fadeIn 0.3s ease;
}

.pitch-guidance-overlay.fading {
  animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

.pitch-guidance-content {
  text-align: center;
  padding: 48px;
  max-width: 400px;
  animation: scaleIn 0.4s ease;
}

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

.pitch-guidance-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.pitch-guidance-title {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--gold-bright);
  margin: 0 0 16px 0;
  letter-spacing: 0.05em;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.pitch-guidance-text {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0 0 12px 0;
}

.pitch-guidance-hint {
  font-size: 16px;
  color: var(--text-tertiary);
  margin: 0 0 32px 0;
}

.pitch-guidance-hint strong {
  color: var(--gold-rich);
}

.pitch-guidance-btn {
  background: linear-gradient(135deg, var(--gold-rich) 0%, var(--gold-amber) 100%);
  color: #000;
  border: none;
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pitch-guidance-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}