/* ==========================================================================
   ROMANTIC VELVET & GOLD DESIGN SYSTEM
   Bespoke, Elegant, High-Performance, Mobile-First
   ========================================================================== */

:root {
  --bg-deep: #0e050b;
  --bg-gradient: radial-gradient(circle at 50% 20%, #290a1a 0%, #15050e 55%, #0a0307 100%);
  --burgundy-primary: #7d1533;
  --burgundy-glow: #a81c44;
  --rose-accent: #e2849d;
  --rose-light: #f7d5df;
  --gold-primary: #d4af37;
  --gold-glow: #f6e297;
  --gold-gradient: linear-gradient(135deg, #f6e297 0%, #d4af37 50%, #aa8016 100%);
  --text-primary: #ffffff;
  --text-muted: #e0cad2;
  --card-bg: rgba(33, 12, 22, 0.65);
  --card-border: rgba(226, 132, 157, 0.25);
  --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(168, 28, 68, 0.2);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: "Alex Brush", cursive;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: var(--bg-gradient);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* ==========================================================================
   CANVAS BACKGROUND (ROSE PETALS & CONFETTI)
   ========================================================================== */

#petalCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

/* ==========================================================================
   MUSIC WIDGET (VINYL PLAYER)
   ========================================================================== */

.music-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
  transition: var(--transition-smooth);
}

.music-widget.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.music-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(30, 8, 20, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 8px 16px 8px 10px;
  border-radius: 40px;
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.2);
  transition: var(--transition-smooth);
}

.music-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold-glow);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.4);
}

.vinyl-record {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle, #222 30%, #000 70%);
  border: 2px solid #444;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 3.5s linear infinite;
  animation-play-state: paused;
}

.vinyl-record.playing {
  animation-play-state: running;
}

.vinyl-center {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--burgundy-glow);
  border: 2px solid var(--gold-primary);
}

.music-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.music-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-glow);
  letter-spacing: 0.3px;
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-status {
  font-size: 0.68rem;
  color: var(--rose-accent);
}

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

.sound-wave span {
  width: 3px;
  background: var(--gold-primary);
  border-radius: 3px;
  height: 4px;
  transition: 0.2s;
}

.sound-wave.playing span:nth-child(1) { animation: wave 0.8s ease-in-out infinite; }
.sound-wave.playing span:nth-child(2) { animation: wave 1.2s ease-in-out 0.2s infinite; }
.sound-wave.playing span:nth-child(3) { animation: wave 0.9s ease-in-out 0.4s infinite; }
.sound-wave.playing span:nth-child(4) { animation: wave 1.1s ease-in-out 0.1s infinite; }

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

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   STAGE 1: ENVELOPE / WAX SEAL (INTRO OVERLAY)
   ========================================================================== */

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d040a;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
  cursor: pointer;
}

.intro-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(168, 28, 68, 0.25) 0%, rgba(13, 4, 10, 0.95) 75%);
  pointer-events: none;
}

.envelope-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  perspective: 1000px;
  cursor: pointer;
}

