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

:root {
  --bg: #0f0720;
  --bg2: #1a0a2e;
  --bg3: #241040;
  --gold: #c9a84c;
  --gold2: #e8c97a;
  --purple: #9b4dca;
  --purple2: #b56de0;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(201, 168, 76, 0.2);
  --text: #f0e6ff;
  --text-muted: rgba(240, 230, 255, 0.55);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(155, 77, 202, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.08) 0%, transparent 50%);
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 7, 32, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-motto {
  font-size: 0.75rem;
  color: var(--purple2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.header-nav a:hover { color: var(--gold); }

.header-title-btn {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.05em;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}
.header-title-btn:hover { opacity: 0.75; }

.modal-greeting {
  max-width: 520px;
  display: flex;
  flex-direction: column;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.modal-close-btn:hover { color: var(--gold); }

.modal { position: relative; }

.greeting-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 20px;
}

.greeting-how {
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 16px 0;
}

.greeting-how-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.greeting-how-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.greeting-how-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
}

.greeting-how-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.greeting-disclaimer {
  font-size: 0.7rem;
  color: rgba(240, 230, 255, 0.45);
  font-style: italic;
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

.greeting-btn-footer {
  position: sticky;
  bottom: 0;
  margin-top: 16px;
  padding-top: 12px;
  background: var(--bg2);
}

/* ── FOOTER ── */
.site-footer {
  text-align: center;
  padding: 16px 16px 24px;
  font-size: 0.7rem;
  color: rgba(240, 230, 255, 0.25);
  letter-spacing: 0.1em;
}

.footer-author-link {
  display: block;
  margin-bottom: 10px;
  font-size: 0.72rem;
  color: rgba(201, 168, 76, 0.45);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.footer-author-link:hover { color: var(--gold); }

.footer-teaser {
  font-size: 0.68rem;
  color: rgba(240, 230, 255, 0.35);
  font-style: italic;
  max-width: 560px;
  margin: 0 auto 14px;
  line-height: 1.6;
}

/* ── AUTHOR SECTION ── */
.author-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 72px 24px 64px;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.author-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.author-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 300;
  color: var(--text);
  text-align: center;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.author-subheading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.85rem, 3.5vw, 1.2rem);
  font-style: italic;
  color: var(--gold);
  text-align: center;
  margin-bottom: 48px;
  font-weight: 300;
  white-space: nowrap;
}

.author-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 600px) {
  .author-grid { grid-template-columns: 1fr; }
}

.author-photo {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  filter: contrast(1.15) brightness(0.88) saturate(0.4) sepia(0.3);
  box-shadow:
    0 0 40px rgba(155, 77, 202, 0.2),
    0 0 80px rgba(201, 168, 76, 0.08);
  transition: filter 0.4s, box-shadow 0.4s;
}

.author-photo:hover {
  filter: contrast(1.1) brightness(0.95) saturate(0.5) sepia(0.2);
  box-shadow:
    0 0 60px rgba(201, 168, 76, 0.25),
    0 0 100px rgba(155, 77, 202, 0.15);
}

.author-photo-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.author-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(36, 8, 64, 0.35) 0%,
    transparent 40%,
    rgba(201, 168, 76, 0.08) 100%
  );
  pointer-events: none;
  border-radius: 16px;
}

.author-text {
  color: var(--text-muted);
  line-height: 1.9;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 300;
}

.author-disclaimer {
  font-size: 0.72rem;
  color: rgba(240, 230, 255, 0.45);
  font-style: italic;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}

.author-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 48px;
}

.author-block-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 16px;
}

.author-block-row--reverse {
  direction: rtl;
}
.author-block-row--reverse > * { direction: ltr; }

.author-block-text { display: flex; align-items: center; }

@media (max-width: 600px) {
  .author-block-row,
  .author-block-row--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* ── WELCOME OVERLAY ── */
.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 24px 24px max(24px, env(safe-area-inset-bottom));
  overflow-y: auto;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.welcome-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.welcome-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(155, 77, 202, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 60%, rgba(201, 168, 76, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.welcome-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.12em;
  line-height: 1.3;
  margin-bottom: 32px;
}

.welcome-hands {
  width: min(260px, 65vw);
  height: min(260px, 65vw);
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.25);
  margin-bottom: 32px;
}

.welcome-text {
  max-width: 560px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 40px;
}

@media (max-width: 768px) and (max-height: 750px) {
  .welcome-hands {
    width: min(160px, 40vw);
    height: min(160px, 40vw);
    margin-bottom: 16px;
  }
  .welcome-title {
    font-size: 1.3rem;
    margin-bottom: 16px;
  }
  .welcome-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }
}

