/* ============================================================
   FinBridge Venture Studio — Main Stylesheet
   Light corporate design inspired by finbridge.ru / dengisrazy.ru
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --color-primary: #6B21A8;
  --color-primary-dark: #581C87;
  --color-primary-light: #A855F7;
  --color-accent: #C4B5FD;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8F7FC;
  --color-bg-card: #FFFFFF;
  --color-text: #1E1B2E;
  --color-text-secondary: #6B7280;
  --color-border: #E5E7EB;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(107,33,168,0.08);
  --shadow-lg: 0 10px 30px rgba(107,33,168,0.12);
  --max-width: 1200px;
  --transition: 0.2s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ---------- Container ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 15px; border: 2px solid transparent; cursor: pointer;
  transition: all var(--transition); text-decoration: none; line-height: 1.4;
}
.btn--primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn--primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--ghost { background: transparent; color: var(--color-primary); }
.btn--ghost:hover { background: var(--color-bg-alt); }
.btn--sm { padding: 8px 20px; font-size: 14px; }
.btn--lg { padding: 16px 36px; font-size: 17px; }
.btn--block { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 32px;
}
.navbar__logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; color: var(--color-text);
  text-decoration: none;
}
.navbar__logo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--color-primary); color: #fff;
  font-weight: 800; font-size: 14px; letter-spacing: -0.5px;
}
.navbar__logo-text { font-size: 17px; }
.navbar__links { display: flex; gap: 8px; }
.navbar__link {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; color: var(--color-text-secondary);
  transition: all var(--transition);
}
.navbar__link:hover { color: var(--color-primary); background: var(--color-bg-alt); }
.navbar__link--active { color: var(--color-primary); background: var(--color-bg-alt); }
.navbar__actions { display: flex; gap: 12px; }
.navbar__mobile-auth { display: none; }
.navbar__burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.navbar__burger span {
  display: block; width: 22px; height: 2px; background: var(--color-text);
  margin: 5px 0; transition: all var(--transition); border-radius: 2px;
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, rgba(107,33,168,0.85) 0%, rgba(88,28,135,0.90) 100%),
              url('/images/team-hero-bg.webp') center/cover no-repeat;
  position: relative; overflow: hidden; color: #fff;
}
.hero::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,0.06); pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -80px; left: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,0.05); pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 720px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: rgba(255,255,255,0.15); color: #fff;
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
  letter-spacing: 0.02em; backdrop-filter: blur(8px);
}
.hero__title {
  font-size: 52px; font-weight: 800; line-height: 1.1;
  color: #fff; margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero__title span { color: #C4B5FD; }
.hero__subtitle {
  font-size: 19px; line-height: 1.7; color: rgba(255,255,255,0.85);
  margin-bottom: 36px; max-width: 560px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn--primary { background: #fff; color: var(--color-primary); border-color: #fff; }
.hero .btn--primary:hover { background: var(--color-accent); color: var(--color-primary-dark); border-color: var(--color-accent); }
.hero .btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.hero .btn--outline:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; }

/* ---------- Section ---------- */
.section { padding: 80px 0; }
.section--alt { background: var(--color-bg-alt); }
.section--hero-about {
  background: linear-gradient(135deg, rgba(30,27,46,0.80) 0%, rgba(107,33,168,0.75) 100%),
              url('/images/team-about-section.webp') center/cover no-repeat;
  color: #fff;
}
.section--hero-about .section__title { color: #fff; }
.section--hero-about .section__subtitle { color: rgba(255,255,255,0.85); }
.section--demo-bg {
  background: linear-gradient(135deg, rgba(30,27,46,0.82) 0%, rgba(107,33,168,0.78) 100%),
              url('/images/team-demo-day.webp') center/cover no-repeat;
  color: #fff;
}
.section--demo-bg .section__title { color: #fff; }
.section--demo-bg .section__subtitle { color: rgba(255,255,255,0.85); }
.section__header { text-align: center; margin-bottom: 56px; }
.section__title {
  font-size: 36px; font-weight: 800; color: var(--color-text);
  margin-bottom: 16px; letter-spacing: -0.01em;
}
.section__subtitle {
  font-size: 17px; color: var(--color-text-secondary);
  max-width: 560px; margin: 0 auto; line-height: 1.7;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat {
  text-align: center; padding: 32px 20px;
  background: var(--color-bg-card); border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.stat:hover { box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.stat__number {
  font-size: 40px; font-weight: 800; color: var(--color-primary);
  line-height: 1.2; margin-bottom: 8px;
}
.stat__label { font-size: 14px; color: var(--color-text-secondary); font-weight: 500; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  padding: 32px 24px; background: var(--color-bg-card);
  border-radius: var(--radius); border: 1px solid var(--color-border);
  transition: all var(--transition); position: relative;
}
.step:hover { box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--color-bg-alt); color: var(--color-primary);
  font-weight: 800; font-size: 18px; margin-bottom: 20px;
}
.step__title { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--color-text); }
.step__text { font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; }

/* ---------- Cards Grid ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.card {
  background: var(--color-bg-card); border-radius: var(--radius);
  border: 1px solid var(--color-border); padding: 28px;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.card__status {
  display: inline-flex; padding: 4px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 600; margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.card__status--draft { background: #F3F4F6; color: #6B7280; }
.card__status--submitted { background: #EDE9FE; color: var(--color-primary); }
.card__status--screening { background: #FEF3C7; color: #D97706; }
.card__status--approved { background: #D1FAE5; color: #059669; }
.card__status--rejected { background: #FEE2E2; color: #DC2626; }
.card__status--launched { background: #DBEAFE; color: #2563EB; }
.card__title {
  font-size: 20px; font-weight: 700; margin-bottom: 10px;
  color: var(--color-text);
}
.card__title a { color: inherit; }
.card__title a:hover { color: var(--color-primary); }
.card__text { font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; margin-bottom: 20px; }
.card__meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 13px; color: var(--color-text-secondary);
  padding-top: 16px; border-top: 1px solid var(--color-border);
}
.card__meta-item { display: flex; align-items: center; gap: 4px; }

/* ---------- Step Icons ---------- */
.step__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff; margin-bottom: 16px;
}

/* ---------- Leaderboard ---------- */
.leaderboard { max-width: 640px; margin: 0 auto; }
.leaderboard__row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--color-border); background: var(--color-bg-card);
  margin-bottom: 10px; transition: all var(--transition);
}
.leaderboard__row:hover { box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.leaderboard__rank {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; background: var(--color-bg-alt);
  color: var(--color-primary);
}
.leaderboard__row:first-child .leaderboard__rank {
  background: var(--color-primary); color: #fff;
}
.leaderboard__avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; background: #EDE9FE;
  color: var(--color-primary);
}
.leaderboard__info { flex: 1; min-width: 0; }
.leaderboard__name { font-weight: 600; font-size: 15px; color: var(--color-text); }
.leaderboard__level { font-size: 12px; color: var(--color-text-secondary); text-transform: capitalize; }
.leaderboard__points {
  font-weight: 700; font-size: 16px; color: var(--color-primary); white-space: nowrap;
}
.leaderboard__points span { font-weight: 400; font-size: 13px; color: var(--color-text-secondary); }

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center; padding: 48px 24px;
  background: var(--color-bg-card); border-radius: var(--radius);
  border: 2px dashed var(--color-border);
}
.empty-state__text {
  font-size: 18px; color: var(--color-text-secondary);
  margin-bottom: 24px; font-weight: 500;
}

