@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Gochi+Hand&display=swap');

:root {
  --bg-base: #FFFDF2;
  --bg-card: #FFFFFF;
  --brand-yellow: #FFE045;
  --brand-yellow-light: #FFF0A8;
  --brand-coral: #F4625A;
  --brand-coral-hover: #E25048;
  --brand-green: #7DBE7B;
  --brand-green-light: #EFF8EF;
  --brand-blue: #B4D4F0;
  --brand-blue-light: #E1EFFB;
  --brand-coral-light: #FFEBEA;
  --text-main: #3A3A3A;
  --text-muted: #8E8E8E;
  --text-inverse: #FFFFFF;
  --radius-pill: 9999px;
  --radius-card: 28px;
  --radius-inner: 16px;
  --input-border: 2px solid var(--brand-yellow);
  --blob-1: 60% 40% 30% 70% / 60% 30% 70% 40%;
  --blob-2: 30% 70% 70% 30% / 30% 30% 70% 70%;
  --blob-3: 50% 50% 20% 80% / 25% 80% 20% 75%;
  --blob-tip: 40% 60% 70% 30% / 40% 50% 50% 60%;
  --blob-info: 60% 40% 30% 70% / 60% 30% 70% 40%;
  --blob-success: 50% 50% 20% 80% / 25% 80% 20% 75%;
  --blob-warning: 30% 70% 70% 30% / 30% 30% 70% 70%;
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 16px 40px rgba(244, 98, 90, 0.15);
  --transition-spring: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-smooth: all 0.3s ease;
}

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

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* Background motifs */
.bg-motif {
  position: fixed;
  z-index: -1;
  opacity: 0.6;
  pointer-events: none;
}
.motif-1 { top: 10%; left: 5%; transform: rotate(15deg); fill: var(--brand-yellow-light); }
.motif-2 { top: 40%; right: 8%; transform: rotate(-25deg); fill: var(--brand-blue-light); }
.motif-3 { bottom: 20%; left: 10%; transform: rotate(45deg); fill: var(--brand-yellow-light); }

/* Container */
.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.sp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  position: relative;
  z-index: 10;
}

.sp-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.5rem;
  color: #4A7C59;
  text-decoration: none;
}

.sp-logo-icon {
  width: 40px;
  height: 40px;
  background-color: var(--brand-yellow);
  border-radius: var(--blob-1);
  display: flex;
  align-items: center;
  justify-content: center;
  /* animation: float 6s ease-in-out infinite; */
}

.sp-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.sp-nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
  position: relative;
}

.sp-nav a:hover, .sp-nav a.active {
  color: #4A7C59;
}

.sp-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: #4A7C59;
  border-radius: 50%;
}

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

.sp-avatar {
  width: 48px;
  height: 48px;
  background-color: var(--brand-yellow-light);
  background-size: cover;
  border-radius: var(--blob-2);
  border: 2px solid var(--bg-card);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-main);
}

/* Dashboard header banner */
.sp-dashboard-header {
  position: relative;
  margin: 2rem 0 4rem 0;
  padding: 3rem 4rem;
  border-radius: 40px;
  background-color: var(--brand-yellow);
  border-top-left-radius: 80px;
  border-bottom-right-radius: 80px;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-soft);
}

.sp-dashboard-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background-color: rgba(255,255,255,0.2);
  border-radius: var(--blob-1);
  transform: rotate(-15deg);
  pointer-events: none;
}

.sp-header-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.sp-header-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.sp-header-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.8;
}

.sp-header-stats {
  display: flex;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.sp-stat-badge {
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.sp-stat-badge .num {
  color: var(--brand-coral);
  font-weight: 800;
  font-size: 1.5rem;
}

.sp-stat-badge .label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Main grid */
.sp-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
}

.sp-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.sp-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Buttons */
.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-spring);
  text-decoration: none;
}

.sp-btn-primary {
  background-color: var(--brand-coral);
  color: var(--text-inverse);
  box-shadow: 0 6px 16px rgba(244, 98, 90, 0.2);
}

.sp-btn-primary:hover {
  background-color: var(--brand-coral-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244, 98, 90, 0.3);
}

.sp-btn-outline {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: var(--input-border);
}

