/* ===== RESET / BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --bg-deep: #020617;
  --bg-alt: #020617;

  --jayhawk-blue: #0051ba;
  --jayhawk-blue-soft: #1d4ed8;
  --jayhawk-blue-soft2: #2563eb;
  --jayhawk-crimson: #e8000d;
  --jayhawk-crimson-soft: #f97373;

  --surface: rgba(15, 23, 42, 0.9);
  --surface-soft: rgba(15, 23, 42, 0.8);
  --surface-strong: rgba(15, 23, 42, 0.98);

  --border-subtle: rgba(148, 163, 184, 0.4);
  --border-strong: rgba(148, 163, 184, 0.7);

  --text-main: #e5e7eb;
  --text-soft: #cbd5f5;
  --text-micro: #9ca3af;

  --accent-blue: #3b82f6;
  --accent-blue-soft: rgba(59, 130, 246, 0.4);
  --accent-red: #ef4444;
  --accent-red-soft: rgba(239, 68, 68, 0.2);

  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-pill: 999px;

  --shadow-soft: 0 30px 80px rgba(15, 23, 42, 0.9);
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top left, #0f172a 0, #020617 40%, #000 100%);
  overflow-x: hidden;
}

/* gradient bg + grain */
.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.35), transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(248, 113, 113, 0.3), transparent 55%),
    linear-gradient(120deg, #020617 0%, #020617 40%, #000 100%);
  z-index: -2;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: -50px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  z-index: -1;
}

/* ===== INTRO / BLUEBERRY ===== */
.intro {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 40;
  background: radial-gradient(circle at top, #020617 0%, #020617 70%);
  transition: opacity 800ms ease, transform 800ms ease;
}

.intro--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
}

.intro-card {
  width: 100%;
  max-width: 640px;
  border-radius: 40px;
  padding: 40px 32px 32px;
  background: radial-gradient(circle at top, #020617 0%, #020617 70%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.rose-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* bigger blueberry */
.rose {
  position: relative;
  width: 200px;
  height: 210px;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.85));
  animation: roseFloat 8s ease-in-out infinite;
}

@keyframes roseFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.intro-caption {
  margin: 4px 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.intro-caption span {
  color: var(--jayhawk-blue-soft2);
}

.intro-caption--sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-micro);
}

