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

:root {
  --brown: #8B5E3C;
  --tan: #C4956A;
  --cream: #E8D5B7;
  --sage: #5A7D5C;
  --gold: #D4A76A;
  --terracotta: #C67B5C;
  --sky: #4A6FA5;
  --dark: #3D2B1F;
  --light: #F5EDE0;
  --white: #FFFBF5;
  --orange: #E8924A;
  --red: #C2554A;
  --green: #6BA368;
  --yellow: #E8C84A;
  --shadow: 0 4px 20px rgba(61,43,31,0.1);
  --radius: 16px;
  --radius-sm: 8px;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--light);
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: 'Fredoka One', cursive;
  font-weight: 400;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--terracotta);
  color: white;
}
.btn-primary:hover {
  background: var(--brown);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(198,123,92,0.4);
}

.btn-sage {
  background: var(--sage);
  color: white;
}
.btn-sage:hover {
  background: #4A6B4C;
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
}
.btn-gold:hover {
  background: #C49555;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--brown);
  border: 2px solid var(--brown);
}
.btn-outline:hover {
  background: var(--brown);
  color: white;
}

/* NAV */
.top-nav {
  background: white;
  padding: 12px 0;
  box-shadow: 0 2px 10px rgba(61,43,31,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.top-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: var(--brown);
}
.nav-logo img { height: 42px; width: auto; }
.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brown);
  transition: all 0.2s;
}
.nav-links a:hover { background: var(--cream); }
.nav-links a.active { background: var(--terracotta); color: white; }
.nav-right { display: flex; align-items: center; gap: 12px; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--brown);
  cursor: pointer;
}

/* FOOTER */
.site-footer {
  background: var(--dark);
  color: var(--cream);
  padding: 40px 0 20px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 24px;
}
.footer-grid h4 {
  color: var(--gold);
  margin-bottom: 12px;
  font-size: 1rem;
}
.footer-grid a, .footer-grid p {
  display: block;
  color: var(--tan);
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(196,149,106,0.2);
  padding-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--tan);
}

/* PAGE HEADER */
.page-header {
  background: linear-gradient(135deg, var(--brown) 0%, var(--terracotta) 100%);
  color: white;
  padding: 48px 0;
  text-align: center;
}
.page-header h1 { font-size: 2.5rem; margin-bottom: 8px; }
.page-header p { font-size: 1.1rem; opacity: 0.9; }

/* SECTION TITLES */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 2rem;
  color: var(--brown);
  margin-bottom: 8px;
}
.section-title p {
  color: var(--tan);
  max-width: 600px;
  margin: 0 auto;
}

/* HERO */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--cream) 0%, var(--light) 50%, #E8D5B7 100%);
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(90,125,92,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.hero-content h1 {
  font-size: 3.2rem;
  color: var(--brown);
  line-height: 1.2;
  margin-bottom: 8px;
}
.hero-content .motto {
  font-size: 1.3rem;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 16px;
}
.hero-content p {
  font-size: 1.05rem;
  color: var(--brown);
  margin-bottom: 24px;
  line-height: 1.6;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-logo {
  width: 280px;
  height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 8px 30px rgba(139,94,60,0.15));
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  padding: 20px;
}

/* LEVEL CARDS */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin: 40px 0;
}
.level-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  cursor: pointer;
}
.level-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(61,43,31,0.15); }
.level-card .icon {
  font-size: 2.5rem;
  width: 72px;
  height: 72px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.level-card h3 { color: var(--brown); margin-bottom: 8px; font-size: 1.2rem; }
.level-card p { color: var(--tan); font-size: 0.9rem; line-height: 1.5; }

/* CAMP CARDS */
.camps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}
.camp-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.camp-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(61,43,31,0.15); }
.camp-card-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.camp-card-body { padding: 24px; }
.camp-card-body h3 { color: var(--brown); margin-bottom: 6px; }
.camp-card-body p { color: var(--tan); font-size: 0.9rem; margin-bottom: 12px; }
.camp-card-body .tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 4px;
  margin-bottom: 4px;
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 40px 0;
}
.feature-card {
  text-align: center;
  padding: 24px;
}
.feature-card .icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.feature-card h3 { font-size: 1.1rem; color: var(--brown); margin-bottom: 6px; }
.feature-card p { font-size: 0.9rem; color: var(--tan); }

/* SECTIONS */
.section-padded { padding: 60px 0; }
.bg-cream { background: var(--cream); }
.bg-white { background: white; }
.bg-light { background: var(--light); }

