/* ═══════════════════════════════════════════════
   SINDHUUU — COSMIC THEME
   ═══════════════════════════════════════════════ */

:root {
  --void:       #04060f;
  --deep:       #080d1a;
  --nebula:     #0d1535;
  --gold:       #c9a96e;
  --gold-dim:   #8a6d3f;
  --gold-glow:  rgba(201,169,110,0.15);
  --star-white: #e8eaf6;
  --rose-star:  #c27fa0;
  --blue-star:  #7eb8d4;
  --muted:      rgba(232,234,246,0.45);
  --glass-bg:   rgba(13,21,53,0.55);
  --glass-b:    rgba(201,169,110,0.18);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', sans-serif;
  --font-mono:  'Space Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--void);
  color: var(--star-white);
  overflow-x: hidden;
  cursor: none;
}

/* ── CANVAS ── */
#cosmos-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── CUSTOM CURSOR ── */
#cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: transform 0.05s linear;
}

/* ── NAV DOTS ── */
.nav-dots {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}
.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(201,169,110,0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.nav-dot.active {
  background: var(--gold);
  transform: scale(1.6);
  box-shadow: 0 0 8px rgba(201,169,110,0.6);
}

/* ── SECTIONS ── */
.section {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
}

.section-inner {
  max-width: 720px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 300;
  color: var(--star-white);
  line-height: 1.1;
}
.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-body {
  font-size: 1rem;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.85;
  font-weight: 300;
}

/* ── GLASS CARD ── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-b);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2rem;
  width: 100%;
}

/* ── COSMIC BUTTON ── */
.cosmic-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.cosmic-btn:hover {
  background: var(--gold-glow);
  box-shadow: 0 0 20px rgba(201,169,110,0.3);
  transform: translateY(-1px);
}
.cosmic-btn.big-btn {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  margin-top: 2rem;
}
.btn-star { font-size: 0.75rem; }

/* ── COSMIC INPUT ── */
.cosmic-input {
  background: rgba(13,21,53,0.7);
  border: 1px solid rgba(201,169,110,0.25);
  border-radius: 10px;
  color: var(--star-white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}
.cosmic-input::placeholder { color: rgba(232,234,246,0.3); }
.cosmic-input:focus { border-color: var(--gold); }
input[type="date"].cosmic-input { color-scheme: dark; }
input[type="number"].cosmic-input::-webkit-inner-spin-button { opacity: 0.3; }

/* ═══════════════════════ HERO ══════════════════ */
#hero { gap: 1rem; }

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(4.5rem, 14vw, 10rem);
  font-weight: 300;
  color: var(--star-white);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 60px rgba(201,169,110,0.2);
}
.hero-name em {
  font-style: italic;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(201,169,110,0.4);
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-style: italic;
  color: var(--muted);
  font-weight: 300;
}

.scroll-hint {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s 2s forwards;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: pulse-line 2s infinite;
}
@keyframes pulse-line {
  0%,100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.scroll-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

@keyframes fadeIn { to { opacity: 1; } }

/* ═══════════════════════ QUOTE ══════════════════ */
#quote-section {
  background: linear-gradient(180deg, transparent 0%, rgba(13,21,53,0.3) 50%, transparent 100%);
}
.quote-container {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}
.quote-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}
.cosmic-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.85;
  color: var(--star-white);
  text-align: center;
}
.cosmic-quote .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s, transform 0.5s;
  margin-right: 0.28em;
}
.cosmic-quote .word.lit {
  opacity: 1;
  transform: translateY(0);
}
.cosmic-quote .word.highlight {
  color: var(--gold);
  font-weight: 400;
}
.quote-signature {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gold-dim);
}

/* ═══════════════════════ BIRTHDAY ════════════════ */
.countdown-wrap {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0.5rem 0;
}
.count-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-b);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  min-width: 88px;
  backdrop-filter: blur(8px);
}
.count-num {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.count-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.count-note {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--gold-dim);
  letter-spacing: 0.08em;
  opacity: 0.7;
}

/* ═══════════════════════ REMINDERS ════════════════ */
.reminder-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.form-row .cosmic-input { flex: 1; min-width: 160px; }