/* ===== CLASSIFICATION BANNERS (red) ===== */
.classification {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 25;
  padding: 10px 16px;
  border-radius: 0;
  border: none;
  background: linear-gradient(
    90deg,
    rgba(232, 0, 13, 0.97),
    rgba(248, 113, 113, 0.96)
  );
  color: rgba(255, 241, 241, 0.98);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(127, 29, 29, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.classification--top {
  top: 0;
}

.classification--bottom {
  bottom: 0;
}

/* ===== PIN PANEL ===== */
.pin-panel {
  border-radius: 28px;
  padding: 20px 22px 18px;
  background: radial-gradient(circle at top, #020617 0%, #020617 70%);
  border: 1px solid rgba(148, 163, 184, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pin-panel--locked {
  border-color: rgba(248, 113, 113, 0.8);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 1);
}

.pin-panel--locked .pin-input {
  opacity: 0.45;
  cursor: not-allowed;
}

.pin-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.23em;
  color: var(--text-soft);
  margin: 0 0 4px;
}

.pin-hint {
  margin: 0 0 16px;
  font-size: 0.75rem;
  color: var(--text-micro);
}

.pin-boxes {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.pin-input {
  width: 64px;
  height: 64px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top, #020617 0%, #020617 70%);
  color: #f9fafb;
  font-size: 1.4rem;
  text-align: center;
  outline: none;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.pin-input:focus-visible {
  border-color: rgba(59, 130, 246, 0.9);
  box-shadow: 0 0 0 10px rgba(59, 130, 246, 0.2);
  background: radial-gradient(circle at top, #020617 0%, #020617 70%);
}

.pin-error {
  margin-top: 10px;
  font-size: 0.78rem;
  color: #fca5a5;
  min-height: 1.1em;
}

.pin-success {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #a7f3d0;
  min-height: 1.1em;
}

/* ===== GREETING OVERLAY (post-PIN) ===== */
.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 600ms ease-out;
}

.welcome-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.welcome-inner {
  padding: 32px;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  text-align: center;
  max-width: 100%;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.welcome-tag {
  display: none;
}

.welcome-title {
  margin: 0 0 8px;
  font-size: clamp(2.6rem, 6.4vw, 3.6rem);
  letter-spacing: 0.02em;
  text-transform: none; /* keep "good evening, ally." lowercase */
  font-weight: 500;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  will-change: transform, opacity;
}

.welcome-sub {
  margin: 12px 0 0;
  font-size: clamp(0.98rem, 2.5vw, 1.15rem);
  color: var(--text-soft);
  max-width: 28rem;
  opacity: 0;
  transform: translateY(14px);
  will-change: transform, opacity;
}

/* animate title + sub only when overlay is visible */
.welcome-overlay--visible .welcome-title {
  animation: welcomeTitleIn 900ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.welcome-overlay--visible .welcome-sub {
  animation: welcomeSubIn 1000ms cubic-bezier(0.19, 1, 0.22, 1) 140ms forwards;
}

@keyframes welcomeTitleIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.94);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes welcomeSubIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== MAIN SHELL ===== */
.shell {
  max-width: 1040px;
  margin: 96px auto 120px;
  padding: 0 16px 140px;
}

.shell--visible {
  /* marker if needed */
}

.top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.top-progress {
  display: inline-flex;
  gap: 6px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.4);
}

.dot--active {
  width: 18px;
  border-radius: 999px;
  background: #60a5fa;
}

/* ===== DATE TIMELINE (modern circles) ===== */
.date-timeline {
  position: relative;
  margin: 18px -4px 18px;
  padding-inline: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.date-timeline::-webkit-scrollbar {
  display: none;
}

.date-timeline {
  scrollbar-width: none;
}

.date-timeline__rail {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 30px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.3),
    rgba(96, 165, 250, 0.6),
    rgba(248, 113, 113, 0.8)
  );
  opacity: 0.9;
}

.date-timeline__dots {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-inline: 12px;
  min-width: max-content;
}

.date-dot {
  position: relative;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
}

.date-dot__number {
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0%, #93c5fd, #1d4ed8);
  border: 1px solid rgba(129, 140, 248, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.9);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, opacity 160ms ease;
}

/* locked / future bubbles */
.date-dot--locked .date-dot__number {
  background: linear-gradient(180deg, #111827, #020617);
  border-color: rgba(148, 161, 184, 0.4);
  color: rgba(209, 213, 219, 0.6);
  opacity: 0.7;
}

/* upcoming/this one highlight */
.date-dot--upcoming .date-dot__number {
  background: radial-gradient(circle at 30% 0%, #fef3c7, #f59e0b);
  border-color: rgba(245, 158, 11, 0.9);
  color: #1f2937;
  box-shadow:
    0 10px 30px rgba(249, 115, 22, 0.18),
    0 0 0 1px rgba(15, 23, 42, 0.9);
}

/* hover behaviour */
.date-dot--done:hover .date-dot__number {
  transform: translateY(-2px) scale(1.03);
  background: radial-gradient(circle at 30% 0%, #bfdbfe, #2563eb);
  box-shadow:
    0 14px 40px rgba(15, 23, 42, 0.95),
    0 0 0 1px rgba(15, 23, 42, 1);
}

/* label next to circle */
.date-dot__label {
  font-size: 0.86rem;
  color: var(--text-soft);
}

/* ===== CARD / STEPS ===== */
.card {
  margin-top: 20px;
  border-radius: 40px;
  padding: 28px 26px 30px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
}

.step {
  display: none;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.step--active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-micro);
  margin: 0 0 6px;
}

.title {
  margin: 0 0 10px;
  font-size: 2rem;
  letter-spacing: 0.02em;
}

.title.small {
  font-size: 1.6rem;
}

.accent {
  color: #60a5fa;
}

.body {
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-soft);
}

/* buttons */
.primary,
.secondary,
.ghost,
.status-btn {
  font-family: inherit;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 12px 22px;
  transition: background 150ms ease, border-color 150ms ease, transform 120ms ease, box-shadow 150ms ease;
}

.primary {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #f9fafb;
  border-color: rgba(59, 130, 246, 0.9);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.6);
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.9);
}

.primary--wide {
  width: 100%;
}

.primary--confirm {
  position: relative;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  background: linear-gradient(135deg, #1d4ed8, #60a5fa);
  box-shadow:
    0 14px 40px rgba(37, 99, 235, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.9);
}

.primary--confirm::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(191, 219, 254, 0.4);
  opacity: 0;
  transition: opacity 160ms ease;
}

.primary--confirm:hover::after {
  opacity: 1;
}

.secondary {
  background: transparent;
  color: var(--text-soft);
  border-color: rgba(148, 163, 184, 0.6);
}

.secondary--inline {
  margin-top: 6px;
  margin-bottom: 16px;
}

.secondary--calendar {
  margin-top: 4px;
  display: block;
  margin-left: auto; /* move "view our calendar" to the right */
}

.secondary:hover {
  background: rgba(15, 23, 42, 0.8);
}

.ghost {
  background: transparent;
  color: var(--text-soft);
  border-color: rgba(148, 163, 184, 0.5);
}

.ghost--round {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  padding: 0;
}

/* disabled state for view-only mode */
.btn-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
}

/* choices */
.choices {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 14px;
}

.choice {
  width: 100%;
  border-radius: 24px;
  padding: 14px 18px 14px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  color: #f9fafb;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 120ms ease, background 150ms ease;
}

.choice:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.9);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
}

