/* ==========================================================================
   For My Purba — Happy 1st Anniversary ❤️ From Kuntal
   ========================================================================== */

/* ---------------- CSS Variables ---------------- */
:root {
    --bg-dark: #0a0410;
    --bg-card: rgba(28, 14, 38, 0.75);
    --bg-card-hover: rgba(42, 22, 58, 0.88);
    --bg-glass: rgba(255, 255, 255, 0.06);
    --border-glass: rgba(246, 192, 83, 0.24);
    --border-glass-subtle: rgba(255, 255, 255, 0.08);

    /* Romantic Palette */
    --gold-primary: #F6C053;
    --gold-light: #FCE6AD;
    --gold-dark: #C8952B;
    --gold-gradient: linear-gradient(135deg, #FFF1C5 0%, #F6C053 50%, #D49826 100%);
    --gold-text-glow: 0 0 16px rgba(246, 192, 83, 0.45);

    --ruby-primary: #FF3366;
    --ruby-glow: rgba(255, 51, 102, 0.35);
    --ruby-gradient: linear-gradient(135deg, #FF6584 0%, #FF3366 60%, #C41C48 100%);

    --rose-gold: #FFB3BA;
    --text-pure: #FFFFFF;
    --text-muted: #D5CCE0;
    --text-subtle: #9E91B0;

    /* Fonts */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-display: 'Cinzel', serif;
    --font-script: 'Great Vibes', cursive;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    /* Layout Sizing */
    --mobile-max-width: 480px;
    --safe-top: max(16px, env(safe-area-inset-top));
    --safe-bottom: max(20px, env(safe-area-inset-bottom));
    --border-radius-card: 22px;
    
    /* Smooth Transitions */
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------- Reset & Base ---------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    background-color: var(--bg-dark);
    color: var(--text-pure);
    font-family: var(--font-sans);
    font-size: 16px;
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
    background: radial-gradient(circle at 50% 0%, #220e33 0%, #0d0515 65%, #050208 100%);
    background-attachment: fixed;
    padding-bottom: calc(var(--safe-bottom) + 30px);
}

/* Container */
.mobile-container {
    width: 100%;
    max-width: var(--mobile-max-width);
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

/* ================= SURPRISE GIFT UNBOXING SCREEN ================= */
.gift-unboxing-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, #2b0e3f 0%, #150620 60%, #08020d 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.3, 1), transform 0.8s ease, visibility 0.8s;
}

.gift-unboxing-overlay.opened {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.08);
}

.gift-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 360px;
}

.gift-mini-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-primary);
    background: rgba(246, 192, 83, 0.12);
    border: 1px solid rgba(246, 192, 83, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.gift-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.gift-subtitle {
    font-size: 0.88rem;
    color: var(--rose-gold);
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

/* 3D Gift Box */
.gift-box-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 4px auto 18px;
    cursor: pointer;
    perspective: 800px;
}

.gift-glow {
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(246, 192, 83, 0.4) 0%, rgba(255, 51, 102, 0.25) 50%, transparent 70%);
    filter: blur(14px);
    animation: giftGlowPulse 2s infinite ease-in-out;
}
@keyframes giftGlowPulse {
    0%, 100% { transform: scale(0.95); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

.gift-box {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.gift-lid {
    position: absolute;
    top: 25px;
    width: 150px;
    height: 34px;
    background: linear-gradient(180deg, #d82348 0%, #aa1433 100%);
    border-radius: 8px 8px 4px 4px;
    border: 2px solid #ff7b97;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
    z-index: 4;
    transition: transform 0.6s var(--ease-spring), opacity 0.4s ease;
}

.gift-box-wrapper.opening .gift-lid {
    transform: translateY(-90px) rotate(-16deg);
    opacity: 0;
}

.gift-body {
    width: 136px;
    height: 105px;
    background: linear-gradient(180deg, #b81c3b 0%, #850f26 100%);
    border-radius: 0 0 12px 12px;
    border: 2px solid #e63956;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    z-index: 2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ribbons */
.gift-ribbon-v {
    position: absolute;
    top: 25px;
    bottom: 0;
    width: 22px;
    background: linear-gradient(90deg, #ffeaa7, #f6c053, #d49826);
    box-shadow: 0 0 8px rgba(246, 192, 83, 0.6);
    z-index: 5;
}
.gift-ribbon-h {
    position: absolute;
    top: 78px;
    left: 12px;
    right: 12px;
    height: 20px;
    background: linear-gradient(180deg, #ffeaa7, #f6c053, #d49826);
    box-shadow: 0 0 8px rgba(246, 192, 83, 0.6);
    z-index: 3;
}

/* Bow */
.gift-bow {
    position: absolute;
    top: 0px;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease, opacity 0.3s;
}
.gift-box-wrapper.opening .gift-bow {
    transform: scale(1.4) translateY(-40px);
    opacity: 0;
}
.bow-center {
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 8px rgba(246, 192, 83, 0.8));
    animation: bowWiggle 2.5s infinite ease-in-out;
}
@keyframes bowWiggle {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(-8deg); }
    30% { transform: rotate(8deg); }
    45% { transform: rotate(0deg); }
}

.gift-heart-tag {
    position: absolute;
    bottom: 12px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 800;
    color: #ffd700;
    background: rgba(0, 0, 0, 0.45);
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 1px;
    z-index: 6;
}

/* Gift Countdown Card (Time Remaining Until 18th Nov) */
.gift-countdown-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(246, 192, 83, 0.35);
    border-radius: 18px;
    padding: 10px 14px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    width: 100%;
    max-width: 320px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    text-align: center;
}

.gift-countdown-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.gift-timer-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}

.gift-timer-box {
    background: rgba(18, 6, 26, 0.75);
    border: 1px solid rgba(246, 192, 83, 0.25);
    border-radius: 10px;
    padding: 6px 8px;
    min-width: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gift-timer-box.gift-secs-box {
    border-color: var(--ruby-primary);
    background: rgba(255, 51, 102, 0.12);
}

.gift-timer-num {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.gift-timer-box.gift-secs-box .gift-timer-num {
    color: #ff6b8b;
}

.gift-timer-sub {
    font-size: 0.58rem;
    font-weight: 800;
    color: var(--text-subtle);
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.gift-timer-sep {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-primary);
    opacity: 0.7;
    margin: 0 1px;
}

.gift-countdown-note {
    display: block;
    font-size: 0.68rem;
    color: var(--rose-gold);
    letter-spacing: 0.3px;
}

/* Gift Prompt */
.gift-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.tap-hand {
    font-size: 1.6rem;
    animation: tapHandPulse 1.2s infinite ease-in-out;
}
@keyframes tapHandPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}
.prompt-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.5px;
}
.gift-sender {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 2px;
}

/* ---------------- Ambient Lighting ---------------- */
.ambient-glow-wrapper {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.55;
    animation: floatGlow 14s ease-in-out infinite alternate;
}
.glow-1 {
    width: 280px;
    height: 280px;
    top: -50px;
    right: -40px;
    background: radial-gradient(circle, rgba(255, 51, 102, 0.28) 0%, rgba(255, 51, 102, 0) 70%);
}
.glow-2 {
    width: 320px;
    height: 320px;
    top: 40%;
    left: -80px;
    background: radial-gradient(circle, rgba(246, 192, 83, 0.22) 0%, rgba(246, 192, 83, 0) 70%);
    animation-delay: -5s;
}
.glow-3 {
    width: 260px;
    height: 260px;
    bottom: 120px;
    right: -50px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(168, 85, 247, 0) 70%);
    animation-delay: -9s;
}
@keyframes floatGlow {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(35px) scale(1.15); }
}

/* ---------------- Top Romantic Header Bar ---------------- */
.top-app-bar {
    position: sticky;
    top: 0;
    width: 100%;
    max-width: var(--mobile-max-width);
    margin: 0 auto;
    padding-top: var(--safe-top);
    padding-bottom: 10px;
    padding-left: 14px;
    padding-right: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    z-index: 100;
    background: linear-gradient(180deg, rgba(10, 4, 16, 0.96) 0%, rgba(10, 4, 16, 0.85) 75%, transparent 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.brand-monogram {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.5px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 25px;
}
.monogram-heart {
    color: var(--ruby-primary);
    font-size: 0.85rem;
    animation: heartThump 1.4s ease-in-out infinite;
}
@keyframes heartThump {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.22); }
    30% { transform: scale(1.05); }
    45% { transform: scale(1.28); }
    60% { transform: scale(1); }
}

.pill-btn {
    border: 1px solid var(--border-glass);
    background: rgba(36, 17, 50, 0.75);
    color: var(--gold-light);
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s var(--ease-smooth);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.music-pill {
    border-color: rgba(246, 192, 83, 0.4);
    background: linear-gradient(135deg, rgba(54, 23, 76, 0.9) 0%, rgba(32, 13, 46, 0.9) 100%);
}
.music-pill.playing {
    border-color: var(--gold-primary);
    box-shadow: 0 0 16px rgba(246, 192, 83, 0.4);
}
.disc-icon {
    font-size: 0.95rem;
    display: inline-block;
}
.music-pill.playing .disc-icon {
    animation: spinDisc 3s linear infinite;
}
@keyframes spinDisc {
    100% { transform: rotate(360deg); }
}
.track-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
}
.track-info strong {
    font-size: 0.76rem;
    color: #fff;
}
.track-info small {
    font-size: 0.65rem;
    color: var(--rose-gold);
}

/* ---------------- Section Common ---------------- */
.section {
    padding: 24px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
}
.section-subtitle {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-primary);
    margin-bottom: 5px;
}
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 5.5vw, 1.55rem);
    font-weight: 700;
    line-height: 1.25;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    white-space: nowrap;
}
.header-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}
.header-divider .line {
    width: 44px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}
