/* ============================================================
   Social Reel RSVP — Video Invite Template
   ============================================================ */

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

:root {
  --bg:             #050505;
  --surface:        #111113;
  --surface-raised: #1c1c1f;
  --border:         rgba(255, 255, 255, 0.09);
  --border-hover:   rgba(255, 255, 255, 0.2);

  --text:           #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-hint:      rgba(255, 255, 255, 0.35);

  --accent:         #ff5940;
  --accent-hover:   #ff6b52;
  --accent-muted:   rgba(255, 89, 64, 0.16);

  --radius-sm:  8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-phone: 36px;

  --font-display: 'Syne', system-ui, sans-serif;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;

  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   Page Wrapper
   ============================================================ */

.page-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
}

/* ============================================================
   Video Stage
   ============================================================ */

.video-stage {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: #000;
}

.video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* DejaCast player — cancel video.js 16:9 padding hack and force fill */
.video-stage.has-dejacast-player .dejacast-embed,
.video-stage.has-dejacast-player .dejacast-embed .video-js,
.video-stage.has-dejacast-player .dejacast-embed .video-js .vjs-tech,
.video-stage.has-dejacast-player .dejacast-embed .video-js video,
.video-stage.has-dejacast-player .dejacast-embed .video-js .vjs-poster {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding-top: 0 !important;
}

.video-stage.has-dejacast-player .dejacast-embed .video-js .vjs-tech,
.video-stage.has-dejacast-player .dejacast-embed .video-js video {
  object-fit: cover !important;
}

.video-stage.has-dejacast-player .dejacast-embed .video-js .vjs-poster {
  background-size: cover !important;
}

/* Gradient veils */
.grad-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.64) 0%, rgba(0,0,0,0.08) 60%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.grad-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 64%;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.22) 55%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   Top Metadata Overlay
   ============================================================ */

.ovl-top {
  position: absolute;
  top: 0;
  left: 0;
  padding: 54px 16px 0;
  z-index: 2;
  pointer-events: none;
}

.meta-tag {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.44);
  margin-bottom: 5px;
}

.meta-names {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 6.5vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.meta-date {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 4px;
  letter-spacing: 0.01em;
}

/* ============================================================
   Right Action Rail
   ============================================================ */

.action-rail {
  position: absolute;
  right: 12px;
  bottom: 96px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.rail-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.rail-btn:hover,
.rail-btn:focus-visible {
  background: rgba(0, 0, 0, 0.78);
  border-color: rgba(255, 255, 255, 0.34);
  transform: scale(1.09);
  outline: none;
}

.rail-btn:active {
  transform: scale(0.93);
}

.rail-btn--accent {
  background: var(--accent);
  border-color: transparent;
  box-shadow: 0 0 0 0 rgba(255, 89, 64, 0);
  animation: rail-accent-pulse 3s ease-in-out infinite;
}

.rail-btn--accent:hover,
.rail-btn--accent:focus-visible {
  background: var(--accent-hover);
  border-color: transparent;
  box-shadow: 0 4px 22px rgba(255, 89, 64, 0.55);
}

@keyframes rail-accent-pulse {
  0%   { box-shadow: 0 0 0 0  rgba(255, 89, 64, 0.45); }
  60%  { box-shadow: 0 0 0 14px rgba(255, 89, 64, 0); }
  100% { box-shadow: 0 0 0 0  rgba(255, 89, 64, 0.45); }
}

.rail-label {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}

/* ============================================================
   Bottom Caption Zone
   ============================================================ */

.bottom-caption {
  position: absolute;
  bottom: 22px;
  left: 14px;
  right: 84px;
  z-index: 3;
  pointer-events: none;
}

.caption-names {
  font-family: var(--font-display);
  font-size: clamp(1rem, 4.5vw, 1.45rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.caption-date {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.68);
  margin-top: 3px;
}

.caption-hint {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
  letter-spacing: 0.01em;
}

/* ============================================================
   Progress Bar
   ============================================================ */

.progress-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
}

.progress-track {
  position: relative;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: height 0.15s ease;
}

.progress-track:hover {
  height: 4px;
}

.progress-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  pointer-events: none;
  transition: width 0.12s linear;
}

/* ============================================================
   Start Overlay
   ============================================================ */

.ovl-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: opacity 0.35s ease;
}

