/* -------------------------------------------------------------
   OUR JOURNEY FOR INES - Warm Romantic & Spotify Wrapped Style
   ------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600&family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-gradient: linear-gradient(135deg, #FAF4F0 0%, #F5E6E0 40%, #EED5CE 100%);
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-border: rgba(255, 255, 255, 0.95);
  --primary: #B85B6C;
  --primary-hover: #9E4757;
  --rose-gold: #D49A89;
  --accent-gold: #E5B26E;
  --spotify-green: #1DB954;
  --wrapped-dark: #1E171A;
  --text-dark: #2D2327;
  --text-muted: #6E5B63;
  --shadow-soft: 0 15px 35px rgba(74, 52, 60, 0.08);
  --shadow-hover: 0 22px 45px rgba(184, 91, 108, 0.15);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-hand: 'Caveat', cursive;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

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

/* App Container */
.app-container {
  width: 100%;
  max-width: 920px;
  min-height: 90vh;
  margin: 0 auto;
  padding: 20px 20px 80px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
}

/* Top Navigation */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
}

.brand-badge {
  font-family: var(--font-hand);
  font-size: 1.7rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.audio-btn {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(212, 154, 137, 0.3);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 30px;
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

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

.audio-btn.playing .music-icon {
  animation: pulseMusic 1.5s infinite;
}

@keyframes pulseMusic {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); color: var(--primary); }
}

/* Timeline Track */
.timeline-bar-wrapper {
  width: 100%;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-track {
  height: 6px;
  width: 100%;
  background: rgba(212, 154, 137, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.timeline-fill {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, var(--rose-gold), var(--primary));
  border-radius: 10px;
  transition: width 0.5s ease-out;
}

.timeline-steps {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(212, 154, 137, 0.4);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.step-dot.active {
  background: var(--primary);
  transform: scale(1.5);
  box-shadow: 0 0 10px rgba(184, 91, 108, 0.5);
}

.step-dot.completed {
  background: var(--rose-gold);
}

/* Story Card Wrapper */
.story-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

/* Slide Cards Base */
.slide-card {
  position: absolute;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 36px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.slide-card.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Typography & Badges */
.chapter-tag {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.slide-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 12px;
}

.slide-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 20px;
}

.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(184, 91, 108, 0.12), rgba(212, 154, 137, 0.18));
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.quote-box {
  background: rgba(212, 154, 137, 0.1);
  border-left: 4px solid var(--primary);
  padding: 14px 18px;
  border-radius: 0 14px 14px 0;
  margin: 14px 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-dark);
  text-align: left;
}

/* Spotify Wrapped Card Styling */
.wrapped-card {
  background: linear-gradient(145deg, #2A1F24 0%, #1A1316 100%);
  color: #FFF;
  border-radius: 24px;
  padding: 32px 28px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.wrapped-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px stroke rgba(255,255,255,0.1);
  padding-bottom: 12px;
}

.wrapped-logo {
  font-family: var(--font-hand);
  font-size: 1.8rem;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

.wrapped-badge {
  background: var(--primary);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 1px;
}

.wrapped-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: left;
}

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

.wrapped-stat-box {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease;
}

.wrapped-stat-box:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--rose-gold);
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 6px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #FFF;
  line-height: 1.2;
}

.stat-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* Image Polaroid Frame */
.polaroid-frame {
  background: #FFF;
  padding: 12px 12px 24px 12px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: rotate(-1.5deg);
  transition: var(--transition-smooth);
  width: 100%;
}

.polaroid-frame:hover {
  transform: rotate(0deg) scale(1.02);
}

.polaroid-frame img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #F7F3F0;
  border-radius: 6px;
  cursor: zoom-in;
}

.polaroid-caption {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

/* Dual Image Grid */
.dual-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

@media (max-width: 640px) {
  .dual-image-grid {
    grid-template-columns: 1fr;
  }
}

/* Food Gallery Grid */
.food-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin-top: 12px;
}