.reminder-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.reminder-item {
  background: var(--glass-bg);
  border: 1px solid rgba(201,169,110,0.12);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  backdrop-filter: blur(6px);
  animation: slideIn 0.4s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.r-info { text-align: left; flex: 1; }
.r-name-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--star-white);
}
.r-date-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
  margin-top: 3px;
}
.r-countdown {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold);
  white-space: nowrap;
}
.r-delete {
  background: none;
  border: none;
  color: rgba(232,234,246,0.25);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  transition: color 0.2s;
  line-height: 1;
}
.r-delete:hover { color: var(--rose-star); }
.r-empty {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1rem 0;
}

/* ═══════════════════════ JOURNEY ══════════════════ */
.journey-inner { gap: 2rem; }
.km-input-wrap { display: flex; flex-direction: column; gap: 1rem; }
.km-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-align: left;
}
.km-row { display: flex; gap: 0.75rem; }
.km-num { max-width: 220px; }
.journey-display {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
#journey-canvas {
  width: 100%;
  max-width: 680px;
  height: 200px;
  border-radius: 12px;
}
.journey-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}
.journey-info.hidden { display: none; }
.journey-stat {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
  color: var(--gold);
}
.journey-milestone {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-star);
}
.journey-remaining {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ═══════════════════════ CONSTELLATION ════════════ */
.constellation-wrap {
  width: 100%;
  max-width: 680px;
  position: relative;
}
#constellation-canvas {
  width: 100%;
  height: 420px;
  cursor: pointer;
}

/* ═══════════════════════ HER WORLD ════════════════ */
.two-worlds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  width: 100%;
  text-align: left;
}
.world-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.world-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(201,169,110,0.1);
}
.world-icon { display: flex; justify-content: center; }
.world-icon svg { width: 120px; height: 80px; }
.world-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
}
.world-text { font-size: 0.9rem; color: var(--muted); line-height: 1.75; }
.world-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--gold-dim);
  border-top: 1px solid var(--glass-b);
  padding-top: 0.75rem;
  margin-top: auto;
}

.saree-icon { padding: 1rem 0; }
.saree-swirl {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.swatch {
  width: 32px;
  height: 64px;
  border-radius: 40px 40px 8px 8px;
  border: 2px solid rgba(201,169,110,0.4);
}
.s1 { background: linear-gradient(180deg, #c2185b, #880e4f); transform: rotate(-8deg); }
.s2 { background: linear-gradient(180deg, #1a237e, #7b1fa2); height: 76px; }
.s3 { background: linear-gradient(180deg, #f57c00, #e91e63); transform: rotate(8deg); }

/* ═══════════════════════ LETTER ════════════════════ */
.letter-card {
  text-align: left;
  position: relative;
  cursor: pointer;
  transition: box-shadow 0.3s;
}
.letter-card:hover { box-shadow: 0 0 40px rgba(201,169,110,0.1); }
.letter-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.9;
  color: var(--star-white);
}
.l-line { transition: opacity 0.7s, transform 0.7s; }
.hidden-line { opacity: 0; transform: translateY(8px); }
.hidden-line.lit { opacity: 1; transform: translateY(0); }
.letter-sign {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.letter-tap-hint {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--gold-dim);
  opacity: 0.7;
  transition: opacity 0.3s;
}
.letter-card.done .letter-tap-hint { opacity: 0; }

/* ═══════════════════════ PROMISES ══════════════════ */
.promise-list { list-style: none; max-width: 540px; width: 100%; text-align: left; }
.promise-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(201,169,110,0.08);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(232,234,246,0.8);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s, transform 0.6s;
}
.promise-item.lit { opacity: 1; transform: translateX(0); }
.promise-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-style: normal;
  color: var(--gold);
  letter-spacing: 0.1em;
  min-width: 24px;
  padding-top: 6px;
}

/* ═══════════════════════ FINAL ══════════════════ */
#final {
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 60%, rgba(13,21,53,0.6) 0%, transparent 70%);
}
.final-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.final-star-name {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  min-height: 1em;
}
.final-line {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--star-white);
}
.final-line em { font-style: italic; color: var(--gold); }
.final-sub {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--muted);
}