/* PORTAL / HUB */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
}
.hub-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s;
}
.hub-card:hover { transform: translateY(-6px) scale(1.02); }
.hub-card .icon {
  font-size: 3rem;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.hub-card h3 { font-size: 1rem; color: var(--dark); }
.hub-card p { font-size: 0.8rem; color: var(--tan); margin-top: 4px; }
.hub-card .icon-earth { background: #E8D5B7; }
.hub-card .icon-sky { background: #D4E4F7; }
.hub-card .icon-sage { background: #D4E8D4; }
.hub-card .icon-gold { background: #F0E0B8; }
.hub-card .icon-terra { background: #F0D0C0; }
.hub-card .icon-rose { background: #F7D4D4; }

/* TIMELINE - Duolingo style */
.timeline-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 0;
}
.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.timeline-header h2 { color: var(--brown); }
.view-toggle {
  display: flex;
  gap: 0;
  background: var(--cream);
  border-radius: 50px;
  overflow: hidden;
}
.view-toggle button {
  padding: 8px 20px;
  border: none;
  background: transparent;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brown);
  cursor: pointer;
  transition: all 0.2s;
}
.view-toggle button.active { background: var(--terracotta); color: white; }

.lesson-node {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}
.lesson-node:hover { transform: translateX(4px); }
.lesson-node::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: -8px;
  width: 4px;
  background: var(--cream);
  border-radius: 2px;
}
.lesson-node:last-child::before { display: none; }
.lesson-marker {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 3px solid var(--cream);
  background: white;
  transition: all 0.3s;
}
.lesson-node.completed .lesson-marker {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.lesson-node.locked .lesson-marker {
  background: #e0d5c8;
  border-color: #d0c5b8;
  color: #b0a598;
}
.lesson-node.current .lesson-marker {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212,167,106,0.3);
}
.lesson-body {
  flex: 1;
  background: white;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: var(--shadow);
  margin-bottom: 8px;
}
.lesson-body h4 { font-size: 0.95rem; color: var(--dark); font-family: 'Nunito', sans-serif; font-weight: 700; }
.lesson-body .meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--tan);
  margin-top: 4px;
}
.lesson-body .badge-preview {
  display: inline-block;
  font-size: 1.1rem;
  margin-left: 8px;
}

/* BADGES */
.badges-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.badge-item {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--cream);
  border: 2px solid transparent;
}
.badge-item.earned {
  background: var(--gold);
  border-color: var(--brown);
  box-shadow: 0 2px 10px rgba(212,167,106,0.4);
}
.badge-item.locked {
  opacity: 0.4;
  filter: grayscale(1);
}

/* XP BAR */
.xp-bar {
  background: var(--cream);
  border-radius: 50px;
  height: 24px;
  overflow: hidden;
  position: relative;
}
.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  border-radius: 50px;
  transition: width 0.5s ease;
}
.xp-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark);
}

