/* ─── CAP TABLE INTELLIGENCE ──────────────────────────────────────────────── */
/* Dark premium theme matching the rest of the Innovators League site. */

.captable-hero {
  padding: 56px 24px 20px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.captable-hero .hero-eyebrow {
  color: #FF6B2C;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.captable-hero .hero-title {
  font-size: 44px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  color: #f0f0fa;
}

.captable-hero .hero-subtitle {
  font-size: 17px;
  color: rgba(240, 240, 250, 0.65);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

.captable-main {
  padding: 16px 24px 72px;
}

.captable-main .container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ─── COMPANY SELECTOR ────────────────────────────────────────────────────── */
.captable-selector-wrap {
  margin: 0 auto 36px;
  max-width: 680px;
}

.captable-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(240, 240, 250, 0.55);
  margin-bottom: 10px;
}

.captable-selector,
.captable-company-selector {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0 18px;
  transition: all 0.2s ease;
}

.captable-selector:focus-within,
.captable-company-selector:focus-within {
  border-color: rgba(255, 107, 44, 0.55);
  background: rgba(255, 107, 44, 0.04);
  box-shadow: 0 0 0 4px rgba(255, 107, 44, 0.08);
}

.captable-search-icon {
  width: 18px;
  height: 18px;
  color: rgba(240, 240, 250, 0.45);
  flex-shrink: 0;
}

#captable-company-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 16px 14px;
  color: rgba(240, 240, 250, 0.92);
  font-size: 15px;
  font-family: inherit;
}

#captable-company-input::placeholder {
  color: rgba(240, 240, 250, 0.35);
}

.captable-hint {
  font-size: 12px;
  color: rgba(240, 240, 250, 0.45);
  margin: 10px 4px 0;
  line-height: 1.5;
}

/* ─── DROPDOWN ─────────────────────────────────────────────────────────────── */
.captable-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #0d0d14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65);
  max-height: 360px;
  overflow-y: auto;
  z-index: 50;
  backdrop-filter: blur(12px);
}

.captable-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}

.captable-option:last-child {
  border-bottom: none;
}

.captable-option:hover {
  background: rgba(255, 107, 44, 0.08);
}

.captable-option-name {
  color: rgba(240, 240, 250, 0.9);
  font-size: 14px;
  font-weight: 500;
}

.captable-option-sector {
  font-size: 11px;
  color: rgba(240, 240, 250, 0.5);
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ─── CONTENT CONTAINER ───────────────────────────────────────────────────── */
.captable-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ─── EMPTY STATES ────────────────────────────────────────────────────────── */
.captable-empty,
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.captable-empty-icon {
  font-size: 52px;
  margin-bottom: 16px;
  opacity: 0.65;
}

.captable-empty h3 {
  font-family: 'Space Grotesk', sans-serif;
  color: rgba(240, 240, 250, 0.82);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.captable-empty p {
  max-width: 460px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(240, 240, 250, 0.5);
}

.captable-empty-state {
  padding: 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: rgba(240, 240, 250, 0.55);
  font-size: 13.5px;
  line-height: 1.6;
  text-align: center;
}

/* ─── HEADER CARD ──────────────────────────────────────────────────────────── */
.captable-header-card,
.captable-header {
  background: linear-gradient(180deg, rgba(255, 107, 44, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px 30px;
}

.captable-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.captable-company-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #f0f0fa;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.captable-sector-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 12px;
  color: #60a5fa;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.captable-profile-link {
  color: #FF6B2C;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(255, 107, 44, 0.35);
  border-radius: 10px;
  background: rgba(255, 107, 44, 0.06);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.captable-profile-link:hover {
  background: rgba(255, 107, 44, 0.14);
  border-color: #FF6B2C;
  transform: translateX(2px);
}

/* ─── STATS GRID ──────────────────────────────────────────────────────────── */
.captable-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.captable-stat {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.captable-stat:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 107, 44, 0.22);
}

.stat-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(240, 240, 250, 0.5);
  margin-bottom: 8px;
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #f0f0fa;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* ─── SECTIONS ────────────────────────────────────────────────────────────── */
.captable-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px 30px;
}

.captable-section h3,
.captable-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #f0f0fa;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.captable-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(240, 240, 250, 0.8);
  margin: 28px 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── ROUNDS TIMELINE ─────────────────────────────────────────────────────── */
.rounds-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.round-item {
  display: flex;
  gap: 18px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.round-item:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.1);
}

.round-item-latest {
  background: linear-gradient(180deg, rgba(255, 107, 44, 0.07), rgba(255, 107, 44, 0.025));
  border-color: rgba(255, 107, 44, 0.3);
}

.round-item-latest:hover {
  background: linear-gradient(180deg, rgba(255, 107, 44, 0.1), rgba(255, 107, 44, 0.04));
  border-color: rgba(255, 107, 44, 0.45);
}

.round-index {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(240, 240, 250, 0.75);
  font-family: 'Space Grotesk', sans-serif;
  flex-shrink: 0;
}

.round-item-latest .round-index {
  background: rgba(255, 107, 44, 0.15);
  border-color: rgba(255, 107, 44, 0.45);
  color: #FF6B2C;
}

.round-body {
  flex: 1;
  min-width: 0;
}

.round-stage {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #f0f0fa;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.round-latest-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255, 107, 44, 0.18);
  color: #FF6B2C;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 107, 44, 0.35);
}

.round-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.round-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #22c55e;
  letter-spacing: -0.01em;
}