/* ---------- CTA Section ---------- */
.cta {
  padding: 80px 0; text-align: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
}
.cta__title { font-size: 36px; font-weight: 800; margin-bottom: 16px; color: #fff; }
.cta__text { font-size: 18px; opacity: 0.9; margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta .btn--primary { background: #fff; color: var(--color-primary); border-color: #fff; }
.cta .btn--primary:hover { background: var(--color-accent); color: var(--color-primary-dark); border-color: var(--color-accent); }

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0; border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.footer__brand-text { color: var(--color-text); }
.footer__links { display: flex; gap: 24px; }
.footer__links a { font-size: 14px; color: var(--color-text-secondary); }
.footer__links a:hover { color: var(--color-primary); }
.footer__copy { font-size: 13px; color: var(--color-text-secondary); }

/* ---------- Form ---------- */
.form { max-width: 560px; margin: 0 auto; }
.form__group { margin-bottom: 24px; }
.form__label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--color-text); margin-bottom: 8px;
}
.form__input, .form__textarea, .form__select {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border); font-size: 15px;
  font-family: var(--font-family); color: var(--color-text);
  background: var(--color-bg); transition: border-color var(--transition);
}
.form__input:focus, .form__textarea:focus, .form__select:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(107,33,168,0.1);
}
.form__select--sm {
  padding: 6px 10px; font-size: 13px; width: auto; min-width: 130px;
}
.form__textarea { min-height: 120px; resize: vertical; }
.form__hint { font-size: 13px; color: var(--color-text-secondary); margin-top: 6px; }

