@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --bg-main: #fffaf7;
  --bg-warm: #fff3ec;
  --ink: #2d1f1a;
  --ink-soft: #6e5a52;
  --ink-faint: #a08c83;
  --accent-gold: #d4a450;
  --accent-peach: #ffb7a5;
  --accent-pink: #f7a8b8;
  --card-bg: rgba(255,255,255,0.55);
  --card-border: rgba(255,255,255,0.4);
  --card-shadow: 0 10px 40px rgba(180,120,80,0.12);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-main);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── BACKGROUND SYSTEM ── */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(190deg, #ffffff 0%, #ffe8df 40%, #fff3ec 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}
.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #ffb7a5 0%, #f7a8b8 60%, transparent 80%);
  top: -15%; left: -10%;
  opacity: 0.42;
  animation: drift1 22s ease-in-out infinite;
}
.orb-2 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, #d4a450 0%, #ffb7a5 55%, transparent 80%);
  top: 30%; right: -12%;
  opacity: 0.38;
  animation: drift2 28s ease-in-out infinite;
}
.orb-3 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, #f7a8b8 0%, #ffe8df 60%, transparent 80%);
  bottom: 10%; left: 20%;
  opacity: 0.45;
  animation: drift3 33s ease-in-out infinite;
}
.orb-4 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #d4a450 0%, #f7a8b8 50%, transparent 80%);
  top: 60%; left: -5%;
  opacity: 0.35;
  animation: drift4 39s ease-in-out infinite;
}
.orb-5 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #ffb7a5 0%, #d4a450 55%, transparent 80%);
  top: 5%; right: 25%;
  opacity: 0.4;
  animation: drift5 45s ease-in-out infinite;
}

@keyframes drift1 {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(60px,-40px) scale(1.06); }
  66%  { transform: translate(-30px,50px) scale(0.96); }
  100% { transform: translate(0,0) scale(1); }
}
@keyframes drift2 {
  0%   { transform: translate(0,0) scale(1); }
  40%  { transform: translate(-70px,40px) scale(1.08); }
  75%  { transform: translate(40px,-60px) scale(0.94); }
  100% { transform: translate(0,0) scale(1); }
}
@keyframes drift3 {
  0%   { transform: translate(0,0) scale(1); }
  30%  { transform: translate(50px,70px) scale(1.05); }
  65%  { transform: translate(-60px,-30px) scale(0.97); }
  100% { transform: translate(0,0) scale(1); }
}
@keyframes drift4 {
  0%   { transform: translate(0,0) scale(1.02); }
  45%  { transform: translate(80px,-50px) scale(0.95); }
  80%  { transform: translate(-40px,60px) scale(1.07); }
  100% { transform: translate(0,0) scale(1.02); }
}
@keyframes drift5 {
  0%   { transform: translate(0,0) scale(0.97); }
  35%  { transform: translate(-50px,30px) scale(1.04); }
  70%  { transform: translate(70px,-70px) scale(0.98); }
  100% { transform: translate(0,0) scale(0.97); }
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(45,31,26,0.08) 100%);
}

/* ── LAYOUT ── */
.page-wrap {
  position: relative;
  z-index: 1;
}

/* ── TOP BAR ── */
.topbar {
  padding: 1.1rem 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand */
.brand-link {
  font-family: 'Lora', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: opacity 0.2s;
}
.brand-link:hover { opacity: 0.82; }
.brand-star {
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-peach));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: starPulse 3s ease-in-out infinite;
}
@keyframes starPulse {
  0%,100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.18) rotate(12deg); }
}

/* Home button */
.home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(212,164,80,0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
  box-shadow: 0 2px 10px rgba(180,120,80,0.08);
}
.home-link:hover {
  background: rgba(255,255,255,0.8);
  border-color: rgba(212,164,80,0.45);
  box-shadow: 0 4px 16px rgba(180,120,80,0.14);
  color: var(--ink);
}
.home-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: currentColor;
}
.home-label {
  line-height: 1;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: 'Lora', serif; font-weight: 500; color: var(--ink); }