.sp-btn-outline:hover {
  background-color: var(--brand-yellow-light);
  transform: translateY(-2px);
}

/* Cards */
.sp-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  position: relative;
  border: 2px solid transparent;
}

.sp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.06);
}

/* Active course card */
.sp-active-course {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  margin-bottom: 3rem;
}

.sp-course-img {
  width: 200px;
  height: 200px;
  border-radius: var(--blob-1);
  overflow: hidden;
  position: relative;
  border: 4px solid var(--brand-yellow);
}

.sp-course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sp-active-course:hover .sp-course-img img {
  transform: scale(1.05);
}

.sp-course-meta {
  display: inline-block;
  padding: 4px 14px;
  background: var(--brand-blue-light);
  color: #4A7A9C;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}

.sp-course-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

/* Progress */
.sp-progress-container { margin: 1.5rem 0; }

.sp-progress-bar-bg {
  height: 12px;
  background-color: #F0F0F0;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.sp-progress-fill {
  height: 100%;
  background-color: var(--brand-coral);
  border-radius: var(--radius-pill);
  transition: width 0.5s ease;
}

.sp-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Module list */
.sp-module-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sp-module-item {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 2px solid #F0F0F0;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.sp-module-item.active {
  border-color: var(--brand-yellow);
  box-shadow: 0 8px 24px rgba(255, 224, 69, 0.2);
}

.sp-module-item.completed .sp-module-icon {
  background: var(--brand-yellow);
  color: var(--text-main);
}

.sp-module-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
}

.sp-module-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--bg-base);
  border-radius: var(--blob-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--brand-coral);
  font-size: 1.2rem;
}

.sp-module-item.active .sp-module-icon {
  background: var(--brand-yellow);
  color: var(--text-main);
}

.sp-module-item.locked .sp-module-icon {
  background: transparent;
  border: 2px dashed #ccc;
  color: #ccc;
}

.sp-module-info { flex-grow: 1; }

.sp-module-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.sp-module-duration {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sp-module-item.locked {
  opacity: 0.6;
  pointer-events: none;
}

/* Worksheet area */
.sp-worksheet-area {
  background-color: var(--bg-base);
  padding: 2rem;
  border-top: 2px dashed #E0E0E0;
  display: none;
}

.sp-module-item.active .sp-worksheet-area {
  display: block;
  animation: slideDown 0.3s ease-out;
}

.sp-worksheet-prompt {
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Input fields */
.sp-input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: var(--input-border);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  background: var(--bg-card);
  transition: var(--transition-smooth);
  margin-bottom: 1rem;
}

.sp-input:focus {
  outline: none;
  box-shadow: 0 0 0 4px var(--brand-yellow-light);
}

textarea.sp-input {
  border-radius: 24px;
  resize: vertical;
  min-height: 100px;
}

/* Resources */
.sp-resource-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sp-resource-card {
  background: var(--bg-card);
  padding: 1.25rem;
  border-radius: var(--radius-inner);
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition-smooth);
  border: 2px solid transparent;
}

.sp-resource-card:hover {
  border-color: var(--brand-blue);
  transform: translateX(4px);
  background: var(--brand-blue-light);
}

.sp-resource-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--bg-base);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-resource-card:hover .sp-resource-icon {
  background: var(--bg-card);
}

.sp-resource-details h4 {
  font-size: 1rem;
  font-weight: 700;
}

.sp-resource-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Promo card */
.sp-promo-card {
  margin-top: 2rem;
  background-color: var(--brand-yellow-light);
  border: none;
  text-align: center;
}