/* ---------- Login Page ---------- */
.login-page {
  min-height: calc(100vh - 72px - 120px);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 24px;
  background: var(--color-bg-alt);
}
.login-card {
  background: var(--color-bg-card); border-radius: var(--radius);
  border: 1px solid var(--color-border); padding: 48px;
  max-width: 420px; width: 100%; text-align: center;
  box-shadow: var(--shadow-lg);
}
.login-card__title { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.login-card__text { font-size: 15px; color: var(--color-text-secondary); margin-bottom: 32px; }

/* ---------- Profile Page ---------- */
.profile { padding: 60px 0; }
.profile__header {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 40px; padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}
.profile__avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; flex-shrink: 0;
}
.profile__name { font-size: 28px; font-weight: 800; }
.profile__role {
  display: inline-flex; padding: 4px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 600; background: #EDE9FE;
  color: var(--color-primary); margin-top: 4px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.profile__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }

/* ---------- Detail Page ---------- */
.detail { padding: 60px 0; }
.detail__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--color-text-secondary); margin-bottom: 24px;
}
.detail__back:hover { color: var(--color-primary); }
.detail__title { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.detail__meta {
  display: flex; gap: 16px; margin-bottom: 32px;
  font-size: 14px; color: var(--color-text-secondary);
}
.detail__body { max-width: 720px; }
.detail__section { margin-bottom: 32px; }
.detail__section-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--color-text); }
.detail__section-text { font-size: 15px; color: var(--color-text-secondary); line-height: 1.7; }

/* ---------- 404 Page ---------- */
.not-found {
  min-height: calc(100vh - 72px - 120px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 24px;
}
.not-found__code { font-size: 120px; font-weight: 800; color: var(--color-accent); line-height: 1; }
.not-found__title { font-size: 28px; font-weight: 700; margin: 16px 0 12px; }
.not-found__text { font-size: 16px; color: var(--color-text-secondary); margin-bottom: 32px; }

/* ---------- Page Header ---------- */
.page-header {
  padding: 48px 0 40px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}
.page-header__title { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.page-header__subtitle { font-size: 16px; color: var(--color-text-secondary); }

/* ---------- Admin Panel ---------- */
.admin-tabs {
  display: flex; gap: 4px; margin-bottom: 32px;
  border-bottom: 2px solid var(--color-border); padding-bottom: 0;
}
.admin-tab {
  padding: 12px 24px; border: none; background: none; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--color-text-secondary);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all var(--transition); font-family: var(--font-family);
}
.admin-tab:hover { color: var(--color-primary); }
.admin-tab--active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

.admin-panel__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.admin-panel__header h2 { font-size: 22px; font-weight: 700; margin: 0; }

.admin-form {
  background: var(--color-bg-alt); border-radius: var(--radius);
  padding: 28px; margin-bottom: 24px; border: 1px solid var(--color-border);
}
.admin-form h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.admin-form__row { display: flex; gap: 16px; align-items: flex-start; }
.admin-form__actions { display: flex; gap: 12px; margin-top: 16px; }

/* ---------- Analytics Charts ---------- */
.analytics-charts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.analytics-chart-card {
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 20px;
}
.analytics-chart-card h3 {
  font-size: 16px; font-weight: 700; margin-bottom: 16px;
  color: var(--color-heading);
}

.admin-filter { display: flex; gap: 12px; margin-bottom: 20px; }

.admin-table-wrapper { overflow-x: auto; }
.admin-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.admin-table th {
  text-align: left; padding: 12px 16px; font-weight: 600;
  color: var(--color-text-secondary); border-bottom: 2px solid var(--color-border);
  background: var(--color-bg-alt); white-space: nowrap;
}
.admin-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}
.admin-table tr:hover td { background: var(--color-bg-alt); }
.admin-table a { color: var(--color-primary); font-weight: 500; }