@media (max-width: 640px) {
  .food-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.food-item {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  height: 140px;
  position: relative;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

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

.food-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

/* Song Player Cards */
.song-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.song-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  border: 1px solid rgba(212, 154, 137, 0.25);
  text-align: left;
}

.song-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--rose-gold));
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.song-info {
  flex: 1;
}

.song-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.song-artist {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.song-link {
  background: #FF0000;
  color: #FFF;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease;
}

.song-link:hover {
  transform: scale(1.05);
}

/* Mystery Gift Box */
.gift-box-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
}

.gift-box-icon {
  font-size: 5rem;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: bounceGift 2s infinite ease-in-out;
}

.gift-box-icon:hover {
  transform: scale(1.2) rotate(5deg);
}

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

.teaser-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 24px;
  border: 2px dashed var(--rose-gold);
  max-width: 500px;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s ease;
}

.teaser-card.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Cake & Candle Section */
.cake-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 16px 0;
}

.cake-stage {
  width: 220px;
  height: 190px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.cake-plate {
  width: 220px;
  height: 16px;
  background: #EAE0DC;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
}

.cake-layer-bottom {
  width: 180px;
  height: 55px;
  background: linear-gradient(to bottom, #F9D5D3, #E8B4B2);
  border-radius: 16px 16px 8px 8px;
  position: relative;
  z-index: 2;
}

.cake-layer-top {
  width: 130px;
  height: 50px;
  background: linear-gradient(to bottom, #FFF, #F9D5D3);
  border-radius: 14px 14px 8px 8px;
  position: relative;
  z-index: 3;
  margin-bottom: -10px;
}

.candle {
  width: 14px;
  height: 48px;
  background: repeating-linear-gradient(45deg, #FFF, #FFF 6px, var(--rose-gold) 6px, var(--rose-gold) 12px);
  border-radius: 4px;
  position: relative;
  z-index: 4;
  margin-bottom: -5px;
}

.flame {
  width: 16px;
  height: 26px;
  background: linear-gradient(to top, #FF9F1C, #FFD166, #FFF);
  border-radius: 50% 50% 20% 20%;
  position: absolute;
  top: -24px;
  left: -1px;
  box-shadow: 0 0 18px #FFD166, 0 0 35px #FF9F1C;
  animation: flickerFlame 0.8s infinite alternate ease-in-out;
  transform-origin: center bottom;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.flame.extinguished {
  opacity: 0;
  transform: scale(0);
}

.smoke {
  position: absolute;
  top: -30px;
  left: 2px;
  width: 10px;
  height: 10px;
  background: rgba(200, 200, 200, 0.6);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.smoke.active {
  animation: smokeRise 1.8s ease-out forwards;
}

@keyframes smokeRise {
  0% { opacity: 0.8; transform: translateY(0) scale(1); }
  50% { opacity: 0.5; transform: translateY(-25px) scale(2); }
  100% { opacity: 0; transform: translateY(-50px) scale(3.5); }
}

@keyframes flickerFlame {
  0% { transform: scale(1) rotate(-1deg); }
  50% { transform: scale(1.08) rotate(1deg); }
  100% { transform: scale(0.96) rotate(-2deg); }
}

.blow-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.blow-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #FFF;
  border: none;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(184, 91, 108, 0.3);
  transition: var(--transition-smooth);
}

.blow-btn:hover {
  transform: translateY(-3px) scale(1.03);
}

/* Bottom Navigation Controls */
.nav-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: auto;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(212, 154, 137, 0.4);
  color: var(--text-dark);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.nav-btn:hover:not(:disabled) {
  background: var(--primary);
  color: #FFF;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.nav-btn.primary-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #FFF;
  border: none;
}

/* Birthday Letter Modal */
.letter-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 20, 24, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  padding: 20px;
}

.letter-modal.active {
  opacity: 1;
  visibility: visible;
}

.letter-paper {
  background: #FFFDF9;
  background-image: radial-gradient(#F3EBE1 1px, transparent 0);
  background-size: 20px 20px;
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  border: 1px solid #EAE1D7;
  transform: scale(0.9);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.letter-modal.active .letter-paper {
  transform: scale(1);
}

.letter-header {
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 1px stroke rgba(212, 154, 137, 0.3);
  padding-bottom: 12px;
}

.letter-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--primary);
  font-weight: 700;
}

.letter-body {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #3D3236;
  white-space: pre-line;
  text-align: justify;
}

.letter-body p {
  margin-bottom: 12px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

/* Redeem Voucher Tickets Section */
.voucher-section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 2px dashed rgba(212, 154, 137, 0.3);
  text-align: center;
}

.voucher-title {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 4px;
}

.voucher-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.voucher-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

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

.voucher-card {
  background: linear-gradient(135deg, #FFF, #FAF2EF);
  border: 2px dashed var(--rose-gold);
  border-radius: 18px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.03);
}

.voucher-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 12px 25px rgba(184, 91, 108, 0.15);
  background: #FFF;
}

.voucher-card-full {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #FFF0F2, #FFF);
  border-color: var(--primary);
}

.voucher-badge {
  background: linear-gradient(135deg, var(--primary), var(--rose-gold));
  color: #FFF;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.voucher-icon {
  font-size: 2.2rem;
  margin: 2px 0;
}

.voucher-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.voucher-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 2px 0 6px 0;
  text-align: center;
}

.voucher-btn {
  background: #25D366;
  color: #FFF;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.voucher-card:hover .voucher-btn {
  background: #1EBE57;
  transform: scale(1.05);
}

/* Image Lightbox Preview Modal */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 10, 12, 0.88);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 24px;
}

.image-modal.active {
  opacity: 1;
  visibility: visible;
}

.image-modal-content {
  max-width: 92vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-modal.active .image-modal-content {
  transform: scale(1);
}

.image-modal-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.2);
}

