/* ==========================================================================
   Someday — design tokens
   ========================================================================== */
:root {
  --bg-deep: #150b21;
  --bg-mid: #3d1f47;
  --accent-rose: #ff6f91;
  --accent-rose-dim: #ff90a8;
  --accent-fuchsia: #c65ddb;
  --accent-gold: #ffd166;
  --accent-emerald: #34d399;
  --accent-teal: #14b8a6;
  --text-light: #f5ecff;
  --text-dim: rgba(245, 236, 255, 0.55);
  --text-faint: rgba(245, 236, 255, 0.32);
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-bg-hover: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.14);

  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-light);
  overflow-x: hidden;
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   Ambient background
   ========================================================================== */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(ellipse 120% 80% at 50% -10%, var(--bg-mid) 0%, var(--bg-deep) 55%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob-1 {
  width: 380px; height: 380px;
  background: var(--accent-rose);
  top: 28%; left: -14%;
  animation-duration: 22s;
}
.blob-2 {
  width: 420px; height: 420px;
  background: var(--accent-fuchsia);
  bottom: -10%; right: -16%;
  animation-duration: 26s;
  animation-delay: -6s;
}
.blob-3 {
  width: 320px; height: 320px;
  background: var(--accent-gold);
  opacity: 0.14;
  top: 60%; left: 50%;
  transform: translateX(-50%);
  animation-duration: 30s;
  animation-delay: -12s;
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, -20px) scale(1.08); }
  100% { transform: translate(-20px, 15px) scale(0.96); }
}

/* floating sprinkles (hearts / sparkles) */
.sprinkles {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.sprinkle {
  position: absolute;
  bottom: -10%;
  opacity: 0;
  will-change: transform, opacity;
  animation-name: floatUp;
  animation-timing-function: ease-in;
  animation-iteration-count: infinite;
  user-select: none;
}
@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.55; }
  90%  { opacity: 0.35; }
  100% { transform: translateY(-115vh) translateX(var(--drift, 40px)) rotate(180deg); opacity: 0; }
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.app {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 20px 56px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 26px;
  animation: fadeInDown 0.7s ease both;
}

.logo-badge {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 24px rgba(0,0,0,0.35);
  margin-bottom: 12px;
  animation: heartbeat 2.6s ease-in-out infinite;
}
.logo-heart {
  font-size: 24px;
  color: var(--accent-rose);
  filter: drop-shadow(0 0 10px rgba(255, 111, 145, 0.55));
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.12); }
  30% { transform: scale(0.98); }
  45% { transform: scale(1.06); }
}

.wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 0.2px;
  margin: 0;
  background: linear-gradient(120deg, #fff 10%, var(--accent-rose-dim) 60%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--text-dim);
  letter-spacing: 0.2px;
}

.cloud-status {
  margin-top: 10px;
  font-size: 11.5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: none;
  align-items: center;
  gap: 6px;
}
.cloud-status.show { display: inline-flex; }
.cloud-status.demo {
  color: #ffd166;
  border-color: rgba(255, 209, 102, 0.3);
  background: rgba(255, 209, 102, 0.08);
}
.cloud-status.live {
  color: var(--accent-emerald);
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.035);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  margin-bottom: 22px;
  animation: fadeInUp 0.7s ease 0.1s both;
}
.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 8px;
  border: none;
  border-radius: 13px;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.25s ease, background 0.35s cubic-bezier(.2,.8,.2,1), transform 0.2s ease;
}
.tab-btn .icon { width: 16px; height: 16px; }
.tab-btn:hover { color: var(--text-light); }
.tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-rose) 0%, var(--accent-fuchsia) 100%);
  box-shadow: 0 6px 20px rgba(198, 93, 219, 0.35);
  transform: translateY(-1px);
}

/* Panels */
.tab-panels { position: relative; flex: 1; }
.panel {
  display: none;
  flex-direction: column;
  gap: 18px;
  animation: panelIn 0.42s cubic-bezier(.2,.8,.2,1) both;
}
.panel.active { display: flex; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px) scale(0.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Glass card
   ========================================================================== */
.glass-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
  padding: 26px 22px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* ==========================================================================
   Forms
   ========================================================================== */
form { display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}
.optional { text-transform: none; font-weight: 400; letter-spacing: 0; opacity: 0.7; }

input, textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-light);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
textarea { min-height: 78px; resize: none; font-family: var(--font-body); }
input::placeholder, textarea::placeholder { color: var(--text-faint); }