/* ═══════════════════════ SPARKS ══════════════════ */
.spark {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  animation: sparkFly 1.2s forwards;
}
@keyframes sparkFly {
  0%   { transform: translate(0,0) scale(1.2); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* ═══════════════════════ ANIMATIONS ═════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s, transform 0.8s;
}
.fade-up.lit { opacity: 1; transform: translateY(0); }

/* ═══════════════════════ SCROLLBAR ══════════════ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

/* ═══════════════════════ RESPONSIVE ═════════════ */
@media (max-width: 600px) {
  .section { padding: 4rem 1.25rem; }
  .glass-card { padding: 1.5rem; }
  .form-row { flex-direction: column; }
  .km-row { flex-direction: column; }
  .km-num { max-width: 100%; }
  .two-worlds { grid-template-columns: 1fr; }
  .count-box { padding: 1.2rem 1.25rem; min-width: 72px; }
  .count-num { font-size: 2.5rem; }
}

/* ════════════════════════════════════════════════
   AURORA
   ════════════════════════════════════════════════ */
#aurora {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.aurora-band {
  position: absolute;
  left: -20%;
  width: 140%;
  height: 38vh;
  border-radius: 50%;
  filter: blur(72px);
  animation: aurora-wave 14s ease-in-out infinite alternate;
}
.a1 {
  top: -14vh;
  background: linear-gradient(100deg, #00e5cc55, #0066ff44, transparent);
  opacity: 0.55;
  animation-duration: 15s;
}
.a2 {
  top: 2vh;
  background: linear-gradient(110deg, transparent, #7700ff33, #cc00aa33, transparent);
  opacity: 0.45;
  animation-duration: 20s;
  animation-delay: -7s;
}
.a3 {
  top: -6vh;
  background: linear-gradient(90deg, transparent, #00ccff22, transparent);
  opacity: 0.35;
  animation-duration: 25s;
  animation-delay: -12s;
}
@keyframes aurora-wave {
  0%   { transform: scaleX(1)    translateY(0)     rotate(-1deg); }
  40%  { transform: scaleX(1.08) translateY(-10px) rotate(0.4deg); }
  100% { transform: scaleX(0.93) translateY(7px)   rotate(1deg); }
}

/* ════════════════════════════════════════════════
   FLOATING PETALS
   ════════════════════════════════════════════════ */
#petals-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.petal {
  position: absolute;
  top: -20px;
  border-radius: 50% 0 50% 0;
  animation: petal-fall linear forwards;
}
@keyframes petal-fall {
  0%   { transform: translate(0, 0) rotate(0deg);                     opacity: 0.9; }
  15%  { opacity: 1; }
  85%  { opacity: 0.6; }
  100% { transform: translate(var(--drift), 110vh) rotate(var(--spin)); opacity: 0; }
}

/* ════════════════════════════════════════════════
   ANIMATED SAREE
   ════════════════════════════════════════════════ */
.swatch {
  animation: saree-sway 3.8s ease-in-out infinite;
  position: relative;
}
.swatch::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0) 70%);
  background-size: 200% 200%;
  animation: saree-shimmer 3s ease-in-out infinite;
  border-radius: inherit;
  pointer-events: none;
}
@keyframes saree-sway {
  0%, 100% { transform: rotate(-8deg) translateY(0px);  }
  50%       { transform: rotate(-8deg) translateY(-6px); }
}
@keyframes saree-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.s2 { animation-name: saree-sway-mid; animation-delay: 0.5s; }
@keyframes saree-sway-mid {
  0%, 100% { transform: translateY(0px);  }
  50%       { transform: translateY(-8px); }
}
.s3 { animation-name: saree-sway-right; animation-delay: 1s; }
@keyframes saree-sway-right {
  0%, 100% { transform: rotate(8deg) translateY(0px);  }
  50%       { transform: rotate(8deg) translateY(-6px); }
}

/* ════════════════════════════════════════════════
   SINDHU'S GALAXY
   ════════════════════════════════════════════════ */
.galaxy-inner { max-width: 820px !important; }
.galaxy-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(201,169,110,0.1);
  background: rgba(4,6,15,0.65);
}
#galaxy-canvas {
  width: 100%;
  height: 480px;
  display: block;
  cursor: default;
}
.galaxy-add-cat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}
.galaxy-form-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-align: left;
}
.galaxy-form-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.emoji-picker {
  max-width: 62px;
  text-align: center;
  font-size: 1.25rem;
  padding: 0.6rem;
}
.galaxy-selected-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.galaxy-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.galaxy-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: rgba(13,21,53,0.55);
  border: 1px solid rgba(201,169,110,0.12);
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.galaxy-tab:hover {
  border-color: var(--tab-color, var(--gold));
  color: var(--tab-color, var(--gold));
}
.galaxy-tab.active {
  border-color: var(--tab-color, var(--gold));
  color: var(--tab-color, var(--gold));
  background: rgba(13,21,53,0.85);
  box-shadow: 0 0 12px rgba(201,169,110,0.12);
}
.tab-count {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  opacity: 0.6;
}
.galaxy-add-star {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
}
@media (max-width: 600px) {
  #galaxy-canvas { height: 360px; }
  .galaxy-form-row { flex-direction: column; }
  .emoji-picker { max-width: 100%; }
}