.image-modal-caption {
  margin-top: 16px;
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: #FFF;
  text-align: center;
  letter-spacing: 0.5px;
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #FFF;
  font-size: 2.2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.image-modal-close:hover {
  background: var(--primary);
  transform: scale(1.1);
}

/* -------------------------------------------------------------
   Interactive Keypad PIN Lock Screen
   ------------------------------------------------------------- */
.lock-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 20, 24, 0.85);
  backdrop-filter: blur(16px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  padding: 20px;
}

.lock-screen.active {
  opacity: 1;
  visibility: visible;
}

.lock-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 32px;
  padding: 36px 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.4s ease;
}

.lock-screen.active .lock-card {
  transform: scale(1);
}

.lock-icon {
  font-size: 3rem;
  margin-bottom: 6px;
  animation: pulseLock 2s infinite ease-in-out;
}

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

.lock-title {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 4px;
}

.lock-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* PIN Dots Display */
.pin-dots {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.pin-dots .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--rose-gold);
  background: transparent;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pin-dots .dot.filled {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(184, 91, 108, 0.4);
}

.pin-dots.shake {
  animation: shakeInput 0.5s ease-in-out;
}

.pin-dots.shake .dot {
  border-color: #E74C3C;
  background: #E74C3C;
}

@keyframes shakeInput {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-12px); }
  40%, 80% { transform: translateX(12px); }
}

/* Keypad Grid 3x4 */
.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 300px;
  margin-bottom: 16px;
}

.key-btn {
  background: rgba(245, 230, 224, 0.6);
  border: 1px solid rgba(212, 154, 137, 0.3);
  color: var(--text-dark);
  font-size: 1.5rem;
  font-weight: 700;
  height: 64px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  user-select: none;
}

.key-btn:hover {
  background: var(--primary);
  color: #FFF;
  border-color: var(--primary);
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(184, 91, 108, 0.25);
}

.key-btn:active {
  transform: scale(0.95);
}

.key-btn.action-key {
  font-size: 1.1rem;
  background: rgba(212, 154, 137, 0.2);
  color: var(--primary);
}

.key-btn.action-key:hover {
  background: var(--rose-gold);
  color: #FFF;
}

.pin-error-msg {
  font-size: 0.85rem;
  color: #E74C3C;
  font-weight: 600;
  min-height: 22px;
  margin-bottom: 8px;
}

.pin-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(212, 154, 137, 0.12);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 500;
}

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