.header-divider .icon {
    font-size: 0.9rem;
    color: var(--gold-light);
}
.section-desc {
    font-size: clamp(0.74rem, 3.2vw, 0.85rem);
    color: var(--text-muted);
    line-height: 1.4;
    white-space: nowrap;
    margin: 0 auto;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-card);
    padding: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

/* ---------------- HERO SECTION ---------------- */
.hero-section {
    padding-top: 10px;
    padding-bottom: 24px;
    text-align: center;
}

.celebration-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(246, 192, 83, 0.12);
    border: 1px solid rgba(246, 192, 83, 0.4);
    padding: 6px 14px;
    border-radius: 40px;
    color: var(--gold-light);
    font-size: clamp(0.72rem, 3.2vw, 0.8rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    box-shadow: 0 0 20px rgba(246, 192, 83, 0.18);
    white-space: nowrap;
}
.sparkle-icon {
    font-size: 0.95rem;
    animation: sparkleTwinkle 2s infinite ease-in-out;
}
@keyframes sparkleTwinkle {
    0%, 100% { opacity: 0.6; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.15); }
}

.couple-title-wrapper {
    margin-bottom: 22px;
}
.sub-script {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--rose-gold);
    font-weight: 400;
    margin-bottom: -6px;
}
.couple-names {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.1;
}
.couple-names .bride-focus {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 12px rgba(246, 192, 83, 0.4));
}
.hero-dedication {
    font-size: clamp(0.74rem, 3.4vw, 0.84rem);
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-top: 8px;
    white-space: nowrap;
}
.hero-dedication strong {
    color: var(--gold-light);
}