/* update constellation canvas height */
#constellation-canvas { height: 480px; }

/* ════════════════════════════════════════════════
   MEMORIES SECTION
   ════════════════════════════════════════════════ */
.memories-inner { max-width: 900px !important; }
.memories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
}
.memory-frame {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  cursor: pointer;
  transition: transform 0.3s;
}
.memory-frame:hover { transform: translateY(-5px); }
.memory-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--glass-bg);
  border: 1px dashed rgba(201,169,110,0.28);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}
.memory-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(201,169,110,0.04), transparent 68%);
}
.memory-frame:hover .memory-placeholder {
  border-color: rgba(201,169,110,0.52);
  background: rgba(13,21,53,0.72);
}
.mem-icon {
  font-size: 1.3rem;
  color: var(--gold);
  opacity: 0.45;
  transition: opacity 0.3s, transform 0.3s;
}
.memory-frame:hover .mem-icon { opacity: 1; transform: scale(1.15); }
.memory-placeholder p {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.45;
}
.memory-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .memories-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════════
   SIGNAL COMPOSE AREA
   ════════════════════════════════════════════════ */
.signal-compose {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.signal-compose.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.compose-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.compose-emoji {
  font-size: 1.6rem;
  line-height: 1;
  transition: transform 0.3s;
}
.compose-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
}
.note-textarea {
  resize: none;
  line-height: 1.6;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
}
.send-signal-btn { align-self: flex-start; }
.status-note {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.3rem;
  line-height: 1.5;
}

/* ════════════════════════════════════════════════
   BETWEEN US — SIGNAL SYSTEM
   ════════════════════════════════════════════════ */