.round-date {
  font-size: 12px;
  color: rgba(240, 240, 250, 0.55);
  font-family: 'SF Mono', Menlo, monospace;
}

.round-investors {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.investor-chip {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 10px;
  color: #60a5fa;
  font-weight: 500;
}

.round-inferred {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(240, 240, 250, 0.4);
  font-style: italic;
  font-family: 'SF Mono', Menlo, monospace;
}

/* ─── OWNERSHIP CHART ─────────────────────────────────────────────────────── */
.ownership-chart {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.ownership-row {
  display: grid;
  grid-template-columns: 220px 1fr 54px;
  gap: 16px;
  align-items: center;
}

.ownership-label {
  font-size: 13px;
  color: rgba(240, 240, 250, 0.82);
  font-weight: 500;
}

.ownership-bar-container {
  height: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.ownership-bar {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 12px rgba(255, 107, 44, 0.15) inset;
}

.ownership-percent {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #f0f0fa;
  text-align: right;
}

/* ─── MODEL NOTE ──────────────────────────────────────────────────────────── */
.model-note {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  color: rgba(240, 240, 250, 0.8);
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 22px;
}

.model-note .warn-icon {
  color: #f59e0b;
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.2;
}

.model-note strong {
  color: #f59e0b;
  font-weight: 700;
}

/* ─── DILUTION CHART ──────────────────────────────────────────────────────── */
.dilution-chart {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  padding: 20px 10px 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow-x: auto;
}

.dilution-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 58px;
  flex: 1;
}

.dilution-bar {
  width: 28px;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.7), rgba(96, 165, 250, 0.35));
  border: 1px solid rgba(96, 165, 250, 0.55);
  border-radius: 6px 6px 0 0;
  transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.dilution-current .dilution-bar {
  background: linear-gradient(180deg, #FF6B2C, rgba(255, 107, 44, 0.45));
  border-color: #FF6B2C;
  box-shadow: 0 0 18px rgba(255, 107, 44, 0.3);
}

.dilution-stage {
  margin-top: 10px;
  font-size: 10.5px;
  color: rgba(240, 240, 250, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  white-space: nowrap;
}

.dilution-pct {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(240, 240, 250, 0.85);
  margin-top: 4px;
}

.dilution-current .dilution-pct {
  color: #FF6B2C;
}

/* ─── INVESTORS TAGS ──────────────────────────────────────────────────────── */
.investors-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.investor-tag {
  padding: 8px 14px;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 10px;
  color: #60a5fa;
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.investor-tag:hover {
  background: rgba(96, 165, 250, 0.14);
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-1px);
}

/* ─── DISCLOSURE ──────────────────────────────────────────────────────────── */
.captable-disclosure {
  padding: 16px 20px;
  font-size: 12px;
  color: rgba(240, 240, 250, 0.5);
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  font-style: italic;
}

.captable-disclosure strong {
  color: rgba(240, 240, 250, 0.78);
  font-style: normal;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .captable-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .ownership-row {
    grid-template-columns: 150px 1fr 48px;
  }
}

@media (max-width: 768px) {
  .captable-hero {
    padding: 36px 16px 14px;
  }
  .captable-hero .hero-title {
    font-size: 30px;
  }
  .captable-hero .hero-subtitle {
    font-size: 15px;
  }
  .captable-main {
    padding: 16px 16px 48px;
  }
  .captable-header-card,
  .captable-header,
  .captable-section {
    padding: 20px 18px;
  }
  .captable-company-name {
    font-size: 24px;
  }
  .captable-header-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .captable-profile-link {
    width: 100%;
    text-align: center;
  }
  .stat-value {
    font-size: 18px;
  }
  .ownership-row {
    grid-template-columns: 110px 1fr 44px;
    gap: 10px;
  }
  .ownership-label {
    font-size: 12px;
  }
  .ownership-percent {
    font-size: 13px;
  }
  .round-item {
    padding: 14px 16px;
    gap: 14px;
  }
  .round-amount {
    font-size: 15px;
  }
  .dilution-chart {
    padding: 16px 8px 4px;
  }
  .dilution-bar {
    width: 22px;
  }
  .captable-section h3,
  .captable-section-title {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .captable-stats {
    grid-template-columns: 1fr;
  }
  .ownership-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .ownership-percent {
    text-align: left;
  }
  .captable-hero .hero-title {
    font-size: 26px;
  }
}
