@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Source+Sans+3:wght@400;500;600;700&display=swap');

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.bar-chart-item {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bar-chart-label {
  font-weight: 600;
  color: var(--text);
}

.bar-chart-track {
  height: 140px;
  border-radius: 999px;
  background: var(--surface-soft);
  position: relative;
  overflow: hidden;
}

.bar-chart-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: linear-gradient(180deg, rgba(91, 124, 250, 0.9), rgba(52, 212, 176, 0.75));
  border-radius: 999px;
  transition: height 0.4s ease;
}

.bar-chart-value {
  font-weight: 600;
  color: var(--muted);
}

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-strong: #f5f3ee;
  --surface-soft: #eef2f6;
  --text: #0b1220;
  --muted: #566179;
  --line: rgba(12, 20, 38, 0.12);
  --line-strong: rgba(12, 20, 38, 0.2);
  --accent: #1d4ed8;
  --accent-2: #0f766e;
  --accent-3: #f59e0b;
  --accent-4: #ef4444;
  --accent-glow: rgba(29, 78, 216, 0.18);
  --shadow: 0 10px 28px rgba(12, 20, 38, 0.12);
  --shadow-soft: 0 10px 22px rgba(15, 23, 42, 0.12);
  --shadow-lift: 0 18px 40px rgba(15, 23, 42, 0.18);
  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-pill: 999px;
  --space-xs: 0.35rem;
  --space-sm: 0.6rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --ease-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
  --max: 1180px;
}

body.theme-dark {
  --bg: #0b1020;
  --surface: rgba(16, 22, 36, 0.95);
  --surface-strong: #121a2b;
  --surface-soft: rgba(255, 255, 255, 0.05);
  --text: #e9eef8;
  --muted: #9aa6bf;
  --line: rgba(120, 142, 198, 0.2);
  --line-strong: rgba(120, 142, 198, 0.4);
  --accent: #60a5fa;
  --accent-2: #34d399;
  --accent-3: #fbbf24;
  --accent-4: #f87171;
  --accent-glow: rgba(96, 165, 250, 0.24);
  --shadow: 0 28px 90px rgba(2, 6, 23, 0.5);
  --shadow-soft: 0 16px 40px rgba(2, 6, 23, 0.45);
  --shadow-lift: 0 24px 60px rgba(2, 6, 23, 0.55);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-glow);
  border-radius: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
  width: 100%;
}

body {
  width: 100%;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(29, 78, 216, 0.08), transparent 38%),
    radial-gradient(circle at 88% 10%, rgba(15, 118, 110, 0.08), transparent 34%),
    linear-gradient(180deg, #fbfaf7 0%, #f1f5f9 100%);
  color: var(--text);
  font-family: 'Source Sans 3', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

.section {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

body.theme-dark {
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.2), transparent 32%),
    radial-gradient(circle at 80% 15%, rgba(52, 211, 153, 0.16), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(251, 191, 36, 0.12), transparent 26%),
    linear-gradient(180deg, #081020 0%, #0b1325 100%);
}

img,
svg,
video,
canvas,
iframe {
  display: block;
  max-width: 100%;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(29, 78, 216, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 78, 216, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 68, 68, 0.08) 2px, transparent 2px);
  background-size: 28px 28px, 28px 28px, 140px 100%;
  background-position: 0 0, 0 0, 72px 0;
  mask-image: radial-gradient(circle at center, black 35%, transparent 80%);
  opacity: 0.22;
  z-index: -2;
}

.site-shell {
  position: relative;
}

.site-shell::before,
.site-shell::after {
  content: '';
  position: fixed;
  border-radius: 999px;
  filter: blur(110px);
  pointer-events: none;
  z-index: -1;
  animation: drift 14s ease-in-out infinite;
}

.site-shell::before {
  width: 28rem;
  height: 28rem;
  left: -10rem;
  top: 8rem;
  background: rgba(47, 141, 70, 0.08);
}

.site-shell::after {
  width: 24rem;
  height: 24rem;
  right: -8rem;
  bottom: 5rem;
  background: rgba(15, 23, 42, 0.08);
  animation-delay: 5s;
}

body.theme-dark .site-shell::before {
  background: rgba(91, 124, 250, 0.14);
}

body.theme-dark .site-shell::after {
  background: rgba(52, 212, 176, 0.12);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--line-strong);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

body.theme-dark .site-nav {
  background: rgba(6, 8, 16, 0.86);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .site-nav.is-scrolled {
  background: rgba(6, 8, 16, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.28);
}

.top-banner {
  border-bottom: 1px solid var(--line);
  background: var(--surface-strong);
  overflow: hidden;
}

.top-banner-inner {
  width: 100%;
  margin: 0 auto;
  padding: 0.7rem clamp(1rem, 2.5vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.banner-tag::before,
.status-pill::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: none;
  animation: none;
}

.banner-marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.banner-track {
  display: inline-flex;
  gap: 2rem;
  white-space: nowrap;
  color: var(--muted);
  animation: marquee 20s linear infinite;
}

.banner-track span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.banner-track span::before {
  content: '•';
  color: var(--accent-3);
}

.banner-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav-inner {
  width: 100%;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 2.5vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
  row-gap: 0.6rem;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  min-width: 0;
  max-width: 100%;
}

.brand span {
  color: var(--text);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.brand-badge {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 0.9rem;
  background: center / cover no-repeat url("logo-light.png");
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

body.theme-dark .brand-badge {
  background: center / cover no-repeat url("logo-dark.png");
}

.brand-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.4), transparent 60%);
  opacity: 0.65;
  pointer-events: none;
}

body.theme-dark .brand-badge::before {
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 60%);
  opacity: 0.75;
}

.brand-badge::after {
  content: none;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.brand-copy > span:first-child {
  font-size: 1.45rem;
  line-height: 1.1;
  font-family: 'Merriweather', serif;
  font-weight: 700;
}

.brand-copy .sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  margin-left: 0.6rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.button,
.button-secondary,
.nav-pill,
.nav-outline,
.theme-toggle,
.admin-action-button {
  transition: transform 0.2s var(--ease-smooth), box-shadow 0.2s var(--ease-smooth), background 0.2s var(--ease-smooth), color 0.2s var(--ease-smooth), border-color 0.2s var(--ease-smooth);
}

.button:hover,
.button-secondary:hover,
.nav-pill:hover,
.nav-outline:hover,
.admin-action-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.nav-links a {
  transition: color 0.2s var(--ease-smooth);
}

.nav-links a:hover {
  transform: none;
  box-shadow: none;
}

.pricing-card,
.challenge-card,
.leaderboard-card,
.booking-card,
.feed-card,
.board-card,
.student-card,
.rsvp-card,
.submission-card,
.update-card,
.resource-card,
.team-card,
.spotlight-card,
.profile-panel,
.admin-card {
  transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth), border-color 0.25s var(--ease-smooth);
}

.pricing-card:hover,
.challenge-card:hover,
.leaderboard-card:hover,
.booking-card:hover,
.feed-card:hover,
.board-card:hover,
.student-card:hover,
.rsvp-card:hover,
.submission-card:hover,
.update-card:hover,
.resource-card:hover,
.team-card:hover,
.spotlight-card:hover,
.profile-panel:hover,
.admin-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: var(--text);
  margin: 0.22rem auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.nav-links {
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.status-pill {
  display: none;
}

.data-table .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-pill.status-approved {
  color: #0f5132;
  background: rgba(25, 135, 84, 0.16);
  border-color: rgba(25, 135, 84, 0.35);
}

.status-pill.status-approved::before {
  background: #198754;
}

.status-pill.status-rejected {
  color: #842029;
  background: rgba(220, 53, 69, 0.16);
  border-color: rgba(220, 53, 69, 0.35);
}

.status-pill.status-rejected::before {
  background: #dc3545;
}

.status-pill.status-pending {
  color: #664d03;
  background: rgba(255, 193, 7, 0.16);
  border-color: rgba(255, 193, 7, 0.4);
}

.status-pill.status-pending::before {
  background: #ffc107;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  background: var(--surface-soft);
}

.nav-links .theme-toggle {
  margin-top: 0.25rem;
}

.nav-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.8rem 0.4rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.avatar-orb-small {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgba(108, 140, 255, 0.95), rgba(52, 212, 176, 0.85));
  overflow: hidden; /* To clip the image */
  flex-shrink: 0;
}