.sp-promo-icon {
  width: 60px;
  height: 60px;
  background: var(--brand-yellow);
  border-radius: var(--blob-3);
  margin: 0 auto 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Chevron toggle */
.sp-chevron {
  color: var(--brand-coral);
  transition: var(--transition-smooth);
}

.sp-module-item.active .sp-chevron {
  transform: rotate(180deg);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
  .sp-main-grid { grid-template-columns: 1fr; }
  .sp-dashboard-header { flex-direction: column; gap: 2rem; padding: 2rem; }
  .sp-active-course { grid-template-columns: 1fr; }
  .sp-course-img { width: 100%; height: 200px; }
  .sp-header-stats { flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .sp-header { flex-direction: column; gap: 1rem; }
  .sp-nav { gap: 1rem; }
  .sp-header-title { font-size: 1.75rem; }
  .sp-dashboard-header { border-radius: 24px; border-top-left-radius: 40px; border-bottom-right-radius: 40px; }
  .sp-worksheet-grid { grid-template-columns: 1fr !important; }
}

/* Content prose styles for rendered markdown */
.sp-prose h1 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; margin-top: 2rem; }
.sp-prose h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; margin-top: 1.5rem; }
.sp-prose h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; margin-top: 1.25rem; }
.sp-prose p { margin-bottom: 1rem; line-height: 1.75; }
.sp-prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.sp-prose ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
.sp-prose li { margin-bottom: 0.25rem; line-height: 1.75; }
.sp-prose blockquote { border-left: 4px solid var(--brand-yellow); padding-left: 1rem; color: var(--text-muted); margin-bottom: 1rem; background: var(--brand-yellow-light); padding: 1rem; border-radius: 0 16px 16px 0; }
.sp-prose code { background: var(--brand-yellow-light); padding: 0.125rem 0.375rem; border-radius: 6px; font-size: 0.875em; }
.sp-prose pre { background: var(--text-main); color: var(--bg-base); padding: 1.25rem; border-radius: 16px; overflow-x: auto; margin-bottom: 1rem; }
.sp-prose pre code { background: none; padding: 0; }
.sp-prose hr { border: none; border-top: 2px dashed #E0E0E0; margin: 2rem 0; }
.sp-prose a { color: var(--brand-coral); text-decoration: underline; font-weight: 600; }
.sp-prose strong { font-weight: 700; }
.sp-prose em { font-style: italic; }
.sp-prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 0.95rem; border-radius: 16px; overflow: hidden; border: 2px solid #F0F0F0; }
.sp-prose thead { background: var(--brand-yellow-light); }
.sp-prose th { padding: 0.75rem 1rem; text-align: left; font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-main); border-bottom: 2px solid #F0F0F0; }
.sp-prose td { padding: 0.75rem 1rem; border-bottom: 1px solid #F0F0F0; line-height: 1.6; }
.sp-prose tr:last-child td { border-bottom: none; }
.sp-prose tbody tr:hover { background: rgba(255, 240, 168, 0.15); }

/* Callout styles — Sprout branded with blob icons */
.sp-prose [data-callout] {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2rem 2.25rem;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  gap: 0.25rem 1.25rem;
  align-items: start;
  border: 2.5px dashed #D1C9A9;
  box-shadow: var(--shadow-soft);
}

/* Blob icon — spans both rows on the left */
.sp-prose [data-callout]::before {
  content: "";
  grid-row: 1 / -1;
  width: 56px;
  height: 56px;
  background-color: #FFF9D6;
  border-radius: var(--blob-tip);
  opacity: 0.9;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 26px 26px;
  align-self: start;
  margin-top: 0.15rem;
}

.sp-prose [data-callout-title] {
  font-family: 'Gochi Hand', cursive;
  font-size: 1.4rem;
  margin-bottom: 0;
  display: block;
  color: #B59500;
  line-height: 1.2;
  grid-column: 2;
}

.sp-prose [data-callout-body] {
  font-size: 0.95rem;
  color: #6B6B6B;
  font-weight: 500;
  line-height: 1.6;
  grid-column: 2;
}

.sp-prose [data-callout-body] p { margin: 0.35rem 0 0 0; }

/* Bold text in callout bodies */
.sp-prose [data-callout-body] strong {
  font-weight: 800;
  color: var(--text-main);
}

/* Tip — yellow + lightbulb */
.sp-prose [data-callout-type="tip"]::before {
  background-color: #FFF9D6;
  border-radius: var(--blob-tip);
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A5 5 0 0 0 8 8c0 1.3.5 2.6 1.5 3.5.8.8 1.3 1.5 1.5 2.5'/%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3C/svg%3E");
}
.sp-prose [data-callout-type="tip"] [data-callout-title] { color: #B59500; }

/* Info — blue + info circle */
.sp-prose [data-callout-type="info"]::before {
  background-color: var(--brand-blue-light);
  border-radius: var(--blob-info);
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%235B8FB9' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
}
.sp-prose [data-callout-type="info"] [data-callout-title] { color: #5B8FB9; }

/* Warning — coral + triangle */
.sp-prose [data-callout-type="warning"]::before {
  background-color: var(--brand-coral-light);
  border-radius: var(--blob-warning);
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23D14B44' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
}
.sp-prose [data-callout-type="warning"] [data-callout-title] { color: #D14B44; }

/* Abstract / Example — green + checkmark */
.sp-prose [data-callout-type="abstract"]::before,
.sp-prose [data-callout-type="example"]::before {
  background-color: var(--brand-green-light);
  border-radius: var(--blob-success);
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%234B8B49' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}
.sp-prose [data-callout-type="abstract"] [data-callout-title],
.sp-prose [data-callout-type="example"] [data-callout-title] { color: #4B8B49; }

/* Quote — muted + quote marks */
.sp-prose [data-callout-type="quote"]::before {
  background-color: #F0F0F0;
  border-radius: var(--blob-info);
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%238E8E8E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 21c3 0 7-1 7-8V5c0-1.25-.756-2.017-2-2H4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1 .008-1 1.031V21z'/%3E%3Cpath d='M15 21c3 0 7-1 7-8V5c0-1.25-.757-2.017-2-2h-4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2h.75c0 2.25.25 4-2.75 4v3z'/%3E%3C/svg%3E");
}
.sp-prose [data-callout-type="quote"] [data-callout-title] { color: var(--text-muted); }

/* Responsive: stack on small screens */
@media (max-width: 480px) {
  .sp-prose [data-callout] {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.25rem;
  }
  .sp-prose [data-callout]::before {
    grid-row: auto;
    width: 48px;
    height: 48px;
    background-size: 22px 22px;
  }
  .sp-prose [data-callout-title],
  .sp-prose [data-callout-body] { grid-column: 1; }
}

/* Resources page */
.sp-resource-page-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sp-resource-page-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  text-decoration: none;
  color: var(--text-main);
  border: 2px solid #F0F0F0;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.sp-resource-page-card:hover {
  border-color: var(--brand-yellow);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.06);
}

.sp-resource-page-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-yellow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.sp-resource-page-info {
  flex-grow: 1;
}

.sp-resource-page-info h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.sp-resource-page-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.sp-resource-page-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.sp-resource-page-type {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--brand-blue-light);
  color: #4A7A9C;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sp-resource-page-tag {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  background: #F0F0F0;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .sp-resource-page-card {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
  }
}

/* ============================================================
   SECTIONED MODULE CONTENT
   ============================================================ */

/* Module layout with floating sidebar */
.sp-module-layout {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Fallback for non-sectioned pages */
.sp-module-layout-simple {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Floating sidebar */
.sp-module-sidebar {
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.sp-module-sidebar-inner {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Sidebar progress ring */
.sp-sidebar-progress {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid #F0F0F0;
}

.sp-sidebar-ring {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.sp-sidebar-ring svg {
  transform: rotate(-90deg);
}

.sp-sidebar-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #4A7C59;
}

.sp-sidebar-progress-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: block;
  line-height: 1.2;
}

.sp-sidebar-progress-status {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  margin-top: 2px;
}

/* Sidebar section label */
.sp-sidebar-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

/* Sidebar section links */
.sp-sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sp-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
  line-height: 1.3;
  cursor: pointer;
}

.sp-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-main);
}

.sp-sidebar-link.active {
  background: var(--bg-base);
  color: #4A7C59;
  font-weight: 700;
}

.sp-sidebar-link-num {
  width: 22px;
  height: 22px;
  background: var(--brand-yellow-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-main);
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.sp-sidebar-link.active .sp-sidebar-link-num {
  background: var(--brand-yellow);
}

/* Module content column */
.sp-module-content {
  max-width: 800px;
  min-width: 0;
}

/* Botanical section header */
.sp-botanical-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0 1.25rem;
}

.sp-botanical-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #4A7C59;
  white-space: nowrap;
  margin: 0;
}

.sp-botanical-header-line {
  height: 2px;
  background: var(--brand-yellow-light);
  flex: 1;
  border-radius: 1px;
}

/* Section card */
.sp-section-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Override prose styles inside section cards */
.sp-section-card .sp-prose h2 { display: none; }
.sp-section-card .sp-prose h3 { margin-top: 1.5rem; }
.sp-section-card .sp-prose h3:first-child { margin-top: 0; }
.sp-section-card .sp-prose p:last-child { margin-bottom: 0; }
.sp-section-card .sp-prose hr { display: none; }

/* Intro section (before first h2) */
.sp-section-intro {
  margin-bottom: 1rem;
}

/* First botanical header after intro needs less top margin */
.sp-section-intro + .sp-botanical-header {
  margin-top: 1.5rem;
}

@media (max-width: 1024px) {
  .sp-module-layout {
    grid-template-columns: 1fr;
    max-width: 800px;
  }
  .sp-module-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .sp-section-card {
    padding: 1.5rem;
    border-radius: 20px;
  }
  .sp-botanical-header h2 {
    font-size: 1.2rem;
  }
}

/* GFM task list styling */
.contains-task-list {
  list-style: none;
  padding-left: 0.5rem;
}

.task-list-item {
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
  border-radius: 12px;
  font-weight: 600;
}

/* ============================================================
   SUPPORT PAGE
   ============================================================ */

.sp-support-page {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.sp-support-card {
  background: var(--bg-card);
  border-radius: 40px;
  padding: 4rem 3.5rem;
  box-shadow: 0 20px 48px rgba(45, 58, 45, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.02);
  text-align: center;
}

.sp-support-badge-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.sp-support-badge {
  width: 80px;
  height: 80px;
  background: var(--brand-yellow-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-support-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.sp-support-subtitle {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.sp-support-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  margin-bottom: 1rem;
}

.sp-support-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-base);
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
}

.sp-support-item-icon {
  width: 44px;
  height: 44px;
  background: var(--brand-yellow-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-main);
}

.sp-support-item h4 {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.sp-support-item p {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .sp-support-card {
    padding: 2.5rem 1.75rem;
    border-radius: 24px;
  }

  .sp-support-title {
    font-size: 2rem;
  }
}

/* Broken wikilinks */
.broken-link { color: var(--brand-coral); text-decoration: underline wavy; cursor: help; }

/* ============================================================
   ONBOARDING HERO (Sprout 2)
   ============================================================ */

.sp-onboarding-hero {
  text-align: center;
  padding: 4rem 2rem;
  margin-top: 1rem;
  margin-bottom: 3rem;
  background: var(--bg-card);
  border-radius: 40px;
  border-top-left-radius: 80px;
  border-bottom-right-radius: 80px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.sp-onboarding-blob {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: var(--brand-yellow-light);
  border-radius: var(--blob-3);
  z-index: 0;
  opacity: 0.4;
}

.sp-onboarding-illustration {
  width: 240px;
  height: 240px;
  background-color: var(--brand-blue-light);
  border-radius: var(--blob-1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.sp-onboarding-sprout {
  animation: sproutGrow 1s ease-out forwards;
}

@keyframes sproutGrow {
  0% { transform: scale(0.8) translateY(10px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* ============================================================
   COURSES INDEX GRID
   ============================================================ */

.sp-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.sp-course-index-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
  text-decoration: none;
  color: var(--text-main);
}

.sp-course-index-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: var(--brand-yellow-light);
}

.sp-course-index-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--brand-yellow-light), var(--brand-blue-light));
}

/* ============================================================
   WORKSHEET INLINE FORM
   ============================================================ */

.sp-worksheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sp-worksheet-label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
  margin-left: 12px;
}

@media (max-width: 767px) {
  .sp-worksheet-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   BLOG / ARTICLES
   ============================================================ */

.sp-blog-index {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.sp-blog-header {
  text-align: center;
  margin-bottom: 3rem;
}

.sp-blog-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.sp-blog-header p {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1.1rem;
}

.sp-blog-empty {
  text-align: center;
  padding: 4rem 1rem;
}

.sp-blog-empty h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.sp-blog-empty p {
  color: var(--text-muted);
  font-weight: 600;
}

/* Blog layout (sidebar + content) */
.sp-blog-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 2rem;
  align-items: start;
}

.sp-blog-sidebar {
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.sp-blog-sidebar-inner {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Article count badge (mirrors progress ring area) */
.sp-blog-sidebar-stats {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid #F0F0F0;
}

.sp-blog-sidebar-count {
  width: 42px;
  height: 42px;
  background: var(--brand-yellow-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #4A7C59;
  flex-shrink: 0;
}

.sp-blog-sidebar-stats-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: block;
  line-height: 1.2;
}

.sp-blog-sidebar-stats-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  margin-top: 2px;
}

.sp-blog-sidebar-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

.sp-blog-sidebar-year {
  margin-bottom: 0.75rem;
}

.sp-blog-sidebar-year:last-child {
  margin-bottom: 0;
}

.sp-blog-sidebar-year-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-main);
  padding-left: 0.75rem;
  margin-bottom: 0.35rem;
}

.sp-blog-sidebar-months {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sp-blog-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
  line-height: 1.3;
  cursor: pointer;
}

.sp-blog-sidebar-link-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-yellow-light);
  border-radius: 50%;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.sp-blog-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-main);
}

.sp-blog-sidebar-link.active {
  background: var(--bg-base);
  color: #4A7C59;
  font-weight: 700;
}

.sp-blog-sidebar-link.active .sp-blog-sidebar-link-dot {
  background: var(--brand-yellow);
}

.sp-blog-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .sp-blog-layout {
    grid-template-columns: 1fr;
  }

  .sp-blog-sidebar {
    display: none;
  }
}

