/* Style system for Ankita's Love Website */

:root {
  --color-primary: #ff2a5f;
  --color-primary-hover: #ff003c;
  --color-primary-light: #ff7b9c;
  --color-accent: #f9c22e; /* Bright Gold */
  --color-bg-base: #0f0c29;
  --color-text-main: #f8f9fa;
  --color-text-muted: #adb5bd;
  --color-glass-bg: rgba(20, 15, 35, 0.6);
  --color-glass-border: rgba(255, 42, 95, 0.25);
  
  --font-title: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
  --font-handwriting: 'Sacramento', cursive;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(255, 42, 95, 0.3), 0 4px 6px -2px rgba(255, 42, 95, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(255, 42, 95, 0.4), 0 10px 10px -5px rgba(255, 42, 95, 0.2);
  --shadow-gold: 0 0 15px rgba(249, 194, 46, 0.5);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: var(--color-text-main);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Background Heart Canvas */
#heart-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Utility Typography Classes */
.cursive {
  font-family: var(--font-handwriting);
  font-size: 3rem;
  font-weight: 400;
  color: var(--color-primary);
}

.font-playfair {
  font-family: var(--font-title);
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '💖';
  display: block;
  font-size: 1rem;
  margin-top: 0.2rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.hidden {
  display: none !important;
}

/* 1. Landing Gate Overlay */
.gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15,12,41,0.95), rgba(48,43,99,0.95), rgba(36,36,62,0.95));
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.gate-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.1);
}

.gate-content {
  padding: 2.5rem;
  max-width: 600px;
  background: rgba(20, 15, 35, 0.5);
  backdrop-filter: blur(15px);
  border-radius: 24px;
  border: 1px solid rgba(255, 42, 95, 0.3);
  box-shadow: 0 15px 35px rgba(255, 42, 95, 0.3), inset 0 0 20px rgba(255, 42, 95, 0.1);
  animation: floatGate 6s ease-in-out infinite alternate;
}

@keyframes floatGate {
  0% { transform: translateY(0); }
  100% { transform: translateY(-15px); }
}

.gate-title {
  font-family: var(--font-title);
  font-size: 2.8rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(255, 82, 123, 0.1);
}

.gate-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.heart-open-btn {
  background: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 82, 123, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.heart-open-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 25px rgba(255, 82, 123, 0.35);
  color: white;
  background: var(--color-primary);
}

.heart-open-btn:active {
  transform: translateY(-2px) scale(0.98);
}

