/* ========================================
   Claude Code Academy - Main Stylesheet
   ======================================== */

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

:root {
  --bg: #FDF6E3;
  --bg-card: #FFFFFF;
  --bg-sidebar: #FAF0DC;
  --bg-input: #F5ECD7;
  --bg-hover: #F0E6CC;
  --border: #E0D5C0;
  --text: #3D3929;
  --text-muted: #7A7260;
  --text-heading: #1C1917;
  --primary: #D97706;
  --primary-hover: #B45309;
  --primary-light: rgba(217,119,6,0.12);
  --success: #16A34A;
  --success-light: rgba(22,163,74,0.1);
  --warning: #CA8A04;
  --warning-light: rgba(202,138,4,0.1);
  --danger: #DC2626;
  --danger-light: rgba(220,38,38,0.08);
  --info: #2563EB;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --nav-height: 3.5rem;
  --sidebar-width: 280px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-brand svg { width: 24px; height: 24px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--bg-hover);
}
.nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}
.nav-user span { color: var(--text-muted); font-size: 0.85rem; }
.nav-profile-link {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-profile-link:hover { color: var(--primary); }
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}
.nav-btn-primary {
  background: var(--primary);
  color: white;
}
.nav-btn-primary:hover { background: var(--primary-hover); color: white; }
.nav-btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.nav-btn-ghost:hover { background: var(--bg-hover); color: var(--text); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; padding: 0.25rem; }

/* --- Layout --- */
.page-wrapper {
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
}
.content-with-sidebar {
  display: flex;
  min-height: calc(100vh - var(--nav-height));
}
.main-content {
  flex: 1;
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
.main-content-wide {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* --- Sidebar --- */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  flex-shrink: 0;
}
.sidebar-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0 1.25rem;
  margin-bottom: 0.75rem;
}
.sidebar-module {
  margin-bottom: 1rem;
}
.sidebar-module-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-module-title:hover { color: var(--text); }
.sidebar-module-link { color: inherit; text-decoration: none; flex: 1; }
.sidebar-module-link:hover { color: var(--primary); }
.sidebar-module-title .arrow { transition: transform 0.2s; font-size: 0.7rem; cursor: pointer; padding: 0.25rem; }
.sidebar-module-title.open .arrow { transform: rotate(90deg); }
.sidebar-items { display: none; }
.sidebar-module-title.open + .sidebar-items { display: block; }
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.25rem 0.4rem 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.15s;
  border-left: 2px solid transparent;
}
.sidebar-item:hover {
  background: var(--bg-hover);
  color: var(--text);
}
.sidebar-item.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: var(--primary-light);
}
.sidebar-item .check {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.sidebar-item .check.done { color: var(--success); }
.sidebar-unit-header {
  padding: 0.4rem 1.25rem 0.2rem 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sidebar-close { display: none; }

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--text); }

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s;
  box-shadow: var(--shadow);
}
.card:hover { border-color: var(--primary); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}
.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.card-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* --- Progress Bar --- */
.progress-bar {
  height: 8px;
  background: var(--bg-input);
  border-radius: 4px;
  overflow: hidden;
  margin: 0.5rem 0;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #F59E0B);
  border-radius: 4px;
  transition: width 0.5s ease;
  min-width: 0;
}
.progress-bar-fill.complete {
  background: linear-gradient(90deg, var(--success), #22C55E);
}
.progress-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { opacity: 0.9; color: white; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--bg-hover); color: var(--text); }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Forms --- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font);
  transition: border-color 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}
.form-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.alert-error { background: var(--danger-light); color: var(--danger); border: 1px solid rgba(220,38,38,0.2); }
.alert-success { background: var(--success-light); color: var(--success); border: 1px solid rgba(22,163,74,0.2); }
.alert-info { background: rgba(37,99,235,0.08); color: var(--info); border: 1px solid rgba(37,99,235,0.2); }

/* --- Auth pages --- */
.auth-container {
  max-width: 420px;
  margin: 3rem auto;
  padding: 0 1rem;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  text-align: center;
  margin-bottom: 0.5rem;
}
.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Dashboard --- */
.dashboard-header {
  margin-bottom: 2rem;
}
.dashboard-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}
.dashboard-header p { color: var(--text-muted); }
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: block;
  transition: border-color 0.2s, transform 0.2s;
  box-shadow: var(--shadow);
}
.module-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  color: var(--text);
}
.module-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.module-number {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  font-weight: 600;
}
.module-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-weight: 500;
}
.module-badge.beginner { background: var(--success-light); color: var(--success); }
.module-badge.intermediate { background: var(--warning-light); color: var(--warning); }
.module-badge.advanced { background: var(--danger-light); color: var(--danger); }

/* --- Prose (Markdown content) --- */
.prose { max-width: 75ch; line-height: 1.75; }
.prose h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.prose h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-heading);
  margin: 1.75rem 0 0.75rem;
}
.prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-heading);
  margin: 1.5rem 0 0.5rem;
}
.prose h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin: 1.25rem 0 0.5rem;
}
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.35rem; }
.prose li > ul, .prose li > ol { margin-top: 0.35rem; margin-bottom: 0; }
.prose strong { color: var(--text-heading); font-weight: 600; }
.prose em { font-style: italic; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: #FEF3C7;
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  color: #92400E;
}
.prose pre {
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}
.prose pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
  color: inherit;
}
.prose blockquote {
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  background: var(--primary-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}
.prose th, .prose td {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  text-align: left;
}
.prose th {
  background: var(--bg-input);
  font-weight: 600;
  color: var(--text-heading);
}
.prose img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 1rem 0;
}
.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.prose a { color: var(--primary); text-decoration: underline; }
.prose a:hover { color: var(--primary-hover); }

/* --- Content navigation --- */
.content-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
}
.content-nav a {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all 0.2s;
  max-width: 45%;
}
.content-nav a:hover { border-color: var(--primary); color: var(--text); }
.content-nav a .label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.content-nav a .title { color: var(--text); font-weight: 500; }
.content-nav .next { text-align: right; margin-left: auto; }

/* --- Mark as read --- */
.mark-read-container {
  margin-top: 2rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s ease;
}
.mark-read-container.completed {
  border-color: var(--success);
  background: var(--success-light);
}
.mark-read-container.animate-success {
  animation: successPulse 0.6s ease;
}
.mark-read-status { font-size: 0.9rem; color: var(--text-muted); }
.mark-read-container.completed .mark-read-status { color: var(--success); font-weight: 600; }
.checkmark-icon {
  display: inline-block;
  animation: popIn 0.4s ease;
  font-size: 1.1em;
}
.btn-uncomplete {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid rgba(220,38,38,0.25);
  font-weight: 500;
}
.btn-uncomplete:hover {
  background: rgba(220,38,38,0.15);
  color: var(--danger);
  border-color: var(--danger);
}
.btn.loading { opacity: 0.7; cursor: wait; }
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes successPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); box-shadow: 0 0 12px rgba(34,197,94,0.3); }
  100% { transform: scale(1); }
}
@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); opacity: 1; }
}