.choice-tag {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #bfdbfe;
}

.choice-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: #f9fafb;
}

.choice-sub {
  font-size: 0.95rem;
  color: #e5e7eb;
}

.choice--selected {
  border-color: rgba(59, 130, 246, 0.95);
  box-shadow:
    0 18px 40px rgba(37, 99, 235, 0.7),
    0 0 0 1px rgba(15, 23, 42, 1);
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.26), rgba(15, 23, 42, 0.96));
}

.choice-confirm {
  min-height: 1.3em;
  margin: 8px 0 18px;
  font-size: 0.9rem;
  color: #93c5fd;
}

/* summary */
.summary {
  margin: 8px 0 12px;
  padding: 14px 16px 12px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.summary-row + .summary-row {
  margin-top: 6px;
}

.summary-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--text-micro);
}

.summary-value {
  font-weight: 500;
}

/* mini calendar bubble */
.mini-calendar {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 16px 12px;
  margin: 10px 0 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.26),
    rgba(15, 23, 42, 0.98)
  );
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.9);
}

.mini-calendar__month {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #bfdbfe;
}

.mini-calendar__day {
  font-size: 1.8rem;
  line-height: 1.1;
  font-weight: 600;
}

.mini-calendar__meta {
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* cta row */
.cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.microcopy {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-micro);
}

/* status card */
.status-card {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.status-label {
  margin: 0 0 2px;
  font-size: 0.9rem;
}

.status-sub {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-micro);
}

.status-actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.status-btn {
  padding-inline: 12px;
  font-size: 0.78rem;
  border-radius: 999px;
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-soft);
}

.status-btn--accent {
  border-color: rgba(59, 130, 246, 0.9);
  color: #bfdbfe;
}

/* ===== ADMIN TOOLS / PANELS ===== */
.admin-tools-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 10px;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.6);
  background: rgba(15, 23, 42, 0.96);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bfdbfe;
}

.admin-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #60a5fa;
}

.admin-pill__mode {
  font-weight: 500;
}

.admin-tools-note {
  font-size: 0.72rem;
  color: var(--text-micro);
}

/* embedded admin panel for events editing */
.admin-panel {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.92);
  display: none; /* toggled via JS */
}

.admin-panel--visible {
  display: block;
}

.admin-panel--view-only {
  opacity: 0.65;
}

.admin-panel--view-only input,
.admin-panel--view-only textarea,
.admin-panel--view-only button {
  pointer-events: none;
}

.admin-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.admin-panel__title {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-micro);
}

.admin-panel__badge {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.7);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #bfdbfe;
}

.admin-panel__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-panel__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-panel__label {
  font-size: 0.72rem;
  color: var(--text-micro);
}

.admin-panel__input,
.admin-panel__textarea {
  flex: 1 1 140px;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.97);
  padding: 6px 8px;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-main);
}

.admin-panel__textarea {
  resize: vertical;
  min-height: 54px;
}

.admin-panel__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.admin-panel__note {
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--text-micro);
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(40px);
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(248, 113, 113, 0.7);
  color: #fecaca;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
  z-index: 30;
}

.toast-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #f97373;
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* temporary choice confirmation modal */
.choice-flyout {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 32;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease;
}

.choice-flyout--visible {
  pointer-events: auto;
  opacity: 1;
}

.choice-flyout__card {
  padding: 28px 36px;
  border-radius: 18px;
  border: 1px solid rgba(96, 165, 250, 0.7);
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.98), rgba(7, 13, 28, 0.92));
  box-shadow: 0 40px 120px rgba(15, 23, 42, 0.95);
  max-width: 720px;
  width: calc(100% - 64px);
  transform: translateY(0) scale(1);
  animation: choiceFlyoutIn 220ms ease-out forwards;
  text-align: center;
}

.choice-flyout__eyebrow {
  margin: 0 0 4px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #bfdbfe;
}

.choice-flyout__text {
  margin: 0;
  font-size: 0.95rem;
  color: #e5edff;
}

@keyframes choiceFlyoutIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* confetti layer */
.confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 25;
}

/* ===== CALENDAR SHEET (month view) ===== */
.calendar-sheet {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.98));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  transition: opacity 260ms ease;
}
.calendar-cell--has-events:hover {
  border-color: rgba(129, 140, 248, 0.95);
  background: radial-gradient(circle at top,
    rgba(37, 99, 235, 0.18),
    rgba(15, 23, 42, 0.98)
  );
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
}