.hero-headline {
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 500;
  line-height: 1.15;
  font-family: 'Lora', serif;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.2s;
  text-decoration: none;
  border: none;
  outline: none;
}
.btn:hover {
  transform: translateY(-4px) scale(1.02);
}
.btn-primary {
  background: linear-gradient(135deg, #d4a450 0%, #ffb7a5 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(212,164,80,0.3);
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(212,164,80,0.45);
}
.btn-secondary {
  background: rgba(255,255,255,0.6);
  color: var(--ink-soft);
  border: 1px solid rgba(212,164,80,0.25);
  box-shadow: 0 4px 16px rgba(180,120,80,0.1);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  box-shadow: 0 8px 28px rgba(180,120,80,0.18);
  border-color: rgba(212,164,80,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--ink-soft);
  border: 1.5px solid rgba(212,164,80,0.4);
}
.btn-outline:hover {
  background: rgba(212,164,80,0.07);
  box-shadow: 0 4px 20px rgba(212,164,80,0.15);
}
.btn-full { width: 100%; padding: 16px 26px; font-size: 1rem; }
.btn-danger {
  background: rgba(255,255,255,0.6);
  color: var(--ink-faint);
  border: 1.5px solid rgba(160,140,131,0.3);
  backdrop-filter: blur(10px);
}
.btn-danger:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-color: rgba(160,140,131,0.5);
}

/* ── GLASS CARD ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 26px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 2.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(180,120,80,0.18);
  border-color: rgba(212,164,80,0.3);
}

/* ── SCROLL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SECTION ── */
section {
  padding: 8rem 2.4rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── LABEL ── */
.label-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-faint);
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 0.8rem;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 3rem 2rem;
  font-size: 0.9rem;
  color: var(--ink-faint);
  position: relative;
  z-index: 1;
}
footer a {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}
footer a:hover { opacity: 0.75; }

/* ── DISCLAIMER ── */
.disclaimer {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-faint);
  padding: 0.9rem 1.4rem;
  background: rgba(212,164,80,0.07);
  border: 1px solid rgba(212,164,80,0.18);
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  position: relative;
  z-index: 1;
}

/* ── FORM ELEMENTS ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}
.form-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ink-faint);
  font-family: 'DM Sans', sans-serif;
}
.form-input, .form-textarea {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(212,164,80,0.2);
  background: rgba(255,255,255,0.7);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.97rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  backdrop-filter: blur(8px);
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212,164,80,0.15);
}
.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* ── STATUS BADGES ── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.badge-open   { background: rgba(160,140,131,0.15); color: var(--ink-soft); }
.badge-pending{ background: rgba(212,164,80,0.18); color: #a07030; }
.badge-completed { background: rgba(80,180,120,0.15); color: #357a55; }

/* ── AMOUNT BADGE ── */
.amount-badge {
  background: linear-gradient(135deg, var(--accent-gold), #e8b870);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ── SUCCESS BOX ── */
.success-box {
  background: rgba(212,164,80,0.09);
  border: 1.5px solid rgba(212,164,80,0.3);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.success-box code {
  font-size: 0.85rem;
  color: var(--ink-soft);
  word-break: break-all;
  flex: 1;
}

/* ── WISH CARD ── */
.wish-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 26px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.wish-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(180,120,80,0.18);
  border-color: rgba(212,164,80,0.3);
}
.wish-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}
.wish-text {
  font-family: 'Lora', serif;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
  flex: 1;
}
.wish-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.wish-name {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.wish-action {
  border-top: 1px solid rgba(212,164,80,0.15);
  padding-top: 1rem;
}
.wish-waiting {
  font-size: 0.88rem;
  color: var(--ink-faint);
  font-style: italic;
  text-align: center;
  padding: 0.5rem 0;
}

/* ── DEV CARD ── */
.dev-card {
  background: linear-gradient(135deg, rgba(255,183,165,0.2), rgba(247,168,184,0.2));
  border: 1px solid rgba(247,168,184,0.35);
}

/* ── LEADERBOARD ── */
.lb-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.6rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(18px);
}
.lb-rank {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  color: var(--ink-faint);
  min-width: 2rem;
  text-align: center;
}
.lb-rank.top { color: var(--accent-gold); font-weight: 600; }
.lb-info { flex: 1; }
.lb-name { font-weight: 500; color: var(--ink); font-size: 1rem; }
.lb-amount { font-size: 0.88rem; color: var(--ink-faint); }
.lb-top-highlight {
  border-color: rgba(212,164,80,0.35);
  background: rgba(212,164,80,0.07);
}

/* ── CONFIRM CARD ── */
.confirm-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}
.confirm-card {
  max-width: 480px;
  width: 100%;
}
.confirm-wish-text {
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink);
  font-style: italic;
  background: rgba(212,164,80,0.07);
  border-left: 3px solid var(--accent-gold);
  padding: 1rem 1.2rem;
  border-radius: 0 10px 10px 0;
  margin-bottom: 1rem;
}