.sp-blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Article card (listing) */
.sp-article-card {
  display: block;
  background: var(--bg-card);
  border-radius: 24px;
  padding: 2rem 2.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: var(--transition-spring);
}

.sp-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(45, 58, 45, 0.1);
}

.sp-article-category {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--brand-coral);
  margin-bottom: 0.75rem;
}

.sp-article-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.sp-article-card-subtitle {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}


/* Article hero (reading view) */
.sp-article-hero {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.sp-article-hero-inner {
  background: var(--bg-card);
  border-radius: 40px;
  padding: 4rem 5rem;
  box-shadow: 0 20px 48px rgba(45, 58, 45, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
}

.sp-article-hero-accent {
  display: none;
}

.sp-article-hero-inner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--brand-yellow) 0%, transparent 70%);
  opacity: 0.1;
  transform: translate(30%, -30%);
  pointer-events: none;
}

.sp-article-back {
  display: inline-block;
  color: #4A7C59;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.sp-article-body-card {
  background: var(--bg-card);
  border-radius: 32px;
  padding: 3.5rem 4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.sp-article-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.sp-article-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.sp-article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.sp-article-author {
  font-weight: 800;
  color: var(--text-main);
}

.sp-article-meta-dot::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--brand-yellow);
  border-radius: 50%;
}