#between-us {
  background: radial-gradient(ellipse at 50% 40%, rgba(194,127,160,0.05) 0%, transparent 70%);
}
#signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  width: 100%;
  max-width: 520px;
  margin: 0.5rem 0;
}
.signal-orb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 0.6rem;
  background: var(--glass-bg);
  border: 1px solid rgba(201,169,110,0.1);
  border-radius: 18px;
  cursor: pointer;
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.signal-orb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 38%, var(--sig-glow, rgba(201,169,110,0.2)), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s;
}
.signal-orb:hover {
  border-color: var(--sig-color);
  transform: translateY(-3px);
}
.signal-orb:hover::before { opacity: 1; }
.signal-orb.selected {
  border-color: var(--sig-color);
  box-shadow: 0 0 28px var(--sig-glow, rgba(201,169,110,0.4)), 0 0 8px var(--sig-glow);
  transform: translateY(-4px) scale(1.04);
  animation: orb-pulse-select 1.3s ease-in-out infinite;
}
.signal-orb.selected::before { opacity: 1; }
@keyframes orb-pulse-select {
  0%, 100% { box-shadow: 0 0 28px var(--sig-glow, rgba(201,169,110,0.4)); }
  50%       { box-shadow: 0 0 48px var(--sig-glow, rgba(201,169,110,0.6)); }
}
.signal-orb.active {
  border-color: var(--sig-color);
  box-shadow: 0 0 22px var(--sig-glow, rgba(201,169,110,0.3));
}
.signal-orb.active::before { opacity: 1; }
.orb-emoji { font-size: 1.7rem; line-height: 1; }
.orb-label {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
  transition: color 0.3s;
}
.signal-orb:hover .orb-label,
.signal-orb.active .orb-label { color: var(--sig-color); }
.orb-ring {
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  border: 2px solid var(--ring-color, rgba(201,169,110,0.5));
  animation: orb-pulse 0.9s ease-out forwards;
  pointer-events: none;
}
@keyframes orb-pulse {
  0%   { transform: scale(1);    opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}
.signal-status-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 520px;
}
.signal-status-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-b);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  text-align: left;
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.status-panel-label {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.signal-status-val {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--star-white);
  line-height: 1.5;
}
.status-empty {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.status-label { color: var(--star-white); }
.status-time  { color: var(--gold-dim); font-size: 0.8rem; }
.firebase-note {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--gold-dim);
  opacity: 0.55;
}
@media (max-width: 600px) {
  #signal-grid { grid-template-columns: repeat(2, 1fr); }
  .signal-status-row { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════
   SECRET SECTION
   ════════════════════════════════════════════════ */
.secret-trigger {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 0.5rem;
}
.secret-trigger-btn {
  background: none;
  border: none;
  color: rgba(201,169,110,0.18);
  font-size: 1rem;
  cursor: pointer;
  letter-spacing: 0.5em;
  font-family: var(--font-mono);
  transition: color 0.4s, letter-spacing 0.4s;
  padding: 0.5rem 1rem;
}
.secret-trigger-btn:hover {
  color: rgba(201,169,110,0.55);
  letter-spacing: 0.8em;
}
#secret {
  display: none;
  min-height: auto;
  padding: 3rem 2rem 5rem;
}
#secret.revealed { display: flex; animation: fadeIn 0.8s ease; }
.secret-card {
  max-width: 560px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  align-items: center;
}
.secret-lock {
  font-size: 1.8rem;
  color: var(--gold);
  animation: spin-slow 10s linear infinite;
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.secret-input-wrap {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.secret-message {
  display: none;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.95;
  color: var(--star-white);
  text-align: center;
}
.secret-message.shown { display: block; animation: fadeIn 1.4s ease; }
.secret-message em { color: var(--gold); }
.secret-wrong {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #ff7070;
  letter-spacing: 0.1em;
  display: none;
}
.secret-wrong.shown { display: block; }
.secret-write {
  display: none;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  width: 100%;
}
.secret-write.shown { display: flex; animation: fadeIn 0.8s ease; }
.secret-saved {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.4s;
}

/* ═══════════════════════════════════════════════
   WEEKND THEME (XO / After Hours)
   ═══════════════════════════════════════════════ */

:root {
  --crimson:      #0d9488;
  --crimson-glow: rgba(13,148,136,0.45);
  --crimson-dim:  rgba(13,148,136,0.18);
  --xo-red:       #14b8a6;
  --teal:         #2dd4bf;
  --teal-glow:    rgba(45,212,191,0.4);
}

/* ── SPLASH SCREEN ── */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  transition: opacity 0.9s ease;
}
#splash.dismissed {
  opacity: 0;
  pointer-events: none;
}

.splash-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(100,0,0,0.55) 0%, rgba(0,0,0,0) 68%);
}

.splash-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  animation: splashIn 1.2s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes splashIn {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.splash-xo {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 12vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--xo-red);
  text-shadow: 0 0 40px rgba(192,57,43,0.7), 0 0 80px rgba(192,57,43,0.35);
  line-height: 1;
}

.splash-for {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(232,234,246,0.4);
}

.splash-name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 300;
  color: var(--star-white);
  line-height: 1.1;
}
.splash-name em { color: var(--gold); font-style: italic; }

.splash-enter {
  margin-top: 0.8rem;
  background: transparent;
  border: 1px solid var(--xo-red);
  color: var(--xo-red);
  padding: 0.75rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: all 0.35s;
}
.splash-enter:hover {
  background: rgba(192,57,43,0.12);
  box-shadow: 0 0 22px rgba(192,57,43,0.4);
}

.splash-music-hint {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: rgba(232,234,246,0.25);
}

/* ── BLOOD MOON ── */
/*
  She is the fortress on the moon — guarded, beautiful, unreachable to the world.
  He is the knight at its edge — watching, waiting, keeping her safe.
*/
.blood-moon {
  position: fixed;
  top: -55px;
  right: -55px;
  width: clamp(260px, 34vw, 460px);
  height: clamp(260px, 34vw, 460px);
  border-radius: 50%;
  /* Moon disk — teal, lit from upper-left */
  background:
    radial-gradient(circle at 32% 30%, rgba(167,255,240,0.22) 0%, transparent 32%),
    radial-gradient(circle at 50% 50%,
      rgba(20,184,166,0.95) 0%,
      rgba(13,148,136,0.90) 25%,
      rgba(8,110,100,0.82)  46%,
      rgba(4,72,64,0.62)    64%,
      rgba(0,38,34,0.28)    78%,
      transparent           90%);
  box-shadow:
    inset 18px 18px 55px rgba(0,0,0,0.55),
    inset -5px -5px 20px rgba(45,212,191,0.12),
    0 0 55px rgba(13,148,136,0.4),
    0 0 110px rgba(8,110,100,0.22),
    0 0 200px rgba(4,72,64,0.12);
  pointer-events: none;
  z-index: 1;
  overflow: visible;
  animation: moonPulse 12s ease-in-out infinite;
}

