:root {
  --bg: #15265A;
  --primary: #15265A;
  --primary-deep: #0b1638;
  --accent: #B9EA1B;
  --accent-soft: rgba(185, 234, 27, 0.14);
  --accent-line: rgba(185, 234, 27, 0.36);
  --ink: #f6f8fc;
  --muted: rgba(246, 248, 252, 0.76);
  --muted-soft: rgba(246, 248, 252, 0.54);
  --surface: rgba(12, 24, 62, 0.72);
  --surface-tile: rgba(255, 255, 255, 0.048);
  --surface-border: rgba(255, 255, 255, 0.13);
  --field: rgba(8, 18, 48, 0.74);
  --danger: #ffb4a8;
  --danger-bg: rgba(255, 107, 90, 0.12);
  --radius-card: 24px;
  --radius-tile: 16px;
  --radius-control: 14px;
  --shadow: 0 28px 72px rgba(4, 10, 30, 0.52), 0 1px 0 rgba(255, 255, 255, 0.09) inset;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
}

body {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.25rem;
  padding: 2rem 1.15rem 3rem;
  color: var(--ink);
  font-family: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    radial-gradient(740px circle at 50% -10%, rgba(185, 234, 27, 0.18), transparent 62%),
    radial-gradient(680px circle at 8% 108%, rgba(56, 94, 206, 0.32), transparent 60%),
    radial-gradient(540px circle at 94% 92%, rgba(9, 19, 52, 0.68), transparent 58%),
    radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 26px 26px;
  background-attachment: fixed;
}

body.page-admin {
  align-content: start;
}

/* Floating ambient party scene */
.ambient-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  will-change: transform;
}

.orb-lime {
  width: 24rem;
  height: 24rem;
  top: -7rem;
  right: -5rem;
  background: radial-gradient(circle, rgba(185, 234, 27, 0.34), transparent 70%);
  animation: floatOrbA 16s ease-in-out infinite alternate;
}

.orb-blue {
  width: 28rem;
  height: 28rem;
  bottom: -9rem;
  left: -7rem;
  background: radial-gradient(circle, rgba(78, 122, 255, 0.36), transparent 70%);
  animation: floatOrbB 20s ease-in-out infinite alternate;
}

.spark {
  position: absolute;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  opacity: 0;
  animation: sparkFloat 9s ease-in-out infinite;
}

.spark-1 { left: 12%; top: 76%; animation-delay: 0s; animation-duration: 8.5s; }
.spark-2 { left: 84%; top: 68%; width: 0.32rem; height: 0.32rem; animation-delay: 1.7s; animation-duration: 10s; }
.spark-3 { left: 22%; top: 28%; width: 0.3rem; height: 0.3rem; background: #fff; box-shadow: 0 0 10px #fff; animation-delay: 3.1s; animation-duration: 9.2s; }
.spark-4 { left: 77%; top: 24%; animation-delay: 4.4s; animation-duration: 11s; }
.spark-5 { left: 8%; top: 48%; width: 0.28rem; height: 0.28rem; animation-delay: 2.4s; animation-duration: 9.8s; }
.spark-6 { left: 91%; top: 46%; width: 0.34rem; height: 0.34rem; background: #fff; box-shadow: 0 0 10px #fff; animation-delay: 5.6s; animation-duration: 8.8s; }

@keyframes floatOrbA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-48px, 42px, 0) scale(1.12); }
}

@keyframes floatOrbB {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(54px, -36px, 0) scale(1.1); }
}

@keyframes sparkFloat {
  0% { transform: translateY(18px) scale(0.5); opacity: 0; }
  25% { opacity: 0.72; }
  65% { opacity: 0.45; }
  100% { transform: translateY(-64px) scale(1.15); opacity: 0; }
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 50;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

h1, h2, h3, .eyebrow, .stat-value {
  font-family: inherit;
  text-wrap: balance;
}

h1 {
  margin: 0.45rem 0 0;
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.028em;
}

/* Top navigation bar on subpages */
.back {
  position: relative;
  z-index: 1;
  margin: 0;
  width: min(100%, 33rem);
}

.page-admin .back {
  width: min(100%, 62rem);
}

.back a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.back a:hover {
  color: var(--ink);
}

.back .logo {
  width: min(100%, 10.5rem);
  margin: 0;
  transition: transform 220ms var(--spring), opacity 180ms ease;
}

.back a:hover .logo {
  transform: translateY(-2px) scale(1.02);
}

.back-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 200ms var(--spring), border-color 180ms ease, background-color 180ms ease;
}

