/* ===== Fab 5 Fun Club ===== */
:root {
  --pink: #FF6B9D;
  --orange: #FF9F45;
  --yellow: #FFE66D;
  --lime: #B4F8C8;
  --turq: #4ECDC4;
  --aqua: #A0E7E5;
  --purple: #A06CD5;
  --hot: #FF4E8D;
  --dark: #2A1B3D;
  --cream: #FFF8E7;
  --white: #ffffff;
  --shadow: 4px 4px 0 var(--dark);
  --shadow-lg: 6px 6px 0 var(--dark);
}

/* Sprint 3: Ollie AI and premium learning intelligence */
.learn-skip{position:fixed;left:1rem;top:-5rem;z-index:9999;background:#fff;color:#32156f;padding:.8rem 1rem;border-radius:.7rem;box-shadow:0 8px 24px #24124a33}.learn-skip:focus{top:1rem}
.ollie-portrait{width:clamp(150px,22vw,245px);aspect-ratio:1;object-fit:cover;border-radius:32% 48% 38% 46%;box-shadow:0 18px 45px #32156f2e;border:4px solid #fff;flex:none}
.ollie-mini{width:74px;height:74px;object-fit:cover;border-radius:50%;border:3px solid #fff;box-shadow:0 8px 22px #32156f25}
.learn-option-ollie{position:relative;overflow:hidden;background:linear-gradient(145deg,#f7f1ff,#e9fffb)}
.learn-option-ollie-img{width:92px;height:92px;object-fit:cover;border-radius:50%;border:3px solid #fff;box-shadow:0 8px 24px #42207830}
.learn-btn-ollie{background:linear-gradient(135deg,#7043d6,#17a99a);color:#fff;box-shadow:0 8px 18px #593dbb35}
.learn-intelligence{margin:1.2rem 0 2rem;padding:1.4rem;border:1px solid #6c4bc522;border-radius:22px;background:linear-gradient(120deg,#fff,#f5f1ff)}
.learn-insight-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem;margin:1rem 0}.learn-insight-grid>div{padding:1rem;border-radius:15px;background:#fff;box-shadow:0 6px 18px #32156f12}.learn-insight-grid strong,.learn-insight-grid span{display:block}.learn-insight-grid span{font-size:.84rem;color:#665f75;margin-top:.3rem}
.learn-recommendations{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.learn-recommendations button{border:1px solid #7043d640;background:#fff;color:#503093;border-radius:999px;padding:.45rem .75rem;cursor:pointer}.learn-recommendations button:hover,.learn-recommendations button:focus-visible{background:#7043d6;color:#fff}
.ollie-setup-view,.ollie-loading-view{max-width:960px;margin:0 auto;padding:clamp(1rem,4vw,3rem)}.ollie-topic-card{display:grid;grid-template-columns:minmax(160px,260px) 1fr;align-items:center;gap:clamp(1.5rem,5vw,4rem);background:#fff;border-radius:28px;padding:clamp(1.5rem,4vw,3rem);box-shadow:0 20px 60px #28105220;margin-top:1rem}.ollie-topic-card label{display:block;font-weight:800;margin:.8rem 0 .35rem}.ollie-topic-input{display:flex;gap:.6rem}.ollie-topic-input input{min-width:0;flex:1;border:2px solid #d9ceef;border-radius:14px;padding:.9rem 1rem;font:inherit}.ollie-topic-input input:focus{outline:3px solid #17a99a44;border-color:#17a99a}
.ollie-loading-card{text-align:center;background:#fff;border-radius:30px;padding:3rem;box-shadow:0 20px 60px #28105220}.ollie-loading-card .ollie-portrait{display:block;margin:0 auto 1.2rem}.ollie-thinking-dots i{display:inline-block;width:10px;height:10px;margin:4px;border-radius:50%;background:#7043d6;animation:ollie-bounce 1.2s infinite}.ollie-thinking-dots i:nth-child(2){animation-delay:.15s}.ollie-thinking-dots i:nth-child(3){animation-delay:.3s}@keyframes ollie-bounce{50%{transform:translateY(-9px);background:#17a99a}}
.learn-result-ollie{width:130px;height:130px;object-fit:cover;border-radius:50%;border:4px solid #fff;box-shadow:0 12px 32px #32156f30}
.learn-option,.learn-question-card,.ollie-topic-card{transition:transform .25s ease,box-shadow .25s ease}.learn-option:hover{transform:translateY(-4px)}
@media(max-width:720px){.ollie-welcome{align-items:center}.ollie-portrait{width:125px}.learn-insight-grid{grid-template-columns:1fr}.ollie-topic-card{grid-template-columns:1fr;text-align:center}.ollie-topic-card .ollie-portrait{margin:auto}.ollie-topic-input{flex-direction:column}.learn-topbar{gap:.45rem}.learn-brand{font-size:.85rem}.learn-points-pill{font-size:.75rem}.learn-option:hover{transform:none}}
@media(prefers-reduced-motion:reduce){.learn-page *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

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

body {
  font-family: 'Fredoka', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 10% 20%, rgba(255,107,157,0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(78,205,196,0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(255,230,109,0.15) 0%, transparent 40%),
    var(--cream);
  color: var(--dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== LOGIN ===== */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.login-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--pink), var(--orange), var(--yellow), var(--turq), var(--purple));
  background-size: 300% 300%;
  animation: shifty 12s ease infinite;
  z-index: 0;
}
@keyframes shifty {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.login-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 4px solid var(--dark);
  border-radius: 28px;
  padding: 2rem 1.75rem;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: pop 0.6s ease-out;
}
.login-logo {
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 4px solid var(--dark);
  background: white;
  box-shadow: var(--shadow);
  margin-bottom: 0.5rem;
}
.login-title {
  font-family: 'Bungee', cursive;
  font-size: 1.8rem;
  background: linear-gradient(90deg, var(--pink), var(--turq));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}
.login-sub { font-weight: 700; margin: 0.25rem 0; }
.login-help { font-size: 0.9rem; opacity: 0.7; margin-bottom: 1rem; }
.login-form { display: grid; gap: 0.75rem; }
.login-form input {
  font-family: 'Fredoka', sans-serif;
  border: 3px solid var(--dark);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-size: 1.1rem;
  background: var(--cream);
  outline: none;
  text-align: center;
}
.login-form input:focus { background: white; box-shadow: 0 0 0 3px var(--turq); }
.login-pebbles {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 2px dashed var(--dark);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}
.login-pebbles img {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 3px solid var(--dark);
  box-shadow: 2px 2px 0 var(--dark);
}
.login-pebbles p { font-weight: 600; font-size: 0.95rem; text-align: left; }
#login-msg { font-weight: 600; min-height: 1.2em; }
#login-msg.error { color: #d63031; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
  overflow: hidden;
}
.logout-btn {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 2;
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--dark);
}
.logout-btn:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--dark); }
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--pink) 0%, var(--orange) 25%, var(--yellow) 50%, var(--turq) 75%, var(--purple) 100%);
  opacity: 0.85;
  z-index: 0;
}
.hero-bg::before, .hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  animation: float 8s ease-in-out infinite;
}
.hero-bg::before { width: 400px; height: 400px; background: var(--hot); top: -100px; left: -100px; }
.hero-bg::after  { width: 500px; height: 500px; background: var(--aqua); bottom: -150px; right: -150px; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-30px) scale(1.1); }
}

.hero-content {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.92);
  border: 4px solid var(--dark);
  border-radius: 32px;
  padding: 2.5rem 2rem;
  max-width: 720px;
  box-shadow: var(--shadow-lg);
  animation: pop 0.6s ease-out;
}
@keyframes pop {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.logo {
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 4px solid var(--dark);
  background: white;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  animation: spin-slow 20s linear infinite;
}
.hero-group {
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: 24px;
  border: 6px solid white;
  box-shadow: 0 16px 48px rgba(42, 27, 61, 0.35);
  margin-bottom: 1.5rem;
  display: block;
}
@media (max-width: 720px) {
  .hero-group { border-width: 4px; border-radius: 16px; }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.logo:hover { animation-play-state: paused; }

.title {
  font-family: 'Bungee', cursive;
  font-size: clamp(2rem, 6vw, 4rem);
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--purple), var(--turq));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
  animation: rainbow 4s linear infinite;
}
@keyframes rainbow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.tagline { font-size: 1.2rem; font-weight: 600; margin: 0.5rem 0; }
.location { font-size: 1.05rem; font-weight: 500; }
.mascot-line { font-size: 0.95rem; font-weight: 500; margin-bottom: 1.25rem; opacity: 0.8; }

.hero-buttons { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border: 3px solid var(--dark);
  border-radius: 14px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--dark); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--dark); }

.btn-primary    { background: var(--pink); color: var(--white); }
.btn-secondary  { background: var(--turq); color: var(--white); }
.btn-tertiary   { background: var(--yellow); color: var(--dark); }
.btn-quaternary { background: var(--lime); color: var(--dark); }
.btn-small      { padding: 0.5rem 0.9rem; font-size: 0.9rem; }
.btn-big        { padding: 1.1rem 2rem; font-size: 1.15rem; width: 100%; margin-top: 0.5rem; }
.btn-danger     { background: var(--hot); color: var(--white); }

/* ===== SECTIONS ===== */
.section { max-width: 1100px; margin: 0 auto; padding: 4rem 1.25rem; }
.section-title {
  font-family: 'Bungee', cursive;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 2rem;
  opacity: 0.8;
}

/* ===== VALUES SECTION ===== */
.values-card, .duke-card, .leader-card {
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: 22px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}
.values-card { background: linear-gradient(135deg, var(--yellow), var(--orange)); text-align: center; }
.values-card h3 { font-family: 'Bungee', cursive; font-size: 1.4rem; margin-bottom: 0.75rem; }
.big-quote { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 700; line-height: 1.5; }
.quote-attrib { margin-top: 0.75rem; font-style: italic; font-weight: 600; }

.duke-card { background: linear-gradient(135deg, var(--turq), var(--aqua)); color: var(--dark); }
.duke-card h3 { font-family: 'Bungee', cursive; font-size: 1.3rem; margin-bottom: 0.5rem; }
.duke-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.duke-item {
  background: white;
  border: 2px solid var(--dark);
  border-radius: 14px;
  padding: 0.9rem;
  text-align: center;
}
.duke-emoji { font-size: 2rem; display: block; margin-bottom: 0.25rem; }
.duke-item strong { display: block; font-family: 'Bungee', cursive; font-size: 0.95rem; margin-bottom: 0.25rem; color: var(--dark); }
.duke-item p { font-size: 0.85rem; }

.leader-card { background: linear-gradient(135deg, var(--pink), var(--purple)); color: white; }
.leader-card h3 { font-family: 'Bungee', cursive; font-size: 1.3rem; margin-bottom: 0.75rem; }
.leader-list { list-style: none; display: grid; gap: 0.5rem; }
.leader-list li {
  background: rgba(255,255,255,0.2);
  border: 2px solid white;
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  font-weight: 600;
}
.leader-list li::before { content: '🐾 '; }

/* ===== MEMBERS ===== */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
}
.member-card {
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: 20px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.member-card:hover { transform: translateY(-6px) rotate(-2deg); }
.member-card.mascot { border-color: var(--orange); border-width: 4px; }
.member-emoji,
.member-avatar {
  font-size: 3rem;
  display: inline-block;
  width: 110px; height: 110px;
  line-height: 110px;
  border-radius: 50%;
  border: 4px solid var(--dark);
  margin-bottom: 0.6rem;
  overflow: hidden;
  box-shadow: 0 6px 0 rgba(0,0,0,0.15), 0 0 0 6px rgba(255,255,255,0.6);
  transition: transform 0.25s ease;
}
.member-card:hover .member-avatar { transform: scale(1.08) rotate(3deg); }
.member-avatar.pebbles-pic,
.member-avatar.cartoon-pic { padding: 0; }
.member-avatar.pebbles-pic img,
.member-avatar.cartoon-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Legacy class fallback for any old usage */
.member-emoji.pebbles-pic { padding: 0; }
.member-emoji.pebbles-pic img { width: 100%; height: 100%; object-fit: cover; }
.member-name { font-size: 1.3rem; font-weight: 700; }
.member-role { font-size: 0.9rem; opacity: 0.7; }

/* ===== CALENDAR ===== */
.calendar-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
#month-label {
  font-family: 'Bungee', cursive;
  font-size: 1.5rem;
  min-width: 220px;
  text-align: center;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  background: var(--white);
  padding: 1rem;
  border: 3px solid var(--dark);
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.cal-cell { min-width: 0; }
.cal-header {
  text-align: center;
  font-weight: 700;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}
.cal-cell {
  aspect-ratio: 1;
  border: 2px solid #e8e0d3;
  border-radius: 10px;
  padding: 4px;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  position: relative;
  min-height: 60px;
}
.cal-cell.weekend { background: var(--aqua); border-color: var(--turq); }
.cal-cell.has-event { background: var(--yellow); border-color: var(--orange); cursor: pointer; }
.cal-cell.has-event:hover { transform: scale(1.05); }
.cal-cell.empty { background: transparent; border: none; }
.cal-cell.today { box-shadow: 0 0 0 3px var(--hot); }
.cal-day-num { font-weight: 700; font-size: 0.9rem; }
.cal-event-dot {
  background: var(--hot);
  color: var(--white);
  border-radius: 8px;
  padding: 1px 4px;
  font-size: 0.65rem;
  margin-top: 2px;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

/* ===== EVENTS LIST ===== */
.upcoming-title { font-family: 'Bungee', cursive; font-size: 1.4rem; margin: 1rem 0; }
.events-list { display: grid; gap: 1rem; }
.event-card {
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: start;
  transition: transform 0.15s;
}
.event-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--dark); }
.event-date-badge {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: var(--white);
  border: 3px solid var(--dark);
  border-radius: 14px;
  padding: 0.5rem;
  text-align: center;
  min-width: 75px;
  font-weight: 700;
}
.event-date-badge .month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.event-date-badge .day { font-size: 1.8rem; line-height: 1; font-family: 'Bungee', cursive; }
.event-date-badge .weekday { font-size: 0.7rem; }
.event-info h4 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.event-info .meta { font-size: 0.9rem; opacity: 0.8; margin-bottom: 0.3rem; }
.event-info .meta-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.chip {
  background: var(--lime);
  border: 2px solid var(--dark);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.chip.member { background: var(--aqua); }
.chip.equip { background: var(--yellow); }
.chip.notes { background: var(--pink); color: white; max-width: 100%; }
.event-delete {
  background: var(--hot);
  color: white;
  border: 2px solid var(--dark);
  border-radius: 10px;
  padding: 0.35rem 0.6rem;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--dark);
}
.event-delete:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--dark); }

/* ===== FORM ===== */
.event-form {
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 1rem;
}
.event-form label { display: grid; gap: 0.4rem; font-weight: 600; }
.event-form input, .event-form select, .event-form textarea {
  font-family: 'Fredoka', sans-serif;
  border: 3px solid var(--dark);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  background: var(--cream);
  outline: none;
  transition: box-shadow 0.15s;
}
.event-form input:focus, .event-form select:focus, .event-form textarea:focus {
  box-shadow: 0 0 0 3px var(--turq);
  background: var(--white);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.member-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--cream);
  border: 2px solid var(--dark);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
  user-select: none;
  transition: all 0.15s;
}
.member-check input { display: none; }
.member-check.checked { background: var(--turq); color: white; transform: scale(1.05); }
#form-msg { font-weight: 600; text-align: center; min-height: 1.2em; }
.msg-success { color: #1a9c4a; }
.msg-error { color: #d63031; }

/* ===== ACTIVITIES ===== */
.activity-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.filter-btn {
  background: var(--white);
  border: 2px solid var(--dark);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--dark);
}
.filter-btn.active { background: var(--pink); color: white; }
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.activity-card {
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: 18px;
  padding: 1.25rem 0.75rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
  cursor: pointer;
}
.activity-card:hover { transform: translate(-3px,-3px) rotate(-2deg); box-shadow: 6px 6px 0 var(--dark); }
.activity-card .emoji { font-size: 2.5rem; display: block; margin-bottom: 0.25rem; }
.activity-card .name { font-weight: 600; font-size: 0.95rem; }
.activity-card .cat {
  display: inline-block;
  font-size: 0.7rem;
  margin-top: 0.4rem;
  background: var(--lime);
  border: 2px solid var(--dark);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-weight: 600;
}
.activity-card[data-cat="Wheels"]    { background: linear-gradient(180deg, white 60%, var(--orange)); }
.activity-card[data-cat="Water"]     { background: linear-gradient(180deg, white 60%, var(--turq)); }
.activity-card[data-cat="Adventure"] { background: linear-gradient(180deg, white 60%, var(--lime)); }
.activity-card[data-cat="Skills"]    { background: linear-gradient(180deg, white 60%, var(--yellow)); }
.activity-card[data-cat="Fun"]       { background: linear-gradient(180deg, white 60%, var(--pink)); }

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--dark);
  color: var(--cream);
  font-weight: 500;
}
.footer-pebbles { margin-top: 0.5rem; color: var(--yellow); font-weight: 700; }

/* ===== PEBBLES CHAT WIDGET ===== */
.pebbles-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--white);
  border: 4px solid var(--dark);
  border-radius: 50%;
  width: 80px; height: 80px;
  padding: 0;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  animation: bounce-in 2s ease-in-out infinite;
}
.pebbles-fab img {
  width: 70px; height: 70px;
  border-radius: 50%;
  object-fit: cover;
}
.pebbles-fab:hover { transform: scale(1.1); animation-play-state: paused; }
.pebbles-fab-badge {
  position: absolute;
  top: -8px; right: -10px;
  background: var(--hot);
  color: white;
  border: 2px solid var(--dark);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}
@keyframes bounce-in {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.pebbles-chat {
  box-sizing: border-box;
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 1001;
  width: 540px;
  max-width: calc(100vw - 32px);
  height: min(760px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  background: var(--white);
  border: 4px solid var(--dark);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slide-up 0.3s ease-out;
}
.pebbles-chat.is-expanded {
  top: 24px;
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(960px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  height: calc(100dvh - 48px);
  max-height: calc(100dvh - 48px);
  transform: translateX(-50%);
  animation: none;
}
@keyframes slide-up {
  from { opacity: 0; }
  to { opacity: 1; }
}
.pebbles-chat-header {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  border-bottom: 3px solid var(--dark);
  flex: 0 0 auto;
  min-height: 72px;
}
.pebbles-chat-header img {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid white;
  object-fit: cover;
}
.pebbles-chat-header h4 { font-family: 'Bungee', cursive; font-size: 1.2rem; letter-spacing: 1px; }
.pebbles-chat-header span { font-size: 0.9rem; opacity: 1; }
.pebbles-chat-title { flex: 1; min-width: 0; }
.pebbles-header-actions { display: flex; align-items: center; gap: 0.5rem; flex: 0 0 auto; }
#pebbles-expand,
#pebbles-close {
  background: var(--dark);
  color: white;
  border: 2px solid white;
  min-width: 44px;
  min-height: 44px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  flex: 0 0 auto;
}
#pebbles-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
}
#pebbles-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.pebbles-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 1.15rem;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  scrollbar-gutter: stable;
}
.bubble {
  max-width: min(88%, 720px);
  padding: 0.9rem 1.05rem;
  border: 2px solid var(--dark);
  border-radius: 16px;
  font-size: 1.125rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
  box-shadow: 2px 2px 0 var(--dark);
}
.bubble.user {
  align-self: flex-end;
  background: var(--turq);
  color: var(--dark);
  border-bottom-right-radius: 4px;
}
.bubble.assistant {
  align-self: flex-start;
  background: white;
  border-bottom-left-radius: 4px;
}
.bubble.assistant.thinking { font-style: italic; opacity: 0.7; }
.bubble strong { font-weight: 700; }
.pebbles-quick {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  background: var(--white);
  border-top: 2px solid var(--dark);
  overflow-x: hidden;
  flex-wrap: wrap;
  align-content: flex-start;
  flex: 0 0 auto;
}
.pebbles-quick button {
  flex: 0 0 auto;
  background: var(--lime);
  border: 2px solid var(--dark);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.45rem 0.75rem;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.pebbles-quick button:hover { background: var(--yellow); }
.pebbles-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--white);
  border-top: 2px solid var(--dark);
  flex: 0 0 auto;
  min-height: 68px;
}
.pebbles-form select {
  font-family: 'Fredoka', sans-serif;
  border: 2px solid var(--dark);
  border-radius: 10px;
  padding: 0.5rem 0.4rem;
  background: var(--cream);
  font-weight: 600;
  font-size: 0.85rem;
}
.pebbles-form input {
  flex: 1;
  min-width: 0;
  font-family: 'Fredoka', sans-serif;
  border: 2px solid var(--dark);
  border-radius: 10px;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  background: var(--cream);
  outline: none;
  font-size: 1.0625rem;
}
.pebbles-form input:focus { background: white; box-shadow: 0 0 0 3px #0969da; }
.pebbles-form button[type="submit"] {
  background: var(--pink);
  color: white;
  border: 2px solid var(--dark);
  border-radius: 10px;
  min-width: 52px;
  min-height: 48px;
  padding: 0 0.9rem;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--dark);
}
.pebbles-chat button:focus-visible,
.pebbles-chat input:focus-visible {
  outline: 3px solid #0969da;
  outline-offset: 3px;
}
.pebbles-retry {
  margin-top: 0.5rem;
  border: 2px solid var(--dark);
  border-radius: 999px;
  background: var(--yellow);
  padding: 0.35rem 0.8rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* ===== UTILITIES ===== */
.loading { text-align: center; padding: 2rem; opacity: 0.6; font-weight: 500; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: auto 1fr; }
  .event-delete { grid-column: 2; justify-self: end; }
  .logo { width: 140px; height: 140px; }
  .hero-content { padding: 1.75rem 1.25rem; }
  .cal-cell { font-size: 0.7rem; min-height: 45px; }
  .pebbles-chat {
    inset: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border-width: 0;
  }
  .pebbles-chat.is-expanded {
    inset: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    transform: none;
  }
  #pebbles-expand { display: none; }
  .pebbles-chat-header { min-height: 68px; padding: 0.6rem 0.75rem; }
  .pebbles-messages { padding: 0.9rem; }
  .bubble { max-width: 92%; font-size: 1.0625rem; line-height: 1.5; }
  .pebbles-quick { gap: 0.35rem; padding: 0.5rem; }
  .pebbles-quick button { min-height: 44px; font-size: 0.875rem; padding: 0.4rem 0.65rem; }
  .pebbles-form { min-height: 66px; padding: 0.65rem; padding-bottom: max(0.65rem, env(safe-area-inset-bottom)); }
  .pebbles-fab { width: 70px; height: 70px; bottom: 12px; right: 12px; }
  .pebbles-fab img { width: 60px; height: 60px; }
  .logout-btn { top: 0.5rem; right: 0.5rem; font-size: 0.85rem; padding: 0.35rem 0.7rem; }
}

/* ===== TOP NAV ===== */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,248,231,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--dark);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.topnav-logo {
  display: flex; align-items: center; gap: 0.4rem;
  text-decoration: none; color: var(--dark);
  font-family: 'Bungee', cursive;
  font-size: 1rem;
}
.topnav-logo img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--dark); }
.topnav-links {
  flex: 1;
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  overflow-x: auto;
  flex-wrap: nowrap;
}
.topnav-links a {
  background: var(--white);
  border: 2px solid var(--dark);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--dark);
  white-space: nowrap;
  box-shadow: 2px 2px 0 var(--dark);
}
.topnav-links a:hover { background: var(--yellow); transform: translate(-1px,-1px); }
.topnav .logout-btn {
  position: static;
  font-size: 1rem;
  padding: 0.35rem 0.6rem;
  flex: 0 0 auto;
}

/* ===== TEAM RULE / STORY RULE VARIANTS ===== */
.values-card.team-rule { background: linear-gradient(135deg, var(--turq), var(--purple)); color: white; }
.values-card.story-rule { background: linear-gradient(135deg, var(--pink), var(--orange)); color: white; }
.values-card.egalitarian-rule {
  background: linear-gradient(135deg, var(--lime), var(--turq), var(--purple));
  color: white;
  border: 4px solid var(--yellow);
  box-shadow: 0 8px 32px rgba(160, 108, 213, 0.3);
}
.values-card.egalitarian-rule h3 { font-size: 1.6rem; }
.quote-credit {
  text-align: right;
  font-style: italic;
  margin-top: 0.5rem;
  opacity: 0.95;
  font-weight: 700;
}

.duke-link { margin-top: 1rem; text-align: center; }
.duke-link a { color: var(--dark); font-weight: 700; text-decoration: underline; }

/* ===== MERCH SECTION ===== */
.leader-explainer {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  border: 3px solid var(--dark);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  color: var(--dark);
}
.leader-explainer h3 { font-family: 'Bungee', cursive; font-size: 1.2rem; margin-bottom: 0.5rem; }
.leader-explainer p { font-weight: 500; line-height: 1.5; }