.sp-article-date {
  color: var(--text-muted);
  font-weight: 600;
}

.sp-article-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.sp-article-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--brand-green-light);
  border: 1.5px solid rgba(74, 124, 89, 0.15);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  color: #4A7C59;
}

.sp-article-content {
  max-width: 720px;
  margin: 0 auto;
}

.sp-article-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .sp-article-hero-inner {
    padding: 2.5rem 1.75rem;
    border-radius: 24px;
  }

  .sp-article-title {
    font-size: 2rem;
  }

  .sp-article-card {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .sp-article-card-title {
    font-size: 1.25rem;
  }

  .sp-article-body-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }
}

/* ============================================================
   BROWSE / CATALOG
   ============================================================ */

.browse-hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.browse-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.browse-search-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.browse-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.browse-search-input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 52px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: var(--transition-smooth);
}

.browse-search-input:focus {
  outline: none;
  border-color: var(--brand-yellow);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06), 0 0 0 4px var(--brand-yellow-light);
}

.browse-filters,
.sp-filter-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 2rem;
  justify-content: center;
  mask-image: linear-gradient(to right, transparent, black 2rem, black calc(100% - 2rem), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 2rem, black calc(100% - 2rem), transparent);
}

.browse-filters::-webkit-scrollbar,
.sp-filter-row::-webkit-scrollbar {
  display: none;
}