/* ---------- Detail Tabs ---------- */
.detail-tabs {
  display: flex; gap: 4px; margin: 24px 0 0;
  border-bottom: 2px solid var(--color-border);
}
.detail-tab {
  padding: 12px 20px; background: none; border: none;
  font-size: 15px; font-weight: 600; color: var(--color-text-secondary);
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all 0.2s;
  font-family: inherit;
}
.detail-tab:hover { color: var(--color-heading); }
.detail-tab--active {
  color: var(--color-primary); border-bottom-color: var(--color-primary);
}
.detail-tab-pane { display: none; padding: 24px 0; }
.detail-tab-pane--active { display: block; }

/* ---------- Review Grid ---------- */
.review-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-bottom: 20px;
}
.form__weight { font-weight: 400; color: var(--color-text-secondary); font-size: 13px; }

/* ---------- Review Cards ---------- */
.reviews-summary { display: flex; flex-direction: column; gap: 12px; }
.review-card {
  padding: 16px 20px; border: 1px solid var(--color-border);
  border-radius: var(--radius); background: var(--color-bg);
}
.review-card__header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.review-card__verdict {
  padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700;
  text-transform: uppercase;
}
.review-card__verdict--go { background: #dcfce7; color: #16a34a; }
.review-card__verdict--recycle { background: #fef3c7; color: #d97706; }
.review-card__verdict--kill { background: #fee2e2; color: #dc2626; }
.review-card__score { font-size: 14px; color: var(--color-text-secondary); margin-bottom: 8px; }
.review-card__comment { font-size: 14px; line-height: 1.6; color: var(--color-text); }

/* ---------- Voting ---------- */
.voting-block { }
.voting-buttons { display: flex; gap: 12px; }
.btn--vote {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: 2px solid var(--color-border); background: var(--color-bg);
  color: var(--color-text); transition: all 0.2s;
}
.btn--vote:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn--vote--active.btn--vote-up { border-color: #16a34a; color: #16a34a; background: #f0fdf4; }
.btn--vote--active.btn--vote-down { border-color: #dc2626; color: #dc2626; background: #fef2f2; }

/* ---------- Comments ---------- */
.comment-form { display: flex; flex-direction: column; gap: 12px; }
.comment-item {
  padding: 16px 0; border-bottom: 1px solid var(--color-border);
}
.comment-item:last-child { border-bottom: none; }
.comment-item__header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comment-item__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.comment-item__name { font-weight: 600; font-size: 14px; color: var(--color-heading); }
.comment-item__date { font-size: 12px; color: var(--color-text-secondary); }
.comment-item__text { font-size: 14px; line-height: 1.6; color: var(--color-text); }

/* ---------- Legal Pages ---------- */
.legal-page { padding-bottom: 40px; }
.legal-page__content {
  max-width: 800px; margin: 0 auto;
  line-height: 1.8; color: var(--color-text);
}
.legal-page__content h2 {
  font-size: 22px; font-weight: 700;
  margin: 40px 0 16px; color: var(--color-heading);
}
.legal-page__content h3 {
  font-size: 18px; font-weight: 600;
  margin: 24px 0 12px; color: var(--color-heading);
}
.legal-page__content p { margin-bottom: 16px; }
.legal-page__content ul, .legal-page__content ol {
  margin: 0 0 16px 24px;
}
.legal-page__content li { margin-bottom: 8px; }
.legal-page__content a { color: var(--color-primary); text-decoration: underline; }
.legal-page__content a:hover { text-decoration: none; }

.legal-table-wrap { overflow-x: auto; margin-bottom: 24px; }
.legal-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.legal-table th {
  text-align: left; padding: 12px 16px; font-weight: 600;
  background: var(--color-bg-alt); border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}
.legal-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--color-border);
}

/* ---------- FAQ ---------- */
.faq-category { margin-bottom: 40px; }
.faq-category__title {
  font-size: 22px; font-weight: 700;
  margin-bottom: 16px; color: var(--color-heading);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }

.faq-item__question {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 16px 20px; gap: 16px;
  background: none; border: none; cursor: pointer;
  text-align: left; font-size: 15px; font-weight: 600;
  color: var(--color-heading); font-family: inherit;
  line-height: 1.4;
}
.faq-item__question:hover { background: var(--color-bg-alt); }
.faq-item__icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--color-text-secondary);
}
.faq-item__question[aria-expanded="true"] .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  color: var(--color-text); font-size: 14px; line-height: 1.7;
}
.faq-item__answer--open {
  max-height: 500px;
  padding: 0 20px 16px;
}
.faq-item__answer p { margin-bottom: 12px; }
.faq-item__answer ol { margin: 0 0 12px 20px; }
.faq-item__answer li { margin-bottom: 4px; }
.faq-item__answer a { color: var(--color-primary); }