/* CALENDAR */
.calendar-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.calendar-nav h2 { font-size: 1.5rem; color: var(--brown); }
.calendar-nav button {
  background: var(--cream);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--brown);
}
.calendar-nav button:hover { background: var(--terracotta); color: white; }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-header-cell {
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brown);
  padding: 8px;
}
.calendar-cell {
  background: white;
  border-radius: var(--radius-sm);
  min-height: 80px;
  padding: 6px;
  box-shadow: 0 1px 4px rgba(61,43,31,0.06);
  font-size: 0.85rem;
}
.calendar-cell .day-num {
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 4px;
}
.calendar-cell .event {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  margin-bottom: 2px;
  font-weight: 600;
  cursor: pointer;
}
.calendar-cell .event.lesson { background: #D4E8D4; color: #2D5A2D; }
.calendar-cell .event.extracurricular { background: #D4E4F7; color: #2D4A7D; }
.calendar-cell .event.holiday { background: #F7D4D4; color: #7D2D2D; }
.calendar-cell.other-month { opacity: 0.4; }
.calendar-cell.today { box-shadow: 0 0 0 2px var(--gold); }

/* COMMUNICATION - Discord style */
.comm-layout {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  min-height: calc(100vh - 70px);
}
.comm-sidebar {
  background: var(--brown);
  color: white;
  padding: 16px;
  overflow-y: auto;
}
.comm-sidebar h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tan);
  margin: 16px 0 8px;
}
.comm-sidebar .channel {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 2px;
}
.comm-sidebar .channel:hover { background: rgba(255,255,255,0.1); }
.comm-sidebar .channel.active { background: rgba(255,255,255,0.15); }
.comm-sidebar .channel .badge-count {
  margin-left: auto;
  background: var(--red);
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 50px;
  font-weight: 700;
}
.comm-main {
  display: flex;
  flex-direction: column;
  background: white;
}
.comm-main-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--cream);
  font-weight: 700;
  color: var(--dark);
}
.comm-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.comm-message {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.comm-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}
.comm-msg-content .name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
}
.comm-msg-content .name .role {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--tan);
  margin-left: 6px;
}
.comm-msg-content .text {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 2px;
}
.comm-msg-content .time {
  font-size: 0.7rem;
  color: var(--tan);
  margin-top: 4px;
}
.comm-input {
  padding: 12px 20px;
  border-top: 1px solid var(--cream);
}
.comm-input input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--cream);
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  outline: none;
}
.comm-input input:focus { border-color: var(--terracotta); }
.comm-right {
  background: var(--light);
  padding: 16px;
  overflow-y: auto;
}
.comm-right h4 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brown);
  margin-bottom: 12px;
}
.comm-right .member {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.85rem;
}
.comm-right .member .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.comm-right .member .dot.offline { background: var(--tan); }
.comm-right .category-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.comm-right .category-tag.important { background: #F7D4D4; color: #7D2D2D; }
.comm-right .category-tag.event { background: #D4E4F7; color: #2D4A7D; }
.comm-right .category-tag.general { background: #D4E8D4; color: #2D5A2D; }

/* ADMIN */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 70px);
}
.admin-sidebar {
  background: var(--dark);
  color: white;
  padding: 16px;
}
.admin-sidebar .menu-item {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.admin-sidebar .menu-item:hover { background: rgba(255,255,255,0.1); }
.admin-sidebar .menu-item.active { background: var(--terracotta); }
.admin-content {
  padding: 32px;
  background: var(--light);
  overflow-y: auto;
}
.admin-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.admin-card h3 { font-size: 1.1rem; color: var(--brown); margin-bottom: 12px; font-family: 'Nunito', sans-serif; font-weight: 700; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--tan);
  border-bottom: 2px solid var(--cream);
}
.admin-table td {
  padding: 10px 12px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--cream);
}
.admin-table .status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}
.status.active { background: #D4E8D4; color: #2D5A2D; }
.status.pending { background: #F0E0B8; color: #7D6A2D; }
.status.completed { background: #D4E4F7; color: #2D4A7D; }
.status.inactive { background: #e0d5c8; color: #6A5A4A; }

/* SHOP */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 0;
}
.shop-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.shop-card:hover { transform: translateY(-4px); }
.shop-card-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.shop-card-body { padding: 16px; }
.shop-card-body h4 { font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--dark); }
.shop-card-body .price { font-size: 1.1rem; font-weight: 700; color: var(--terracotta); margin: 4px 0; }
.shop-card-body p { font-size: 0.8rem; color: var(--tan); }
.shop-category {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.shop-category button {
  padding: 8px 20px;
  border-radius: 50px;
  border: 2px solid var(--cream);
  background: transparent;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brown);
  cursor: pointer;
  transition: all 0.2s;
}
.shop-category button.active { background: var(--sage); color: white; border-color: var(--sage); }
.shop-category button:hover:not(.active) { border-color: var(--tan); }

/* ALBUM */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  padding: 20px 0;
}
.album-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: var(--cream);
  cursor: pointer;
  transition: all 0.3s;
}
.album-item:hover { transform: scale(1.03); }
.album-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(61,43,31,0.6));
  color: white;
  padding: 8px;
  font-size: 0.75rem;
  font-weight: 600;
}
.album-upload {
  border: 3px dashed var(--tan);
  border-radius: var(--radius-sm);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--tan);
  transition: all 0.3s;
}
.album-upload:hover { border-color: var(--terracotta); color: var(--terracotta); background: rgba(198,123,92,0.05); }

/* FAKE LOGIN */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(61,43,31,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.login-overlay.open { display: flex; }
.login-modal {
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(61,43,31,0.3);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.login-modal img { height: 60px; margin-bottom: 16px; }
.login-modal h2 { color: var(--brown); margin-bottom: 8px; }
.login-modal p { color: var(--tan); margin-bottom: 24px; }
.login-modal .btn { width: 100%; justify-content: center; font-size: 1.1rem; padding: 16px; }

/* XP / LEVEL DISPLAY */
.level-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}
.level-badge .level-num { font-size: 1.8rem; line-height: 1; }
.level-badge .level-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 1px; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-card .stat-icon { font-size: 1.8rem; margin-bottom: 6px; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; color: var(--brown); font-family: 'Fredoka One', cursive; }
.stat-card .stat-label { font-size: 0.8rem; color: var(--tan); }

/* LESSON DETAIL */
.lesson-detail {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin: 20px 0;
}
.lesson-detail h3 { color: var(--brown); margin-bottom: 16px; }
.task-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cream);
}
.task-item:last-child { border-bottom: none; }
.task-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--tan);
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.task-check.done { background: var(--green); border-color: var(--green); color: white; }
.task-info flex: 1; }
.task-info .task-title { font-weight: 600; font-size: 0.9rem; }
.task-info .task-desc { font-size: 0.8rem; color: var(--tan); margin-top: 2px; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .hub-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .comm-layout { grid-template-columns: 1fr; }
  .comm-right { display: none; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px; }
  .admin-sidebar .menu-item { font-size: 0.8rem; padding: 8px 14px; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-logo { width: 200px; height: 200px; }
  .hub-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; width: 100%; }
  .top-nav .container { flex-wrap: wrap; }
  .hero-content h1 { font-size: 2.2rem; }
  .page-header h1 { font-size: 1.8rem; }
  .calendar-grid { font-size: 0.75rem; }
  .calendar-cell { min-height: 60px; }
}

@media (max-width: 480px) {
  .hub-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr; }
}

/* MISC UTILITIES */
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-12 { gap: 12px; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