/* crater-like surface texture — subtle dark patches */
.blood-moon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 58% 28%, rgba(0,0,0,0.12) 0%, transparent 12%),
    radial-gradient(circle at 38% 60%, rgba(0,0,0,0.09) 0%, transparent 9%),
    radial-gradient(circle at 70% 65%, rgba(0,0,0,0.07) 0%, transparent 7%),
    radial-gradient(circle at 22% 38%, rgba(0,0,0,0.06) 0%, transparent 6%);
}

@keyframes moonPulse {
  0%, 100% { opacity: 0.88; transform: scale(1);    }
  45%       { opacity: 1;    transform: scale(1.025); }
  75%       { opacity: 0.92; transform: scale(0.99); }
}

/* ── MOON KNIGHT ── */
/* ── MOONLIT SCENE (knight + princess + fortress) ── */

/* ── XO BADGE (hero) ── */
.xo-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--xo-red);
  opacity: 0.75;
  margin-top: -0.4rem;
}

/* ── SOS LOCATION ROW ── */
.sos-location-row {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.sos-location-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(232,234,246,0.6);
  cursor: pointer;
}
.sos-location-label input[type="checkbox"] {
  accent-color: #ff7070;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* ── STATUS LOCATION LINK ── */
.status-location {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: #ff7070;
  text-decoration: none;
  border: 1px solid rgba(255,112,112,0.3);
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
  margin-top: 0.35rem;
  transition: background 0.25s;
}
.status-location:hover { background: rgba(255,112,112,0.1); }
.secret-saved.shown { opacity: 1; }

.uns-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  line-height: 1.4;
}
.uns-word {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--star-white);
}
.uns-word[lang="ur"] { direction: rtl; }
.uns-en {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--teal);
}
.uns-sep {
  font-size: 0.6em;
  color: var(--teal);
  opacity: 0.55;
  font-style: normal;
}

.uns-meaning {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--teal);
  opacity: 0.7;
  margin-top: -0.4rem;
  margin-bottom: 0.5rem;
}

/* ════════════════════════════════════════════════
   AUTH GATE
   ════════════════════════════════════════════════ */
#auth-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--void);
  transition: opacity 0.9s ease;
}
#auth-gate.dismissed { opacity: 0; pointer-events: none; }

.auth-cosmos {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(13,148,136,0.08) 0%, transparent 65%),
    radial-gradient(ellipse at 80% 80%, rgba(167,139,250,0.06) 0%, transparent 55%);
  pointer-events: none;
}

.auth-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.8rem 2.4rem 2.4rem;
  max-width: 360px;
  width: 90%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-b);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  text-align: center;
}

.auth-star {
  font-size: 1.6rem;
  color: var(--teal);
  opacity: 0.8;
  animation: starPulse 3s ease-in-out infinite;
}
@keyframes starPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.15); }
}

.auth-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--star-white);
  letter-spacing: 0.02em;
}

.auth-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: rgba(232,234,246,0.4);
  line-height: 1.6;
}

.auth-input-wrap {
  display: flex;
  gap: 0.6rem;
  width: 100%;
  margin-top: 0.5rem;
}

.auth-input {
  flex: 1;
  text-align: center;
  letter-spacing: 0.25em;
  font-size: 1rem;
}

.auth-btn {
  white-space: nowrap;
  padding: 0.55rem 1.1rem;
  font-size: 0.72rem;
}

.auth-error {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: #f87171;
  opacity: 0;
  transition: opacity 0.3s;
  min-height: 1em;
}
.auth-error.shown { opacity: 1; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-5px); }
  80%       { transform: translateX(5px); }
}
.auth-input.shake { animation: shake 0.45s ease; }

/* ════════════════════════════════════════════════
   BIRTHDAY OVERLAY
   ════════════════════════════════════════════════ */