.back a:hover .back-pill {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  transform: translateX(-3px);
}

/* Main containers & interactive spotlight glass cards */
.invite, .sheet {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: min(100%, 33rem);
  padding: 2.5rem 2.2rem 2.1rem;
  text-align: center;
  border-radius: var(--radius-card);
  border: 1px solid var(--surface-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0) 38%),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 260ms var(--ease-out), border-color 240ms ease;
}

.invite:hover, .sheet:hover {
  border-color: rgba(185, 234, 27, 0.24);
}

.invite::before, .sheet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.9;
  pointer-events: none;
}

.invite::after, .sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    380px circle at var(--spot-x, 50%) var(--spot-y, -20%),
    rgba(185, 234, 27, 0.11),
    transparent 68%
  );
  opacity: var(--spot-opacity, 0);
  transition: opacity 260ms ease;
  pointer-events: none;
  z-index: 0;
}

.invite > *, .sheet > * {
  position: relative;
  z-index: 1;
}

.invite-copy {
  width: min(100%, 44rem);
  padding: 2.75rem 2.6rem 2.35rem;
}

.admin {
  position: relative;
  z-index: 1;
  width: min(100%, 62rem);
}

/* Staggered spring entrance */
@media (prefers-reduced-motion: no-preference) {
  .invite, .sheet, .admin {
    animation: cardEnter 480ms var(--ease-out) both;
  }

  .invite-copy > *,
  .sheet > *,
  .stats > article {
    animation: itemRise 520ms var(--ease-out) both;
  }

  .invite-copy > *:nth-child(1), .sheet > *:nth-child(1), .stats > article:nth-child(1) { animation-delay: 40ms; }
  .invite-copy > *:nth-child(2), .sheet > *:nth-child(2), .stats > article:nth-child(2) { animation-delay: 95ms; }
  .invite-copy > *:nth-child(3), .sheet > *:nth-child(3), .stats > article:nth-child(3) { animation-delay: 150ms; }
  .invite-copy > *:nth-child(4), .sheet > *:nth-child(4) { animation-delay: 205ms; }
  .invite-copy > *:nth-child(5), .sheet > *:nth-child(5) { animation-delay: 260ms; }
  .invite-copy > *:nth-child(6), .sheet > *:nth-child(6) { animation-delay: 315ms; }
  .invite-copy > *:nth-child(7), .sheet > *:nth-child(7) { animation-delay: 370ms; }

  @keyframes cardEnter {
    from {
      opacity: 0;
      transform: perspective(1200px) translateY(16px) scale(0.985);
    }
    to {
      opacity: 1;
      transform: perspective(1200px) translateY(0) scale(1);
    }
  }

  @keyframes itemRise {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Brand & badges */
.logo {
  display: block;
  width: min(100%, 17.5rem);
  height: auto;
  margin: 0 auto 1.35rem;
}

.logo-hero {
  transition: transform 320ms var(--spring), filter 260ms ease;
}

.logo-hero:hover {
  transform: translateY(-3px) scale(1.03);
  filter: drop-shadow(0 8px 20px rgba(185, 234, 27, 0.28));
}

.badge, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  margin: 0;
  padding: 0.34rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.badge-dot {
  position: relative;
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.badge-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: pulseRing 2.4s ease-out infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 0.85; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* Invitation hero & live countdown */
.invite-copy h1 {
  margin-top: 0.95rem;
  font-size: clamp(1.65rem, 3.3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.022em;
}

.countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.35rem;
  padding: 0.55rem 1rem;
  border-radius: 16px;
  background: rgba(8, 17, 46, 0.58);
  border: 1px solid rgba(185, 234, 27, 0.24);
  box-shadow: 0 10px 26px rgba(4, 10, 30, 0.25);
}

.cd-unit {
  min-width: 3.1rem;
  padding: 0.2rem 0.35rem;
  text-align: center;
}

.cd-num {
  display: block;
  color: var(--accent);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  transition: transform 200ms var(--spring), color 180ms ease;
}

.cd-num.is-tick {
  transform: translateY(-2px) scale(1.1);
  color: #fff;
}

.cd-lbl {
  display: block;
  margin-top: 0.16rem;
  color: var(--muted-soft);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cd-sep {
  color: rgba(185, 234, 27, 0.55);
  font-weight: 700;
  font-size: 1.1rem;
  transform: translateY(-0.32rem);
  animation: sepBlink 2s ease-in-out infinite;
}

@keyframes sepBlink {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.3; }
}

/* Bento event info tiles */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.45rem;
  text-align: left;
}

.info-tile {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-tile);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--surface-tile);
  transition: transform 240ms var(--spring), border-color 180ms ease, background-color 180ms ease, box-shadow 220ms ease;
}

