/* ===== The Bin Fairies — sparkly rainbow theme ===== */
:root {
  --pink:   #ff8fce;
  --purple: #b078ff;
  --blue:   #7fc4ff;
  --mint:   #8ef0d0;
  --yellow: #ffe27a;
  --ink:    #4a3b63;
  --ink-soft:#7c6a99;
  --card:   #ffffff;
  --shadow: 0 10px 30px rgba(147, 97, 214, 0.18);
  --shadow-lg: 0 18px 50px rgba(147, 97, 214, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -5%, #ffe6f6 0%, transparent 55%),
    radial-gradient(1000px 500px at 100% 0%, #e6f0ff 0%, transparent 55%),
    linear-gradient(180deg, #fff6fd 0%, #f4ecff 45%, #eaf4ff 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.5;
}
h1, h2, h3, .fancy { font-family: 'Chewy', 'Baloo 2', cursive; font-weight: 400; letter-spacing: .5px; }

/* floating sparkle decorations */
.sparkle-field { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.sparkle-field span {
  position: absolute; font-size: 22px; opacity: .55;
  animation: floaty 9s ease-in-out infinite;
}
@keyframes floaty {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-22px) rotate(12deg); }
}

.wrap { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ===== Hero ===== */
.hero { text-align: center; padding: 54px 20px 30px; position: relative; z-index: 1; }
.hero .title {
  font-size: clamp(2.6rem, 9vw, 5rem);
  margin: 0;
  background: linear-gradient(100deg, var(--pink), var(--purple) 45%, var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 4px 0 rgba(255,255,255,.6);
  line-height: 1.05;
}
.hero .sub {
  font-size: clamp(1.05rem, 3.4vw, 1.5rem);
  color: var(--ink-soft);
  max-width: 640px; margin: 14px auto 6px; font-weight: 600;
}
.hero .price-pop {
  display: inline-block; margin-top: 10px; transform: rotate(-3deg);
  background: var(--yellow); color: #8a5a00; font-family: 'Chewy', cursive;
  font-size: clamp(1.1rem, 4vw, 1.6rem); padding: 6px 18px; border-radius: 16px;
  box-shadow: var(--shadow); border: 3px solid #fff;
}

/* ===== Buttons ===== */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 26px 0 6px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.05rem;
  padding: 14px 26px; border-radius: 999px; border: 3px solid #fff; color: #fff;
  text-decoration: none; box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0) scale(.99); }
.btn.pink   { background: linear-gradient(135deg, #ff9ed6, #ff6fb8); }
.btn.purple { background: linear-gradient(135deg, #c19bff, #9361d6); }
.btn.blue   { background: linear-gradient(135deg, #9bd4ff, #5aa9f0); }
.btn.big { font-size: 1.25rem; padding: 18px 40px; }
.btn.ghost { background: #fff; color: var(--purple); }
.btn.venmo { background: linear-gradient(135deg, #ff7ec6, #e84aa6); }

/* Pay / Venmo section */
.pay-card {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: linear-gradient(160deg, #fff, #eef6ff); border: 3px solid #fff;
  border-radius: 28px; padding: 28px 26px; box-shadow: var(--shadow);
}
.pay-card .vlogo { font-size: 2.6rem; }
.pay-card p { color: var(--ink-soft); font-weight: 600; margin: 6px 0 16px; }

/* ===== Sections / cards ===== */
section { padding: 34px 0; }
.section-title { text-align: center; font-size: clamp(1.8rem, 6vw, 2.8rem); margin: 0 0 6px; color: var(--purple); }
.section-title .em { color: var(--pink); }
.lead { text-align: center; color: var(--ink-soft); max-width: 620px; margin: 0 auto 26px; font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border-radius: 24px; padding: 26px 22px; text-align: center;
  box-shadow: var(--shadow); border: 3px solid #fff; position: relative;
}
.card:nth-child(1) { transform: rotate(-1.4deg); }
.card:nth-child(2) { transform: rotate(.8deg); }
.card:nth-child(3) { transform: rotate(-.6deg); }
.card .emoji { font-size: 3rem; display: block; margin-bottom: 8px; }
.card .step {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--purple); color: #fff; font-family: 'Chewy'; width: 40px; height: 40px;
  border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; border: 3px solid #fff;
  box-shadow: var(--shadow);
}
.card h3 { margin: 6px 0 6px; font-size: 1.4rem; color: var(--ink); }
.card p { margin: 0; color: var(--ink-soft); font-weight: 600; }

/* Meet the fairies */
.fairies { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fairy {
  background: linear-gradient(160deg, #fff, #fdf3ff); border-radius: 24px; padding: 24px;
  box-shadow: var(--shadow); border: 3px solid #fff; text-align: center;
}
.fairy .face { font-size: 3.4rem; }
.fairy h3 { margin: 6px 0 4px; font-size: 1.7rem; color: var(--purple); }
.fairy p { margin: 0; color: var(--ink-soft); font-weight: 600; }
/* Fairy hair badge + face positioning */
.fairy .face { position: relative; display: inline-block; }
.fairy .face .hair { position: absolute; right: -12px; bottom: -4px; font-size: 1.6rem; }

/* Fairy themes (hair-matched) */
.fairy.pink { background: linear-gradient(160deg, #fff, #fff0f8); border-color: #ffe0f0; }
.fairy.pink h3 { color: var(--pink); }
.fairy.blue { background: linear-gradient(160deg, #fff, #eef6ff); border-color: #dcecff; }
.fairy.blue h3 { color: var(--blue); }
.fairy.blue .face { filter: hue-rotate(200deg) saturate(1.15); }
.fairy.red { background: linear-gradient(160deg, #fff, #fff1ec); border-color: #ffdccf; }
.fairy.red h3 { color: #e8552d; }
.fairy.red .face { filter: hue-rotate(-28deg) saturate(1.4); }
.fairy.blonde { background: linear-gradient(160deg, #fff, #fffae4); border-color: #ffeab0; }
.fairy.blonde h3 { color: #d99a00; }
.fairy.blonde .face { filter: hue-rotate(135deg) saturate(1.25) brightness(1.05); }

/* Town picker modal */
.loc-modal { position: fixed; inset: 0; z-index: 50; background: rgba(74,59,99,.45);
  backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; }
.loc-modal[hidden] { display: none; }
.loc-card { background: #fff; border-radius: 28px; padding: 32px 28px; max-width: 430px; width: 100%;
  text-align: center; box-shadow: var(--shadow-lg); border: 4px solid #fff; }
.loc-card .loc-emoji { font-size: 2.8rem; }
.loc-card h2 { color: var(--purple); font-size: 2.1rem; margin: 6px 0 2px; }
.loc-card p { color: var(--ink-soft); font-weight: 600; margin: 0 0 18px; }
.loc-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.loc-note { font-size: .82rem; margin: 18px 0 0 !important; }

/* Town chip */
.town-chip { display: inline-block; background: #fff; border: 2px solid #ecd9ff; border-radius: 999px;
  padding: 6px 16px; font-weight: 700; color: var(--ink-soft); margin-bottom: 12px; box-shadow: var(--shadow); }
.town-chip b { color: var(--purple); }
.town-chip a { color: var(--blue); text-decoration: none; font-size: .85rem; }

/* ===== Sign-up form ===== */
.form-card {
  background: var(--card); border-radius: 28px; padding: 30px; max-width: 560px; margin: 0 auto;
  box-shadow: var(--shadow-lg); border: 4px solid #fff;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 800; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 2.5px solid #ecd9ff;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fdfaff; transition: border-color .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(176,120,255,.18);
}
.field .hint { font-size: .82rem; color: var(--ink-soft); margin-top: 4px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.price-preview {
  text-align: center; font-weight: 700; color: #8a5a00; background: var(--yellow);
  border-radius: 14px; padding: 10px 14px; margin: 4px 0 18px; border: 2px solid #fff;
}
.price-preview b { color: #6b4600; }
.form-msg { text-align: center; font-weight: 700; margin-top: 10px; min-height: 1.2em; }
.form-msg.error { color: #d6336c; }

.success-box { text-align: center; padding: 20px; }
.success-box .big-emoji { font-size: 4rem; }
.success-box h3 { color: var(--purple); font-size: 2rem; margin: 8px 0; }

/* ===== Footer ===== */
footer { text-align: center; padding: 40px 20px 60px; color: var(--ink-soft); font-weight: 600; }
footer .heart { color: var(--pink); }

/* ===== Admin ===== */
.admin-shell { max-width: 1100px; margin: 0 auto; padding: 24px 18px 60px; position: relative; z-index: 1; }
.login-card {
  max-width: 400px; margin: 12vh auto; background: var(--card); border-radius: 28px; padding: 34px;
  box-shadow: var(--shadow-lg); border: 4px solid #fff; text-align: center;
}
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 18px 0 26px; }
.tile { background: var(--card); border-radius: 20px; padding: 20px; text-align: center; box-shadow: var(--shadow); border: 3px solid #fff; }
.tile .num { font-family: 'Chewy'; font-size: 2.2rem; color: var(--purple); line-height: 1; }
.tile .lbl { color: var(--ink-soft); font-weight: 700; font-size: .9rem; margin-top: 6px; }
.tile.money .num { color: #d6336c; }
.tile.good .num { color: #1c9e6f; }

.table-card { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); border: 3px solid #fff; overflow: hidden; }
table.admin { width: 100%; border-collapse: collapse; }
table.admin th, table.admin td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #f0e6ff; font-size: .95rem; }
table.admin th { background: #faf5ff; color: var(--ink-soft); font-weight: 800; }
table.admin tr:last-child td { border-bottom: none; }
.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.pill.pending { background: #fff3d6; color: #b47b00; }
.pill.active  { background: #d9f7e8; color: #178a5f; }
.pill.paused  { background: #eee; color: #777; }
.pill.behind  { background: #ffe0ec; color: #d6336c; }
.pill.plan    { background: #ece0ff; color: #7a4fd0; }
.tile.warn .num { color: #d6336c; }
.mini-btn { border: none; cursor: pointer; padding: 6px 12px; border-radius: 10px; font-weight: 800; font-family: inherit; font-size: .85rem; }
.mini-btn.pay { background: #d9f7e8; color: #178a5f; }
.mini-btn.pay.unpaid { background: #ffe0ec; color: #d6336c; }
.mini-btn.del { background: #ffe0e0; color: #c0392b; }
.mini-btn.edit { background: #e9e0ff; color: #7a4fd0; }

.topbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.topbar h1 { margin: 0; color: var(--purple); font-size: 2rem; }

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .cards, .fairies { grid-template-columns: 1fr; }
  .card { transform: none !important; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .table-card { overflow-x: auto; }
  table.admin { min-width: 640px; }
}