.action-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.no-btn {
  position: relative;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.no-btn:hover {
  transform: none;
  background: white;
  color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(255, 82, 123, 0.25);
}

.heart-icon {
  font-size: 1.4rem;
  animation: pulseHeart 1.2s infinite;
}

@keyframes pulseHeart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* 2. Main App Container */
.app-container {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 1s ease-out;
}

.app-container.fade-in {
  opacity: 1;
}

/* Main Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  background: var(--color-glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-text {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-heart {
  color: var(--color-primary);
  font-size: 1.1rem;
}

.logo-heart i {
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.25); }
  50% { transform: scale(1.1); }
  70% { transform: scale(1.25); }
}

.music-toggle-btn {
  background: rgba(255, 82, 123, 0.1);
  border: 1px solid rgba(255, 82, 123, 0.2);
  color: var(--color-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.music-toggle-btn:hover {
  background: var(--color-primary);
  color: white;
  transform: rotate(15deg);
}

.music-toggle-btn.muted {
  background: #f1ede8;
  color: var(--color-text-muted);
  border-color: #d8ceca;
}

/* Layout Body & Navigation */
.layout-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Navigation Horizontal Floating Bar */
.nav-bar {
  margin: 1.5rem auto 0 auto;
  background: var(--color-glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-glass-border);
  padding: 0.5rem;
  border-radius: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 90;
  max-width: fit-content;
}

.nav-bar ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav-tab {
  background: transparent;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-tab i {
  font-size: 1.1rem;
}

.nav-tab:hover {
  color: var(--color-primary);
  background: rgba(255, 82, 123, 0.05);
}

.nav-tab.active {
  color: white;
  background: var(--color-primary);
  box-shadow: 0 4px 12px rgba(255, 82, 123, 0.3);
  transform: translateY(-2px);
}

/* Content Area */
.content-area {
  flex: 1;
  padding: 2rem 3rem 5rem 3rem;
  position: relative;
  z-index: 10;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* Tab Panels */
.tab-panel {
  display: none;
  animation: fadeInPanel 0.8s ease-in-out forwards;
}

.tab-panel.active {
  display: block;
}

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

/* Glass Card Component */
.glass-card {
  background: var(--color-glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

/* --- SECTION 1: HOME --- */
.split-hero {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split-hero {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.hero-image-container {
  flex: 1;
  max-width: 650px;
  width: 100%;
}

.framed-image {
  padding: 1.5rem 1.5rem 2.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 42, 95, 0.4);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 42, 95, 0.15) inset;
  border-radius: 8px;
  transform: rotate(-3deg);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.framed-image:hover {
  transform: rotate(0deg) scale(1.02);
}

.framed-image img {
  width: 100%;
  max-height: 75vh;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.image-caption {
  text-align: center;
  font-size: 2.2rem;
  margin-top: 1rem;
  color: var(--color-text-main);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-title {
  font-size: 3rem;
  color: var(--color-primary);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
}

.hero-message {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-text-main);
  background: rgba(20, 15, 35, 0.4);
  padding: 2rem;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hero-message .signature {
  font-size: 2.5rem;
  color: var(--color-accent);
  text-align: right;
  margin-top: 1rem;
}

/* Slide to Unlock Component */
.slide-to-unlock-container {
  margin-top: 0;
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 0.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slide-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  pointer-events: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.secret-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 40px;
  background: transparent;
  outline: none;
  z-index: 2;
  position: relative;
  cursor: pointer;
}

.secret-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 50px;
  height: 40px;
  border-radius: 20px;
  background: var(--color-primary);
  cursor: grab;
  box-shadow: 0 0 10px rgba(255, 42, 95, 0.5);
  transition: transform 0.1s;
}

.secret-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.1);
}

/* Love Timer style */
.timer-container {
  width: 100%;
  max-width: 700px;
  text-align: center;
  border-top: 3px solid var(--color-primary);
}

.timer-title {
  font-family: var(--font-title);
  color: var(--color-text-main);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.love-timer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.timer-segment {
  background: rgba(20, 15, 35, 0.7);
  border: 1px solid rgba(255, 42, 95, 0.2);
  border-radius: 12px;
  min-width: 75px;
  padding: 0.8rem 0.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-value {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.timer-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.timer-date-sub {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Envelope Container */
.envelope-wrapper {
  perspective: 1000px;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.envelope-instruction {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 500;
  animation: floatGate 2s infinite alternate;
}

.envelope {
  position: relative;
  width: 450px;
  height: 280px;
  background: #c9184a;
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

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

.envelope::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 140px 225px 140px 225px;
  border-color: transparent transparent #ef4444 #ef4444;
  border-radius: 0 0 8px 8px;
  z-index: 50;
}

.envelope::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 140px 225px 140px 225px;
  border-color: transparent #ef4444 transparent transparent;
  border-radius: 0 0 8px 8px;
  z-index: 50;
}

.flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 140px 225px 0 225px;
  border-color: #fca5a5 transparent transparent transparent;
  transform-origin: top;
  z-index: 60;
  transition: transform 0.6s ease-in-out;
}

.heart-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -20%);
  z-index: 70;
  font-size: 2.2rem;
  color: #b91c1c;
  cursor: pointer;
  transition: all 0.4s ease;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
}

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

.envelope.open .heart-seal {
  opacity: 0;
  transform: translate(-50%, -20%) scale(0.2);
  pointer-events: none;
}

/* Letter Content styling */
.letter {
  position: absolute;
  left: 20px;
  bottom: 10px;
  width: 410px;
  height: 250px;
  background: #fffdf7;
  color: #331623;
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 30;
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}

.envelope.open .letter {
  transform: translateY(-200px);
  height: 380px;
  z-index: 55;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

.letter-content {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #331623;
  line-height: 1.6;
}

.letter-dear {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--color-primary);
}

.letter-text {
  min-height: 150px;
  font-size: 0.9rem;
  white-space: pre-line;
}

.letter-signature {
  margin-top: 1.5rem;
  text-align: right;
  font-style: italic;
  font-size: 0.9rem;
}

.signature-name {
  font-family: var(--font-handwriting);
  font-size: 2.2rem;
  color: var(--color-primary);
  font-weight: 400;
  display: block;
  margin-top: -0.2rem;
}

/* --- SECTION 2: MEMORIES (POLAROID GRID) --- */
.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 1rem 0;
}

.polaroid-card {
  background: white;
  color: #331623;
  padding: 1.2rem 1.2rem 2rem 1.2rem;
  box-shadow: var(--shadow-md);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.03);
  transform: rotate(var(--rotation, 0deg));
}

.polaroid-card:hover {
  transform: rotate(0deg) scale(1.06) translateY(-10px);
  box-shadow: var(--shadow-lg), 0 0 10px rgba(255, 82, 123, 0.1);
  z-index: 20;
}

.polaroid-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.05);
}

.polaroid-caption {
  font-family: var(--font-handwriting);
  font-size: 2rem;
  color: #331623;
  margin-top: 1.2rem;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 0.5rem;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(30, 10, 19, 0.95);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.show {
  display: flex;
  opacity: 1;
}

.lightbox-content-wrapper {
  max-width: 85%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: zoomLightbox 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15) forwards;
}

@keyframes zoomLightbox {
  from { transform: scale(0.85); }
  to { transform: scale(1); }
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border: 4px solid white;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.lightbox-caption {
  font-size: 2.5rem;
  color: white;
  margin-top: 1.5rem;
  text-align: center;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  font-family: var(--font-handwriting);
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10001;
}

.lightbox-close:hover {
  color: var(--color-primary);
  transform: scale(1.1);
}

/* --- SECTION 3: WHY I LOVE YOU (FLIP CARDS) --- */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.flip-card {
  background-color: transparent;
  width: 100%;
  height: 250px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.flip-card-front {
  background: rgba(20, 15, 35, 0.7);
  color: var(--color-text-main);
  border: 1px solid var(--color-glass-border);
  border-bottom: 4px solid var(--color-primary);
  transition: all 0.3s ease;
}

.flip-card-front:hover {
  border-color: var(--color-primary-light);
  transform: translateY(-5px);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.flip-card-front h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.tap-hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.flip-card-back {
  background: linear-gradient(135deg, #1f1b3d 0%, #151125 100%);
  color: var(--color-text-main);
  border: 1px solid var(--color-primary-light);
  transform: rotateY(180deg);
  line-height: 1.7;
  font-size: 1.05rem;
  font-weight: 500;
}

/* --- SECTION 4: LOVE COUPONS --- */
.coupons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 2.5rem;
}

.coupon-card {
  position: relative;
  background: white;
  padding: 1.5rem;
  border: 1px solid var(--color-glass-border);
  box-shadow: var(--shadow-md);
  border-radius: 12px;
  overflow: visible;
  transition: all 0.3s ease;
}

.coupon-dashed {
  border: 2px dashed rgba(255, 82, 123, 0.3);
  padding: 1.5rem 1.2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
}

.coupon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.coupon-tag {
  background: rgba(255, 82, 123, 0.1);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.ticket-logo {
  color: var(--color-primary-light);
  font-size: 1.4rem;
}

.coupon-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--color-text-main);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.coupon-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex: 1;
}

.redeem-btn {
  width: 100%;
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.redeem-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
}

/* Coupon Edge Holes effect */
.coupon-edge-holes::before, .coupon-edge-holes::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background-color: var(--color-bg-base); /* match main background */
  border-radius: 50%;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
  border: 1px solid var(--color-glass-border);
}

.coupon-edge-holes::before {
  left: -10px;
  transform: translateY(-50%) rotate(45deg);
}

.coupon-edge-holes::after {
  right: -10px;
  transform: translateY(-50%) rotate(-135deg);
}

/* Redeemed State */
.coupon-card.redeemed {
  transform: none !important;
  box-shadow: var(--shadow-sm);
}

.coupon-card.redeemed .coupon-dashed {
  border-color: #d1d5db;
}

.coupon-card.redeemed .coupon-tag {
  background: #f3f4f6;
  color: #6b7280;
}

.coupon-card.redeemed .ticket-logo {
  color: #d1d5db;
}

.coupon-card.redeemed .coupon-title {
  color: #9ca3af;
  text-decoration: line-through;
}

.coupon-card.redeemed .coupon-desc {
  color: #9ca3af;
}

.coupon-card.redeemed .redeem-btn {
  background: #10b981; /* Green */
  color: white;
  cursor: default;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}

/* --- SECTION 5: LOVE NOTES / STREAM --- */
.bottle-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Scroll letter style */
.scroll-letter {
  background: #fefcf3;
  border: 2px solid #ecdca5;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.scroll-letter::before, .scroll-letter::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 12px;
  background: radial-gradient(circle, #ecdca5 30%, transparent 40%) 0 0/16px 16px;
}

.scroll-letter::before {
  top: 0;
}

.scroll-letter::after {
  bottom: 0;
}

.scroll-inner {
  padding: 3rem 2.5rem;
}

.scroll-title {
  font-size: 2.5rem;
  color: #b45309;
  text-align: center;
  margin-bottom: 1.5rem;
}

#love-note-input {
  width: 100%;
  padding: 1rem;
  background: transparent;
  border: 1px dashed #ecdca5;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #78350f;
  line-height: 1.6;
  outline: none;
  resize: vertical;
}

#love-note-input:focus {
  border-color: #b45309;
  background: rgba(254, 243, 199, 0.3);
}

.send-note-btn {
  margin-top: 1.5rem;
  width: 100%;
  background: #b45309;
  color: white;
  border: none;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.send-note-btn:hover {
  background: #92400e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Memory Chest Box */
.chest-wrapper {
  max-height: 500px;
  display: flex;
  flex-direction: column;
}

.chest-wrapper h3 {
  font-family: var(--font-title);
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chest-intro {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.chest-notes {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 0.5rem;
}

/* Custom Scrollbar for scrollable containers */
.chest-notes::-webkit-scrollbar,
.letter::-webkit-scrollbar {
  width: 6px;
}

.chest-notes::-webkit-scrollbar-track,
.letter::-webkit-scrollbar-track {
  background: transparent;
}

.chest-notes::-webkit-scrollbar-thumb,
.letter::-webkit-scrollbar-thumb {
  background: rgba(255, 82, 123, 0.15);
  border-radius: 3px;
}

.chest-notes::-webkit-scrollbar-thumb:hover,
.letter::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-light);
}

.chest-note-item {
  background: white;
  padding: 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--color-glass-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  animation: fadeInPanel 0.4s ease-out forwards;
}

.chest-note-text {
  font-size: 0.9rem;
  color: var(--color-text-main);
  line-height: 1.5;
  white-space: pre-line;
  margin-bottom: 0.6rem;
}

.chest-note-date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.chest-note-delete {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  opacity: 0.5;
  transition: opacity 0.2s, color 0.2s;
}

.chest-note-delete:hover {
  opacity: 1;
  color: var(--color-primary);
}

.no-notes-placeholder {
  text-align: center;
  color: var(--color-text-muted);
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 3rem;
}

/* Confetti overlay */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
}

/* Media Queries for Responsiveness */

/* Desktop & Tablets */
@media (max-width: 1024px) {
  .bottle-content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .content-area {
    padding: 2rem 2rem 4rem 2rem;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .main-header {
    padding: 1rem 1.5rem;
  }

  .nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 0.4rem;
    z-index: 1000;
  }

  .nav-bar ul {
    justify-content: space-around;
    gap: 0;
  }

  .nav-tab {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    flex-direction: column;
    gap: 0.2rem;
    border-radius: 8px;
  }

  .nav-tab i {
    font-size: 1.2rem;
  }

  .nav-tab .tab-label {
    display: block; /* keep standard layout but stacked */
    font-size: 0.65rem;
  }
  
  .content-area {
    padding: 1.5rem 1.2rem 6rem 1.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .cursive {
    font-size: 2.2rem;
  }

  .timer-value {
    font-size: 1.7rem;
  }

  .timer-segment {
    min-width: 60px;
    padding: 0.6rem 0.3rem;
  }

  .envelope {
    width: 320px;
    height: 200px;
  }

  .envelope::before, .envelope::after {
    border-width: 100px 160px 100px 160px;
  }

  .flap {
    border-width: 100px 160px 0 160px;
  }

  .letter {
    width: 290px;
    height: 180px;
    left: 15px;
    bottom: 10px;
  }

  .envelope.open .letter {
    transform: translateY(-120px);
    height: 270px;
  }

  .polaroid-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
  }
}