/* ── HERO ── */
.hero-section {
  padding: 6rem 2.4rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 80vh;
}
.hero-left { display: flex; flex-direction: column; gap: 1.8rem; }
.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 440px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── HERO DECO ── */
.hero-deco {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-orb-wrap {
  position: relative;
  width: 380px;
  height: 380px;
}
.hero-orb-main {
  position: absolute;
  inset: 0;
  border-radius: 40% 60% 55% 45% / 45% 45% 55% 55%;
  background: linear-gradient(135deg, rgba(255,183,165,0.7), rgba(247,168,184,0.5), rgba(212,164,80,0.4));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 20px 80px rgba(212,164,80,0.25), inset 0 1px 1px rgba(255,255,255,0.6);
  animation: morphBlob 10s ease-in-out infinite;
}
.hero-orb-inner {
  position: absolute;
  top: 18%; left: 18%; right: 18%; bottom: 18%;
  border-radius: 50% 40% 60% 50% / 60% 50% 50% 40%;
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.4);
  animation: morphBlob 7s ease-in-out infinite reverse;
}
.hero-float-1, .hero-float-2, .hero-float-3 {
  position: absolute;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(180,120,80,0.12);
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 8px 18px;
  white-space: nowrap;
  animation: floatChip 4s ease-in-out infinite;
}
.hero-float-1 { top: 10%; left: -8%; animation-delay: 0s; }
.hero-float-2 { bottom: 15%; right: -5%; animation-delay: 1.5s; }
.hero-float-3 { bottom: 35%; left: -12%; animation-delay: 0.8s; }

@keyframes morphBlob {
  0%,100% { border-radius: 40% 60% 55% 45% / 45% 45% 55% 55%; }
  33%  { border-radius: 55% 45% 40% 60% / 60% 55% 45% 40%; }
  66%  { border-radius: 45% 55% 60% 40% / 40% 60% 40% 60%; }
}
@keyframes floatChip {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ── ABOUT SECTION ── */
.about-section {
  padding: 0 2.4rem 6rem;
  max-width: 1200px;
  margin: -3rem auto 0;
}
.about-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 0.6rem;
}
.about-intro { color: var(--ink-soft); margin-bottom: 3rem; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.about-card { min-height: 240px; }
.about-card ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.about-card ul li {
  padding-left: 1.2rem;
  position: relative;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.about-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-gold);
}
.about-card p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}
.card-title {
  font-size: 1.4rem;
  font-family: 'Lora', serif;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1rem;
}

/* ── FULFILL GRID ── */
.fulfill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ── PAGE HEADER ── */
.page-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2.4rem 1rem;
}
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.5rem; }
.page-header p { color: var(--ink-soft); font-size: 1.05rem; }

/* ── MAKE PAGE ── */
.make-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

/* ── EMPTY STATE ── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--ink-faint);
}
.empty-state p { font-family: 'Lora', serif; font-size: 1.2rem; font-style: italic; }

/* ── WALLET REVEAL (after support click) ── */
.wallet-reveal { display: flex; flex-direction: column; gap: 0.5rem; }
.wallet-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ink-faint);
  font-family: 'DM Sans', sans-serif;
}
.wallet-box {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(212,164,80,0.07);
  border: 1px solid rgba(212,164,80,0.2);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  flex-wrap: wrap;
}
.wallet-addr {
  font-size: 0.82rem;
  color: var(--ink-soft);
  word-break: break-all;
  flex: 1;
  font-family: 'DM Mono', 'Courier New', monospace;
  letter-spacing: 0.02em;
}