/* Spotlight Frame */
.hero-photo-showcase {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ring-glow-effect {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #FF3366, #F6C053, #A855F7, #FF3366);
    filter: blur(12px);
    opacity: 0.65;
    animation: rotateRing 8s linear infinite;
}
@keyframes rotateRing {
    100% { transform: rotate(360deg); }
}

.spotlight-frame {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(246, 192, 83, 0.4);
    z-index: 2;
    cursor: pointer;
    transition: transform 0.4s var(--ease-spring);
}
.spotlight-frame:active {
    transform: scale(0.97);
}
.spotlight-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.6s var(--ease-smooth);
}
.spotlight-frame:hover .spotlight-img {
    transform: scale(1.06);
}

.spotlight-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 16px;
}
.moment-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold-light);
    background: rgba(0,0,0,0.55);
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.photo-dots {
    position: absolute;
    bottom: -16px;
    display: flex;
    gap: 6px;
}
.photo-dots .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transition: all 0.3s;
    cursor: pointer;
}
.photo-dots .dot.active {
    width: 22px;
    border-radius: 8px;
    background: var(--gold-primary);
}

.hero-quote-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(0.78rem, 3.5vw, 0.92rem);
    color: var(--rose-gold);
    line-height: 1.4;
    white-space: nowrap;
    margin: 16px auto 0;
}