.info-tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 12px 28px rgba(4, 10, 30, 0.28);
}

.info-tile:hover .tile-icon {
  animation: iconWiggle 520ms var(--spring);
  background: rgba(185, 234, 27, 0.24);
}

@keyframes iconWiggle {
  0% { transform: scale(1) rotate(0deg); }
  35% { transform: scale(1.14) rotate(-8deg); }
  70% { transform: scale(1.08) rotate(6deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.info-tile-wide {
  grid-column: 1 / -1;
}

.tile-icon {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(185, 234, 27, 0.25);
  color: var(--accent);
  transition: background-color 180ms ease, transform 220ms var(--spring);
}

.tile-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.tile-body {
  min-width: 0;
}

.tile-label {
  display: block;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tile-value {
  margin: 0.18rem 0 0;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.4;
}

.closing-note {
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-tile);
  background: rgba(8, 17, 46, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.closing-note h3,
.invite-copy h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
}

.closing-note h2 {
  margin-top: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  line-height: 1.5;
  font-size: 1.25rem;
}

/* Status icon on confirmation page */
.status-icon {
  width: 3.8rem;
  height: 3.8rem;
  margin: 0 auto 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  box-shadow: 0 0 32px rgba(185, 234, 27, 0.24);
}

.status-icon svg {
  width: 1.85rem;
  height: 1.85rem;
}

.status-icon-pop {
  animation: popBadge 620ms var(--spring) both;
}

.check-draw {
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
  animation: drawCheck 540ms 220ms var(--ease-out) forwards;
}

@keyframes popBadge {
  0% { transform: scale(0.4) rotate(-14deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

.place, .recap, .hint, .empty, .stat-note {
  color: var(--muted);
  line-height: 1.55;
}

.place {
  margin: 0.9rem 0 0;
  font-size: 1.04rem;
}

.hvala-title {
  margin-top: 0;
  font-size: clamp(1.75rem, 4.2vw, 2.35rem);
  line-height: 1.2;
}

.hvala-sub {
  margin: 0.7rem 0 0;
  color: var(--accent);
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.45;
}

.hvala-message {
  margin-top: 0;
  font-size: clamp(1.35rem, 3.1vw, 1.75rem);
  font-weight: 600;
  line-height: 1.38;
}

.mail-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.95rem 0 0;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.event-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0.9rem 0 0;
  padding: 0.48rem 0.85rem;
  border-radius: 12px;
  background: var(--surface-tile);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.event-chip svg {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.recap {
  margin: 0.8rem 0 0;
}

.hint {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  color: var(--muted-soft);
}

/* Buttons & shimmer */
.actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.actions .btn {
  flex: 1;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-control);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms var(--spring), background-color 160ms ease, border-color 160ms ease, box-shadow 180ms ease;
}

.btn svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  transition: transform 200ms var(--spring);
}

.btn:hover .icon-arrow {
  transform: translateX(4px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(185, 234, 27, 0.24);
}

.btn-solid:hover {
  background: color-mix(in srgb, var(--accent) 88%, white);
  border-color: color-mix(in srgb, var(--accent) 88%, white);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(185, 234, 27, 0.34);
}

.btn-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -120%;
  width: 65%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 80%
  );
  transform: skewX(-20deg);
  animation: btnSheen 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btnSheen {
  0%, 72%, 100% { left: -120%; }
  92% { left: 160%; }
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  margin-top: 0.5rem;
}

/* Forms & playful RSVP interactions */
.sheet {
  text-align: left;
}

.sheet h1 {
  margin-top: 0.75rem;
  font-size: clamp(1.95rem, 5vw, 2.55rem);
}

form {
  margin-top: 1.5rem;
}

.field {
  display: block;
  margin: 0 0 1.15rem;
  padding: 0;
  border: 0;
}

.field > span, .field legend {
  display: block;
  margin-bottom: 0.45rem;
  padding: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.field small {
  display: block;
  margin-top: 0.42rem;
  color: var(--muted-soft);
  font-size: 0.83rem;
}

input, select {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input::placeholder {
  color: rgba(246, 248, 252, 0.36);
}

input:hover, select:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23B9EA1B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.1rem;
  cursor: pointer;
}

select option {
  background: var(--primary-deep);
  color: var(--ink);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(185, 234, 27, 0.2);
}

.btn:focus-visible, .choice:focus-within, .back a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.15rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--field);
  font-weight: 600;
  cursor: pointer;
  transition: transform 220ms var(--spring), border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 180ms ease;
}

.choice:hover {
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-1px);
}

.choice.is-pop {
  animation: choicePop 360ms var(--spring);
}

@keyframes choicePop {
  0% { transform: scale(0.95); }
  55% { transform: scale(1.045); }
  100% { transform: scale(1); }
}

.choice::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  border: 2px solid rgba(246, 248, 252, 0.45);
  transition: border-color 160ms ease, background-color 160ms ease, transform 200ms var(--spring);
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice:has(input:checked) {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(185, 234, 27, 0.24);
}

.choice:has(input:checked)::before {
  border-color: var(--primary);
  background: var(--primary);
  transform: scale(1.15);
}

/* Smooth collapsible extra-guests drawer */
.guests-drawer {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows 320ms var(--ease-out), opacity 240ms ease, margin 320ms var(--ease-out);
}

.guests-drawer.is-collapsed {
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
}

.guests-drawer-inner {
  overflow: hidden;
}

.party-preview {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: -0.35rem 0 1.15rem;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(185, 234, 27, 0.28);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
}

.party-dots {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.26rem;
}

.party-dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(185, 234, 27, 0.55);
  animation: dotPop 320ms var(--spring) both;
}

.party-dot-extra {
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.45);
}

@keyframes dotPop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.alert {
  margin-top: 1.1rem;
  padding: 0.9rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 180, 168, 0.45);
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 0.92rem;
}

.alert ul, .alert p {
  margin: 0;
  padding-left: 1.15rem;
}

.alert p {
  padding-left: 0;
}

/* Admin dashboard */
.admin-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.admin-bar form {
  margin: 0;
}

.admin h1 {
  margin-top: 0.65rem;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.stats article {
  position: relative;
  overflow: hidden;
  padding: 1.3rem 1.35rem 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--surface-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 45%),
    var(--surface);
  box-shadow: 0 18px 44px rgba(4, 10, 30, 0.34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 220ms var(--spring), border-color 180ms ease;
}

.stats article:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
}

.stats article.stat-highlight {
  border-color: var(--accent-line);
  background:
    linear-gradient(180deg, rgba(185, 234, 27, 0.1) 0%, transparent 55%),
    var(--surface);
}

.stat-label {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}

.stat-value {
  margin: 0.35rem 0 0;
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-note {
  margin: 0.45rem 0 0;
  font-size: 0.84rem;
  color: var(--muted-soft);
}

.status-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1.15rem 0 0;
  padding: 0.5rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--muted);
  font-size: 0.88rem;
}