.calendar-sheet--visible {
  opacity: 1;
  pointer-events: auto;
}

.calendar-sheet__card {
  position: relative;
  width: min(840px, 100% - 32px);
  max-height: calc(100vh - 64px);
  border-radius: 32px;
  padding: 26px 22px 20px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.calendar-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-soft);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.calendar-close:hover {
  background: rgba(15, 23, 42, 1);
}

.calendar-sheet__title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 500;
}

.calendar-sheet__body {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.calendar-month {
  border-radius: 24px;
  padding: 16px 16px 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
}

.calendar-month__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calendar-month__label {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.calendar-nav {
  border-radius: 999px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 120ms ease;
}

.calendar-nav:hover {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(129, 140, 248, 0.95);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
}

.calendar-month__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  font-size: 0.78rem;
}

.calendar-dow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.65rem;
  color: var(--text-micro);
  padding-bottom: 4px;
}

.calendar-cell {
  border-radius: 14px;
  padding: 7px 0;
  text-align: center;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-soft);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
}

.calendar-cell--empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
}

.calendar-cell--past {
  border-color: rgba(148, 163, 184, 0.4);
}

.calendar-cell--next {
  border-color: rgba(239, 68, 68, 0.9);
  background: radial-gradient(circle at 30% 0%, #fecaca, #b91c1c);
  color: #fef2f2;
}

.calendar-cell--busy {
  border-color: rgba(59, 130, 246, 0.85);
  background: rgba(37, 99, 235, 0.2);
}

.calendar-cell--gold {
  border-color: #fbbf24;
  background: radial-gradient(circle at 30% 0%, #fef3c7, #f59e0b);
  color: #111827;
  box-shadow:
    0 10px 26px rgba(251, 191, 36, 0.25),
    0 0 0 1px rgba(15, 23, 42, 0.95);
}

.calendar-cell--birthday {
  border-color: #ec4899;
  background: radial-gradient(circle at 30% 0%, #fce7f3, #be185d);
  color: #fdf2f8;
}

.calendar-cell--active {
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.9);
}

/* hover only on cells that actually have events */
.calendar-cell.calendar-cell--has-events:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.85);
}

.calendar-month__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.legend-dot--past {
  background: rgba(148, 163, 184, 0.9);
}

.legend-dot--next {
  background: #ef4444;
}

.legend-dot--busy {
  background: #3b82f6;
}

.legend-dot--birthday {
  background: #ec4899;
}

.calendar-events {
  margin-top: 10px;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding-top: 8px;
}

.calendar-events__title {
  margin: 0 0 4px;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.calendar-events__list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.8rem;
  color: var(--text-micro);
}

/* modals: date + request sheets */
.date-modal,
.request-sheet {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 32;
  transition: opacity 220ms ease;
}

.date-modal--visible,
.request-sheet--visible {
  opacity: 1;
  pointer-events: auto;
}

.date-modal__card,
.request-sheet__card {
  width: min(440px, 100% - 40px);
  border-radius: 28px;
  padding: 22px 22px 20px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  box-shadow: var(--shadow-soft);
}

.date-modal__eyebrow {
  margin: 0 0 4px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-micro);
}

.date-modal__title {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.date-modal__body {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.date-modal__close {
  width: 100%;
}

.request-sheet__title {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.request-sheet__body {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.request-sheet__input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.97);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-main);
  resize: vertical;
  min-height: 70px;
}

.request-sheet__buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .intro-card {
    padding-inline: 20px;
    padding-block: 24px 18px;
    border-radius: 28px;
  }

  .rose {
    width: 150px;
    height: 160px;
  }

  .pin-panel {
    padding-inline: 16px;
  }

  .pin-boxes {
    gap: 8px;
  }

  .pin-input {
    width: 52px;
    height: 52px;
    border-radius: 18px;
  }

  .shell {
    max-width: 640px;
    margin: 72px auto 80px;
    padding: 0 16px 100px;
  }

  .top {
    justify-content: center;
  }

  .card {
    border-radius: 28px;
    padding: 20px 18px 22px;
  }

  .title {
    font-size: 1.5rem;
  }

  .body {
    font-size: 0.9rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .status-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .calendar-sheet__card {
    max-height: calc(100vh - 32px);
  }

  .choice-flyout__card {
    width: calc(100% - 40px);
  }

  .date-timeline__rail {
    left: 10%;
    right: 18%;
  }

  .date-dot__number {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .date-dot__label {
    font-size: 0.75rem;
  }

  .admin-panel {
    margin-top: 10px;
  }
}

@media (min-width: 1024px) {
  .shell {
    max-width: 1040px;
  }

  .card {
    max-width: 880px;
  }
}