.avatar-orb-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links .nav-pill {
  color: #fff;
  background: var(--accent);
  box-shadow: none;
}

.nav-links .nav-outline {
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
}

.simple-nav .site-nav-inner {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.simple-nav .nav-links {
  gap: 0.4rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  background: var(--surface-soft);
}

.theme-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  fill: currentColor;
}

.page-hero,
.sub-hero {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 6rem clamp(1rem, 2.5vw, 2.5rem) 3rem;
  position: relative;
}

.hero-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.page-hero .hero-grid {
  max-width: none;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .page-hero .hero-grid,
  .sub-hero .hero-grid {
    grid-template-columns: 1fr;
  }

  .display-title,
  .section-title {
    max-width: none;
  }
}

.hero-grid > *,
.section-head > *,
.footer-top > *,
.footer-grid > * {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.eyebrow::before {
  content: '';
  width: 2.4rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.display-title,
.section-title,
.hero-stat-value,
.panel-title,
.timeline-title,
.spotlight-title {
  font-family: 'Merriweather', serif;
}

.display-title {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
}

@media (min-width: 1024px) {
  .display-title,
  .section-title,
  .spotlight-title,
  .panel-title,
  .timeline-title,
  .footer-title {
    white-space: normal;
    max-width: none;
  }
}

.display-title em,
.section-title em {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  color: inherit;
}

.hero-copy,
.section-copy,
.card-copy,
.spotlight-copy,
.timeline-copy,
.footer-copy,
.pillars li,
.stat-note {
  color: var(--muted);
  line-height: 1.75;
}

.mobile-points {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

.mobile-points li {
  margin-bottom: 0.45rem;
}

.hero-copy {
  max-width: 42rem;
  font-size: 1.05rem;
  margin-top: 1.4rem;
}

.hero-actions,
.button-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 700;
  padding: 0.95rem 1.35rem;
  border-radius: 10px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button {
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}

.button:hover,
.button-secondary:hover {
  transform: none;
}

.button-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: transparent;
}

.hero-panel,
.glass-card,
.feature-card,
.metric-card,
.timeline-card,
.contact-card,
.calendar-shell,
.team-card,
.project-card,
.cta-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: none;
}

.hero-panel {
  padding: 1.5rem;
}

.window-top {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}

.window-top span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
}