@media (max-width: 768px) {
  .action-button-container {
    position: fixed;
    bottom: env(safe-area-inset-bottom, 20px);
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    z-index: 9999;
    background: rgba(26, 11, 46, 0.6);
    backdrop-filter: blur(10px);
    padding: 12px;
    border-radius: 20px;
  }
  .welcome-overlay {
    padding-bottom: 120px;
  }
}

/* ── BUTTONS ── */
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--purple) 100%);
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(155, 77, 202, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.4);
}

.btn-secondary {
  background: var(--glass);
  color: var(--gold);
  border: 1px solid var(--glass-border);
  padding: 10px 28px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--gold);
}

.btn-done {
  background: transparent;
  color: rgba(120, 200, 120, 0.7);
  border: 1px solid rgba(120, 200, 120, 0.3);
  padding: 8px 20px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: default;
}

/* ── CATEGORY TABS ── */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 32px 24px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.tab-btn {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.tab-btn:hover, .tab-btn.active {
  background: rgba(201, 168, 76, 0.12);
  border-color: var(--gold);
  color: var(--gold);
}

/* ── WISH GRID ── */
.wishes-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

.category-section { display: none; }
.category-section.active { display: block; }

.category-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 24px;
  letter-spacing: 0.06em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
  text-align: center;
}

.wishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ── WISH CARD ── */
.wish-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.wish-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(155, 77, 202, 0.2);
  border-color: rgba(201, 168, 76, 0.4);
}

.wish-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  background: var(--bg3);
}

.wish-card-img-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--bg3) 0%, #2a1050 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.wish-card-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.wish-audio-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: transparent;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
  padding: 0;
}

.wish-audio-btn:hover {
  border-color: var(--gold2);
  transform: scale(1.08);
}

.wish-audio-btn svg {
  width: 13px;
  height: 13px;
}

.wish-audio-btn.playing {
  border-color: var(--purple2);
}

.wish-audio-btn.playing::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--purple);
  animation: pulse-ring 1.5s ease-out infinite;
}

@keyframes pulse-ring {
  0%   { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.6); }
}

.wish-card-body {
  padding: 18px 18px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wish-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--gold2);
  line-height: 1.3;
}

.category-intro {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
  margin-top: -8px;
}

.wish-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.wish-card-receive {
  font-size: 0.78rem;
  color: rgba(201, 168, 76, 0.7);
  line-height: 1.5;
  padding: 8px 10px;
  background: rgba(201, 168, 76, 0.06);
  border-radius: 8px;
  border-left: 2px solid rgba(201, 168, 76, 0.3);
  flex: 1;
}

.wish-card-custom {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wish-card-custom label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wish-card-custom select,
.wish-card-custom input[type="text"],
.wish-card-custom textarea {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  padding: 8px 12px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}

.wish-card-custom select:focus,
.wish-card-custom input[type="text"]:focus,
.wish-card-custom textarea:focus {
  border-color: var(--gold);
}

.wish-card-custom select option { background: var(--bg2); }

.wish-custom-own {
  margin-top: 6px;
  animation: fadeSlide 0.2s ease both;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wish-card-footer {
  padding: 12px 18px 16px;
}

.wish-random-btn {
  background: rgba(155, 77, 202, 0.15);
  border: 1px solid rgba(155, 77, 202, 0.3);
  color: var(--purple2);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  margin-bottom: 8px;
  transition: background 0.2s;
}

.wish-random-btn:hover { background: rgba(155, 77, 202, 0.25); }

.wish-random-result {
  font-size: 0.78rem;
  color: var(--purple2);
  font-style: italic;
  min-height: 20px;
  margin-bottom: 4px;
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 4, 24, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 36px 32px;
  max-width: 480px;
  width: 100%;
  transform: translateY(16px);
  transition: transform 0.3s;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.modal-category {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.modal-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  border-left: 2px solid var(--gold);
}

.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ── MAP PAGE ── */
.map-header-section {
  text-align: center;
  padding: 48px 24px 32px;
}

.map-main-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.map-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.map-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: all 0.4s;
  animation: cardAppear 0.5s ease both;
}

@keyframes cardAppear {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.map-card.completed {
  opacity: 0.42;
  filter: grayscale(0.55);
}

.map-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  background: var(--bg3);
}

.map-card-img-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--bg3) 0%, #2a1050 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.map-card-body {
  padding: 16px 16px 12px;
}