/* --- Quiz --- */
.quiz-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.quiz-header h1 { font-size: 1.5rem; color: var(--text-heading); margin-bottom: 0.5rem; }
.quiz-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.quiz-progress-text { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }
.quiz-question {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.quiz-question.hidden { display: none; }
.quiz-question-number {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}
.quiz-question-text {
  font-size: 1.05rem;
  color: var(--text-heading);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.quiz-options { display: flex; flex-direction: column; gap: 0.6rem; }
.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.95rem;
}
.quiz-option:hover { border-color: var(--primary); background: var(--primary-light); }
.quiz-option.selected { border-color: var(--primary); background: var(--primary-light); }
.quiz-option input { margin-top: 0.2rem; accent-color: var(--primary); }
.quiz-option label { cursor: pointer; flex: 1; }
.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}
.quiz-timer {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text);
  padding: 0.4rem 0.8rem;
  background: #FFFFFF;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.quiz-timer.warning { color: var(--warning); border-color: var(--warning); }
.quiz-timer.danger { color: var(--danger); border-color: var(--danger); }

/* --- Quiz Results --- */
.results-score {
  text-align: center;
  padding: 2rem;
  margin-bottom: 2rem;
}
.results-score .score-value {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
}
.results-score .score-value.pass { color: var(--success); }
.results-score .score-value.fail { color: var(--danger); }
.results-score .score-label {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.result-question {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.result-question.correct { border-left: 3px solid var(--success); }
.result-question.incorrect { border-left: 3px solid var(--danger); }
.result-explanation {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-input);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Unit list --- */
.unit-list { display: flex; flex-direction: column; gap: 0.75rem; }
.unit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
  box-shadow: var(--shadow);
}
.unit-item:hover { border-color: var(--primary); transform: translateX(4px); color: var(--text); }
.unit-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.unit-info { flex: 1; }
.unit-info h3 { font-size: 1rem; color: var(--text-heading); margin-bottom: 0.15rem; }
.unit-info p { font-size: 0.8rem; color: var(--text-muted); }

/* --- Section in unit page --- */
.unit-section {
  margin-bottom: 2rem;
}
.unit-section h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.unit-section-items { display: flex; flex-direction: column; gap: 0.5rem; }
.unit-section-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: all 0.15s;
}
.unit-section-item:hover { border-color: var(--primary); color: var(--text); }
.unit-section-item .item-check { color: var(--success); font-size: 0.85rem; width: 18px; text-align: center; }
.unit-section-item .item-title { flex: 1; color: var(--text); }

/* --- Landing page --- */
.landing-hero {
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  max-width: 800px;
  margin: 0 auto;
}
.landing-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 1rem;
  line-height: 1.15;
}
.landing-hero h1 span { color: var(--primary); }
.landing-hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.landing-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.landing-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 48px; height: 48px;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius);
  font-size: 1.5rem;
}
.feature-card h3 { font-size: 1.05rem; color: var(--text-heading); margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); }

/* --- Landing modules --- */
.landing-modules {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
.landing-modules h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--text-heading);
  margin-bottom: 2rem;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

/* --- Points Toast --- */
.points-toast {
  position: fixed;
  top: 5rem;
  right: 1.5rem;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(217,119,6,0.3);
  z-index: 200;
  animation: toastIn 0.4s ease, toastOut 0.4s ease 2s forwards;
  pointer-events: none;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-20px) scale(0.9); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }
  .nav-user { border-left: none; padding-left: 0; margin-left: 0; }

  .sidebar {
    position: fixed;
    left: -100%;
    top: var(--nav-height);
    z-index: 90;
    width: 85%;
    max-width: 320px;
    transition: left 0.3s;
  }
  .sidebar.open { left: 0; }
  .sidebar-close {
    display: block;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--nav-height);
    background: rgba(0,0,0,0.3);
    z-index: 89;
  }
  .sidebar-overlay.open { display: block; }

  .main-content, .main-content-wide { padding: 1.25rem; }
  .landing-hero { padding: 3rem 1rem 2rem; }
  .landing-hero h1 { font-size: 2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .content-nav { flex-direction: column; }
  .content-nav a { max-width: 100%; }
}

/* --- Profile page --- */
.profile-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
}
.profile-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.profile-card {
  text-align: center;
}
.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  margin-bottom: 0.75rem;
}
.profile-avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  border: 3px solid var(--border);
}
.profile-upload-btn { cursor: pointer; }
.profile-identity { margin-top: 0.5rem; }
.profile-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.15rem;
}
.profile-username {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.profile-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.profile-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}
.profile-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.profile-info-row:last-child { border-bottom: none; }
.profile-info-label { color: var(--text-muted); }
.profile-info-value { color: var(--text); font-weight: 500; }
.profile-module-progress { margin-bottom: 1rem; }
.profile-module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}
.profile-module-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.profile-module-link:hover { color: var(--primary); }

@media (max-width: 768px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

/* --- Utilities --- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* --- Copy Code Button --- */
.copy-code-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-family: var(--font);
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
  z-index: 1;
}
pre:hover .copy-code-btn { opacity: 1; }
.copy-code-btn:hover { background: var(--bg-hover); color: var(--text); }
.copy-code-btn.copied { background: var(--success); color: white; border-color: var(--success); opacity: 1; }