.window-top span:nth-child(1) { background: #ff5f57; }
.window-top span:nth-child(2) { background: #febc2e; }
.window-top span:nth-child(3) { background: #28c840; }

.hero-stack {
  display: grid;
  gap: 0.9rem;
}

.hero-chip,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  font-size: 0.82rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--text);
}

.hero-stack-item {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.hero-stack-item strong,
.card-title,
.stat-label,
.timeline-title,
.panel-title {
  color: var(--text);
}

.hero-stack-item strong {
  font-size: 1rem;
}

.hero-stack-item p {
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.65;
}

.hero-stats,
.metrics-grid,
.feature-grid,
.team-grid,
.project-grid,
.timeline-grid,
.contact-grid,
.link-grid {
  display: grid;
  gap: 1.2rem;
}

.hero-stats {
  margin-top: 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-stat {
  padding: 1.1rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.hero-stat-value {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1;
  display: block;
}

.stat-label {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.stat-note {
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

.section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.6rem clamp(1rem, 2.5vw, 2.5rem) 3rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 14ch;
}

.section-copy {
  max-width: 36rem;
  font-size: 1rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.metric-card,
.team-card,
.project-card,
.timeline-card,
.contact-card {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.feature-card::before,
.metric-card::before,
.team-card::before,
.project-card::before,
.timeline-card::before,
.contact-card::before,
.cta-banner::before {
  content: '';
  position: absolute;
  inset: auto -3rem -3rem auto;
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(91, 124, 250, 0.18), transparent 70%);
  pointer-events: none;
}

.card-kicker,
.timeline-step {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}

.card-title,
.panel-title,
.spotlight-title {
  font-size: 1.1rem;
  margin-top: 0.6rem;
  margin-bottom: 0.55rem;
}

.card-copy {
  font-size: 0.95rem;
}

.link-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

.mini-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.4rem;
  align-items: stretch;
}

.spotlight-panel {
  padding: 1.5rem;
}

.pillars {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.pillars li {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-value {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.metric-label {
  margin-top: 0.55rem;
  font-weight: 700;
}

.team-grid,
.project-grid,
.timeline-grid,
.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-photo {
  width: 100%;
  aspect-ratio: 4 / 4.5;
  object-fit: contain;
  border-radius: var(--radius-lg);
  margin-bottom: 1.1rem;
  background: var(--surface-strong);
}

.team-role {
  color: var(--accent-3);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.72rem;
  font-weight: 700;
}

.team-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.22rem;
  margin-top: 0.7rem;
}

.project-card .tag-row,
.contact-card .tag-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.timeline-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-card {
  min-height: 100%;
}

.timeline-copy {
  font-size: 0.93rem;
  margin-top: 0.7rem;
}

.contact-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.contact-card ul {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.contact-card li,
.info-line {
  color: var(--muted);
  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-social {
  margin-top: 1.25rem;
}

.contact-social .social-icons {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.social-icon-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.08);
  background: var(--surface);
}

.social-icon-img {
  width: 20px;
  height: 20px;
  display: block;
}

.social-icon-link[data-platform="instagram"] {
  color: #ffffff;
  border-color: rgba(236, 72, 153, 0.35);
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 8%, #fd5949 35%, #d6249f 62%, #285aeb 92%);
}

.social-icon-link[data-platform="youtube"] {
  color: #ffffff;
  border-color: rgba(255, 0, 51, 0.35);
  background: linear-gradient(135deg, #ff0033, #cc0000);
}

.social-icon-link[data-platform="linkedin"] {
  color: #ffffff;
  border-color: rgba(10, 102, 194, 0.35);
  background: linear-gradient(135deg, #0a66c2, #0b4e9b);
}

.social-icon-link[data-platform="facebook"] {
  color: #ffffff;
  border-color: rgba(24, 119, 242, 0.35);
  background: linear-gradient(135deg, #1877f2, #0f5dc2);
}

.social-icon-link[data-platform="x"] {
  color: #ffffff;
  border-color: rgba(17, 24, 39, 0.35);
  background: linear-gradient(135deg, #111827, #000000);
}

.social-icon-link[data-platform="telegram"] {
  color: #ffffff;
  border-color: rgba(34, 158, 217, 0.35);
  background: linear-gradient(135deg, #2aa3d4, #1b87c5);
}

.social-icon-link[data-platform="whatsapp"] {
  color: #ffffff;
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.social-icon-link[data-platform="website"] {
  color: #ffffff;
  border-color: rgba(124, 58, 237, 0.35);
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.contact-map {
  margin-top: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface-strong);
}

.contact-map iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

.map-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem 1rem;
  background: #ffffff;
}

.map-label {
  font-size: 0.9rem;
  color: var(--text);
}

.map-cta {
  white-space: nowrap;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field-label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* --- Modern, Animated Form Inputs --- */
.contact-form input, .contact-form select, .contact-form textarea,
.auth-form-card form input,
.stack-form input, .stack-form select, .stack-form textarea,
.newsletter-form input {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.input-pill {
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
}

	.stack-form input:hover,
	.stack-form select:hover,
	.stack-form textarea:hover {
	  transform: none;
	}

	.contact-form input::placeholder, .contact-form textarea::placeholder,
	.auth-form-card form input::placeholder,
	.stack-form input::placeholder, .stack-form textarea::placeholder,
	.newsletter-form input::placeholder {
	  color: var(--muted);
  opacity: 0.7;
}

.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus,
.auth-form-card form input:focus,
.stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus,
.newsletter-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--surface);
}

.contact-form textarea,
.stack-form textarea {
  min-height: 10rem;
  resize: vertical;
}

.contact-form select,
.stack-form select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2399a1c4' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.newsletter-form input {
  border-radius: 999px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.checkbox input {
  width: auto;
}

.checkbox input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: rgba(91, 124, 250, 0.95);
}

.calendar-shell {
  padding: 1rem;
}

.dashboard-grid,
.resource-grid,
.showcase-grid,
.testimonial-grid,
.faq-list,
.mentor-grid {
  display: grid;
  gap: 1.2rem;
}

.dashboard-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.dashboard-main,
.dashboard-side,
.showcase-card,
.resource-card,
.mentor-card,
.testimonial-card,
.faq-item,
.announcement-card,
.streak-card,
.progress-card,
.quick-links-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: none;
  padding: 1.5rem;
}

.dashboard-stack,
.side-stack,
.progress-list,
.announcement-list {
  display: grid;
  gap: 1rem;
}

.progress-list,
.announcement-list {
  list-style: none;
}

.progress-item,
.announcement-list li,
.resource-points li {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.7;
}

.progress-item strong,
.announcement-list strong,
.mentor-name,
.resource-title,
.showcase-title,
.testimonial-name {
  color: var(--text);
}

.dashboard-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.mini-metric {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.mini-metric strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: 0.55rem;
}

.dashboard-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  background: rgba(47, 141, 70, 0.1);
  border: 1px solid rgba(47, 141, 70, 0.2);
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 700;
}

.showcase-grid,
.resource-grid,
.mentor-grid,
.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.showcase-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  background:
    radial-gradient(circle at top left, rgba(91, 124, 250, 0.22), transparent 30%),
    radial-gradient(circle at bottom right, rgba(52, 212, 176, 0.18), transparent 32%),
    linear-gradient(135deg, var(--surface-strong), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
}

.showcase-visual.has-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.showcase-meta,
.mentor-role,
.resource-meta,
.testimonial-role {
  color: var(--accent-3);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.72rem;
  font-weight: 700;
}

.showcase-title,
.resource-title,
.mentor-name,
.testimonial-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  margin-top: 0.7rem;
  margin-bottom: 0.65rem;
}

.resource-points {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.resource-points li {
  padding: 0.9rem 1rem;
  line-height: 1.7;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.resource-links .mini-link {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  font-size: 0.85rem;
}

.faq-list {
  margin-top: 1rem;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  color: var(--muted);
  line-height: 1.75;
  margin-top: 1rem;
}

.faq-item summary::after {
  content: '+';
  color: var(--accent-2);
  font-size: 1.2rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '-';
}

.testimonial-stars {
  color: var(--accent-3);
  letter-spacing: 0.16em;
  margin-bottom: 0.9rem;
}

.quote {
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.98rem;
}

.link-cluster {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.pricing-grid,
.payment-layout {
  display: grid;
  gap: 1.2rem;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-card,
.payment-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.pricing-card {
  position: relative;
  overflow: hidden;
  padding: 1.6rem;
}

.pricing-card::before,
.payment-card::before {
  content: '';
  position: absolute;
  inset: auto -3rem -3rem auto;
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.pricing-card.featured {
  border-color: rgba(29, 78, 216, 0.35);
  background: var(--surface-strong);
  transform: translateY(-0.25rem);
}

.pricing-card.ambassador {
  border-color: rgba(245, 158, 11, 0.25);
}

body.theme-dark .pricing-card,
body.theme-dark .payment-card {
  background: linear-gradient(180deg, rgba(16, 22, 36, 0.96), rgba(10, 12, 24, 0.96));
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .pricing-card.featured {
  border-color: rgba(96, 165, 250, 0.55);
  background: linear-gradient(180deg, rgba(24, 32, 56, 0.98), rgba(12, 18, 38, 0.98));
}

body.theme-dark .pricing-pill.recommended {
  background: rgba(96, 165, 250, 0.2);
  border-color: rgba(96, 165, 250, 0.45);
  color: #dbeafe;
}

body.theme-dark .pricing-pill.gold {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.45);
  color: #fef3c7;
}

.pricing-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pricing-pill.recommended {
  background: rgba(29, 78, 216, 0.14);
  border-color: rgba(29, 78, 216, 0.3);
  color: #1e3a8a;
}

.pricing-pill.gold {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.32);
  color: #7c2d12;
}

.pricing-name {
  font-family: 'Merriweather', serif;
  font-size: 1.45rem;
  margin-top: 1rem;
}

.pricing-tagline {
  color: var(--muted);
  line-height: 1.7;
  margin-top: 0.75rem;
}

.pricing-price-row {
  display: flex;
  align-items: end;
  gap: 0.4rem;
  margin-top: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.pricing-price {
  font-family: 'Merriweather', serif;
  font-size: clamp(2.6rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.pricing-period {
  color: var(--muted);
  font-size: 0.95rem;
  padding-bottom: 0.35rem;
}

.pricing-features {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  margin: 1.4rem 0 1.6rem;
}

.pricing-features li {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.65;
}

.pricing-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.pricing-action {
  width: 100%;
  margin-top: 1.2rem;
}

.payment-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.payment-card {
  position: relative;
  overflow: hidden;
  padding: 1.6rem;
}

.payment-card h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.35rem;
  margin-top: 0.8rem;
}

.payment-plan-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.3rem;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.payment-plan-name {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
}

.payment-amount {
  font-family: 'Merriweather', serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  margin-top: 0.35rem;
}

.payment-amount span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  margin-left: 0.3rem;
}

.payment-benefits,
.payment-steps {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.payment-benefits li,
.payment-steps li,
.payment-note-box {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.7;
}

.payment-note-box strong,
.payment-steps strong,
.contact-plan-box strong {
  color: var(--text);
}

.payment-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.upi-panel {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.upi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.upi-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.upi-value {
  color: var(--text);
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  text-align: right;
  word-break: break-all;
}

.payment-helper {
  margin-top: 1rem;
}

.contact-plan-box {
  margin-bottom: 1rem;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-lg);
  background: rgba(29, 78, 216, 0.12);
  border: 1px solid rgba(29, 78, 216, 0.2);
  color: var(--muted);
  line-height: 1.7;
}

body.theme-dark .payment-plan-line,
body.theme-dark .payment-benefits li,
body.theme-dark .payment-steps li,
body.theme-dark .payment-note-box,
body.theme-dark .upi-row {
  background: rgba(16, 22, 36, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .contact-plan-box {
  background: rgba(96, 165, 250, 0.16);
  border-color: rgba(96, 165, 250, 0.3);
}

.join-grid,
.auth-layout {
  display: grid;
  gap: 1.4rem;
}

.join-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.auth-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.25rem 4rem;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: stretch;
}

.auth-layout.auth-simple {
  grid-template-columns: 1fr;
  max-width: 520px;
  padding: 4.5rem 1.25rem 4rem;
}

.auth-panel,
.auth-form-card,
.benefit-board,
.checklist-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: none;
  padding: 1.6rem;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-caption {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-top: 1rem;
}

.auth-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.auth-mini-stat {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.auth-mini-stat strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
}

.auth-form-card form,
.stack-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: none;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.auth-form-card form:hover,
.stack-form:hover {
  transform: none;
  box-shadow: none;
}

.auth-form-card form::before,
.stack-form::before {
  content: none;
}

.auth-form-card form:hover::before,
.stack-form:hover::before {
  opacity: 0;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  color: var(--muted);
}

.auth-layout.auth-simple .auth-links {
  justify-content: flex-start;
  gap: 0.6rem;
}

.auth-links a,
.text-link {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 700;
}

.form-status {
  min-height: 1.3rem;
  margin: 0.2rem 0 0;
  color: var(--accent-2);
  font-size: 0.92rem;
  line-height: 1.5;
}

.social-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  margin-top: 0.75rem;
}

.social-action svg {
  width: 1.2rem;
  height: 1.2rem;
}

.list-clean {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.list-clean li {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.7;
}

.badge-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.compact-note {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.split-callout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.split-callout > div {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.calendar-shell #calendar {
  width: 100%;
}

.cta-banner {
  max-width: none;
  width: 100%;
  margin: 0 0 2rem;
  padding: 2rem clamp(1rem, 2.5vw, 2.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: none;
}

.cta-banner .section-title {
  max-width: none;
}

.footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.footer-shell {
  margin-top: 0;
  width: 100%;
  padding: 2rem clamp(1rem, 2.5vw, 2.5rem);
  border-radius: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: none;
}

.footer-top {
  display: none;
}

.footer-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.footer-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.footer-title em {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  color: inherit;
}

.footer-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  padding: 0.5rem 0 1.4rem;
}

.footer-brand {
  padding-right: 1rem;
}

.footer-heading {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.footer-list a,
.footer-social a {
  color: var(--muted);
  text-decoration: none;
}

.footer-social {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  height: 2.3rem;
  padding: 0 0.9rem;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  transition: background 0.2s ease, color 0.2s ease;
}

.social-link:hover {
  transform: none;
  background: var(--surface);
  color: var(--text);
}

.footer-newsletter {
  display: none;
}

body.show-newsletter .footer-newsletter {
  display: block;
}

.newsletter-form {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(91, 124, 250, 0.12);
}

.footer-bar {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.9rem;
}

.footer-credit {
  font-size: 0.82rem;
  text-align: left;
  opacity: 0.8;
  width: auto;
}

.footer-bar .footer-copy:not(.footer-credit) {
  display: none;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.empty-state {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.85rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.empty-illustration {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.3), transparent 55%),
    linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(29, 78, 216, 0.25);
}

body.theme-dark .empty-illustration {
  box-shadow: 0 16px 40px rgba(5, 10, 25, 0.6);
}

.empty-state p {
  color: var(--muted);
}

.empty-actions {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
}

.empty-actions .button-secondary {
  min-width: 220px;
}

.cta-stack {
  max-width: 360px;
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
}

.cta-stack .button,
.cta-stack .button-secondary {
  width: 100%;
  justify-content: center;
}

[data-rotate-text] {
  color: inherit;
}

.calendar-shell .calendar-sidebar,
.calendar-shell .calendar-inner,
.calendar-shell .event-list,
.calendar-shell .calendar-day {
  background: transparent;
}

.calendar-shell .calendar-sidebar {
  border-right-color: rgba(255, 255, 255, 0.08);
}

.calendar-shell .event-list > .event-empty {
  color: var(--muted);
}

.action-strip,
.schedule-list,
.board-grid,
.roster-grid,
.rsvp-grid,
.submission-layout,
.profile-stats {
  display: grid;
  gap: 1rem;
}

.action-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.2rem;
}

.action-tile,
.schedule-item,
.submission-card,
.board-card,
.student-card,
.rsvp-card,
.profile-panel,
.stat-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.action-tile,
.schedule-item,
.submission-card,
.board-card,
.student-card,
.rsvp-card,
.profile-panel {
  padding: 1.2rem;
}

.action-tile strong,
.schedule-item strong,
.board-card strong,
.student-name,
.submission-card h3,
.rsvp-card h3,
.profile-panel h3 {
  color: var(--text);
  display: block;
}

.action-tile p,
.schedule-item p,
.board-card p,
.student-card p,
.submission-card p,
.rsvp-card p,
.profile-panel p {
  color: var(--muted);
  line-height: 1.7;
  margin-top: 0.45rem;
}

.action-tile .mini-link,
.board-actions .mini-link,
.student-links .mini-link,
.submission-card .mini-link {
  margin-top: 0.9rem;
}

.schedule-list {
  margin-top: 1.2rem;
}

.schedule-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1rem;
}

.schedule-date {
  min-width: 3.5rem;
  padding: 0.8rem 0.7rem;
  border-radius: var(--radius-md);
  background: rgba(91, 124, 250, 0.14);
  border: 1px solid rgba(91, 124, 250, 0.24);
  text-align: center;
}

.schedule-date strong {
  font-family: 'Syne', sans-serif;
  font-size: 1.45rem;
  line-height: 1;
}

.schedule-date span {
  display: block;
  margin-top: 0.25rem;
  color: var(--accent-2);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-snapshot {
  display: grid;
  gap: 1rem;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar-orb {
  width: 4rem;
  height: 4rem;
  border-radius: 1.2rem;
  display: grid;
  place-items: center;
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(108, 140, 255, 0.95), rgba(52, 212, 176, 0.85));
  box-shadow: 0 14px 30px rgba(91, 124, 250, 0.24);
  flex-shrink: 0;
}

.profile-hero strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
}

.profile-hero span,
.profile-meta,
.board-meta,
.student-role,
.submission-meta,
.rsvp-meta,
.seat-copy,
.form-note {
  color: var(--muted);
}

.profile-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-chip {
  padding: 0.95rem;
}

.stat-chip strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
}

.stat-chip span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.pill-cloud,
.board-tags,
.student-skills,
.student-links,
.meta-row,
.board-actions,
.rsvp-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pill-cloud,
.student-skills {
  margin-top: 0.9rem;
}

.meta-row {
  margin-top: 0.95rem;
}

.submission-layout {
  grid-template-columns: 0.9fr 1.1fr;
}

.profile-form-full {
  grid-template-columns: 1fr;
}

.profile-form-full .submission-card {
  width: 100%;
}

.submission-card {
  position: relative;
  overflow: hidden;
}

.submission-card::before,
.board-card::before,
.student-card::before,
.rsvp-card::before {
  content: '';
  position: absolute;
  inset: auto -2.2rem -2.2rem auto;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(52, 212, 176, 0.18), transparent 68%);
  pointer-events: none;
}

.submission-card form,
.board-form,
.rsvp-form {
  display: grid;
  gap: 1rem;
}

.field-help {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.form-note {
  display: block;
  font-size: 0.88rem;
  line-height: 1.6;
}

.payment-confirmation .section-copy {
  max-width: 46rem;
}

.choice-group {
  border: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.choice-option {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
}

.choice-option input {
  margin: 0;
  accent-color: var(--accent);
}

.choice-grid-min {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem;
  gap: 0.2rem;
}

.choice-option.minimal {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.82rem;
  white-space: nowrap;
}

.choice-option.minimal input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-option.minimal span {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.choice-option.minimal input:checked + span {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 6px 14px rgba(12, 20, 38, 0.12);
}

.choice-option.minimal input:focus-visible + span {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.submission-preview {
  display: grid;
  gap: 1rem;
}

.submission-preview .showcase-card {
  min-height: 100%;
}

.board-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.board-meta,
.rsvp-meta,
.submission-meta {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.board-need {
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--muted);
}

.board-need strong {
  margin-bottom: 0.3rem;
}

.board-actions,
.rsvp-actions,
.student-links {
  margin-top: 1rem;
}

.roster-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.student-card {
  position: relative;
  overflow: hidden;
}

.student-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.student-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  margin-top: 0.85rem;
}

.student-role {
  margin-top: 0.2rem;
  font-size: 0.92rem;
}

.student-headline {
  margin-top: 0.6rem;
  color: var(--muted);
  font-weight: 500;
}

.student-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.student-meta-grid span {
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.avatar-orb-large {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 1.35rem;
  overflow: hidden;
}

.profile-avatar-image,
.profile-upload-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.profile-preview-box {
  min-height: 6rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.profile-upload-preview {
  max-width: 100%;
  min-height: 6rem;
}

.tag-soft {
  background: rgba(255, 196, 107, 0.12);
  border-color: rgba(255, 196, 107, 0.22);
  color: var(--accent-3);
}

.admin-card-head,
.admin-action-item,
.admin-inline-actions {
  display: flex;
  align-items: center;
}

.admin-card-head,
.admin-action-item {
  justify-content: space-between;
  gap: 1rem;
}

.admin-action-list {
  display: grid;
  gap: 0.85rem;
}

.admin-action-item {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.admin-action-item span {
  display: block;
  color: var(--muted);
  margin-top: 0.2rem;
  font-size: 0.88rem;
}

.admin-action-item .status-pill {
  display: inline-flex;
  margin-top: 0.4rem;
}

.admin-inline-actions {
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  margin-top: 0.85rem;
}

.admin-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-action-button {
  min-width: auto;
  padding: 0.7rem 1rem;
}

.admin-action-button.is-danger {
  border-color: rgba(255, 107, 107, 0.28);
  color: #ff8d8d;
}

.admin-action-button.is-active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.admin-action-button.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.admin-payout-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.admin-payout-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.admin-payout-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 12rem;
}

.admin-payout-info span {
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-payout-history {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.45rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.admin-payout-history-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-payout-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-payout-actions input {
  width: auto;
  min-width: 9rem;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.admin-payout-actions .input-pill {
  max-width: 10rem;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(52, 212, 176, 0.12);
  border: 1px solid rgba(52, 212, 176, 0.18);
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.availability-pill::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: currentColor;
}

.profile-panel {
  margin-top: 1.2rem;
}

.filter-bar {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

[data-class-filters] {
  margin-bottom: 0.8rem;
}

[data-resource-filters] {
  margin-bottom: 1rem;
}

[data-challenge-submission-controls] {
  margin-bottom: 0.85rem;
}

[data-challenge-controls] {
  margin-bottom: 0.85rem;
}

[data-micro-controls] {
  margin-bottom: 0.85rem;
}

[data-micro-submission-controls] {
  margin-bottom: 0.85rem;
}

.filter-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.6rem 0.8rem;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

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

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.filter-chip.is-active {
  color: var(--text);
  background: rgba(91, 124, 250, 0.14);
  border-color: rgba(91, 124, 250, 0.22);
}

.rsvp-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.seat-meter {
  margin-top: 1rem;
}

.seat-bar {
  width: 100%;
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.seat-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.seat-copy {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.88rem;
}

.dynamic-list,
.resource-library,
.challenge-grid,
.leaderboard-list,
.mentor-bookings,
.activity-feed {
  display: grid;
  gap: 1rem;
}

.resource-library {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.challenge-grid {
  grid-template-columns: 1.05fr 0.95fr;
}

.challenge-card,
.leaderboard-card,
.booking-card,
.feed-card,
.update-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.library-card {
  position: relative;
  transition: opacity 0.2s ease, transform 0.2s ease;
  will-change: opacity, transform;
}

.library-card.is-hidden {
  display: none;
}

.library-card.is-filtered {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.is-hidden {
  display: none !important;
}

.library-card .resource-meta {
  display: inline-flex;
}

.challenge-list,
.leaderboard-list,
.mentor-bookings,
.activity-feed {
  list-style: none;
}

.challenge-list li,
.leaderboard-item,
.booking-item,
.feed-item {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--muted);
}

.leaderboard-item,
.booking-item,
.feed-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.leaderboard-rank,
.feed-badge {
  flex-shrink: 0;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(91, 124, 250, 0.16);
  color: var(--text);
  font-family: 'Syne', sans-serif;
}

.leaderboard-copy strong,
.booking-copy strong,
.feed-copy strong {
  display: block;
  color: var(--text);
}

.leaderboard-copy span,
.booking-copy span,
.feed-copy span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  line-height: 1.6;
}

.booking-item {
  align-items: flex-start;
}

.booking-time {
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.challenge-score {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.glow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(91, 124, 250, 0.16);
  border: 1px solid rgba(91, 124, 250, 0.22);
  color: var(--text);
  font-weight: 700;
}

.form-status {
  display: block;
  min-height: 1.25rem;
  color: var(--accent-2);
  font-size: 0.9rem;
}

.empty-state {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
}

.toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  display: grid;
  gap: 0.75rem;
  width: min(22rem, calc(100vw - 2rem));
}

.toast {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 22px 50px rgba(2, 6, 23, 0.35);
  color: var(--text);
  opacity: 0;
  transform: translateY(14px);
  animation: toast-in 0.35s ease forwards;
}

.toast strong {
  display: block;
  margin-bottom: 0.22rem;
}

.toast span {
  color: var(--muted);
  line-height: 1.55;
}

.pulse-dot {
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -0.15rem;
  border-radius: inherit;
  border: 1px solid rgba(52, 212, 176, 0.4);
  animation: pulse-outline 1.9s ease-out infinite;
}

.feed-card {
  margin-top: 1.2rem;
}

.admin-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: 1fr;
}

[data-admin-results] {
  display: grid;
  gap: 1.8rem;
}

.admin-card {
  background: linear-gradient(180deg, rgba(19, 22, 40, 0.94), rgba(10, 12, 24, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.theme-light .admin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.theme-light .admin-card .field-label,
.theme-light .admin-card .card-copy,
.theme-light .admin-card .admin-card-head h3,
.theme-light .admin-card h3 {
  color: var(--text);
}

.admin-page {
  width: 100%;
  max-width: none;
  padding: 2.5rem 1.25rem 4rem;
  display: grid;
  gap: 1.5rem;
}

.admin-page-head {
  max-width: 920px;
}

/* Admin redesign layout */
.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
  background: #f6f7fb;
  color: #111827;
}

.admin-sidebar {
  background: #ffffff;
  border-right: 1px solid #e6e9f1;
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-brand .brand {
  display: inline-flex;
}

.admin-nav {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.4rem;
}

.admin-nav-link {
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #1f2937;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-nav-link:hover {
  background: #eef3ff;
}

.admin-nav-link.is-active {
  background: #e6f0ff;
  color: #1d4ed8;
  font-weight: 600;
}

.admin-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  background: #ffffff;
  border-bottom: 1px solid #e6e9f1;
  position: sticky;
  top: 0;
  z-index: 5;
}

.admin-topbar-title {
  display: grid;
  gap: 0.2rem;
}

.admin-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid #e6e9f1;
  background: #ffffff;
  color: #1f2937;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.admin-topbar-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-topbar .nav-pill {
  margin-left: 0.25rem;
}

.admin-user {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: #111827;
}

.admin-section {
  margin-bottom: 2rem;
}

.admin-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-page .section-title {
  font-size: 1.6rem;
  color: #111827;
}

.admin-page .section-copy {
  color: #6b7280;
}

.admin-page .admin-card {
  background: #ffffff;
  border: 1px solid #e6e9f1;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.admin-page .status-pill {
  background: #f3f4f6;
  color: #111827;
}

.admin-page .table-wrap {
  border-color: #e6e9f1;
  background: #ffffff;
  max-height: 520px;
}

.admin-page .data-table th {
  background: #ffffff;
}

.admin-page .data-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.admin-page .data-table tbody tr:hover {
  background: #eef2ff;
}

@media (max-width: 1024px) {
  .admin-shell {
    grid-template-columns: 200px 1fr;
  }
  .admin-topbar {
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 860px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #e6e9f1;
  }
  .admin-nav {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .admin-topbar-meta {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .admin-page {
    padding: 1.6rem 1rem 2.5rem;
  }
  .admin-nav {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .admin-topbar {
    padding: 0.85rem 1rem;
  }
  .admin-topbar-meta {
    width: 100%;
    justify-content: space-between;
  }
  .admin-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-card-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-summary-grid {
    grid-template-columns: 1fr;
  }
  .admin-card {
    padding: 1rem;
  }
}

@media (max-width: 720px) {
  .admin-page {
    padding: 2rem 1rem 3rem;
    gap: 1.25rem;
  }
}

@media (max-width: 720px) {
  .admin-sidebar {
    padding: 1rem 0.85rem 0.75rem;
  }
  .admin-menu-toggle {
    display: inline-flex;
  }
  .admin-nav {
    display: none;
    margin-top: 0.75rem;
    gap: 0.4rem;
    grid-template-columns: 1fr;
  }
  .admin-shell.is-menu-open .admin-nav {
    display: grid;
  }
  .admin-nav-link {
    width: 100%;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
  }
  .admin-page .table-wrap {
    max-height: none;
  }
  .admin-filter-row,
  .admin-filter-group,
  .admin-inline-actions,
  .admin-payout-actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .admin-action-button,
  .admin-payout-actions input {
    width: 100%;
  }
  .admin-action-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-payout-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-payout-history-row {
    grid-template-columns: 1fr;
  }
  .pagination-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .pagination-controls span {
    text-align: center;
  }
  .admin-page .table-wrap {
    overflow-x: auto;
  }
  .admin-page .data-table {
    display: table;
    min-width: 720px;
    table-layout: auto;
  }
  .admin-page .data-table thead {
    display: table-header-group;
  }
  .admin-page .data-table tbody {
    display: table-row-group;
  }
  .admin-page .data-table tr {
    display: table-row;
    padding: 0;
    background: transparent;
    border: none;
    margin: 0;
  }
  .admin-page .data-table td,
  .admin-page .data-table th {
    display: table-cell;
    padding: 0.75rem 0.7rem;
  }
  .admin-page .data-table td::before {
    content: none;
  }
}

.admin-card h3 {
  font-family: 'Syne', sans-serif;
  margin-bottom: 0.8rem;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
}

.admin-summary-item {
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 0.25rem;
}

.theme-light .admin-summary-item {
  background: var(--surface-strong);
}

.admin-summary-item strong {
  font-size: 1.25rem;
  color: var(--text);
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.pagination-controls span {
  color: var(--muted);
  font-size: 0.9rem;
}

.pagination-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.table-wrap {
  overflow-x: auto;
  width: 100%;
}

.table-wrap {
  max-height: 520px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(10, 14, 28, 0.35);
}

.theme-light .table-wrap {
  background: var(--surface);
}


.admin-card .empty-state {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  text-align: center;
}

.data-table .empty-state {
  background: none;
  border: none;
  padding: 1.5rem 0.55rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 16, 0.8);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  width: min(42rem, 100%);
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.is-open .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.modal-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.modal-body .stack-form {
  gap: 1.2rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  color: var(--muted);
  vertical-align: top;
  word-wrap: break-word;
}

.data-table th {
  position: sticky;
  top: 0;
  color: var(--text);
  font-weight: 700;
  background: rgba(10, 14, 28, 0.85);
  backdrop-filter: blur(6px);
  z-index: 1;
}

.data-table td strong {
  color: var(--text);
}

.data-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.theme-light .data-table th {
  background: var(--surface);
}

.data-table tbody tr:hover {
  background: rgba(91, 124, 250, 0.08);
}

.data-table tr.status-row.status-approved {
  background: rgba(25, 135, 84, 0.08);
}

.data-table tr.status-row.status-rejected {
  background: rgba(220, 53, 69, 0.08);
}

.data-table tr.status-row.status-pending {
  background: rgba(255, 193, 7, 0.08);
}

.theme-light .data-table tr.status-row.status-approved {
  background: rgba(25, 135, 84, 0.12);
}

.theme-light .data-table tr.status-row.status-rejected {
  background: rgba(220, 53, 69, 0.12);
}

.theme-light .data-table tr.status-row.status-pending {
  background: rgba(255, 193, 7, 0.16);
}

@media (max-width: 720px) {
  .table-wrap {
    overflow-x: visible;
  }

  .data-table {
    table-layout: auto;
  }

  .data-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    padding: 0.75rem 0.75rem 0.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 12, 24, 0.7);
    margin-bottom: 0.85rem;
  }

  .theme-light .data-table tr {
    background: var(--surface);
    border-color: var(--line);
  }

  .data-table td {
    padding: 0.4rem 0.5rem;
    border: none;
    display: grid;
    grid-template-columns: minmax(110px, 40%) 1fr;
    gap: 0.5rem;
    color: var(--text);
  }

  .data-table td::before {
    content: attr(data-label);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
  }
}

.feed-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.feed-header p {
  color: var(--muted);
}

.mentor-grid .button-secondary,
.resource-library .button-secondary,
.challenge-card .button-secondary {
  margin-top: 1rem;
}

@keyframes toast-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-outline {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(1.5rem, -1rem) scale(1.05);
  }
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 212, 176, 0.45);
  }
  70% {
    box-shadow: 0 0 0 0.45rem rgba(52, 212, 176, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 212, 176, 0);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1080px) {
  .nav-links a {
    padding: 0.45rem 0.65rem;
    font-size: 0.9rem;
  }

  .status-pill {
    font-size: 0.72rem;
  }

  .hero-grid,
  .spotlight,
  .contact-grid,
  .feature-grid,
  .team-grid,
  .project-grid,
  .timeline-grid,
  .metrics-grid,
  .pricing-grid,
  .payment-layout,
  .join-grid,
  .auth-layout,
  .dashboard-grid,
  .showcase-grid,
  .resource-grid,
  .mentor-grid,
  .testimonial-grid,
  .footer-grid,
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-layout.auth-simple {
    grid-template-columns: 1fr;
  }

  .action-strip,
  .board-grid,
  .roster-grid,
  .profile-stats,
  .submission-layout,
  .rsvp-grid,
  .resource-library,
  .challenge-grid,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .site-nav {
    overflow-x: clip;
  }

  .top-banner {
    display: none;
  }

  .site-nav-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
  }

  .nav-toggle {
    display: inline-block;
  }

  .brand-mark {
    gap: 1rem;
  }

  .brand-badge {
    width: clamp(2.8rem, 12vw, 3.6rem);
    height: clamp(2.8rem, 12vw, 3.6rem);
    border-radius: clamp(0.9rem, 3.4vw, 1.2rem);
    flex-shrink: 0;
  }

  .brand-copy > span:first-child {
    font-size: clamp(1.55rem, 7.6vw, 2.25rem);
    line-height: 1.06;
  }

  .brand-sub {
    letter-spacing: 0.14em;
    font-size: clamp(0.72rem, 2.6vw, 0.92rem);
  }

  .nav-meta {
    grid-column: 1 / -1;
    width: 100%;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    display: none;
    padding: 0.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    max-height: 70vh;
    overflow-y: auto;
    white-space: normal;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    text-align: left;
    width: 100%;
  }

  .theme-toggle {
    width: 100%;
  }

  .top-banner-inner,
  .nav-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .top-banner-inner {
    gap: 0.75rem;
  }

  .banner-marquee {
    width: 100%;
    mask-image: none;
  }

  .status-pill {
    display: none;
  }

  .data-table .status-pill {
    display: inline-flex;
  }

  .hero-grid,
  .hero-stats,
  .feature-grid,
  .metrics-grid,
  .pricing-grid,
  .payment-layout,
  .join-grid,
  .auth-layout,
  .dashboard-grid,
  .showcase-grid,
  .resource-grid,
  .mentor-grid,
  .testimonial-grid,
  .dashboard-row,
  .team-grid,
  .project-grid,
  .timeline-grid,
  .input-grid,
  .contact-grid,
  .spotlight,
  .split-callout,
  .footer-grid,
  .footer-top,
  .section-head,
  .cta-banner,
  .footer-bar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .action-strip,
  .board-grid,
  .roster-grid,
  .profile-stats,
  .submission-layout,
  .rsvp-grid,
  .resource-library,
  .challenge-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .schedule-item,
  .profile-hero,
  .student-top {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .newsletter-form,
  .footer-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-hero,
  .sub-hero {
    padding-top: 4rem;
    padding-bottom: 2rem;
  }

  .contact-grid > .contact-card:nth-child(1) {
    order: 2;
  }

  .contact-grid > .contact-card:nth-child(2) {
    order: 1;
  }

  .display-title {
    font-size: clamp(1.15rem, 5.8vw, 1.85rem);
  }

  .section-title {
    font-size: clamp(1.35rem, 4.2vw, 2.1rem);
    max-width: none;
  }

  .cta-banner .section-title {
    font-size: clamp(1.2rem, 4.8vw, 1.8rem);
  }

  .section {
    padding-top: 1.1rem;
    padding-bottom: 1.6rem;
  }

  .section-head {
    margin-bottom: 1rem;
    gap: 0.75rem;
  }

  .hero-panel {
    padding: 1.1rem;
  }

  .hero-stack {
    gap: 0.6rem;
  }

  .hero-stack-item {
    padding: 0.75rem 0.85rem;
  }

  .hero-stats {
    margin-top: 1rem;
    gap: 0.8rem;
  }

  .hero-stat {
    padding: 0.8rem 0.85rem;
  }

  .hero-stat-value {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .stat-label {
    margin-top: 0.3rem;
    font-size: 0.9rem;
  }

  .hero-copy {
    margin-top: 1rem;
  }

  .spotlight {
    gap: 0.9rem;
  }

  .spotlight-panel {
    padding: 1.1rem;
  }

  .pillars {
    gap: 0.6rem;
    margin-top: 0.7rem;
  }

  .pillars li {
    padding: 0.7rem 0.8rem;
  }
}

@media (max-width: 540px) {
  .top-banner-inner {
    padding: 0.7rem 1rem;
  }

  .banner-tag {
    justify-content: center;
  }

  .banner-link {
    width: 100%;
    padding: 0.7rem 0.9rem;
    text-align: center;
    border-radius: 10px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
  }

  .site-nav-inner,
  .section,
  .page-hero,
  .sub-hero,
  .footer-shell,
  .cta-banner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brand-sub {
    display: none;
  }

  .display-title {
    font-size: clamp(1.05rem, 5.4vw, 1.7rem);
    line-height: 1;
  }

  .section-title {
    font-size: clamp(1.2rem, 4.8vw, 1.7rem);
  }

  .cta-banner .section-title {
    font-size: clamp(1.1rem, 5vw, 1.55rem);
  }

  .card-title,
  .panel-title,
  .spotlight-title {
    font-size: 1rem;
  }

  .hero-stack-item strong {
    font-size: 0.95rem;
  }

  .section {
    padding-top: 1.3rem;
    padding-bottom: 2.2rem;
  }

  .section {
    padding-top: 0.95rem;
    padding-bottom: 1.3rem;
  }

  .section-head {
    margin-bottom: 0.85rem;
  }

  .hero-panel {
    padding: 0.9rem;
  }

  .hero-stack-item {
    padding: 0.65rem 0.75rem;
  }

  .hero-stats {
    margin-top: 0.85rem;
    gap: 0.7rem;
  }

  .hero-stat {
    padding: 0.7rem 0.75rem;
  }

  .hero-stat-value {
    font-size: clamp(1.2rem, 7vw, 1.7rem);
  }

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

  .spotlight-panel {
    padding: 0.95rem;
  }

  .pillars li {
    padding: 0.6rem 0.7rem;
  }

  .cta-banner {
    margin-bottom: 1.5rem;
  }

  .hero-copy,
  .section-copy,
  .card-copy,
  .spotlight-copy,
  .timeline-copy,
  .footer-copy,
  .pillars li,
  .stat-note {
    font-size: 0.96rem;
  }

  .hero-panel,
  .glass-card,
  .feature-card,
  .metric-card,
  .timeline-card,
  .contact-card,
  .calendar-shell,
  .team-card,
  .project-card,
  .dashboard-main,
  .dashboard-side,
  .showcase-card,
  .resource-card,
  .mentor-card,
  .testimonial-card,
  .faq-item,
  .announcement-card,
  .streak-card,
  .progress-card,
  .quick-links-card,
  .auth-panel,
  .auth-form-card,
  .benefit-board,
  .checklist-card {
    padding: 1.15rem;
    border-radius: 22px;
  }

  .button,
  .button-secondary {
    width: 100%;
  }

  .hero-stat {
    padding: 1rem 0.95rem;
  }

  .calendar-shell {
    padding: 0.75rem;
  }

  .schedule-date,
  .availability-pill {
    align-self: flex-start;
  }

  .leaderboard-item,
  .booking-item,
  .feed-item,
  .feed-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .toast-stack {
    left: 1rem;
    right: 1rem;
    width: auto;
  }
}

/* Community Chat */
.chat-shell {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 1.1rem;
  align-items: stretch;
}

body.chat-fullscreen .site-nav,
body.chat-fullscreen .sub-hero,
body.chat-fullscreen .cta-stack,
body.chat-fullscreen .footer {
  display: none;
}

body.chat-fullscreen .section {
  padding: 0;
}

body.chat-fullscreen .chat-shell {
  min-height: 100vh;
  height: 100vh;
  gap: 0;
}

body.chat-fullscreen .chat-sidebar,
body.chat-fullscreen .chat-main {
  border-radius: 0;
  box-shadow: none;
}

.chat-sidebar,
.chat-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-sidebar {
  padding: 1.25rem;
}

.chat-groups {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.chat-group-section {
  display: grid;
  gap: 0.6rem;
}

.chat-group-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.chat-group-list {
  display: grid;
  gap: 0.65rem;
}

.chat-group {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 16px;
  padding: 0.9rem 0.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.chat-group strong {
  display: block;
  font-size: 1rem;
}

.chat-group-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.chat-group-status.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.chat-group span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.chat-group:hover {
  transform: translateY(-1px);
  border-color: rgba(91, 124, 250, 0.45);
  background: rgba(91, 124, 250, 0.08);
}

.chat-group.is-active {
  border-color: rgba(52, 212, 176, 0.55);
  background: rgba(52, 212, 176, 0.08);
}

.chat-main {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
}

.chat-main-head {
  padding: 0.5rem 0.9rem 0.5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  background:
    linear-gradient(90deg, rgba(52, 212, 176, 0.12), rgba(52, 212, 176, 0.04)),
    var(--surface);
}

.chat-main-title {
  display: grid;
  gap: 0.2rem;
}

.chat-group-identity {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.chat-group-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 55%),
    linear-gradient(140deg, rgba(52, 212, 176, 0.8), rgba(91, 124, 250, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chat-group-avatar::after {
  content: '';
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--surface);
}

.chat-main-title .section-copy {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 44ch;
}

.chat-head-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chat-back {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
}

.chat-messages {
  padding: 1.1rem;
  overflow: auto;
  min-height: 320px;
  max-height: 60vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(52, 212, 176, 0.08), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(91, 124, 250, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(232, 236, 244, 0.6), rgba(232, 236, 244, 0.2));
}

body.chat-fullscreen .chat-messages {
  max-height: none;
}

body.theme-dark .chat-messages {
  background: linear-gradient(180deg, rgba(12, 18, 38, 0.7), rgba(12, 18, 38, 0.4));
}

.chat-empty {
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 1.1rem 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.chat-access {
  margin: 0.8rem;
}

.chat-access .empty-actions {
  margin-top: 0.4rem;
}


.chat-empty strong {
  display: block;
  font-size: 1rem;
}

.chat-empty span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
}

.chat-message {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.7rem;
  position: relative;
  max-width: min(78%, 520px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.chat-message.is-mine {
  margin-left: auto;
  border-color: rgba(52, 212, 176, 0.35);
  background: rgba(52, 212, 176, 0.18);
}

body.theme-dark .chat-message {
  background: rgba(18, 27, 54, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.35);
}

.chat-message.is-highlight {
  box-shadow: 0 0 0 2px rgba(245, 200, 66, 0.6), 0 10px 30px rgba(245, 200, 66, 0.2);
  border-color: rgba(245, 200, 66, 0.65);
}

.chat-message-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.chat-time {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: var(--muted);
  text-align: right;
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  align-items: center;
}

.chat-read {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.68rem;
  cursor: help;
}

.chat-reply-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--muted);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.chat-reply-btn:hover {
  color: var(--text);
  border-color: rgba(91, 124, 250, 0.45);
  transform: translateY(-1px);
}

.chat-reply-preview {
  margin-top: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-left: 3px solid rgba(52, 212, 176, 0.6);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.chat-reply-tag {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
}

.chat-reply-preview p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.chat-reply-jump {
  margin-top: 0.35rem;
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
}

.chat-reply-jump:hover {
  text-decoration: underline;
}

.chat-reply {
  display: none;
}

.chat-reply-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.chat-reply-snippet {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.chat-reply-cancel {
  padding: 0.5rem 0.9rem;
}

.chat-message p {
  margin-top: 0.45rem;
  color: var(--text);
  line-height: 1.45;
  white-space: pre-wrap;
}

body.theme-dark .chat-message p {
  color: rgba(232, 234, 246, 0.95);
}

.chat-attachment {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.chat-attachment img,
.chat-attachment video {
  width: 100%;
  max-width: 320px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.08);
}

.chat-attachment audio {
  width: 100%;
  max-width: 320px;
}

.chat-attachment a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.chat-attachment-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.chat-form {
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.chat-attach-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chat-attach-note {
  font-size: 0.78rem;
  color: var(--muted);
}

.chat-input-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
}

body.theme-dark .chat-input-row {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

.chat-attach-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.chat-attach-icon svg {
  width: 18px;
  height: 18px;
}

.chat-attach-icon.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.chat-send {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}

.chat-send::before {
  content: '➤';
  font-size: 1rem;
  transform: translateX(1px);
}

.chat-form.is-highlight {
  box-shadow: 0 0 0 2px rgba(52, 212, 176, 0.35), 0 10px 30px rgba(52, 212, 176, 0.12);
}

.chat-form.is-highlight textarea {
  border-color: rgba(52, 212, 176, 0.6);
}

.chat-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 38px;
  border: none;
  background: transparent;
  padding: 0.25rem 0;
}

.chat-form textarea:focus {
  outline: none;
}

.chat-mentions {
  margin-top: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.4rem;
  display: grid;
  gap: 0.35rem;
}

.chat-mention-item {
  text-align: left;
  border: none;
  background: var(--surface-strong);
  color: var(--text);
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
}

.chat-mention-item:hover {
  background: rgba(91, 124, 250, 0.18);
}

.chat-form-row {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.chat-reply-chip {
  border: 1px dashed rgba(91, 124, 250, 0.45);
  background: rgba(91, 124, 250, 0.08);
  color: var(--text);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  max-width: 100%;
  text-align: left;
}

.chat-reply-chip:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(91, 124, 250, 0.2);
}

.chat-reply-chip:after {
  content: ' ✕';
  color: var(--muted);
}

.chat-message.is-swipe {
  transform: translateX(8px);
  transition: transform 0.2s ease;
}

body.theme-dark .bar-chart-track,
body.theme-dark .hero-stat,
body.theme-dark .pillars li,
body.theme-dark .list-clean li,
body.theme-dark .split-callout > div,
body.theme-dark .pricing-features li,
body.theme-dark .submission-card,
body.theme-dark .board-card,
body.theme-dark .student-card,
body.theme-dark .rsvp-card,
body.theme-dark .profile-panel,
body.theme-dark .stat-chip,
body.theme-dark .board-need,
body.theme-dark .student-meta-grid span,
body.theme-dark .admin-action-item,
body.theme-dark .admin-payout-item,
body.theme-dark .filter-chip,
body.theme-dark .empty-state,
body.theme-dark .challenge-list li,
body.theme-dark .leaderboard-item,
body.theme-dark .booking-item,
body.theme-dark .feed-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .challenge-card,
body.theme-dark .leaderboard-card,
body.theme-dark .booking-card,
body.theme-dark .feed-card,
body.theme-dark .update-card {
  background: linear-gradient(180deg, rgba(16, 22, 36, 0.96), rgba(10, 12, 24, 0.96));
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .newsletter-form input {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .admin-payout-actions input {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
}

body.theme-dark .toast {
  background: rgba(10, 14, 28, 0.96);
  border-color: rgba(255, 255, 255, 0.09);
}

body.theme-dark .modal-content {
  background: linear-gradient(180deg, rgba(19, 22, 40, 0.98), rgba(10, 12, 24, 0.98));
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .admin-card .empty-state {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
}

body.theme-dark .chat-form {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: rgba(6, 8, 16, 0.35);
}

body.theme-dark .chat-mentions {
  background: rgba(14, 16, 32, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
}

body.theme-dark .chat-mention-item {
  background: rgba(255, 255, 255, 0.06);
}

body.theme-dark .showcase-visual {
  border-color: rgba(255, 255, 255, 0.07);
}

body.theme-dark .team-photo {
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 900px) {
  .reveal {
    transform: none !important;
  }

  .stack-form {
    position: static;
    overflow: visible;
  }

  .submission-layout,
  .submission-card {
    overflow: visible;
  }

  .submission-card {
    position: static;
  }

  .stack-form select {
    -webkit-appearance: menulist;
    appearance: menulist;
    background-image: none;
    padding-right: 1rem;
  }

  .payment-confirmation,
  .payment-confirmation .submission-layout,
  .payment-confirmation .submission-card,
  .payment-confirmation .stack-form {
    transform: none !important;
  }

  .payment-confirmation .stack-form select {
    width: 100%;
    font-size: 0.98rem;
  }
  .chat-shell {
    grid-template-columns: 1fr;
  }

  .chat-sidebar {
    max-height: 40vh;
    overflow: auto;
  }

  .chat-main-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-head-status {
    width: 100%;
    justify-content: flex-start;
  }

  .chat-messages {
    max-height: 56vh;
  }

  .chat-reply-btn {
    display: none;
  }

  .chat-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .chat-shell.is-chat-open .chat-sidebar {
    display: none;
  }

  .chat-shell.is-chat-open .chat-main {
    display: grid;
  }

  .chat-shell:not(.is-chat-open) .chat-main {
    display: none;
  }

  body.chat-fullscreen .sub-hero,
  body.chat-fullscreen .cta-stack,
  body.chat-fullscreen .footer {
    display: none;
  }
}

/* Access gate (guest restrictions) */
.access-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background:
    radial-gradient(circle at 20% 10%, rgba(91, 124, 250, 0.25), transparent 55%),
    radial-gradient(circle at 85% 70%, rgba(52, 212, 176, 0.18), transparent 60%),
    rgba(6, 8, 16, 0.84);
  backdrop-filter: blur(18px);
}

.access-gate-card {
  width: min(720px, 100%);
  padding: clamp(1.2rem, 2.8vw, 2rem);
  border-radius: var(--radius-xl);
  background: rgba(14, 16, 32, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.theme-light .access-gate {
  background:
    radial-gradient(circle at 20% 10%, rgba(91, 124, 250, 0.18), transparent 55%),
    radial-gradient(circle at 85% 70%, rgba(52, 212, 176, 0.12), transparent 60%),
    rgba(248, 250, 255, 0.92);
}

.theme-light .access-gate-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.access-gate-row {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* Listing page spacing */
[data-listing-status],
[data-listing-subscriber-features] {
  margin-top: 1.5rem;
}

/* Performance + mobile responsiveness */
img, video, svg, iframe {
  max-width: 100%;
  height: auto;
}

.section,
.admin-card,
.project-card,
.board-card,
.resource-card,
.timeline-card,
.showcase-card,
.student-card {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}

@media (max-width: 720px) {
  .filter-controls,
  .input-grid,
  .rsvp-grid,
  .project-grid,
  .board-grid {
    grid-template-columns: 1fr !important;
  }

  .filter-controls {
    gap: 0.75rem;
  }

  .filter-input,
  .filter-select {
    width: 100%;
  }

  .table-wrap {
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