.ovl-start.fade-out {
  opacity: 0;
  pointer-events: none;
}

.play-btn {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.2s ease;
}

.play-btn svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

.play-btn:hover,
.play-btn:focus-visible {
  background: rgba(255, 255, 255, 0.26);
  transform: scale(1.07);
  outline: none;
}

.play-btn:active {
  transform: scale(0.94);
}

/* ============================================================
   Sound Overlay
   ============================================================ */

.ovl-sound {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: center;
  padding-top: 155px;
  z-index: 8;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ovl-sound.visible {
  opacity: 1;
  pointer-events: all;
}

.sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 100px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sound-btn:hover {
  background: rgba(0, 0, 0, 0.82);
}

/* ============================================================
   End Screen Overlay
   ============================================================ */

.ovl-end {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.ovl-end.visible {
  opacity: 1;
  pointer-events: all;
}

.end-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 28px;
  gap: 6px;
}

.end-names {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 6vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.end-date {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
}

.end-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 280px;
}

.btn-end-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 20px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.12s ease;
}

.btn-end-primary:hover  { background: var(--accent-hover); }
.btn-end-primary:active { transform: scale(0.97); }

.btn-end-secondary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
}

.btn-end-secondary:hover  { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.46); }
.btn-end-secondary:active { transform: scale(0.97); }

.btn-replay {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.34);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 100px;
  transition: color 0.2s ease;
}

.btn-replay:hover { color: rgba(255, 255, 255, 0.7); }

/* ============================================================
   Sticky CTA Bar
   ============================================================ */

.cta-bar {
  flex-shrink: 0;
  padding: 10px 14px;
  padding-bottom: calc(10px + var(--safe-bottom));
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.cta-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.12s ease;
}

.cta-btn:hover  { background: var(--accent-hover); }
.cta-btn:active { transform: scale(0.98); }