/* --- Leaderboard --- */
.leaderboard-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.leaderboard-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.leaderboard-table th { background: var(--bg-input); font-weight: 600; color: var(--text-heading); padding: 0.75rem 1rem; text-align: left; border-bottom: 2px solid var(--border); }
.leaderboard-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.leaderboard-table tbody tr:hover { background: var(--bg-hover); }
.leaderboard-self { background: var(--primary-light) !important; }
.rank-badge { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; font-weight: 700; font-size: 0.85rem; background: var(--bg-input); color: var(--text-muted); }
.rank-badge.rank-1 { background: linear-gradient(135deg, #F59E0B, #D97706); color: white; }
.rank-badge.rank-2 { background: linear-gradient(135deg, #9CA3AF, #6B7280); color: white; }
.rank-badge.rank-3 { background: linear-gradient(135deg, #D97706, #92400E); color: white; }

/* --- Badges --- */
.badges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.5rem; }
.badge-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); transition: transform 0.2s; }
.badge-item:hover { transform: translateY(-1px); }
.badge-item.locked { opacity: 0.4; filter: grayscale(1); }
.badge-icon { font-size: 1.5rem; flex-shrink: 0; width: 36px; text-align: center; }
.badge-info { font-size: 0.8rem; line-height: 1.3; }
.badge-info strong { display: block; color: var(--text-heading); }
.badge-info small { display: block; color: var(--text-muted); }
.badge-date { color: var(--success) !important; font-size: 0.75rem; }
.tier-1 { border-left: 3px solid #9CA3AF; }
.tier-2 { border-left: 3px solid var(--primary); }
.tier-3 { border-left: 3px solid #F59E0B; }
/* Badge Toast */
.badge-toast { position: fixed; top: 5rem; right: 1.5rem; background: var(--bg-card); border: 1px solid var(--primary); border-radius: var(--radius-lg); padding: 0.75rem 1rem; display: flex; align-items: center; gap: 0.75rem; box-shadow: 0 4px 16px rgba(0,0,0,0.15); z-index: 300; animation: badgeSlideIn 0.4s ease, toastOut 0.4s ease 3.5s forwards; }
.badge-toast-icon { font-size: 1.5rem; }
@keyframes badgeSlideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

/* ═══════════════════════════════════════════════════════════════
   PREMIUM LEADERBOARD - World-Class Esports Design
   ═══════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────
   KEYFRAME ANIMATIONS
   ──────────────────────────────────────── */

@keyframes lbSparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

@keyframes lbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes lbShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes lbGlowPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(245,158,11,0.3); }
  50% { box-shadow: 0 0 20px rgba(245,158,11,0.6), 0 0 40px rgba(245,158,11,0.2); }
}

@keyframes lbGlowPulseSilver {
  0%, 100% { box-shadow: 0 0 6px rgba(156,163,175,0.3); }
  50% { box-shadow: 0 0 16px rgba(156,163,175,0.5), 0 0 32px rgba(156,163,175,0.15); }
}

@keyframes lbGlowPulseBronze {
  0%, 100% { box-shadow: 0 0 6px rgba(217,119,6,0.25); }
  50% { box-shadow: 0 0 14px rgba(217,119,6,0.45), 0 0 28px rgba(217,119,6,0.15); }
}

@keyframes lbSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes lbFadeInRow {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes lbGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes lbCrownBounce {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  25% { transform: translateY(-5px) rotate(2deg); }
  75% { transform: translateY(-3px) rotate(-1deg); }
}

@keyframes lbParticleDrift {
  0% { transform: translateY(0) translateX(0) scale(0); opacity: 0; }
  10% { opacity: 1; transform: scale(1); }
  90% { opacity: 0.6; }
  100% { transform: translateY(-120px) translateX(30px) scale(0); opacity: 0; }
}

@keyframes lbPulseRing {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

@keyframes lbTypewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes lbBlinkCursor {
  0%, 100% { border-right-color: transparent; }
  50% { border-right-color: var(--primary); }
}

@keyframes lbCounterPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes lbSlideInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lbAvatarRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes lbShelfFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes lbPodiumRise {
  from { opacity: 0; transform: translateY(60px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes lbYouPulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(217,119,6,0.3); transform: translateX(-50%) scale(1); }
  50% { box-shadow: 0 2px 16px rgba(217,119,6,0.6); transform: translateX(-50%) scale(1.05); }
}

@keyframes lbIconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}


/* ────────────────────────────────────────
   HERO HEADER
   ──────────────────────────────────────── */

.lb-hero {
  background: linear-gradient(135deg, #1C1917 0%, #292524 30%, #3D3929 60%, #44403C 100%);
  background-size: 300% 300%;
  animation: lbGradientShift 12s ease infinite;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.5rem 2rem;
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Particle background */
.lb-hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.lb-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(245,158,11,0.6);
  animation: lbParticleDrift 6s ease-in-out infinite;
}
.lb-particle:nth-child(1)  { left: 5%;  bottom: 10%; animation-delay: 0s;    animation-duration: 7s;  }
.lb-particle:nth-child(2)  { left: 15%; bottom: 5%;  animation-delay: 0.8s;  animation-duration: 5s;  background: rgba(252,211,77,0.5); }
.lb-particle:nth-child(3)  { left: 25%; bottom: 15%; animation-delay: 1.6s;  animation-duration: 8s;  }
.lb-particle:nth-child(4)  { left: 38%; bottom: 8%;  animation-delay: 2.4s;  animation-duration: 6s;  background: rgba(255,255,255,0.3); }
.lb-particle:nth-child(5)  { left: 50%; bottom: 12%; animation-delay: 0.4s;  animation-duration: 7.5s; }
.lb-particle:nth-child(6)  { left: 60%; bottom: 5%;  animation-delay: 3.2s;  animation-duration: 5.5s; background: rgba(252,211,77,0.4); }
.lb-particle:nth-child(7)  { left: 70%; bottom: 18%; animation-delay: 1.2s;  animation-duration: 6.5s; }
.lb-particle:nth-child(8)  { left: 78%; bottom: 8%;  animation-delay: 2s;    animation-duration: 8.5s; background: rgba(255,255,255,0.25); }
.lb-particle:nth-child(9)  { left: 85%; bottom: 15%; animation-delay: 0.6s;  animation-duration: 5.8s; }
.lb-particle:nth-child(10) { left: 92%; bottom: 10%; animation-delay: 3.8s;  animation-duration: 7.2s; background: rgba(252,211,77,0.35); }
.lb-particle:nth-child(11) { left: 42%; bottom: 20%; animation-delay: 4.2s;  animation-duration: 6.8s; width: 2px; height: 2px; }
.lb-particle:nth-child(12) { left: 68%; bottom: 2%;  animation-delay: 1.8s;  animation-duration: 9s;  width: 2px; height: 2px; background: rgba(255,255,255,0.2); }

.lb-hero-content {
  position: relative;
  z-index: 2;
}

.lb-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.lb-hero-text { flex: 1; }

.lb-hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lb-hero-trophy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #F59E0B;
  filter: drop-shadow(0 0 8px rgba(245,158,11,0.5));
  animation: lbGlowPulse 3s ease-in-out infinite, lbFloat 4s ease-in-out infinite;
}

.lb-hero-subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  margin-top: 0.5rem;
  line-height: 1.5;
}

.lb-typed-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid transparent;
  animation: lbTypewriter 2s steps(40) 0.5s both, lbBlinkCursor 0.8s step-end 2.5s 6;
  max-width: 100%;
}

/* XP Counter in header */
.lb-hero-xp-counter {
  flex-shrink: 0;
  text-align: right;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  min-width: 180px;
}

.lb-hero-xp-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(245,158,11,0.8);
  margin-bottom: 0.3rem;
}

.lb-hero-xp-value {
  font-size: 2rem;
  font-weight: 800;
  color: #F59E0B;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  text-shadow: 0 0 20px rgba(245,158,11,0.4);
  animation: lbCounterPulse 3s ease-in-out infinite;
}

/* Filter pills */
.lb-hero-filters {
  position: relative;
}

.lb-pill-track {
  display: flex;
  gap: 0.5rem;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9999px;
  padding: 0.3rem;
}

.lb-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  background: transparent;
  border: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.lb-pill:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.08);
}