.browse-filter-pill,
.sp-filter-row .browse-filter-pill {
  white-space: nowrap;
  flex-shrink: 0;
}

.browse-filter-pill {
  padding: 0.5rem 1.25rem;
  border: 2px solid #F0F0F0;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.browse-filter-pill:hover {
  background: #FFF0A8;
  border-color: #FFF0A8;
}

.browse-filter-pill.active {
  background: var(--brand-yellow);
  border-color: var(--brand-yellow);
}

/* Course grid */
.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
  padding-bottom: 4rem;
}

.browse-course-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 2px solid transparent;
  transition: var(--transition-spring);
}

.browse-course-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand-yellow);
  box-shadow: var(--shadow-hover);
}

.browse-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-yellow-light), var(--brand-blue-light));
}

.browse-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.browse-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.browse-card-body {
  padding: 1.5rem;
}

.browse-card-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.browse-level-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--brand-blue-light);
  color: #4A7A9C;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

.browse-topic-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #F0F0F0;
  color: var(--text-main);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

.browse-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.browse-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.browse-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.browse-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 0.9rem;
}

.browse-card-reviews {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.browse-enroll-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

/* ============================================================
   CELEBRATION PAGE
   ============================================================ */

.celebrate-logo {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  z-index: 10;
}

.celebrate-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.celebrate-card {
  background: var(--bg-card);
  border-radius: 40px;
  padding: 4rem;
  border: 3px solid var(--brand-yellow-light);
  max-width: 900px;
  width: 100%;
  text-align: center;
  animation: fadeIn 0.6s ease-out;
}

/* Badge */
.celebrate-badge-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 2rem;
}