/* ---------------- LIVE TIME TICKING SECTION ---------------- */
.timer-section {
    padding-top: 10px;
}

.clock-display-card {
    background: linear-gradient(145deg, rgba(34, 15, 48, 0.85) 0%, rgba(19, 8, 28, 0.95) 100%);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-card);
    padding: 18px 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    margin-bottom: 18px;
    position: relative;
}

.clock-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #4ade80;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4ade80;
    box-shadow: 0 0 10px #4ade80;
    animation: livePulse 1.2s infinite ease-in-out;
}
@keyframes livePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.5; }
}

.anniversary-date-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.5px;
}

/* 4-Box Grid */
.timer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.timer-box {
    background: rgba(14, 6, 20, 0.85);
    border: 1px solid rgba(246, 192, 83, 0.25);
    border-radius: 14px;
    padding: 10px 4px;
    text-align: center;
    position: relative;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.timer-box.active-pulse {
    border-color: var(--ruby-primary);
    background: radial-gradient(circle at 50% 50%, rgba(255, 51, 102, 0.15) 0%, rgba(14, 6, 20, 0.9) 80%);
}

.timer-box.tick-pulse {
    animation: secTickEffect 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes secTickEffect {
    0% { transform: scale(1); }
    40% { transform: scale(1.08); box-shadow: 0 0 16px rgba(255, 51, 102, 0.6); }
    100% { transform: scale(1); }
}

.timer-number-wrapper {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.timer-number {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.5px;
}
.timer-box#daysBox .timer-number {
    color: var(--gold-light);
    text-shadow: 0 0 12px rgba(246, 192, 83, 0.5);
}
.timer-box#secsBox .timer-number {
    color: #ff6584;
    text-shadow: 0 0 12px rgba(255, 51, 102, 0.6);
}

.timer-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-subtle);
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Total Seconds Heartbeat */
.live-heartbeat-banner {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.25);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.heartbeat-icon {
    font-size: 1.5rem;
    animation: heartThump 1s ease-in-out infinite;
}
.heartbeat-text {
    display: flex;
    flex-direction: column;
}
.total-seconds-count {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}
.heartbeat-text .subtext {
    font-size: clamp(0.64rem, 2.8vw, 0.72rem);
    color: var(--rose-gold);
    white-space: nowrap;
}

/* Milestone Horizontal Scroll Row */
.milestones-scroll-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.milestones-scroll-row::-webkit-scrollbar {
    display: none;
}
.milestone-pill {
    flex: 0 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-glass-subtle);
    border-radius: 16px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}
.m-icon {
    font-size: 1.3rem;
}
.m-info {
    display: flex;
    flex-direction: column;
}
.m-info strong {
    font-size: 0.85rem;
    color: var(--gold-light);
}
.m-info span {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* ---------------- 12 GOLDEN MEMORIES GALLERY ---------------- */
.gallery-section {
    padding-top: 10px;
}

.polaroid-deck-view {
    position: relative;
    width: 100%;
}
.deck-controls-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
}
.deck-counter {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: 0.5px;
}
.deck-hint {
    font-size: 0.72rem;
    color: var(--text-subtle);
}

.polaroid-stage {
    position: relative;
    width: 100%;
    height: 410px;
    margin: 0 auto;
    perspective: 1000px;
    touch-action: pan-y;
}

.polaroid-card {
    position: absolute;
    width: 295px;
    height: 385px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 12px 18px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.65), 0 2px 8px rgba(0,0,0,0.3);
    cursor: grab;
    user-select: none;
    transition: transform 0.4s var(--ease-spring), opacity 0.4s var(--ease-smooth);
    display: flex;
    flex-direction: column;
}
.polaroid-card:active {
    cursor: grabbing;
}

