/* ============================================================
   The Wish Basket — static demo design system v3
   Anonymous wish-sharing platform
   Palette: "Extra Celestial Cosmic Galaxy" (client color.jpeg)
   Terracotta #9D4136 · Tan #DC9760 · Plum #523051/#291A37
   Deep blue #22668D · Teal #55ADC3
   ============================================================ */
:root {
  --brand-pink: #9D4136;
  --brand-hot: #7E342B;
  --brand-soft: #DC9760;
  --brand-pale: #E8C5A0;
  --purple: #523051;
  --magenta: #523051;
  --purple-deep: #291A37;
  --ink-bg: #291A37;
  --ink-purple: #32203F;
  --ink-card: #3A2647;
  --ink-card2: #422D50;
  --ink-deep: #1F142A;
  --text-soft: #F8F0F3;
  --text-muted: #C4B4C2;
  --success: #55ADC3;
  --gold: #DC9760;
  --danger: #C95A4E;
  --info: #22668D;
  --sky: #55ADC3;
  --font-sans: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--ink-bg);
  color: var(--text-soft);
  min-height: 100vh;
  overscroll-behavior-y: none;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--ink-bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--brand-pink), var(--info)); border-radius: 8px; }
::selection { background: linear-gradient(90deg, rgba(157,65,54,0.4), rgba(34,102,141,0.4)); color: #fff; }

/* ---------- Layout ---------- */
.page { min-height: 100vh; position: relative; }
.app-shell { max-width: 430px; margin: 0 auto; min-height: 100vh; position: relative; background: var(--ink-bg); box-shadow: 0 0 80px rgba(0,0,0,0.5); }
.app-shell .bg-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.wrap { padding: 0 16px; position: relative; z-index: 1; }
.pb-nav { padding-bottom: 110px; }
.page-glow { background: radial-gradient(120% 90% at 50% 0%, #32203F 0%, #291A37 55%, #1F142A 100%); }

/* ---------- Time-based dynamic background ---------- */
.scene { position: relative; overflow: hidden; }
.scene .sky { position: absolute; top: 0; left: 0; right: 0; height: 105vh; transition: background 1.2s ease; }
.scene .stars, .scene .sun, .scene .moon { position: absolute; }
body[data-theme="morning"] .sky { background: linear-gradient(180deg, #22668D 0%, #55ADC3 40%, #DC9760 72%, #E8C5A0 100%); }
body[data-theme="day"] .sky { background: linear-gradient(180deg, #22668D 0%, #55ADC3 55%, #A8D4DE 100%); }
body[data-theme="evening"] .sky { background: linear-gradient(180deg, #291A37 0%, #523051 40%, #9D4136 72%, #DC9760 100%); }
body[data-theme="night"] .sky { background: linear-gradient(180deg, #0F0916 0%, #1F142A 45%, #291A37 100%); }
.sun {
  position: absolute; width: 90px; height: 90px; border-radius: 50%; left: 12%; top: 22%;
  background: radial-gradient(circle at 35% 35%, #FFF8E8, #DC9760 60%, rgba(220,151,96,0)); filter: blur(1px);
  box-shadow: 0 0 60px rgba(220, 151, 96, 0.65);
}
.moon {
  position: absolute; width: 70px; height: 70px; border-radius: 50%; right: 14%; top: 16%;
  background: radial-gradient(circle at 35% 35%, #fff, #FBF1E6 55%, rgba(251,241,230,0));
  box-shadow: 0 0 50px rgba(232,197,168,0.6);
}
.stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 20%, #fff, transparent),
    radial-gradient(1px 1px at 30% 10%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 48% 24%, #E8C5A0, transparent),
    radial-gradient(1px 1px at 62% 8%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 75% 18%, #E8C5A0, transparent),
    radial-gradient(1px 1px at 88% 26%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 20% 34%, #fff, transparent),
    radial-gradient(1px 1px at 55% 32%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 80% 36%, #fff, transparent),
    radial-gradient(1px 1px at 94% 12%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 8% 45%, #E8C5A0, transparent),
    radial-gradient(1px 1px at 40% 40%, #fff, transparent);
  opacity: 0; transition: opacity 1s;
}
body[data-theme="night"] .stars, body[data-theme="morning"] .stars { opacity: 0.9; }
body[data-theme="morning"] .stars { opacity: 0.35; }
body[data-theme="day"] .sun { opacity: 0; }
body[data-theme="day"] .moon, body[data-theme="morning"] .moon, body[data-theme="day"] .stars { opacity: 0; }
body[data-theme="morning"] .sun, body[data-theme="evening"] .sun { opacity: 0.85; }
body[data-theme="night"] .sun { display: none; }
body[data-theme="night"] .moon { opacity: 1; }
body[data-theme="evening"] .moon, body[data-theme="morning"] .moon { opacity: 0.5; }

/* Bright-sky "day" theme: flip hero text + nav to dark so it stays readable over the light sky */
body[data-theme="day"] {
  --text-soft: #10303E;
  --text-muted: #2A5464;
}
body[data-theme="day"] .lhero h1 { color: #10303E; text-shadow: none; }
body[data-theme="day"] .lhero p { color: rgba(16,48,62,0.78); }
body[data-theme="day"] .lhero-badge { background: rgba(255,255,255,0.65); border-color: rgba(16,48,62,0.22); color: #10303E; }
body[data-theme="day"] .lnav .brand { color: #10303E; }
body[data-theme="day"] .lnav-links a { color: #2A5464; }
body[data-theme="day"] .lnav-links a:hover { color: #9D4136; }
body[data-theme="day"] .lang-switch button { color: #2A5464; }
body[data-theme="day"] .lang-switch button.active { color: #9D4136; }
body[data-theme="day"] .neon-text { background: linear-gradient(120deg, #9D4136 0%, #523051 55%, #22668D 100%); }
body[data-theme="day"] .btn-secondary { color: #10303E; background: rgba(255,255,255,0.65); border: 1px solid rgba(16,48,62,0.2); }
body[data-theme="day"] .btn-outline { color: #9D4136; border-color: rgba(157,65,54,0.5); }
body[data-theme="day"] .theme-badge { background: rgba(255,255,255,0.7); border-color: rgba(16,48,62,0.2); color: #10303E; }
.theme-badge {
  position: fixed; right: 14px; bottom: 14px; z-index: 90;
  font-size: 10px; padding: 6px 12px; border-radius: 999px; letter-spacing: 1px;
  background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); backdrop-filter: blur(10px);
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; }
.font-display { font-family: var(--font-display); }
.neon-text {
  background: linear-gradient(120deg, #DC9760 0%, #9D4136 45%, #523051 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-muted { color: var(--text-muted); }
.text-soft { color: var(--text-soft); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-center { text-align: center; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; }
.flex { display: flex; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.flex-1 { flex: 1; min-width: 0; }
.grid { display: grid; } .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); } .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Surfaces ---------- */
.glass {
  background: linear-gradient(160deg, rgba(50,32,63,0.85) 0%, rgba(31,20,42,0.82) 100%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 12px 40px rgba(0,0,0,0.45);
  backdrop-filter: blur(20px);
}
.glass-pad { padding: 20px; }
.card { background: var(--ink-card); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 16px; }
.brand-gradient { background: linear-gradient(135deg, #9D4136 0%, #523051 55%, #22668D 100%); }
.brand-soft-bg { background: linear-gradient(135deg, #DC9760 0%, #9D4136 45%, #523051 100%); }
.soft-blob { background: radial-gradient(60% 50% at 50% 60%, rgba(157,65,54,0.12), transparent 70%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; border: none; border-radius: 16px; padding: 13px 22px;
  font-size: 15px; transition: all 0.2s; user-select: none; cursor: pointer; color: inherit;
}
.btn:active { transform: scale(0.98); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #9D4136 0%, #523051 55%, #22668D 100%); box-shadow: 0 0 18px rgba(157,65,54,0.35), 0 0 48px rgba(34,102,141,0.22); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-outline { color: var(--brand-soft); border: 1px solid rgba(157,65,54,0.4); background: transparent; }
.btn-ghost { color: var(--text-muted); background: transparent; }
.btn-secondary { color: #fff; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); }
.btn-success { color: #0C2530; background: linear-gradient(135deg, #7FCBDD, #55ADC3); box-shadow: 0 0 18px rgba(85,173,195,0.35); }
.btn-gold { color: #2A1A05; background: linear-gradient(135deg, #E8C9A8, #DC9760); box-shadow: 0 0 18px rgba(220,151,96,0.35); }
.btn-danger { color: #fff; background: rgba(201,90,78,0.2); border: 1px solid rgba(201,90,78,0.4); }
.btn-lg { padding: 16px 26px; font-size: 16px; border-radius: 18px; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 14px; font-size: 12px; border-radius: 12px; }

/* ---------- Inputs ---------- */
.input {
  width: 100%; margin-top: 6px; padding: 13px 16px; font-size: 14px; color: #fff;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; outline: none; transition: all 0.2s;
}
.input::placeholder { color: rgba(196,180,194,0.5); }
.input:focus { border-color: rgba(157,65,54,0.6); background: rgba(255,255,255,0.06); box-shadow: 0 0 14px rgba(157,65,54,0.22); }
select.input { appearance: none; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px;
  border-radius: 999px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
  border: 1px solid transparent;
}
.badge-pink { background: rgba(157,65,54,0.15); color: var(--brand-soft); border-color: rgba(157,65,54,0.3); }
.badge-green { background: rgba(85,173,195,0.15); color: var(--success); border-color: rgba(85,173,195,0.3); }
.badge-gold { background: rgba(220,151,96,0.15); color: var(--gold); border-color: rgba(220,151,96,0.3); }
.badge-purple { background: rgba(34,102,141,0.15); color: var(--sky); border-color: rgba(34,102,141,0.3); }
.badge-red { background: rgba(201,90,78,0.15); color: var(--danger); border-color: rgba(201,90,78,0.3); }
.badge-muted { background: rgba(255,255,255,0.06); color: var(--text-muted); border-color: rgba(255,255,255,0.1); }

/* ---------- App header ---------- */
.app-header {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: rgba(41,26,55,0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-title { font-family: var(--font-display); font-size: 17px; color: #fff; flex: 1; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: var(--text-soft); font-size: 16px; position: relative; flex-shrink: 0;
}
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-pink); box-shadow: 0 0 8px var(--brand-pink); }

/* ---------- Bottom nav ---------- */
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; z-index: 60; padding-bottom: env(safe-area-inset-bottom, 0); }
.nav-inner { display: flex; justify-content: space-around; align-items: stretch; background: rgba(58,38,71,0.92); backdrop-filter: blur(20px); border-top: 1px solid rgba(255,255,255,0.08); padding: 6px 4px 10px; }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--text-muted); font-size: 9px; font-weight: 600; border-radius: 14px; position: relative; }
.nav-item .ic { font-size: 20px; line-height: 1; }
.nav-item.active { color: var(--brand-soft); }
.nav-item.active::before { content: ""; position: absolute; top: -6px; width: 34px; height: 3px; border-radius: 999px; background: linear-gradient(90deg, #9D4136, #523051); box-shadow: 0 0 10px rgba(157,65,54,0.7); }
.nav-item.active .ic { text-shadow: 0 0 14px rgba(220,151,96,0.8); }

/* ---------- Particles ---------- */
.particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.overlay-content { position: relative; z-index: 1; }

/* ---------- Wish box ---------- */
.box-wrap { position: relative; width: 170px; height: 170px; margin: 0 auto; }
.box-base {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 150px; height: 88px; border-radius: 18px;
  background: linear-gradient(160deg, #DC9760 0%, #9D4136 40%, #523051 72%, #22668D 100%);
  box-shadow: 0 0 40px rgba(157,65,54,0.5), 0 0 60px rgba(34,102,141,0.25), 0 18px 40px rgba(0,0,0,0.5);
}
.box-lid {
  position: absolute; left: 50%; bottom: 114px; transform: translateX(-50%);
  width: 164px; height: 26px; border-radius: 14px;
  background: linear-gradient(160deg, #DC9760 0%, #9D4136 45%, #22668D 100%);
  box-shadow: 0 0 34px rgba(157,65,54,0.4), 0 0 40px rgba(34,102,141,0.2);
}
.box-clasp { position: absolute; left: 50%; transform: translateX(-50%); bottom: 78px; width: 22px; height: 22px; border-radius: 8px; background: rgba(255,255,255,0.9); box-shadow: 0 0 16px rgba(255,255,255,0.8); }
.box-glow { position: absolute; left: 50%; transform: translateX(-50%); bottom: 20px; width: 190px; height: 120px; border-radius: 50%; background: radial-gradient(50% 60% at 50% 60%, rgba(157,65,54,0.4), rgba(34,102,141,0.2) 55%, transparent 70%); filter: blur(6px); }
.box.open .box-lid { transform: translateX(-50%) translateY(-30px) rotate(-14deg); transform-origin: left; }
.box.open .box-clasp { opacity: 0; }
.box.open .box-base { filter: brightness(1.15); }
.beam { position: absolute; left: 50%; bottom: 130px; transform: translateX(-50%); width: 4px; height: 200px; background: linear-gradient(to top, rgba(220,151,96,0.9), rgba(157,65,54,0.4), transparent); border-radius: 999px; opacity: 0; animation: beam 2.6s ease-out infinite; }
@keyframes beam { 0% { opacity: 0; height: 0; } 25% { opacity: 0.8; height: 180px; } 60% { opacity: 0.4; } 100% { opacity: 0; height: 200px; } }

/* ---------- Animations ---------- */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.floaty { animation: floaty 6s ease-in-out infinite; }
@keyframes pop { 0% { transform: scale(0.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.pop { animation: pop 0.35s ease-out both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp 0.6s ease-out both; }
@keyframes pulseGlow { 0%,100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.pulse-glow { animation: pulseGlow 4s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }
.twinkle { animation: twinkle 3.2s ease-in-out infinite; }
@keyframes heartBeat { 0%,100% { transform: scale(1); } 10% { transform: scale(1.15); } 20% { transform: scale(1); } 30% { transform: scale(1.12); } 40% { transform: scale(1); } }
.heart-beat { animation: heartBeat 1.4s ease-in-out infinite; }
@keyframes sway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.sway { transform-origin: top center; animation: sway 5s ease-in-out infinite; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%); width: calc(100% - 48px); max-width: 400px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 16px; background: rgba(58,38,71,0.95); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(20px); font-size: 13px; color: var(--text-soft); box-shadow: 0 0 18px rgba(157,65,54,0.35), 0 0 30px rgba(34,102,141,0.15); animation: pop 0.3s ease-out both; }

/* ---------- Landing / marketing ---------- */
.lnav { position: sticky; top: 0; z-index: 70; }
.lnav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: 2px; font-size: 14px; color: #fff; }
.lnav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--text-muted); }
.lnav-links a:hover { color: #fff; }
.lhero { max-width: 1100px; margin: 0 auto; padding: 40px 20px 60px; text-align: center; position: relative; }
.lhero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18); background: rgba(0,0,0,0.35); color: #fff; font-size: 12px; font-weight: 600; margin-bottom: 26px; backdrop-filter: blur(10px); }
.lhero h1 { font-size: clamp(34px, 7vw, 62px); max-width: 760px; margin: 0 auto; line-height: 1.1; color: #fff; text-shadow: 0 4px 40px rgba(0,0,0,0.5); }
.lhero p { margin-top: 18px; font-size: clamp(15px, 2.5vw, 19px); color: rgba(255,255,255,0.85); max-width: 560px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.lhero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.lstats { display: flex; justify-content: center; gap: 24px; margin-top: 42px; flex-wrap: wrap; }
.lstats .box { min-width: 150px; padding: 16px 22px; }
.lstats .n { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.lstats .l { font-size: 12px; color: rgba(255,255,255,0.75); margin-top: 4px; }
.lsection { max-width: 1100px; margin: 0 auto; padding: 56px 20px; }
.lsection-title { text-align: center; font-size: clamp(26px, 4.5vw, 38px); color: #fff; }
.lsection-sub { text-align: center; color: var(--text-muted); margin: 12px auto 30px; max-width: 520px; }
.lgrid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.lgrid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.lcard { border-radius: 24px; padding: 24px; transition: border-color 0.2s; }
.lcard:hover { border-color: rgba(157,65,54,0.3); }
.lcard .emoji { font-size: 28px; }
.lcard h3 { color: #fff; margin-top: 14px; font-size: 17px; }
.lcard p { color: var(--text-muted); font-size: 13px; margin-top: 6px; line-height: 1.6; }
.lband { background: rgba(50,32,63,0.4); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
.lfaq .q { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; color: #fff; font-size: 14px; }
.lfaq .a { display: none; padding-top: 10px; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.lfaq.open .a { display: block; }
.lfaq .chev { transition: transform 0.2s; color: var(--text-muted); }
.lfaq.open .chev { transform: rotate(180deg); color: var(--brand-soft); }
.lfooter { border-top: 1px solid rgba(255,255,255,0.08); background: #1F142A; }
.lfooter-inner { max-width: 1100px; margin: 0 auto; padding: 44px 20px 20px; }
.app-footer { padding-bottom: 76px; }
.app-footer .lfooter-inner { padding-top: 34px; }
.play-badge { display: inline-flex; margin-top: 16px; width: 152px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); transition: transform 0.2s; }
.play-badge:hover { transform: translateY(-2px) scale(1.03); }
.play-badge img { width: 100%; height: auto; border-radius: 8px; display: block; }
.lfooter-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; }
.lfooter-cols h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: #fff; margin-bottom: 12px; }
.lfooter-cols a { display: block; color: var(--text-muted); font-size: 13px; padding: 4px 0; }
.lfooter-cols a:hover { color: #fff; }
.lfooter-bottom { border-top: 1px solid rgba(255,255,255,0.05); margin-top: 36px; padding: 18px 0; text-align: center; font-size: 12px; color: rgba(196,180,194,0.7); }

/* ---------- Wish cards ---------- */
.wish-row { display: flex; gap: 12px; align-items: flex-start; }
.wish-row .txt { flex: 1; min-width: 0; }
.wish-row p.q { color: #fff; font-size: 14px; line-height: 1.5; }
.wish-row p.m { color: var(--text-muted); font-size: 11px; margin-top: 5px; }
.energy-pill { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-soft); font-size: 11px; font-weight: 600; }

/* ---------- Stat tiles ---------- */
.stat { text-align: center; padding: 12px 6px; }
.stat .n { font-size: 17px; font-weight: 800; color: #fff; line-height: 1.1; }
.stat .l { font-size: 9px; color: var(--text-muted); margin-top: 4px; line-height: 1.3; }

/* ---------- Positive energy chips ---------- */
.energy-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.chip {
  display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 4px;
  border-radius: 16px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted); font-size: 10px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.chip .e { font-size: 20px; }
.chip.selected, .chip:hover { border-color: rgba(157,65,54,0.6); background: rgba(157,65,54,0.12); color: var(--brand-soft); box-shadow: 0 0 14px rgba(157,65,54,0.25); }
.chip.sent { border-color: rgba(85,173,195,0.5); background: rgba(85,173,195,0.12); color: var(--success); }

/* ---------- Progress ---------- */
.progress { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.1); overflow: hidden; }
.progress .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #DC9760, #9D4136, #22668D); box-shadow: 0 0 12px rgba(157,65,54,0.6); transition: width 0.5s ease; }

/* ---------- Segments / tabs ---------- */
.seg { display: flex; background: rgba(255,255,255,0.06); border-radius: 14px; padding: 4px; }
.seg button { flex: 1; border: none; background: transparent; color: var(--text-muted); font-weight: 700; font-size: 12px; padding: 9px 4px; border-radius: 11px; }
.seg button.active { background: rgba(157,65,54,0.18); color: var(--brand-soft); box-shadow: 0 0 12px rgba(157,65,54,0.25); }

/* ---------- Countdown ---------- */
.countdown { display: flex; justify-content: center; gap: 10px; }
.cd-box { width: 64px; padding: 12px 4px; border-radius: 16px; text-align: center; }
.cd-box .v { font-family: var(--font-display); font-size: 26px; color: #fff; }
.cd-box .l { font-size: 9px; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 150; display: none; align-items: flex-end; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { width: 100%; max-width: 430px; border-radius: 28px 28px 0 0; padding: 24px 20px 30px; background: var(--ink-card); border: 1px solid rgba(255,255,255,0.1); animation: slideUp 0.35s ease-out both; }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Background presets ---------- */
.bg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bg-thumb { height: 72px; border-radius: 14px; cursor: pointer; border: 2px solid transparent; position: relative; overflow: hidden; }
.bg-thumb.selected { border-color: var(--brand-pink); box-shadow: 0 0 14px rgba(157,65,54,0.5); }
.bg-thumb.b1 { background: linear-gradient(160deg,#22668D,#DC9760); }
.bg-thumb.b2 { background: linear-gradient(160deg,#1F142A,#291A37); }
.bg-thumb.b3 { background: linear-gradient(160deg,#55ADC3,#A8D4DE); }
.bg-thumb.b4 { background: linear-gradient(160deg,#9D4136,#DC9760); }
.bg-thumb.b5 { background: linear-gradient(160deg,#1F3A41,#55ADC3); }
.bg-thumb.b6 { background: linear-gradient(160deg,#523051,#E8C5A0); }
.bg-thumb .check { position: absolute; top: 6px; right: 8px; font-size: 14px; opacity: 0; }
.bg-thumb.selected .check { opacity: 1; }

/* ---------- Lanterns (Wish Tree) ---------- */
.tree-scene { position: relative; height: 430px; overflow: hidden; border-radius: 24px; }
.tree-scene .sky-s { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, #32203F, #1F142A); }
.tree-scene .ground { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: linear-gradient(180deg, rgba(157,65,54,0.1), rgba(157,65,54,0.04)); }
.tree-trunk { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); width: 26px; height: 250px; border-radius: 999px; background: linear-gradient(180deg, #523051, #291A37); box-shadow: 0 0 20px rgba(82,48,81,0.4); }
.tree-branch { position: absolute; background: linear-gradient(180deg, #523051, #291A37); border-radius: 999px; transform-origin: bottom; box-shadow: 0 0 14px rgba(82,48,81,0.35); }
.lantern {
  position: absolute; width: 40px; height: 52px; cursor: pointer; transition: transform 0.25s;
  filter: drop-shadow(0 0 12px rgba(220,151,96,0.7));
}
.lantern:hover { transform: scale(1.12); }
.lantern .body { position: absolute; inset: 8px 2px 6px 2px; border-radius: 12px 12px 8px 8px; background: radial-gradient(circle at 50% 60%, rgba(255,245,230,0.95), #DC9760 55%, #9D4136); box-shadow: inset 0 -6px 12px rgba(157,65,54,0.5); animation: lanternPulse 2.4s ease-in-out infinite; }
.lantern .top, .lantern .bottom { position: absolute; left: 50%; transform: translateX(-50%); width: 24px; height: 7px; border-radius: 4px; background: linear-gradient(180deg,#DC9760,#7E4A2B); }
.lantern .top { top: 1px; } .lantern .bottom { bottom: 0; }
.lantern .string { position: absolute; top: -8px; left: 50%; width: 1px; height: 9px; background: rgba(255,255,255,0.4); }
@keyframes lanternPulse { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.3); } }
.lantern.opened { filter: drop-shadow(0 0 22px rgba(232,197,168,0.9)); transform: scale(1.05); }

/* ---------- Constellation ---------- */
.const-svg { width: 100%; height: auto; display: block; }
.sky-card { background: radial-gradient(80% 60% at 50% 40%, #291A37 0%, #1F142A 100%); }

/* ---------- Payment ---------- */
.pay-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); }
.pay-method { flex: 1; display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); color: #fff; font-size: 13px; font-weight: 600; }
.pay-method.selected { border-color: rgba(157,65,54,0.6); background: rgba(157,65,54,0.1); box-shadow: 0 0 14px rgba(157,65,54,0.25); }
.price-tag { font-family: var(--font-display); font-size: 40px; color: #fff; }
.price-tag small { font-size: 14px; color: var(--text-muted); }

/* ---------- Founder dashboard ---------- */
.dash-shell { max-width: 1150px; margin: 0 auto; padding: 24px 20px 60px; position: relative; z-index: 1; }
.dash-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi { padding: 18px; border-radius: 20px; }
.kpi .lbl { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.kpi .val { font-family: var(--font-display); font-size: 26px; color: #fff; margin-top: 6px; }
.kpi .delta { font-size: 11px; margin-top: 4px; font-weight: 700; }
.delta.up { color: var(--success); } .delta.down { color: var(--danger); }
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 10px; }
.chart-bars .bar { flex: 1; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg,#DC9760,#22668D); position: relative; min-height: 4px; transition: height 0.6s ease; }
.chart-bars .bar span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--text-muted); }
.dtable { width: 100%; border-collapse: collapse; font-size: 12px; }
.dtable th { text-align: left; padding: 10px 12px; color: var(--text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.dtable td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); color: #F3ECF2; }
.dtable td.num { text-align: right; font-weight: 700; }
.pipe-row { display: flex; align-items: center; gap: 10px; }
.pipe { flex: 1; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.pipe .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg,#DC9760,#22668D); }

/* ---------- Circle release ---------- */
.release-stage { position: relative; height: 300px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 24px; }
.release-core {
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff3, transparent 40%), radial-gradient(circle, #9D4136, #523051);
  box-shadow: 0 0 60px rgba(157,65,54,0.8), 0 0 120px rgba(34,102,141,0.5);
  animation: corePulse 3s ease-in-out infinite;
}
@keyframes corePulse { 0%,100% { transform: scale(1); box-shadow: 0 0 60px rgba(157,65,54,0.8); } 50% { transform: scale(1.08); box-shadow: 0 0 90px rgba(157,65,54,1); } }
.release-ring { position: absolute; width: 120px; height: 120px; border-radius: 50%; border: 2px solid rgba(220,151,96,0.5); animation: ringExpand 3.4s ease-out infinite; }
@keyframes ringExpand { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(5); opacity: 0; } }
.release-ring.r2 { animation-delay: 1.1s; } .release-ring.r3 { animation-delay: 2.2s; }

/* ---------- Misc ---------- */
.pill-tag { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); font-size: 13px; font-weight: 700; color: var(--success); }
.divider { height: 1px; background: rgba(255,255,255,0.08); margin: 18px 0; }
.lang-switch { display: inline-flex; border: 1px solid rgba(255,255,255,0.15); border-radius: 999px; overflow: hidden; }
.lang-switch button { border: none; background: transparent; color: var(--text-muted); font-weight: 700; font-size: 11px; padding: 7px 14px; }
.lang-switch button.active { background: rgba(157,65,54,0.2); color: var(--brand-soft); }

@media (max-width: 640px) {
  .lnav-links a:not(:last-child) { display: none; }
}