/* ── X HANDLE LINK ── */
.wish-x {
  font-size: 0.82rem;
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}
.wish-x:hover { opacity: 0.7; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .topbar { padding: 1rem 1.4rem; }
  .orb-3, .orb-4, .orb-5 { display: none; }
  .orb-1, .orb-2 { filter: blur(55px) !important; opacity: 0.22 !important; animation-duration: 70s !important; }
  .wish-card, .card { box-shadow: 0 4px 14px rgba(180,120,80,0.08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .wish-card:hover, .card:hover { transform: none; }
}
@media (max-width: 900px) {
  .hero-section { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-sub { max-width: 100%; }
  .hero-btns { justify-content: center; }
  .hero-deco { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .fulfill-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  section { padding: 5rem 1.4rem 4rem; }
  .fulfill-grid { grid-template-columns: 1fr; }
  .hero-section { padding: 4rem 1.4rem 3rem; }
  .about-section { padding: 0 1.4rem 4rem; }
  .make-wrap { padding: 0 1.4rem 4rem; }
  .wallet-addr { font-size: 0.75rem; }
}

/* ── SUPPORT MODAL ── */
#support-modal {
  /* overlay handled inline; card animation defined inline */
}
#support-modal-card {
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,164,80,0.3) transparent;
  /* Override any inherited opacity from the dark overlay */
  background: rgba(255,252,249,0.97) !important;
  backdrop-filter: blur(32px) !important;
  -webkit-backdrop-filter: blur(32px) !important;
  border: 1px solid rgba(212,164,80,0.25) !important;
  box-shadow: 0 24px 80px rgba(45,31,26,0.22), 0 1px 0 rgba(255,255,255,0.8) inset !important;
  color: var(--ink);
}
#support-modal-card::-webkit-scrollbar { width: 4px; }
#support-modal-card::-webkit-scrollbar-thumb { background: rgba(212,164,80,0.35); border-radius: 4px; }

/* Leaderboard detail panel */
.lb-detail {
  margin-top: -0.4rem;
  margin-bottom: 0.8rem;
}

/* Mobile: modal takes full width */
@media (max-width: 500px) {
  #support-modal { padding: 1rem; align-items: flex-end; }
  #support-modal-card { max-height: 85vh; border-radius: 20px 20px 16px 16px; }
}

/* ── FULFILLMENT CELEBRATION ── */
@keyframes wishPop {
  0%   { transform: scale(0) translateY(0); opacity: 1; }
  70%  { transform: scale(1.2) translateY(-60px); opacity: 1; }
  100% { transform: scale(1) translateY(-120px); opacity: 0; }
}
@keyframes confettiFall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}
@keyframes celebrationPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(212,164,80,0); }
  40%      { box-shadow: 0 0 0 24px rgba(212,164,80,0.18); }
  80%      { box-shadow: 0 0 0 48px rgba(212,164,80,0); }
}
@keyframes celebrationGlow {
  0%   { opacity: 0; transform: scale(0.8); }
  20%  { opacity: 1; transform: scale(1.05); }
  80%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.1); }
}
.celebration-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.celebration-burst {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: celebrationGlow 3.2s ease forwards;
}
.celebration-emoji {
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 1;
  filter: drop-shadow(0 8px 32px rgba(212,164,80,0.5));
}
.celebration-text {
  font-family: 'Lora', serif;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-peach));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 0 1rem;
}
.confetti-piece {
  position: fixed;
  top: -20px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
  pointer-events: none;
  z-index: 99999;
}

/* ── MOBILE TOPBAR ── */
@media (max-width: 480px) {
  .topbar { padding: 0.9rem 1.2rem; }
  .brand-link { font-size: 1.1rem; }
  .home-label { display: none; }
  .home-link { padding: 0.45rem 0.6rem; }
  .home-icon { width: 17px; height: 17px; }
}
/* ── INLINE CONFIRM (pending wish card) ── */
.inline-confirm {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.inline-confirm-input-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.inline-x-input {
  background: rgba(255,255,255,0.75) !important;
  border-color: rgba(212,164,80,0.25) !important;
}
.inline-x-input:focus {
  border-color: var(--accent-gold) !important;
  box-shadow: 0 0 0 3px rgba(212,164,80,0.15) !important;
}

/* ── LOST CONFIRMATION LINK BAR ── */
.lost-link-bar {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(212,164,80,0.2);
  border-radius: 14px;
  padding: 0.1rem 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}
.lost-link-toggle {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
  text-align: left;
  transition: color 0.2s;
}
.lost-link-toggle:hover { color: var(--ink); }
.lost-link-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  opacity: 0.6;
}
.lost-link-body {
  display: none;
  padding: 0 1.2rem 1rem;
  border-top: 1px solid rgba(212,164,80,0.12);
}

/* ── INLINE CONFIRM STEP 2 ── */
.inline-step-2-msg {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