.birthday-overlay {
  position: fixed;
  inset: 0;
  z-index: 9800;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s;
}
.birthday-overlay.active {
  opacity: 1;
  pointer-events: all;
}

#bd-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bd-message {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.4rem 2.8rem;
  background: rgba(4,6,15,0.75);
  border: 1px solid rgba(45,212,191,0.3);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  max-width: 480px;
  width: 90%;
  animation: bdFloat 3s ease-in-out infinite;
}
@keyframes bdFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.bd-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--teal);
  text-transform: uppercase;
}

.bd-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 300;
  color: var(--star-white);
  line-height: 1.2;
}
.bd-title em {
  color: var(--teal);
  font-style: italic;
}

.bd-sub {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: rgba(232,234,246,0.65);
  font-style: italic;
  line-height: 1.6;
}

/* ════════════════════════════════════════════════
   MEMORIES — polaroid gallery
   ════════════════════════════════════════════════ */

.mem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem 1.6rem;
  padding: 1.5rem 0.5rem 2rem;
  width: 100%;
}

/* ── POLAROID CARD ── */
.mem-card {
  position: relative;
  background: #f5f0e8;
  border-radius: 3px;
  padding: 10px 10px 52px;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.55),
    0 1px 3px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.08);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.35s cubic-bezier(.22,.68,0,1.2), box-shadow 0.35s;
  cursor: pointer;
  will-change: transform;
}
.mem-card:hover {
  transform: rotate(0deg) scale(1.04) translateY(-4px);
  box-shadow:
    0 18px 48px rgba(0,0,0,0.7),
    0 4px 12px rgba(201,169,110,0.25);
  z-index: 10;
}

.mem-img-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #1a1a2e;
}
.mem-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s;
}
.mem-img-wrap img[src=""] { opacity: 0; }

/* landscape photos — adjust ratio */
.mem-card:nth-child(4n+3) .mem-img-wrap,
.mem-card:nth-child(7n+1) .mem-img-wrap { aspect-ratio: 4/3; }

.mem-caption-wrap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 8px;
}
.mem-label {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  color: rgba(10,10,30,0.45);
  text-transform: uppercase;
}
.mem-caption {
  font-family: 'Caveat', 'Dancing Script', cursive, var(--font-serif);
  font-size: 0.8rem;
  color: #1a1220;
  text-align: center;
  line-height: 1.2;
  font-style: italic;
}

/* delete button (user-added photos) */
.mem-delete-btn {
  position: absolute;
  top: -8px; right: -8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #c95050;
  border: none;
  color: #fff;
  font-size: 0.6rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}
.mem-card:hover .mem-delete-btn { opacity: 1; }

/* ── ADD TILE ── */
.mem-add-tile {
  background: rgba(13,21,53,0.5);
  border: 2px dashed rgba(201,169,110,0.35);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 240px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.mem-add-tile:hover {
  border-color: rgba(201,169,110,0.7);
  background: rgba(201,169,110,0.06);
}
.mem-add-icon {
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.7;
  line-height: 1;
  transition: transform 0.25s;
}
.mem-add-tile:hover .mem-add-icon { transform: scale(1.15) rotate(90deg); }
.mem-add-text {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  opacity: 0.6;
}

/* ── LIGHTBOX ── */
.mem-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(2,4,14,0.96);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.mem-lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lb-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(90vw, 680px);
  width: 100%;
}
.lb-content img {
  max-height: 75vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.7);
  transition: opacity 0.18s;
}
.lb-meta {
  margin-top: 1.2rem;
  text-align: center;
}
.lb-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  opacity: 0.6;
  text-transform: uppercase;
}
.lb-caption {
  font-family: 'Caveat', cursive, var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--star-white);
  margin-top: 0.3rem;
}
.lb-counter {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: rgba(232,234,246,0.35);
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}
.lb-close {
  position: fixed;
  top: 1.2rem; right: 1.4rem;
  background: none;
  border: 1px solid rgba(232,234,246,0.25);
  color: var(--star-white);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 1;
}
.lb-close:hover { background: rgba(255,255,255,0.1); }
.lb-nav {
  background: none;
  border: 1px solid rgba(201,169,110,0.3);
  color: var(--gold);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.lb-nav:hover { background: rgba(201,169,110,0.12); border-color: var(--gold); }
@media (max-width: 600px) {
  .lb-nav { display: none; }
}

/* ── ADD PHOTO MODAL ── */
.mem-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(2,4,14,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mem-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.mem-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 2rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.mem-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: 1px solid rgba(232,234,246,0.2);
  color: var(--star-white);
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mem-modal-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.mem-modal-pick {
  width: 100%;
  min-height: 140px;
  border: 2px dashed rgba(201,169,110,0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
  position: relative;
}
.mem-modal-pick:hover { border-color: var(--gold); }
.mem-modal-pick img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 4px;
}
#mem-pick-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(232,234,246,0.4);
  letter-spacing: 0.1em;
  position: absolute;
}
.mem-modal-pick img[style*="display:block"] + #mem-pick-hint { display: none; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .mem-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; }
  .mem-card { padding: 8px 8px 46px; }
  .mem-caption { font-size: 0.72rem; }
}
@media (max-width: 380px) {
  .mem-grid { grid-template-columns: 1fr 1fr; gap: 1rem 0.8rem; }
}

