/* ==========================================================================
   BASE & COMMON STYLES (MOBILE-FIRST)
   ========================================================================== */

:root {
  --font-display: 'Playfair Display', serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-script: 'Alex Brush', cursive;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.15);
  
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-primary, #FAF8F5);
  color: var(--text-primary, #1A1A1A);
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 680px; /* Optimal reading container for wedding cards */
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }

/* ==================== ENVELOPE MODAL OVERLAY ==================== */
.envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, #2C2523 0%, #110E0D 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

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

.envelope-container {
  width: 100%;
  max-width: 440px;
  perspective: 1200px;
}

.envelope-paper {
  background: #FDFBF7;
  border-radius: var(--radius-md);
  padding: 40px 24px 32px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(212, 175, 55, 0.4);
  background-image: radial-gradient(#d4af37 0.5px, transparent 0.5px);
  background-size: 16px 16px;
  animation: envelopeFloat 3s ease-in-out infinite alternate;
}

@keyframes envelopeFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.envelope-stamp {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #8C7335;
  border: 1px dashed #C5A059;
  padding: 4px 12px;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
}

.envelope-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: #777;
  margin-bottom: 12px;
}

.envelope-names {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.2;
  margin-bottom: 12px;
}

.envelope-names .amp {
  font-family: var(--font-serif);
  font-style: italic;
  color: #C5A059;
  font-weight: 400;
}

.envelope-date {
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: #555;
  font-weight: 500;
  margin-bottom: 24px;
}

.envelope-hint {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 24px;
}

.wax-seal-btn {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #D9383A 0%, #A81E20 50%, #680E10 100%);
  box-shadow: 0 8px 24px rgba(168, 30, 32, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4), inset 0 -4px 6px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  animation: pulseSeal 2s infinite ease-in-out;
}

@keyframes pulseSeal {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(168, 30, 32, 0.5); }
  50% { transform: scale(1.06); box-shadow: 0 12px 32px rgba(168, 30, 32, 0.8); }
}

.wax-seal-btn:hover {
  transform: scale(1.08);
}

.wax-seal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFF;
}

.wax-icon {
  font-size: 1.4rem;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.wax-text {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ==================== FLOATING MUSIC PLAYER ==================== */
.music-widget {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 999;
}

.music-disc-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 6px 12px 6px 6px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition-fast);
}

.music-disc-btn:hover {
  transform: scale(1.05);
}

.music-disc {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #111;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 0.8rem;
}

.music-disc.playing {
  animation: spinRecord 3s linear infinite;
}