input:focus, textarea:focus {
  border-color: rgba(255, 144, 168, 0.55);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 4px rgba(255, 111, 145, 0.14);
}

input[type="date"], input[type="time"] { color-scheme: dark; }

.mono-input {
  font-family: var(--font-mono);
  font-size: 20px;
  letter-spacing: 0.3em;
  text-align: center;
  text-transform: uppercase;
}

.form-error {
  margin: -4px 0 0;
  font-size: 13.5px;
  color: var(--accent-rose-dim);
  min-height: 0;
}

.form-hint {
  margin: -6px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-faint);
  font-style: italic;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.25s ease, opacity 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-rose) 0%, var(--accent-fuchsia) 100%);
  box-shadow: 0 10px 28px rgba(198, 93, 219, 0.32);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.1); box-shadow: 0 12px 32px rgba(198, 93, 219, 0.45); }

.btn-success {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-teal) 100%);
  box-shadow: 0 10px 28px rgba(20, 184, 166, 0.32);
}
.btn-success:hover:not(:disabled) { filter: brightness(1.1); }

.btn-ghost {
  color: var(--text-light);
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,0.12); }

.btn-decline {
  color: #ffb4bd;
  background: rgba(255, 90, 110, 0.09);
  border: 1px solid rgba(255, 90, 110, 0.28);
}
.btn-decline:hover:not(:disabled) { background: rgba(255, 90, 110, 0.16); }

.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* shimmer sweep on hover */
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn:hover::after { left: 130%; }

.btn-spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 13.5px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
}
.link-btn:hover { color: #fff; }

/* ==========================================================================
   Result / ticket card
   ========================================================================== */
.result-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: popIn 0.5s cubic-bezier(.2,.9,.25,1.2) both;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.result-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 209, 102, 0.3);
  background: rgba(255, 209, 102, 0.12);
  font-size: 26px;
  margin-bottom: 14px;
  animation: sparklePulse 1.8s ease-in-out infinite;
}
@keyframes sparklePulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,209,102,0)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 10px rgba(255,209,102,0.5)); }
}
.result-card h2 { margin: 0; font-family: var(--font-display); font-size: 21px; }
.muted { color: var(--text-dim); font-size: 13.5px; margin: 6px 0 0; }

.ticket {
  width: 100%;
  margin-top: 22px;
  border: 1.5px dashed rgba(255,255,255,0.28);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.045);
  padding: 18px 16px;
  position: relative;
}
.ticket-label {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--text-faint);
}
.icon-sm { width: 14px; height: 14px; }
.ticket-code {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.32em;
  color: #ffe3ea;
  text-shadow: 0 0 18px rgba(255, 111, 145, 0.35);
}

.result-links {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   Status pill
   ========================================================================== */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.status-pill.pending {
  color: var(--accent-gold);
  border: 1px solid rgba(255, 209, 102, 0.3);
  background: rgba(255, 209, 102, 0.12);
}
.status-pill.success {
  color: var(--accent-emerald);
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.12);
  animation: successGlow 1.6s ease-in-out infinite;
}
@keyframes successGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(52,211,153,0); }
  50% { box-shadow: 0 0 14px rgba(52,211,153,0.35); }
}
.status-pill.declined {
  color: #ffb4bd;
  border: 1px solid rgba(255, 90, 110, 0.3);
  background: rgba(255, 90, 110, 0.1);
}

/* ==========================================================================
   Invite detail (Fill tab)
   ========================================================================== */
.invite-detail { animation: fadeInUp 0.4s ease both; }
.invite-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.invite-from { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-faint); margin: 0; }
.invite-title { margin: 3px 0 0; font-family: var(--font-display); font-size: 19px; }
.invite-note {
  font-style: italic;
  font-size: 14px;
  color: var(--text-dim);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 0 0 16px;
}
.invite-meta { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-dim); margin-bottom: 18px; }
.invite-meta span { display: flex; align-items: center; gap: 8px; }
.invite-meta .icon-sm { color: var(--accent-rose-dim); flex-shrink: 0; }

.already-confirmed {
  border: 1px solid rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.1);
  color: #a7f3d0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
}