/* ---------- Consent Checkbox ---------- */
.form__group--consent { margin-top: 24px; }
.form__checkbox-label {
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer; line-height: 1.6;
}
.form__checkbox {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 3px;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.form__checkbox-text {
  font-size: 14px; color: var(--color-text-secondary);
}
.form__checkbox-text a {
  color: var(--color-primary); text-decoration: underline;
}
.form__checkbox-text a:hover { text-decoration: none; }

/* ---------- About Studio ---------- */
.about-studio { max-width: 800px; margin: 0 auto; text-align: center; }
.about-studio__text {
  font-size: 17px; line-height: 1.8;
  color: var(--color-text); margin-bottom: 16px;
}
.about-studio__disclaimer {
  font-size: 13px; color: var(--color-text-secondary);
  font-style: italic; margin-top: 16px;
}
.stats__disclaimer {
  font-size: 13px; color: var(--color-text-secondary);
  font-style: italic; margin-top: 20px; text-align: center;
}

/* ---------- Steps (6-column variant) ---------- */
.steps--6 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Track Cards ---------- */
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card--track { text-align: center; }
.card__track-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}

/* ---------- AI Mentor ---------- */
.ai-mentor { max-width: 700px; margin: 0 auto; }
.ai-mentor__content { text-align: center; }
.ai-mentor__text {
  font-size: 17px; line-height: 1.8;
  color: var(--color-text); margin-bottom: 24px;
}
.ai-mentor__features {
  display: flex; flex-direction: column; gap: 12px;
  text-align: left; max-width: 480px; margin: 0 auto 32px;
}
.ai-mentor__feature {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--color-text);
}
.ai-mentor__feature svg {
  flex-shrink: 0; color: var(--color-primary);
}

/* ---------- FAQ Home Block ---------- */
.faq-home { max-width: 700px; margin: 0 auto; }

