/* assets/css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@600;700&family=Manrope:wght@400;500;600;700;800&display=swap&subset=latin-ext');

:root {
  --bg: #f6f1e8;
  --bg-strong: #ebe0cf;
  --surface: rgba(255, 250, 243, 0.88);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-dark: rgba(14, 28, 46, 0.88);
  --surface-dark-strong: #16273c;
  --text: #213040;
  --text-soft: #51606f;
  --heading: #112034;
  --accent: #c8714f;
  --accent-strong: #b35d42;
  --accent-soft: #f3d0be;
  --gold: #d5af72;
  --success-soft: #daf1e7;
  --warning-soft: #f8ead2;
  --line: rgba(17, 32, 52, 0.1);
  --line-strong: rgba(17, 32, 52, 0.16);
  --shadow-soft: 0 18px 40px rgba(39, 30, 18, 0.08);
  --shadow-medium: 0 26px 60px rgba(30, 34, 42, 0.12);
  --shadow-strong: 0 34px 80px rgba(18, 23, 32, 0.18);
  --radius-sm: 18px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-xl: 40px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(213, 175, 114, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(200, 113, 79, 0.14), transparent 28%),
    linear-gradient(180deg, #fbf7f2 0%, var(--bg) 45%, var(--bg-strong) 100%);
  position: relative;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    linear-gradient(rgba(17, 32, 52, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 32, 52, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 82%);
}

body::after {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.6), transparent 18%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.35), transparent 20%);
}

main,
.container {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: var(--heading);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.9rem;
  font-family: 'Lora', serif;
  letter-spacing: -0.02em;
  color: var(--heading);
}

p:last-child {
  margin-bottom: 0;
}

.text-muted {
  color: var(--text-soft) !important;
}

.page-shell {
  padding: 2rem 0 4.5rem;
}

.surface-card,
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.surface-card {
  padding: 1.75rem;
}

.surface-card--tight {
  padding: 1.25rem;
}

.surface-card--dark {
  color: #f4efe8;
  background: linear-gradient(145deg, rgba(17, 32, 52, 0.95), rgba(28, 53, 79, 0.92));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-strong);
}

.surface-card--dark h1,
.surface-card--dark h2,
.surface-card--dark h3,
.surface-card--dark h4,
.surface-card--dark h5,
.surface-card--dark h6,
.surface-card--dark .metric-value,
.surface-card--dark .section-eyebrow {
  color: #ffffff;
}

.surface-card--dark .text-muted,
.surface-card--dark .metric-note,
.surface-card--dark .content-kicker {
  color: rgba(244, 239, 232, 0.76) !important;
}

.surface-card--plain {
  background: var(--surface-strong);
}

.content-kicker,
.section-eyebrow,
.metric-label,
.stat-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text-soft);
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 0.9rem;
}

.section-copy {
  max-width: 720px;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #10233a 0%, #1c4260 52%, #cc7b55 100%);
  color: #ffffff;
  box-shadow: var(--shadow-strong);
}

.hero-panel::before,
.hero-panel::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-panel::before {
  width: 280px;
  height: 280px;
  top: -120px;
  right: -40px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 68%);
}

.hero-panel::after {
  width: 240px;
  height: 240px;
  left: -80px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(213, 175, 114, 0.28), transparent 70%);
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-panel h1,
.hero-panel h2,
.hero-panel h3 {
  color: #ffffff;
}

.hero-panel p,
.hero-panel .text-muted,
.hero-panel li,
.hero-note {
  color: rgba(255, 255, 255, 0.82) !important;
}

.hero-title {
  font-size: clamp(2.5rem, 4.8vw, 4.8rem);
  line-height: 0.95;
  max-width: 10ch;
}

.hero-copy {
  max-width: 34rem;
  font-size: 1.06rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.hero-badges,
.stats-strip,
.info-grid {
  display: grid;
  gap: 0.85rem;
}

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

.hero-badge {
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.hero-badge__value {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

.hero-badge__label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
}

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

.hero-stack .surface-card {
  background: rgba(255, 252, 248, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
}

.hero-stack .surface-card h3,
.hero-stack .surface-card h4,
.hero-stack .surface-card h5,
.hero-stack .surface-card .metric-value {
  color: #ffffff;
}

.hero-stack .surface-card .text-muted,
.hero-stack .surface-card .metric-note {
  color: rgba(255, 255, 255, 0.68) !important;
}

.metric-grid,
.feature-grid,
.action-grid,
.insight-grid {
  display: grid;
  gap: 1rem;
}

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

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

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

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

.insight-grid .metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card,
.feature-card,
.action-card,
.highlight-card {
  height: 100%;
}

.metric-card {
  padding: 1.55rem;
  min-width: 0;
}

.metric-value {
  display: block;
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  color: var(--heading);
}

.insight-grid .metric-card {
  padding: 1.25rem;
}

.insight-grid .metric-value {
  font-size: clamp(1.35rem, 2vw, 2.5rem);
  line-height: 0.96;
  overflow-wrap: anywhere;
}

.metric-note,
.stat-note {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.metric-icon,
.feature-icon,
.action-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(200, 113, 79, 0.18), rgba(213, 175, 114, 0.28));
  color: var(--heading);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.feature-card,
.action-card,
.highlight-card {
  padding: 1.6rem;
}

.feature-card {
  position: relative;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: auto -40px -60px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(213, 175, 114, 0.18), transparent 70%);
}

.feature-title,
.action-title {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.action-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.action-card:hover,
.feature-card:hover,
.lesson-browser-card:hover,
.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
  border-color: var(--line-strong);
}

.action-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--heading);
  font-weight: 800;
}

.spotlight-banner {
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(130deg, rgba(17, 32, 52, 0.95), rgba(34, 67, 97, 0.92));
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-medium);
}

.spotlight-banner h3,
.spotlight-banner h4 {
  color: #ffffff;
}

.spotlight-banner .text-muted {
  color: rgba(255, 255, 255, 0.72) !important;
}

.list-stack,
.detail-stack {
  display: grid;
  gap: 1rem;
}

.list-item-card {
  padding: 1.2rem 1.3rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.list-item-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 32px rgba(20, 29, 41, 0.08);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.badge {
  padding: 0.58rem 0.85rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(17, 32, 52, 0.08);
  color: var(--heading);
  font-size: 0.78rem;
  font-weight: 800;
}

.filter-panel {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.lesson-browser-card,
.auth-card,
.auth-showcase,
.profile-summary,
.leaderboard-podium-card,
.review-card,
.practice-card,
.lesson-detail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.lesson-browser-card,
.review-card,
.practice-card,
.lesson-detail-card,
.profile-summary,
.leaderboard-podium-card {
  background: var(--surface);
  padding: 1.5rem;
}

.lesson-browser-card {
  position: relative;
  height: 100%;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.lesson-browser-card__status {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.4rem, 3vw, 2rem);
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
}

.auth-shell > * {
  min-width: 0;
}

.auth-showcase {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: clamp(2.2rem, 4vw, 3.35rem);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 30%),
    linear-gradient(155deg, rgba(17, 32, 52, 0.98), rgba(28, 58, 86, 0.96) 58%, rgba(200, 113, 79, 0.74) 120%);
  color: #ffffff;
}

.auth-showcase::before,
.auth-showcase::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.auth-showcase::before {
  width: 230px;
  height: 230px;
  top: -92px;
  right: -56px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
}

.auth-showcase::after {
  width: 180px;
  height: 180px;
  bottom: -72px;
  left: -46px;
  background: radial-gradient(circle, rgba(213, 175, 114, 0.22), transparent 72%);
}

.auth-showcase h1,
.auth-showcase h2,
.auth-showcase h3,
.auth-showcase h4 {
  color: #ffffff;
}

.auth-showcase h1 {
  max-width: 10ch;
  font-size: clamp(2.8rem, 4.3vw, 4.5rem);
  line-height: 0.98;
}

.auth-showcase .text-muted,
.auth-showcase .metric-note {
  color: rgba(255, 255, 255, 0.74) !important;
}

.auth-showcase .hero-copy {
  max-width: 32rem;
  margin-bottom: 0;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
}

.auth-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 243, 0.92));
  padding: clamp(1.8rem, 3vw, 2.5rem);
}

.auth-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, rgba(200, 113, 79, 0.92), rgba(213, 175, 114, 0.78), rgba(17, 32, 52, 0.7));
}

.auth-card > .text-muted {
  max-width: 30rem;
  font-size: 1rem;
}

.auth-card .text-muted {
  color: #65717e !important;
}

.auth-form {
  display: grid;
  gap: 0.15rem;
}

.auth-form .btn {
  min-height: 58px;
  margin-top: 0.35rem;
}

.auth-card__footer {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.auth-points {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}

.auth-point {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-point__icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.82rem 1.35rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(200, 113, 79, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #ab573c, #c8704f);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(200, 113, 79, 0.34);
}

.btn-success {
  background: linear-gradient(135deg, #2f8d71, #4caf89);
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(55, 146, 118, 0.28);
}

.btn-warning {
  background: linear-gradient(135deg, #d49a46, #e8b764);
  border-color: transparent;
  color: #18202b;
}

.btn-light {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--heading);
  box-shadow: 0 14px 28px rgba(17, 32, 52, 0.14);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: transparent;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success {
  background: rgba(255, 255, 255, 0.7);
  border-width: 1px;
  box-shadow: none;
}

.form-card {
  max-width: none;
  margin: 0;
}

.form-control,
.form-select {
  min-height: 56px;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(17, 32, 52, 0.12);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  color: var(--text);
}

.form-select {
  cursor: pointer;
  appearance: none;
  padding-right: 4.2rem;
  background-image: none;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(200, 113, 79, 0.45);
  box-shadow: 0 0 0 0.22rem rgba(200, 113, 79, 0.14);
  background: #ffffff;
}

.form-label {
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--heading);
}

.form-label--interactive {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.form-label--interactive i {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.select-shell {
  display: grid;
  gap: 0.45rem;
}

.select-shell__control {
  position: relative;
}

.select-shell__icon {
  position: absolute;
  top: 50%;
  right: 0.9rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(17, 32, 52, 0.06);
  color: var(--text-soft);
  transform: translateY(-50%);
  pointer-events: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.select-shell:focus-within .select-shell__icon {
  background: rgba(200, 113, 79, 0.14);
  color: var(--accent-strong);
  transform: translateY(-50%) scale(1.03);
}

.alert {
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-soft);
}

.alert-info {
  background: rgba(65, 137, 184, 0.1);
  border-color: rgba(65, 137, 184, 0.12);
}

.alert-success {
  background: rgba(59, 154, 125, 0.12);
  border-color: rgba(59, 154, 125, 0.14);
}

.alert-warning {
  background: rgba(214, 164, 92, 0.15);
  border-color: rgba(214, 164, 92, 0.18);
}

.alert-danger {
  background: rgba(179, 93, 66, 0.12);
  border-color: rgba(179, 93, 66, 0.16);
}

.list-group {
  gap: 0.8rem;
}

.list-group-item {
  border-radius: 20px !important;
  border: 1px solid var(--line) !important;
  padding: 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.78);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.list-group-item:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong) !important;
  box-shadow: 0 12px 24px rgba(17, 32, 52, 0.08);
}

.list-group-item input.form-check-input {
  margin-top: 0;
}

.practice-choice {
  cursor: pointer;
}

.practice-choice--correct {
  border-color: rgba(59, 154, 125, 0.36) !important;
  background: rgba(59, 154, 125, 0.12);
  box-shadow: 0 12px 24px rgba(59, 154, 125, 0.12);
}

.practice-choice--wrong {
  border-color: rgba(179, 93, 66, 0.32) !important;
  background: rgba(179, 93, 66, 0.08);
}

.table-responsive {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.45);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.56);
  margin-bottom: 0;
}

.table thead th {
  padding: 1rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  border-bottom-color: var(--line);
}

.table tbody td {
  padding: 1rem;
  color: var(--text);
  border-color: var(--line);
  vertical-align: middle;
}

.navbar {
  width: min(1180px, calc(100% - 24px));
  margin: 16px auto 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(11, 21, 34, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 22px 50px rgba(12, 18, 27, 0.18);
}

.navbar .container {
  padding: 0 1.3rem;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff !important;
}

.navbar-brand i {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(200, 113, 79, 0.88), rgba(213, 175, 114, 0.88));
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.navbar-nav {
  gap: 0.2rem;
}

.nav-link {
  padding: 0.88rem 1rem !important;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76) !important;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.btn {
  padding-inline: 1.2rem !important;
}

.nav-link--guest,
.nav-link--guest-cta {
  min-width: 144px;
  justify-content: center;
  text-align: center;
}

.nav-link--guest {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link--guest:hover,
.nav-link--guest.active {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.nav-link--guest-cta {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(200, 113, 79, 0.94), rgba(213, 175, 114, 0.88));
  box-shadow: 0 16px 30px rgba(200, 113, 79, 0.22);
}

.nav-link--guest-cta:hover,
.nav-link--guest-cta.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #b86143, #d2aa69);
}

.navbar-toggler {
  border: 0;
  box-shadow: none !important;
}

.site-footer {
  padding: 0 0 2.4rem;
}

.site-footer__panel {
  margin-top: 2rem;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(140deg, rgba(13, 25, 40, 0.96), rgba(25, 47, 70, 0.94));
  color: #ffffff;
  box-shadow: var(--shadow-strong);
}

.site-footer__panel h2,
.site-footer__panel h3,
.site-footer__panel h4,
.site-footer__panel h5 {
  color: #ffffff;
}

.site-footer__panel a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer__panel a:hover {
  color: #ffffff;
}

.site-footer__eyebrow {
  color: rgba(255, 255, 255, 0.54);
}

.site-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.site-footer__meta {
  padding-top: 1.1rem;
  margin-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.64);
}

.leaderboard-table tbody tr:first-child {
  background: linear-gradient(90deg, rgba(213, 175, 114, 0.2), rgba(255, 255, 255, 0.1));
}

.leaderboard-table tbody tr:nth-child(2) {
  background: linear-gradient(90deg, rgba(200, 113, 79, 0.12), rgba(255, 255, 255, 0.1));
}

.leaderboard-table tbody tr:nth-child(3) {
  background: linear-gradient(90deg, rgba(17, 32, 52, 0.08), rgba(255, 255, 255, 0.1));
}

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

.podium-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(200, 113, 79, 0.2), rgba(213, 175, 114, 0.28));
  font-weight: 800;
  color: var(--heading);
}

.progress {
  height: 12px;
  border-radius: 999px;
  background: rgba(17, 32, 52, 0.08);
  overflow: hidden;
}

.progress-bar {
  border-radius: 999px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
}

.reveal-on-scroll.is-visible {
  animation: reveal-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  .metric-grid,
  .feature-grid,
  .action-grid,
  .hero-badges,
  .podium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .navbar {
    width: calc(100% - 20px);
    border-radius: 28px;
  }

  .navbar .container {
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 767.98px) {
  .page-shell {
    padding: 1.35rem 0 3.5rem;
  }

  .hero-panel,
  .site-footer__panel {
    border-radius: 28px;
  }

  .metric-grid,
  .feature-grid,
  .action-grid,
  .insight-grid,
  .hero-badges,
  .podium-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .surface-card,
  .metric-card,
  .feature-card,
  .action-card,
  .lesson-browser-card,
  .practice-card,
  .review-card,
  .lesson-detail-card,
  .profile-summary,
  .leaderboard-podium-card {
    padding: 1.2rem;
  }

  .btn,
  .nav-link.btn {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
  }
}