.confirm-form { border-top: 1px solid var(--glass-border); padding-top: 16px; }

/* ==========================================================================
   Stepper wizard (recipient fills in when / what / where)
   ========================================================================== */
.stepper-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}
.stepper-dot {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
  position: relative;
}
.stepper-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent-rose), var(--accent-fuchsia));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(.3,.8,.3,1);
}
.stepper-dot.done::after,
.stepper-dot.current::after { transform: scaleX(1); }
.stepper-dot.current::after { background: linear-gradient(90deg, var(--accent-gold), var(--accent-rose)); }

.step-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-rose-dim);
  margin: 0 0 4px;
}
.step-title {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 18px;
}
.wizard-step {
  animation: stepIn 0.35s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.food-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.food-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.045);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.food-card:hover { background: rgba(255,255,255,0.09); transform: translateY(-2px); }
.food-card.selected {
  border-color: rgba(255, 144, 168, 0.6);
  background: linear-gradient(160deg, rgba(255,111,145,0.18), rgba(198,93,219,0.12));
  box-shadow: 0 6px 18px rgba(198,93,219,0.25);
  transform: translateY(-2px);
}
.food-icon { font-size: 26px; line-height: 1; }
.food-label { font-size: 11.5px; color: var(--text-dim); font-weight: 500; }
.food-card.selected .food-label { color: #fff; }

.food-custom-wrap { margin-top: 4px; }

.review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.review-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-light);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
}
.review-row .icon-sm, .review-row .food-icon-inline { color: var(--accent-rose-dim); flex-shrink: 0; }
.food-icon-inline { font-size: 17px; }

.decline-screen, .accept-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.decline-screen .result-icon { border-color: rgba(255,90,110,0.3); background: rgba(255,90,110,0.12); }

.success-banner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  animation: popIn 0.5s cubic-bezier(.2,.9,.25,1.2) both;
}
.success-banner .result-icon {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.12);
}
.success-banner h3 { font-family: var(--font-display); font-size: 19px; margin: 0; }

/* ==========================================================================
   History
   ========================================================================== */
.history-toolbar { display: flex; justify-content: flex-end; }
#history-list { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }

.history-card {
  animation: fadeInUp 0.35s ease both;
}
.history-card .invite-head { margin-bottom: 10px; }
.history-code { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-faint); margin: 0; }
.history-title { margin: 3px 0 0; font-size: 16px; font-weight: 600; }
.history-meta { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--text-dim); }
.history-meta span { display: flex; align-items: center; gap: 7px; }
.history-meta .icon-sm { color: var(--accent-rose-dim); }
.history-reply {
  margin-top: 12px;
  border: 1px solid rgba(52, 211, 153, 0.2);
  background: rgba(52, 211, 153, 0.09);
  color: #a7f3d0;
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 13.5px;
}

.empty-state, .loading-state, .error-state {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 46px 20px;
  color: var(--text-dim);
  gap: 10px;
}
.empty-state .icon-lg, .error-state .icon-lg { width: 30px; height: 30px; color: var(--text-faint); }
.error-state { color: var(--accent-rose-dim); }

.spinner-lg {
  width: 26px; height: 26px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--accent-rose-dim);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer {
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 30px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 420px) {
  .app { padding: 28px 14px 40px; }
  .glass-card { padding: 20px 16px; }
  .field-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .wordmark { font-size: 27px; }
  .ticket-code { font-size: 25px; letter-spacing: 0.22em; }
}

/* ==========================================================================
   Additions — link ticket, hints, wizard, food grid, declined state
   ========================================================================== */

.hint-text {
  margin: -6px 0 0;
  font-size: 12.5px;
  color: var(--text-faint);
  line-height: 1.5;
}

.ticket-code {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  word-break: break-all;
  color: #ffe3ea;
  text-shadow: 0 0 18px rgba(255, 111, 145, 0.35);
}
.ticket-sub {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}
.ticket-sub span {
  font-family: var(--font-mono);
  color: var(--text-dim);
  letter-spacing: 0.2em;
}

/* status pill — declined */
.status-pill.declined {
  color: #ff9d9d;
  border: 1px solid rgba(255, 111, 111, 0.3);
  background: rgba(255, 111, 111, 0.12);
}