.lb-pill-active {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(245,158,11,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}

.lb-pill-active:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%) !important;
  color: #FFFFFF !important;
}

.lb-pill svg {
  flex-shrink: 0;
  opacity: 0.7;
}
.lb-pill-active svg { opacity: 1; }


/* ────────────────────────────────────────
   GLOBAL STATS - Glassmorphism Cards
   ──────────────────────────────────────── */

.lb-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.lb-stat-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.8);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.lb-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity 0.35s;
}

.lb-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.8);
}

.lb-stat-card:hover::before { opacity: 1; }

.lb-stat-card:nth-child(1)::before { background: linear-gradient(90deg, #2563EB, #60A5FA); }
.lb-stat-card:nth-child(2)::before { background: linear-gradient(90deg, #F59E0B, #FCD34D); }
.lb-stat-card:nth-child(3)::before { background: linear-gradient(90deg, #16A34A, #4ADE80); }
.lb-stat-card:nth-child(4)::before { background: linear-gradient(90deg, #A855F7, #C084FC); }

.lb-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  animation: lbIconPulse 4s ease-in-out infinite;
}

.lb-stat-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.3s;
}

.lb-stat-card:hover .lb-stat-icon::after {
  animation: lbPulseRing 1.5s ease-out;
  opacity: 0.5;
}

.lb-stat-icon-users {
  background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(96,165,250,0.1));
  color: #2563EB;
}
.lb-stat-icon-users::after { border: 2px solid #2563EB; }

.lb-stat-icon-points {
  background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(252,211,77,0.1));
  color: #F59E0B;
}
.lb-stat-icon-points::after { border: 2px solid #F59E0B; }

.lb-stat-icon-completions {
  background: linear-gradient(135deg, rgba(22,163,74,0.15), rgba(74,222,128,0.1));
  color: #16A34A;
}
.lb-stat-icon-completions::after { border: 2px solid #16A34A; }

.lb-stat-icon-active {
  background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(192,132,252,0.1));
  color: #A855F7;
}
.lb-stat-icon-active::after { border: 2px solid #A855F7; }

.lb-stat-info { flex: 1; min-width: 0; }

.lb-stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.lb-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}


/* ────────────────────────────────────────
   EMPTY STATE
   ──────────────────────────────────────── */

.lb-empty {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.lb-empty-visual {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.lb-empty-shelf {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.lb-empty-trophy-spot {
  width: 48px;
  height: 60px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  animation: lbShelfFloat 3s ease-in-out infinite;
  position: relative;
}

.lb-empty-trophy-spot::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}

.lb-empty-trophy-spot:nth-child(1) { animation-delay: 0s; }
.lb-empty-trophy-spot:nth-child(2) { animation-delay: 0.3s; height: 72px; }
.lb-empty-trophy-spot:nth-child(3) { animation-delay: 0.6s; }

.lb-empty-icon {
  color: var(--text-muted);
  opacity: 0.25;
  display: block;
  margin: 0 auto;
}

.lb-empty-title {
  color: var(--text-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lb-empty-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 400px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

.lb-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), #B45309);
  color: #FFFFFF;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(217,119,6,0.25);
}

.lb-empty-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217,119,6,0.35);
  color: #FFFFFF;
}


/* ────────────────────────────────────────
   SECTION TITLES
   ──────────────────────────────────────── */

.lb-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.lb-section-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 8px;
  flex-shrink: 0;
}

.lb-section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
  margin-left: 0.5rem;
}


/* ────────────────────────────────────────
   PODIUM SECTION - The Star
   ──────────────────────────────────────── */

.lb-podium-section {
  margin-bottom: 3rem;
}

.lb-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1rem 1rem;
  position: relative;
}

/* Decorative background behind podium */
.lb-podium::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 60%;
  background: radial-gradient(ellipse at center bottom, rgba(245,158,11,0.06) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.lb-podium-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.25rem 1.25rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: lbPodiumRise 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  width: 220px;
}

.lb-podium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}

/* 1st place */
.lb-podium-1 {
  border: 2px solid #F59E0B;
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
  width: 260px;
  background: linear-gradient(180deg, #FFFBEB 0%, #FFFFFF 40%);
  box-shadow: 0 4px 24px rgba(245,158,11,0.18);
  z-index: 2;
}
.lb-podium-1:hover {
  box-shadow: 0 12px 40px rgba(245,158,11,0.25);
}

/* 2nd place */
.lb-podium-2 {
  border-color: #C0C0C0;
  background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 40%);
  box-shadow: 0 4px 16px rgba(156,163,175,0.12);
}
.lb-podium-2:hover {
  box-shadow: 0 12px 32px rgba(156,163,175,0.2);
}

/* 3rd place */
.lb-podium-3 {
  border-color: #CD7F32;
  background: linear-gradient(180deg, #FFF8F0 0%, #FFFFFF 40%);
  box-shadow: 0 4px 16px rgba(205,127,50,0.1);
}
.lb-podium-3:hover {
  box-shadow: 0 12px 32px rgba(205,127,50,0.18);
}

/* Podium card "is you" highlight */
.lb-podium-is-you {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(217,119,6,0.15), 0 4px 20px rgba(217,119,6,0.12) !important;
}

/* Crown for 1st place */
.lb-crown {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  animation: lbCrownBounce 3s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(245,158,11,0.4));
}

/* Medal badges */
.lb-podium-medal {
  position: relative;
  z-index: 3;
  margin-bottom: 0.25rem;
}

.lb-medal-1 {
  filter: drop-shadow(0 0 8px rgba(245,158,11,0.4));
  animation: lbGlowPulse 3s ease-in-out infinite;
}

.lb-medal-2 {
  filter: drop-shadow(0 0 4px rgba(156,163,175,0.3));
}

.lb-medal-3 {
  filter: drop-shadow(0 0 4px rgba(205,127,50,0.3));
}

/* Sparkles around 1st */
.lb-sparkles {
  position: absolute;
  inset: -10px;
  pointer-events: none;
  z-index: 1;
}
.lb-sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F59E0B;
  animation: lbSparkle 2s ease-in-out infinite;
}
.lb-sparkle::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 2px;
  width: 2px;
  height: 8px;
  background: #FCD34D;
  border-radius: 1px;
}
.lb-sparkle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: -1px;
  width: 8px;
  height: 2px;
  background: #FCD34D;
  border-radius: 1px;
}
.lb-sparkle:nth-child(1) { top: 10%; left: 5%;  animation-delay: 0s;   }
.lb-sparkle:nth-child(2) { top: 5%;  right: 8%; animation-delay: 0.4s; left: auto; }
.lb-sparkle:nth-child(3) { top: 40%; left: -5%; animation-delay: 0.8s; }
.lb-sparkle:nth-child(4) { top: 35%; right: -3%; animation-delay: 1.2s; left: auto; }
.lb-sparkle:nth-child(5) { bottom: 25%; left: 2%; animation-delay: 1.6s; top: auto; }
.lb-sparkle:nth-child(6) { bottom: 20%; right: 5%; animation-delay: 0.2s; top: auto; left: auto; }