.polaroid-img-wrapper {
    width: 100%;
    height: 270px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #1a1a1a;
}
.polaroid-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.card-number-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.polaroid-caption-area {
    padding-top: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}
.polaroid-title {
    font-family: var(--font-script);
    font-size: 1.6rem;
    color: #2b1129;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 2px;
}
.polaroid-desc {
    font-size: 0.72rem;
    color: #6d5869;
    font-weight: 500;
}

.deck-nav-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
}
.nav-arrow-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--gold-light);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s var(--ease-smooth);
}
.nav-arrow-btn:active {
    transform: scale(0.9);
    background: var(--gold-primary);
    color: #000;
}
.heart-react-btn {
    background: rgba(255, 51, 102, 0.15);
    border: 1px solid rgba(255, 51, 102, 0.4);
    padding: 10px 18px;
    border-radius: 30px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.heart-react-btn:active {
    transform: scale(0.95);
    background: var(--ruby-primary);
}

/* ---------------- STORY SECTION ---------------- */
.story-section {
    padding-top: 10px;
}
.story-timeline {
    position: relative;
    padding-left: 36px;
}
.story-timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 15px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(180deg, var(--gold-primary) 0%, var(--ruby-primary) 70%, transparent 100%);
}
.timeline-step {
    position: relative;
    margin-bottom: 22px;
}
.step-marker {
    position: absolute;
    left: -36px;
    top: 6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #170724;
    border: 2px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(246, 192, 83, 0.4);
}
.step-num {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--gold-light);
}
.final-marker {
    border-color: var(--ruby-primary);
    box-shadow: 0 0 14px rgba(255, 51, 102, 0.5);
}
.step-icon {
    font-size: 0.85rem;
}

.step-content {
    padding: 16px;
}
.step-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-primary);
    display: block;
    margin-bottom: 4px;
}
.step-content h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 6px;
}
.step-content p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
}
.highlight-card {
    border-color: rgba(255, 51, 102, 0.4);
    background: linear-gradient(145deg, rgba(46, 17, 45, 0.8) 0%, rgba(20, 7, 30, 0.9) 100%);
}

