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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: #1a1a2e;
  background: #f8f9fc;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-weight: 600; color: #1a1a2e; }

a { text-decoration: none; color: inherit; }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary { background: #4f46e5; color: #fff; }
.btn-primary:hover { background: #4338ca; }

.btn-outline { background: transparent; border: 1.5px solid #d1d5db; color: #374151; }
.btn-outline:hover { border-color: #4f46e5; color: #4f46e5; }

.btn-sm { padding: 6px 16px; font-size: 0.82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-full { width: 100%; text-align: center; }

/* === Navbar === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #4f46e5;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a:not(.btn) {
  font-size: 0.9rem;
  color: #6b7280;
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover { color: #4f46e5; }

.nav-user {
  font-size: 0.82rem;
  color: #9ca3af;
  padding: 4px 12px;
  background: #f3f4f6;
  border-radius: 20px;
}

/* Admin navbar */
.navbar-admin {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border-bottom: 1px solid #4338ca;
}

.navbar-admin .logo {
  color: #fff;
}

.navbar-admin .nav-links a:not(.btn) {
  color: #c7d2fe;
}

.navbar-admin .nav-links a:not(.btn):hover {
  color: #fff;
}

.navbar-admin .nav-user {
  background: rgba(255,255,255,0.1);
  color: #e0e7ff;
}

.navbar-admin .btn-outline {
  border-color: #6366f1;
  color: #e0e7ff;
}

.navbar-admin .btn-outline:hover {
  background: #6366f1;
  color: #fff;
}

/* === Flash messages === */
.flash-container { padding: 0 40px; margin-top: 12px; }

.flash {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* === Hero === */
.hero {
  text-align: center;
  padding: 120px 20px 80px;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #c7d2fe 100%);
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.15rem;
  color: #4b5563;
  max-width: 600px;
  margin: 0 auto 32px;
  font-weight: 300;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; }

/* === Features === */
.features, .how-it-works {
  padding: 80px 40px;
  text-align: center;
}

.features h2, .how-it-works h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.feature-card:hover { transform: translateY(-4px); }

.feature-icon { font-size: 2.4rem; margin-bottom: 16px; }

.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: #6b7280; }

/* === Steps === */
.steps {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.step { text-align: center; flex: 1; min-width: 180px; }

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #4f46e5;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: 0.85rem; color: #6b7280; }

/* === Footer === */
.footer {
  text-align: center;
  padding: 40px;
  color: #9ca3af;
  font-size: 0.85rem;
  border-top: 1px solid #e5e7eb;
}

/* === Auth Pages === */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 60px);
  padding: 40px 20px;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.auth-card h2 { text-align: center; margin-bottom: 24px; }

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 0.88rem;
  color: #6b7280;
}

.auth-switch a { color: #4f46e5; font-weight: 500; }

/* === Forms === */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  background: #fff;
  color: #1a1a2e;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #4f46e5;
}

.form-group textarea { resize: vertical; }

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

.form-section {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.form-section h3 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #4f46e5;
}

/* === Page Container === */
.page-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.page-desc {
  color: #6b7280;
  margin-bottom: 24px;
}

.back-link {
  display: inline-block;
  color: #6b7280;
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.back-link:hover { color: #4f46e5; }

/* === Startup Cards === */
.startup-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.startup-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.startup-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.startup-card-header h3 { font-size: 1.1rem; }

.startup-card-desc {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  max-height: 4.5em;
  line-height: 1.5;
  word-break: break-word;
}

.startup-card-founder {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 12px;
}

.startup-card-metrics {
  display: flex;
  gap: 16px;
  border-top: 1px solid #f3f4f6;
  padding-top: 12px;
}

/* === Badges === */
.badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-idea { background: #f3f4f6; color: #6b7280; }
.badge-mvp { background: #dbeafe; color: #1d4ed8; }
.badge-early { background: #fef3c7; color: #92400e; }
.badge-growth { background: #d1fae5; color: #065f46; }
.badge-scale { background: #ede9fe; color: #5b21b6; }

/* === Metrics === */
.metric { text-align: center; flex: 1; }

.metric-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a2e;
}

.metric-label {
  font-size: 0.72rem;
  color: #9ca3af;
}

/* === KPI Grid === */
.section {
  margin-bottom: 32px;
}

.section h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.kpi-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.kpi-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: #4f46e5;
  margin-bottom: 4px;
}

.kpi-label {
  font-size: 0.78rem;
  color: #6b7280;
}

/* === Unit Economics === */
.unit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.unit-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.unit-label { font-size: 0.85rem; color: #6b7280; }
.unit-value { font-size: 0.9rem; font-weight: 600; }

.text-green { color: #059669; }
.text-yellow { color: #d97706; }
.text-red { color: #dc2626; }

/* === Data Table === */
.table-wrapper { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.data-table th {
  background: #f9fafb;
  padding: 12px 14px;
  text-align: right;
  font-weight: 600;
  font-size: 0.78rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table th:first-child,
.data-table td:first-child { text-align: center; }

.data-table td {
  padding: 10px 14px;
  text-align: right;
  border-top: 1px solid #f3f4f6;
}

.data-table tr:hover { background: #f9fafb; }

/* === Bar Chart === */
.chart-container {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 180px;
  padding-top: 20px;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.bar {
  width: 100%;
  max-width: 50px;
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.3s;
}

.bar-positive { background: #4f46e5; }
.bar-negative { background: #ef4444; }

.bar-label {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 6px;
}

/* === Empty State === */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
}

.empty-state p { margin-bottom: 20px; font-size: 1rem; }

/* === Startup Header === */
.startup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.startup-desc {
  color: #6b7280;
  margin-bottom: 32px;
  font-size: 0.95rem;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  white-space: pre-wrap;
  max-height: 200px;
  overflow-y: auto;
}

/* === Responsive === */
@media (max-width: 768px) {
  .navbar { padding: 12px 16px; }
  .nav-links { gap: 10px; }
  .hero h1 { font-size: 2.2rem; }
  .hero { padding: 80px 16px 60px; }
  .features, .how-it-works { padding: 50px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .page-container { padding: 20px 16px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: column; align-items: center; }
  .hero-actions { flex-direction: column; align-items: center; }
  .startup-card-metrics { flex-wrap: wrap; }
  .unit-grid { grid-template-columns: 1fr; }
}


/* ==========================================
   AI FINANCIAL MODEL PAGES
   ========================================== */

/* Form Page */
.finmodel-form-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px;
}

.finmodel-form-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.finmodel-form-page .subtitle {
  color: #6b7280;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.finmodel-form-page .hint {
  color: #9ca3af;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.product-row {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
}

.btn-secondary {
  display: inline-block;
  background: #f3f4f6;
  color: #4f46e5;
  padding: 10px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

.btn-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-remove:hover {
  background: #fee2e2;
}

.btn-large {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  margin-top: 16px;
}

/* Result Page */
.finmodel-result-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Verdict Card */
.verdict-card {
  text-align: center;
  padding: 40px;
  border-radius: 16px;
  margin-bottom: 32px;
}

.verdict-card h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.verdict-card .project-title {
  font-size: 1.1rem;
  opacity: 0.8;
}

.verdict-positive {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #065f46;
  border: 2px solid #6ee7b7;
}

.verdict-neutral {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1e40af;
  border: 2px solid #93c5fd;
}

.verdict-warning {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: #92400e;
  border: 2px solid #fcd34d;
}

.verdict-negative {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #991b1b;
  border: 2px solid #fca5a5;
}

/* KPI Grid for Finmodel */
.kpi-grid-fin {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.kpi-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.kpi-label {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.kpi-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

/* Verdict Details */
.verdict-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.reasons-good, .reasons-bad {
  padding: 24px;
  border-radius: 12px;
}

.reasons-good {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.reasons-good h3 { color: #166534; }

.reasons-good li {
  color: #15803d;
  margin-bottom: 8px;
  line-height: 1.5;
}

.reasons-bad {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.reasons-bad h3 { color: #991b1b; }

.reasons-bad li {
  color: #dc2626;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Charts */
.charts-section {
  margin-bottom: 40px;
}

.charts-section h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.chart-container {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
}

.chart-container h3 {
  font-size: 1rem;
  color: #374151;
  margin-bottom: 16px;
}

/* Financial Tables */
.table-section {
  margin-bottom: 40px;
}

.table-section h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.fin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  white-space: nowrap;
}

.fin-table th {
  background: #f9fafb;
  padding: 12px 16px;
  text-align: right;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
}

.fin-table th:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: #f9fafb;
  z-index: 1;
}

.fin-table td {
  padding: 10px 16px;
  text-align: right;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}

.fin-table td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: white;
  z-index: 1;
  font-weight: 500;
}

.fin-table .row-expense td { color: #ef4444; }
.fin-table .row-expense td:first-child { color: #6b7280; }

.fin-table .row-highlight {
  background: #f0f9ff;
}

.fin-table .row-highlight td:first-child {
  background: #f0f9ff;
}

.fin-table .row-total {
  background: #faf5ff;
  font-weight: 600;
}

.fin-table .row-total td:first-child {
  background: #faf5ff;
}

/* Actions Bar */
.actions-bar {
  text-align: center;
  padding: 20px 0;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn-download {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .kpi-grid-fin { grid-template-columns: repeat(2, 1fr); }
  .verdict-details { grid-template-columns: 1fr; }
  .charts-grid { grid-template-columns: 1fr; }
  .verdict-card h1 { font-size: 1.3rem; }
}


/* ==========================================
   INVESTMENT & PORTFOLIO
   ========================================== */

/* Startup Header with Button */
.startup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

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

/* Funding Progress Section */
.funding-section {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 32px;
}

.funding-progress {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
}

.progress-bar {
  height: 12px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-bar-lg {
  height: 20px;
  border-radius: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #6366f1);
  border-radius: inherit;
  transition: width 0.5s ease;
}

.funding-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.funding-stat {
  text-align: center;
}

.funding-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a2e;
}

.funding-label {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Investors List */
.investors-list {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.investor-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
}

.investor-item:last-child {
  border-bottom: none;
}

.investor-name {
  font-weight: 500;
  color: #1a1a2e;
}

.investor-date {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-left: 8px;
}

.investor-details {
  display: flex;
  gap: 16px;
}

.investor-amount {
  font-weight: 600;
  color: #4f46e5;
}

.investor-share {
  color: #6b7280;
}

/* Investment Form Page */
.invest-page {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.invest-main {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.invest-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
}

.summary-item {
  text-align: center;
}

.summary-item .label {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.summary-item .value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
}

.invest-form .form-group {
  margin-bottom: 24px;
}

.invest-form .form-group small {
  display: block;
  margin-top: 6px;
  color: #9ca3af;
  font-size: 0.8rem;
}

.equity-preview {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 2px solid #6ee7b7;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.preview-title {
  font-size: 0.9rem;
  color: #065f46;
  margin-bottom: 8px;
}

.preview-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #059669;
}

.preview-note {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 8px;
}

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

.invest-sidebar {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  height: fit-content;
}

.invest-sidebar h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.invest-sidebar h4 {
  font-size: 0.95rem;
  margin: 20px 0 12px;
  color: #4f46e5;
}

.invest-sidebar .startup-desc {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0;
  max-height: 100px;
  overflow-y: auto;
  word-break: break-word;
}

.metrics-list {
  list-style: none;
}

.metrics-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.88rem;
}

.metrics-list li:last-child {
  border-bottom: none;
}

.metrics-list span {
  color: #6b7280;
}

.metrics-list strong {
  color: #1a1a2e;
}

.risk-note {
  margin-top: 24px;
  padding: 16px;
  background: #fef3c7;
  border-radius: 8px;
  font-size: 0.85rem;
}

.risk-note strong {
  display: block;
  margin-bottom: 6px;
  color: #92400e;
}

.risk-note p {
  color: #78350f;
  margin: 0;
}

/* Portfolio Page */
.portfolio-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.stat-card.stat-primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
}

.stat-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
}

.stat-primary .stat-value {
  color: #fff;
}

.industry-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.industry-item {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.industry-name {
  flex: 1;
  font-weight: 500;
}

.industry-amount {
  font-weight: 600;
  color: #4f46e5;
}

.industry-count {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Investments List */
.investments-list {
  display: grid;
  gap: 16px;
}

.investment-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

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

.investment-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #4f46e5;
}

.investment-name:hover {
  text-decoration: underline;
}

.investment-desc {
  font-size: 0.88rem;
  color: #6b7280;
  margin-bottom: 16px;
}

.investment-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.detail {
  text-align: center;
}

.detail-label {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 4px;
}

.detail-value {
  font-weight: 600;
  color: #1a1a2e;
}

.investment-progress {
  margin-bottom: 16px;
}

.progress-text {
  font-size: 0.82rem;
  color: #6b7280;
  margin-top: 6px;
  text-align: right;
}

.investment-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #9ca3af;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

/* Status badges */
.badge-confirmed {
  background: #d1fae5;
  color: #065f46;
}

.badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.badge-admin {
  background: #fce7f3;
  color: #9d174d;
}

.badge-startup {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-investor {
  background: #d1fae5;
  color: #065f46;
}

.badge-info {
  background: #e0e7ff;
  color: #4338ca;
}


/* ==========================================
   ADMIN PANEL
   ========================================== */

.admin-page {
  max-width: 1200px;
}

.admin-header {
  margin-bottom: 32px;
}

.admin-header h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.role-breakdown {
  display: flex;
  gap: 20px;
}

.role-item {
  background: #fff;
  border-radius: 12px;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.role-icon {
  font-size: 1.5rem;
}

.role-name {
  font-weight: 500;
  color: #6b7280;
}

.role-count {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a2e;
}

.admin-nav-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.admin-nav-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}

.admin-nav-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #4f46e5;
}

.nav-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.nav-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.nav-desc {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Admin Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.admin-table th {
  background: #f9fafb;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 14px 16px;
  border-top: 1px solid #f3f4f6;
  vertical-align: middle;
}

.admin-table tr:hover {
  background: #f9fafb;
}

.admin-table a {
  color: #4f46e5;
  font-weight: 500;
}

.admin-table a:hover {
  text-decoration: underline;
}

.user-cell {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 500;
}

.user-email {
  font-size: 0.8rem;
  color: #9ca3af;
}

.amount-cell {
  font-weight: 600;
  color: #059669;
}

.inline-form {
  display: inline;
}

.btn-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.btn-danger:hover {
  background: #fee2e2;
}

.text-muted {
  color: #9ca3af;
}

.auth-notice {
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* Responsive Admin */
@media (max-width: 768px) {
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .admin-nav-cards {
    grid-template-columns: 1fr;
  }
  
  .role-breakdown {
    flex-direction: column;
  }
  
  .admin-table {
    font-size: 0.8rem;
  }
  
  .admin-table th,
  .admin-table td {
    padding: 10px 12px;
  }
}


/* Responsive */
@media (max-width: 768px) {
  .invest-page {
    grid-template-columns: 1fr;
  }
  
  .funding-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .portfolio-stats {
    grid-template-columns: 1fr;
  }
  
  .investment-details {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .invest-summary {
    grid-template-columns: 1fr;
  }
}