@keyframes spinRecord {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.sound-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.sound-wave span {
  width: 3px;
  background: #C5A059;
  border-radius: 2px;
  height: 4px;
}

.music-disc.playing + .sound-wave span:nth-child(1) { animation: wave 1s ease-in-out infinite 0.1s; }
.music-disc.playing + .sound-wave span:nth-child(2) { animation: wave 1s ease-in-out infinite 0.3s; }
.music-disc.playing + .sound-wave span:nth-child(3) { animation: wave 1s ease-in-out infinite 0.2s; }
.music-disc.playing + .sound-wave span:nth-child(4) { animation: wave 1s ease-in-out infinite 0.4s; }

@keyframes wave {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

/* ==================== FLOATING CONTROLS (SWITCHER) ==================== */
.floating-bar {
  display: none !important;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 990;
  width: calc(100% - 32px);
  max-width: 520px;
  pointer-events: none;
}

.floating-bar-pill {
  pointer-events: auto;
  background: rgba(22, 22, 24, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color: #FFF;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.control-label {
  font-size: 0.72rem;
  color: #AAA;
  font-weight: 500;
  display: none;
}

@media (min-width: 480px) {
  .control-label { display: inline; }
}

.btn-group-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px;
  border-radius: var(--radius-full);
}

.btn-group-toggle button {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #BBB;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.btn-group-toggle button.active {
  background: #FFF;
  color: #111;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.control-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
}

.icon-action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: background var(--transition-fast);
}

.icon-action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ==================== BUTTONS & CARDS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-block {
  width: 100%;
}

.card {
  background: var(--card-bg, #FFFFFF);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--card-border, rgba(0, 0, 0, 0.06));
}

.section-block {
  padding: 60px 0;
}

.section-badge {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  font-weight: 700;
  color: var(--accent-color, #C5A059);
  margin-bottom: 8px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--text-primary, #1A1A1A);
}

.section-desc {
  font-size: 0.92rem;
  color: var(--text-secondary, #666);
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ==================== COUNTDOWN GRID ==================== */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

.countdown-card {
  background: var(--card-bg, #FFF);
  border: 1px solid var(--card-border, rgba(0, 0, 0, 0.08));
  border-radius: var(--radius-md);
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.countdown-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color, #C5A059);
  line-height: 1;
  margin-bottom: 4px;
}

.countdown-lbl {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--text-secondary, #777);
}

/* ==================== DETAILS & VENUE ==================== */
.invitation-card {
  position: relative;
  text-align: center;
}

.side-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: var(--accent-light, #FAF2E6);
  color: var(--accent-color, #C5A059);
  margin-bottom: 12px;
}

.invitation-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--text-primary, #1A1A1A);
  margin-bottom: 10px;
}

.divider-line {
  width: 40px;
  height: 2px;
  background: var(--accent-color, #C5A059);
  margin: 0 auto 16px;
}

.invitation-welcome {
  font-size: 0.95rem;
  color: var(--text-secondary, #555);
  margin-bottom: 24px;
}

.venue-showcase {
  background: var(--highlight-bg, #FAF8F5);
  padding: 24px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  border: 1px dashed var(--accent-color, #C5A059);
}

.venue-main {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary, #1A1A1A);
  margin-bottom: 4px;
}

.venue-sub {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-color, #C5A059);
  margin-bottom: 8px;
}

.venue-address {
  font-size: 0.92rem;
  color: var(--text-secondary, #666);
}

.time-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px 0;
  border-top: 1px solid var(--border-color, #EEE);
  border-bottom: 1px solid var(--border-color, #EEE);
}

.time-item {
  display: flex;
  flex-direction: column;
}

.time-item.border-both {
  border-left: 1px solid var(--border-color, #EEE);
  border-right: 1px solid var(--border-color, #EEE);
}

.time-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary, #888);
  font-weight: 600;
  margin-bottom: 4px;
}

.time-val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary, #111);
}

.time-val.highlight {
  color: var(--accent-color, #C5A059);
}

.action-buttons-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 480px) {
  .action-buttons-wrap {
    flex-direction: row;
    justify-content: center;
  }
}

/* ==================== GALLERY & TABS ==================== */
.gallery-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.gallery-tab {
  padding: 8px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--tab-bg, rgba(0, 0, 0, 0.05));
  color: var(--text-secondary, #666);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all var(--transition-fast);
}

.gallery-tab.active {
  background: var(--text-primary, #111);
  color: #FFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Interactive Display Effects Switcher */
.gallery-effects-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.effects-pill-group {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.effect-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary, #555);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.effect-btn.active {
  background: #FFFFFF;
  color: var(--accent-color, #C5A059);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-slideshow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFF;
  background: linear-gradient(135deg, #1A1A1A 0%, #333333 100%);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-slideshow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.btn-slideshow .play-icon {
  font-size: 0.7rem;
  color: var(--accent-color, #C5A059);
}

/* 1. MASONRY GRID MODE */
.gallery-masonry-grid {
  column-count: 2;
  column-gap: 14px;
}

@media (min-width: 640px) {
  .gallery-masonry-grid {
    column-count: 3;
    column-gap: 18px;
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.gallery-item::after {
  content: "🔍 Chạm để xem";
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #FFF;
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
}

.gallery-item:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* 2. POLAROID PINBOARD MODE */
.gallery-polaroid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
  padding: 24px 0 32px;
}

.polaroid-card {
  background: #FFFFFF;
  padding: 12px 12px 36px 12px;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
  position: relative;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Washi Tape Accent */
.polaroid-card::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 22px;
  background: rgba(220, 200, 160, 0.7);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-left: 2px dashed rgba(0, 0, 0, 0.15);
  border-right: 2px dashed rgba(0, 0, 0, 0.15);
  z-index: 2;
}

/* Staggered natural rotation angles */
.polaroid-card:nth-child(4n+1) { transform: rotate(-2.2deg); }
.polaroid-card:nth-child(4n+2) { transform: rotate(1.8deg); }
.polaroid-card:nth-child(4n+3) { transform: rotate(-1.4deg); }
.polaroid-card:nth-child(4n+4) { transform: rotate(2.4deg); }

.polaroid-card:hover {
  transform: rotate(0deg) scale(1.06) translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
  z-index: 10;
}

.polaroid-photo-wrapper {
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 3 / 4;
  background: #F0EDE6;
}

.polaroid-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.polaroid-card:hover .polaroid-photo-wrapper img {
  transform: scale(1.05);
}

.polaroid-caption {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #333333;
  text-align: center;
  margin-top: 14px;
  line-height: 1.2;
}

/* 3. 3D COVERFLOW SLIDER MODE */
.gallery-coverflow-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 40px 0 60px;
  perspective: 1200px;
}

.coverflow-track {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 480px;
}

.coverflow-slide {
  position: absolute;
  width: 280px;
  height: 420px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  -webkit-box-reflect: below 10px linear-gradient(transparent, transparent 75%, rgba(0, 0, 0, 0.2));
}

.coverflow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coverflow-slide .slide-title {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 24px 16px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  color: #FFF;
  font-size: 0.9rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.coverflow-slide.active .slide-title {
  opacity: 1;
}

.coverflow-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  color: #111;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.coverflow-nav-btn:hover {
  transform: translateY(-50%) scale(1.1);
  background: #FFF;
}

.coverflow-nav-btn.prev { left: 10px; }
.coverflow-nav-btn.next { right: 10px; }

.coverflow-counter {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-color, #C5A059);
  margin-top: 16px;
}

/* ==================== RSVP FORM ==================== */
.rsvp-form-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary, #333);
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--input-border, #DDD);
  background: #FFF;
  color: #111;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent-color, #C5A059);
  box-shadow: 0 0 0 3px var(--accent-light, rgba(197, 160, 89, 0.15));
}

.radio-pill-group {
  display: flex;
  gap: 10px;
}

.radio-pill {
  flex: 1;
  position: relative;
  cursor: pointer;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-pill .pill-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--input-bg, #F5F5F5);
  color: var(--text-secondary, #666);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-align: center;
}

.radio-pill input:checked + .pill-badge {
  background: var(--accent-light, #FAF2E6);
  color: var(--accent-color, #A87D25);
  border-color: var(--accent-color, #C5A059);
}

/* ==================== WISHES FEED ==================== */
.wishes-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 580px;
  margin: 0 auto;
}

.wish-item {
  background: var(--card-bg, #FFF);
  border: 1px solid var(--card-border, rgba(0, 0, 0, 0.06));
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.wish-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.wish-author {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary, #111);
}

.wish-time {
  font-size: 0.75rem;
  color: #999;
}

.wish-content {
  font-size: 0.9rem;
  color: var(--text-secondary, #444);
  line-height: 1.5;
}

/* ==================== BANK / GIFT BOX ==================== */
.bank-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.bank-tab {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--tab-bg, #EEE);
  color: var(--text-secondary, #666);
  transition: all var(--transition-fast);
}

.bank-tab.active {
  background: var(--accent-color, #C5A059);
  color: #FFF;
}

.bank-display-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.qr-container {
  width: 220px;
  height: 220px;
  padding: 12px;
  background: #FFF;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.bank-qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bank-info-box {
  width: 100%;
  max-width: 380px;
  background: var(--highlight-bg, #FAF8F5);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-color, #EEE);
}

.bank-info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.92rem;
}

.bank-info-row .info-lbl {
  color: var(--text-secondary, #777);
}

.bank-info-row .info-val {
  font-weight: 600;
  color: var(--text-primary, #111);
}

.bank-info-row .info-val.account-number {
  font-family: monospace;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--accent-color, #C5A059);
}

.bank-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ==================== FOOTER ==================== */
.footer-block {
  padding: 60px 0 100px;
  background: var(--footer-bg, #1A1A1A);
  color: #FFF;
}

.footer-names {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--accent-color, #C5A059);
}

.footer-quote {
  font-style: italic;
  font-size: 0.95rem;
  color: #CCC;
  max-width: 420px;
  margin: 0 auto 12px;
}

.footer-date {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: #888;
}

/* ==================== LIGHTBOX MODAL ==================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  color: #EEE;
  font-size: 0.9rem;
  margin-top: 10px;
  text-align: center;
}

.lightbox-close-btn, .lightbox-nav-btn {
  position: absolute;
  color: #FFF;
  font-size: 2rem;
  padding: 10px 16px;
  transition: color var(--transition-fast);
}

.lightbox-close-btn { top: 16px; right: 20px; font-size: 2.5rem; }
.lightbox-nav-btn.prev { left: 16px; }
.lightbox-nav-btn.next { right: 16px; }

/* Toast Notifications */
.toast-wrapper {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10010;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #111;
  color: #FFF;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: toastIn 0.3s ease forwards;
}

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