.envelope {
  position: relative;
  width: 290px;
  height: 195px;
  background: linear-gradient(145deg, #421024, #270915);
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(168, 28, 68, 0.4);
  cursor: pointer;
  transition: transform 0.5s ease;
}

.envelope:hover {
  transform: translateY(-5px) scale(1.02);
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 145px solid transparent;
  border-right: 145px solid transparent;
  border-top: 105px solid #571732;
  transform-origin: top;
  transition: transform 0.8s ease 0.3s;
  z-index: 5;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.envelope-pocket {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 145px solid #380d1e;
  border-right: 145px solid #380d1e;
  border-bottom: 95px solid #2f0b19;
  border-top: 100px solid transparent;
  border-radius: 0 0 12px 12px;
  z-index: 4;
}

.envelope-paper-peek {
  position: absolute;
  top: 15px;
  left: 20px;
  right: 20px;
  height: 80px;
  background: #fffbf5;
  border-radius: 6px;
  border: 1px solid #ebd9c8;
  z-index: 2;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

.wax-seal {
  position: absolute;
  top: 95px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, #b81c3c 30%, #6e0d22 100%);
  border: 2px solid var(--gold-primary);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.3s ease;
}

.wax-seal:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.seal-inner {
  font-size: 1.5rem;
}

.seal-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--gold-glow);
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

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

.envelope.opened .envelope-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

.envelope.opened .envelope-paper-peek {
  transform: translateY(-60px);
}

.envelope.opened .wax-seal {
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}

.intro-text-box {
  text-align: center;
  max-width: 320px;
}

.intro-eyebrow {
  font-size: 0.85rem;
  color: var(--rose-accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.intro-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--gold-glow);
  text-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  margin-bottom: 8px;
}

.intro-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  animation: blink-soft 2s ease-in-out infinite;
}

@keyframes blink-soft {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ==========================================================================
   STORY TABS NAVIGATION SYSTEM (BUKA SATU PERSATU)
   ========================================================================== */

.story-tabs-wrapper {
  position: sticky;
  top: 16px;
  z-index: 60;
  margin-bottom: 28px;
  padding: 8px 12px;
  background: rgba(22, 6, 15, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(168, 28, 68, 0.25);
}

.story-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px;
}

.story-tabs-nav::-webkit-scrollbar {
  display: none;
}

.story-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 30px;
  border: 1px solid rgba(226, 132, 157, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.story-tab:hover.unlocked {
  background: rgba(168, 28, 68, 0.3);
  border-color: var(--gold-primary);
  color: #fff;
}

.story-tab.active {
  background: linear-gradient(135deg, var(--burgundy-glow) 0%, var(--burgundy-primary) 100%);
  border-color: var(--gold-primary);
  color: #fff;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
  transform: translateY(-1px);
}

.story-tab.locked {
  opacity: 0.45;
  cursor: not-allowed;
  border-style: dashed;
}

.tab-hint-bar {
  text-align: center;
  font-size: 0.72rem;
  color: var(--rose-accent);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* TAB PANES */
.tab-pane {
  display: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* TAB NAVIGATION FOOTER */
.tab-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn-next-tab {
  margin-left: auto;
  background: linear-gradient(135deg, var(--burgundy-glow) 0%, var(--burgundy-primary) 100%);
  border: 1px solid var(--gold-primary);
  color: #fff;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(168, 28, 68, 0.5), 0 0 20px rgba(212, 175, 55, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-next-tab:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 15px 35px rgba(168, 28, 68, 0.7), 0 0 30px rgba(212, 175, 55, 0.5);
}

.btn-prev-tab {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(226, 132, 157, 0.3);
  color: var(--text-muted);
  padding: 14px 26px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-prev-tab:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: var(--gold-primary);
}

/* ==========================================================================
   MAIN CONTENT STYLES
   ========================================================================== */

.main-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  padding: 0 20px 80px 20px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 20;
}

.main-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.glass-panel {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  text-align: center;
  padding: 60px 10px 40px 10px;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(168, 28, 68, 0.35) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(168, 28, 68, 0.25);
  border: 1px solid rgba(226, 132, 157, 0.35);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rose-light);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

/* PHOTO SHOWCASE WITH ARCH DESIGN */
.photo-frame-container {
  display: flex;
  justify-content: center;
  margin: 20px auto 0 auto;
  position: relative;
  max-width: 420px;
}

.photo-glow-ring {
  position: absolute;
  inset: -15px;
  border-radius: 200px 200px 24px 24px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25), rgba(168, 28, 68, 0.3), transparent 70%);
  filter: blur(20px);
  z-index: 1;
}

.photo-card {
  position: relative;
  z-index: 2;
  width: 100%;
  background: linear-gradient(180deg, rgba(60, 16, 36, 0.8) 0%, rgba(20, 5, 14, 0.95) 100%);
  border: 2px solid rgba(212, 175, 55, 0.5);
  border-radius: 190px 190px 24px 24px;
  padding: 14px 14px 20px 14px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(168, 28, 68, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.photo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(212, 175, 55, 0.4);
}

.photo-wrapper {
  width: 100%;
  border-radius: 180px 180px 18px 18px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 9 / 14;
}

.couple-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 0.8s ease;
}

.photo-card:hover .couple-img {
  transform: scale(1.03);
}

.photo-caption {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.photo-date {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold-glow);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.photo-tagline {
  font-size: 0.85rem;
  color: var(--rose-accent);
}

/* ==========================================================================
   PROMISES SECTION (PENGGANTI COUNTER)
   ========================================================================== */

.promises-section {
  margin: 50px 0;
}

.promises-card {
  text-align: center;
  padding: 44px 32px;
}

.promises-badge {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--rose-accent);
  margin-bottom: 10px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--gold-glow);
  margin-bottom: 16px;
}

.promises-intro {
  font-size: 1.05rem;
  color: #eed6df;
  max-width: 620px;
  margin: 0 auto 36px auto;
  line-height: 1.7;
}

.promises-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  text-align: left;
}