/* ---------------- INTERACTIVE LOVE LETTER ---------------- */
.letter-section {
    padding-top: 10px;
}
.envelope-wrapper {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 20px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.interactive-envelope {
    position: relative;
    width: 310px;
    height: 205px;
    background: #b82b47;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
    perspective: 1200px;
}

.envelope-back {
    position: absolute;
    inset: 0;
    background: #8e1c34;
    border-radius: 12px;
}

.letter-paper-preview {
    position: absolute;
    width: 270px;
    height: 120px;
    left: 20px;
    top: 10px;
    background: #fffdf7;
    border-radius: 8px 8px 0 0;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 2;
    transition: transform 0.6s var(--ease-spring);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #ebd9c8;
}
.letter-stamp {
    font-size: 0.8rem;
    font-weight: 700;
    color: #8e1c34;
    margin-bottom: 4px;
}
.preview-line {
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: #4a2903;
}
.interactive-envelope.opened .letter-paper-preview {
    transform: translateY(-80px);
}

.envelope-front {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    border-bottom: 100px solid #a1233e;
    border-left: 155px solid #8e1c34;
    border-right: 155px solid #8e1c34;
    border-top: 105px solid transparent;
    border-radius: 0 0 12px 12px;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 155px solid transparent;
    border-right: 155px solid transparent;
    border-top: 110px solid #c93554;
    transform-origin: top center;
    transition: transform 0.6s ease;
    z-index: 4;
    border-radius: 12px 12px 0 0;
}
.interactive-envelope.opened .envelope-flap {
    transform: rotateX(180deg);
    z-index: 1;
}

.wax-seal {
    position: absolute;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: radial-gradient(circle, #f9df94 0%, #d49826 70%, #996515 100%);
    border: 3px solid #fffae8;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.6);
    z-index: 5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-spring);
}
.wax-seal:active {
    transform: translateX(-50%) scale(0.92);
}
.seal-inner {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 800;
    color: #4a2903;
    letter-spacing: 0.5px;
}
.envelope-hint {
    font-size: 0.78rem;
    color: var(--gold-light);
    margin-top: 14px;
    animation: bounceHint 2s infinite ease-in-out;
}
@keyframes bounceHint {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* ---------------- INTERACTIVE CAKE CUTTING ---------------- */
.cake-section {
    padding-top: 10px;
}
.cake-stage-card {
    background: linear-gradient(145deg, rgba(38, 16, 52, 0.8) 0%, rgba(18, 7, 26, 0.95) 100%);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-card);
    padding: 24px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cake-container {
    position: relative;
    width: 200px;
    height: 180px;
    margin: 10px auto 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.candle-wrapper {
    position: absolute;
    top: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}
.flame {
    width: 14px;
    height: 22px;
    background: radial-gradient(circle, #fff 0%, #ffdf00 40%, #ff4500 85%);
    border-radius: 50% 50% 35% 35%;
    box-shadow: 0 0 16px #ffae00, 0 0 30px #ff4500;
    animation: flicker 0.2s infinite alternate ease-in-out;
}
.flame.extinguished {
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s;
}
@keyframes flicker {
    0% { transform: scale(1) rotate(-2deg); }
    100% { transform: scale(1.1) rotate(2deg); }
}
.candle-stick {
    width: 22px;
    height: 32px;
    background: linear-gradient(90deg, #ffd700, #fffae8, #d4af37);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.candle-number {
    font-size: 0.95rem;
    font-weight: 800;
    color: #4a2d04;
}

.cake-tier {
    border-radius: 12px 12px 6px 6px;
    position: relative;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.tier-top {
    width: 120px;
    height: 52px;
    background: linear-gradient(180deg, #ff9ebb 0%, #e64977 100%);
    border: 2px solid #fff;
    margin-bottom: -3px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cake-frosting {
    font-size: 0.85rem;
    letter-spacing: 6px;
}
.tier-bottom {
    width: 180px;
    height: 65px;
    background: linear-gradient(180deg, #fff0f5 0%, #ffd1dc 60%, #f7a8bb 100%);
    border: 3px solid #fff;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cake-ribbon {
    background: var(--gold-gradient);
    padding: 3px 14px;
    border-radius: 15px;
    color: #3b1e06;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.cake-stand {
    width: 210px;
    height: 12px;
    background: linear-gradient(90deg, #999, #eee, #999);
    border-radius: 6px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.5);
    margin-top: -2px;
}

.cake-knife {
    position: absolute;
    right: 5px;
    top: 40px;
    font-size: 2.2rem;
    transform: rotate(45deg);
    transition: all 0.5s var(--ease-spring);
    z-index: 20;
    display: none;
}
.cake-knife.cutting {
    display: block;
    animation: cutAnimation 1.2s forwards ease;
}
@keyframes cutAnimation {
    0% { transform: translate(30px, -20px) rotate(45deg); opacity: 1; }
    50% { transform: translate(-30px, 15px) rotate(15deg); }
    100% { transform: translate(-10px, 30px) rotate(0deg); opacity: 0; }
}

.cut-cake-btn {
    background: var(--ruby-gradient);
    color: white;
    border: none;
    padding: 13px 26px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.cut-cake-btn:active {
    transform: scale(0.95);
}

.cake-congrats-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-top: 16px;
    line-height: 1.5;
    display: none;
    animation: fadeIn 0.6s ease;
}
.cake-congrats-text.show {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------------- FOOTER ---------------- */
.footer-section {
    padding-top: 20px;
    margin-bottom: 10px;
}
.footer-card {
    text-align: center;
    padding: 26px 16px;
}
.footer-hearts {
    font-size: 1.2rem;
    margin-bottom: 10px;
    letter-spacing: 6px;
}
.footer-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--gold-light);
    margin-bottom: 4px;
}
.footer-sub {
    font-size: 0.85rem;
    color: var(--rose-gold);
    margin-bottom: 8px;
    white-space: nowrap;
}
.footer-date-stamp {
    display: inline-block;
    font-size: 0.72rem;
    color: var(--text-subtle);
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    white-space: nowrap;
}
.copyright-note {
    font-size: 0.75rem;
    color: var(--gold-light);
    line-height: 1.5;
    white-space: nowrap;
}

/* ---------------- FULLSCREEN LOVE LETTER MODAL ---------------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(14px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-backdrop.hidden {
    display: none;
}

.letter-modal-card {
    width: 100%;
    max-width: 390px;
    max-height: 85vh;
    overflow-y: auto;
    background: #fffdf7;
    color: #2b1604;
    border-radius: 20px;
    padding: 24px 20px;
    position: relative;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 25px rgba(246, 192, 83, 0.35);
    animation: modalPopIn 0.35s var(--ease-spring);
}
.letter-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.08);
    color: #4a2903;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
@keyframes modalPopIn {
    0% { transform: scale(0.88); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.letter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #d1c0b0;
    padding-bottom: 8px;
    margin-bottom: 12px;
    gap: 10px;
}
.letter-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #8e1c34;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.letter-date {
    font-size: 0.72rem;
    color: #8c786a;
}
.salutation {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: #501625;
    margin-bottom: 10px;
}
.letter-body p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #3b2f2f;
    margin-bottom: 10px;
}
.letter-quote {
    font-family: var(--font-serif);
    font-style: italic;
    background: #fff4e6;
    border-left: 3px solid var(--gold-primary);
    padding: 8px 12px;
    margin: 12px 0;
    font-size: 0.86rem;
    color: #632d00;
}
.letter-sign-off {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
}
.letter-sign-off span {
    font-size: 0.82rem;
    color: #6d5869;
}
.letter-sign-off strong {
    font-family: var(--font-script);
    font-size: 1.6rem;
    color: #8e1c34;
    margin-top: 2px;
}

.letter-actions {
    display: flex;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #ebd9c8;
}
.close-letter-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: #8e1c34;
    color: #fff;
    transition: all 0.2s;
}

/* ---------------- FULLSCREEN LIGHTBOX MODAL ---------------- */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(7, 2, 10, 0.95);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.lightbox-modal.active {
    display: flex;
}
.lightbox-close {
    position: absolute;
    top: calc(var(--safe-top) + 10px);
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2010;
}
.lightbox-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lightbox-image-box {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 16px 40px rgba(0,0,0,0.8);
    border: 1px solid var(--border-glass);
}
.lightbox-img {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    display: block;
}
.lightbox-caption {
    padding: 16px;
    background: rgba(24, 10, 34, 0.95);
    text-align: center;
}
.lightbox-caption h4 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--gold-light);
    margin-bottom: 4px;
}
.lightbox-caption p {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.lb-nav-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2010;
}
.lb-prev { left: -10px; }
.lb-next { right: -10px; }

/* ---------------- TOAST NOTIFICATION ---------------- */
.toast-notification {
    position: fixed;
    top: calc(var(--safe-top) + 60px);
    left: 50%;
    transform: translateX(-50%) translateY(-30px);
    background: rgba(246, 192, 83, 0.95);
    color: #241103;
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    z-index: 4000;
    transition: all 0.3s var(--ease-spring);
}
.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Floating Heart particles */
.floating-heart-particle {
    position: fixed;
    pointer-events: none;
    z-index: 999;
    user-select: none;
    animation: floatUpFade 2.4s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes floatUpFade {
    0% { transform: translate(0, 0) scale(0.6) rotate(0deg); opacity: 1; }
    100% { transform: translate(var(--x-shift), -180px) scale(1.3) rotate(var(--rot)); opacity: 0; }
}

/* ---------------- Tablet & Desktop Responsive Enhancements ---------------- */
@media (min-width: 768px) {
    :root {
        --mobile-max-width: 620px;
    }
    .couple-names {
        font-size: 3.4rem;
    }
    .hero-photo-showcase {
        width: 310px;
        height: 310px;
    }
    .spotlight-frame {
        width: 290px;
        height: 290px;
    }
    .timer-number {
        font-size: 1.8rem;
    }
    .timer-grid {
        gap: 12px;
    }
    .timer-box {
        padding: 14px 8px;
    }
}