.rotation-display {
  background: white;
  border: 3px solid var(--dark);
  border-radius: 16px;
  padding: 1rem;
  margin-top: 1rem;
}
.rotation-display h4 {
  font-family: 'Bungee', cursive;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.rotation-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.rotation-pill {
  background: var(--cream);
  border: 2px solid var(--dark);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.rotation-pill.next-up { background: var(--lime); animation: pulse 2s infinite; }
.rotation-pill .count { color: var(--hot); margin-left: 0.3rem; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.merch-card {
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: 22px;
  padding: 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}
.merch-card:hover { transform: translate(-3px,-3px) rotate(-1deg); box-shadow: 6px 6px 0 var(--dark); }
.merch-card.leader { border-color: var(--orange); border-width: 4px; background: linear-gradient(180deg, white 70%, var(--yellow)); }
.merch-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid var(--dark);
}
.merch-card h4 { font-family: 'Bungee', cursive; font-size: 1.1rem; margin: 0.6rem 0 0.3rem; }
.merch-card p { font-size: 0.9rem; line-height: 1.4; }

.merch-howto {
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.merch-howto h3 { font-family: 'Bungee', cursive; font-size: 1.2rem; margin-bottom: 0.5rem; }
.merch-howto ul { padding-left: 1.25rem; margin: 0.5rem 0; }
.merch-howto li { margin: 0.3rem 0; }
.pup-tip {
  margin-top: 1rem;
  background: var(--lime);
  border: 2px solid var(--dark);
  border-radius: 12px;
  padding: 0.75rem;
  font-weight: 500;
}

/* ===== AWARDS SECTION ===== */
.awards-howto {
  background: linear-gradient(135deg, var(--lime), var(--turq));
  border: 3px solid var(--dark);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.awards-howto h3 { font-family: 'Bungee', cursive; font-size: 1.2rem; margin-bottom: 0.5rem; }

.badges-display {
  background: white;
  border: 3px solid var(--dark);
  border-radius: 22px;
  padding: 1rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  text-align: center;
}
.badges-sheet {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.award-form-wrap {
  background: white;
  border: 3px solid var(--dark);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.award-form-wrap h3 { font-family: 'Bungee', cursive; font-size: 1.2rem; margin-bottom: 1rem; }
.award-form { display: grid; gap: 1rem; }
.award-form label { display: grid; gap: 0.4rem; font-weight: 600; }
.award-form input, .award-form select, .award-form textarea {
  font-family: 'Fredoka', sans-serif;
  border: 3px solid var(--dark);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  background: var(--cream);
  outline: none;
}
.award-form input:focus, .award-form select:focus, .award-form textarea:focus {
  box-shadow: 0 0 0 3px var(--turq);
  background: white;
}
#awd-msg { font-weight: 600; text-align: center; min-height: 1.2em; }

.awards-list-title { font-family: 'Bungee', cursive; font-size: 1.3rem; margin: 1rem 0; }

.awards-by-member {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.member-awards-card {
  background: white;
  border: 3px solid var(--dark);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.member-awards-card h4 {
  font-family: 'Bungee', cursive;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  text-align: center;
}
.award-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--cream);
  border: 2px solid var(--dark);
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  font-weight: 600;
  font-size: 0.85rem;
  margin: 0.2rem;
  position: relative;
}
.award-list-item {
  display: flex;
  align-items: start;
  gap: 0.5rem;
  padding: 0.5rem;
  margin: 0.25rem 0;
  border: 2px solid var(--dark);
  border-radius: 10px;
  background: var(--cream);
  font-size: 0.85rem;
}
.award-list-item .award-emoji { font-size: 1.5rem; flex: 0 0 auto; }
.award-list-item strong { display: block; }
.award-list-item .by { opacity: 0.7; font-size: 0.75rem; }
.award-list-item button {
  margin-left: auto;
  background: var(--hot);
  color: white;
  border: 2px solid var(--dark);
  border-radius: 8px;
  padding: 0.15rem 0.4rem;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ===== GALLERY ===== */
.gallery-upload {
  background: white;
  border: 3px solid var(--dark);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.gallery-upload h3 { font-family: 'Bungee', cursive; font-size: 1.2rem; margin-bottom: 1rem; }
.gallery-form { display: grid; gap: 1rem; }
.gallery-form label { display: grid; gap: 0.4rem; font-weight: 600; }
.gallery-form input, .gallery-form select {
  font-family: 'Fredoka', sans-serif;
  border: 3px solid var(--dark);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  background: var(--cream);
  outline: none;
}
.gallery-form input[type="file"] { background: white; padding: 0.5rem; }
#gal-msg { font-weight: 600; text-align: center; min-height: 1.2em; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-item {
  background: white;
  border: 3px solid var(--dark);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
  position: relative;
}
.gallery-item:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--dark); }
.gallery-item img, .gallery-item video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--dark);
}
.gallery-caption {
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
}
.gallery-caption .by { opacity: 0.7; font-size: 0.75rem; margin-top: 0.2rem; }
.gallery-item .delete {
  position: absolute;
  top: 6px; right: 6px;
  background: var(--hot);
  color: white;
  border: 2px solid var(--dark);
  border-radius: 50%;
  width: 28px; height: 28px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
}

/* ===== CONCERTS ===== */
.concert-form-wrap {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white;
  border: 3px solid var(--dark);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.concert-form-wrap h3 { font-family: 'Bungee', cursive; font-size: 1.2rem; margin-bottom: 1rem; }
.concert-form { display: grid; gap: 1rem; }
.concert-form label { display: grid; gap: 0.4rem; font-weight: 600; }
.concert-form input {
  font-family: 'Fredoka', sans-serif;
  border: 3px solid var(--dark);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  background: var(--cream);
  outline: none;
  color: var(--dark);
}
.concert-form-wrap .pup-tip { background: rgba(255,255,255,0.95); color: var(--dark); }
#con-msg { font-weight: 600; text-align: center; min-height: 1.2em; }

.concerts-list { display: grid; gap: 1rem; }
.concert-card {
  background: white;
  border: 3px solid var(--dark);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}
.concert-emoji {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 3px solid var(--dark);
  display: flex; align-items: center; justify-content: center;
}
.concert-info h4 { font-size: 1.2rem; font-family: 'Bungee', cursive; }
.concert-info .tour { font-weight: 600; font-size: 0.9rem; opacity: 0.85; }
.concert-info .where { font-size: 0.9rem; opacity: 0.8; }
.concert-info .notes { font-size: 0.8rem; font-style: italic; margin-top: 0.3rem; }
.concert-interested {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.4rem;
}
.interest-chip {
  background: var(--lime);
  border: 2px solid var(--dark);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.interest-chip.in { background: var(--turq); color: white; }
.concert-delete {
  background: var(--hot);
  color: white;
  border: 2px solid var(--dark);
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--dark);
}

/* ===== EVENT CARD LEADER BADGE ===== */
.leader-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  border: 2px solid var(--dark);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.3rem;
  box-shadow: 1px 1px 0 var(--dark);
}
.leader-badge button {
  background: white;
  border: 1px solid var(--dark);
  border-radius: 6px;
  padding: 0 0.3rem;
  font-size: 0.7rem;
  cursor: pointer;
  margin-left: 0.3rem;
}

@media (max-width: 640px) {
  /* 📱 Stack topnav: row 1 = logo + Start here + logout, row 2 = scrolling links */
  .topnav {
    flex-wrap: wrap;
    padding: 0.5rem 0.7rem;
    gap: 0.4rem;
    row-gap: 0.5rem;
  }
  .topnav-logo { order: 1; flex: 0 0 auto; }
  .topnav-logo span { display: none; }
  .take-tour-btn { order: 2; margin-left: auto; margin-right: 0; }
  .topnav .logout-btn { order: 3; flex: 0 0 auto; }
  .topnav-links {
    order: 4;
    flex: 1 0 100%;
    justify-content: flex-start;
    gap: 0.35rem;
    padding-bottom: 0.2rem;
    -webkit-overflow-scrolling: touch;
  }
  .topnav-links a { padding: 0.3rem 0.7rem; font-size: 0.8rem; }
  .merch-grid { grid-template-columns: 1fr 1fr; }
  .merch-card h4 { font-size: 0.95rem; }
  .concert-card { grid-template-columns: 1fr; }
  .concert-delete { justify-self: end; }
  /* Section padding tighter on mobile */
  .section { padding: 2rem 1rem; }
  .section-title { font-size: 1.5rem; }
  /* Avatars slightly smaller on phones so 5 fit nicely */
  .member-avatar, .member-emoji { width: 88px; height: 88px; line-height: 88px; font-size: 2.4rem; border-width: 3px; }
  .members-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.8rem; }
  /* Hero text and image tighter */
  .hero-group { max-width: 100%; }
  .tagline { font-size: 1rem; }
  /* Buttons full-width-ish on tiny screens */
  .btn-big { width: 100%; }
  /* Form inputs comfortable size for thumbs */
  input, select, textarea { font-size: 16px; } /* 16px prevents iOS zoom-on-focus */
}
/* Extra-small phones */
@media (max-width: 380px) {
  .merch-grid { grid-template-columns: 1fr; }
  .member-avatar, .member-emoji { width: 78px; height: 78px; line-height: 78px; }
}

/* ===== FREE CLUB BADGE (hero) ===== */
.free-club-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem auto 1.25rem;
  padding: 0.7rem 1.25rem;
  background: linear-gradient(135deg, #FFE66D 0%, #FFD3A5 50%, #FFB6E1 100%);
  border: 3px solid var(--dark);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--dark);
  font-weight: 700;
  text-align: left;
  max-width: 380px;
  animation: pulse-glow 3s ease-in-out infinite;
}
.free-badge-icon { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.free-club-badge strong { display: block; font-family: 'Bungee', cursive; font-size: 0.95rem; letter-spacing: 1px; color: var(--dark); }
.free-badge-sub { display: block; font-size: 0.8rem; font-weight: 500; color: #5b3a00; line-height: 1.2; margin-top: 2px; }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 4px 4px 0 var(--dark); transform: scale(1); }
  50% { box-shadow: 4px 4px 0 var(--dark), 0 0 30px rgba(255, 230, 109, 0.7); transform: scale(1.02); }
}

/* ===== OUR FREE CLUB PROMISE values card ===== */
.values-card.carla-promise {
  background: linear-gradient(135deg, #fffdf0 0%, #fff5e6 50%, #fff0f5 100%);
  border-color: #d4a017;
  border-width: 4px;
  position: relative;
  overflow: hidden;
}
.values-card.carla-promise::before {
  content: '💛';
  position: absolute;
  top: -10px; right: -10px;
  font-size: 5rem;
  opacity: 0.15;
  transform: rotate(15deg);
  pointer-events: none;
}
.values-card.carla-promise h3 { color: #8B4513; }
.promise-explainer {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-style: italic;
  color: #555;
  line-height: 1.5;
  border-top: 2px dashed rgba(0,0,0,0.15);
  padding-top: 0.75rem;
}

/* ===== FORM SECTIONS (fieldset) ===== */
.event-form .form-section {
  border: 2px solid var(--dark);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin: 0 0 1rem 0;
  background: #fffef8;
}
.event-form .form-section legend {
  font-family: 'Bungee', cursive;
  font-size: 0.95rem;
  background: var(--yellow);
  border: 2px solid var(--dark);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  letter-spacing: 0.5px;
}
.event-form .field-hint {
  font-size: 0.85rem;
  color: #666;
  margin: -0.1rem 0 0.6rem;
  font-style: italic;
}

/* ===== FORM BANNERS ===== */
.form-banner {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 2px solid var(--dark);
  font-size: 0.95rem;
  line-height: 1.4;
}
.form-banner.carla-banner {
  background: linear-gradient(90deg, #FFE66D 0%, #FFB6E1 100%);
  box-shadow: 3px 3px 0 var(--dark);
}

/* ===== FLYER PREVIEW (in form) ===== */
.flyer-preview-wrap {
  margin-top: 0.6rem;
  padding: 0.5rem;
  background: white;
  border: 3px dashed var(--turq);
  border-radius: 12px;
  text-align: center;
}
.flyer-preview-wrap img {
  max-width: 100%;
  max-height: 320px;
  border-radius: 8px;
  display: block;
  margin: 0 auto 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== STANDARD DAY PACK (in form) ===== */
.standard-pack-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #fef3f9 100%);
  border: 2px solid var(--turq);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.8rem;
}
.standard-pack-card h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--dark);
}
.auto-included { font-size: 0.8rem; color: #008b8b; font-weight: 500; font-style: italic; }
.std-pack-list, .day-pack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pack-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  background: white;
  border: 1.5px solid var(--dark);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

/* ===== EVENT CARD: NEW FIELDS ===== */
.event-flyer-wrap {
  margin: 0.6rem 0;
  text-align: center;
}
.event-flyer-img {
  max-width: 100%;
  max-height: 260px;
  border-radius: 12px;
  border: 3px solid var(--dark);
  box-shadow: 4px 4px 0 var(--dark);
  cursor: zoom-in;
  transition: transform 0.2s;
  display: inline-block;
}
.event-flyer-img:hover { transform: scale(1.02) rotate(-1deg); }
.event-flyer-cap {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-style: italic;
  color: #666;
}

/* Cost chip — special look */
.chip.cost {
  background: linear-gradient(90deg, #FFE66D, #FFB6E1);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0.35rem 0.7rem;
}
.cost-strike { text-decoration: line-through; opacity: 0.7; }
.cost-carla { font-weight: 700; color: #8B4513; }
.cost-notes { font-size: 0.78rem; opacity: 0.75; font-style: italic; }

/* Event detail rows (transport, permission, weather, notes) */
.event-detail {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.6);
  border-left: 4px solid;
  border-radius: 6px;
  font-size: 0.92rem;
  line-height: 1.4;
}
.event-detail.transport-detail { border-left-color: #4ECDC4; }
.event-detail.permission-detail { border-left-color: #FF6B9D; }
.event-detail.weather-detail { border-left-color: #FFB347; }
.event-detail.notes-detail { border-left-color: #B4F8C8; }

/* Day pack collapsible inside event card */
.day-pack-details {
  margin-top: 0.6rem;
  background: #fffef0;
  border: 2px solid var(--dark);
  border-radius: 10px;
  padding: 0.4rem 0.75rem;
}
.day-pack-details summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.2rem 0;
  font-size: 0.92rem;
  user-select: none;
}
.day-pack-details summary:hover { color: var(--pink); }
.day-pack-details[open] .day-pack-items { margin-top: 0.6rem; }

/* ===== LIGHTBOX (for flyers) ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: fixed;
  top: 1rem; right: 1rem;
  background: white;
  border: 3px solid var(--dark);
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--dark);
}

/* Mobile tweaks for new bits */
@media (max-width: 640px) {
  .free-club-badge { font-size: 0.85rem; gap: 0.5rem; padding: 0.55rem 1rem; }
  .free-badge-icon { font-size: 1.5rem; }
  .event-form .form-section { padding: 0.85rem 0.85rem; }
  .event-form .form-section legend { font-size: 0.85rem; padding: 0.2rem 0.7rem; }
  .event-flyer-img { max-height: 200px; }
}

/* ============ SLOGAN OF THE WEEK BANNER ============ */
.slogan-of-week {
  background: linear-gradient(90deg, #fff4d6 0%, #ffe7c8 50%, #ffd6e7 100%);
  border-bottom: 3px solid #f4c542;
  padding: 0.85rem 1rem;
  text-align: center;
  position: sticky;
  top: 56px;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(244, 197, 66, 0.18);
  animation: sotwFadeIn 0.6s ease-out;
}
.slogan-of-week.starred {
  background: linear-gradient(90deg, #fff4d6 0%, #ffd86b 50%, #ffd6e7 100%);
  border-bottom-color: #e0a800;
}
@keyframes sotwFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sotw-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}
.sotw-label {
  font-weight: 800;
  color: #8a5a00;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  text-transform: uppercase;
  background: rgba(255,255,255,0.6);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.sotw-text {
  font-size: 1.1rem;
  color: #4a2c00;
  font-weight: 600;
  font-style: italic;
}
.sotw-text em { font-style: italic; }
.sotw-star { color: #e0a800; }
.sotw-category {
  font-size: 0.8rem;
  color: #8a5a00;
  background: rgba(255,255,255,0.6);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
}

/* ============ FAB 5 WAYS SECTION ============ */
.fab5-ways-section { background: linear-gradient(180deg, #fff8e1 0%, #fff 100%); }
.fab5-ways-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.slogan-filter {
  border: 2px solid #f4c542;
  background: white;
  color: #8a5a00;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.slogan-filter:hover { background: #fff4d6; transform: translateY(-1px); }
.slogan-filter.active {
  background: linear-gradient(135deg, #f4c542, #e0a800);
  color: white;
  border-color: #e0a800;
  box-shadow: 0 3px 10px rgba(224, 168, 0, 0.35);
}
.fab5-ways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.slogan-card {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 1.5rem 1.2rem 1.1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  border: 2px solid #f0e6d0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.slogan-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.slogan-card.starred {
  background: linear-gradient(160deg, #fffaf0 0%, #fff4d6 100%);
  border: 2px solid #f4c542;
  box-shadow: 0 6px 18px rgba(244, 197, 66, 0.25);
}
.slogan-star-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f4c542, #e0a800);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(224, 168, 0, 0.4);
  white-space: nowrap;
}
.slogan-emoji { font-size: 2.2rem; margin-bottom: 0.6rem; line-height: 1; }
.slogan-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: #3a2a1a;
  font-style: italic;
  line-height: 1.4;
  margin: 0 0 0.6rem 0;
  quotes: none;
}
.slogan-cat {
  font-size: 0.78rem;
  color: #7a6a5a;
  background: #f5efe2;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
}
.slogan-card.starred .slogan-cat { background: rgba(244, 197, 66, 0.2); color: #6a4500; }
/* Category color accents */
.slogan-card.cat-kindness { border-top: 4px solid #ff8fa3; }
.slogan-card.cat-team { border-top: 4px solid #5ec3ff; }
.slogan-card.cat-leader { border-top: 4px solid #f4c542; }
.slogan-card.cat-self-control { border-top: 4px solid #b08fff; }
.slogan-card.cat-growth { border-top: 4px solid #6dd58c; }
.slogan-card.cat-self { border-top: 4px solid #ffb86b; }
.slogan-card.cat-fun { border-top: 4px solid #ff6fc7; }

/* ============ PARENTS JOINING BADGE on event cards ============ */
.parents-joining-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  margin: 0.6rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  border-left: 4px solid;
}
.parents-joining-badge.pj-yes      { background: #e7f7ee; color: #1e5a2e; border-color: #34a85a; }
.parents-joining-badge.pj-no       { background: #f0f0f0; color: #444;    border-color: #888; }
.parents-joining-badge.pj-maybe    { background: #fff5e0; color: #7a5400; border-color: #f4c542; }
.parents-joining-badge.pj-required { background: #fde7e7; color: #842029; border-color: #dc3545; animation: pulseRequired 2s ease-in-out infinite; }
@keyframes pulseRequired {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
  50%      { box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15); }
}
.pj-icon { font-size: 1.05rem; }
.pj-note { font-weight: 500; color: inherit; opacity: 0.85; font-size: 0.85rem; }

/* ============ PARENTS FAQ ACCORDION ============ */
.parents-faq-section { background: linear-gradient(180deg, #eef7ff 0%, #fff 100%); }
.parents-faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.faq-item {
  background: white;
  border-radius: 12px;
  border: 2px solid #d6e9ff;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item[open] {
  box-shadow: 0 4px 14px rgba(94, 195, 255, 0.18);
  border-color: #5ec3ff;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: #1a4a7a;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q-icon { font-size: 1.3rem; flex-shrink: 0; }
.faq-q-text { flex: 1; font-size: 1rem; }
.faq-q-chev {
  font-size: 1.1rem;
  color: #5ec3ff;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.faq-item[open] .faq-q-chev { transform: rotate(180deg); }
.faq-answer {
  padding: 0 1.2rem 1rem;
  color: #3a4a5a;
  line-height: 1.6;
  font-size: 0.96rem;
  border-top: 1px solid #eef7ff;
  margin-top: 0.2rem;
  padding-top: 0.9rem;
}

/* ============ PARENTS SUGGESTION BOX ============ */
.suggestion-box-section { background: linear-gradient(180deg, #fff0f6 0%, #fff 100%); }
.suggestion-form {
  max-width: 720px;
  margin: 0 auto 2rem;
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(255, 111, 199, 0.12);
  border: 2px solid #ffd6e7;
}
.suggestion-form label { display: block; margin-bottom: 0.8rem; }
.suggestion-form label > span {
  display: block;
  font-weight: 600;
  color: #6a2a4a;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}
.suggestion-form input,
.suggestion-form select,
.suggestion-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 2px solid #ffd6e7;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fffbfd;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.suggestion-form input:focus,
.suggestion-form select:focus,
.suggestion-form textarea:focus {
  outline: none;
  border-color: #ff6fc7;
  box-shadow: 0 0 0 3px rgba(255, 111, 199, 0.15);
}
.suggestion-list-title {
  text-align: center;
  margin: 2rem 0 1rem;
  color: #6a2a4a;
  font-size: 1.2rem;
}
.muted-small { font-size: 0.8rem; color: #8a6a7a; font-weight: 400; }
.suggestions-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.suggestion-card {
  background: white;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  border-left: 4px solid #ff6fc7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
}
.suggestion-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}
.suggestion-topic {
  background: #ffe6f1;
  color: #a8246e;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
}
.suggestion-from { color: #6a4a5a; font-weight: 600; }
.suggestion-date { color: #8a6a7a; margin-left: auto; font-size: 0.78rem; }
.suggestion-delete {
  background: none;
  border: none;
  color: #c44;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  transition: background 0.15s;
}
.suggestion-delete:hover { background: #fee; }
.suggestion-message {
  color: #3a2a3a;
  line-height: 1.55;
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ============ PACK EXPLAINER (parent-packed) ============ */
.pack-explainer {
  background: #fff8e1;
  border-left: 3px solid #f4c542;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #4a3a1a;
  margin: 0.3rem 0 0.8rem;
  line-height: 1.5;
}
.pack-explainer strong { color: #6a4500; }

/* ============ MOBILE RESPONSIVE (new sections) ============ */
@media (max-width: 680px) {
  .slogan-of-week { padding: 0.7rem 0.7rem; top: 52px; }
  .sotw-inner { gap: 0.4rem; }
  .sotw-label { font-size: 0.72rem; padding: 0.15rem 0.5rem; }
  .sotw-text { font-size: 0.95rem; }
  .sotw-category { font-size: 0.72rem; }

  .fab5-ways-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .slogan-card { padding: 1.3rem 1rem 1rem; }
  .slogan-text { font-size: 0.98rem; }
  .slogan-filter { font-size: 0.82rem; padding: 0.35rem 0.75rem; }

  .faq-item summary { padding: 0.85rem 0.95rem; }
  .faq-q-text { font-size: 0.92rem; }
  .faq-answer { padding: 0 0.95rem 0.9rem; font-size: 0.9rem; }

  .suggestion-form { padding: 1.1rem; }
  .suggestion-card { padding: 0.85rem 1rem; }
  .suggestion-head { font-size: 0.78rem; gap: 0.4rem; }
  .suggestion-date { margin-left: 0; width: 100%; }

  .parents-joining-badge { font-size: 0.82rem; padding: 0.4rem 0.7rem; }
  .pj-note { width: 100%; font-size: 0.78rem; }
}

/* ===== Family-origin gentle credit card ===== */
.values-card.family-origin-card {
  background: linear-gradient(135deg, #fff8e1 0%, #fff0f6 100%);
  border: 2px dashed #f4c542;
  text-align: center;
}
.values-card.family-origin-card h3 {
  color: #8a5a00;
  font-size: 1.1rem;
}
.family-origin-text {
  color: #5a4a2a;
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
  margin: 0;
}

/* ================== BOTTLES FOR THE CREW ================== */
.bottle-fund-section {
  background: linear-gradient(180deg, #e8fff4 0%, #fff 100%);
}
.bottle-fund-section > * + * { margin-top: 18px; }

/* HERO CARD - big eye-catching join card */
.bottle-hero-card {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: white;
  border-radius: 24px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(46, 204, 113, 0.3);
  position: relative;
  overflow: hidden;
}
.bottle-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 40%);
  pointer-events: none;
}
.bottle-hero-card > * { position: relative; z-index: 1; }
.bottle-hero-emoji {
  font-size: 3rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}
.bottle-hero-card h3 {
  font-size: 1.6rem;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.bottle-hero-text {
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0 auto 20px;
  max-width: 560px;
  opacity: 0.95;
}

.bottle-join-btn {
  display: inline-block;
  background: white;
  color: #27ae60;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: bottlePulse 2.4s ease-in-out infinite;
  max-width: 100%;
  word-break: break-word;
}
.bottle-join-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  animation-play-state: paused;
}
.bottle-join-btn strong { color: #1e8449; }
@keyframes bottlePulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(0,0,0,0.2), 0 0 0 0 rgba(255,255,255,0.6); }
  50%      { box-shadow: 0 6px 20px rgba(0,0,0,0.2), 0 0 0 14px rgba(255,255,255,0); }
}
.bottle-safe-note {
  margin: 16px 0 0;
  font-size: 0.85rem;
  opacity: 0.92;
}

/* HOW-IT-WORKS CARD */
.bottle-how-card {
  background: white;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  border: 2px solid #e8fff4;
}
.bottle-how-card h3 { margin: 0 0 16px; font-size: 1.25rem; }
.bottle-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.bottle-step {
  background: linear-gradient(135deg, #f0fff7 0%, #ffffff 100%);
  border: 2px solid #d1f5e0;
  border-radius: 14px;
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bottle-step-num {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 32px;
  height: 32px;
  background: var(--turq);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.bottle-step-icon { font-size: 2rem; line-height: 1; }
.bottle-step-body strong { display: block; font-size: 1rem; margin-bottom: 4px; color: var(--dark); }
.bottle-step-body p { margin: 0; font-size: 0.92rem; line-height: 1.4; color: #555; }

/* GOAL / PROGRESS CARD */
.bottle-goal-card {
  background: white;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  border: 2px solid #fff4d6;
}
.bottle-goal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.bottle-goal-emoji { font-size: 2.6rem; line-height: 1; }
.bottle-goal-header h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.bottle-goal-header h3 span { color: #d68910; }
.bottle-goal-desc { margin: 4px 0 0; font-size: 0.95rem; color: #666; }

.bottle-progress-wrap { margin: 14px 0; }
.bottle-progress-bar {
  width: 100%;
  height: 28px;
  background: #f0f0f0;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.08);
}
.bottle-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2ecc71, #f1c40f, #e67e22);
  background-size: 200% 100%;
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  animation: bottleShimmer 3s linear infinite;
  box-shadow: 0 0 12px rgba(46, 204, 113, 0.4);
}
@keyframes bottleShimmer {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
.bottle-progress-numbers {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.95rem;
}
.bottle-percent {
  font-weight: 800;
  color: #27ae60;
  font-size: 1.05rem;
}
.bottle-bottles-count {
  text-align: center;
  margin: 8px 0 0;
  font-size: 1rem;
  color: #555;
  font-style: italic;
}

/* SHARE CARD */
.bottle-share-card {
  background: linear-gradient(135deg, #fff8e1 0%, #fff 100%);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  border: 2px solid #ffe66d;
}
.bottle-share-card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.bottle-share-card p { margin: 0 0 14px; color: #555; font-size: 0.95rem; }
.bottle-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bottle-share-buttons .btn {
  flex: 1 1 160px;
  min-width: 0;
  text-align: center;
  text-decoration: none;
  padding: 12px 16px;
}
.bottle-copy-msg {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}
.bottle-copy-msg.success { color: #27ae60; }
.bottle-copy-msg.error { color: #c0392b; }

/* HEROES CARD */
.bottle-heroes-card {
  background: white;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  border: 2px solid #ffd6e7;
}
.bottle-heroes-card h3 { margin: 0 0 4px; font-size: 1.2rem; }
.bottle-heroes-sub { margin: 0 0 14px; color: #777; font-size: 0.92rem; }
.bottle-heroes-list { display: flex; flex-direction: column; gap: 10px; }
.bottle-hero-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fff5fa 0%, #fff 100%);
  border: 2px solid #ffd6e7;
  border-radius: 14px;
  padding: 12px 14px;
}
.bottle-hero-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.bottle-hero-body { flex: 1; min-width: 0; }
.bottle-hero-name {
  font-weight: 700;
  color: var(--dark);
  font-size: 1rem;
}
.bottle-hero-month {
  font-weight: 500;
  color: #999;
  font-size: 0.85rem;
}
.bottle-hero-note {
  margin-top: 2px;
  font-size: 0.9rem;
  color: #666;
}
.bottle-hero-remove {
  background: transparent;
  border: none;
  color: #c0392b;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.bottle-hero-remove:hover { background: #ffe5e5; }

.bottle-hero-form-wrap {
  margin-top: 14px;
  background: #fafafa;
  border-radius: 12px;
  padding: 8px 14px;
  border: 1px dashed #ddd;
}
.bottle-hero-form-wrap summary {
  cursor: pointer;
  font-weight: 600;
  padding: 6px 0;
  color: #666;
  font-size: 0.95rem;
}
.bottle-hero-form { padding: 8px 0 12px; }
.bottle-hero-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bottle-hero-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}
.bottle-hero-form label span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
}
.bottle-hero-form input {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1.5px solid #ddd;
  font-size: 0.95rem;
  font-family: inherit;
}
.bottle-hero-form input:focus { outline: none; border-color: var(--turq); }
.bottle-hero-form button { margin-top: 6px; }
.bottle-hero-form .success { color: #27ae60; margin-top: 8px; font-size: 0.9rem; }
.bottle-hero-form .error { color: #c0392b; margin-top: 8px; font-size: 0.9rem; }

/* ADMIN CARD */
.bottle-admin-card {
  background: #fafafa;
  border-radius: 14px;
  padding: 8px 18px;
  border: 1px dashed #ccc;
}
.bottle-admin-card summary {
  cursor: pointer;
  font-weight: 600;
  padding: 8px 0;
  color: #666;
  font-size: 0.95rem;
}
.bottle-admin-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 10px 0 14px;
}
.bottle-admin-body form { background: white; border-radius: 12px; padding: 14px; border: 1px solid #eee; }
.bottle-admin-body h4 { margin: 0 0 12px; font-size: 1rem; color: var(--dark); }
.bottle-admin-body .field-hint { margin: 0 0 10px; font-size: 0.85rem; color: #777; font-style: italic; }
.bottle-admin-body .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.bottle-admin-body label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bottle-admin-body label span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
}
.bottle-admin-body input {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1.5px solid #ddd;
  font-size: 0.95rem;
  font-family: inherit;
}
.bottle-admin-body input:focus { outline: none; border-color: var(--turq); }
.bottle-admin-body button { margin-top: 6px; }
.bottle-admin-body #raised-msg { margin-top: 8px; font-size: 0.9rem; font-weight: 600; }
.bottle-admin-body #raised-msg.success { color: #27ae60; }
.bottle-admin-body #raised-msg.error { color: #c0392b; }

/* Mobile responsive overrides */
@media (max-width: 680px) {
  .bottle-hero-card { padding: 22px 16px; }
  .bottle-hero-card h3 { font-size: 1.3rem; }
  .bottle-hero-emoji { font-size: 2.4rem; }
  .bottle-hero-text { font-size: 0.98rem; }
  .bottle-join-btn { padding: 14px 20px; font-size: 1rem; }
  .bottle-steps { grid-template-columns: 1fr; }
  .bottle-goal-header { flex-direction: column; text-align: center; gap: 6px; }
  .bottle-goal-emoji { font-size: 2.2rem; }
  .bottle-progress-numbers { justify-content: center; text-align: center; }
  .bottle-share-buttons .btn { flex: 1 1 100%; }
  .bottle-hero-form .form-row,
  .bottle-admin-body .form-row { grid-template-columns: 1fr; }
}

/* ================== ⚠️ ALLERGY BANNER (on event cards) ================== */
.allergy-banner {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe082 100%);
  border: 2px solid #ff9800;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.allergy-banner strong { color: #c0392b; }
.allergy-chip {
  background: #fff;
  border: 1.5px solid #ff9800;
  color: #c0392b;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ================== 📊 PARENTS' DASHBOARD ================== */
.parents-dashboard-section {
  background: linear-gradient(180deg, #f3f0ff 0%, #fff 100%);
}
.dash-intro-card {
  background: white;
  border-radius: 14px;
  padding: 16px 20px;
  border: 2px solid #e0d4ff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 16px;
}
.dash-intro-card p { margin: 0; line-height: 1.5; color: #444; }

.kid-profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.kid-profile-card {
  background: white;
  border-radius: 16px;
  border: 3px solid #e0e0e0;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.kid-profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
}
.kid-profile-emoji { font-size: 2.4rem; line-height: 1; }
.kid-profile-title { flex: 1; }
.kid-profile-title h3 { margin: 0; font-size: 1.3rem; }
.kid-profile-completeness {
  font-size: 0.8rem;
  color: #666;
  background: rgba(255,255,255,0.7);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.kid-profile-form { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.kid-profile-form label { display: flex; flex-direction: column; gap: 4px; }
.kid-profile-form label span { font-size: 0.85rem; font-weight: 600; color: #555; }
.kid-profile-form label em { color: #999; font-weight: 400; font-size: 0.78rem; font-style: italic; }
.kid-profile-form input, .kid-profile-form select {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1.5px solid #ddd;
  font-size: 0.95rem;
  font-family: inherit;
}
.kid-profile-form input:focus { outline: none; border-color: var(--turq); }
.kid-profile-form .kpf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kid-profile-form .kpf-allergy-label input { border-color: #ff9800; background: #fff8e1; }
.kid-profile-form .kpf-save { margin-top: 6px; }
.kpf-msg { font-size: 0.9rem; font-weight: 600; min-height: 1.2em; }
.kpf-msg.success { color: #27ae60; }
.kpf-msg.error { color: #c0392b; }

.dash-overview-card {
  background: white;
  border-radius: 14px;
  border: 2px dashed #c8b8ff;
  padding: 4px 18px;
  margin-top: 16px;
}
.dash-overview-card summary {
  cursor: pointer;
  padding: 10px 0;
  font-weight: 600;
  color: #555;
  font-size: 0.95rem;
}
.dash-overview-body { padding: 10px 0 16px; }
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.dash-stat {
  background: linear-gradient(135deg, #f0ebff 0%, #fff 100%);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  border: 1.5px solid #e0d4ff;
}
.dash-stat-num { display: block; font-size: 1.6rem; font-weight: 800; color: #6c5ce7; }
.dash-stat-label { display: block; font-size: 0.82rem; color: #666; margin-top: 2px; }

/* ================== 🎰 PEBBLES PICKS ================== */
.pebbles-picks-section {
  background: linear-gradient(180deg, #fff9e6 0%, #fff 100%);
}
.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.pick-btn {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--orange, #ffa500) 100%);
  color: var(--dark);
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}
.pick-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.pick-result { min-height: 30px; }
.pick-spinning {
  text-align: center;
  padding: 24px;
  font-size: 1.1rem;
  animation: pickSpin 0.6s linear infinite;
}
@keyframes pickSpin {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.pick-result-card {
  background: white;
  border-radius: 16px;
  padding: 22px;
  border: 3px solid var(--yellow);
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  animation: pickReveal 0.4s ease-out;
}
@keyframes pickReveal {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.pick-result-pick { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; color: var(--dark); }
.pick-result-woof { font-size: 1rem; color: #666; margin-bottom: 12px; }
.pick-spotify { border-radius: 12px; margin: 12px 0; }
.pick-again-btn { margin-top: 6px; }

/* ================== 🌦️ WEATHER BRAIN ================== */
.weather-brain-section {
  background: linear-gradient(180deg, #e3f2fd 0%, #fff 100%);
}
.weather-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.weather-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.weather-form label { display: flex; flex-direction: column; gap: 4px; }
.weather-form label span { font-size: 0.85rem; font-weight: 600; color: #555; }
.weather-form input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid #ddd;
  font-size: 0.95rem;
  font-family: inherit;
}
.weather-form input:focus { outline: none; border-color: var(--turq); }

.weather-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  border: 3px solid #90caf9;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.weather-card.verdict-go { border-color: #4caf50; background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%); }
.weather-card.verdict-maybe { border-color: #ff9800; background: linear-gradient(135deg, #fff3e0 0%, #fff 100%); }
.weather-card.verdict-no { border-color: #f44336; background: linear-gradient(135deg, #ffebee 0%, #fff 100%); }

.weather-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.weather-emoji { font-size: 3rem; line-height: 1; }
.weather-header h3 { margin: 0; font-size: 1.2rem; }
.weather-header p { margin: 4px 0 0; color: #666; font-size: 0.95rem; }

.weather-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.weather-stat {
  background: rgba(255,255,255,0.7);
  padding: 10px 8px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.05);
}
.weather-stat span { display: block; font-size: 0.75rem; color: #666; }
.weather-stat strong { display: block; font-size: 1.15rem; color: var(--dark); margin-top: 2px; }

.weather-verdict {
  background: rgba(255,255,255,0.85);
  padding: 14px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  color: var(--dark);
}

/* ================== 💌 INVITE / 🏆 HERO ================== */
.invite-writer-section { background: linear-gradient(180deg, #fff0f6 0%, #fff 100%); }
.hero-spotter-section { background: linear-gradient(180deg, #fffde7 0%, #fff 100%); }
.invite-helper-card {
  background: white;
  border-radius: 14px;
  padding: 18px 20px;
  text-align: center;
  border: 2px dashed #ffb6c1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.invite-helper-card p { margin: 0 0 12px; color: #555; }
.hero-spotter-section .invite-helper-card { border-color: #ffd54f; }

/* ================== 🎵 CREW PLAYLIST ================== */
.playlist-section {
  background: linear-gradient(180deg, #f3e5f5 0%, #fff 100%);
}
.playlist-tracks { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.playlist-track {
  background: white;
  border-radius: 14px;
  padding: 14px;
  border: 2px solid #ce93d8;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  position: relative;
}
.playlist-track-info { margin-bottom: 8px; padding-right: 36px; }
.playlist-track-info h4 { margin: 0; font-size: 1.05rem; }
.playlist-artist { color: #888; font-weight: 500; font-size: 0.95rem; }
.playlist-meta {
  margin-top: 4px;
  font-size: 0.82rem;
  color: #888;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.vibe-chip { background: #ce93d8; color: white; padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: 0.78rem; }
.playlist-spotify { border-radius: 12px; }
.playlist-no-embed {
  background: #fafafa;
  border: 1px dashed #ccc;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}
.playlist-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: #c0392b;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.playlist-remove:hover { background: #ffe5e5; }

.playlist-add {
  background: #fafafa;
  border-radius: 12px;
  padding: 8px 16px;
  border: 1px dashed #ccc;
}
.playlist-add summary { cursor: pointer; font-weight: 600; padding: 6px 0; color: #666; }
.playlist-form { padding: 10px 0 12px; display: flex; flex-direction: column; gap: 10px; }
.playlist-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.playlist-form label { display: flex; flex-direction: column; gap: 4px; }
.playlist-form label span { font-size: 0.85rem; font-weight: 600; color: #555; }
.playlist-form label em { color: #999; font-weight: 400; font-style: italic; font-size: 0.78rem; }
.playlist-form input, .playlist-form select {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1.5px solid #ddd;
  font-size: 0.95rem;
  font-family: inherit;
}
.playlist-form input:focus, .playlist-form select:focus { outline: none; border-color: var(--turq); }
.playlist-form .field-hint { margin: 0; color: #888; font-size: 0.82rem; font-style: italic; }
#playlist-msg, #watch-msg { font-size: 0.9rem; font-weight: 600; }
#playlist-msg.success, #watch-msg.success { color: #27ae60; }
#playlist-msg.error, #watch-msg.error { color: #c0392b; }

/* ================== 🎟️ CONCERT WATCH ================== */
.concert-watch-section { background: linear-gradient(180deg, #fce4ec 0%, #fff 100%); }
.concert-watches-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.concert-watch-card {
  background: white;
  border-radius: 14px;
  padding: 16px 18px;
  border: 2px solid #f06292;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  position: relative;
}
.concert-watch-card.status-watching { border-color: #ba68c8; }
.concert-watch-card.status-announced { border-color: #ff9800; background: linear-gradient(135deg, #fff8e1 0%, #fff 100%); }
.concert-watch-card.status-tickets {
  border-color: #f44336;
  background: linear-gradient(135deg, #ffcdd2 0%, #fff 100%);
  animation: ticketPulse 1.5s ease-in-out infinite;
}
@keyframes ticketPulse {
  0%, 100% { box-shadow: 0 3px 10px rgba(244, 67, 54, 0.3); }
  50% { box-shadow: 0 6px 22px rgba(244, 67, 54, 0.55); }
}
.concert-watch-card.status-past { opacity: 0.6; }

.cw-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.cw-header h4 { margin: 0; font-size: 1.1rem; }
.cw-status { font-size: 0.85rem; font-weight: 600; color: #666; }
.cw-notes { margin: 8px 0 0; color: #555; font-size: 0.92rem; }
.cw-remove {
  background: transparent;
  border: 1px solid #ddd;
  color: #999;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  margin-top: 8px;
}
.cw-remove:hover { background: #f5f5f5; color: #c0392b; border-color: #c0392b; }

.concert-watch-add {
  background: #fafafa;
  border-radius: 12px;
  padding: 8px 16px;
  border: 1px dashed #ccc;
}
.concert-watch-add summary { cursor: pointer; font-weight: 600; padding: 6px 0; color: #666; }
.concert-watch-form { padding: 10px 0 12px; display: flex; flex-direction: column; gap: 10px; }
.concert-watch-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.concert-watch-form label { display: flex; flex-direction: column; gap: 4px; }
.concert-watch-form label span { font-size: 0.85rem; font-weight: 600; color: #555; }
.concert-watch-form input, .concert-watch-form select {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1.5px solid #ddd;
  font-size: 0.95rem;
  font-family: inherit;
}
.concert-watch-form input:focus, .concert-watch-form select:focus { outline: none; border-color: var(--turq); }

/* ================== Mobile responsive ================== */
@media (max-width: 680px) {
  .kid-profile-form .kpf-row,
  .playlist-form .form-row,
  .concert-watch-form .form-row,
  .weather-form .form-row { grid-template-columns: 1fr; }
  .kid-profiles-grid { grid-template-columns: 1fr; }
  .picks-grid { grid-template-columns: 1fr 1fr; }
  .weather-stats { grid-template-columns: 1fr 1fr; }
  .pick-result-pick { font-size: 1.4rem; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
}

/* ============================================================ */
/* ===========  WAVE 2 + 3 — 8 NEW FEATURES  ================== */
/* ============================================================ */

/* ------------- 🎂 BIRTHDAY BRAIN ------------- */
.birthday-brain-section { background: linear-gradient(135deg, #fff0f5 0%, #fff 60%); }
.birthday-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 14px; }
.birthday-card {
  background: white; border: 3px solid #FFB6C1; border-radius: 16px;
  padding: 16px; box-shadow: 0 4px 12px rgba(255, 105, 180, 0.12);
  transition: transform 0.2s;
}
.birthday-card:hover { transform: translateY(-2px); }
.birthday-card.birthday-today {
  background: linear-gradient(135deg, #ffeb99, #ffd1dc);
  border-color: #FFD700; animation: birthdayPulse 1.8s ease-in-out infinite;
}
.birthday-card.birthday-soon {
  background: linear-gradient(135deg, #fff8dc, #ffeef5);
  border-color: #FFA500;
}
@keyframes birthdayPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4); }
  50% { box-shadow: 0 8px 24px rgba(255, 105, 180, 0.6); }
}
.birthday-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.birthday-emoji { font-size: 2.4rem; }
.birthday-header h3 { margin: 0; font-size: 1.1rem; color: #333; }
.birthday-when { margin: 2px 0 0; font-weight: 700; color: #c44569; font-size: 0.95rem; }
.birthday-meta { margin: 0; font-size: 0.9rem; color: #555; }

/* ------------- 🌟 HALL OF FAME ------------- */
.hall-of-fame-section { background: linear-gradient(135deg, #fff9e6 0%, #fff 60%); }
.hof-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 16px 0 24px; }
.hof-trophy {
  background: linear-gradient(180deg, white 60%, #fff8dc);
  border: 3px solid #FFD700; border-radius: 16px; padding: 16px;
  text-align: center; box-shadow: 0 4px 14px rgba(255, 215, 0, 0.18);
  font-size: 2.4rem;
}
.hof-trophy h4 { margin: 6px 0 4px; font-size: 0.85rem; color: #666; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.hof-trophy.hof-trophy-empty { opacity: 0.65; border-color: #ddd; background: white; }
.hof-trophy.hof-trophy-empty p { font-size: 0.85rem; color: #999; margin: 0; font-weight: 500; }
.hof-winner-name { font-size: 1.2rem; font-weight: 800; color: #333; margin: 4px 0 2px; }
.hof-winner-stat { font-size: 1.8rem; font-weight: 800; color: #FF6B9D; margin: 0; }

.hof-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.hof-stat-card {
  background: white; border: 2px solid #ddd; border-radius: 14px; padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.hof-stat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hof-stat-emoji { font-size: 1.8rem; }
.hof-stat-head h4 { margin: 0; font-size: 1.05rem; color: #333; }
.hof-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hof-stat-grid > div { display: flex; align-items: center; gap: 6px; background: #f9f9f9; padding: 8px 10px; border-radius: 8px; font-size: 0.9rem; }
.hof-stat-grid span { font-size: 1.1rem; }
.hof-stat-grid strong { color: #FF6B9D; font-weight: 800; }
.hof-stat-grid em { color: #777; font-style: normal; font-size: 0.85rem; }

/* ------------- 🎯 CHALLENGE OF THE WEEK ------------- */
.challenge-section { background: linear-gradient(135deg, #e8f5e9 0%, #fff 60%); }
.challenge-current { margin-top: 14px; }
.challenge-card {
  background: white; border: 3px solid #4CAF50; border-radius: 18px;
  padding: 20px; box-shadow: 0 6px 18px rgba(76, 175, 80, 0.18);
}
.challenge-card.category-kindness { border-color: #FF6B9D; background: linear-gradient(180deg, white 50%, #ffeef5); }
.challenge-card.category-nature { border-color: #4CAF50; background: linear-gradient(180deg, white 50%, #e8f5e9); }
.challenge-card.category-creativity { border-color: #9C27B0; background: linear-gradient(180deg, white 50%, #f3e5f5); }
.challenge-card.category-team { border-color: #2196F3; background: linear-gradient(180deg, white 50%, #e3f2fd); }
.challenge-card.category-skill { border-color: #FF9800; background: linear-gradient(180deg, white 50%, #fff3e0); }

.challenge-header { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.challenge-emoji { font-size: 3rem; }
.challenge-header h3 { margin: 2px 0 0; font-size: 1.4rem; color: #222; }
.challenge-week { display: inline-block; font-size: 0.78rem; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
.challenge-desc { font-size: 1.05rem; color: #444; margin: 12px 0 16px; line-height: 1.55; }
.challenge-checkin { background: rgba(255,255,255,0.7); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.challenge-checkin strong { display: block; margin-bottom: 8px; color: #333; }
.challenge-check {
  display: inline-flex; align-items: center; gap: 6px;
  background: white; padding: 6px 12px; margin: 4px 6px 4px 0;
  border-radius: 20px; border: 2px solid #ddd; cursor: pointer;
  font-weight: 600; font-size: 0.9rem; transition: all 0.18s;
}
.challenge-check:hover { border-color: #4CAF50; }
.challenge-check input { accent-color: #4CAF50; cursor: pointer; }
.challenge-check input:checked + span { color: #4CAF50; }

.challenge-history-wrap { margin-top: 18px; }
.challenge-history-wrap summary { cursor: pointer; font-weight: 700; padding: 8px 0; color: #555; }
.challenge-history { margin-top: 10px; display: grid; gap: 8px; }
.challenge-past {
  display: flex; align-items: center; gap: 12px;
  background: white; border: 1.5px solid #eee; border-radius: 10px; padding: 10px 14px;
}
.challenge-past-emoji { font-size: 1.6rem; }
.challenge-past small { color: #888; }

/* ------------- 🗺️ ADVENTURE MAP ------------- */
.adventure-map-section { background: linear-gradient(135deg, #e3f2fd 0%, #fff 70%); }
.map-legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0 14px; font-size: 0.9rem; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid white; box-shadow: 0 0 0 1px #999; }
.legend-dot.visited { background: #2ecc71; }
.legend-dot.planned { background: #f39c12; }
.legend-dot.wishlist { background: #9b59b6; }

.adventure-map-svg {
  width: 100%; max-width: 600px; margin: 0 auto 18px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12); background: white;
}
.adv-svg { display: block; width: 100%; height: auto; }
.map-pin { cursor: pointer; transition: transform 0.2s; transform-origin: center; transform-box: fill-box; }
.map-pin:hover circle { stroke-width: 4; }

.adventure-spots-list { display: grid; gap: 8px; margin-bottom: 16px; }
.spot-item {
  display: flex; align-items: center; gap: 12px;
  background: white; border: 2px solid #eee; border-radius: 12px; padding: 10px 14px;
  transition: border-color 0.18s;
}
.spot-item:hover { border-color: #74b9ff; }
.spot-emoji { font-size: 1.8rem; }
.spot-body { flex: 1; }
.spot-name strong { font-size: 1.02rem; color: #333; }
.spot-status { display: inline-block; margin-left: 8px; font-size: 0.78rem; padding: 2px 8px; border-radius: 10px; background: #f0f0f0; color: #555; text-transform: capitalize; }
.spot-notes { font-size: 0.85rem; color: #666; margin-top: 4px; }
.spot-actions { display: flex; gap: 6px; align-items: center; }
.spot-status-select { padding: 6px 10px; border-radius: 8px; border: 1.5px solid #ddd; font-size: 0.85rem; }
.spot-remove {
  background: #ffebee; border: none; color: #c62828; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-weight: 800; font-size: 1rem;
}
.spot-remove:hover { background: #ffcdd2; }

.spot-add-wrap { margin-top: 10px; }
.spot-add-wrap summary { cursor: pointer; font-weight: 700; padding: 8px 0; color: #555; }
.spot-form { display: grid; grid-template-columns: 1.5fr 0.5fr 1fr 1fr 0.7fr auto; gap: 8px; margin-top: 10px; align-items: end; }
.spot-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: #555; font-weight: 600; }
.spot-form input, .spot-form select { padding: 8px 10px; border-radius: 8px; border: 1.5px solid #ddd; font-size: 0.9rem; }

/* ------------- 📔 ADVENTURE DIARY ------------- */
.diary-section { background: linear-gradient(135deg, #fff8e1 0%, #fff 60%); }
.diary-write-wrap { margin-bottom: 14px; }
.diary-write-wrap summary { cursor: pointer; font-weight: 700; padding: 8px 0; color: #555; }
.diary-write-body { background: white; border-radius: 12px; padding: 14px; border: 1.5px solid #eee; }
.diary-write-body select { width: 100%; padding: 10px; border-radius: 8px; border: 1.5px solid #ddd; font-size: 0.95rem; margin-bottom: 10px; }
#diary-msg { margin-top: 8px; font-weight: 600; }

.diary-entries { display: grid; gap: 16px; margin-top: 14px; }
.diary-entry {
  background: linear-gradient(180deg, #fffef0, #fff8dc);
  border: 2px dashed #d4a373; border-radius: 14px;
  padding: 18px 20px; box-shadow: 0 4px 12px rgba(212, 163, 115, 0.18);
  font-family: 'Georgia', 'Times New Roman', serif;
  position: relative;
}
.diary-entry::before {
  content: '📔'; position: absolute; top: -12px; left: 18px;
  font-size: 1.6rem; background: white; padding: 0 6px; border-radius: 50%;
}
.diary-entry-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1.5px dashed #d4a373; }
.diary-entry-head h3 { margin: 0; flex: 1; font-size: 1.15rem; color: #5d4e37; font-family: inherit; }
.diary-date { font-size: 0.85rem; color: #8b7355; font-style: italic; }
.diary-remove {
  background: transparent; border: none; cursor: pointer; font-size: 1rem;
  color: #c62828; padding: 4px 8px; border-radius: 50%;
}
.diary-remove:hover { background: #ffebee; }
.diary-story { font-size: 1rem; line-height: 1.7; color: #4a3f2e; white-space: pre-wrap; }
.diary-members { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #d4a373; font-size: 0.85rem; color: #6b5b3e; }
.diary-members .chip { display: inline-block; background: white; border: 1.5px solid #d4a373; border-radius: 12px; padding: 2px 10px; margin: 2px 4px; font-family: var(--font); font-size: 0.8rem; color: #5d4e37; }

/* ------------- 📸 PHOTO CAPTION BATTLE ------------- */
.caption-battle-section { background: linear-gradient(135deg, #f3e5f5 0%, #fff 60%); }
.caption-start-wrap { margin-bottom: 14px; }
.caption-start-wrap summary { cursor: pointer; font-weight: 700; padding: 8px 0; color: #555; }
.caption-start-body { background: white; border-radius: 12px; padding: 14px; border: 1.5px solid #eee; }
.caption-start-body select { width: 100%; padding: 10px; border-radius: 8px; border: 1.5px solid #ddd; font-size: 0.95rem; margin-bottom: 10px; }
#caption-start-msg { margin-top: 8px; font-weight: 600; }

.caption-battles-list { display: grid; gap: 20px; margin-top: 14px; }
.caption-battle {
  background: white; border: 3px solid #9C27B0; border-radius: 16px;
  padding: 18px; box-shadow: 0 6px 16px rgba(156, 39, 176, 0.18);
}
.cb-photo { width: 100%; max-width: 400px; display: block; margin: 0 auto 14px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.cb-no-photo { background: #f5f5f5; padding: 30px; text-align: center; border-radius: 10px; color: #888; margin-bottom: 14px; }
.cb-captions { display: grid; gap: 12px; }
.cb-caption {
  background: #faf3fc; border: 2px solid #e1bee7; border-radius: 12px;
  padding: 12px 14px; transition: all 0.2s;
}
.cb-caption.cb-caption-winner {
  background: linear-gradient(135deg, #fff9c4, #ffeb3b22);
  border-color: #FFD700; box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}
.cb-caption.cb-caption-winner::before { content: '🏆 '; }
.cb-caption-text { font-size: 1.02rem; color: #333; font-weight: 600; margin-bottom: 6px; }
.cb-caption-meta { display: flex; justify-content: space-between; font-size: 0.82rem; color: #777; margin-bottom: 8px; }
.cb-author { font-style: italic; }
.cb-votes { font-weight: 700; color: #9C27B0; }
.cb-vote-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.cb-vote-btn {
  background: white; border: 2px solid #ddd; border-radius: 50%;
  width: 38px; height: 38px; cursor: pointer; font-size: 1.1rem;
  transition: all 0.18s;
}
.cb-vote-btn:hover { transform: scale(1.15); border-color: #9C27B0; }
.cb-vote-btn.voted { background: #9C27B0; color: white; border-color: #9C27B0; transform: scale(1.1); }

.cb-add-form { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1.5px dashed #e1bee7; }
.cb-new-text { padding: 8px 12px; border-radius: 8px; border: 1.5px solid #ddd; font-size: 0.95rem; }
.cb-new-author { padding: 8px 10px; border-radius: 8px; border: 1.5px solid #ddd; font-size: 0.9rem; }

/* ------------- 💌 POSTCARDS ------------- */
.postcards-section { background: linear-gradient(135deg, #fce4ec 0%, #fff 60%); }
.postcard-write-wrap { margin-bottom: 14px; }
.postcard-write-wrap summary { cursor: pointer; font-weight: 700; padding: 8px 0; color: #555; }
.postcard-write-body { background: white; border-radius: 12px; padding: 14px; border: 1.5px solid #eee; }
.postcard-write-body select { padding: 9px 12px; border-radius: 8px; border: 1.5px solid #ddd; font-size: 0.95rem; }
#postcard-msg { margin-top: 8px; font-weight: 600; }

.postcards-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 14px; }
.postcard {
  background: linear-gradient(135deg, #fff 70%, #ffeef5);
  border: 3px solid #FFB6C1; border-radius: 14px; padding: 16px;
  box-shadow: 0 4px 14px rgba(255, 105, 180, 0.15);
  position: relative;
  transition: transform 0.2s;
}
.postcard:hover { transform: translateY(-3px) rotate(-0.6deg); }
.postcard::after {
  content: ''; position: absolute; top: 8px; right: 8px; bottom: 8px; left: 8px;
  border: 1.5px dashed #FFB6C1; border-radius: 10px; pointer-events: none;
}
.postcard-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1.5px dashed #FFB6C1; position: relative; z-index: 1; }
.postcard-stamp { font-size: 2rem; }
.postcard-to { font-size: 0.95rem; color: #555; }
.postcard-emoji { font-size: 1.1rem; margin-left: 4px; }
.postcard-event { font-size: 0.82rem; color: #888; font-style: italic; margin-top: 2px; }
.postcard-remove {
  background: transparent; border: none; cursor: pointer; font-size: 1rem;
  color: #c62828; padding: 4px 8px; border-radius: 50%;
}
.postcard-remove:hover { background: #ffebee; }
.postcard-message {
  font-family: 'Comic Sans MS', 'Marker Felt', cursive;
  font-size: 1rem; line-height: 1.6; color: #4a3f5e;
  white-space: pre-wrap; position: relative; z-index: 1;
}

/* ------------- 🎤 VOICE PEBBLES ------------- */
.voice-pebbles-section { background: linear-gradient(135deg, #e0f7fa 0%, #fff 60%); }
.voice-pebbles-card {
  background: white; border-radius: 18px; padding: 28px 20px;
  border: 3px solid #4DD0E1; box-shadow: 0 6px 18px rgba(77, 208, 225, 0.18);
  text-align: center;
}
.voice-pebbles-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #FF6B9D, #FF8E53);
  color: white; border: none; padding: 18px 30px;
  border-radius: 50px; cursor: pointer; font-size: 1.2rem; font-weight: 800;
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.voice-pebbles-btn:hover:not(:disabled) { transform: scale(1.05); box-shadow: 0 8px 24px rgba(255, 107, 157, 0.5); }
.voice-pebbles-btn:disabled { background: #ccc; cursor: not-allowed; opacity: 0.6; box-shadow: none; }
.voice-pebbles-btn.listening {
  background: linear-gradient(135deg, #f44336, #ff9800);
  animation: voicePulse 1s ease-in-out infinite;
}
@keyframes voicePulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4); transform: scale(1); }
  50% { box-shadow: 0 10px 30px rgba(244, 67, 54, 0.7); transform: scale(1.04); }
}
.voice-mic-icon { font-size: 1.8rem; }
.voice-status { margin-top: 16px; font-size: 1.05rem; font-weight: 600; color: #00838F; min-height: 1.4em; }
.voice-transcript {
  margin-top: 16px; text-align: left; max-width: 500px; margin-left: auto; margin-right: auto;
  display: grid; gap: 10px;
}
.voice-you {
  background: #e3f2fd; border-left: 4px solid #2196F3; border-radius: 10px;
  padding: 10px 14px; font-size: 0.95rem;
}
.voice-pebbles {
  background: linear-gradient(135deg, #fff0f5, #fce4ec);
  border-left: 4px solid #FF6B9D; border-radius: 10px;
  padding: 10px 14px; font-size: 0.95rem; font-weight: 500;
}
.voice-hint { margin-top: 16px; font-size: 0.85rem; color: #777; font-style: italic; }

/* ===========  MOBILE RESPONSIVE — Wave 2+3 ============= */
@media (max-width: 680px) {
  .birthday-list,
  .hof-stats,
  .postcards-list { grid-template-columns: 1fr; }
  .hof-categories { grid-template-columns: 1fr 1fr; }
  .hof-stat-grid { grid-template-columns: 1fr 1fr; }
  .challenge-card { padding: 16px; }
  .challenge-emoji { font-size: 2.2rem; }
  .challenge-header h3 { font-size: 1.15rem; }
  .challenge-desc { font-size: 0.98rem; }
  .spot-form { grid-template-columns: 1fr 1fr; }
  .spot-form button { grid-column: 1 / -1; }
  .spot-item { flex-wrap: wrap; }
  .spot-actions { flex-basis: 100%; justify-content: space-between; margin-top: 6px; }
  .cb-add-form { grid-template-columns: 1fr; }
  .voice-pebbles-btn { font-size: 1.05rem; padding: 14px 22px; }
  .voice-pebbles-btn .voice-btn-text { font-size: 0.95rem; }
  .diary-entry { padding: 14px 16px; }
  .postcard { padding: 14px; }
  .map-legend { font-size: 0.82rem; gap: 10px; }
}

/* ============================================================
   PHASE E — TAPPABLE CREW CARDS + ONBOARDING WIZARD
   ============================================================ */

/* ----- Member card tap hint + button reset ----- */
.member-card {
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-align: center;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.member-card:hover,
.member-card:focus-visible {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
  outline: none;
}
.member-card:focus-visible {
  outline: 3px solid var(--turq, #00bcd4);
  outline-offset: 3px;
}
.member-tap-hint {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff6f91, #ff9671);
  border-radius: 999px;
  opacity: 0.92;
  letter-spacing: 0.3px;
}

/* ----- 🎓 Tour button in topnav ----- */
.take-tour-btn {
  background: linear-gradient(135deg, #ffd166, #ff9671);
  color: #2d1b00;
  border: none;
  font-family: inherit;
  font-weight: 900;
  font-size: 1rem;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(255, 150, 113, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin-right: 6px;
  animation: tourPulse 2.4s ease-in-out infinite;
}
.take-tour-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 14px rgba(255, 150, 113, 0.55);
  animation: none;
}
@keyframes tourPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 3px 12px rgba(255, 150, 113, 0.5); }
  50% { transform: scale(1.06); box-shadow: 0 6px 18px rgba(255, 150, 113, 0.75); }
}

/* ============================================================
   👤 KID PROFILE MODAL
   ============================================================ */
.kp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 40, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: kpFadeIn 0.25s ease;
}
@keyframes kpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.kp-modal-card {
  background: linear-gradient(180deg, #fffdf7 0%, #fef4f8 100%);
  border-radius: 28px;
  max-width: min(560px, calc(100vw - 24px));
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
  box-sizing: border-box;
  animation: kpPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes kpPopIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.kp-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.08);
  color: #333;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 5;
  transition: background 0.15s ease, transform 0.15s ease;
}
.kp-modal-close:hover {
  background: rgba(255, 107, 145, 0.9);
  color: #fff;
  transform: rotate(90deg);
}
.kp-modal-content {
  padding: 28px 28px 30px;
}
.kp-modal-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 2px dashed rgba(0,0,0,0.08);
  margin-bottom: 18px;
}
.kp-modal-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  object-fit: cover;
  flex-shrink: 0;
}
.kp-modal-meta { flex: 1; min-width: 0; }
.kp-modal-meta h2 {
  margin: 0 0 4px;
  font-size: 1.7rem;
  font-weight: 900;
  color: #2d1b4e;
}
.kp-modal-role {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00bcd4, #4dd0e1);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.kp-modal-section {
  margin-bottom: 20px;
}
.kp-modal-section h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ff6f91;
  letter-spacing: 0.3px;
}
.kp-fact {
  margin: 6px 0;
  font-size: 0.96rem;
  color: #333;
  line-height: 1.5;
}
.kp-fact strong { color: #2d1b4e; }
.kp-allergies {
  background: #fff3cd;
  border-left: 4px solid #ffd166;
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 0.92rem;
}
.kp-empty {
  font-style: italic;
  color: #999;
  font-size: 0.92rem;
}
.kp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.kp-stat {
  background: #fff;
  border-radius: 14px;
  padding: 12px 6px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.kp-stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: #00bcd4;
  line-height: 1;
}
.kp-stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.kp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #ffe66d, #ffd166);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #5d4500;
  box-shadow: 0 2px 6px rgba(255, 209, 102, 0.4);
}
.kp-badge-emoji { font-size: 1.05rem; }
.kp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.kp-list li {
  padding: 8px 12px;
  margin-bottom: 6px;
  background: #fff;
  border-radius: 10px;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.kp-led-tag {
  background: #ff6f91;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.kp-meta {
  font-size: 0.82rem;
  color: #888;
  margin-left: auto;
}

/* ============================================================
   🪄 ONBOARDING WIZARD
   ============================================================ */
.wizard-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 107, 145, 0.85), rgba(0, 188, 212, 0.85));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  animation: kpFadeIn 0.3s ease;
}
.wizard-card {
  background: #fffdf7;
  border-radius: 32px;
  max-width: min(580px, calc(100vw - 24px));
  width: 100%;
  max-height: 92vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 70px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  animation: kpPopIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wizard-skip {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.08);
  color: #333;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 5;
  transition: background 0.15s ease, transform 0.15s ease;
}
.wizard-skip:hover {
  background: rgba(255, 107, 145, 0.9);
  color: #fff;
  transform: rotate(90deg);
}
.wizard-content {
  padding: 36px 30px 20px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.wizard-step {
  text-align: center;
  animation: wizSlide 0.35s ease;
}
@keyframes wizSlide {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.wizard-step-emoji {
  font-size: 3.4rem;
  line-height: 1;
  margin-bottom: 8px;
}
.wizard-step-title {
  font-size: 1.7rem;
  font-weight: 900;
  color: #2d1b4e;
  margin: 0 0 10px;
}
.wizard-step-body {
  font-size: 1.02rem;
  color: #444;
  line-height: 1.55;
  margin: 0 auto 14px;
  max-width: 460px;
}
.wizard-img {
  display: block;
  margin: 14px auto;
  max-width: 100%;
  max-height: 220px;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  object-fit: cover;
}
.wizard-activities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 14px;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px 4px;
}
.wizard-activity {
  background: linear-gradient(135deg, #fff, #fef4f8);
  border-radius: 12px;
  padding: 10px 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #2d1b4e;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s ease;
}
.wizard-activity:hover { transform: translateY(-2px) scale(1.03); }
.wizard-activity-emoji { font-size: 1.5rem; line-height: 1; }
.wizard-quicklinks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.wizard-quicklink {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: linear-gradient(135deg, #00bcd4, #4dd0e1);
  color: #fff;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.wizard-quicklink:nth-child(2n) {
  background: linear-gradient(135deg, #ff6f91, #ff9671);
  box-shadow: 0 4px 12px rgba(255, 111, 145, 0.4);
}
.wizard-quicklink:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}
.wizard-quicklink-emoji { font-size: 1.7rem; line-height: 1; }
.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 22px;
  border-top: 2px dashed rgba(0,0,0,0.08);
  gap: 12px;
  background: rgba(255, 253, 247, 0.95);
}
.wizard-dots {
  display: flex;
  gap: 6px;
}
.wizard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}
.wizard-dot.active {
  background: linear-gradient(135deg, #ff6f91, #00bcd4);
  width: 26px;
  border-radius: 999px;
}
.wizard-buttons {
  display: flex;
  gap: 8px;
}
.wizard-buttons .btn {
  padding: 9px 18px;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 999px;
}

/* ============================================================
   📱 MOBILE RESPONSIVE — Phase E
   ============================================================ */
@media (max-width: 680px) {
  .take-tour-btn {
    font-size: 0.92rem;
    padding: 8px 14px;
    margin-right: 0;
  }
  .member-tap-hint {
    font-size: 0.72rem;
    padding: 2px 8px;
  }

  .kp-modal-overlay { padding: 10px; }
  .kp-modal-card { border-radius: 22px; max-height: 94vh; }
  .kp-modal-content { padding: 22px 18px 22px; }
  .kp-modal-header { gap: 12px; }
  .kp-modal-avatar { width: 72px; height: 72px; }
  .kp-modal-meta h2 { font-size: 1.35rem; }
  .kp-modal-role { font-size: 0.78rem; padding: 3px 10px; }
  .kp-modal-section h3 { font-size: 0.98rem; }
  .kp-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .kp-stat { padding: 10px 4px; }
  .kp-stat-num { font-size: 1.35rem; }
  .kp-stat-label { font-size: 0.66rem; }
  .kp-badge { font-size: 0.8rem; padding: 5px 10px; }
  .kp-list li { font-size: 0.86rem; padding: 7px 10px; }

  .wizard-overlay { padding: 10px; }
  .wizard-card { border-radius: 24px; max-height: 96vh; }
  .wizard-content { padding: 30px 20px 16px; }
  .wizard-step-emoji { font-size: 2.6rem; }
  .wizard-step-title { font-size: 1.35rem; }
  .wizard-step-body { font-size: 0.96rem; }
  .wizard-img { max-height: 160px; border-radius: 16px; }
  .wizard-activities {
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 6px;
    max-height: 240px;
  }
  .wizard-activity { font-size: 0.78rem; padding: 8px 4px; }
  .wizard-activity-emoji { font-size: 1.25rem; }
  .wizard-quicklinks { grid-template-columns: 1fr 1fr; gap: 8px; }
  .wizard-quicklink { padding: 12px 6px; font-size: 0.85rem; }
  .wizard-quicklink-emoji { font-size: 1.45rem; }
  .wizard-footer { padding: 12px 16px 16px; }
  .wizard-buttons .btn { padding: 8px 14px; font-size: 0.88rem; }
  .wizard-dot { width: 8px; height: 8px; }
  .wizard-dot.active { width: 22px; }
}

/* =========================================================================
   📱 FULL MOBILE AUDIT — applies on top of all earlier mobile rules
   Targets phones (<=640px) and tiny phones (<=380px).
   Goals: nothing horizontally cramped, all text readable, no horizontal scroll
   on the body, forms 1-column where it matters, tap targets >=40px.
   ========================================================================= */
@media (max-width: 640px) {
  /* ----- global page ----- */
  html, body { overflow-x: hidden; }
  body { font-size: 15px; }
  .section { padding: 1.5rem 0.85rem; }
  .section-title { font-size: 1.45rem; line-height: 1.2; }
  .section-subtitle { font-size: 0.92rem; }
  h2 { line-height: 1.2; }
  h3 { line-height: 1.25; }
  p { line-height: 1.55; }

  /* ----- hero ----- */
  .hero-content { padding: 1.4rem 1rem; border-radius: 22px; border-width: 3px; }
  .hero-content h1 { font-size: 1.85rem !important; line-height: 1.1; }
  .hero-content p { font-size: 0.95rem; }
  .logo { width: 110px; height: 110px; margin-bottom: 0.6rem; border-width: 3px; }
  .hero-group { border-radius: 14px; border-width: 3px; margin-bottom: 1rem; }

  /* ----- calendar (7-col grid stays but cells shrink hard) ----- */
  .calendar-grid { padding: 0.5rem; gap: 3px; border-width: 2px; border-radius: 14px; }
  .cal-header { font-size: 0.6rem; padding: 0.2rem 0; }
  .cal-cell { min-height: 38px; padding: 2px; border-radius: 6px; border-width: 1.5px; font-size: 0.62rem; }
  .cal-day-num { font-size: 0.7rem; }
  .cal-event-dot { font-size: 0.5rem; padding: 1px 2px; border-radius: 4px; }
  .calendar-nav { gap: 0.4rem; flex-wrap: wrap; justify-content: center; }
  #month-label { font-size: 1.1rem; min-width: 0; flex: 1 1 100%; order: -1; }

  /* ----- event cards stacked ----- */
  .event-card { padding: 0.9rem; border-width: 2px; border-radius: 14px; gap: 0.6rem; }
  .event-date-badge { min-width: 58px; padding: 0.35rem; }
  .event-date-badge .day { font-size: 1.35rem; }
  .event-date-badge .month, .event-date-badge .weekday { font-size: 0.62rem; }
  .event-info h4 { font-size: 1.02rem; }
  .event-info .meta { font-size: 0.82rem; }
  .chip { font-size: 0.72rem; padding: 0.1rem 0.55rem; }

  /* ----- plan adventure form ----- */
  .event-form { gap: 0.6rem; }
  .event-form input, .event-form select, .event-form textarea {
    padding: 0.65rem 0.8rem; font-size: 16px; /* 16px stops iOS zoom */
  }
  .member-check { padding: 0.35rem 0.7rem; font-size: 0.85rem; }

  /* ----- members grid ----- */
  .members-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .member-card { padding: 0.9rem 0.6rem; border-radius: 18px; }
  .member-avatar, .member-emoji { width: 78px; height: 78px; line-height: 78px; font-size: 2.1rem; border-width: 3px; }
  .member-name { font-size: 0.98rem; }
  .member-role { font-size: 0.78rem; }
  .member-tap-hint { font-size: 0.66rem; padding: 2px 7px; margin-top: 5px; }

  /* ----- activities grid ----- */
  .activities-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .activity-card { padding: 0.85rem 0.4rem; border-width: 2px; border-radius: 14px; }
  .activity-card .emoji { font-size: 1.9rem; }
  .activity-card .name { font-size: 0.85rem; }
  .activity-card .cat { font-size: 0.62rem; }
  .activity-filters { gap: 0.35rem; }
  .filter-btn { padding: 0.3rem 0.75rem; font-size: 0.82rem; }

  /* ----- values / fab5-ways / charter cards ----- */
  .values-card { padding: 1rem !important; border-radius: 18px !important; }
  .values-card h3 { font-size: 1.05rem; }
  .values-card p { font-size: 0.92rem; }

  /* ----- merch ----- */
  .merch-card { padding: 0.9rem; border-radius: 16px; }
  .merch-card img { border-radius: 12px; }

  /* ----- awards & badges ----- */
  .award-card, .badge-card { padding: 0.9rem; border-radius: 16px; }
  .award-card h3, .badge-card h3 { font-size: 1rem; }
  .award-form, .badge-form { gap: 0.55rem; }

  /* ----- gallery ----- */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .gallery-item img { border-radius: 10px; }

  /* ----- concerts ----- */
  .concert-card { padding: 0.9rem; border-radius: 14px; }
  .concert-add-form { gap: 0.5rem; }

  /* ----- Pebbles picks / weather / playlist / kid profiles / dashboards ----- */
  .picks-grid { grid-template-columns: 1fr; gap: 0.6rem; }
  .pick-card { padding: 1rem; font-size: 1rem; }
  .pick-result-shell { padding: 1.1rem; }
  .pick-result-pick { font-size: 1.45rem; }
  .weather-form .form-row,
  .playlist-form .form-row,
  .concert-watch-form .form-row,
  .kid-profile-form .kpf-row { grid-template-columns: 1fr; gap: 0.55rem; }
  .weather-stats { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
  .weather-stat { padding: 8px 6px; }
  .weather-stat strong { font-size: 1rem; }
  .weather-emoji { font-size: 2.3rem; }
  .weather-header h3 { font-size: 1.05rem; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .dash-stat { padding: 0.9rem 0.5rem; }
  .dash-stat-num { font-size: 1.35rem; }
  .dash-stat-label { font-size: 0.7rem; }
  .kid-profiles-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .playlist-track { padding: 0.7rem; }

  /* ----- diary, postcards, hall of fame, birthdays ----- */
  .diary-entry { padding: 0.95rem 1rem; border-radius: 14px; }
  .diary-entry-head h3 { font-size: 1rem; }
  .postcards-list { grid-template-columns: 1fr; }
  .birthday-list { grid-template-columns: 1fr; }
  .birthday-card { padding: 0.9rem; }
  .hof-categories { grid-template-columns: 1fr; gap: 0.6rem; }
  .hof-stats { grid-template-columns: 1fr; gap: 0.6rem; }
  .hof-stat-grid { grid-template-columns: 1fr 1fr; gap: 0.4rem; }
  .hof-card { padding: 0.9rem; }

  /* ----- crew challenges & caption battles ----- */
  .challenges-grid { grid-template-columns: 1fr; }
  .challenge-card { padding: 0.95rem; border-radius: 16px; }
  .cb-grid { grid-template-columns: 1fr; }
  .cb-card { padding: 0.95rem; }

  /* ----- adventure map ----- */
  .adventure-map-section { padding-left: 0.6rem; padding-right: 0.6rem; }
  .adventure-map-svg { max-width: 100%; height: auto; }
  .map-legend { font-size: 0.78rem; gap: 8px; flex-wrap: wrap; }
  .spot-form { grid-template-columns: 1fr; gap: 0.5rem; }
  .spot-form button { grid-column: 1; }
  .spot-form input, .spot-form select { font-size: 16px; padding: 0.6rem 0.75rem; }

  /* ----- voice pebbles, invite writer, parents faq ----- */
  .voice-pebbles-card { padding: 1rem; border-radius: 16px; }
  .voice-pebbles-btn { font-size: 1rem; padding: 12px 18px; }
  .invite-writer-card { padding: 1rem; border-radius: 16px; }
  .faq-item { padding: 0.95rem 1rem; }
  .faq-item h3 { font-size: 1rem; }
  .faq-item p { font-size: 0.92rem; }

  /* ----- inputs: prevent iOS zoom + decent tap area ----- */
  input[type="text"], input[type="number"], input[type="date"], input[type="email"],
  input[type="tel"], input[type="url"], input[type="search"], textarea, select {
    font-size: 16px !important;
    min-height: 42px;
  }
  button { min-height: 40px; }

  /* ----- pebbles chat already fullscreen on mobile (existing rule) ----- */
  .pebbles-fab { width: 62px; height: 62px; bottom: 10px; right: 10px; }
  .pebbles-fab img { width: 52px; height: 52px; }

  /* ----- footer / general ----- */
  footer { padding: 1.2rem 1rem; font-size: 0.85rem; text-align: center; }
}

/* ===== TINY PHONES (<=380px, e.g. iPhone SE) ===== */
@media (max-width: 380px) {
  .section-title { font-size: 1.25rem; }
  .hero-content h1 { font-size: 1.55rem !important; }
  .hero-content p { font-size: 0.88rem; }
  .logo { width: 92px; height: 92px; }
  .members-grid { grid-template-columns: 1fr 1fr; gap: 0.55rem; }
  .member-avatar, .member-emoji { width: 70px; height: 70px; line-height: 70px; font-size: 1.85rem; }
  .activities-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .activity-card .emoji { font-size: 1.65rem; }
  .activity-card .name { font-size: 0.78rem; }
  .cal-cell { min-height: 32px; font-size: 0.55rem; }
  .cal-day-num { font-size: 0.62rem; }
  .cal-event-dot { font-size: 0.45rem; }
  .take-tour-btn { font-size: 0.85rem; padding: 7px 11px; }
  .topnav-links a { padding: 0.28rem 0.6rem; font-size: 0.74rem; }
  .dash-stats, .weather-stats, .hof-stat-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   PHASE F — FULL MOBILE AUDIT FIX (≤ 480px phones)
   Saia's audit: too much padding, tight grids, oversized headings,
   forms cramping, calendar squishing. Single consolidated phone
   override layer applied on top of all earlier rules.
   ============================================================ */

@media (max-width: 480px) {
  /* ----- Global rhythm: tighter section spacing ----- */
  .section { padding: 2rem 0.85rem; }
  .section-title { font-size: 1.45rem; margin-bottom: 0.4rem; }
  .section-subtitle { font-size: 0.92rem; margin-bottom: 1.25rem; padding: 0 0.25rem; }

  /* ----- Hero: shrink everything so the card breathes ----- */
  .hero { padding: 1.5rem 0.75rem; min-height: auto; }
  .hero-content { padding: 1.5rem 1.1rem; border-width: 3px; border-radius: 24px; }
  .hero-group { border-width: 3px; margin-bottom: 1rem; }
  .logo { width: 120px; height: 120px; margin-bottom: 0.5rem; }
  .tagline { font-size: 1rem; }
  .location { font-size: 0.92rem; }
  .mascot-line { font-size: 0.85rem; margin-bottom: 0.9rem; }
  .hero-buttons .btn { padding: 0.7rem 1rem; font-size: 0.92rem; }

  /* ----- Generic buttons: stop overflow + better tap targets ----- */
  .btn { padding: 0.7rem 1.1rem; font-size: 0.95rem; }
  .btn-big { padding: 0.95rem 1.2rem; font-size: 1rem; }
  .btn-small { padding: 0.45rem 0.8rem; font-size: 0.85rem; }

  /* ----- Cards: lighter padding so content actually fits ----- */
  .values-card, .duke-card, .leader-card {
    padding: 1.15rem 1rem;
    border-radius: 18px;
    margin-bottom: 1rem;
  }
  .values-card h3, .duke-card h3, .leader-card h3 { font-size: 1.15rem; }
  .big-quote { font-size: 1.05rem; line-height: 1.45; }
  .values-card.egalitarian-rule h3 { font-size: 1.25rem; }
  .duke-grid { grid-template-columns: 1fr 1fr; gap: 0.55rem; }
  .duke-item { padding: 0.7rem 0.5rem; }
  .duke-emoji { font-size: 1.6rem; }
  .duke-item strong { font-size: 0.88rem; }
  .duke-item p { font-size: 0.78rem; }

  /* ----- Members grid: smaller cards, two per row ----- */
  .members-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .member-card { padding: 1rem 0.6rem; border-radius: 16px; }
  .member-avatar, .member-emoji { width: 76px; height: 76px; line-height: 76px; font-size: 2rem; border-width: 3px; }
  .member-name { font-size: 1rem; }
  .member-role { font-size: 0.78rem; }

  /* ----- Forms: full-width, single column, taller inputs ----- */
  .event-form, .award-form, .gallery-form, .concert-form,
  .kid-profile-form, .weather-form, .playlist-form, .concert-watch-form {
    padding: 1.1rem;
    border-radius: 18px;
  }
  .form-row { grid-template-columns: 1fr !important; gap: 0.7rem; }
  .event-form input, .event-form select, .event-form textarea,
  .award-form input, .award-form select, .award-form textarea,
  .gallery-form input, .gallery-form select,
  .concert-form input, .concert-form select {
    font-size: 16px;       /* prevents iOS auto-zoom */
    padding: 0.65rem 0.8rem;
    width: 100%;
    max-width: 100%;
  }
  textarea { min-height: 70px; }
  .member-check { padding: 0.35rem 0.7rem; font-size: 0.85rem; }
  .checkbox-row { gap: 0.4rem; }

  /* ----- Filter chip rows ----- */
  .activity-filters, .fab5-ways-filters { gap: 0.35rem; }
  .filter-btn { padding: 0.35rem 0.75rem; font-size: 0.82rem; }

  /* ----- Activities grid: 2 columns of small cards ----- */
  .activities-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .activity-card { padding: 0.85rem 0.5rem; border-radius: 14px; }
  .activity-card .emoji { font-size: 1.8rem; }
  .activity-card h3 { font-size: 0.92rem; }
  .activity-card p { font-size: 0.78rem; }

  /* ----- Calendar: tighten cells, smaller fonts ----- */
  .calendar-grid { padding: 0.55rem; gap: 3px; border-radius: 14px; }
  .cal-header { font-size: 0.7rem; padding: 0.3rem 0; }
  .cal-cell { font-size: 0.7rem; min-height: 42px; padding: 2px; border-radius: 6px; }
  .cal-day-num { font-size: 0.75rem; }
  .cal-event-dot { font-size: 0.55rem; padding: 1px 2px; border-radius: 4px; }
  #month-label { font-size: 1.1rem; min-width: 0; flex: 1; }
  .cal-nav { gap: 0.5rem; flex-wrap: wrap; }

  /* ----- Merch ----- */
  .merch-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .merch-card { padding: 0.7rem; border-radius: 16px; }
  .merch-card h4 { font-size: 0.95rem; margin: 0.45rem 0 0.25rem; }
  .merch-card p { font-size: 0.78rem; }
  .merch-howto { padding: 1.1rem; }
  .merch-howto h3 { font-size: 1.05rem; }

  /* ----- Awards ----- */
  .awards-howto, .gallery-upload { padding: 1.1rem; border-radius: 18px; }
  .awards-howto h3, .gallery-upload h3 { font-size: 1.05rem; }
  .awards-by-member { grid-template-columns: 1fr; gap: 0.7rem; }
  .member-awards-card { padding: 0.85rem; }
  .award-pill { font-size: 0.78rem; padding: 0.25rem 0.55rem; }
  .award-list-item { font-size: 0.8rem; padding: 0.4rem; }
  .award-list-item .award-emoji { font-size: 1.25rem; }

  /* ----- Gallery: 1-2 cols of photo tiles ----- */
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .gallery-item { border-radius: 12px; border-width: 2px; }

  /* ----- Concerts ----- */
  .concert-card { padding: 0.9rem; }

  /* ----- Pebbles chat: already fullscreen on mobile, but tighten input ----- */
  .pebbles-chat input, .pebbles-chat textarea { font-size: 16px; }

  /* ----- Slogan-of-week ticker ----- */
  .slogan-of-week { padding: 0.45rem 0.7rem; }
  .sotw-text { font-size: 0.85rem; }

  /* ----- Wizard activities grid: 3 per row on tiny phones ----- */
  .wizard-activities { grid-template-columns: repeat(3, 1fr); gap: 5px; max-height: 220px; }
  .wizard-activity { font-size: 0.72rem; padding: 7px 3px; }
  .wizard-activity-emoji { font-size: 1.15rem; }

  /* ----- Kid profile modal: comfortable on small screens ----- */
  .kp-modal-content { padding: 1.1rem 1rem 1.2rem; }
  .kp-modal-avatar { width: 64px; height: 64px; border-width: 3px; }
  .kp-modal-meta h2 { font-size: 1.2rem; }
  .kp-stats { grid-template-columns: 1fr 1fr; }

  /* ----- Make sure nothing pokes out: belt-and-braces ----- */
  img, video { max-width: 100%; height: auto; }
  pre, code { white-space: pre-wrap; word-break: break-word; }
}

/* Very-small phones (iPhone SE / older Androids ≤360px wide) */
@media (max-width: 360px) {
  .section { padding: 1.6rem 0.7rem; }
  .section-title { font-size: 1.3rem; }
  .members-grid, .activities-grid, .merch-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
  .duke-grid { grid-template-columns: 1fr; }
  .member-avatar, .member-emoji { width: 92px; height: 92px; line-height: 92px; }
  .wizard-activities { grid-template-columns: 1fr 1fr; }
  .topnav-links a { padding: 0.28rem 0.55rem; font-size: 0.75rem; }
  .take-tour-btn { font-size: 0.85rem; padding: 7px 11px; }
}

/* ============================================================
   PHASE G — KID PROFILE FUN FACTS (favourite colour/song/food/etc)
   ============================================================ */
.kp-funfacts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kp-funfacts li {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  font-size: 0.94rem;
}
.kp-funfact-icon {
  font-size: 1.4rem;
  line-height: 1;
  text-align: center;
}
.kp-funfact-label {
  font-weight: 800;
  color: #2d1b4e;
  font-size: 0.84rem;
  letter-spacing: 0.2px;
}
.kp-funfact-value {
  font-weight: 600;
  color: #333;
  text-align: right;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  word-break: break-word;
}
.kp-colour-swatch {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.12);
  flex-shrink: 0;
}
.kp-spotify {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: none;
  border-radius: 14px;
  overflow: hidden;
}

@media (max-width: 480px) {
  .kp-funfacts li {
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
    row-gap: 2px;
    padding: 9px 12px;
    font-size: 0.88rem;
  }
  .kp-funfact-icon { grid-row: 1 / span 2; font-size: 1.25rem; }
  .kp-funfact-label { grid-column: 2; font-size: 0.75rem; opacity: 0.7; }
  .kp-funfact-value { grid-column: 2; text-align: left; font-size: 0.92rem; }
  .kp-colour-swatch { width: 18px; height: 18px; }
}

/* ============================================
   ✏️ EDIT MY CARD — Crew can fill in their own
   ============================================ */
.kp-edit-cta {
  text-align: center;
  background: linear-gradient(135deg, #fff8e1, #ffe5b4);
  border-radius: 14px;
  padding: 18px 16px;
  margin-top: 8px;
}
.kp-edit-btn {
  font-size: 1.05rem;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.kp-edit-btn:hover { transform: translateY(-1px); }
.kp-edit-hint {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: #6b6b6b;
  font-style: italic;
}

/* The form itself */
.kp-edit-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 2px;
}
.kp-edit-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kp-edit-form-row label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}
.kpe-hint {
  font-weight: 400;
  font-size: 0.78rem;
  color: #888;
  font-style: italic;
}
.kp-edit-form input[type="text"],
.kp-edit-form input[type="date"],
.kp-edit-form textarea,
.kp-edit-form select {
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;  /* 16px stops iOS Safari from zooming on focus */
  padding: 11px 14px;
  border: 2px solid #e3e3e3;
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.kp-edit-form input[type="text"]:focus,
.kp-edit-form input[type="date"]:focus,
.kp-edit-form textarea:focus,
.kp-edit-form select:focus {
  outline: none;
  border-color: var(--turq, #4dc4d5);
  box-shadow: 0 0 0 3px rgba(77, 196, 213, 0.18);
}
.kpe-colour-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kpe-colour-row input[type="text"] { flex: 1; }
.kpe-colour-row input[type="color"] {
  width: 56px;
  height: 48px;
  border: 2px solid #e3e3e3;
  border-radius: 12px;
  cursor: pointer;
  padding: 2px;
  background: #fff;
  flex-shrink: 0;
}
.kp-edit-form-section {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 2px dashed #f0d878;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.kpe-section-title {
  margin: 0 0 2px;
  font-size: 1rem;
  color: #333;
}
.kp-saving-msg {
  margin: 4px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  min-height: 1.2em;
}
.kp-edit-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  position: sticky;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, #fff 30%);
  padding-bottom: 4px;
}
.kp-edit-form-actions .btn {
  padding: 11px 20px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
}
.kp-edit-form-actions .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Mobile — make form full-width with tap-friendly inputs */
@media (max-width: 480px) {
  .kp-edit-cta { padding: 14px 12px; }
  .kp-edit-btn { width: 100%; font-size: 1rem; padding: 13px 16px; }
  .kp-edit-form { gap: 12px; }
  .kp-edit-form-row label { font-size: 0.9rem; }
  .kp-edit-form input[type="text"],
  .kp-edit-form input[type="date"],
  .kp-edit-form textarea {
    padding: 12px 12px;
    font-size: 16px;  /* keep 16px on mobile for iOS */
  }
  .kpe-colour-row input[type="color"] {
    width: 52px;
    height: 46px;
  }
  .kp-edit-form-actions {
    flex-direction: column-reverse;  /* Save button on top on mobile */
    gap: 8px;
  }
  .kp-edit-form-actions .btn {
    width: 100%;
    padding: 13px 16px;
  }
}

/* ============================================
   👤 WHO AM I? PICKER — Each phone claims a kid
   ============================================ */
.whoami-btn {
  background: linear-gradient(135deg, #FFE66D, #FF9F45);
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  color: #5a3a00;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  white-space: nowrap;
  font-family: inherit;
  transition: transform 0.12s;
}
.whoami-btn:hover { transform: translateY(-1px); }

.whoami-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}
.whoami-card {
  background: #fff;
  border-radius: 20px;
  padding: 22px 22px 18px;
  width: 100%;
  max-width: min(560px, calc(100vw - 24px));
  box-sizing: border-box;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-height: 92vh;
  overflow-y: auto;
}
.whoami-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; font-size: 1.5rem; cursor: pointer;
  color: #999; padding: 4px 10px; border-radius: 50%;
}
.whoami-close:hover { background: #f0f0f0; color: #333; }
.whoami-card h2 {
  margin: 4px 0 6px;
  font-size: 1.5rem;
  text-align: center;
}
.whoami-sub {
  text-align: center;
  color: #666;
  margin: 0 0 18px;
  font-size: 0.95rem;
}
.whoami-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.whoami-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: 14px;
  border: 3px solid #e3e3e3;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s, box-shadow 0.12s;
}
.whoami-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.whoami-option-current {
  background: linear-gradient(135deg, #fffde0, #ffe5b4);
  box-shadow: 0 4px 14px rgba(255,159,69,0.3);
}
.whoami-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.whoami-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.whoami-avatar span {
  font-size: 2rem;
}
.whoami-name {
  font-weight: 700;
  font-size: 1rem;
  color: #333;
}
.whoami-check {
  font-size: 0.75rem;
  color: #2a9d4a;
  font-weight: 700;
  background: #e8f7e8;
  padding: 3px 8px;
  border-radius: 999px;
}
.whoami-option-clear { opacity: 0.7; }
.whoami-option-clear:hover { opacity: 1; }

.whoami-extras {
  border-top: 2px dashed #f0d878;
  padding-top: 14px;
  margin-top: 6px;
  text-align: center;
}
.whoami-leader-btn {
  background: linear-gradient(135deg, #f5e6ff, #e0c8ff);
  border: 2px solid #c4a0e8;
  border-radius: 14px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  color: #5a2a90;
  font-family: inherit;
  width: 100%;
  font-size: 0.9rem;
}
.whoami-leader-btn:hover { background: linear-gradient(135deg, #ecd6ff, #d4b0ff); }
.whoami-leader-on {
  background: linear-gradient(135deg, #ffd700, #ffaa00) !important;
  color: #5a3a00 !important;
  border-color: #c89000 !important;
  box-shadow: 0 4px 14px rgba(255,170,0,0.4);
}
.whoami-leader-hint {
  font-size: 0.78rem;
  color: #888;
  font-style: italic;
  margin: 8px 0 0;
}

/* Claim nudge inside profile modal */
.kp-claim-nudge {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}
.kp-claim-nudge p { margin: 0; }

/* Leader-mode hint differentiation */
.kp-edit-cta-leader {
  background: linear-gradient(135deg, #f5e6ff, #e0c8ff) !important;
  border: 2px solid #c4a0e8;
}
.kp-edit-cta-own {
  background: linear-gradient(135deg, #fff8e1, #ffe5b4);
}
.kp-edit-hint-top {
  margin: 0 0 10px;
  font-weight: 700;
  color: #5a3a00;
  font-size: 0.95rem;
}

/* Mobile */
@media (max-width: 480px) {
  .whoami-btn { font-size: 0.78rem; padding: 5px 10px; }
  .whoami-card { padding: 18px 14px 14px; }
  .whoami-card h2 { font-size: 1.25rem; }
  .whoami-sub { font-size: 0.85rem; }
  .whoami-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .whoami-option { padding: 12px 6px; }
  .whoami-avatar { width: 54px; height: 54px; }
  .whoami-name { font-size: 0.9rem; }
}
@media (max-width: 360px) {
  .whoami-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ 🏅 DUKE OF EDINBURGH JOURNEY ============ */
.dofe-journey-section {
  background: linear-gradient(135deg, #FFF8E7 0%, #FFE4F1 100%);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  margin: 2rem auto;
}
.dofe-journey-intro {
  background: white;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.dofe-journey-intro p { margin: 0.4rem 0; }
.dofe-journey-parent-link { font-size: 0.95rem; color: #555; }
.dofe-journey-parent-link a { color: #A06CD5; font-weight: 600; }
.dofe-journey-content { margin: 1rem 0; }
.dofe-journey-card {
  background: white;
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.dofe-journey-nudge {
  text-align: center;
  border: 2px dashed #A06CD5;
  background: white;
}
.dofe-journey-nudge p:first-child { font-size: 1.1rem; }

/* ── Pillar bars ── */
.kp-pillars, .dofe-pillars { display: flex; flex-direction: column; gap: 0.6rem; margin: 0.75rem 0; }
.kp-pillar-row { display: flex; flex-direction: column; gap: 0.25rem; }
.kp-pillar-label {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.95rem; font-weight: 600;
}
.kp-pillar-emoji { font-size: 1.15rem; }
.kp-pillar-name { flex: 1; }
.kp-pillar-hours { color: #777; font-weight: 500; font-size: 0.85rem; }
.kp-pillar-bar {
  height: 14px;
  background: #F0F0F0;
  border-radius: 7px;
  overflow: hidden;
  position: relative;
}
.kp-pillar-bar-fill {
  height: 100%;
  border-radius: 7px;
  transition: width 0.6s ease;
  min-width: 4px;
}

/* ── DofE stage badge inside profile modal ── */
.kp-dofe-stage {
  display: flex; align-items: center; gap: 0.85rem;
  background: linear-gradient(135deg, #FFF8E7, #FFE4F1);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
}
.kp-dofe-stage-emoji { font-size: 2.4rem; line-height: 1; }
.kp-dofe-stage-label { margin: 0; font-size: 1rem; }
.kp-dofe-stage-desc { margin: 0.15rem 0 0; font-size: 0.85rem; color: #555; }
.kp-dofe-totals {
  background: #F8F8FA;
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0.5rem 0;
}
.kp-dofe-thisweek {
  background: white;
  border: 2px solid #FFD56B;
  border-radius: 12px;
  padding: 0.85rem;
  margin-top: 0.75rem;
}
.kp-dofe-thisweek-title { margin: 0 0 0.25rem; font-size: 0.9rem; color: #555; font-weight: 600; }
.kp-dofe-thisweek-act { margin: 0.25rem 0; font-size: 1.05rem; }
.kp-dofe-thisweek-why { margin: 0.4rem 0 0; font-size: 0.95rem; color: #333; }
.kp-dofe-tip { font-size: 0.85rem; text-align: center; margin: 0.5rem 0 0; }

/* ── This-weekend home card ── */
.dofe-this-week { margin-top: 1.5rem; }
.dofe-this-week h3 { margin: 0 0 0.6rem; font-size: 1.15rem; }
.dofe-week-card {
  background: white;
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-left: 6px solid #FFD56B;
}
.dofe-week-bronze { border-left-color: #CD7F32; }
.dofe-week-silver { border-left-color: #C0C0C0; }
.dofe-week-gold   { border-left-color: #FFD700; }
.dofe-week-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.dofe-week-num { font-size: 0.85rem; color: #777; font-weight: 600; text-transform: uppercase; }
.dofe-week-card h4 { margin: 0.25rem 0 0.5rem; font-size: 1.2rem; }
.dofe-week-pillars { margin: 0.4rem 0; }
.dofe-week-why { font-size: 1rem; margin: 0.5rem 0; }
.dofe-week-pebbles-cta { font-size: 0.85rem; margin: 0.5rem 0 0; }

/* Pillar chip — used both modal + page */
.dofe-pillar-chip {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  margin: 0.15rem 0.2rem 0.15rem 0;
}

/* ============ 📋 PARENT DOFE SYLLABUS PAGE ============ */
.dofe-parent-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #F8F9FB 0%, #EFF2F7 100%);
  font-family: 'Fredoka', sans-serif;
}
.dofe-parent-hero {
  background: linear-gradient(135deg, #2C3E50 0%, #4A6FA5 100%);
  color: white;
  padding: 2.5rem 1.5rem 2rem;
}
.dofe-parent-hero-inner { max-width: 1100px; margin: 0 auto; }
.dofe-parent-back {
  display: inline-block;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.dofe-parent-back:hover { color: white; }
.dofe-parent-hero h1 { font-size: 2.2rem; margin: 0.5rem 0; }
.dofe-parent-sub { font-size: 1.05rem; opacity: 0.92; margin: 0; }

.dofe-parent-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}
.dofe-card {
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.dofe-card h2 { margin-top: 0; color: #2C3E50; font-size: 1.5rem; }

.dofe-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.dofe-pillar-card {
  background: #FAFBFD;
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.dofe-pillar-card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.dofe-pillar-kid { font-size: 0.9rem; color: #4A6FA5; margin: 0.3rem 0; }

.dofe-stage-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}
.dofe-stage-table th, .dofe-stage-table td {
  padding: 0.8rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid #ECECEC;
}
.dofe-stage-table th {
  background: #F4F6FA;
  font-weight: 700;
  color: #2C3E50;
}

.dofe-current-marker {
  background: #FFF8E1;
  border-left: 4px solid #FFD700;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.dofe-plan-table-wrap { overflow-x: auto; }
.dofe-plan-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
.dofe-plan-table th, .dofe-plan-table td {
  padding: 0.6rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid #EEE;
  vertical-align: top;
}
.dofe-plan-table th {
  background: #F4F6FA;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1;
}
.dofe-plan-bronze { background: #FFF8F0; }
.dofe-plan-silver { background: #F8F8F8; }
.dofe-plan-gold   { background: #FFFBE6; }
.dofe-plan-current {
  background: #FFE4F1 !important;
  font-weight: 600;
  outline: 3px solid #FF6B9D;
}
.dofe-stage-cell { font-weight: 600; text-transform: capitalize; white-space: nowrap; }
.dofe-plan-why { color: #555; font-size: 0.85rem; max-width: 320px; }

.dofe-support-list { padding-left: 0; list-style: none; }
.dofe-support-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #F0F0F0;
  font-size: 1rem;
}
.dofe-support-list li:last-child { border-bottom: none; }

.dofe-parent-footer {
  text-align: center;
  padding: 2rem 1rem 1rem;
  color: #555;
}
.dofe-parent-footer a { color: #4A6FA5; }

@media (max-width: 600px) {
  .dofe-parent-hero h1 { font-size: 1.6rem; }
  .dofe-card { padding: 1.1rem; }
  .dofe-card h2 { font-size: 1.25rem; }
  .dofe-stage-table th, .dofe-stage-table td { padding: 0.55rem 0.5rem; font-size: 0.85rem; }
  .dofe-plan-table th, .dofe-plan-table td { padding: 0.45rem 0.5rem; font-size: 0.82rem; }
  .dofe-plan-why { max-width: none; }
  .dofe-journey-section { padding: 1.25rem 1rem; }
}

/* ============ 📊 TEAM PROGRESS CHART ============ */
.team-progress-section {
  background: linear-gradient(135deg, #E8F4FD 0%, #FFE4F1 50%, #FFF8E7 100%);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  margin: 2rem auto;
}

/* Team-wide pillar totals card */
.team-totals-card {
  background: white;
  border-radius: 18px;
  padding: 1.25rem;
  margin: 1rem 0 2rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.team-totals-card h3 { margin: 0 0 0.25rem; font-size: 1.2rem; }
.team-totals-sub { margin: 0 0 1rem; color: #666; font-size: 0.95rem; }
.team-totals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.team-pillar-card {
  padding: 1rem 0.7rem;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.2s ease;
}
.team-pillar-card:hover { transform: translateY(-3px); }
.team-pillar-emoji { font-size: 2rem; line-height: 1; }
.team-pillar-name { font-size: 0.85rem; font-weight: 600; margin: 0.35rem 0 0.4rem; }
.team-pillar-hours-big {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2C3E50;
  font-family: 'Bungee', cursive;
}
.team-pillar-hours-unit { font-size: 0.7rem; font-weight: 400; margin-left: 2px; opacity: 0.7; }
.team-pillar-bar {
  height: 8px;
  background: rgba(0,0,0,0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.team-pillar-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
  min-width: 4px;
}

/* Heading */
.team-grid-heading { font-size: 1.15rem; margin: 1rem 0 0.85rem; }

/* Kid cards grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.team-kid-card {
  border: 3px solid #ddd;
  border-radius: 18px;
  padding: 1rem;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.team-kid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.team-kid-card:active { transform: scale(0.98); }
.team-kid-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.85rem; }
.team-kid-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.6rem;
  overflow: hidden;
}
.team-kid-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-kid-meta { flex: 1; min-width: 0; }
.team-kid-name { margin: 0; font-size: 1.15rem; }
.team-kid-stage { font-size: 0.85rem; color: #555; margin-top: 0.15rem; }
.team-kid-stage-emoji { font-size: 1.05rem; margin-right: 2px; }
.team-kid-total { text-align: right; }
.team-kid-total-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #2C3E50;
  font-family: 'Bungee', cursive;
  line-height: 1;
}
.team-kid-total-unit { font-size: 0.7rem; color: #777; }

/* Mini pillar visualisation — 4 vertical bars w/ emojis */
.team-mini-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin: 0.6rem 0;
}
.team-mini-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: rgba(255,255,255,0.6);
  border-radius: 10px;
  padding: 0.4rem 0.2rem;
}
.team-mini-emoji { font-size: 1.05rem; }
.team-mini-bar {
  width: 14px;
  height: 32px;
  background: rgba(0,0,0,0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.team-mini-fill {
  width: 100%;
  border-radius: 4px;
  transition: height 0.6s ease;
}
.team-mini-hrs { font-size: 0.7rem; color: #666; font-weight: 600; }

/* Medal row */
.team-medals {
  display: flex;
  justify-content: space-around;
  gap: 0.4rem;
  margin: 0.6rem 0 0.4rem;
}
.team-medal {
  background: rgba(0,0,0,0.05);
  padding: 0.3rem 0.55rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #888;
  flex: 1;
  text-align: center;
}
.team-medal-on {
  background: linear-gradient(135deg, #FFD56B, #FFA500);
  color: white;
  box-shadow: 0 2px 6px rgba(255,165,0,0.35);
  animation: medal-pulse 2.4s ease-in-out infinite;
}
@keyframes medal-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.team-kid-tap-hint {
  text-align: center;
  font-size: 0.78rem;
  color: #888;
  margin-top: 0.35rem;
  font-style: italic;
}

/* ============ 🔍 DRILL-DOWN JOURNEY MODAL ============ */
.journey-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  animation: fadeIn 0.2s ease;
}
.journey-card {
  background: white;
  border-radius: 22px;
  max-width: 680px;
  width: 100%;
  margin: 2rem auto;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.journey-close, .journey-close-inline {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.1);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
}
.journey-close:hover, .journey-close-inline:hover { background: rgba(0,0,0,0.2); }
.journey-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 16px;
  margin-bottom: 1.25rem;
}
.journey-avatar {
  width: 70px; height: 70px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.journey-avatar img { width: 100%; height: 100%; object-fit: cover; }
.journey-header-text { flex: 1; }
.journey-header h2 { margin: 0 0 0.5rem; }
.journey-stage-badge { display: flex; align-items: center; gap: 0.6rem; }
.journey-stage-emoji { font-size: 2.2rem; }
.journey-stage-label { font-weight: 700; font-size: 1.05rem; }
.journey-stage-desc { font-size: 0.85rem; color: #666; }

.journey-section { margin-bottom: 1.5rem; }
.journey-section h3 { margin: 0 0 0.6rem; font-size: 1.1rem; color: #2C3E50; }

/* Pillar progress with milestone markers */
.journey-pillar {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  margin-bottom: 0.75rem;
}
.journey-pillar-head {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.journey-pillar-emoji { font-size: 1.3rem; }
.journey-pillar-name { flex: 1; }
.journey-pillar-hrs { font-size: 0.9rem; color: #555; }
.journey-pillar-track {
  height: 22px;
  background: rgba(0,0,0,0.06);
  border-radius: 11px;
  position: relative;
  overflow: visible;
}
.journey-pillar-fill {
  height: 100%;
  border-radius: 11px;
  transition: width 1s ease;
  min-width: 4px;
}
.journey-pillar-marker {
  position: absolute;
  top: -8px;
  transform: translateX(-50%);
  font-size: 1rem;
  background: white;
  border-radius: 50%;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  z-index: 2;
}
.journey-pillar-stats {
  display: flex; justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #888;
}
.journey-pillar-stats span { padding: 0.2rem 0.5rem; border-radius: 8px; }
.jstat-on {
  background: linear-gradient(135deg, #FFD56B, #FFA500);
  color: white !important;
  font-weight: 600;
}

/* Awards grid */
.journey-grads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.journey-grad {
  text-align: center;
  padding: 1rem 0.5rem;
  border-radius: 14px;
  border: 2px solid #ddd;
  transition: all 0.3s ease;
}
.journey-grad-emoji { font-size: 2.4rem; line-height: 1; }
.journey-grad-label { font-weight: 700; font-size: 0.95rem; margin: 0.3rem 0; }
.journey-grad-status { font-size: 0.8rem; color: #666; }
.journey-grad-on {
  background: linear-gradient(135deg, #FFF8E7, #FFE4B5);
  border-color: #FFD700;
  box-shadow: 0 4px 14px rgba(255,215,0,0.3);
  animation: grad-shine 3s ease-in-out infinite;
}
@keyframes grad-shine {
  0%, 100% { box-shadow: 0 4px 14px rgba(255,215,0,0.3); }
  50% { box-shadow: 0 4px 22px rgba(255,215,0,0.6); }
}
.journey-grad-off { opacity: 0.55; filter: grayscale(0.4); }

/* Timeline */
.journey-timeline { display: flex; flex-direction: column; gap: 0.6rem; }
.journey-event {
  display: flex; gap: 0.85rem;
  padding: 0.85rem;
  background: #F8F9FB;
  border-radius: 12px;
  border-left: 4px solid #4ECDC4;
}
.jev-future {
  background: #FFF8E1;
  border-left-color: #FFA500;
  border-style: dashed;
  border-style: solid;
  border-left-style: dashed;
}
.journey-ev-marker { font-size: 1.5rem; line-height: 1.2; flex-shrink: 0; }
.journey-ev-body { flex: 1; }
.journey-ev-head { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.journey-ev-emoji { font-size: 1.25rem; }
.journey-ev-title { font-weight: 700; flex: 1; min-width: 60%; }
.journey-ev-hours {
  background: #FF6B9D;
  color: white;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.journey-ev-date { font-size: 0.82rem; color: #666; margin: 0.3rem 0; }
.journey-ev-chips { margin-top: 0.35rem; }
.journey-ev-aj {
  display: inline-block;
  margin-top: 0.4rem;
  background: linear-gradient(135deg, #A06CD5, #6A4C93);
  color: white;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.journey-footer {
  text-align: center;
  padding: 1rem;
  color: #777;
  border-top: 1px dashed #ddd;
  margin-top: 1rem;
}

/* ============ 🎉 MILESTONE CELEBRATION ============ */
.milestone-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}
.milestone-card {
  background: white;
  border-radius: 28px;
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  border: 6px solid var(--milestone-color, #FFD56B);
  animation: milestone-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes milestone-pop {
  0% { transform: scale(0.5) rotate(-10deg); opacity: 0; }
  60% { transform: scale(1.08) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.milestone-emoji {
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 0.85rem;
  animation: emoji-bounce 1.2s ease-in-out infinite;
}
@keyframes emoji-bounce {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-12px) rotate(5deg); }
}
.milestone-title {
  font-family: 'Bungee', cursive;
  color: var(--milestone-color, #FFA500);
  margin: 0.4rem 0;
  font-size: 1.5rem;
  line-height: 1.15;
}
.milestone-message {
  font-size: 1.05rem;
  color: #333;
  margin: 0.6rem 0;
}
.milestone-pebbles {
  background: linear-gradient(135deg, #FFE4F1, #FFF8E7);
  border-radius: 14px;
  padding: 0.8rem;
  margin: 1rem 0;
  font-size: 0.95rem;
}

/* Confetti pieces */
.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.confetti-piece {
  position: absolute;
  width: 12px;
  height: 18px;
  top: -30px;
  animation: confetti-fall 2.2s ease-in forwards;
  opacity: 0.9;
  border-radius: 2px;
}
.confetti-piece.confetti-emoji {
  font-size: 1.5rem;
  width: auto; height: auto;
  background: transparent !important;
}
@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0.6;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .team-totals-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .team-kid-card { padding: 0.85rem; }
  .team-kid-total-num { font-size: 1.4rem; }
  .journey-card { padding: 1rem; margin: 0.5rem auto; }
  .journey-header { flex-direction: column; text-align: center; }
  .journey-grads { grid-template-columns: 1fr; }
  .journey-pillar-marker { font-size: 0.85rem; width: 22px; height: 22px; top: -6px; }
  .milestone-emoji { font-size: 4rem; }
  .milestone-title { font-size: 1.2rem; }
  .milestone-card { padding: 1.75rem 1.25rem; }
}
@media (max-width: 400px) {
  .team-totals-grid { gap: 0.5rem; }
  .team-pillar-card { padding: 0.7rem 0.4rem; }
  .team-pillar-hours-big { font-size: 1.4rem; }
}

/* ============================================================================
   🐾 PEBBLES 404 PAGE — kid-friendly "you got lost" page
   ============================================================================ */
.pebbles-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #fff1f5 0%, #fff7e0 30%, #e0f4ff 60%, #f0e6ff 100%);
  background-size: 200% 200%;
  animation: pebbles-404-bg 12s ease infinite;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@keyframes pebbles-404-bg {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.pebbles-404-card {
  max-width: 520px;
  width: 100%;
  background: white;
  border-radius: 28px;
  padding: 36px 28px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pebbles-404-card::before {
  content: "";
  position: absolute;
  top: -50px; right: -50px;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(255,107,157,0.15), transparent 70%);
  border-radius: 50%;
}

.pebbles-404-card::after {
  content: "";
  position: absolute;
  bottom: -50px; left: -50px;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(78,205,196,0.15), transparent 70%);
  border-radius: 50%;
}

.pebbles-404-dog {
  position: relative;
  height: 120px;
  margin-bottom: 8px;
}

.pebbles-404-emoji {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%) rotate(-15deg);
  font-size: 28px;
  animation: pebbles-404-spin 4s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes pebbles-404-spin {
  0%, 100% { transform: translateX(-50%) rotate(-15deg); }
  50% { transform: translateX(-50%) rotate(15deg); }
}

.pebbles-404-face {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  font-size: 90px;
  animation: pebbles-404-bounce 2s ease-in-out infinite;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.15));
}

@keyframes pebbles-404-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-12px); }
}

.pebbles-404-paws {
  position: absolute;
  bottom: -8px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 22px;
}

.pebbles-404-paws span {
  animation: pebbles-404-paw 1.5s ease-in-out infinite;
  opacity: 0.7;
}

.pebbles-404-paws span:nth-child(1) { animation-delay: 0s; }
.pebbles-404-paws span:nth-child(2) { animation-delay: 0.2s; }
.pebbles-404-paws span:nth-child(3) { animation-delay: 0.4s; }
.pebbles-404-paws span:nth-child(4) { animation-delay: 0.6s; }

@keyframes pebbles-404-paw {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-6px) scale(1.1); opacity: 1; }
}

.pebbles-404-title {
  font-size: 26px;
  font-weight: 800;
  margin: 12px 0 8px;
  color: #2d3748;
  line-height: 1.2;
  position: relative;
}

.pebbles-404-subtitle {
  font-size: 16px;
  color: #718096;
  margin: 0 0 20px;
  position: relative;
}

.pebbles-404-speech {
  background: linear-gradient(135deg, #fff7e0, #ffe9d6);
  border: 2px dashed #ffb84d;
  border-radius: 18px;
  padding: 16px 18px;
  margin: 0 0 24px;
  font-size: 15px;
  color: #5a4a2f;
  line-height: 1.5;
  position: relative;
}

.pebbles-404-speech p {
  margin: 0;
}

.pebbles-404-home-btn {
  display: inline-block;
  background: linear-gradient(135deg, #FF6B9D, #FFB84D);
  color: white;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(255,107,157,0.35), 0 2px 4px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin: 0 0 28px;
  position: relative;
}

.pebbles-404-home-btn:hover,
.pebbles-404-home-btn:focus {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(255,107,157,0.45), 0 4px 8px rgba(0,0,0,0.1);
}

.pebbles-404-home-btn:active {
  transform: translateY(0) scale(0.98);
}

.pebbles-404-tips {
  background: #f7fafc;
  border-radius: 14px;
  padding: 14px 18px;
  text-align: left;
  margin: 0 0 20px;
  position: relative;
}

.pebbles-404-tips h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #2d3748;
}

.pebbles-404-tips ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
}

.pebbles-404-tips li {
  margin-bottom: 4px;
}

.pebbles-404-tips code {
  background: #edf2f7;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: #d53f8c;
}

.pebbles-404-signoff {
  font-size: 13px;
  color: #a0aec0;
  font-style: italic;
  margin: 0;
  position: relative;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .pebbles-404-card { padding: 28px 20px 24px; border-radius: 22px; }
  .pebbles-404-title { font-size: 22px; }
  .pebbles-404-subtitle { font-size: 14px; }
  .pebbles-404-face { font-size: 72px; top: 16px; }
  .pebbles-404-dog { height: 100px; }
  .pebbles-404-home-btn { font-size: 15px; padding: 14px 22px; }
  .pebbles-404-speech { font-size: 14px; padding: 14px 16px; }
}

/* ============================================================================
   🏷️ ASSET REGISTER PAGE
   ============================================================================ */
.assets-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #fff7ed 0%, #ffe0ec 100%);
  padding: 16px;
  font-family: 'Fredoka', -apple-system, BlinkMacSystemFont, sans-serif;
}

.assets-header {
  max-width: 1200px;
  margin: 0 auto 24px;
  text-align: center;
}
.assets-back {
  display: inline-block;
  margin-bottom: 12px;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
}
.assets-back:hover { background: white; }
.assets-header h1 {
  font-size: 32px;
  margin: 0 0 6px;
  color: #2d3748;
}
.assets-tagline {
  color: #555;
  font-size: 15px;
  margin: 0;
}

/* Dashboard stats */
.assets-dashboard {
  max-width: 1200px;
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.assets-stat {
  background: white;
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.15s;
}
.assets-stat:hover { transform: translateY(-2px); }
.assets-stat-icon { font-size: 28px; line-height: 1; }
.assets-stat-value {
  font-size: 26px;
  font-weight: 800;
  color: #2d3748;
  margin: 6px 0 2px;
}
.assets-stat-label {
  font-size: 12px;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.assets-stat-warning {
  background: linear-gradient(135deg, #fff5f5, #ffe0e0);
  border: 2px solid #ffaaaa;
}

/* Toolbar */
.assets-toolbar {
  max-width: 1200px;
  margin: 0 auto 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  background: white;
  padding: 12px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.asset-search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
}
.asset-search-input:focus { outline: none; border-color: #FF6B9D; }
.asset-filter-select {
  padding: 10px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: white;
  cursor: pointer;
}
.asset-add-btn, .asset-print-btn {
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s, box-shadow 0.15s;
}
.asset-add-btn {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  box-shadow: 0 4px 10px rgba(16,185,129,0.3);
}
.asset-print-btn {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: white;
  box-shadow: 0 4px 10px rgba(59,130,246,0.3);
}
.asset-add-btn:hover, .asset-print-btn:hover { transform: translateY(-1px); }

/* Helper notice */
.asset-helper-notice {
  max-width: 1200px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #fff7e0, #ffe9d6);
  border: 2px dashed #f59e0b;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  color: #92400e;
}

/* Asset grid */
.assets-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding-bottom: 60px;
}
.assets-loading, .assets-error, .assets-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  background: white;
  border-radius: 16px;
  color: #718096;
}
.assets-empty-icon { font-size: 60px; margin-bottom: 12px; }
.assets-empty h2 { margin: 0 0 8px; color: #2d3748; }

/* Asset card */
.asset-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}
.asset-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}
.asset-card-photo {
  height: 140px;
  background: linear-gradient(135deg, #f0e6ff, #ffe6f5);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.asset-card-photo-placeholder { font-size: 56px; opacity: 0.6; }
.asset-card-id-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}
.asset-card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.asset-card-name { font-size: 16px; font-weight: 700; margin: 0; color: #2d3748; }
.asset-card-meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.asset-card-cat { color: #555; }
.asset-card-cond {
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.asset-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}
.asset-status-at-club { background: #d1fae5; color: #065f46; }
.asset-status-borrowed { background: #dbeafe; color: #1e3a8a; }
.asset-status-repair { background: #fee2e2; color: #991b1b; }
.asset-status-retired { background: #e5e7eb; color: #4b5563; }
.asset-card-cost {
  font-size: 13px;
  color: #555;
  font-weight: 600;
  margin-top: auto;
}

/* Modals */
.asset-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
}
.asset-modal-card {
  background: white;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  padding: 24px;
  position: relative;
  margin: 20px auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.asset-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f3f4f6;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.asset-modal-close:hover { background: #e5e7eb; }

.asset-detail-header { text-align: center; margin-bottom: 16px; }
.asset-detail-id {
  display: inline-block;
  background: #2d3748;
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.asset-detail-header h2 { margin: 0 0 8px; color: #2d3748; }
.asset-detail-meta { display: flex; gap: 8px; justify-content: center; font-size: 13px; }
.asset-detail-photo {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
}
.asset-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  background: #f9fafb;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 12px;
}
.asset-detail-notes {
  background: #fef9c3;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
}

.asset-action-block {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 12px;
  padding: 14px;
  margin: 14px 0;
}
.asset-action-block h3 { margin: 0 0 8px; }
.asset-action-block-borrowed { background: #eff6ff; border-color: #93c5fd; }
.asset-action-block-warning { background: #fef3c7; border-color: #fbbf24; }
.asset-borrow-form { display: flex; flex-direction: column; gap: 8px; }
.asset-borrow-form select, .asset-borrow-form input {
  padding: 10px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
.asset-action-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  background: #f3f4f6;
  color: #2d3748;
  transition: transform 0.1s;
}
.asset-action-btn:hover { transform: translateY(-1px); }
.asset-action-borrow {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
}
.asset-action-return {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: white;
}
.asset-action-edit {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}
.asset-action-delete {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.asset-parent-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #e5e7eb;
}

.asset-qr-section {
  background: #fafafa;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin: 14px 0;
}
.asset-qr-section h3 { margin: 0 0 6px; }
.asset-qr-img {
  display: block;
  margin: 12px auto;
  border: 2px solid white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.asset-history { margin-top: 14px; }
.asset-history summary {
  cursor: pointer;
  padding: 10px;
  background: #f9fafb;
  border-radius: 8px;
  font-weight: 600;
}
.asset-history-list { list-style: none; padding: 0; margin: 12px 0 0; }
.asset-history-list li {
  padding: 10px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
}
.asset-history-note { font-size: 12px; color: #6b7280; margin-top: 4px; }

/* Edit form */
.asset-edit-form { display: flex; flex-direction: column; gap: 12px; }
.asset-edit-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
}
.asset-edit-form label em { font-style: italic; font-weight: 400; color: #6b7280; font-size: 12px; }
.asset-edit-form input,
.asset-edit-form select,
.asset-edit-form textarea {
  padding: 10px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
.asset-edit-form textarea { min-height: 80px; resize: vertical; }
.asset-edit-actions { display: flex; gap: 8px; margin-top: 8px; }
.asset-edit-actions button { flex: 1; }

/* Handback */
.handback-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.handback-pick-btn {
  flex: 1;
  min-width: 100px;
  padding: 14px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.handback-pick-btn:hover { border-color: #FF6B9D; background: #fff5f8; }

.handback-result {
  background: #fef3c7;
  border: 2px solid #fbbf24;
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
}
.handback-clear { background: #d1fae5; border-color: #86efac; }
.handback-list { list-style: none; padding: 0; margin: 12px 0; }
.handback-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.handback-list li .muted { font-size: 12px; }
.handback-return-btn {
  margin-left: auto;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: #3B82F6;
  color: white;
  font-size: 12px;
  cursor: pointer;
}

/* Footer */
.assets-footer {
  max-width: 1200px;
  margin: 40px auto 20px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
  padding-bottom: 40px;
}
.assets-footer p { margin: 4px 0; }
.assets-footer .muted { font-size: 12px; }
.assets-footer a { color: #FF6B9D; }

/* Mobile */
@media (max-width: 600px) {
  .assets-header h1 { font-size: 24px; }
  .assets-toolbar { padding: 10px; gap: 8px; }
  .asset-search-input, .asset-filter-select { font-size: 13px; padding: 8px 10px; }
  .asset-add-btn, .asset-print-btn { padding: 8px 12px; font-size: 13px; }
  .assets-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .asset-card-photo { height: 110px; }
  .asset-card-name { font-size: 14px; }
  .asset-modal-card { padding: 18px 14px; margin: 10px auto; }
  .asset-detail-grid { grid-template-columns: 1fr; }
}

/* ============================================================================
   🏷️ ASSET REGISTER PAGE
   ============================================================================ */
.assets-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #fff7ed 0%, #fef3c7 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1f2937;
}

.assets-header {
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: white;
  padding: 28px 20px 36px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.assets-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.assets-back {
  display: inline-block;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  margin-bottom: 12px;
  transition: background 0.15s;
}
.assets-back:hover { background: rgba(255,255,255,0.3); }
.assets-header h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
}
.assets-subtitle {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  max-width: 700px;
  opacity: 0.95;
}

.assets-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* Helper mode banner */
.asset-helper-notice {
  background: #fff;
  border: 2px dashed #f59e0b;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #78350f;
}
.asset-helper-notice p { margin: 0; }
.asset-helper-notice a { color: #92400e; text-decoration: underline; font-weight: 600; }

/* Stats row */
.assets-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.assets-stat {
  background: white;
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #f3f4f6;
}
.assets-stat-warning {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffbeb, white);
}
.assets-stat-icon {
  font-size: 22px;
  margin-bottom: 4px;
}
.assets-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
}
.assets-stat-label {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

/* Controls */
.assets-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  align-items: center;
}
.assets-search-wrap { flex: 1; min-width: 200px; }
.assets-search-wrap input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  font-size: 14px;
  background: white;
}
.assets-search-wrap input:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
.assets-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.assets-filters select {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  font-size: 14px;
  background: white;
  cursor: pointer;
}
.assets-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.assets-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.1s, box-shadow 0.15s;
  font-family: inherit;
}
.assets-btn:active { transform: scale(0.97); }
.assets-btn-primary {
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: white;
  box-shadow: 0 3px 8px rgba(249,115,22,0.3);
}
.assets-btn-primary:hover { box-shadow: 0 5px 14px rgba(249,115,22,0.4); }
.assets-btn-primary:disabled {
  background: #d1d5db;
  color: #9ca3af;
  box-shadow: none;
  cursor: not-allowed;
}
.assets-btn-secondary {
  background: white;
  color: #374151;
  border: 1.5px solid #e5e7eb;
}
.assets-btn-secondary:hover { border-color: #f97316; color: #f97316; }
.assets-btn-ghost {
  background: transparent;
  color: #6b7280;
  border: 1px solid transparent;
}
.assets-btn-ghost:hover { background: #f3f4f6; }
.assets-btn-danger {
  background: white;
  color: #dc2626;
  border: 1.5px solid #fecaca;
}
.assets-btn-danger:hover { background: #fef2f2; border-color: #ef4444; }

/* Grid */
.assets-grid-wrap { margin-bottom: 32px; }
.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.assets-empty {
  grid-column: 1 / -1;
  background: white;
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  color: #6b7280;
  border: 2px dashed #e5e7eb;
}
.assets-empty-big { font-size: 48px; margin-bottom: 12px; }
.assets-empty h3 { color: #1f2937; margin: 8px 0; }

.asset-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border: 1px solid #f3f4f6;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}
.asset-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
.asset-card-overdue {
  border: 2px solid #ef4444;
  background: linear-gradient(180deg, #fef2f2, white);
}

.asset-card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.asset-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.asset-card-noimg .asset-card-noimg-icon,
.asset-card-noimg-icon {
  font-size: 56px;
  opacity: 0.5;
}
.asset-card-id-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-family: "SF Mono", Menlo, monospace;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.asset-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.asset-card-cat-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}
.asset-card-cat {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}
.asset-card-cond {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.asset-card-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: #111827;
  line-height: 1.3;
}
.asset-card-status {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  align-self: flex-start;
}
.asset-card-overdue-warn {
  font-size: 12px;
  color: #dc2626;
  font-weight: 700;
  background: #fee2e2;
  padding: 4px 8px;
  border-radius: 6px;
}
.asset-card-cost {
  font-size: 13px;
  color: #4b5563;
  font-weight: 600;
}
.asset-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 6px;
}
.asset-card-btn {
  flex: 1;
  min-width: 80px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  background: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.asset-card-btn:hover { transform: translateY(-1px); }
.asset-card-btn-view { color: #4b5563; }
.asset-card-btn-view:hover { border-color: #6b7280; color: #1f2937; }
.asset-card-btn-borrow { color: #f97316; border-color: #fed7aa; }
.asset-card-btn-borrow:hover { background: #fff7ed; }
.asset-card-btn-return { color: #10b981; border-color: #a7f3d0; }
.asset-card-btn-return:hover { background: #ecfdf5; }

/* MODALS */
.asset-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: asset-fade-in 0.2s ease;
}
@keyframes asset-fade-in { from { opacity: 0; } to { opacity: 1; } }

.asset-modal {
  background: white;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 24px 20px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  animation: asset-slide-up 0.25s ease;
}
@keyframes asset-slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.asset-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: #6b7280;
  font-weight: 700;
  transition: background 0.15s;
}
.asset-modal-close:hover { background: #e5e7eb; }

.asset-modal h2 {
  font-size: 20px;
  margin: 0 0 12px;
  padding-right: 40px;
  font-weight: 800;
}

/* Detail modal */
.asset-detail-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}
.asset-detail-id {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: #6b7280;
  background: #f3f4f6;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.asset-detail-name {
  font-size: 22px;
  margin: 0 0 10px;
  font-weight: 800;
}
.asset-detail-status {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}
.asset-detail-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.asset-detail-photo {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.asset-detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.asset-detail-photo-placeholder { font-size: 64px; opacity: 0.5; }
.asset-detail-info { font-size: 14px; line-height: 1.7; }
.asset-detail-row { padding: 4px 0; }
.asset-detail-row strong { color: #4b5563; min-width: 90px; display: inline-block; }
.asset-detail-notes { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid #f3f4f6; }

.asset-detail-qr-section {
  background: #fefce8;
  border: 1.5px dashed #facc15;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
}
.asset-detail-qr-section h3 { margin: 0 0 6px; font-size: 16px; }
.asset-detail-qr-section p { margin: 0 0 12px; font-size: 13px; }
.asset-qr-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 12px;
}
.asset-qr-img { width: 160px; height: 160px; display: block; }
.asset-qr-meta { text-align: center; }
.asset-qr-name { font-weight: 700; font-size: 14px; }
.asset-qr-id { font-family: monospace; font-size: 12px; color: #6b7280; }
.asset-qr-club { font-size: 11px; color: #9ca3af; margin-top: 4px; }

.asset-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}
.asset-detail-history { padding: 8px 0; }
.asset-detail-history summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.asset-history-list { list-style: none; padding: 0; margin: 8px 0; }
.asset-history-list li {
  padding: 10px 12px;
  border-left: 3px solid #fbbf24;
  background: #fffbeb;
  border-radius: 0 8px 8px 0;
  margin-bottom: 6px;
  font-size: 13px;
}
.asset-history-note { font-size: 12px; color: #6b7280; margin-top: 4px; font-style: italic; }

/* Form */
.asset-form { display: flex; flex-direction: column; gap: 14px; }
.asset-form label { display: flex; flex-direction: column; gap: 5px; }
.asset-form label span { font-size: 13px; font-weight: 600; color: #4b5563; }
.asset-form input, .asset-form select, .asset-form textarea {
  padding: 10px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: white;
}
.asset-form input:focus, .asset-form select:focus, .asset-form textarea:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
.asset-form textarea { resize: vertical; min-height: 60px; }
.asset-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.asset-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}
.asset-form small.muted { font-size: 12px; color: #9ca3af; }

/* Borrow / return prompt */
.asset-modal-prompt { max-width: 480px; }
.asset-borrow-reminder {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border-left: 4px solid #f97316;
  padding: 12px 14px;
  border-radius: 0 10px 10px 0;
  font-size: 13px;
  line-height: 1.5;
}
.asset-borrow-reminder p { margin: 0; }

/* Handback modal */
.asset-modal-handback { max-width: 700px; }
.asset-form-label { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.asset-form-label span { font-size: 13px; font-weight: 600; color: #4b5563; }
.asset-form-label select {
  padding: 10px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  background: white;
}
.handback-clear {
  text-align: center;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  padding: 24px;
  border-radius: 14px;
}
.handback-clear-icon { font-size: 56px; }
.handback-clear h3 { margin: 8px 0; }
.handback-header { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #f3f4f6; }
.handback-header h3 { margin: 0 0 4px; }
.handback-total { margin: 0; font-size: 14px; color: #6b7280; }
.handback-checklist { list-style: none; padding: 0; margin: 0 0 20px; }
.handback-item {
  background: #fef3c7;
  border: 1.5px solid #fde68a;
  border-radius: 10px;
  margin-bottom: 8px;
  padding: 10px 14px;
}
.handback-item label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}
.handback-item input[type="checkbox"] {
  margin-top: 3px;
  transform: scale(1.3);
  cursor: pointer;
}
.handback-item-label { flex: 1; font-size: 14px; }
.handback-borrowed-since { font-size: 11px; margin-top: 2px; }
.handback-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Toast */
.asset-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1f2937;
  color: white;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  max-width: 90vw;
  text-align: center;
  pointer-events: none;
}
.asset-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.asset-toast-success { background: #10b981; }
.asset-toast-error { background: #dc2626; }

/* Footer */
.assets-footer {
  margin-top: 30px;
  padding: 20px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
  border-top: 1px solid #fde68a;
}
.assets-footer .muted { font-size: 12px; }

/* Mobile tweaks */
@media (max-width: 600px) {
  .assets-header h1 { font-size: 22px; }
  .assets-header { padding: 20px 16px 24px; }
  .assets-main { padding: 16px 14px 50px; }
  .assets-stats-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .assets-stat { padding: 12px 10px; }
  .assets-stat-value { font-size: 18px; }
  .assets-grid { grid-template-columns: 1fr; }
  .asset-modal { padding: 24px 18px 16px; border-radius: 16px; }
  .asset-detail-grid { grid-template-columns: 1fr; }
  .asset-detail-photo { width: 100%; height: 200px; }
  .asset-form-row { grid-template-columns: 1fr; }
  .assets-actions { width: 100%; }
  .assets-actions .assets-btn { flex: 1; justify-content: center; }
  .assets-controls { flex-direction: column; }
  .assets-search-wrap, .assets-filters { width: 100%; }
  .assets-filters select { flex: 1; }
}

/* ============================================================================
   💚 FUNDRAISING PAGE — Containers for Change Hub
   ============================================================================ */

.fundraising-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
  color: #064e3b;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.fundraising-header {
  background: linear-gradient(135deg, #047857 0%, #10b981 50%, #34d399 100%);
  color: white;
  padding: 24px 16px 48px;
  box-shadow: 0 4px 20px rgba(6, 78, 59, 0.2);
}

.fundraising-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.fundraising-back {
  display: inline-block;
  color: white;
  text-decoration: none;
  background: rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  transition: background 0.2s;
}
.fundraising-back:hover { background: rgba(255,255,255,0.32); }

.fundraising-eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.92;
  margin-bottom: 8px;
}

.fundraising-header h1 {
  font-size: clamp(28px, 5vw, 42px);
  margin: 0 0 12px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.fundraising-subtitle {
  font-size: clamp(15px, 2vw, 17px);
  max-width: 700px;
  margin: 0 auto 28px;
  opacity: 0.95;
  line-height: 1.5;
}

/* Member card — the big hero card with C11761772 */
.fundraising-member-card {
  background: white;
  color: #064e3b;
  border-radius: 20px;
  padding: 24px 24px 20px;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
  border: 4px dashed #10b981;
  position: relative;
}

.fundraising-member-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 6px;
}

.fundraising-member-number {
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: clamp(36px, 7vw, 58px);
  font-weight: 800;
  color: #10b981;
  letter-spacing: 4px;
  line-height: 1.1;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(16,185,129,0.15);
}

.fundraising-member-org {
  font-size: 18px;
  font-weight: 700;
  color: #047857;
  margin-bottom: 16px;
}

.fundraising-member-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Main content area */
.fundraising-main {
  max-width: 1100px;
  margin: -32px auto 0;
  padding: 0 16px 64px;
  position: relative;
  z-index: 2;
}

/* CForC snapshot section — the 4 circles */
.fund-snapshot-section {
  background: white;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(6, 78, 59, 0.08);
}

.fund-snapshot-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}
.fund-snapshot-title > span:first-child {
  font-size: 18px;
  font-weight: 700;
  color: #047857;
}
.fund-snapshot-synced {
  font-size: 13px;
  color: #6b7280;
}

.fund-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.fund-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.fund-stat-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #10b981;
  background: linear-gradient(135deg, #ecfdf5 0%, white 100%);
  position: relative;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.18);
  transition: transform 0.2s;
}
.fund-stat-circle:hover { transform: scale(1.04); }
.fund-stat-circle-cans { border-color: #059669; background: linear-gradient(135deg, #d1fae5 0%, white 100%); }
.fund-stat-circle-cause { border-color: #0d9488; background: linear-gradient(135deg, #ccfbf1 0%, white 100%); }
.fund-stat-circle-lifetime { border-color: #0f766e; background: linear-gradient(135deg, #99f6e4 0%, white 100%); }

.fund-stat-value {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  color: #064e3b;
}

.fund-stat-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #047857;
  font-weight: 700;
  margin-top: 10px;
  max-width: 140px;
  line-height: 1.3;
}

.fund-snapshot-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 16px;
  border-top: 1px solid #d1fae5;
}

/* Adult-mode unlock notice */
.fund-adult-notice {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.fund-adult-notice p { margin: 0; color: #78350f; flex: 1; min-width: 200px; }

/* ============================================================================
   🎚️ PACE SIMULATOR
   ============================================================================ */
.fund-pace-section {
  margin-bottom: 24px;
}

.fund-pace-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(6, 78, 59, 0.1);
  border: 3px solid #10b981;
  position: relative;
  overflow: hidden;
}
.fund-pace-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
}

.fund-pace-header { margin-bottom: 18px; }
.fund-pace-header h2 {
  margin: 0 0 4px;
  color: #047857;
  font-size: clamp(20px, 3vw, 26px);
}
.fund-pace-sub {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
}

.fund-pace-controls {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
}

.fund-pace-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 16px;
  font-weight: 600;
  color: #064e3b;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.fund-pace-amount {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  color: #10b981;
  font-variant-numeric: tabular-nums;
}

.fund-pace-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, #fef3c7 0%, #6ee7b7 30%, #10b981 50%, #047857 100%);
  outline: none;
  cursor: pointer;
  margin: 8px 0 16px;
  border: 2px solid #10b981;
}
.fund-pace-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: 4px solid #10b981;
  cursor: grab;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  transition: transform 0.15s;
}
.fund-pace-slider::-webkit-slider-thumb:hover,
.fund-pace-slider::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
.fund-pace-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  border: 4px solid #10b981;
  cursor: grab;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.fund-pace-ticks {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.fund-pace-tick {
  background: white;
  border: 2px solid #d1fae5;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #047857;
  cursor: pointer;
  transition: all 0.15s;
}
.fund-pace-tick:hover {
  border-color: #10b981;
  background: #ecfdf5;
  transform: translateY(-1px);
}
.fund-pace-tick-active {
  background: #10b981;
  color: white;
  border-color: #047857;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.fund-pace-vibe {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
}
.fund-pace-vibe-label {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}
.fund-pace-vibe-tip {
  font-size: 14px;
  color: #374151;
}

.fund-pace-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.fund-pace-stat {
  background: #f9fafb;
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.15s;
}
.fund-pace-stat-hero {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
  grid-column: 1 / -1;
}
@media (min-width: 700px) {
  .fund-pace-stat-hero { grid-column: auto; }
}
.fund-pace-stat-emoji { font-size: 28px; line-height: 1; margin-bottom: 6px; }
.fund-pace-stat-value {
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 800;
  color: #064e3b;
  margin-bottom: 2px;
}
.fund-pace-stat-label {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.fund-pace-goals-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f9fafb;
  border-radius: 12px;
  padding: 12px;
}
.fund-pace-goal-mini {
  display: flex;
  gap: 12px;
  align-items: center;
  background: white;
  border-radius: 10px;
  padding: 10px 12px;
  border-left: 3px solid #10b981;
}
.fund-pace-goal-mini-emoji { font-size: 24px; }
.fund-pace-goal-mini-text { flex: 1; min-width: 0; }
.fund-pace-goal-mini-title {
  font-weight: 700;
  color: #064e3b;
  font-size: 14px;
  margin-bottom: 2px;
}
.fund-pace-goal-mini-meta {
  font-size: 12px;
  color: #6b7280;
}

/* ============================================================================
   🎯 SAVINGS GOALS GRID
   ============================================================================ */
.fund-goals-section {
  background: white;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(6, 78, 59, 0.08);
}
.fund-goals-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}
.fund-goals-header h2 {
  margin: 0;
  color: #047857;
  font-size: clamp(20px, 3vw, 26px);
}
.fund-goals-actions { display: flex; gap: 8px; }

.fund-goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.fund-goal-card {
  background: linear-gradient(135deg, #f9fafb 0%, white 100%);
  border-radius: 16px;
  padding: 20px;
  border: 2px solid #d1fae5;
  position: relative;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.fund-goal-card:hover {
  transform: translateY(-2px);
  border-color: #10b981;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.18);
}
.fund-goal-card-achieved {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
  animation: fund-achieved-glow 2s ease-in-out infinite;
}
@keyframes fund-achieved-glow {
  0%, 100% { box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2); }
  50% { box-shadow: 0 4px 32px rgba(245, 158, 11, 0.5); }
}

.fund-goal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.fund-goal-emoji { font-size: 44px; line-height: 1; }

.fund-goal-priority {
  background: #e5e7eb;
  color: #374151;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.fund-goal-priority-1 { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); color: white; }
.fund-goal-priority-2 { background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%); color: white; }
.fund-goal-priority-3 { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); color: white; }

.fund-goal-title {
  margin: 0 0 6px;
  color: #064e3b;
  font-size: 18px;
  line-height: 1.3;
}
.fund-goal-desc {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.4;
}

.fund-goal-progress-wrap { margin-bottom: 12px; }
.fund-goal-progress {
  position: relative;
  height: 24px;
  background: #f3f4f6;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.fund-goal-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
  border-radius: 12px 0 0 12px;
  transition: width 0.4s ease-out;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.fund-goal-card-achieved .fund-goal-progress-fill {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
  border-radius: 12px;
}
.fund-goal-progress-projected {
  position: absolute;
  top: 0;
  height: 100%;
  background: repeating-linear-gradient(45deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.25) 4px, rgba(16, 185, 129, 0.4) 4px, rgba(16, 185, 129, 0.4) 8px);
  transition: all 0.4s ease-out;
  pointer-events: none;
}
.fund-goal-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 6px;
  color: #4b5563;
}
.fund-goal-progress-labels strong { color: #064e3b; }

.fund-goal-pace {
  background: #f9fafb;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
}
.fund-goal-pace-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  color: #4b5563;
}
.fund-goal-pace-row strong { color: #064e3b; }
.fund-goal-pace-eta {
  padding-top: 6px;
  margin-top: 6px;
  border-top: 1px dashed #d1d5db;
  font-weight: 600;
}
.fund-goal-pace-eta strong { color: #10b981; font-size: 15px; }

.fund-goal-achieved-banner {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.fund-goal-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}
.fund-goal-actions .fund-btn { flex: 1; justify-content: center; }

/* ============================================================================
   📋 DONATION LOG
   ============================================================================ */
.fund-donations-section {
  background: white;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(6, 78, 59, 0.08);
}
.fund-donations-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}
.fund-donations-header h2 { margin: 0; color: #047857; font-size: clamp(20px, 3vw, 26px); }

.fund-donations-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fund-donations-row {
  display: grid;
  grid-template-columns: 1fr 1fr 0.6fr 1.2fr 1.4fr 0.6fr;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  background: #f9fafb;
  border-left: 4px solid #10b981;
  font-size: 14px;
}
.fund-donations-row-header {
  background: transparent;
  border-left: 4px solid transparent;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b7280;
  font-weight: 700;
  padding: 6px 12px;
}
.fund-donations-row-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}
.fund-icon-btn {
  background: white;
  border: 1px solid #d1fae5;
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s;
}
.fund-icon-btn:hover { background: #ecfdf5; border-color: #10b981; }
.fund-icon-btn-danger:hover { background: #fee2e2; border-color: #ef4444; }

.muted { color: #9ca3af; font-style: italic; }

/* ============================================================================
   📘 HOW-TO STEPS
   ============================================================================ */
.fund-how-section {
  background: white;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(6, 78, 59, 0.08);
}
.fund-how-section h2 { margin: 0 0 18px; color: #047857; font-size: clamp(20px, 3vw, 26px); }

.fund-how-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fund-how-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #f9fafb;
  border-radius: 14px;
  padding: 16px;
  border-left: 4px solid #10b981;
}
.fund-how-step-num {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: white;
  font-weight: 800;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.fund-how-step-body { flex: 1; }
.fund-how-step-body strong { color: #064e3b; font-size: 16px; display: block; margin-bottom: 4px; }
.fund-how-step-body p { margin: 4px 0 10px; color: #4b5563; font-size: 14px; }
.fund-how-step-body code {
  background: #064e3b;
  color: #6ee7b7;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-weight: 700;
}

.fund-store-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.fund-store-badge {
  background: #064e3b;
  color: white;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
}
.fund-store-badge:hover { background: #10b981; }

/* ============================================================================
   FOOTER
   ============================================================================ */
.fund-footer {
  text-align: center;
  padding: 16px;
  color: #4b5563;
  font-size: 13px;
}
.fund-footer p { margin: 4px 0; }
.fund-footer-meta { font-size: 12px; color: #6b7280; }

/* ============================================================================
   BUTTONS
   ============================================================================ */
.fund-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
  font-family: inherit;
}
.fund-btn:hover { transform: translateY(-1px); }
.fund-btn:active { transform: translateY(0); }

.fund-btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.fund-btn-primary:hover { box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45); }

.fund-btn-secondary {
  background: white;
  color: #047857;
  border-color: #10b981;
}
.fund-btn-secondary:hover { background: #ecfdf5; }

.fund-btn-ghost {
  background: rgba(255,255,255,0.7);
  color: #064e3b;
  border-color: #d1fae5;
}
.fund-btn-ghost:hover { background: white; border-color: #10b981; }

.fund-btn-danger {
  background: white;
  color: #dc2626;
  border-color: #fecaca;
}
.fund-btn-danger:hover { background: #fee2e2; border-color: #ef4444; }

/* ============================================================================
   MODALS
   ============================================================================ */
.fund-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 78, 59, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: fund-fade-in 0.2s ease-out;
}
@keyframes fund-fade-in { from { opacity: 0; } to { opacity: 1; } }

.fund-modal {
  background: white;
  border-radius: 20px;
  padding: 24px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: fund-slide-up 0.25s ease-out;
}
@keyframes fund-slide-up { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.fund-modal h2 { margin: 0 0 8px; color: #047857; padding-right: 32px; }
.fund-modal p { color: #4b5563; line-height: 1.5; }
.fund-modal-hint { font-size: 13px; color: #6b7280; }

.fund-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f3f4f6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  color: #4b5563;
  transition: all 0.15s;
}
.fund-modal-close:hover { background: #e5e7eb; color: #064e3b; transform: rotate(90deg); }

.fund-modal-qr { max-width: 400px; text-align: center; }
.fund-qr-display {
  margin: 16px auto;
  padding: 16px;
  background: white;
  border: 3px dashed #10b981;
  border-radius: 12px;
  display: inline-block;
}
.fund-qr-link { font-size: 13px; word-break: break-all; }
.fund-qr-url { color: #047857; font-family: 'Courier New', monospace; font-size: 11px; }

/* Forms */
.fund-form { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.fund-form label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #064e3b;
}
.fund-form input,
.fund-form select,
.fund-form textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 2px solid #d1fae5;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: white;
  color: #064e3b;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.fund-form input:focus,
.fund-form select:focus,
.fund-form textarea:focus { outline: none; border-color: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15); }
.fund-form textarea { resize: vertical; min-height: 60px; }

.fund-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.fund-form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* Empty state */
.fund-empty {
  text-align: center;
  padding: 32px 16px;
  color: #6b7280;
  background: #f9fafb;
  border-radius: 12px;
  border: 2px dashed #d1fae5;
}
.fund-empty-emoji { font-size: 56px; margin-bottom: 8px; }
.fund-empty h3 { margin: 0 0 6px; color: #047857; }
.fund-empty p { margin: 0; font-size: 14px; }
.fund-empty code {
  background: #064e3b; color: #6ee7b7;
  padding: 2px 6px; border-radius: 4px;
  font-family: 'Courier New', monospace;
}

/* ============================================================================
   TOAST + CONFETTI
   ============================================================================ */
.fund-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s ease-out;
  max-width: 90vw;
  text-align: center;
}
.fund-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.fund-toast-error { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }

.fund-confetti {
  position: fixed;
  top: -20px;
  font-size: 28px;
  pointer-events: none;
  z-index: 1999;
  animation: fund-fall linear forwards;
}
@keyframes fund-fall {
  to { transform: translateY(105vh) rotate(720deg); opacity: 0; }
}

/* ============================================================================
   MOBILE TWEAKS
   ============================================================================ */
@media (max-width: 700px) {
  .fund-hide-mobile { display: none; }
  .fund-donations-row {
    grid-template-columns: 1fr 1fr 1.4fr 0.5fr;
    font-size: 13px;
  }
  .fund-donations-row > div:nth-child(3) { display: none; } /* hide cans col */
  .fund-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .fund-stat-circle { width: 100px; height: 100px; border-width: 3px; }
  .fund-stat-value { font-size: 18px; }
  .fund-stat-label { font-size: 10px; max-width: 110px; }
  .fund-form-row { grid-template-columns: 1fr; }
  .fund-modal { padding: 18px; }
  .fundraising-main { padding: 0 12px 48px; }
  .fund-snapshot-section,
  .fund-pace-card,
  .fund-goals-section,
  .fund-donations-section,
  .fund-how-section { padding: 18px; }
}

/* ============================================================================
   🎯 DofE COVERAGE VIEW (on /dofe-syllabus page)
   ============================================================================ */
.dofe-coverage-section { background: linear-gradient(180deg, #FFF 0%, #F8FCFF 100%); }
.dofe-coverage-loading { padding: 1.5rem; text-align: center; color: #888; font-style: italic; }
.dofe-coverage-error   { padding: 1rem 1.2rem; background: #FDECEA; color: #E63946; border-radius: 12px; border-left: 4px solid #E63946; }

/* TL;DR alert at top */
.dofe-coverage-alert {
  padding: 1rem 1.2rem;
  border-radius: 14px;
  margin-bottom: 1.2rem;
  border-left: 5px solid;
  font-size: 1rem;
  line-height: 1.5;
}
.dofe-coverage-alert.alert-gap    { background: #FDECEA; border-color: #E63946; color: #8B1A23; }
.dofe-coverage-alert.alert-warn   { background: #FFF8E1; border-color: #E0A800; color: #6A4A00; }
.dofe-coverage-alert.alert-strong { background: #E8F5E9; border-color: #2D8F4E; color: #1B5E20; }
.alert-pillar-tag {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0.15rem;
}

/* Stats row */
.dofe-coverage-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}
.dofe-coverage-stat {
  background: white;
  border: 1px solid #E0E7EE;
  border-radius: 12px;
  padding: 0.9rem 0.6rem;
  text-align: center;
}
.dofe-coverage-stat-num { font-size: 1.8rem; font-weight: 700; color: #2D8F4E; line-height: 1.1; }
.dofe-coverage-stat-label { font-size: 0.78rem; color: #555; margin-top: 0.25rem; line-height: 1.3; }
.dofe-coverage-tldr {
  background: #F0F8FF;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* Per-pillar cards */
.dofe-coverage-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}
.dofe-coverage-pillar {
  background: white;
  border: 1px solid #E0E7EE;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.dofe-coverage-pillar-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.dofe-coverage-pillar-title { display: flex; gap: 0.8rem; align-items: flex-start; }
.dofe-coverage-pillar-emoji { font-size: 2.5rem; line-height: 1; }
.dofe-coverage-pillar-title h3 { margin: 0; font-size: 1.4rem; }
.dofe-coverage-pillar-kid { margin: 0.2rem 0 0 0; color: #666; font-size: 0.95rem; font-style: italic; }
.dofe-coverage-badge {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: help;
}

.dofe-coverage-bar-wrap { margin: 1rem 0 0.6rem; }
.dofe-coverage-bar {
  width: 100%;
  height: 18px;
  background: #F0F0F0;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.dofe-coverage-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 4px;
}
.dofe-coverage-bar-label {
  font-size: 0.88rem;
  color: #444;
  margin-top: 0.35rem;
}

.dofe-coverage-counts {
  display: flex;
  gap: 1.5rem;
  margin: 0.6rem 0 0.4rem;
  font-size: 0.9rem;
  color: #555;
  flex-wrap: wrap;
}

/* Scheduled-event list inside a pillar card */
.dofe-coverage-event-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dofe-coverage-event {
  display: flex;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  background: #F8FCFF;
  border: 1px solid #E0E7EE;
  border-radius: 10px;
  align-items: flex-start;
}
.dofe-coverage-event.is-past { opacity: 0.65; background: #F5F5F5; }
.dofe-coverage-event-emoji { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.dofe-coverage-event-body { flex: 1; min-width: 0; }
.dofe-coverage-event-title { font-weight: 600; font-size: 1rem; }
.dofe-coverage-event-meta { font-size: 0.85rem; color: #666; margin-top: 0.2rem; }
.dofe-coverage-event-extra { margin-top: 0.3rem; font-size: 0.8rem; color: #888; }
.dofe-coverage-event-bonus { font-style: italic; }
.dofe-coverage-past-tag {
  display: inline-block;
  background: #DDD;
  color: #666;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  font-size: 0.7rem;
  margin-left: 0.3rem;
  font-weight: 600;
}

.dofe-coverage-empty {
  background: #FFF8E1;
  border-left: 4px solid #E0A800;
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  margin: 0.5rem 0;
}
.dofe-coverage-empty strong { color: #6A4A00; }
.dofe-coverage-empty p { margin: 0.3rem 0 0; color: #555; font-size: 0.92rem; }

/* Recommendation block (gap fillers) */
.dofe-coverage-recs {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px dashed #DDD;
}
.dofe-coverage-recs h4 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.dofe-coverage-recs-hint { font-size: 0.85rem; color: #666; margin: 0 0 0.7rem; }
.dofe-coverage-recs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
}
.dofe-coverage-rec {
  background: white;
  border: 2px solid #E0E7EE;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.dofe-coverage-rec:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
.dofe-coverage-rec.rec-new {
  border-color: #FFD700;
  background: linear-gradient(135deg, #FFFBE6 0%, #FFFFFF 100%);
}
.dofe-coverage-rec.rec-scheduled { opacity: 0.85; }
.dofe-coverage-rec-top { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.35rem; }
.dofe-coverage-rec-emoji { font-size: 1.4rem; line-height: 1; }
.dofe-coverage-rec-name { font-weight: 600; font-size: 0.95rem; }
.dofe-coverage-rec-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.75rem; }
.dofe-coverage-rec-badge {
  background: #F0F8FF;
  color: #2D8F4E;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-weight: 600;
}
.rec-new .dofe-coverage-rec-badge { background: #FFF3CD; color: #856404; }
.dofe-coverage-rec-hours {
  background: #EEE;
  color: #555;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}
.rec-efficiency {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-weight: 600;
}
.rec-eff-triple { background: #FFE0E6; color: #C2185B; }
.rec-eff-double { background: #E3F2FD; color: #1565C0; }

/* All-events tagged table */
.dofe-coverage-events-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.8rem;
  font-size: 0.92rem;
}
.dofe-coverage-events-table thead th {
  background: #F0F8FF;
  padding: 0.6rem 0.7rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #B0DAEA;
}
.dofe-coverage-events-table tbody td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid #EEE;
  vertical-align: top;
}
.dofe-coverage-events-table tbody tr.event-past { opacity: 0.65; background: #FAFAFA; }
.dofe-coverage-events-table tbody tr.event-fun { background: #FFF8E1; }
.dofe-coverage-pillar-chip {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-right: 0.25rem;
  white-space: nowrap;
}
.dofe-coverage-event-fun {
  display: inline-block;
  background: #FFE0B2;
  color: #BF360C;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  font-style: italic;
}

/* Mobile */
@media (max-width: 700px) {
  .dofe-coverage-stats { grid-template-columns: repeat(2, 1fr); }
  .dofe-coverage-pillar { padding: 1rem; }
  .dofe-coverage-pillar-emoji { font-size: 2rem; }
  .dofe-coverage-pillar-title h3 { font-size: 1.15rem; }
  .dofe-coverage-counts { flex-direction: column; gap: 0.3rem; }
  .dofe-coverage-recs-grid { grid-template-columns: 1fr 1fr; }
  .dofe-coverage-events-table { font-size: 0.82rem; }
  .dofe-coverage-events-table thead th,
  .dofe-coverage-events-table tbody td { padding: 0.4rem 0.4rem; }
}

/* 🏅 DofE pillar chips on calendar event cards */
.dofe-event-chips {
  margin: 0.4rem 0;
  font-size: 0.85rem;
  color: #555;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}
.dofe-event-chip {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.dofe-event-chip-fun {
  background: #FFE0B2;
  color: #BF360C;
  border: 1px dashed #FF9800;
  font-style: italic;
}
.dofe-event-hours {
  background: #2D8F4E;
  color: white;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.2rem;
}

/* ============================================================================
   🗳️ ADVENTURE BACKLOG (Sprint Picker) — kid-friendly, ages 8-14
   Bright, chunky, rainbow accents, big tap targets, playful animations
   ============================================================================ */

.backlog-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #FFF8E1 0%, #E8F5E9 25%, #E3F2FD 50%, #F3E5F5 75%, #FFEBEE 100%);
  font-family: 'Fredoka', sans-serif;
  padding-bottom: 4rem;
}

.backlog-header {
  background: linear-gradient(135deg, #FF6B9D 0%, #FFA07A 25%, #FFD93D 50%, #6BCB77 75%, #4D96FF 100%);
  background-size: 300% 300%;
  animation: backlog-gradient-shift 12s ease infinite;
  padding: 1.5rem 1rem 2.5rem;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@keyframes backlog-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.backlog-header::before {
  content: '🎯 🗳️ 🏆 🚀 ✨';
  position: absolute; top: 10px; left: 0; right: 0;
  font-size: 1.5rem; opacity: 0.3; letter-spacing: 2rem;
  pointer-events: none;
}
.backlog-header-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.backlog-back {
  display: inline-block;
  background: rgba(255,255,255,0.95);
  color: #5B47BF;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.backlog-back:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.backlog-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  padding: 0.3rem 1rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.backlog-header h1 {
  font-family: 'Bungee', sans-serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin: 0 0 0.75rem;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.15);
  letter-spacing: 1px;
}
.backlog-subtitle {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.backlog-subtitle strong { background: rgba(255,255,255,0.25); padding: 0.1rem 0.4rem; border-radius: 6px; }

.backlog-main {
  max-width: 1100px;
  margin: -1rem auto 0;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ---- Sprint banner ---- */
.sprint-banner {
  background: #fff;
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border: 3px solid #FFD93D;
}
.sprint-banner-inner { display: flex; align-items: center; gap: 1rem; }
.sprint-emoji { font-size: 3rem; animation: sprint-bounce 1.5s ease-in-out infinite; }
@keyframes sprint-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.sprint-text { flex: 1; }
.sprint-title { font-family: 'Bungee', sans-serif; font-size: 1.4rem; color: #E63946; margin-bottom: 0.2rem; }
.sprint-countdown { font-weight: 700; font-size: 1.1rem; color: #5B47BF; }
.sprint-ends { font-size: 0.85rem; color: #666; margin-top: 0.15rem; }

/* ---- Who am I banner ---- */
.whoami-banner {
  background: #fff;
  border-radius: 20px;
  padding: 1rem 1.25rem;
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 3px dashed #FFA07A;
}
.whoami-banner-active { border-style: solid; border-color: #6BCB77; background: linear-gradient(135deg, #E8F5E9, #fff); }
.whoami-banner-empty { background: linear-gradient(135deg, #FFF8E1, #fff); }
.whoami-emoji { font-size: 2rem; }
.whoami-banner div { flex: 1; line-height: 1.4; }
.whoami-banner strong { color: #5B47BF; }
.btn-clear-vote {
  background: #FFEBEE;
  color: #E63946;
  border: 2px solid #FFCDD2;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
}
.btn-clear-vote:hover { background: #FFCDD2; }

/* ---- Locked Winner ---- */
.locked-winner-card {
  background: linear-gradient(135deg, #FFD93D 0%, #FFA07A 100%);
  border-radius: 28px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 8px 24px rgba(255,165,0,0.3);
  border: 4px solid #fff;
  position: relative;
  overflow: hidden;
  animation: locked-pulse 2s ease-in-out infinite;
}
@keyframes locked-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(255,165,0,0.3); }
  50%      { box-shadow: 0 8px 32px rgba(255,165,0,0.6); }
}
.locked-winner-card::before {
  content: '🏆 ✨ 🎉 🌟 💫';
  position: absolute; top: -10px; right: -10px;
  font-size: 4rem; opacity: 0.15; transform: rotate(15deg);
  pointer-events: none;
}
.locked-emoji { font-size: 5rem; }
.locked-info { flex: 1; }
.locked-eyebrow { font-weight: 700; color: #5B47BF; text-shadow: 0 1px 2px rgba(255,255,255,0.5); }
.locked-name { font-family: 'Bungee', sans-serif; font-size: 1.8rem; color: #fff; margin: 0.3rem 0; text-shadow: 2px 2px 0 rgba(0,0,0,0.2); }
.locked-by { color: #5B47BF; margin: 0 0 0.75rem; font-size: 0.95rem; }
.locked-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.btn-pre-fill {
  background: #fff;
  color: #E63946;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  display: inline-block;
}
.btn-pre-fill:hover { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(0,0,0,0.2); }
.btn-unlock {
  background: rgba(255,255,255,0.5);
  color: #5B47BF;
  border: 2px solid #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
}

/* ---- Leaderboard ---- */
.backlog-leaderboard {
  background: #fff;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.leaderboard-title {
  font-family: 'Bungee', sans-serif;
  font-size: 1.4rem;
  color: #5B47BF;
  margin: 0 0 1rem;
  text-align: center;
}
.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.leaderboard-card {
  background: linear-gradient(135deg, #F3E5F5, #fff);
  border-radius: 20px;
  padding: 1rem;
  text-align: center;
  border: 3px solid #EEE;
  transition: all 0.2s ease;
}
.leaderboard-card.leader {
  background: linear-gradient(135deg, #FFD93D, #FFA07A);
  border-color: #FF6B9D;
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(255,107,157,0.3);
}
.lb-medal { font-size: 2rem; }
.lb-emoji { font-size: 2.5rem; }
.lb-name { font-weight: 700; font-size: 0.95rem; margin: 0.3rem 0; min-height: 2.4rem; line-height: 1.2; }
.lb-votes { font-family: 'Bungee', sans-serif; }
.lb-vote-count { font-size: 1.8rem; color: #E63946; }
.lb-vote-label { font-size: 0.85rem; color: #666; margin-left: 0.2rem; }
.lb-voters { margin-top: 0.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem; }
.lb-voter-chip {
  background: rgba(255,255,255,0.7);
  color: #5B47BF;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.leaderboard-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #888;
}
.lb-empty-emoji { font-size: 3rem; display: block; margin-bottom: 0.5rem; }

/* ---- Gap hint ---- */
.gap-hint {
  background: #FFF8E1;
  border-left: 5px solid #FFD93D;
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.gap-hint-ok { background: #E8F5E9; border-left-color: #6BCB77; }
.gap-chip {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  margin: 0 0.2rem;
}
.gap-hint-tip { display: block; margin-top: 0.4rem; font-size: 0.85rem; color: #666; }
.badge-gap-inline {
  background: #FFEBEE; color: #E63946; padding: 0.1rem 0.5rem;
  border-radius: 999px; font-size: 0.75rem; font-weight: 700;
}

/* ---- Lock CTA ---- */
.lock-cta {
  background: linear-gradient(135deg, #FFE5EC, #FFF8E1);
  border-radius: 24px;
  padding: 1.5rem;
  border: 3px dashed #FF6B9D;
  animation: lock-cta-wiggle 4s ease-in-out infinite;
}
@keyframes lock-cta-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-0.3deg); }
  75% { transform: rotate(0.3deg); }
}
.lock-cta-inner { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.lock-cta-emoji { font-size: 4rem; }
.lock-cta-text { flex: 1; min-width: 200px; }
.lock-cta-text h3 { font-family: 'Bungee', sans-serif; color: #E63946; margin: 0 0 0.4rem; }
.lock-cta-text p { margin: 0; font-size: 0.95rem; line-height: 1.45; color: #555; }
.btn-lock-winner {
  background: linear-gradient(135deg, #E63946, #FF6B9D);
  color: #fff;
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-family: 'Bungee', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(230,57,70,0.4);
  letter-spacing: 1px;
}
.btn-lock-winner:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px rgba(230,57,70,0.5);
}

/* ---- Filter pills ---- */
.backlog-filters-wrap {
  background: #fff;
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.backlog-filters-title {
  font-family: 'Bungee', sans-serif;
  font-size: 1.15rem;
  color: #5B47BF;
  margin: 0 0 0.75rem;
}
.backlog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter-pill {
  background: #F3E5F5;
  color: #5B47BF;
  border: 2px solid #E1BEE7;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.filter-pill:hover { transform: translateY(-2px); box-shadow: 0 3px 10px rgba(91,71,191,0.2); }
.filter-pill.active {
  background: linear-gradient(135deg, #5B47BF, #4D96FF);
  color: #fff;
  border-color: #5B47BF;
  box-shadow: 0 4px 12px rgba(91,71,191,0.4);
}
.filter-pill-count {
  background: rgba(255,255,255,0.4);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
}
.filter-pill.active .filter-pill-count { background: rgba(255,255,255,0.3); }
.filter-pill:not(.active) .filter-pill-count { background: rgba(91,71,191,0.15); }

/* ---- Cards grid ---- */
.backlog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}
.backlog-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  font-size: 1.2rem;
  color: #888;
}
.cards-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: #888;
  background: #fff;
  border-radius: 20px;
}

.backlog-card {
  background: #fff;
  border-radius: 22px;
  padding: 1.1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  border: 3px solid transparent;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}
.backlog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  border-color: #E1BEE7;
}
.backlog-card.my-vote {
  background: linear-gradient(135deg, #FFF8E1, #fff);
  border-color: #FFD93D;
  box-shadow: 0 6px 18px rgba(255,217,61,0.3);
}
.backlog-card.has-votes:not(.my-vote) {
  border-color: #B2DFDB;
}

.card-header { display: flex; align-items: flex-start; gap: 0.75rem; }
.card-emoji { font-size: 2.5rem; line-height: 1; }
.card-titles { flex: 1; min-width: 0; }
.card-title {
  font-family: 'Bungee', sans-serif;
  font-size: 1.15rem;
  margin: 0 0 0.2rem;
  color: #5B47BF;
  line-height: 1.2;
}
.card-meta { display: flex; flex-wrap: wrap; gap: 0.3rem; font-size: 0.8rem; }
.card-category { background: #F3E5F5; color: #5B47BF; padding: 0.15rem 0.6rem; border-radius: 999px; font-weight: 700; }
.card-duration { background: #E8F5E9; color: #2D8F4E; padding: 0.15rem 0.6rem; border-radius: 999px; font-weight: 700; }

.card-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.card-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge-triple { background: linear-gradient(135deg, #FF6B9D, #FFA07A); color: #fff; }
.badge-gap    { background: #FFEBEE; color: #E63946; border: 1.5px solid #FFCDD2; }
.badge-fave   { background: #FFF8E1; color: #B8860B; border: 1.5px solid #FFD93D; }
.badge-new    { background: #E3F2FD; color: #1565C0; border: 1.5px solid #90CAF9; }

.card-pillars { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.card-pillar-chip {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.card-skills-box {
  background: #F7F4FF;
  border-radius: 14px;
  padding: 0.6rem 0.85rem;
}
.card-skills-title { font-weight: 700; color: #5B47BF; font-size: 0.85rem; margin-bottom: 0.3rem; }
.card-skills-list {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.25rem 0.7rem;
}
.card-skills-list li { font-size: 0.85rem; color: #444; }

.card-vote-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.4rem;
  border-top: 2px dashed #EEE;
}
.card-vote-info { font-family: 'Bungee', sans-serif; }
.card-vote-count { font-size: 1.5rem; color: #E63946; }
.card-vote-label { font-size: 0.8rem; color: #666; margin-left: 0.2rem; }
.card-vote-btn {
  background: linear-gradient(135deg, #4D96FF, #6BCB77);
  color: #fff;
  border: none;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-family: 'Bungee', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 10px rgba(77,150,255,0.3);
  transition: all 0.2s ease;
}
.card-vote-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 5px 14px rgba(77,150,255,0.45);
}
.card-vote-btn:disabled {
  background: #DDD;
  color: #888;
  cursor: not-allowed;
  box-shadow: none;
}
.card-vote-btn.voted {
  background: linear-gradient(135deg, #FFD93D, #FFA07A);
  box-shadow: 0 3px 10px rgba(255,165,0,0.4);
}
.card-vote-btn.voted:hover { box-shadow: 0 5px 14px rgba(255,165,0,0.55); }

.card-voters {
  display: flex; flex-wrap: wrap; gap: 0.25rem;
  padding-top: 0.4rem;
  border-top: 1px dotted #EEE;
}
.card-voter-chip {
  background: #E8F5E9;
  color: #2D8F4E;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ---- Help footer ---- */
.backlog-help {
  background: #fff;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 3px solid #E1BEE7;
}
.backlog-help h3 {
  font-family: 'Bungee', sans-serif;
  color: #5B47BF;
  margin: 0 0 0.75rem;
}
.backlog-help ul { padding-left: 1.5rem; line-height: 1.7; color: #444; }
.backlog-help li { margin-bottom: 0.3rem; }
.backlog-help li strong { color: #E63946; }
.backlog-pebbles-tip {
  background: #FFF8E1;
  border-radius: 14px;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  border-left: 4px solid #FFD93D;
}

.backlog-error {
  background: #FFEBEE;
  color: #E63946;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  border: 2px solid #FFCDD2;
  text-align: center;
  font-weight: 600;
}

/* ---- Confetti! 🎉 ---- */
.confetti-container {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  top: -50px;
  animation: confetti-fall linear forwards;
  display: inline-block;
}
@keyframes confetti-fall {
  0%   { transform: translateY(-50px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(720deg); opacity: 0.6; }
}

/* ---- Mobile tuning ---- */
@media (max-width: 600px) {
  .backlog-header { padding: 1rem 0.75rem 2rem; }
  .backlog-header h1 { font-size: 2rem; }
  .backlog-main { padding: 0 0.75rem; gap: 1rem; }
  .sprint-banner-inner { gap: 0.7rem; }
  .sprint-emoji { font-size: 2.2rem; }
  .sprint-title { font-size: 1.15rem; }
  .leaderboard-grid { grid-template-columns: 1fr 1fr; }
  .leaderboard-card.leader { transform: scale(1); grid-column: 1 / -1; }
  .backlog-cards-grid { grid-template-columns: 1fr; gap: 1rem; }
  .card-vote-btn { padding: 0.7rem 0.9rem; font-size: 0.78rem; }
  .lock-cta-inner { flex-direction: column; text-align: center; }
  .locked-winner-card { flex-direction: column; text-align: center; }
}

/* ============================================================================
   🏅 AWARDS PROGRESS — Crew Status + Pebbles Weekly Summary
   Sits inside the existing #team-progress section on the homepage
   ============================================================================ */

.crew-status-host { margin-bottom: 1.5rem; }
.crew-status-loading {
  text-align: center; padding: 2rem 1rem; color: #888; font-size: 1.05rem;
}
.crew-status-error {
  background: #FFEBEE; color: #E63946; padding: 0.9rem 1.1rem;
  border-radius: 14px; border: 2px solid #FFCDD2; text-align: center; font-weight: 600;
}

.crew-status-card {
  background: linear-gradient(135deg, #fff 0%, #FFF8E1 100%);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border: 3px solid #FFD93D;
  position: relative;
  overflow: hidden;
}
.crew-status-card::before {
  content: '🏅 ✨ 🎯';
  position: absolute; top: -10px; right: -10px;
  font-size: 3rem; opacity: 0.08; transform: rotate(15deg);
  pointer-events: none;
}

.crew-status-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.crew-status-title {
  font-family: 'Bungee', sans-serif;
  font-size: 1.5rem; color: #5B47BF; margin: 0;
}
.crew-status-subtitle { color: #666; font-size: 0.9rem; margin: 0.2rem 0 0; }

.crew-status-toggle {
  display: inline-flex; background: #F3E5F5; border-radius: 999px; padding: 4px;
  gap: 4px;
}
.window-btn {
  background: transparent;
  color: #5B47BF;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.window-btn:hover { background: rgba(91,71,191,0.1); }
.window-btn.active {
  background: linear-gradient(135deg, #5B47BF, #4D96FF);
  color: #fff;
  box-shadow: 0 2px 8px rgba(91,71,191,0.3);
}

/* Positive callouts row */
.positive-callouts {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;
}
.callout-pill {
  background: linear-gradient(135deg, #E8F5E9, #FFF8E1);
  border-left: 4px solid #6BCB77;
  border-radius: 12px;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2D8F4E;
}

/* Stacked bar */
.stacked-bar-wrap { margin-bottom: 1rem; }
.stacked-bar {
  height: 36px;
  width: 100%;
  background: #F3E5F5;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.stacked-bar-segment {
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.8rem;
  white-space: nowrap; overflow: hidden;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.stacked-bar-segment:hover { filter: brightness(1.1); }
.bar-seg-label { padding: 0 0.4rem; }
.stacked-bar-empty {
  background: #F7F4FF;
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  color: #888;
  font-weight: 600;
}
.stacked-bar-legend {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-top: 0.6rem; justify-content: center;
  font-size: 0.85rem;
}
.legend-item { display: inline-flex; align-items: center; gap: 0.3rem; color: #555; font-weight: 600; }
.legend-swatch {
  width: 14px; height: 14px; border-radius: 4px; display: inline-block;
}

/* Pillar tiles (4 cards under the stacked bar) */
.pillar-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.pillar-tile {
  background: #fff;
  border-radius: 16px;
  padding: 0.85rem;
  border: 2px solid;
  display: flex; flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s ease;
}
.pillar-tile:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.pillar-tile-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
}
.pillar-emoji {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.pillar-tile-titles { min-width: 0; }
.pillar-name { font-family: 'Bungee', sans-serif; font-size: 0.95rem; color: #333; line-height: 1.1; }
.pillar-kidtalk { font-size: 0.75rem; color: #666; line-height: 1.2; }
.pillar-status-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.pillar-progress-row {
  display: flex; align-items: center; gap: 0.5rem;
}
.pillar-progress-bar {
  flex: 1; height: 10px; background: #EEE; border-radius: 999px; overflow: hidden;
}
.pillar-progress-fill { height: 100%; border-radius: 999px; transition: width 0.5s ease; }
.pillar-progress-num { font-family: 'Bungee', sans-serif; font-size: 0.9rem; color: #5B47BF; min-width: 38px; text-align: right; }
.pillar-hours-text { font-size: 0.75rem; color: #888; font-weight: 600; }

/* Biggest gap hint */
.biggest-gap-hint {
  background: #FFF8E1;
  border-left: 5px solid #FFD93D;
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
}
.biggest-gap-hint.gap-hint-ok {
  background: #E8F5E9;
  border-left-color: #6BCB77;
}
.gap-target-chip {
  display: inline-flex; align-items: center; padding: 0.2rem 0.7rem;
  border-radius: 999px; font-weight: 700; font-size: 0.85rem;
}
.gap-cta-link {
  background: #5B47BF;
  color: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(91,71,191,0.3);
  margin-left: auto;
}
.gap-cta-link:hover { transform: translateY(-1px); box-shadow: 0 3px 11px rgba(91,71,191,0.4); }

/* Per-kid heading + grid */
.per-kid-heading {
  font-family: 'Bungee', sans-serif;
  font-size: 1.05rem;
  color: #5B47BF;
  margin: 1rem 0 0.6rem;
}
.per-kid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.75rem;
}
.kid-progress-card {
  background: #fff;
  border-radius: 16px;
  padding: 0.85rem;
  border: 3px solid;
  display: flex; flex-direction: column; gap: 0.4rem;
  transition: all 0.2s ease;
  position: relative;
}
.kid-progress-card:hover { transform: translateY(-3px); box-shadow: 0 5px 14px rgba(0,0,0,0.1); }
.kid-progress-header { display: flex; align-items: center; gap: 0.5rem; }
.kid-emoji { font-size: 2rem; }
.kid-progress-titles { flex: 1; min-width: 0; }
.kid-name { font-family: 'Bungee', sans-serif; font-size: 1rem; color: #333; }
.kid-stage { font-size: 0.75rem; color: #666; }
.bronze-done-star {
  font-size: 1.5rem;
  animation: star-spin 2s ease-in-out infinite;
}
@keyframes star-spin {
  0%,100% { transform: rotate(0deg) scale(1); }
  50%     { transform: rotate(15deg) scale(1.15); }
}
.kid-progress-bar {
  height: 8px; background: #EEE; border-radius: 999px; overflow: hidden;
}
.kid-progress-fill { height: 100%; border-radius: 999px; transition: width 0.5s ease; }
.kid-progress-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem;
}
.kid-pct { font-family: 'Bungee', sans-serif; color: #5B47BF; font-size: 0.95rem; }
.kid-events { color: #888; font-weight: 600; }
.kid-pillar-mini {
  display: flex; gap: 0.25rem; margin-top: 0.2rem;
}
.kid-pillar-dot {
  flex: 1;
  border-radius: 8px;
  padding: 0.25rem 0.2rem;
  text-align: center;
  font-size: 0.95rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1.1;
}
.kid-pillar-hours { font-size: 0.65rem; font-weight: 700; margin-top: 1px; }

/* ---- Pebbles weekly summary ---- */
.pebbles-summary-host { margin-bottom: 1.5rem; }
.pebbles-summary-loading {
  text-align: center; padding: 1.5rem 1rem; color: #888;
}
.pebbles-summary-card {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFE5EC 100%);
  border-radius: 24px;
  padding: 1.5rem;
  border: 3px solid #FFA07A;
  box-shadow: 0 6px 20px rgba(255,165,0,0.15);
  position: relative;
  overflow: hidden;
}
.pebbles-summary-card::after {
  content: '🐾';
  position: absolute; bottom: -20px; right: -10px;
  font-size: 6rem; opacity: 0.08;
  pointer-events: none;
  transform: rotate(-15deg);
}
.pebbles-summary-header {
  display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.85rem;
}
.pebbles-summary-emoji {
  font-size: 2.8rem; line-height: 1;
  animation: pebbles-wag 3s ease-in-out infinite;
}
@keyframes pebbles-wag {
  0%, 100% { transform: rotate(-3deg); }
  50%      { transform: rotate(3deg); }
}
.pebbles-summary-header > div:nth-child(2) { flex: 1; }
.pebbles-summary-title {
  font-family: 'Bungee', sans-serif;
  font-size: 1.25rem;
  color: #E63946;
  margin: 0;
}
.pebbles-summary-meta {
  font-size: 0.78rem;
  color: #888;
  font-weight: 600;
  margin-top: 0.15rem;
}
.pebbles-refresh-btn {
  background: #fff;
  color: #E63946;
  border: 2px solid #FFA07A;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.8rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}
.pebbles-refresh-btn:hover {
  transform: rotate(180deg);
  background: #FFA07A;
  color: #fff;
}
.pebbles-summary-body {
  background: rgba(255,255,255,0.7);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #333;
  font-weight: 500;
  margin: 0 0 0.85rem;
  white-space: pre-wrap;
}
.pebbles-summary-stats {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.stat-chip {
  background: rgba(255,255,255,0.85);
  color: #5B47BF;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1.5px solid #E1BEE7;
}

/* ---- Mobile tuning ---- */
@media (max-width: 600px) {
  .crew-status-header { flex-direction: column; }
  .crew-status-toggle { width: 100%; }
  .window-btn { flex: 1; font-size: 0.78rem; padding: 0.5rem 0.5rem; }
  .pillar-status-grid { grid-template-columns: 1fr; }
  .per-kid-grid { grid-template-columns: 1fr 1fr; }
  .pebbles-summary-header { flex-wrap: wrap; }
  .pebbles-refresh-btn { width: 100%; margin-top: 0.5rem; }
  .biggest-gap-hint { flex-direction: column; align-items: flex-start; }
  .gap-cta-link { margin-left: 0; width: 100%; text-align: center; }
}

/* ========================================================================== */
/* Learning Hub / QUIX                                                        */
/* ========================================================================== */
.learn-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 214, 102, 0.34), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(94, 215, 255, 0.28), transparent 34%),
    linear-gradient(145deg, #fff8ec 0%, #f7f3ff 52%, #eafaff 100%);
  color: #25224a;
}
.learn-page .hidden { display: none !important; }
.learn-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(91,71,191,0.14);
  box-shadow: 0 4px 22px rgba(48,39,105,0.08);
  backdrop-filter: blur(14px);
}
.learn-back, .learn-brand, .learn-points-pill { font-weight: 700; }
.learn-back { color: #5b47bf; text-decoration: none; justify-self: start; }
.learn-brand { font-family: 'Bungee', sans-serif; color: #3c2e92; letter-spacing: 0.02em; text-align: center; }
.learn-points-pill {
  justify-self: end;
  background: #fff5bf;
  color: #72560a;
  padding: 0.55rem 0.85rem;
  border: 2px solid #f2d463;
  border-radius: 999px;
  white-space: nowrap;
}
.learn-main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 4rem; }
.ollie-welcome {
  display: grid;
  grid-template-columns: minmax(150px, 230px) 1fr;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3rem);
  padding: clamp(1.4rem, 4vw, 3rem);
  color: #fff;
  border-radius: 32px;
  background: linear-gradient(135deg, #5b47bf, #277bd6 58%, #13a9ba);
  box-shadow: 0 18px 50px rgba(58,49,143,0.25);
  overflow: hidden;
  position: relative;
}
.ollie-welcome::after {
  content: '';
  position: absolute;
  width: 260px; height: 260px; border-radius: 50%;
  right: -80px; top: -120px;
  background: rgba(255,255,255,0.1);
}
.ollie-portrait {
  display: grid;
  place-items: center;
  min-height: 180px;
  font-size: clamp(6rem, 14vw, 10rem);
  line-height: 1;
  border-radius: 42% 58% 50% 50%;
  background: rgba(255,255,255,0.18);
  border: 3px solid rgba(255,255,255,0.42);
  transform: rotate(-2deg);
}
.ollie-copy { position: relative; z-index: 1; }
.learn-eyebrow, .learn-option-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 800;
  margin: 0 0 0.45rem;
}
.ollie-copy h1 { font-family: 'Bungee', sans-serif; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1; margin: 0 0 1rem; }
.ollie-copy > p:last-child { max-width: 680px; font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.6; margin: 0; }
.learn-setup, .learn-history {
  margin-top: 1.4rem;
  padding: 1.4rem;
  background: rgba(255,255,255,0.9);
  border: 2px solid #e9e1ff;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(58,49,143,0.08);
}
.learn-setup h2, .learn-history h2 { margin: 0 0 1rem; color: #3c2e92; }
.learn-select-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.learn-select-row label { display: grid; gap: 0.4rem; font-weight: 700; }
.learn-select-row select {
  width: 100%; min-height: 52px; border: 2px solid #cfc4f7; border-radius: 14px;
  padding: 0.65rem 0.85rem; background: #fff; color: #25224a; font: inherit; font-weight: 700;
}
.learn-select-row select:focus { outline: 3px solid rgba(39,123,214,0.22); border-color: #277bd6; }
.learn-form-message { min-height: 1.25rem; margin: 0.75rem 0 0; font-weight: 700; color: #5b47bf; }
.learn-form-message.error { color: #bb2649; }
.learn-resume {
  margin-top: 1.2rem; padding: 1rem 1.25rem; border-radius: 18px; background: #fff5bf;
  border: 2px solid #efd15b; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.learn-resume div { display: grid; gap: 0.2rem; }
.learn-resume span { color: #695914; }
.learn-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.4rem; }
.learn-option {
  min-height: 360px; padding: 1.5rem; display: flex; flex-direction: column; align-items: flex-start;
  border-radius: 28px; border: 2px solid rgba(255,255,255,0.8); color: #25224a;
  box-shadow: 0 14px 35px rgba(58,49,143,0.12); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.learn-option:hover { transform: translateY(-4px); box-shadow: 0 20px 42px rgba(58,49,143,0.17); }
.learn-option-quick { background: linear-gradient(155deg, #dffbff, #fff); }
.learn-option-full { background: linear-gradient(155deg, #fff1bc, #fff); }
.learn-option-ollie { background: linear-gradient(155deg, #f0eaff, #fff); }
.learn-option-icon { font-size: 3.4rem; line-height: 1; margin-bottom: 1rem; }
.learn-option-kicker { color: #5b47bf; }
.learn-option h2 { font-family: 'Bungee', sans-serif; color: #3c2e92; margin: 0 0 0.75rem; font-size: 1.45rem; }
.learn-option > p:not(.learn-option-kicker) { line-height: 1.55; margin: 0 0 1.2rem; }
.learn-option .learn-btn, .learn-coming-status { margin-top: auto; width: 100%; }
.learn-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0.72rem 1.1rem; border-radius: 999px; border: 0; text-decoration: none;
  font: inherit; font-weight: 800; cursor: pointer; transition: transform 0.15s ease, filter 0.15s ease;
}
.learn-btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.04); }
.learn-btn:disabled { opacity: 0.58; cursor: wait; }
.learn-btn-primary { color: #fff; background: linear-gradient(90deg, #5b47bf, #277bd6); box-shadow: 0 7px 16px rgba(68,64,178,0.24); }
.learn-btn-secondary { color: #3c2e92; background: #fff; border: 2px solid #aa9be3; }
.learn-coming-status { padding: 0.8rem 1rem; border-radius: 14px; background: #e7e0f8; color: #625689; text-align: center; font-weight: 800; }
.learn-history-list { display: grid; gap: 0.6rem; }
.learn-history-item { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 1rem; border-radius: 14px; background: #f7f4ff; }
.learn-history-item > div { display: grid; gap: 0.15rem; }
.learn-history-item > div:last-child { text-align: right; }
.learn-history-item span { color: #736e8d; font-size: 0.85rem; }
.learn-quiz-view { max-width: 980px; margin: 0 auto; }
.learn-quiz-header { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.learn-text-btn { border: 0; background: transparent; color: #5b47bf; font: inherit; font-weight: 800; cursor: pointer; justify-self: start; }
.learn-quiz-owner { font-weight: 800; color: #3c2e92; text-align: center; }
.learn-live-stats { justify-self: end; display: flex; gap: 0.5rem; }
.learn-live-stats span { padding: 0.45rem 0.7rem; border-radius: 999px; background: #fff; border: 1px solid #ded6f7; font-weight: 800; }
.learn-progress-track { height: 14px; border-radius: 999px; background: #ded8f1; overflow: hidden; }
.learn-progress-track > div { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #31c7d7, #5b47bf, #ef55a6); transition: width 0.3s ease; }
.learn-question-meta { display: flex; justify-content: space-between; margin: 0.7rem 0 1rem; color: #625b81; font-weight: 700; text-transform: capitalize; }
.learn-question-card { padding: clamp(1.3rem, 4vw, 2.5rem); border-radius: 30px; background: #fff; border: 2px solid #e5dffa; box-shadow: 0 18px 50px rgba(58,49,143,0.13); text-align: center; }
.ollie-mini { font-size: 3rem; line-height: 1; }
.learn-question-card h1 { max-width: 780px; margin: 1rem auto 1.5rem; font-size: clamp(1.45rem, 3.5vw, 2.5rem); line-height: 1.25; color: #292050; }
.learn-answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.learn-answer {
  min-height: 78px; padding: 0.9rem; display: grid; grid-template-columns: 38px 1fr; gap: 0.7rem; align-items: center;
  border: 2px solid #dcd3f7; border-radius: 18px; background: #fbfaff; color: #25224a; text-align: left;
  font: inherit; font-size: 1.03rem; font-weight: 700; cursor: pointer;
}
.learn-answer:hover:not(:disabled), .learn-answer:focus-visible { border-color: #5b47bf; background: #f3efff; outline: none; }
.learn-answer > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e8e1ff; color: #4938a4; }
.learn-answer-selected { border-color: #5b47bf; }
.learn-answer-correct { background: #dcf8e5 !important; border-color: #39a765 !important; }
.learn-answer-wrong { background: #ffe4ea !important; border-color: #d94c70 !important; }
.learn-feedback { margin: 1.2rem 0 1rem; padding: 1rem 1.2rem; border-radius: 18px; text-align: left; }
.learn-feedback.correct { background: #e5faec; border: 2px solid #69bf86; }
.learn-feedback.wrong { background: #fff2d8; border: 2px solid #e5b84c; }
.learn-feedback strong { font-size: 1.2rem; }
.learn-feedback p { margin: 0.4rem 0 0; }
.learn-feedback .learn-bonus { color: #a52a76; font-weight: 800; }
.learn-result-view { max-width: 920px; margin: 0 auto; }
.learn-result-card { padding: clamp(1.5rem, 5vw, 3.5rem); border-radius: 34px; background: #fff; border: 3px solid #e2d8ff; text-align: center; box-shadow: 0 20px 55px rgba(58,49,143,0.16); }
.learn-result-ollie { font-size: 5rem; }
.learn-result-card .learn-eyebrow { color: #5b47bf; }
.learn-result-card h1 { font-family: 'Bungee', sans-serif; color: #3c2e92; font-size: clamp(2rem, 5vw, 3.6rem); margin: 0.4rem 0; }
.learn-result-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.7rem; margin: 1.5rem 0; }
.learn-result-stats > div { padding: 1rem 0.5rem; border-radius: 16px; background: #f6f3ff; display: grid; gap: 0.25rem; }
.learn-result-stats strong { color: #4938a4; font-size: 1.25rem; }
.learn-result-stats span { color: #77718f; font-size: 0.76rem; font-weight: 700; }
.learn-points-award { display: grid; gap: 0.2rem; padding: 1.1rem; border-radius: 18px; background: linear-gradient(90deg, #fff0a8, #fff9dc); border: 2px solid #efd15b; }
.learn-points-award strong { color: #765600; font-size: 1.4rem; }
.learn-points-award span { color: #7d6b2c; }
.learn-achievements { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 1.2rem 0; }
.learn-achievements span { padding: 0.55rem 0.8rem; border-radius: 999px; background: #eee8ff; color: #4938a4; font-weight: 800; }
.learn-result-actions { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; }

@media (max-width: 820px) {
  .learn-topbar { grid-template-columns: 1fr 1fr; }
  .learn-brand { grid-column: 1 / -1; grid-row: 1; }
  .learn-back { grid-row: 2; }
  .learn-points-pill { grid-row: 2; }
  .ollie-welcome { grid-template-columns: 1fr; text-align: center; }
  .ollie-portrait { min-height: 130px; max-width: 230px; width: 100%; margin: 0 auto; }
  .learn-options { grid-template-columns: 1fr; }
  .learn-option { min-height: 300px; }
  .learn-result-stats { grid-template-columns: repeat(2, 1fr); }
  .learn-result-stats > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .learn-main { width: min(100% - 1rem, 1180px); padding-top: 0.75rem; }
  .learn-topbar { padding: 0.65rem 0.75rem; gap: 0.55rem; }
  .learn-brand { font-size: 0.92rem; }
  .learn-back, .learn-points-pill { font-size: 0.78rem; }
  .learn-points-pill { padding: 0.4rem 0.55rem; }
  .ollie-welcome, .learn-question-card, .learn-result-card { border-radius: 22px; }
  .learn-select-row, .learn-answer-grid { grid-template-columns: 1fr; }
  .learn-resume { align-items: stretch; flex-direction: column; }
  .learn-history-item { align-items: flex-start; }
  .learn-quiz-header { grid-template-columns: 1fr auto; }
  .learn-quiz-owner { grid-column: 1 / -1; grid-row: 1; }
  .learn-text-btn { grid-row: 2; }
  .learn-live-stats { grid-row: 2; }
  .learn-question-meta { font-size: 0.8rem; }
  .learn-answer { min-height: 68px; }
}

/* Sprint 4: Foundation Ollie state system and commercial learning polish */
.ollie-mascot{display:inline-grid;place-items:center;position:relative;overflow:hidden;isolation:isolate;background:linear-gradient(145deg,#fffaf1,#eee7ff);box-shadow:0 16px 42px rgba(57,36,112,.18);flex:none;transform-origin:50% 78%;will-change:transform,opacity}
.ollie-mascot picture,.ollie-mascot img{display:block;width:100%;height:100%;object-fit:cover}.ollie-skeleton{position:absolute;inset:0;background:linear-gradient(110deg,#f5efff 25%,#fff 42%,#f5efff 58%);background-size:220% 100%;animation:ollie-shimmer 1.5s linear infinite}.ollie-mascot:has(picture) .ollie-skeleton{display:none}
.ollie-portrait{width:clamp(170px,23vw,260px);height:auto;aspect-ratio:1;border-radius:28px;border:4px solid #fff}.ollie-mini{width:88px;height:88px;border-radius:24px;border:3px solid #fff}.learn-option-ollie-img{width:104px;height:104px;border-radius:24px;border:3px solid #fff}.learn-result-ollie{width:clamp(150px,24vw,220px);height:auto;aspect-ratio:1;border-radius:30px;border:4px solid #fff;margin-inline:auto}
.ollie-state-enter{animation:ollie-state-in .36s cubic-bezier(.2,.8,.2,1)}
.ollie-mascot[data-ollie-motion=breathe]{animation:ollie-breathe 3.2s ease-in-out infinite}.ollie-mascot[data-ollie-motion=arrive]{animation:ollie-arrive .7s cubic-bezier(.2,.9,.2,1),ollie-breathe 3.2s .7s ease-in-out infinite}.ollie-mascot[data-ollie-motion=listen],.ollie-mascot[data-ollie-motion=think]{animation:ollie-listen 2.1s ease-in-out infinite}.ollie-mascot[data-ollie-motion=chase]{animation:ollie-chase 1.05s ease-in-out infinite}.ollie-mascot[data-ollie-motion=celebrate],.ollie-mascot[data-ollie-motion=thumbs]{animation:ollie-celebrate .7s cubic-bezier(.2,.9,.2,1),ollie-breathe 3s .7s ease-in-out infinite}.ollie-mascot[data-ollie-motion=lick]{animation:ollie-lick 1.25s ease-in-out infinite}.ollie-mascot[data-ollie-motion=graduate]{animation:ollie-graduate 2.5s ease-in-out infinite}.ollie-mascot[data-ollie-motion=explain],.ollie-mascot[data-ollie-motion=recommend]{animation:ollie-explain 2.4s ease-in-out infinite}.ollie-mascot[data-ollie-motion=goodbye]{animation:ollie-goodbye .7s ease-in-out}
@keyframes ollie-shimmer{to{background-position:-220% 0}}@keyframes ollie-state-in{from{opacity:.15;transform:scale(.88) rotate(-2deg)}}@keyframes ollie-breathe{50%{transform:translateY(-5px) scale(1.015)}}@keyframes ollie-arrive{0%{opacity:0;transform:translateY(24px) scale(.82)}65%{transform:translateY(-5px) scale(1.035)}}@keyframes ollie-listen{0%,100%{transform:rotate(0)}50%{transform:rotate(-3deg) translateY(-3px)}}@keyframes ollie-chase{0%,100%{transform:rotate(-2deg) translateY(0)}50%{transform:rotate(2deg) translateY(-8px)}}@keyframes ollie-celebrate{0%{transform:scale(.78) rotate(-5deg)}55%{transform:scale(1.08) rotate(2deg)}}@keyframes ollie-lick{50%{transform:scale(1.035) translateY(-3px)}}@keyframes ollie-graduate{50%{transform:translateY(-7px) rotate(1deg)}}@keyframes ollie-explain{50%{transform:translateX(4px) rotate(1.5deg)}}@keyframes ollie-goodbye{50%{transform:rotate(5deg) translateX(5px)}}
.ollie-speech,.ollie-question-speech{position:relative;display:inline-block;margin-top:1rem;padding:.72rem 1rem;border-radius:16px;background:#fff;color:#443279;font-weight:700;line-height:1.35;box-shadow:0 7px 18px rgba(57,36,112,.12);border:1px solid #ddd2f7}.ollie-speech:before{content:"";position:absolute;left:24px;top:-8px;width:15px;height:15px;background:#fff;border-left:1px solid #ddd2f7;border-top:1px solid #ddd2f7;transform:rotate(45deg)}.ollie-question-speech{margin:.4rem auto .15rem;font-size:.9rem;background:#f7f2ff}.learn-question-card{position:relative}.learn-feedback{border-width:1px!important;padding:1.2rem 1.3rem}.learn-feedback small{display:block;margin-top:.55rem;color:#554d69;font-weight:700}.learn-answer{transition:transform .16s ease,border-color .16s ease,background .16s ease}.learn-answer:active{transform:scale(.985)}
.learn-result-card{position:relative;overflow:hidden}.learn-ceremony{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:0}.learn-ceremony~*{position:relative;z-index:1}.learn-ceremony i{position:absolute;left:var(--x);top:-18px;width:10px;height:16px;border-radius:3px;background:#ffd84f;animation:ollie-confetti 2.7s var(--delay) ease-in forwards;transform:rotate(var(--spin))}.learn-ceremony i:nth-child(3n){background:#6b49cf}.learn-ceremony i:nth-child(3n+1){background:#26baa9;border-radius:50%}@keyframes ollie-confetti{to{transform:translate3d(15px,720px,0) rotate(720deg);opacity:.15}}
.learn-history{content-visibility:auto;contain-intrinsic-size:420px}.learn-history-item{transition:background .18s ease,transform .18s ease}.learn-history-item:hover{background:#f0ebff;transform:translateX(3px)}.learn-progress-track>div{box-shadow:0 0 12px rgba(239,85,166,.35)}
.learn-page :focus-visible{outline:3px solid #126f67!important;outline-offset:3px}.learn-btn{min-height:48px}.learn-text-btn{min-height:44px;padding:.5rem}.learn-answer{min-height:72px}
@media(max-width:720px){.ollie-portrait{width:150px}.ollie-mini{width:72px;height:72px}.learn-option-ollie-img{width:92px;height:92px}.ollie-question-speech{font-size:.82rem}.learn-history-item{padding:.9rem}.learn-history-item:hover{transform:none}}
@media(prefers-reduced-motion:reduce){.ollie-mascot,.ollie-skeleton,.learn-ceremony i{animation:none!important;transform:none!important}.learn-ceremony{display:none}.ollie-state-enter{animation:none!important}}
@media(forced-colors:active){.learn-answer,.learn-btn,.ollie-speech,.learn-progress-track{border:2px solid CanvasText}.learn-progress-track>div{background:Highlight}.ollie-mascot{border:2px solid CanvasText}}

/* Foundation JC: semantic character states. Pages request a state; the engine owns media. */
.jc-character{display:inline-grid;place-items:center;position:relative;overflow:hidden;isolation:isolate;width:clamp(140px,22vw,240px);height:auto;aspect-ratio:1;border-radius:28px;border:4px solid #fff;background:linear-gradient(145deg,#fff8d8,#eef3f7);box-shadow:0 16px 42px rgba(32,40,51,.18);transform-origin:50% 78%;will-change:transform,opacity}
.jc-character picture,.jc-character img{display:block;width:100%;height:100%;object-fit:cover}.jc-state-enter{animation:jc-state-in .36s cubic-bezier(.2,.8,.2,1)}
.jc-character[data-jc-motion=breathe]{animation:jc-breathe 3.2s ease-in-out infinite}.jc-character[data-jc-motion=arrive]{animation:jc-arrive .7s cubic-bezier(.2,.9,.2,1),jc-breathe 3.2s .7s ease-in-out infinite}.jc-character[data-jc-motion=ride]{animation:jc-ride 1.15s ease-in-out infinite}.jc-character[data-jc-motion=explore]{animation:jc-explore 2.5s ease-in-out infinite}.jc-character[data-jc-motion=lead],.jc-character[data-jc-motion=approve]{animation:jc-lead 2.4s ease-in-out infinite}.jc-character[data-jc-motion=pilot]{animation:jc-pilot 2.1s ease-in-out infinite}.jc-character[data-jc-motion=mentor]{animation:jc-mentor 2.6s ease-in-out infinite}.jc-character[data-jc-motion=think]{animation:jc-think 2.1s ease-in-out infinite}.jc-character[data-jc-motion=encourage]{animation:jc-encourage 1.8s ease-in-out infinite}.jc-character[data-jc-motion=celebrate],.jc-character[data-jc-motion=reward]{animation:jc-celebrate .75s cubic-bezier(.2,.9,.2,1),jc-breathe 3s .75s ease-in-out infinite}.jc-character[data-jc-motion=goodbye]{animation:jc-goodbye .8s ease-in-out}
@keyframes jc-state-in{from{opacity:.15;transform:scale(.88) rotate(-2deg)}}@keyframes jc-breathe{50%{transform:translateY(-5px) scale(1.015)}}@keyframes jc-arrive{0%{opacity:0;transform:translateY(24px) scale(.82)}65%{transform:translateY(-5px) scale(1.035)}}@keyframes jc-ride{0%,100%{transform:translateY(1px) rotate(-.8deg)}50%{transform:translateY(-7px) rotate(.8deg)}}@keyframes jc-explore{50%{transform:translateX(3px) rotate(1.2deg)}}@keyframes jc-lead{50%{transform:translateY(-4px) rotate(1deg)}}@keyframes jc-pilot{50%{transform:translateY(-3px) rotate(-1deg)}}@keyframes jc-mentor{50%{transform:translateY(-4px)}}@keyframes jc-think{0%,100%{transform:rotate(0)}50%{transform:rotate(-2.5deg) translateY(-3px)}}@keyframes jc-encourage{50%{transform:scale(1.025) translateY(-3px)}}@keyframes jc-celebrate{0%{transform:scale(.78) rotate(-4deg)}55%{transform:scale(1.08) rotate(2deg)}}@keyframes jc-goodbye{50%{transform:rotate(4deg) translateX(6px)}}
@media(prefers-reduced-motion:reduce){.jc-character,.jc-state-enter{animation:none!important;transform:none!important}}@media(forced-colors:active){.jc-character{border:2px solid CanvasText}}

/* Sprint 5: shared character presentation; identity and media live in CharacterStateEngine. */
.character-mascot{display:inline-grid;place-items:center;position:relative;overflow:hidden;isolation:isolate;aspect-ratio:1/1}.character-mascot picture,.character-mascot img,.character-mascot video,.character-adapter-host{display:block;width:100%;height:100%;object-fit:contain}.character-skeleton{position:absolute;inset:0;background:linear-gradient(110deg,#f5efff 25%,#fff 42%,#f5efff 58%);background-size:220% 100%;animation:character-shimmer 1.5s linear infinite}.character-mascot:has(picture,img,video) .character-skeleton{display:none}.character-mascot.character-media-failed .character-skeleton{display:block}.character-state-enter{animation:character-state-in .36s cubic-bezier(.2,.8,.2,1)}
@keyframes character-shimmer{to{background-position:-220% 0}}@keyframes character-state-in{from{opacity:.15;transform:scale(.88)}}
.character-pebbles{transform-origin:50% 78%;will-change:transform,opacity}.character-pebbles[data-pebbles-motion=breathe]{animation:pebbles-character-breathe 3.2s ease-in-out infinite}.character-pebbles[data-pebbles-motion=arrive]{animation:pebbles-character-arrive .65s cubic-bezier(.2,.9,.2,1),pebbles-character-breathe 3.2s .65s ease-in-out infinite}.character-pebbles[data-pebbles-motion=listen]{animation:pebbles-character-listen 2.2s ease-in-out infinite}.character-pebbles[data-pebbles-motion=encourage],.character-pebbles[data-pebbles-motion=celebrate]{animation:pebbles-character-celebrate 1.8s ease-in-out infinite}.character-pebbles[data-pebbles-motion=goodbye]{animation:pebbles-character-goodbye .75s ease-in-out}
@keyframes pebbles-character-breathe{50%{transform:translateY(-4px) scale(1.012)}}@keyframes pebbles-character-arrive{from{opacity:0;transform:translateY(18px) scale(.86)}}@keyframes pebbles-character-listen{50%{transform:rotate(-2deg) translateY(-3px)}}@keyframes pebbles-character-celebrate{50%{transform:translateY(-6px) scale(1.025)}}@keyframes pebbles-character-goodbye{50%{transform:rotate(3deg) translateX(4px)}}
.login-pebbles-character{width:60px;height:60px;border-radius:50%;border:3px solid var(--dark);box-shadow:2px 2px 0 var(--dark);flex:none}.login-pebbles-character img{border:0;box-shadow:none}.pebbles-fab-character{width:70px;height:70px;border-radius:50%}.pebbles-chat-character{width:44px;height:44px;border-radius:50%;border:2px solid #fff;flex:none}.pebbles-chat-header .pebbles-chat-character img{width:100%;height:100%;border:0}.wizard-character{width:min(220px,65vw);aspect-ratio:1;border-radius:24px}.pebbles-404-character{position:absolute;top:10px;left:50%;width:96px;height:96px;border-radius:50%;transform:translateX(-50%);filter:drop-shadow(0 8px 12px rgba(0,0,0,.15));animation:pebbles-404-character-bounce 2s ease-in-out infinite}@keyframes pebbles-404-character-bounce{0%,100%{transform:translateX(-50%) translateY(0)}50%{transform:translateX(-50%) translateY(-9px)}}
.fundraising-character-host{display:flex;align-items:center;gap:14px;max-width:460px;margin:0 auto 20px;padding:10px 16px 10px 10px;border-radius:20px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.35);text-align:left;backdrop-filter:blur(6px)}.fundraising-character-host .fundraising-jc{width:88px;height:88px;border-radius:18px;border:3px solid #fff;box-shadow:0 8px 20px rgba(6,78,59,.22);flex:none}.fundraising-character-host div{display:grid;gap:3px}.fundraising-character-host strong{font-size:1rem}.fundraising-character-host span{font-size:.86rem;line-height:1.35;opacity:.94}
@media(max-width:520px){.fundraising-character-host{max-width:360px}.fundraising-character-host .fundraising-jc{width:72px;height:72px}.fundraising-character-host span{font-size:.8rem}}
@media(prefers-reduced-motion:reduce){.character-mascot,.character-skeleton,.character-state-enter,.pebbles-404-character{animation:none!important;transform:none!important}.pebbles-404-character{left:calc(50% - 48px)}}@media(forced-colors:active){.character-mascot,.fundraising-character-host{border:2px solid CanvasText}}

/* Sprint 6: JC Earn — extends the established Fab Five visual system. */
.earn-page{min-height:100vh;background:radial-gradient(circle at 8% 12%,rgba(255,230,109,.2),transparent 34%),radial-gradient(circle at 92% 70%,rgba(78,205,196,.16),transparent 35%),var(--cream);color:var(--dark)}.earn-page .hidden{display:none!important}
.earn-skip{position:fixed;left:1rem;top:-5rem;z-index:9999;background:#fff;color:var(--dark);padding:.8rem 1rem;border-radius:.7rem;box-shadow:var(--shadow)}.earn-skip:focus{top:1rem}
.earn-topbar{position:sticky;top:0;z-index:80;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem;padding:.8rem clamp(1rem,4vw,2.5rem);background:rgba(255,248,231,.94);border-bottom:2px solid rgba(42,27,61,.12);backdrop-filter:blur(12px)}.earn-back{display:inline-flex;align-items:center;min-height:44px;justify-self:start;color:var(--dark);font-weight:800;text-decoration:none}.earn-brand{font-family:'Bungee',sans-serif;color:var(--dark);letter-spacing:.03em}.earn-parent-toggle{justify-self:end;min-height:44px;border:2px solid var(--dark);border-radius:999px;background:#fff;padding:.55rem .9rem;color:var(--dark);font:inherit;font-weight:800;cursor:pointer}
.earn-main{width:min(1180px,calc(100% - 2rem));margin:0 auto;padding:clamp(1rem,3vw,2.4rem) 0 4rem}.earn-hero{display:grid;grid-template-columns:minmax(160px,230px) 1fr;align-items:center;gap:clamp(1.2rem,4vw,3rem);padding:clamp(1.3rem,4vw,2.6rem);border:3px solid var(--dark);border-radius:30px;background:linear-gradient(135deg,var(--yellow),#fff4bd 54%,var(--aqua));box-shadow:var(--shadow-lg);overflow:hidden}.earn-jc{width:clamp(150px,20vw,220px);border-color:#fff}.earn-eyebrow{margin:0 0 .35rem;color:#654a00;font-size:.78rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.earn-hero h1{margin:0 0 .7rem;font-family:'Bungee',sans-serif;font-size:clamp(1.8rem,5vw,3.6rem);line-height:1;color:var(--dark)}.earn-hero p:last-child{max-width:680px;margin:0;font-size:clamp(1rem,2vw,1.18rem);font-weight:600;line-height:1.55}
.earn-member-row{display:flex;align-items:end;gap:1rem;margin:1.6rem 0 1rem;padding:1rem 1.2rem;border:2px solid var(--dark);border-radius:18px;background:#fff;box-shadow:var(--shadow)}.earn-member-row label{font-weight:900}.earn-member-row select{min-width:220px;margin-left:.7rem}
.earn-page input,.earn-page select,.earn-page textarea{width:100%;border:2px solid rgba(42,27,61,.28);border-radius:12px;background:#fff;padding:.72rem .8rem;color:var(--dark);font:inherit}.earn-page textarea{resize:vertical}.earn-page input:focus,.earn-page select:focus,.earn-page textarea:focus{outline:3px solid rgba(78,205,196,.42);border-color:var(--dark)}.earn-page label>span{display:block;margin-bottom:.3rem;font-size:.86rem;font-weight:800}
.earn-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:.8rem;margin:1.2rem 0}.earn-summary>div{display:grid;gap:.2rem;padding:1rem;border:2px solid var(--dark);border-radius:16px;background:#fff;text-align:center;box-shadow:2px 2px 0 var(--dark)}.earn-summary strong{font-size:clamp(1.25rem,3vw,1.8rem);color:#7043a7}.earn-summary span{font-size:.78rem;font-weight:800}
.earn-child-snapshot{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin:1.1rem 0;color:var(--dark);font-weight:900}.earn-child-snapshot span{display:inline-flex;align-items:center;padding:.55rem .85rem;border:2px solid rgba(42,27,61,.16);border-radius:999px;background:#fff;box-shadow:2px 2px 0 rgba(42,27,61,.12)}
.earn-pathways{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin:1rem 0 1.4rem}.earn-pathways button{display:flex;align-items:center;justify-content:center;gap:.55rem;min-width:0;padding:1rem .75rem;border:2px solid var(--dark);border-radius:18px;background:#fff;color:var(--dark);font:inherit;cursor:pointer;box-shadow:3px 3px 0 var(--dark)}.earn-pathways button span{font-size:1.45rem}.earn-pathways button:hover,.earn-pathways button:focus-visible,.earn-pathways button.active{background:#fff1eb;border-color:#ff6b4a;transform:translateY(-1px)}.earn-pathways button.active{box-shadow:inset 0 0 0 2px #ff6b4a,3px 3px 0 var(--dark)}.earn-pathways button:disabled{opacity:.55;cursor:not-allowed;transform:none}
.earn-parent-pathways{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;margin:.7rem 0 1rem}.earn-parent-pathways button{min-height:44px;padding:.55rem;border:2px solid var(--dark);border-radius:14px;background:#fff;color:var(--dark);font:inherit;font-weight:900;cursor:pointer}.earn-parent-pathways button:hover,.earn-parent-pathways button:focus-visible,.earn-parent-pathways button.active{background:#fff1eb;border-color:#ff6b4a}
.mode-player-required{width:min(100%,680px);margin:1rem auto;padding:1.25rem;text-align:center;border:3px solid var(--dark);border-radius:22px;background:#fffdf4;box-shadow:5px 5px 0 var(--dark)}.mode-player-required h1{margin-top:0}.mode-player-required p{margin:.5rem auto 1rem;max-width:48ch}
.earn-peer-award{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,1fr);gap:1.4rem;margin-top:1.3rem;padding:clamp(1rem,3vw,1.5rem);border:2px solid rgba(42,27,61,.2);border-radius:22px;background:rgba(255,255,255,.93);box-shadow:0 10px 30px rgba(42,27,61,.09)}.earn-peer-award form,.earn-peer-award label{display:grid;gap:.45rem}.earn-peer-award form{align-content:start}.earn-peer-award select,.earn-peer-award input{width:100%;min-width:0}
.earn-balance,.earn-jobs,.earn-history,.earn-parent-lock,.earn-review-panel,.earn-create-panel,.earn-family-overview{margin-top:1.3rem;padding:clamp(1rem,3vw,1.5rem);border:2px solid rgba(42,27,61,.2);border-radius:22px;background:rgba(255,255,255,.93);box-shadow:0 10px 30px rgba(42,27,61,.09)}.earn-balance{display:flex;align-items:center;justify-content:space-between;gap:1rem}.earn-balance-grid{display:grid;grid-template-columns:repeat(4,minmax(75px,1fr));gap:.55rem}.earn-balance-grid>div{display:grid;place-items:center;min-width:78px;padding:.65rem;border-radius:13px;background:#f8f3ff}.earn-balance-grid strong{font-size:1.2rem}.earn-balance-grid small{font-weight:700}
.earn-section-heading,.earn-parent-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.earn-section-heading h2,.earn-section-heading h3,.earn-parent-heading h2{margin:0}.earn-section-heading>span{padding:.35rem .65rem;border-radius:999px;background:var(--yellow);font-size:.8rem;font-weight:800}.earn-task-list{display:grid;gap:.8rem}.earn-task-card{display:grid;grid-template-columns:54px 1fr;gap:.85rem;padding:1rem;border:2px solid rgba(42,27,61,.18);border-radius:17px;background:#fff;transition:transform .18s ease,box-shadow .18s ease}.earn-task-card:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(42,27,61,.1)}.earn-task-icon{display:grid;place-items:center;width:50px;height:50px;border-radius:15px;background:var(--cream);font-size:1.7rem}.earn-task-top,.earn-task-meta,.earn-task-footer{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap}.earn-task-category{color:#6c5682;font-size:.75rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.earn-status{padding:.3rem .55rem;border-radius:999px;background:#efebf5;font-size:.72rem;font-weight:900}.earn-status-pending_approval .earn-status{background:#fff0ae}.earn-status-approved .earn-status{background:var(--lime)}.earn-status-declined .earn-status{background:#ffe0cb}.earn-task-body h3{margin:.25rem 0;font-size:1.12rem}.earn-task-body>p{margin:0 0 .65rem;line-height:1.45;color:#564a62}.earn-task-meta{justify-content:flex-start;margin:.65rem 0;color:#685e72;font-size:.78rem;font-weight:700}.earn-task-footer{padding-top:.7rem;border-top:1px dashed rgba(42,27,61,.2)}.earn-task-footer>strong{color:#7043a7}.earn-task-missed{border-color:var(--orange)}.earn-gentle-note,.earn-review-note{display:block;margin:.55rem 0;padding:.55rem .7rem;border-radius:10px;background:#fff7dc;color:#6c5310;font-size:.83rem}.earn-empty{display:grid;place-items:center;gap:.25rem;min-height:100px;padding:1.2rem;border:2px dashed rgba(42,27,61,.22);border-radius:15px;color:#71677a;text-align:center}
.earn-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:2px solid var(--dark);border-radius:999px;padding:.62rem 1rem;font:inherit;font-weight:900;cursor:pointer;transition:transform .15s ease,filter .15s ease}.earn-btn:hover:not(:disabled){transform:translateY(-2px)}.earn-btn:disabled{cursor:wait;opacity:.58}.earn-btn-primary{background:var(--turq);color:var(--dark);box-shadow:2px 2px 0 var(--dark)}.earn-btn-secondary{background:#fff;color:var(--dark)}
.earn-parent-view{margin-top:1.4rem}.earn-parent-lock{max-width:620px;margin-inline:auto;text-align:center}.earn-parent-lock h2{font-family:'Bungee',sans-serif}.earn-pin-form{display:flex;align-items:end;justify-content:center;gap:.7rem;max-width:460px;margin:1rem auto}.earn-pin-form label{flex:1;text-align:left}.earn-setup-form{display:grid;gap:.8rem;max-width:480px;margin:1rem auto;text-align:left}.earn-form-message{min-height:1.25em;margin:.7rem 0 0;font-weight:800;color:#27685f}.earn-form-message.error{color:#a52e47}.earn-parent-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.9fr);gap:1.2rem}.earn-review-panel,.earn-create-panel{margin-top:0}.earn-create-panel form{display:grid;gap:.8rem}.earn-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}.earn-field-grid-three{grid-template-columns:repeat(3,1fr)}.earn-business-mode{display:grid;gap:.7rem;padding:.8rem;border:2px dashed var(--orange);border-radius:14px;background:#fff9e9}.earn-business-ideas{display:flex;gap:.4rem;flex-wrap:wrap}.earn-business-ideas button{border:1px solid var(--dark);border-radius:999px;background:#fff;padding:.4rem .65rem;font:inherit;font-size:.78rem;font-weight:800;cursor:pointer}.earn-business-mode>p{font-size:.8rem;color:#6a5d42}.earn-review-actions{display:grid;grid-template-columns:minmax(180px,1fr) auto;align-items:end;gap:.7rem;width:100%}.earn-review-actions>div{display:flex;gap:.5rem;flex-wrap:wrap}.earn-family-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.7rem}.earn-family-card{display:grid;gap:.25rem;padding:.85rem;border-radius:14px;background:#f7f2ff}.earn-family-card strong{font-size:1.05rem}.earn-family-card span,.earn-family-card small{color:#665c70}
.earn-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:1rem;background:rgba(42,27,61,.64);backdrop-filter:blur(5px)}.earn-modal-card{position:relative;display:grid;gap:.8rem;width:min(520px,100%);padding:clamp(1.2rem,4vw,2rem);border:3px solid var(--dark);border-radius:24px;background:#fff;box-shadow:var(--shadow-lg)}.earn-modal-close{position:absolute;right:.7rem;top:.6rem;width:44px;height:44px;border:2px solid var(--dark);border-radius:50%;background:#fff;font-size:1.4rem;cursor:pointer}
.earn-page :focus-visible{outline:3px solid #126f67;outline-offset:3px}
@media(max-width:850px){.earn-parent-grid{grid-template-columns:1fr}.earn-balance{align-items:stretch;flex-direction:column}.earn-balance-grid{width:100%}.earn-review-actions{grid-template-columns:1fr}.earn-review-actions>div .earn-btn{flex:1}}
@media(max-width:620px){.earn-topbar{grid-template-columns:1fr 1fr}.earn-brand{grid-column:1/-1;grid-row:1;text-align:center}.earn-back{grid-row:2}.earn-parent-toggle{grid-row:2}.earn-main{width:min(100% - 1rem,1180px)}.earn-hero{grid-template-columns:1fr;text-align:center}.earn-jc{width:145px;margin:auto}.earn-summary{grid-template-columns:1fr 1fr}.earn-child-snapshot{gap:.45rem}.earn-child-snapshot span{font-size:.86rem}.earn-pathways{grid-template-columns:1fr;gap:.55rem}.earn-pathways button{justify-content:flex-start;padding:.75rem 1rem}.earn-peer-award{grid-template-columns:1fr}.earn-member-row{align-items:stretch;flex-direction:column}.earn-member-row select{min-width:0;margin-left:0}.earn-balance-grid{grid-template-columns:1fr 1fr}.earn-task-card{grid-template-columns:42px 1fr}.earn-task-icon{width:40px;height:40px;font-size:1.35rem}.earn-task-footer{align-items:stretch;flex-direction:column}.earn-task-footer .earn-btn{width:100%}.earn-field-grid,.earn-field-grid-three{grid-template-columns:1fr}.earn-pin-form{align-items:stretch;flex-direction:column}.earn-parent-heading{align-items:flex-start;flex-direction:column}.earn-parent-heading .earn-btn{width:100%}.earn-review-actions>div{flex-direction:column}.earn-review-actions>div .earn-btn{width:100%}}
@media(prefers-reduced-motion:reduce){.earn-page *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(forced-colors:active){.earn-task-card,.earn-summary>div,.earn-hero,.earn-btn,.earn-parent-toggle{border:2px solid CanvasText}}
.earn-parent-note,.earn-completion-note{display:block;margin:.55rem 0;padding:.55rem .7rem;border-radius:10px;font-size:.83rem}.earn-parent-note{background:#f2eff7;color:#554961}.earn-completion-note{background:#e8fbf7;color:#235f58}
.earn-text-button{border:0;background:transparent;color:#5c397f;padding:.5rem;font:inherit;font-weight:800;text-decoration:underline;cursor:pointer}.earn-reset-actions{display:flex;gap:.6rem;flex-wrap:wrap}.earn-open-jobs{margin-top:1.2rem;padding-top:1.2rem;border-top:2px dashed rgba(42,27,61,.18)}.earn-open-jobs>h3{margin-bottom:.8rem}

/* Sprint 7: private Club communication extends the established Fab Five visual system. */
.club-comms-page{min-height:100vh;background:radial-gradient(circle at 10% 8%,rgba(78,205,196,.18),transparent 34%),radial-gradient(circle at 90% 72%,rgba(255,230,109,.2),transparent 36%),var(--cream);color:var(--dark)}.club-comms-page .hidden{display:none!important}.club-notification-link{justify-self:end;display:inline-flex;gap:.35rem;align-items:center;border:2px solid var(--dark);border-radius:999px;background:#fff;padding:.5rem .8rem;color:var(--dark);font-weight:900;text-decoration:none}.club-notification-link span{display:grid;place-items:center;min-width:1.5rem;height:1.5rem;border-radius:50%;background:var(--yellow);font-size:.75rem}.club-comms-main{width:min(1180px,calc(100% - 2rem));margin:auto;padding:clamp(1rem,3vw,2.4rem) 0 4rem}.club-comms-hero{display:grid;grid-template-columns:minmax(140px,210px) 1fr;align-items:center;gap:clamp(1rem,4vw,2.5rem);padding:clamp(1.2rem,4vw,2.5rem);border:3px solid var(--dark);border-radius:30px;background:linear-gradient(135deg,var(--aqua),#e8fffb 54%,var(--yellow));box-shadow:var(--shadow-lg)}.club-pebbles{width:clamp(140px,19vw,205px);border-color:#fff}.club-comms-hero h1{margin:.25rem 0 .7rem;font-family:'Bungee',sans-serif;font-size:clamp(1.8rem,4.6vw,3.4rem);line-height:1}.club-comms-hero p{max-width:700px;font-weight:650;line-height:1.5}.club-signin,.club-notifications,.club-adult-tools{margin:1.3rem 0;padding:clamp(1rem,3vw,1.5rem);border:2px solid rgba(42,27,61,.2);border-radius:22px;background:#fff;box-shadow:0 10px 30px rgba(42,27,61,.09)}.club-signin{max-width:620px;margin-inline:auto}.club-signin form{display:grid;gap:.75rem}.club-comms-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;margin-top:1.5rem}.club-comms-grid>div{min-width:0;padding:clamp(1rem,3vw,1.4rem);border:2px solid rgba(42,27,61,.2);border-radius:22px;background:rgba(255,255,255,.94)}.club-card-list{display:grid;gap:.8rem}.club-card{display:grid;gap:.65rem;padding:1rem;border:2px solid rgba(42,27,61,.17);border-radius:17px;background:#fff}.club-card h3,.club-card p{margin:0}.club-card p{line-height:1.5;color:#564a62}.club-card>button{justify-self:start}.club-priority-high{border-left:8px solid #d94c70}.club-priority-medium{border-left:8px solid var(--yellow)}.club-priority-low{border-left:8px solid var(--aqua)}.club-unread{box-shadow:0 0 0 3px rgba(78,205,196,.22)}.club-tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem}.club-tool-grid form{display:grid;align-content:start;gap:.75rem;padding:1rem;border-radius:17px;background:#f8f5fc}.club-vote-options{display:grid;gap:.45rem}.club-vote-option{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.6rem;padding:.65rem;border:1px solid rgba(42,27,61,.2);border-radius:12px}.club-vote-option input,.club-check input{width:auto}.club-finalize{display:grid;grid-template-columns:1fr auto;gap:.5rem;padding-top:.6rem;border-top:1px dashed rgba(42,27,61,.2)}.club-check{display:flex;align-items:center;gap:.55rem;font-weight:800}.club-notification{display:grid;gap:.2rem;width:100%;padding:.8rem;border:1px solid rgba(42,27,61,.18);border-radius:13px;background:#fff;color:var(--dark);text-align:left;cursor:pointer}.club-notification span{color:#62576b}.club-notification.club-unread{border-left:7px solid var(--turq)}#club-preferences-form{display:grid;gap:.8rem;margin-top:1rem;padding-top:1rem;border-top:2px dashed rgba(42,27,61,.18)}
.club-comms-page input,.club-comms-page select,.club-comms-page textarea{min-height:44px;border:2px solid rgba(42,27,61,.28);border-radius:12px;background:#fff;padding:.62rem .75rem;color:var(--dark);font:inherit}.club-comms-page input:focus,.club-comms-page select:focus,.club-comms-page textarea:focus{outline:3px solid rgba(78,205,196,.42);outline-offset:2px;border-color:var(--dark)}.club-vote-option input,.club-check input{min-width:44px;min-height:44px}
@media(max-width:800px){.club-comms-grid,.club-tool-grid{grid-template-columns:1fr}}
@media(max-width:620px){.club-comms-main{width:min(100% - 1rem,1180px)}.club-comms-hero{grid-template-columns:1fr;text-align:center}.club-pebbles{width:145px;margin:auto}.club-finalize{grid-template-columns:1fr}.club-finalize .earn-btn{width:100%}}
@media(prefers-reduced-motion:reduce){.club-comms-page *{animation:none!important;transition:none!important}}@media(forced-colors:active){.club-comms-hero,.club-card,.club-comms-grid>div,.club-notification{border:2px solid CanvasText}}
.earn-identity-bar{display:grid;grid-template-columns:minmax(180px,1fr) minmax(360px,2fr);align-items:center;gap:.8rem;margin:1rem 0;padding:.85rem 1rem;border:2px solid rgba(42,27,61,.2);border-radius:17px;background:#fff}.earn-identity-bar>div{display:grid;gap:.15rem}.earn-identity-bar>div span{font-size:.8rem;color:#665c70}.earn-identity-bar form{display:grid;grid-template-columns:1fr 110px auto auto;gap:.5rem}.earn-identity-bar>.earn-form-message{grid-column:1/-1;margin:0}.earn-identity-manager{margin-bottom:1.2rem;padding:1rem;border:2px solid rgba(42,27,61,.18);border-radius:18px;background:#fff}.earn-identity-manager form{align-items:end;margin-top:.8rem}.earn-task-section{display:grid;gap:.7rem}.earn-task-section>h3{margin:.4rem 0 0;padding:.55rem .8rem;border-radius:12px;background:#f4eff9;font-size:.95rem}.earn-priority-high{border-left:8px solid #d94c70;box-shadow:0 6px 20px rgba(217,76,112,.12)}.earn-priority-low{opacity:.94}.earn-card-actions{display:flex;gap:.4rem;flex-wrap:wrap}.earn-card-actions .earn-btn{min-width:44px}.earn-review-actions select{min-width:180px}
@media(max-width:850px){.earn-identity-bar{grid-template-columns:1fr}.earn-identity-bar form{grid-template-columns:1fr 100px}.earn-identity-bar form .earn-btn{width:100%}}
@media(max-width:520px){.earn-identity-bar form{grid-template-columns:1fr}.earn-card-actions{display:grid;grid-template-columns:1fr 1fr}.earn-review-actions select{min-width:0}}
.earn-spontaneous-panel{display:grid;grid-template-columns:minmax(200px,.7fr) minmax(420px,1.3fr);gap:1rem;margin-bottom:1.2rem;padding:1rem;border:2px dashed var(--orange);border-radius:18px;background:#fff9e9}.earn-spontaneous-panel h3,.earn-spontaneous-panel p{margin:.2rem 0}.earn-spontaneous-panel form{display:grid;grid-template-columns:1fr 120px 140px;gap:.6rem;align-items:end}.earn-spontaneous-panel form label:last-of-type{grid-column:1/-1}.earn-spontaneous-panel .earn-form-message{grid-column:1/-1}
@media(max-width:850px){.earn-spontaneous-panel{grid-template-columns:1fr}.earn-spontaneous-panel form{grid-template-columns:1fr 1fr}}@media(max-width:520px){.earn-spontaneous-panel form{grid-template-columns:1fr}.earn-spontaneous-panel form label:last-of-type{grid-column:auto}}

/* Compact Learning and Earn home block beneath the established Fab Five hero. */
.platform-home{position:relative;z-index:2;width:min(1080px,calc(100% - 2rem));margin:clamp(1rem,2.5vw,1.6rem) auto;padding:clamp(.8rem,2vw,1.2rem);border:3px solid var(--dark);border-radius:26px;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(255,248,231,.97));box-shadow:var(--shadow-lg);scroll-margin-top:95px}
.platform-home-login{display:grid;gap:.35rem;margin-bottom:.85rem;padding:.65rem .75rem;border:2px solid rgba(42,27,61,.24);border-radius:16px;background:linear-gradient(135deg,#fff5c7,#e8fffb)}
.platform-home-signin{display:block}
.platform-player-picker{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}.platform-player-picker h2{margin:0 .35rem 0 0;font-family:'Bungee',sans-serif;font-size:1rem}.platform-player-picker>p{flex-basis:100%;margin:0;font-size:.85rem}.platform-player-options{display:flex;align-items:center;gap:.45rem;flex:1;flex-wrap:wrap}.platform-player-button{display:inline-flex;align-items:center;gap:.35rem;min-height:42px;padding:.45rem .8rem;border:2px solid var(--dark);border-radius:14px;background:#fff;color:var(--dark);font:inherit;font-weight:900;cursor:pointer;box-shadow:2px 2px 0 var(--dark)}.platform-player-button:hover,.platform-player-button:focus-visible,.platform-player-button.active{background:var(--turq);transform:translateY(-1px)}.platform-player-button:disabled{opacity:.6;cursor:wait}.platform-no-players{margin:0;font-size:.85rem}
#platform-parent-access{min-height:42px;white-space:nowrap}
.platform-parent-signin{display:grid;grid-template-columns:minmax(150px,1fr) minmax(120px,.55fr) auto auto auto;align-items:end;gap:.5rem}.platform-parent-signin label span,.platform-parent-view span{display:block;margin-bottom:.2rem;font-size:.75rem;font-weight:900}.platform-parent-signin input,.platform-parent-signin select,.platform-parent-view select{width:100%;min-height:42px;border:2px solid rgba(42,27,61,.32);border-radius:10px;background:#fff;padding:.55rem .65rem;font:inherit}.platform-parent-signin .btn{min-height:42px;padding:.5rem .8rem}.platform-parent-setup{grid-column:1/-1;color:#52346c;font-size:.78rem;font-weight:800}.platform-parent-view{min-width:170px}
.platform-home-current{display:flex;align-items:center;justify-content:space-between;gap:.7rem;font-weight:900}.platform-home-current .btn{min-height:40px;padding:.45rem .8rem}
.platform-home-login>p{min-height:1.15em;margin:0;color:#94334f;font-size:.78rem;font-weight:800}
.platform-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}
.platform-feature-card{display:grid;grid-template-columns:105px 1fr;align-items:center;gap:1rem;min-height:180px;padding:1rem;border:3px solid var(--dark);border-radius:22px;box-shadow:3px 3px 0 var(--dark);overflow:hidden}
.platform-feature-ollie{background:linear-gradient(145deg,#f1e9ff,#dcfbf7)}.platform-feature-jc{background:linear-gradient(145deg,#fff1a8,#fff8dc)}
.platform-feature-character{width:105px;height:105px;border:3px solid #fff;border-radius:22px;background:#fff;box-shadow:0 8px 22px rgba(42,27,61,.16)}.platform-feature-character picture,.platform-feature-character img,.platform-feature-character video{width:100%;height:100%;object-fit:contain}
.platform-feature-card h2{margin:0 0 .55rem;font-family:'Bungee',sans-serif;font-size:clamp(1.1rem,2vw,1.5rem);line-height:1.12}
.platform-feature-links{display:flex;gap:.4rem;flex-wrap:wrap}.platform-feature-links a,.platform-feature-primary{display:inline-flex;align-items:center;min-height:40px;padding:.45rem .65rem;border:2px solid var(--dark);border-radius:999px;background:#fff;color:var(--dark);font-size:.78rem;font-weight:900;text-decoration:none}.platform-feature-links a:hover,.platform-feature-links a:focus-visible,.platform-feature-primary:hover,.platform-feature-primary:focus-visible{background:var(--purple);color:#fff}
.platform-feature-stat{margin:.7rem 0 0;color:#52346c;font-size:.92rem;font-weight:1000}
.platform-release code,.club-release-details code{padding:.18rem .35rem;border-radius:5px;background:#eee8f3;color:#49345e}
.club-about{scroll-margin-top:90px}.club-release-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;margin:1rem 0}.club-release-details>div{padding:.8rem;border-radius:13px;background:#f7f3fb}.club-release-details dt{font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.club-release-details dd{margin:.25rem 0 0;line-height:1.4}
.platform-home .hidden{display:none!important}
@media(max-width:760px){.platform-home{width:min(100% - .8rem,1080px);margin:.7rem auto;padding:.7rem;border-radius:21px;box-shadow:3px 3px 0 var(--dark)}.platform-player-picker{align-items:stretch}.platform-player-picker h2{flex-basis:100%}.platform-player-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex-basis:100%}.platform-player-button{justify-content:center;width:100%}#platform-parent-access{width:100%}.platform-parent-signin{grid-template-columns:1fr 1fr}.platform-parent-signin .btn{width:100%}.platform-home-current{align-items:stretch;flex-direction:column}.platform-parent-view{width:100%}.platform-feature-grid{grid-template-columns:1fr}.platform-feature-card{grid-template-columns:88px 1fr;min-height:158px;padding:.8rem}.platform-feature-character{width:88px;height:88px}.club-release-details{grid-template-columns:1fr}.topnav{position:relative}.slogan-of-week{position:relative}.earn-parent-pathways{grid-template-columns:1fr}}
@media(max-width:760px){.spot-form{grid-template-columns:1fr}.spot-form button{grid-column:1}}
@media(max-width:410px){.platform-player-options,.platform-parent-signin{grid-template-columns:1fr}.platform-feature-card{grid-template-columns:76px 1fr;gap:.7rem}.platform-feature-character{width:76px;height:76px}.platform-feature-links a,.platform-feature-primary{min-height:38px;font-size:.72rem}.platform-feature-stat{font-size:.84rem}}

.earn-money-skills{margin:1rem 0;padding:1rem;border:3px solid var(--dark);border-radius:22px;background:#fff8d8;box-shadow:4px 4px 0 var(--dark)}
.earn-player-create{display:grid;gap:.8rem;margin:1rem 0;padding:1rem;border:3px solid var(--dark);border-radius:22px;background:#f7f2ff;box-shadow:4px 4px 0 var(--dark)}
.earn-create-choices{display:flex;gap:.65rem;flex-wrap:wrap}.earn-player-plan,.earn-player-editor{display:grid;gap:.75rem;padding:.9rem;border:2px solid rgba(42,27,61,.18);border-radius:16px;background:#fff}.earn-player-plan label,.earn-player-editor label{display:grid;gap:.35rem}.earn-player-plan textarea,.earn-player-editor textarea,.earn-player-editor input,.earn-player-editor select{width:100%;min-width:0}
.earn-money-band{display:flex;gap:.5rem;flex-wrap:wrap;margin:.75rem 0}.earn-money-band button{min-height:40px;padding:.45rem .85rem;border:2px solid var(--dark);border-radius:999px;background:#fff;font:inherit;font-weight:900;cursor:pointer}.earn-money-band button.active{background:var(--yellow)}
.earn-money-lessons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.earn-money-lesson{display:flex;flex-direction:column;gap:.45rem;padding:.9rem;border:2px solid var(--dark);border-radius:16px;background:#fff}.earn-money-lesson>span{font-size:.75rem;font-weight:900;text-transform:uppercase}.earn-money-lesson h3,.earn-money-lesson p{margin:0}.earn-money-lesson .earn-btn{align-self:flex-start;margin-top:auto}.earn-money-safety{font-size:.82rem;margin:.85rem 0 0;padding-left:1.2rem}
.platform-player-button img{width:48px;height:48px;object-fit:cover;border:2px solid var(--dark);border-radius:50%;background:#fff}.platform-player-button .platform-player-generic{display:grid;place-items:center;width:48px;height:48px;border:2px solid var(--dark);border-radius:50%;background:#fff}
@media(max-width:760px){.earn-money-lessons{grid-template-columns:1fr}.earn-money-skills,.earn-player-create{padding:.75rem}.earn-create-choices{flex-direction:column}.earn-create-choices .earn-btn{width:100%}.platform-player-button{justify-content:flex-start}}
@media(forced-colors:active){.platform-home,.platform-home-login,.platform-feature-card{border:2px solid CanvasText}}

/* Persistent player and temporary Parent Mode controls. */
.parent-mode-bar{position:fixed;right:1rem;bottom:1rem;z-index:2500;display:flex;align-items:center;gap:.65rem;max-width:min(680px,calc(100% - 2rem));padding:.65rem .8rem;border:3px solid var(--dark);border-radius:17px;background:var(--yellow);color:var(--dark);box-shadow:4px 4px 0 var(--dark);font-weight:900}
.parent-mode-bar.hidden{display:none!important}.parent-mode-bar span{font-size:.78rem}.parent-mode-bar button{min-height:44px;border:2px solid var(--dark);border-radius:999px;background:#fff;padding:.45rem .75rem;color:var(--dark);font:inherit;font-weight:900;cursor:pointer}
.parent-mode-bar button:hover,.parent-mode-bar button:focus-visible{background:var(--turq)}
.mode-page-nav,.mode-page-status{display:flex;align-items:center;gap:.55rem}.mode-page-nav a,.mode-page-nav button,.earn-profile-settings{display:inline-flex;align-items:center;min-height:44px}.mode-page-nav a{color:var(--dark);font-weight:900}.mode-page-nav button{border:0;background:transparent;padding:.25rem;color:inherit;font:inherit;cursor:pointer}.mode-page-status{justify-self:end}.mode-page-status>[data-mode-current-player]{font-size:.76rem;font-weight:900;white-space:nowrap}
@media(max-width:720px){.parent-mode-bar{right:.4rem;bottom:.4rem;left:.4rem;max-width:none;justify-content:space-between;flex-wrap:wrap}.parent-mode-bar span{order:3;flex-basis:100%}.mode-page-status{align-items:flex-end;flex-direction:column}.mode-page-nav{gap:.4rem}.mode-page-status>[data-mode-current-player]{white-space:normal;text-align:right}.learn-topbar,.earn-topbar{padding-inline:.7rem}}
@media(max-width:420px){.parent-mode-bar button{width:100%}.mode-page-nav{align-items:flex-start;flex-direction:column}.mode-page-status>[data-mode-current-player]{font-size:.68rem}}