/* ═══════════════════════════════════════════
   MUSIC PLAYER
   ═══════════════════════════════════════════ */

.music-player {
  position: fixed;
  bottom: 1.6rem;
  left: 1.4rem;
  z-index: 200;
  width: 270px;
  background: rgba(8, 13, 26, 0.82);
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 16px;
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(45,212,191,0.06);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  overflow: hidden;
}
.music-player.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── main row ── */
.mp-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.8rem 0.6rem;
}

/* ── vinyl disc ── */
.mp-vinyl {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #0d9488, #2dd4bf 40%, #c9a96e 70%, #0d9488);
  position: relative;
  flex-shrink: 0;
  transition: box-shadow 0.3s;
}
.mp-vinyl::after {
  content: '';
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: #080d1a;
}
.mp-vinyl-note {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  z-index: 1;
  color: var(--gold);
  pointer-events: none;
}
.mp-vinyl.playing {
  animation: mp-spin 4s linear infinite;
  box-shadow: 0 0 14px rgba(45,212,191,0.4);
}
@keyframes mp-spin {
  to { transform: rotate(360deg); }
}

/* ── info ── */
.mp-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mp-title {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  color: var(--star-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
}
.mp-artist {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: rgba(45,212,191,0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.05em;
}

/* ── controls ── */
.mp-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.mp-btn {
  background: none;
  border: none;
  color: rgba(232,234,246,0.6);
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}
.mp-btn:hover {
  color: var(--star-white);
  background: rgba(45,212,191,0.1);
}
.mp-play-btn {
  width: 34px;
  height: 34px;
  background: rgba(45,212,191,0.15);
  color: #2dd4bf;
  border: 1px solid rgba(45,212,191,0.3);
}
.mp-play-btn:hover {
  background: rgba(45,212,191,0.28);
  color: #5eead4;
}
.mp-list-btn.active {
  color: #2dd4bf;
  background: rgba(45,212,191,0.12);
}

/* ── progress bar ── */
.mp-progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  position: relative;
}
.mp-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #0d9488, #2dd4bf);
  transition: width 0.4s linear;
  border-radius: 0 2px 2px 0;
}

/* ── track list ── */
.mp-tracklist {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), padding 0.3s ease;
  border-bottom: 0px solid rgba(45,212,191,0.1);
}
.mp-tracklist.open {
  max-height: 280px;
  padding: 0.4rem 0;
  border-bottom-width: 1px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(45,212,191,0.3) transparent;
}

.mp-track {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.8rem;
  background: none;
  border: none;
  color: rgba(232,234,246,0.65);
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}
.mp-track:hover {
  background: rgba(45,212,191,0.08);
  color: var(--star-white);
}
.mp-track.active {
  color: #2dd4bf;
}
.mp-track-emoji {
  font-size: 1rem;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}
.mp-track-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mp-track-title {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-track-artist {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  opacity: 0.6;
  letter-spacing: 0.04em;
}
.mp-track-check {
  font-size: 0.6rem;
  color: #2dd4bf;
  opacity: 0;
  transition: opacity 0.2s;
}
.mp-track.active .mp-track-check { opacity: 1; }

/* ── mobile ── */
@media (max-width: 480px) {
  .music-player {
    width: calc(100vw - 2rem);
    left: 1rem;
    bottom: 1rem;
  }
}