/* ---------- Leaderboard Page ---------- */
.podium {
  display: flex; justify-content: center; align-items: flex-end;
  gap: 16px; margin-bottom: 48px; padding: 24px 0;
}
.podium__place {
  display: flex; flex-direction: column; align-items: center;
  width: 160px;
}
.podium__avatar {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #fff;
  margin-bottom: 8px;
}
.podium__avatar--gold { background: linear-gradient(135deg, #f59e0b, #d97706); }
.podium__avatar--silver { background: linear-gradient(135deg, #9ca3af, #6b7280); }
.podium__avatar--bronze { background: linear-gradient(135deg, #d97706, #92400e); }
.podium__name { font-weight: 700; font-size: 14px; text-align: center; color: var(--color-heading); }
.podium__level { font-size: 12px; color: var(--color-text-secondary); margin: 2px 0; }
.podium__points { font-size: 16px; font-weight: 800; color: var(--color-primary); margin-bottom: 8px; }
.podium__bar {
  width: 100%; text-align: center; font-size: 24px; font-weight: 900;
  color: #fff; border-radius: 8px 8px 0 0;
}
.podium__bar--gold { background: linear-gradient(to top, #f59e0b, #fbbf24); height: 80px; line-height: 80px; }
.podium__bar--silver { background: linear-gradient(to top, #6b7280, #9ca3af); height: 60px; line-height: 60px; }
.podium__bar--bronze { background: linear-gradient(to top, #92400e, #d97706); height: 48px; line-height: 48px; }

.lb-table { display: flex; flex-direction: column; gap: 4px; margin-bottom: 40px; }
.lb-row {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px; border-radius: var(--radius);
  background: var(--color-bg); transition: background 0.2s;
}
.lb-row:hover { background: var(--color-bg-alt); }
.lb-row--top1 { background: #fffbeb; border-left: 3px solid #f59e0b; }
.lb-row--top2 { background: #f9fafb; border-left: 3px solid #9ca3af; }
.lb-row--top3 { background: #fff7ed; border-left: 3px solid #d97706; }
.lb-row--me { background: var(--color-primary-10); border-left: 3px solid var(--color-primary); }
.lb-row__rank {
  width: 32px; text-align: center; font-weight: 800;
  font-size: 16px; color: var(--color-text-secondary); flex-shrink: 0;
}
.lb-row--top1 .lb-row__rank { color: #f59e0b; }
.lb-row--top2 .lb-row__rank { color: #6b7280; }
.lb-row--top3 .lb-row__rank { color: #d97706; }
.lb-row__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.lb-row__info { flex: 1; min-width: 0; }
.lb-row__name { font-weight: 600; font-size: 15px; color: var(--color-heading); }
.lb-row__you { font-weight: 400; color: var(--color-primary); font-size: 13px; }
.lb-row__meta { display: flex; gap: 12px; font-size: 13px; color: var(--color-text-secondary); }
.lb-row__level {
  padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 600;
}
.lb-row__level--novice { background: #f3f4f6; color: #6b7280; }
.lb-row__level--activist { background: #dbeafe; color: #2563eb; }
.lb-row__level--innovator { background: #dcfce7; color: #16a34a; }
.lb-row__level--visionary { background: #fef3c7; color: #d97706; }
.lb-row__points {
  font-weight: 800; font-size: 16px; color: var(--color-heading);
  white-space: nowrap;
}
.lb-row__points span { font-weight: 400; font-size: 13px; color: var(--color-text-secondary); }

.lb-legend {
  background: var(--color-bg-alt); border-radius: var(--radius);
  padding: 24px 28px;
}
.lb-legend__title { font-size: 18px; font-weight: 700; margin-bottom: 16px; color: var(--color-heading); }
.lb-legend__items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lb-legend__item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--color-text);
}
.lb-legend__points {
  font-weight: 800; font-size: 14px; color: var(--color-primary);
  min-width: 40px;
}

/* ---------- Submit Modes ---------- */
.submit-modes {
  display: flex; gap: 8px; margin-bottom: 24px;
}
.submit-mode {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border: 2px solid var(--color-border);
  border-radius: var(--radius); background: var(--color-bg);
  font-size: 15px; font-weight: 600; cursor: pointer;
  color: var(--color-text-secondary); transition: all 0.2s;
  font-family: inherit;
}
.submit-mode:hover { border-color: var(--color-primary); color: var(--color-primary); }
.submit-mode--active {
  border-color: var(--color-primary); color: var(--color-primary);
  background: var(--color-primary-10);
}
.submit-pane { display: none; }
.submit-pane--active { display: block; }

/* ---------- Mentor Chat ---------- */
.mentor-chat { max-width: 700px; }
.mentor-chat__messages {
  max-height: 500px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px;
  padding: 16px 0; margin-bottom: 16px;
}
.mentor-msg {
  display: flex; gap: 12px; align-items: flex-start;
}
.mentor-msg--user { flex-direction: row-reverse; }
.mentor-msg__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
  background: var(--color-primary); color: #fff;
}
.mentor-msg--user .mentor-msg__avatar {
  background: var(--color-bg-alt); color: var(--color-text);
}
.mentor-msg__bubble {
  padding: 12px 16px; border-radius: 16px;
  font-size: 14px; line-height: 1.6;
  max-width: 80%; white-space: pre-wrap;
}
.mentor-msg--assistant .mentor-msg__bubble {
  background: var(--color-bg-alt); color: var(--color-text);
  border-bottom-left-radius: 4px;
}
.mentor-msg--user .mentor-msg__bubble {
  background: var(--color-primary); color: #fff;
  border-bottom-right-radius: 4px;
}
.mentor-chat__input {
  display: flex; gap: 8px; align-items: flex-end;
}
.mentor-chat__input .form__textarea {
  flex: 1; resize: none; min-height: 44px;
}
.mentor-chat__input .btn { padding: 10px 16px; }

/* ---------- Footer Columns ---------- */
.footer__columns {
  display: flex; gap: 48px;
}

/* ---------- Typing Indicator ---------- */
.typing-dots {
  display: flex; gap: 4px; align-items: center; padding: 12px 16px !important;
}
.typing-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-text-secondary); opacity: 0.4;
  animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}
.mentor-msg__bubble h2, .mentor-msg__bubble h3, .mentor-msg__bubble h4 {
  margin: 8px 0 4px; font-size: 15px; font-weight: 700;
}
.mentor-msg__bubble ul { margin: 4px 0; padding-left: 20px; list-style: disc; }
.mentor-msg__bubble li { margin-bottom: 2px; }
.mentor-msg__bubble strong { font-weight: 700; }

/* ---------- Files ---------- */
.file-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); margin-bottom: 8px;
}
.file-item a { font-weight: 500; }
.file-upload { margin-top: 16px; }

/* ---------- News ---------- */
.news-list { display: flex; flex-direction: column; gap: 24px; }
.news-card {
  padding: 24px; background: var(--color-bg-card);
  border: 1px solid var(--color-border); border-radius: var(--radius);
  transition: box-shadow var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-md); }
.news-card__meta {
  display: flex; gap: 12px; align-items: center;
  font-size: 13px; color: var(--color-text-secondary); margin-bottom: 8px;
}
.news-card__title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.news-card__title a { color: var(--color-text); }
.news-card__title a:hover { color: var(--color-primary); }
.news-card__excerpt {
  font-size: 15px; color: var(--color-text-secondary); line-height: 1.6; margin-bottom: 12px;
}
.news-card__link { font-size: 14px; font-weight: 600; }
.news-article__content {
  font-size: 16px; line-height: 1.8; color: var(--color-text); max-width: 800px;
}
.page-header__back {
  display: inline-block; font-size: 14px; color: var(--color-text-secondary);
  margin-bottom: 12px;
}
.page-header__back:hover { color: var(--color-primary); }
.page-header__meta {
  display: flex; gap: 8px; align-items: center;
  font-size: 14px; color: var(--color-text-secondary); margin-top: 8px;
}

/* ---------- Projects Filters ---------- */
.projects-filters {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-bottom: 24px; padding: 16px 20px;
  background: var(--color-bg-alt); border-radius: var(--radius);
}
.projects-filters__search { flex: 1; min-width: 200px; }
.projects-filters__search .form__input { margin-bottom: 0; }
.projects-count {
  font-size: 14px; color: var(--color-text-secondary); margin-bottom: 16px;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex; gap: 8px; justify-content: center; align-items: center;
  margin-top: 40px; flex-wrap: wrap;
}
.pagination__link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  border: 1.5px solid var(--color-border); color: var(--color-text);
  transition: all var(--transition); text-decoration: none;
}
.pagination__link:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination__link--active {
  background: var(--color-primary); color: #fff; border-color: var(--color-primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps--6 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .hero__title { font-size: 40px; }
}

@media (max-width: 768px) {
  .navbar__links { 
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--color-bg); border-bottom: 1px solid var(--color-border);
    flex-direction: column; padding: 16px 24px; gap: 4px;
    box-shadow: var(--shadow-md); z-index: 99;
  }
  .navbar__links--open { display: flex; }
  .navbar__actions { display: none; }
  .navbar__mobile-auth {
    display: flex; flex-direction: column; gap: 4px;
    padding-top: 12px; margin-top: 8px;
    border-top: 1px solid var(--color-border);
  }
  .navbar__burger { display: block; }
  .navbar__burger--open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .navbar__burger--open span:nth-child(2) { opacity: 0; }
  .navbar__burger--open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero { padding: 60px 0 50px; }
  .hero__title { font-size: 32px; }
  .hero__subtitle { font-size: 16px; }

  .section { padding: 56px 0; }
  .section__title { font-size: 28px; }

  .stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps--6 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .cards--3 { grid-template-columns: 1fr; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__columns { flex-direction: column; gap: 16px; }
  .footer__links { justify-content: center; }

  .profile__header { flex-direction: column; text-align: center; }
  .profile__stats { grid-template-columns: 1fr; }

  .leaderboard__row { padding: 12px 14px; gap: 10px; }
  .leaderboard__avatar { width: 34px; height: 34px; font-size: 14px; }
  .leaderboard__name { font-size: 14px; }
  .leaderboard__points { font-size: 14px; }

  .analytics-charts { grid-template-columns: 1fr; }
  .admin-tabs { flex-wrap: wrap; }
  .admin-tab { padding: 10px 16px; font-size: 13px; }
  .admin-panel__header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .admin-form__row { flex-direction: column; }
  .admin-filter { flex-direction: column; }
  .admin-table { font-size: 13px; }
  .admin-table th, .admin-table td { padding: 10px 8px; }

  .cta__title { font-size: 28px; }
  .cta__text { font-size: 16px; }

  .detail__title { font-size: 28px; }
  .review-grid { grid-template-columns: 1fr; }
  .detail-tabs { overflow-x: auto; }
  .detail-tab { white-space: nowrap; padding: 10px 14px; font-size: 14px; }
  .voting-buttons { flex-direction: column; }

  .podium { flex-direction: column; align-items: center; gap: 24px; }
  .podium__place { width: 100%; max-width: 200px; }
  .podium__bar { height: 40px !important; line-height: 40px !important; }
  .lb-legend__items { grid-template-columns: repeat(2, 1fr); }
  .lb-row { padding: 12px 14px; gap: 10px; }
  .submit-modes { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 28px; }
  .hero__actions { flex-direction: column; }
  .stat__number { font-size: 32px; }
  .login-card { padding: 32px 24px; }
  .container { padding: 0 16px; }

  .leaderboard__row { flex-wrap: wrap; }
  .leaderboard__info { min-width: 0; }

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

@media (max-width: 320px) {
  .hero__title { font-size: 24px; }
  .hero__subtitle { font-size: 14px; }
  .stats { grid-template-columns: 1fr; }
  .btn--lg { padding: 14px 24px; font-size: 15px; }
}