/* Avatar with animated gradient ring */
.lb-podium-avatar {
  position: relative;
  margin: 0.25rem 0;
}

.lb-podium-avatar::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  padding: 3px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.lb-avatar-ring-1::before {
  background: conic-gradient(#F59E0B, #FCD34D, #F59E0B, #D97706, #F59E0B);
  animation: lbAvatarRotate 4s linear infinite;
  inset: -5px;
}
.lb-avatar-ring-2::before {
  background: conic-gradient(#9CA3AF, #E5E7EB, #9CA3AF, #6B7280, #9CA3AF);
  animation: lbAvatarRotate 6s linear infinite;
}
.lb-avatar-ring-3::before {
  background: conic-gradient(#D97706, #FBBF24, #D97706, #92400E, #D97706);
  animation: lbAvatarRotate 5s linear infinite;
}

.lb-podium-avatar img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFFFFF;
  position: relative;
  z-index: 2;
}

.lb-podium-1 .lb-podium-avatar img {
  width: 84px;
  height: 84px;
}

.lb-avatar-placeholder {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  border: 3px solid #FFFFFF;
  position: relative;
  z-index: 2;
}

.lb-podium-1 .lb-avatar-placeholder {
  width: 84px;
  height: 84px;
  font-size: 2rem;
}

.lb-avatar-1 {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #D97706;
}
.lb-avatar-2 {
  background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
  color: #6B7280;
}
.lb-avatar-3 {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #92400E;
}

/* Podium name */
.lb-podium-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-heading);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-podium-1 .lb-podium-name { font-size: 1.1rem; }

/* Podium points */
.lb-podium-points {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-variant-numeric: tabular-nums;
}
.lb-podium-points svg { color: var(--primary); }
.lb-podium-points-num {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
}
.lb-podium-points-xp {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}
.lb-podium-1 .lb-podium-points-num { font-size: 1.4rem; }

/* 3D Podium platform */
.lb-podium-platform {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.4rem 0;
  border-radius: 8px;
  text-align: center;
  position: relative;
}

.lb-platform-rank {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lb-platform-1 {
  background: linear-gradient(180deg, #FEF3C7, #FDE68A);
  border: 1px solid rgba(245,158,11,0.3);
  box-shadow: 0 4px 0 #D97706, 0 5px 8px rgba(0,0,0,0.08);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-platform-1 .lb-platform-rank { color: #92400E; }

.lb-platform-2 {
  background: linear-gradient(180deg, #F3F4F6, #E5E7EB);
  border: 1px solid rgba(156,163,175,0.3);
  box-shadow: 0 4px 0 #9CA3AF, 0 5px 8px rgba(0,0,0,0.06);
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-platform-2 .lb-platform-rank { color: #6B7280; }

.lb-platform-3 {
  background: linear-gradient(180deg, #FEF3C7, #FDE8B0);
  border: 1px solid rgba(205,127,50,0.3);
  box-shadow: 0 4px 0 #B45309, 0 5px 8px rgba(0,0,0,0.06);
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-platform-3 .lb-platform-rank { color: #92400E; }

/* Podium stats row */
.lb-podium-stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.25rem;
}

.lb-podium-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  background: var(--bg-input);
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  transition: all 0.2s;
  font-weight: 500;
}

.lb-podium-stat:hover {
  background: var(--bg-hover);
  transform: translateY(-1px);
}

.lb-podium-stat-streak {
  color: #F59E0B;
  background: rgba(245,158,11,0.08);
}
.lb-podium-stat-streak svg { color: #F59E0B; }

.lb-podium-stat-perfect {
  color: #F59E0B;
  background: rgba(245,158,11,0.08);
  font-weight: 700;
}
.lb-podium-stat-perfect svg { color: #F59E0B; }

.lb-star-icon { color: #F59E0B; }

/* "Vous" badge */
.lb-podium-you {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), #B45309);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  animation: lbYouPulse 2s ease-in-out infinite;
  z-index: 10;
}


/* ────────────────────────────────────────
   LEVEL BADGES - Gradient Based
   ──────────────────────────────────────── */

.lb-level-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.2s;
}

.lb-level-badge:hover { transform: scale(1.05); }

.lb-level-badge-sm {
  padding: 0.15rem 0.5rem;
  font-size: 0.66rem;
}

.lb-level-debutant {
  background: linear-gradient(135deg, rgba(148,163,184,0.15), rgba(100,116,139,0.1));
  color: #64748B;
  border: 1px solid rgba(148,163,184,0.3);
}

.lb-level-apprenti {
  background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(22,163,74,0.08));
  color: #16A34A;
  border: 1px solid rgba(34,197,94,0.25);
}

.lb-level-intermediaire {
  background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(37,99,235,0.08));
  color: #2563EB;
  border: 1px solid rgba(59,130,246,0.25);
}

.lb-level-avance {
  background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(124,58,237,0.08));
  color: #7C3AED;
  border: 1px solid rgba(168,85,247,0.25);
}

.lb-level-expert {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #B45309;
  border: 1px solid #F59E0B;
  box-shadow: 0 0 8px rgba(245,158,11,0.2);
  position: relative;
}

.lb-level-expert::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  background-size: 200% 100%;
  animation: lbShimmer 3s ease-in-out infinite;
}


/* ────────────────────────────────────────
   RANKINGS TABLE (Position 4+)
   ──────────────────────────────────────── */

.lb-table-section { margin-bottom: 2.5rem; }

.lb-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.lb-table thead tr {
  background: linear-gradient(180deg, #F8F5EE 0%, #F2ECE0 100%);
}

.lb-table th {
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-align: left;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.lb-th-rank { width: 70px; text-align: center; }
.lb-th-user { min-width: 200px; }
.lb-th-points { width: 160px; }
.lb-th-badges { width: 80px; text-align: center; }
.lb-th-streak { width: 90px; text-align: center; }
.lb-th-quiz { width: 120px; text-align: center; }

.lb-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(224,213,192,0.5);
  vertical-align: middle;
}

.lb-table tbody tr:last-child td { border-bottom: none; }

.lb-table tbody tr:nth-child(even) {
  background: rgba(250,240,220,0.25);
}

/* Row animation & interaction */
.lb-row {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.2s, border-left-color 0.2s;
}

.lb-row-visible {
  opacity: 1;
  transform: translateX(0);
}

.lb-table tbody tr.lb-row:hover {
  background: rgba(245,158,11,0.04);
}

.lb-table tbody tr.lb-row:hover td:first-child {
  box-shadow: inset 3px 0 0 var(--primary);
}

/* Self-highlight */
.lb-row-self {
  background: rgba(217,119,6,0.06) !important;
}
.lb-row-self td:first-child {
  box-shadow: inset 3px 0 0 var(--primary);
}
.lb-row-self:hover {
  background: rgba(217,119,6,0.1) !important;
}

/* Rank circle */
.lb-td-rank { text-align: center; }

.lb-rank-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.4rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-input);
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.lb-row:hover .lb-rank-circle {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* User cell */
.lb-user-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lb-user-avatar-sm { flex-shrink: 0; }

.lb-user-avatar-sm img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  transition: border-color 0.2s;
}

.lb-row:hover .lb-user-avatar-sm img {
  border-color: var(--primary);
}

.lb-avatar-sm-placeholder {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), rgba(245,158,11,0.15));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  border: 2px solid var(--border);
  transition: border-color 0.2s;
}

.lb-row:hover .lb-avatar-sm-placeholder {
  border-color: var(--primary);
}

.lb-user-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.lb-user-name {
  font-weight: 600;
  color: var(--text-heading);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lb-you-tag {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--primary), #B45309);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(217,119,6,0.3);
}

/* Points cell */
.lb-td-points { min-width: 130px; }

.lb-points-cell {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.lb-points-value {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.lb-points-xp {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  opacity: 0.7;
}

/* XP progress bar with shimmer */
.lb-xp-bar {
  height: 4px;
  background: var(--bg-input);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.4rem;
  position: relative;
}

.lb-xp-bar-lg { height: 8px; border-radius: 4px; }

.lb-xp-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 2px;
  position: relative;
  overflow: hidden;
}

.lb-xp-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  background-size: 200% 100%;
  animation: lbShimmer 2.5s ease-in-out infinite;
}

.lb-xp-debutant { background: linear-gradient(90deg, #94a3b8, #64748b); }
.lb-xp-apprenti { background: linear-gradient(90deg, #22c55e, #16a34a); }
.lb-xp-intermediaire { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.lb-xp-avance { background: linear-gradient(90deg, #a855f7, #7c3aed); }
.lb-xp-expert { background: linear-gradient(90deg, #f59e0b, #d97706); }

.lb-xp-hint {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.2rem;
  opacity: 0.8;
}

/* Badges & Streak cells */
.lb-td-badges, .lb-td-streak, .lb-td-quiz { text-align: center; }

.lb-badge-count {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
}
.lb-badge-count svg { color: var(--primary); }

.lb-streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  font-size: 0.82rem;
  color: #D97706;
  background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(252,211,77,0.08));
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(245,158,11,0.15);
  transition: all 0.2s;
}
.lb-streak-badge:hover {
  background: rgba(245,158,11,0.15);
  transform: scale(1.05);
}
.lb-streak-badge svg { color: #F59E0B; }

.lb-quiz-score {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.lb-quiz-perfect {
  color: #D97706;
  font-weight: 800;
  background: rgba(245,158,11,0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}
.lb-quiz-perfect svg { color: #F59E0B; }

.lb-no-data {
  color: var(--border);
  font-size: 0.9rem;
  opacity: 0.6;
}

/* Mobile card list (hidden on desktop) */
.lb-mobile-list { display: none; }

.lb-mobile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: all 0.3s;
}

.lb-mobile-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.lb-mobile-card.lb-row-self {
  border-left: 3px solid var(--primary);
  background: rgba(217,119,6,0.04);
}

.lb-mobile-rank {
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.lb-mobile-main { flex: 1; min-width: 0; }

.lb-mobile-stats-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.lb-mobile-stat {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}


/* ────────────────────────────────────────
   YOUR RANK CARD
   ──────────────────────────────────────── */

.lb-your-rank {
  background: var(--bg-card);
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, var(--primary), #FCD34D, var(--primary)) 1;
  border-radius: 0;
  overflow: hidden;
  margin-top: 2rem;
  box-shadow: 0 4px 20px rgba(217,119,6,0.12);
  animation: lbSlideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

/* Using a wrapper approach for rounded corners with gradient border */
.lb-your-rank {
  border: none;
  border-radius: 16px;
  position: relative;
  background: var(--bg-card);
}
.lb-your-rank::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, var(--primary), #FCD34D, var(--primary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.lb-your-rank-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, #B45309 50%, #D97706 100%);
  background-size: 200% 200%;
  animation: lbGradientShift 6s ease infinite;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.lb-your-rank-body {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.lb-your-rank-pos {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(217,119,6,0.15);
  animation: lbSlideInUp 0.8s ease both;
  animation-delay: 0.2s;
}

.lb-your-rank-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 160px;
}

.lb-your-rank-stats {
  display: flex;
  gap: 1.25rem;
  flex-shrink: 0;
}

.lb-your-rank-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.lb-your-rank-stat svg {
  color: var(--primary);
  opacity: 0.7;
  margin-bottom: 0.1rem;
}

.lb-your-rank-stat-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-heading);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.lb-your-rank-stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.lb-your-rank-progress {
  width: 100%;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
}

.lb-your-rank-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
}

.lb-your-rank-motivation {
  width: 100%;
  text-align: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  font-weight: 500;
}


/* ────────────────────────────────────────
   RESPONSIVE - Tablet (1024px)
   ──────────────────────────────────────── */

@media (max-width: 1024px) {
  .lb-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lb-podium {
    gap: 1rem;
    padding: 1.5rem 0.5rem 0.5rem;
  }

  .lb-podium-card {
    width: 180px;
    padding: 1.25rem 1rem 1rem;
  }
  .lb-podium-1 { width: 210px; }

  .lb-podium-avatar img { width: 60px; height: 60px; }
  .lb-podium-1 .lb-podium-avatar img { width: 72px; height: 72px; }
  .lb-avatar-placeholder { width: 60px; height: 60px; font-size: 1.3rem; }
  .lb-podium-1 .lb-avatar-placeholder { width: 72px; height: 72px; font-size: 1.7rem; }

  .lb-hero-xp-counter { min-width: 150px; padding: 0.75rem 1rem; }
  .lb-hero-xp-value { font-size: 1.5rem; }
}


/* ────────────────────────────────────────
   RESPONSIVE - Mobile (768px)
   ──────────────────────────────────────── */

@media (max-width: 768px) {
  .lb-hero {
    padding: 1.75rem 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
  }

  .lb-hero-top {
    flex-direction: column;
    gap: 1rem;
  }

  .lb-hero-title { font-size: 1.6rem; }

  .lb-hero-xp-counter {
    text-align: left;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
  }
  .lb-hero-xp-label { margin-bottom: 0; }
  .lb-hero-xp-value { font-size: 1.4rem; }

  .lb-pill-track {
    width: 100%;
  }
  .lb-pill {
    flex: 1;
    justify-content: center;
    padding: 0.5rem 0.6rem;
    font-size: 0.78rem;
  }

  .lb-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .lb-stat-card { padding: 1rem 0.75rem; }
  .lb-stat-icon { width: 42px; height: 42px; }
  .lb-stat-icon svg { width: 18px; height: 18px; }
  .lb-stat-value { font-size: 1.35rem; }

  /* Podium stacks vertically */
  .lb-podium {
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    padding: 1rem 0;
  }
  .lb-podium-card {
    width: 100% !important;
    max-width: 340px;
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
    padding: 1.25rem;
    gap: 0.75rem;
  }
  .lb-podium-1 { order: -1; padding-top: 1.25rem; }

  .lb-crown { position: relative; top: auto; left: auto; transform: none; }
  .lb-podium-medal { position: relative; }
  .lb-sparkles { display: none; }

  .lb-podium-avatar { margin: 0; }
  .lb-podium-avatar img,
  .lb-podium-1 .lb-podium-avatar img { width: 56px; height: 56px; }
  .lb-avatar-placeholder,
  .lb-podium-1 .lb-avatar-placeholder { width: 56px; height: 56px; font-size: 1.3rem; }

  .lb-podium-platform { display: none; }

  .lb-podium-name { text-align: left; }
  .lb-podium-you { position: static; transform: none; animation: none; display: inline-block; margin-top: 0.25rem; }

  /* Hide desktop table, show mobile cards */
  .lb-table-wrap { display: none; }
  .lb-mobile-list { display: block; }

  /* Your rank */
  .lb-your-rank-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .lb-your-rank-pos { font-size: 1.75rem; }
  .lb-your-rank-stats { width: 100%; justify-content: space-around; }
}


/* ────────────────────────────────────────
   RESPONSIVE - Small Mobile (480px)
   ──────────────────────────────────────── */

@media (max-width: 480px) {
  .lb-hero { padding: 1.25rem 1rem; }
  .lb-hero-title { font-size: 1.35rem; }
  .lb-hero-subtitle { font-size: 0.85rem; }

  .lb-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .lb-stat-card {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .lb-pill svg { display: none; }
  .lb-pill { font-size: 0.75rem; padding: 0.45rem 0.5rem; }

  .lb-podium-card { max-width: 100%; }
  .lb-section-title { font-size: 1rem; }

  .lb-your-rank-stats { gap: 0.75rem; }
  .lb-your-rank-stat-value { font-size: 1.1rem; }

  .lb-typed-text { animation: none; border-right: none; white-space: normal; }
}


/* ════════════════════════════════════════
   MONETIZATION STYLES
   ════════════════════════════════════════ */

/* ── Nav Pro Button ── */
.nav-btn-pro {
  background: linear-gradient(135deg, #c9a227 0%, #f0d060 100%);
  color: #1a1a2e !important;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-btn-pro:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,162,39,0.3);
}

/* ── Sidebar Lock Icon ── */
.sidebar-lock {
  display: inline-flex;
  align-items: center;
  margin-left: 0.4rem;
  color: var(--text-muted);
  opacity: 0.6;
  vertical-align: middle;
}

/* ── Dashboard CTA Pro ── */
.dashboard-cta-pro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(201,162,39,0.08) 0%, rgba(201,162,39,0.02) 100%);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.dashboard-cta-content h3 {
  color: #c9a227;
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
}
.dashboard-cta-content p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

/* ── Module Lock Badge ── */
.module-lock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

/* ── Dashboard Cert Cards ── */
.dashboard-cert-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.dashboard-cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.15s;
}
.dashboard-cert-card:hover {
  border-color: #c9a227;
  transform: translateY(-2px);
}
.dashboard-cert-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
}
.dashboard-cert-module {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Profile Pro Badge ── */
.profile-pro-badge {
  display: inline-block;
  background: linear-gradient(135deg, #c9a227, #f0d060);
  color: #1a1a2e;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.35rem;
}


/* ════════════════════════════════════════
   PRICING PAGE
   ════════════════════════════════════════ */

.pricing-hero {
  text-align: center;
  padding: 2rem 0;
}
.pricing-hero h1 {
  font-size: 2rem;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}
.pricing-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Toggle */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.pricing-toggle-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}
.pricing-badge-save {
  display: inline-block;
  background: rgba(76,175,80,0.15);
  color: #4caf50;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
  margin-left: 0.25rem;
}
.pricing-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}
.pricing-switch input { opacity: 0; width: 0; height: 0; }
.pricing-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--border);
  border-radius: 26px;
  transition: background-color 0.25s;
}
.pricing-switch-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.25s;
}
.pricing-switch input:checked + .pricing-switch-slider {
  background-color: var(--primary);
}
.pricing-switch input:checked + .pricing-switch-slider::before {
  transform: translateX(22px);
}

/* Cards */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto 3rem;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  position: relative;
}
.pricing-card-featured {
  border-color: #c9a227;
  box-shadow: 0 0 0 1px #c9a227, 0 8px 30px rgba(201,162,39,0.1);
}
.pricing-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #c9a227, #f0d060);
  color: #1a1a2e;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pricing-card-header h3 {
  font-size: 1.3rem;
  color: var(--text-heading);
  margin: 0 0 0.5rem;
}
.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 1rem;
}
.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}
.pricing-price-yearly {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 1rem;
}
.pricing-price-yearly span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
  font-size: 0.9rem;
  color: var(--text);
}
.pricing-features li svg { width: 18px; height: 18px; flex-shrink: 0; }
.pricing-features li.included svg { color: #4caf50; }
.pricing-features li.excluded { color: var(--text-muted); }
.pricing-features li.excluded svg { color: var(--text-muted); opacity: 0.5; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Certifications in pricing */
.pricing-certifications {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.pricing-certifications h2 {
  font-size: 1.5rem;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}
.pricing-cert-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.pricing-cert-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}
.pricing-cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
}
.pricing-cert-module {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.pricing-cert-card h3 {
  font-size: 1rem;
  color: var(--text-heading);
  margin: 0 0 0.5rem;
}
.pricing-cert-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #c9a227;
  margin-bottom: 0.5rem;
}
.pricing-cert-req {
  font-size: 0.78rem;
  color: var(--text-muted);
}


/* ════════════════════════════════════════
   PAYWALL PAGE
   ════════════════════════════════════════ */

.paywall {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 550px;
  margin: 0 auto;
}
.paywall-icon {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  opacity: 0.6;
}
.paywall h1 {
  font-size: 1.75rem;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}
.paywall > p {
  color: var(--text);
  margin-bottom: 0.5rem;
}
.paywall-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}
.paywall-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.paywall-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}
.paywall-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text);
}
.paywall-feature svg { color: #4caf50; flex-shrink: 0; }


/* ════════════════════════════════════════
   CERTIFICATIONS PAGE
   ════════════════════════════════════════ */

.cert-page-title {
  font-size: 1.75rem;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}
.cert-page-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.cert-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.cert-card-earned {
  border-color: #4caf50;
  background: rgba(76,175,80,0.03);
}
.cert-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.cert-card-module {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cert-card-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.cert-status-earned {
  background: rgba(76,175,80,0.12);
  color: #4caf50;
}
.cert-status-eligible {
  background: rgba(201,162,39,0.12);
  color: #c9a227;
}
.cert-status-locked {
  background: rgba(136,136,136,0.1);
  color: var(--text-muted);
}
.cert-card-name {
  font-size: 1.1rem;
  color: var(--text-heading);
  margin: 0.25rem 0;
}
.cert-card-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #c9a227;
  margin-bottom: 0.75rem;
}
.cert-card-info {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.cert-card-info p { margin: 0.2rem 0; }
.cert-credential {
  font-size: 0.78rem;
}
.cert-credential code {
  background: var(--bg);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.72rem;
}
.cert-card-reqs .req-met { color: #4caf50; }
.cert-card-reqs .req-unmet { color: var(--text-muted); }
.cert-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* LinkedIn button */
.btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #0077b5;
  color: white !important;
  border: none;
}
.btn-linkedin:hover {
  background: #005a8c;
}


/* ════════════════════════════════════════
   VERIFY PAGE
   ════════════════════════════════════════ */

.verify-card {
  max-width: 550px;
  margin: 3rem auto;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.verify-valid {
  border-color: #4caf50;
}
.verify-badge {
  color: #4caf50;
  margin-bottom: 1rem;
}
.verify-badge-invalid {
  color: var(--text-muted);
}
.verify-card h1 {
  font-size: 1.5rem;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
}
.verify-details {
  text-align: left;
  margin-bottom: 1.5rem;
}
.verify-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.verify-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}
.verify-value {
  font-size: 0.88rem;
  color: var(--text-heading);
}
.verify-value code {
  background: var(--bg);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.78rem;
}
.verify-footer {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}
.verify-invalid h1 {
  color: var(--text-muted);
}


/* ════════════════════════════════════════
   BILLING SUCCESS / CANCEL
   ════════════════════════════════════════ */

.billing-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 500px;
  margin: 0 auto;
}
.billing-result-icon {
  color: #4caf50;
  margin-bottom: 1.5rem;
}
.billing-cancel-icon {
  color: var(--text-muted);
}
.billing-result h1 {
  font-size: 1.5rem;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}
.billing-result p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.billing-result-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}


/* ════════════════════════════════════════
   CHAT RATE LIMIT BAR
   ════════════════════════════════════════ */

.chat-rate-limit-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(201,162,39,0.08);
  border-top: 1px solid rgba(201,162,39,0.15);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.chat-rate-limit-upgrade {
  margin-left: auto;
  color: #c9a227;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.78rem;
}
.chat-rate-limit-upgrade:hover {
  text-decoration: underline;
}


/* ════════════════════════════════════════
   LANDING PRICING TEASER
   ════════════════════════════════════════ */

.landing-pricing-teaser {
  text-align: center;
  padding: 3rem 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}
.landing-pricing-teaser h2 {
  font-size: 1.5rem;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}
.landing-pricing-teaser > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.landing-pricing-cards {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.landing-price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  min-width: 180px;
}
.landing-price-card h3 {
  font-size: 1rem;
  color: var(--text-heading);
  margin: 0 0 0.5rem;
}
.landing-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}
.landing-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.landing-price-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}
.landing-price-featured {
  border-color: #c9a227;
  box-shadow: 0 0 0 1px #c9a227;
}


/* ════════════════════════════════════════
   RESPONSIVE - Monetization
   ════════════════════════════════════════ */

@media (max-width: 768px) {
  .pricing-cards { grid-template-columns: 1fr; max-width: 400px; }
  .pricing-cert-cards { grid-template-columns: 1fr; max-width: 400px; }
  .cert-cards { grid-template-columns: 1fr; }
  .dashboard-cert-cards { grid-template-columns: 1fr; }
  .dashboard-cta-pro { flex-direction: column; text-align: center; }
  .landing-pricing-cards { flex-direction: column; align-items: center; }
  .verify-card { margin: 1.5rem; }
  .paywall { padding: 2rem 1rem; }
}

@media (max-width: 480px) {
  .pricing-hero h1 { font-size: 1.4rem; }
  .pricing-price, .pricing-price-yearly { font-size: 2rem; }
  .cert-card-actions { flex-direction: column; }
  .cert-card-actions .btn { width: 100%; text-align: center; }
}