.promise-item {
  background: rgba(20, 5, 14, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 18px;
  padding: 24px 20px;
  transition: var(--transition-smooth);
}

.promise-item:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.2);
}

.promise-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.promise-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 8px;
}

.promise-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   MAIN LOVE LETTER SECTION
   ========================================================================== */

.letter-section {
  margin: 60px 0;
}

.letter-parchment {
  background: linear-gradient(145deg, rgba(38, 14, 25, 0.8), rgba(20, 5, 14, 0.9));
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 44px 36px;
}

.letter-header {
  text-align: center;
  margin-bottom: 28px;
}

.letter-stamp {
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: var(--gold-glow);
  text-transform: uppercase;
}

.letter-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--rose-light);
  margin-top: 8px;
}

.letter-body {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  line-height: 1.9;
  color: #f7e8ed;
}

.letter-body p {
  margin-bottom: 18px;
  text-indent: 1.5em;
}

.letter-sign {
  margin-top: 36px;
  text-align: right;
  border-top: 1px solid rgba(226, 132, 157, 0.2);
  padding-top: 20px;
}

.sign-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.sign-name {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--gold-glow);
  margin-top: 4px;
}

/* ==========================================================================
   REASONS SECTION
   ========================================================================== */

.reasons-section {
  margin: 60px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.badge-pill {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(168, 28, 68, 0.2);
  border: 1px solid rgba(226, 132, 157, 0.3);
  border-radius: 30px;
  font-size: 0.78rem;
  color: var(--rose-accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.reason-card {
  background: rgba(28, 10, 20, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 132, 157, 0.25);
  border-radius: 20px;
  padding: 28px 24px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.reason-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.25);
}

.reason-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: inline-block;
}

.reason-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--gold-glow);
  margin-bottom: 10px;
}

.reason-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   SECRET NOTES (OPEN WHEN...)
   ========================================================================== */