.map-card-category {
  font-size: 0.65rem;
  color: var(--purple2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.map-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--gold2);
  margin-bottom: 6px;
}

.map-card-custom {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 6px;
}

.map-card-date {
  font-size: 0.68rem;
  color: rgba(240, 230, 255, 0.3);
  margin-bottom: 12px;
}

.map-card-footer {
  padding: 10px 16px 14px;
  border-top: 1px solid var(--glass-border);
}

.map-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.map-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  display: block;
}

.map-empty-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 300;
}

/* ── LOGIN PAGE ── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    radial-gradient(ellipse at 25% 45%, rgba(155, 77, 202, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 30%, rgba(201, 168, 76, 0.1) 0%, transparent 50%);
}

.login-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 48px 40px;
  width: min(420px, 92vw);
  backdrop-filter: blur(16px);
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.login-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.login-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 32px;
}

.login-form { display: flex; flex-direction: column; gap: 16px; }

.login-form input {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  padding: 14px 18px;
  text-align: center;
  letter-spacing: 0.06em;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.login-form input:focus { border-color: var(--gold); }
.login-form input::placeholder { color: var(--text-muted); }

.login-error {
  color: #e88;
  font-size: 0.8rem;
  min-height: 20px;
  margin-top: -4px;
}

/* ── MUSIC TOGGLE ── */
.music-toggle-btn {
  background: none; border: none; cursor: pointer;
  color: var(--gold); padding: 6px; display: flex; align-items: center;
  opacity: 0.6; transition: opacity 0.2s; flex-shrink: 0;
}
.music-toggle-btn:hover { opacity: 1; }
.music-toggle-btn.music-playing svg#musicIconOn {
  animation: music-pulse 2.5s ease-in-out infinite;
}
@keyframes music-pulse {
  0%, 100% { opacity: 0.6; filter: none; }
  50% { opacity: 1; filter: drop-shadow(0 0 5px var(--gold)); }
}

/* ── BOTTOM SHEET ── */
.wish-select-trigger { display: none; }

@media (max-width: 768px) {
  .wish-card-custom select { display: none; }
  .wish-select-trigger {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(212,175,53,0.5);
    border-radius: 12px; padding: 12px 14px; cursor: pointer; color: var(--text);
    font-size: 0.85rem; font-family: 'Montserrat', sans-serif;
  }
  .wish-select-trigger-arrow { color: var(--gold); margin-left: 8px; }
}

.bs-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  z-index: 2000; opacity: 0; transition: opacity 0.3s;
}
.bs-overlay.open { display: block; opacity: 1; }

.bs-container {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 2001;
  background: linear-gradient(180deg, #1f0d3a 0%, #1a0b2e 100%);
  border-top: 1px solid #D4AF37;
  border-radius: 25px 25px 0 0;
  box-shadow: 0 -8px 40px rgba(155,77,202,0.4);
  padding: 12px 0 env(safe-area-inset-bottom, 20px);
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  max-height: 70dvh; display: flex; flex-direction: column;
}
.bs-container.open { transform: translateY(0); }

.bs-handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: rgba(212,175,53,0.3); margin: 0 auto 12px;
}

.bs-title {
  font-family: 'Cormorant Garamond', serif; font-size: 0.75rem;
  color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase;
  text-align: center; padding: 0 20px 12px;
  border-bottom: 1px solid rgba(212,175,53,0.15);
}

.bs-options { overflow-y: auto; flex: 1; }

.bs-option {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 52px; padding: 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer; color: var(--text);
  font-family: 'Montserrat', sans-serif; font-size: 0.9rem;
  transition: background 0.15s;
}
.bs-option:active { background: rgba(212,175,53,0.08); }
.bs-option--active { color: var(--gold); }
.bs-option-check { color: var(--purple2); font-size: 1rem; flex-shrink: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .site-header { padding: 12px 16px; }
  .category-tabs { padding: 20px 16px 0; }
  .wishes-section { padding: 24px 16px 48px; }
  .map-grid { padding: 0 16px 48px; }
  .modal { padding: 28px 20px; }
  .modal-buttons { flex-direction: column-reverse; }
}