.status-banner-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--muted-soft);
  flex-shrink: 0;
}

.status-banner-on .status-banner-dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.table-wrap {
  margin-top: 1.15rem;
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(4, 10, 30, 0.36);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 42rem;
}

th, td {
  padding: 0.9rem 1.05rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr {
  transition: background-color 140ms ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.038);
}

th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.email {
  word-break: break-all;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.26rem 0.68rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.pill-yes {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}

.pill-no {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted);
}

.empty-card {
  margin-top: 1.15rem;
  padding: 2.2rem 1.5rem;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(12, 24, 62, 0.45);
  text-align: center;
  color: var(--muted);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .orb, .spark, .badge-dot::after, .btn-shimmer::after, .cd-sep,
  .status-icon-pop, .check-draw, .party-dot {
    animation: none !important;
  }

  .check-draw {
    stroke-dashoffset: 0 !important;
  }

  .invite, .sheet {
    transform: none !important;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 640px) {
  body {
    padding: 1.35rem 0.95rem 2.25rem;
  }

  .countdown {
    width: 100%;
    justify-content: space-between;
    padding: 0.5rem 0.7rem;
    gap: 0.2rem;
  }

  .cd-unit {
    min-width: 0;
    flex: 1;
  }

  .info-grid, .actions, .stats {
    grid-template-columns: 1fr;
  }

  .actions {
    display: grid;
  }

  .admin-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-bar .btn {
    width: 100%;
  }

  .invite, .sheet, .invite-copy {
    padding: 2rem 1.3rem 1.65rem;
    border-radius: 20px;
  }

  .closing-note {
    padding: 1.05rem 1rem;
  }
}