.declined-banner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  animation: popIn 0.5s cubic-bezier(.2,.9,.25,1.2) both;
}
.declined-banner .result-icon {
  border-color: rgba(255, 111, 111, 0.3);
  background: rgba(255, 111, 111, 0.12);
}
.declined-banner h3 { font-family: var(--font-display); font-size: 19px; margin: 0; }

.already-declined {
  border: 1px solid rgba(255, 111, 111, 0.25);
  background: rgba(255, 111, 111, 0.1);
  color: #ffc4c4;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
}

/* ----------------------------------------------------------------------
   Wizard
   ---------------------------------------------------------------------- */
.invite-wizard { animation: fadeInUp 0.4s ease both; }

.wizard-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 0 2px;
}
.wizard-dot {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
  position: relative;
}
.wizard-dot::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--accent-rose), var(--accent-fuchsia));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.wizard-dot.filled::after { transform: scaleX(1); }
.wizard-step-label {
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  margin: 0 0 18px;
}

.wizard-step {
  animation: stepIn 0.38s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

.wizard-headline {
  font-family: var(--font-display);
  font-size: 21px;
  margin: 0 0 4px;
  text-align: center;
}
.wizard-sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 13.5px;
  margin: 0 0 20px;
}

.wizard-nav {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.wizard-nav .btn { flex: 1; }
.wizard-nav .btn-back {
  flex: 0 0 auto;
  width: 46px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-light);
}
.wizard-nav .btn-back:hover:not(:disabled) { background: rgba(255,255,255,0.12); }

.decline-row {
  text-align: center;
  margin-top: 16px;
}

.decline-panel {
  margin-top: 14px;
  border-top: 1px solid var(--glass-border);
  padding-top: 14px;
  animation: fadeInUp 0.3s ease both;
}

/* food grid */
.food-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 6px;
}
.food-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.045);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-align: center;
}
.food-chip .food-icon { font-size: 22px; line-height: 1; }
.food-chip:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.28); }
.food-chip.selected {
  color: #fff;
  border-color: rgba(255, 111, 145, 0.55);
  background: linear-gradient(135deg, rgba(255,111,145,0.25), rgba(198,93,219,0.22));
  box-shadow: 0 6px 18px rgba(198, 93, 219, 0.25);
  transform: translateY(-2px);
}

/* review summary */
.review-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.review-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-light);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
}
.review-row .icon-sm, .review-row .food-icon-inline { color: var(--accent-rose-dim); flex-shrink: 0; }
.food-icon-inline { font-size: 16px; }
.review-row .review-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  display: block;
  margin-bottom: 1px;
}
.review-row .review-value { font-weight: 500; }
.review-row-content { display: flex; flex-direction: column; }

@media (max-width: 420px) {
  .food-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .food-chip { padding: 11px 4px; font-size: 11px; }
  .food-chip .food-icon { font-size: 19px; }
}

/* ==========================================================================
   Role tags (sent vs received) in History
   ========================================================================== */
.role-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
}
.role-tag.role-sent {
  color: var(--accent-rose-dim);
  border: 1px solid rgba(255, 111, 145, 0.25);
  background: rgba(255, 111, 145, 0.08);
}
.role-tag.role-received {
  color: #a5b4fc;
  border: 1px solid rgba(165, 180, 252, 0.3);
  background: rgba(165, 180, 252, 0.1);
}

.history-code {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-ghost svg {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   Header actions (install / notifications)
   ========================================================================== */
.header-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.mini-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.mini-btn:active { transform: scale(0.96); }
.mini-btn .icon-sm { width: 14px; height: 14px; }

/* ==========================================================================
   Activity options (create form)
   ========================================================================== */
.activity-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.activity-option-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.activity-option-row input {
  flex: 1;
}
.activity-remove-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.05);
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.activity-remove-btn:hover { background: rgba(255,111,145,0.15); color: #ff9d9d; }

/* ==========================================================================
   Countdown
   ========================================================================== */
.countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, 0.3);
  background: rgba(255, 209, 102, 0.1);
  color: #ffe0a3;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* keepsake / action row */
.result-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  width: 100%;
}
.result-actions-row .btn { flex: 1; }

/* live indicator dot on history cards */
.live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  margin-right: 5px;
  box-shadow: 0 0 6px rgba(52,211,153,0.8);
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@media (max-width: 420px) {
  .result-actions-row { flex-direction: column; }
}