.celebrate-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: var(--brand-yellow);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.2;
  animation: pulse 5s ease-in-out infinite;
}

.celebrate-badge {
  position: relative;
  width: 140px;
  height: 140px;
  background: var(--brand-yellow);
  border-radius: var(--blob-3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: popBadge 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}

.celebrate-badge span {
  display: inline-block;
  animation: gentleRock 5s ease-in-out infinite;
}

@keyframes gentleRock {
  0%, 100% { transform: rotate(-12deg); }
  50% { transform: rotate(12deg); }
}

/* Sparkles */
.celebrate-sparkle {
  position: absolute;
  z-index: 3;
  animation: sparkleAnim 2s ease-in-out infinite;
}

.sparkle-1 { top: -10px; right: -10px; animation-delay: 0s; }
.sparkle-2 { bottom: 5px; left: -8px; animation-delay: 0.5s; }
.sparkle-3 { top: 10px; left: -12px; animation-delay: 1s; }
.sparkle-4 { bottom: -8px; right: 5px; animation-delay: 1.5s; }

.celebrate-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.celebrate-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 600;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* Summary grid */
.celebrate-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.celebrate-summary-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.celebrate-summary-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--brand-yellow-light);
  border-radius: var(--blob-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.celebrate-summary-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.celebrate-summary-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Support / Ko-fi card */
.celebrate-support {
  text-align: center;
  background: var(--brand-yellow-light);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
}

.celebrate-support-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.celebrate-support-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.celebrate-support-desc {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.celebrate-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFE045;
  color: var(--text-main);
  font-weight: 800;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: var(--transition-spring);
}

.celebrate-support-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 224, 69, 0.4);
}

.celebrate-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.celebrate-back-link {
  display: inline-block;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.celebrate-back-link:hover {
  color: var(--brand-coral);
}

/* Celebration animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes popBadge {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.15); }
}

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

/* ============================================================
   RESPONSIVE - PROFILE, BROWSE, CELEBRATE
   ============================================================ */

@media (max-width: 1024px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-sidebar {
    position: static;
  }
  .celebrate-card {
    padding: 2.5rem 1.5rem;
  }
  .celebrate-title {
    font-size: 2rem;
  }
  .celebrate-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .profile-form-grid {
    grid-template-columns: 1fr;
  }
  .browse-hero-title {
    font-size: 2rem;
  }
  .browse-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .celebrate-badge-wrap {
    width: 100px;
    height: 100px;
  }
  .celebrate-badge {
    width: 100px;
    height: 100px;
  }
  .celebrate-glow {
    width: 130px;
    height: 130px;
  }
  .celebrate-actions {
    flex-direction: column;
    align-items: center;
  }
}
