/* ===== 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);
}

* { 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 {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1001;
  width: 380px;
  max-width: calc(100vw - 20px);
  height: 600px;
  max-height: calc(100vh - 40px);
  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;
}
@keyframes slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); 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);
}
.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.1rem; letter-spacing: 1px; }
.pebbles-chat-header span { font-size: 0.8rem; opacity: 0.95; }
.pebbles-chat-header > div { flex: 1; }
#pebbles-close {
  background: var(--dark);
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  width: 32px; height: 32px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}
.pebbles-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bubble {
  max-width: 85%;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--dark);
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.4;
  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: white;
  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.6rem 0.75rem;
  background: var(--white);
  border-top: 2px solid var(--dark);
  overflow-x: auto;
  flex-wrap: nowrap;
}
.pebbles-quick button {
  flex: 0 0 auto;
  background: var(--lime);
  border: 2px solid var(--dark);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.pebbles-quick button:hover { background: var(--yellow); }
.pebbles-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem;
  background: var(--white);
  border-top: 2px solid var(--dark);
}
.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;
  font-family: 'Fredoka', sans-serif;
  border: 2px solid var(--dark);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  background: var(--cream);
  outline: none;
  font-size: 0.95rem;
}
.pebbles-form input:focus { background: white; box-shadow: 0 0 0 2px var(--turq); }
.pebbles-form button[type="submit"] {
  background: var(--pink);
  color: white;
  border: 2px solid var(--dark);
  border-radius: 10px;
  padding: 0 0.9rem;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--dark);
}

/* ===== 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 {
    width: 100%;
    height: 100%;
    max-height: 100%;
    bottom: 0; right: 0;
    border-radius: 0;
    border-width: 0;
  }
  .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: 38px;
  height: 38px;
  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; }
}