.secret-notes-section {
  margin: 60px 0;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.note-envelope-card {
  background: linear-gradient(135deg, rgba(46, 13, 27, 0.75), rgba(22, 6, 15, 0.85));
  border: 1px dashed rgba(212, 175, 55, 0.4);
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.note-envelope-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-style: solid;
  border-color: var(--gold-glow);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(168, 28, 68, 0.3);
}

.note-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.note-label {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.note-cta {
  font-size: 0.78rem;
  color: var(--rose-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   PROGRESSIVE NESTED HEART CHAMBER (5 TINGKAT MASUK KE DALAM)
   ========================================================================== */

.proposal-section {
  margin: 80px 0 40px 0;
  perspective: 1200px;
}

.portal-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
}

/* 5-STEP PROGRESS STEPPER */
.portal-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  gap: 6px;
  width: 100%;
  max-width: 440px;
}

.progress-step {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(226, 132, 157, 0.3);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  transition: var(--transition-smooth);
}

.progress-step.active {
  background: var(--burgundy-glow);
  border-color: var(--gold-primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  transform: scale(1.15);
}

.progress-step.completed {
  background: #10b981;
  border-color: #34d399;
  color: #fff;
}

.heart-step {
  font-size: 1.05rem;
}

.progress-line {
  flex: 1;
  height: 3px;
  background: rgba(226, 132, 157, 0.2);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.progress-line.filled {
  background: var(--gold-gradient);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* LAYER CARDS */
.layer-card {
  width: 100%;
  text-align: center;
  padding: 50px 30px;
  border: 2px solid rgba(212, 175, 55, 0.5);
  background: radial-gradient(circle at center, rgba(66, 16, 36, 0.95) 0%, rgba(20, 5, 14, 0.98) 100%);
  position: relative;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1);
  opacity: 1;
}

.layer-card.hidden-layer {
  display: none;
  opacity: 0;
  transform: scale(0.85) translateZ(-80px);
}

/* 3D ZOOM IN / ZOOM OUT TRANSITIONS */
.layer-card.zoom-enter {
  display: block;
  animation: portal-zoom-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.layer-card.zoom-leave {
  animation: portal-zoom-out 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes portal-zoom-in {
  from {
    opacity: 0;
    transform: scale(0.7) translateY(40px) rotateX(10deg);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0) rotateX(0deg);
  }
}

@keyframes portal-zoom-out {
  from {
    opacity: 1;
    transform: scale(1) rotateX(0deg);
  }
  to {
    opacity: 0;
    transform: scale(1.3) translateY(-40px) rotateX(-10deg);
  }
}

.layer-icon {
  font-size: 3.8rem;
  margin-bottom: 16px;
  display: inline-block;
}

.float-anim {
  animation: floating 3s ease-in-out infinite;
}

.pulse-anim {
  animation: box-pulse 1.8s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes box-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.layer-badge {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--rose-accent);
  margin-bottom: 12px;
  display: block;
}

.layer-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  color: var(--gold-glow);
  line-height: 1.3;
  margin-bottom: 18px;
}

.layer-desc {
  font-size: 1.1rem;
  color: #fae8ee;
  max-width: 600px;
  margin: 0 auto 20px auto;
  line-height: 1.8;
}

.layer-hint {
  font-size: 0.95rem;
  color: #facc15;
  font-style: italic;
  margin-bottom: 30px;
}

.btn-portal {
  background: linear-gradient(135deg, #a81c44 0%, #7d1533 100%);
  border: 1px solid var(--gold-primary);
  color: #fff;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(168, 28, 68, 0.5), 0 0 20px rgba(212, 175, 55, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-portal:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 40px rgba(168, 28, 68, 0.7), 0 0 35px rgba(212, 175, 55, 0.5);
  border-color: var(--gold-glow);
}

.btn-gold-shimmer {
  background: linear-gradient(135deg, #b8860b 0%, #d4af37 50%, #996515 100%);
  color: #1a060e;
  border: 1px solid #fff;
  animation: gold-glow 2s infinite;
}

@keyframes gold-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); }
  50% { box-shadow: 0 0 35px rgba(212, 175, 55, 0.9); }
}

.locked-icon {
  font-size: 4rem;
  display: inline-block;
  transition: transform 0.2s;
}

.shake-lock {
  animation: shake 0.6s ease-in-out;
}

.cliffhanger-box {
  background: linear-gradient(145deg, rgba(38, 10, 22, 0.7), rgba(18, 4, 11, 0.9));
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 20px;
  padding: 32px 26px;
  max-width: 640px;
  margin: 0 auto 36px auto;
  box-shadow: inset 0 0 25px rgba(168, 28, 68, 0.25);
}

.cliffhanger-highlight {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--rose-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.cliffhanger-main {
  font-size: 1.18rem;
  color: #fff;
  line-height: 1.8;
  margin-bottom: 16px;
}

.cliffhanger-sub {
  font-size: 1rem;
  color: var(--gold-glow);
  font-weight: 500;
}

.cliffhanger-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-meet {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  text-decoration: none;
  border: none;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4), 0 0 20px rgba(16, 185, 129, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-meet:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.6);
}

.btn-curang {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(226, 132, 157, 0.4);
  color: var(--rose-light);
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-curang:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.curang-feedback {
  margin-top: 24px;
  font-size: 1.1rem;
  color: #fef08a;
  font-weight: 600;
  animation: fade-in-scale 0.5s ease;
  line-height: 1.6;
}

/* ==========================================================================
   MODAL DIALOG (SECRET NOTES)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 2, 6, 0.85);
  backdrop-filter: blur(12px);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.3s ease, visibility 0.3s;
}

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

.modal-card {
  background: linear-gradient(160deg, #2f0b1a, #16040e);
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(168, 28, 68, 0.4);
  border-radius: 24px;
  padding: 40px 32px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--gold-glow);
  margin-bottom: 16px;
}

.modal-content {
  font-size: 1.05rem;
  color: #fae8ee;
  line-height: 1.8;
  margin-bottom: 28px;
  font-style: italic;
}

.btn-modal-ok {
  background: linear-gradient(135deg, var(--burgundy-glow), var(--burgundy-primary));
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #fff;
  padding: 12px 32px;
  border-radius: 40px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-modal-ok:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(168, 28, 68, 0.5);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  text-align: center;
  padding: 40px 0 20px 0;
  border-top: 1px solid rgba(226, 132, 157, 0.15);
  color: var(--text-muted);
}

.footer-love {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.footer-love strong {
  color: var(--gold-glow);
}

.footer-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--rose-accent);
}

/* ==========================================================================
   MOBILE-FIRST RESPONSIVE OPTIMIZATIONS (HP & TABLET)
   ========================================================================== */

@media (max-width: 768px) {
  body {
    -webkit-font-smoothing: antialiased;
    touch-action: manipulation;
  }

  .main-content {
    padding: 0 14px 100px 14px;
    max-width: 100%;
  }

  .glass-panel {
    padding: 26px 18px;
    border-radius: 20px;
  }

  .letter-parchment {
    padding: 28px 18px;
    border-radius: 20px;
  }

  .letter-body {
    font-size: 1.08rem;
    line-height: 1.8;
  }

  .hero-section {
    padding: 30px 6px 20px 6px;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 14px;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  /* PHOTO ADAPTATION ON MOBILE */
  .photo-frame-container {
    max-width: 320px;
  }

  .photo-card {
    border-radius: 140px 140px 20px 20px;
    padding: 10px 10px 16px 10px;
  }

  .photo-wrapper {
    border-radius: 130px 130px 16px 16px;
    aspect-ratio: 9 / 14;
  }

  /* TOP STICKY TABS ON MOBILE */
  .story-tabs-wrapper {
    top: 8px;
    margin-bottom: 20px;
    padding: 6px 10px;
    border-radius: 30px;
  }

  .story-tabs-nav {
    gap: 6px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .story-tab {
    padding: 8px 14px;
    font-size: 0.78rem;
    scroll-snap-align: center;
  }

  /* 7-STEP PROGRESS STEPPER ON MOBILE (NO OVERFLOW) */
  .portal-progress {
    gap: 3px;
    max-width: 100%;
    padding: 0 2px;
  }

  .progress-step {
    width: 26px;
    height: 26px;
    font-size: 0.68rem;
  }

  .progress-line {
    height: 2px;
  }

  /* LAYER CARDS ON MOBILE */
  .layer-card {
    padding: 32px 18px;
    border-radius: 20px;
  }

  .layer-icon {
    font-size: 3rem;
    margin-bottom: 10px;
  }

  .layer-title {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }

  .layer-desc {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
  }

  .cliffhanger-box {
    padding: 24px 16px;
  }

  .cliffhanger-highlight {
    font-size: 1.1rem;
  }

  .cliffhanger-main {
    font-size: 1.05rem;
  }

  .cliffhanger-actions {
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }

  .btn-meet, .btn-curang {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    font-size: 1.05rem;
  }

  .btn-portal {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    font-size: 1.05rem;
  }

  /* TAB NAV FOOTER ON MOBILE */
  .tab-nav-footer {
    flex-direction: column-reverse;
    gap: 12px;
    margin-top: 26px;
    width: 100%;
  }

  .btn-next-tab, .btn-prev-tab {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    padding: 15px 20px;
    font-size: 1.02rem;
    min-height: 48px;
  }

  .promises-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .reasons-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .notes-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* MUSIC WIDGET ON MOBILE (COMPACT & SAFE-AREA READY) */
  .music-widget {
    bottom: max(14px, env(safe-area-inset-bottom, 14px));
    right: 12px;
    z-index: 70;
  }

  .music-btn {
    padding: 6px 12px 6px 8px;
    gap: 8px;
  }

  .vinyl-record {
    width: 32px;
    height: 32px;
  }

  .music-title {
    max-width: 105px;
    font-size: 0.72rem;
  }

  .music-status {
    font-size: 0.62rem;
  }
}