/* ============================================================
   Backdrop
   ============================================================ */

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.backdrop.visible {
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
   Drawers — Bottom Sheets
   ============================================================ */

.drawer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 40;
  transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 92dvh;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.drawer.open {
  transform: translateX(-50%) translateY(0);
}

.drawer-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 10px;
  flex-shrink: 0;
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.drawer-close {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.drawer-close:hover         { background: #2c2c2e; color: var(--text); }
.drawer-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.drawer-body {
  padding: 6px 18px;
  padding-bottom: calc(24px + var(--safe-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ============================================================
   When & Where — Event Rows
   ============================================================ */

.event-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
}

.event-icon {
  width: 42px;
  height: 42px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.event-info {
  flex: 1;
  min-width: 0;
}

.event-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}

.event-time {
  font-size: 0.77rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 2px;
}

.event-addr {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.event-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.73rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.event-map-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: #2c2c2e;
}

.event-divider {
  height: 1px;
  background: var(--border);
}

.drawer-note {
  font-size: 0.7rem;
  color: var(--text-hint);
  text-align: center;
  padding: 14px 0 4px;
  letter-spacing: 0.02em;
}

/* ============================================================
   Events (shared partial)
   ============================================================ */

.event-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
}

.event-block-icon {
  width: 42px;
  height: 42px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.event-block-info { flex: 1; min-width: 0; }

.event-block-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.event-block-location {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.event-block-datetime {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 3px;
}

.event-block-address {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.event-divider {
  height: 1px;
  background: var(--border);
}

.btn-maps {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-maps:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   RSVP Form
   ============================================================ */

#rsvpForm.form-hidden {
  display: none;
}

.rsvp-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 24px 20px;
  gap: 8px;
}

.rsvp-success.success-visible {
  display: flex;
}

.success-check {
  color: var(--accent);
  margin-bottom: 6px;
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.success-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.btn-success-close {
  padding: 13px 32px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-success-close:hover { background: #2c2c2e; }

.form-group {
  margin-bottom: 18px;
}

.form-group.hidden {
  display: none;
}

.form-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 9px;
}

.form-opt-label {
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-hint);
}

/* Pill radio */
.pill-group {
  display: flex;
  gap: 8px;
}

.pill-opt {
  flex: 1;
  cursor: pointer;
}

.pill-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  background: var(--surface-raised);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.pill-opt input[type="radio"]:checked + .pill-btn {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-muted);
}

.pill-opt input[type="radio"]:focus-visible + .pill-btn {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Stepper */
.stepper {
  display: flex;
  align-items: stretch;
  background: var(--surface-raised);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stepper-btn {
  width: 54px;
  height: 50px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.stepper-btn:hover  { background: rgba(255, 255, 255, 0.06); }
.stepper-btn:active { background: rgba(255, 255, 255, 0.1); }

.stepper-val {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface-raised);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease;
}

.form-input::placeholder {
  color: var(--text-hint);
}

.form-input:focus {
  border-color: rgba(255, 89, 64, 0.5);
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.12s ease;
}

.btn-submit:hover  { background: var(--accent-hover); }
.btn-submit:active { transform: scale(0.98); }

.optional {
  text-transform: none;
  font-size: 0.74rem;
  letter-spacing: 0;
  font-weight: 400;
  opacity: 0.5;
}

.radio-pills {
  display: flex;
  gap: 8px;
}

.radio-pill {
  flex: 1;
  cursor: pointer;
}

.radio-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px;
  background: var(--surface-raised);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.radio-pill input[type="radio"]:checked + span {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-muted);
}

.radio-pill input[type="radio"]:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.number-stepper {
  display: flex;
  align-items: center;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.number-stepper .stepper-btn {
  width: 50px;
  height: 50px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  line-height: 1;
  flex-shrink: 0;
}

.number-stepper .stepper-btn:hover  { background: rgba(255, 255, 255, 0.06); }
.number-stepper .stepper-btn:active { background: rgba(255, 255, 255, 0.11); }

.number-stepper input[type="number"] {
  flex: 1;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0;
  outline: none;
  -moz-appearance: textfield;
}

.number-stepper input[type="number"]::-webkit-inner-spin-button,
.number-stepper input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.form-textarea {
  resize: vertical;
  min-height: 70px;
}

.rsvp-deadline {
  font-size: 0.74rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

/* ============================================================
   Share Fallback Modal
   ============================================================ */

.share-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.share-modal.visible {
  opacity: 1;
  pointer-events: all;
}

.share-modal-inner {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 24px 20px calc(28px + var(--safe-bottom));
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.share-modal.visible .share-modal-inner {
  transform: translateY(0);
}

.share-modal-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.share-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.share-link-url {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-copy-btn {
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 8px 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.share-copy-btn:hover { background: var(--accent-hover); }

.share-dismiss-btn {
  width: 100%;
  padding: 13px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.share-dismiss-btn:hover { background: #2c2c2e; color: var(--text); }

/* ============================================================
   Toast
   ============================================================ */

.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 100px;
  white-space: nowrap;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   Desktop — phone frame
   ============================================================ */

@media (min-width: 481px) {
  body {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .page-wrapper {
    height: 88vh;
    max-width: 420px;
    border-radius: var(--radius-phone);
    overflow: hidden;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.06),
      0 30px 100px rgba(0, 0, 0, 0.9);
  }

  .video-stage {
    border-radius: var(--radius-phone) var(--radius-phone) 0 0;
  }

  .cta-bar {
    border-radius: 0 0 var(--radius-phone) var(--radius-phone);
  }
}
