/* === VARIABEL TEMA === */
:root {
    --bg-color: #121212;
    --container-bg: rgba(30, 30, 30, 0.7);
    --text-color: #e0e0e0;
    --title-color: #ffffff;
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.8);
    --btn-bg: #222222;
    --btn-hover: #444444;
    --btn-text: #ffffff;
}

body.light-theme {
    --bg-color: #f5f5f5;
    --container-bg: rgba(255, 255, 255, 0.8);
    --text-color: #222222;
    --title-color: #000000;
    --border-color: #cccccc;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --btn-bg: #dddddd;
    --btn-hover: #bbbbbb;
    --btn-text: #111111;
}

/* === DASAR === */
body {
    margin: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color); background-color: var(--bg-color);
    transition: background-color 0.5s ease, color 0.5s ease;
    display: flex; justify-content: center; align-items: center; min-height: 100vh;
    overflow-x: hidden; 
}
p, span, div { line-height: 1.8; font-size: 16px; }
.text-title {
    color: var(--title-color); 
    font-size: 28px; 
    margin-top: 0; 
    margin-bottom: 30px; 
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 10px; 
}
.signature { font-weight: bold; margin-top: 40px; }

/* === KOTAK HIGHLIGHT PESAN PENTING === */
.highlight-box {
    background: rgba(74, 0, 30, 0.3); 
    border-left: 4px solid #4A001E; 
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.highlight-box p { margin: 0; }

/* === TOMBOL GLOBAL === */
.theme-btn {
    position: fixed; top: 25px; right: 25px; width: 50px; height: 50px;
    border-radius: 50%; background-color: var(--btn-bg); color: var(--btn-text);
    border: 1px solid var(--border-color); cursor: pointer; display: flex;
    justify-content: center; align-items: center; font-size: 20px;
    box-shadow: 0 4px 15px var(--shadow-color); transition: all 0.3s ease; z-index: 1000;
}
.theme-btn:hover { background-color: var(--btn-hover); transform: scale(1.05); }

.btn-kejutan {
    display: block; margin: 0 auto; padding: 12px 30px; border-radius: 30px;
    background-color: var(--btn-bg); color: var(--btn-text); border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px var(--shadow-color); cursor: pointer; font-size: 14px; transition: all 0.3s ease;
}
.btn-kejutan:hover { background-color: var(--btn-hover); }

/* === HALAMAN UTAMA === */
.content-container {
    padding: 60px 40px; 
    max-width: 800px; 
    width: 95%;       
    background: var(--container-bg); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px); 
    border-radius: 12px; 
    box-shadow: 0 10px 40px var(--shadow-color); 
    border: 1px solid var(--border-color); 
    box-sizing: border-box; 
    transition: background 0.5s ease, border-color 0.5s ease;
    margin: 100px auto 40px auto; 
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 1s ease forwards; }
@keyframes fadeIn { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }

/* === MODAL COUNTDOWN === */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.modal-box { background: var(--container-bg); padding: 40px; border-radius: 12px; text-align: center; border: 1px solid var(--border-color); width: 80%; max-width: 400px; box-sizing: border-box; }
.timer-text { font-size: 28px; font-weight: bold; margin: 25px 0; color: var(--text-color); font-family: monospace; letter-spacing: 2px; }

/* === FOTO POLAROID === */
.photo-section { display: flex; justify-content: center; max-width: 100%; }

.polaroid {
    background: #ffffff; padding: 12px 12px 35px 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6); 
    transform: rotate(-3deg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    box-sizing: border-box; 
    cursor: pointer;
    animation: floatingPin 3s ease-in-out infinite;
}

.polaroid:hover { 
    transform: scale(1.08) translateY(-15px) rotate(0deg) !important; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.5); 
    z-index: 50;
}

.polaroid-img { width: 300px; height: 200px; object-fit: cover; filter: sepia(15%) contrast(110%); max-width: 100%; }
.final-img { width: 320px; height: 215px; max-width: 100%; } 
.polaroid-caption { text-align: center; color: #333; font-weight: bold; margin-top: 10px; letter-spacing: 1px; font-size: 14px; }

/* === LAYAR PIN PAD === */
#pin-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-color); z-index: 9999; display: flex; justify-content: center; align-items: center; }
.pin-wrapper { display: flex; gap: 50px; justify-content: center; align-items: center; max-width: 900px; width: 95%; flex-wrap: wrap; }
.pin-section {
    background: var(--container-bg); padding: 30px 40px; border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-color); border: 1px solid var(--border-color);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    display: flex; flex-direction: column; align-items: center; width: auto; max-width: 100%; box-sizing: border-box;
}
.pin-subtitle { font-size: 14px; margin-bottom: 10px; color: var(--text-color); }

/* Kunci tinggi biar gak lompat, hapus position relative/absolute */
.clue-wrapper { 
    height: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    margin-bottom: 20px; 
    width: 100%;
}
.clue-link { 
    background: none; 
    border: none; 
    color: #888; 
    text-decoration: underline; 
    cursor: pointer; 
    font-size: 13px; 
    transition: 0.3s; 
    padding: 5px;
}

.clue-link:hover { color: #FFB6C1; }

.clue-hidden { 
    font-size: 13px; 
    color: #FFB6C1; 
    font-style: italic; 
    display: none; /* Balik ke display none biasa */
    margin: 0; 
}

.pin-display { display: flex; gap: 12px; margin-bottom: 30px; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--text-color); transition: all 0.2s; }
.dot.filled { background-color: var(--text-color); }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.num-btn {
    width: 55px; height: 55px; border-radius: 50%; background: transparent; border: 1px solid var(--border-color);
    color: var(--text-color); font-size: 20px; cursor: pointer; transition: all 0.2s; display: flex; justify-content: center; align-items: center;
}
.num-btn:hover, .num-btn:active { background: rgba(74, 0, 30, 0.8); color: #fff; border-color: #4A001E; }
.action-btn { font-size: 18px; color: #888; border: none; }
.shake { animation: shakeError 0.4s ease-in-out; }
@keyframes shakeError { 0%, 100% { transform: translateX(0); } 25%, 75% { transform: translateX(-10px); } 50% { transform: translateX(10px); } }

/* === LAYAR KEJUTAN FINAL === */
#final-surprise-screen { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: var(--bg-color); z-index: 10000; 
    display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden;
    padding: 40px 0; box-sizing: border-box;
}

.surprise-layout { 
    display: flex; align-items: center; justify-content: center; 
    width: 100%; max-width: 1200px; margin: auto; position: relative;
    padding-bottom: 30px; box-sizing: border-box;
}

.final-polaroid { 
    position: absolute; left: 20px; top: 50%; 
    transform: translateY(-50%) rotate(-3deg); 
    opacity: 0; 
    animation: slideInLeft 1s forwards 1.5s, floatFinal 4s ease-in-out infinite 2.5s; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
}

.final-polaroid:hover {
    transform: translateY(calc(-50% - 15px)) scale(1.08) rotate(0deg) !important; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 50;
}

.cake-section {
    position: absolute; right: 20px; top: 50%;
    transform: translateY(-50%); text-align: center;
    opacity: 0; animation: slideInRight 1s forwards 1.5s;
    display: flex; flex-direction: column; align-items: center;
}
.age-text { font-size: 90px; font-weight: bold; color: #FFB6C1; line-height: 1; text-shadow: 0 0 15px rgba(255, 182, 193, 0.4); margin-bottom: -5px; }
.age-label { font-size: 20px; color: var(--text-color); letter-spacing: 2px; margin-bottom: 10px; }

/* === AMPLOP WARNA SOLID MARON (BEBAS BUG) === */
/* === AMPLOP WARNA MERAH MUDA === */
.envelope-wrapper { 
    position: relative; width: 380px; height: 240px; 
    background: #FF8DA1; /* Merah muda utama */
    border-radius: 0 0 12px 12px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.6); 
    margin: 250px auto 0 auto; 
}
.envelope-wrapper::before { 
    content: ''; position: absolute; top: 0; left: 0; 
    border-top: 120px solid transparent; border-bottom: 120px solid transparent; 
    border-left: 190px solid #FFA6B7; /* Merah muda sisi kiri (lebih terang) */
    z-index: 3; 
}
.envelope-wrapper::after { 
    content: ''; position: absolute; top: 0; right: 0; 
    border-top: 120px solid transparent; border-bottom: 120px solid transparent; 
    border-right: 190px solid #E87087; /* Merah muda sisi kanan (lebih gelap) */
    z-index: 3; 
}
.envelope-bottom { 
    position: absolute; bottom: 0; left: 0; 
    border-left: 190px solid transparent; border-right: 190px solid transparent; 
    border-bottom: 120px solid #FF8DA1; /* Merah muda penutup bawah */
    z-index: 4; 
}
.envelope-flap { 
    position: absolute; top: 0; left: 0; 
    border-left: 190px solid transparent; border-right: 190px solid transparent; 
    border-top: 120px solid #D1536D; /* Merah muda penutup atas (paling gelap untuk bayangan) */
    transform-origin: top; z-index: 5; transition: transform 0.8s ease 0.5s; 
}
.envelope-wrapper.open .envelope-flap { transform: rotateX(180deg); z-index: 1; }
/* Kertas Surat - Animasi Aman & SWIPE-READY */
.letter {
    position: absolute; left: 15px; right: 15px; bottom: 10px; 
    background: #fdfaf2; border-radius: 5px; padding: 30px 20px;
    z-index: 2; opacity: 0; box-sizing: border-box; text-align: center; 
    height: 300px; transform: translateY(0);
}
.letter-content { width: 100%; display: flex; flex-direction: column; padding-bottom: 15px; }

.envelope-wrapper.open .letter { 
    animation: pullOutLetter 2s forwards cubic-bezier(0.4, 0, 0.2, 1);
    height: auto; max-height: 400px; 
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch; 
    scroll-behavior: smooth;
}

@keyframes pullOutLetter {
    0% { transform: translateY(0); z-index: 2; opacity: 0; }
    20% { opacity: 1; }
    50% { transform: translateY(-100px); z-index: 2; opacity: 1; } 
    51% { transform: translateY(-100px); z-index: 6; opacity: 1; } 
    100% { transform: translateY(-20px); z-index: 6; opacity: 1; box-shadow: 0 15px 30px rgba(0,0,0,0.4); } 
}

/* Custom Scrollbar */
.letter::-webkit-scrollbar { width: 5px; }
.letter::-webkit-scrollbar-thumb { background: rgba(74, 0, 30, 0.4); border-radius: 5px; }
.letter::-webkit-scrollbar-track { background: transparent; }

.birthday-title { color: #4A001E; font-size: 24px; margin-bottom: 15px; border-bottom: 1px dashed #ccc; padding-bottom: 10px; }
.birthday-message { color: #333; font-size: 15px; line-height: 1.8; }

.btn-tutup-hadiah { 
    background-color: #4A001E; color: #ffffff; border-color: #4A001E; 
    margin: 40px auto; position: relative; z-index: 100; opacity: 0; 
    animation: fadeIn 1s forwards 3s; 
}

/* --- KEYFRAMES POLAROID MENGAMBANG --- */
@keyframes floatingPin {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
}

@keyframes floatFinal {
    0%, 100% { transform: translateY(-50%) rotate(-3deg); }
    50% { transform: translateY(-53%) rotate(-1deg); } 
}

@keyframes slideInLeft { 0% { opacity: 0; transform: translateY(-50%) translateX(-30px) rotate(-3deg); } 100% { opacity: 1; transform: translateY(-50%) translateX(0) rotate(-3deg); } }
@keyframes slideInRight { 0% { opacity: 0; transform: translateY(-50%) translateX(30px); } 100% { opacity: 1; transform: translateY(-50%) translateX(0); } }

/* === EFEK CONFETTI === */
.confetti { position: fixed; top: -10px; z-index: 99999; width: 10px; height: 10px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }

/* === KUE ULANG TAHUN 16 LILIN (UPGRADE RED VELVET MARON) === */
.birthday-cake-css { display: flex; flex-direction: column; align-items: center; margin-top: 15px; }
.candles-row { display: flex; gap: 4px; align-items: flex-end; position: relative; z-index: 5; padding: 0 3px; margin-bottom: -2px; }
.candle { width: 6px; height: 22px; border-radius: 3px 3px 1px 1px; position: relative; flex-shrink: 0; background: linear-gradient(180deg, #FFE4E8 0%, #FFB6C1 60%, #FF85A1 100%); }
.candle:nth-child(even) { background: linear-gradient(180deg, #FFF8DC 0%, #FFE168 55%, #FFD700 100%); }
.candle:nth-child(3n) { background: linear-gradient(180deg, #E8D5FF 0%, #C9A0DC 55%, #9B59B6 100%); }
.flame { position: absolute; top: -13px; left: 50%; width: 7px; height: 12px; background: radial-gradient(ellipse at 50% 85%, #ffe566 0%, #ffaa00 50%, rgba(255, 80, 0, 0.7) 100%); border-radius: 50% 50% 25% 25%; transform-origin: 50% 100%; transform: translateX(-50%); filter: blur(0.5px); animation: flickerFlame 0.6s ease-in-out alternate infinite; }
@keyframes flickerFlame { 0% { transform: translateX(-50%) scaleX(1) scaleY(1) rotate(-4deg); opacity: 0.95; } 25% { transform: translateX(-52%) scaleX(0.88) scaleY(0.90) rotate(3deg); opacity: 1; } 75% { transform: translateX(-48%) scaleX(1.06) scaleY(1.06) rotate(-2deg); opacity: 0.88; } 100% { transform: translateX(-50%) scaleX(0.94) scaleY(0.93) rotate(4deg); opacity: 1; } }
.candle:nth-child(1) .flame { animation-delay: 0.00s; animation-duration: 0.55s; }
.candle:nth-child(2) .flame { animation-delay: 0.08s; animation-duration: 0.62s; }
.candle:nth-child(3) .flame { animation-delay: 0.15s; animation-duration: 0.50s; }
.candle:nth-child(4) .flame { animation-delay: 0.03s; animation-duration: 0.68s; }
.candle:nth-child(5) .flame { animation-delay: 0.20s; animation-duration: 0.57s; }
.candle:nth-child(6) .flame { animation-delay: 0.11s; animation-duration: 0.45s; }
.candle:nth-child(7) .flame { animation-delay: 0.06s; animation-duration: 0.63s; }
.candle:nth-child(8) .flame { animation-delay: 0.18s; animation-duration: 0.52s; }
.candle:nth-child(9) .flame { animation-delay: 0.09s; animation-duration: 0.59s; }
.candle:nth-child(10) .flame { animation-delay: 0.22s; animation-duration: 0.48s; }
.candle:nth-child(11) .flame { animation-delay: 0.04s; animation-duration: 0.65s; }
.candle:nth-child(12) .flame { animation-delay: 0.13s; animation-duration: 0.54s; }
.candle:nth-child(13) .flame { animation-delay: 0.19s; animation-duration: 0.61s; }
.candle:nth-child(14) .flame { animation-delay: 0.07s; animation-duration: 0.47s; }
.candle:nth-child(15) .flame { animation-delay: 0.16s; animation-duration: 0.58s; }
.candle:nth-child(16) .flame { animation-delay: 0.01s; animation-duration: 0.53s; }

/* Desain Kue Baru: Red Velvet Elegan */
/* === KUE WARNA MERAH MUDA === */
.cake-tier-top { 
    width: 160px; height: 42px; 
    /* Gradasi merah muda lembut untuk tingkat atas */
    background: linear-gradient(180deg, #f8efe0 0%, #f0e4cc 14%, #FFE4E8 20%, #FFB6C1 65%, #FF85A1 100%); 
    border-radius: 6px 6px 2px 2px; position: relative; box-shadow: 0 3px 8px rgba(0,0,0,0.3), inset 0 -2px 4px rgba(0,0,0,0.1); 
}
.cake-tier-top::after { content: ''; position: absolute; top: 55%; transform: translateY(-50%); left: 14px; right: 14px; height: 5px; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.55) 0px, rgba(255,255,255,0.55) 6px, transparent 6px, transparent 11px); border-radius: 3px; }

.cake-tier-bottom { 
    width: 200px; height: 56px; 
    /* Gradasi merah muda yang sedikit lebih tegas untuk tingkat bawah */
    background: linear-gradient(180deg, #f8efe0 0%, #f0e4cc 12%, #FFB6C1 18%, #FF8FAD 65%, #F06490 100%); 
    border-radius: 4px 4px 2px 2px; position: relative; box-shadow: 0 4px 12px rgba(0,0,0,0.35), inset 0 -3px 6px rgba(0,0,0,0.15); margin-top: -1px; 
}
.cake-tier-bottom::after { content: ''; position: absolute; top: 58%; transform: translateY(-50%); left: 18px; right: 18px; height: 5px; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.38) 0px, rgba(255,255,255,0.38) 8px, transparent 8px, transparent 14px); border-radius: 3px; }
.cake-plate-base { 
    width: 260px; height: 12px; 
    background: linear-gradient(to right, #999, #e6e6e6, #999); 
    border-radius: 50%; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.7); 
    margin-top: -3px; 
}

/* === RESPONSIVE KHUSUS HP === */
@media screen and (max-width: 900px) {
    .content-container { padding: 30px 20px; width: 95%; }
    .theme-btn { top: 15px; right: 15px; width: 40px; height: 40px; font-size: 16px; }
    
    .pin-wrapper { flex-direction: column; gap: 25px; margin-top: 10px; width: 100%; }
    
    /* Layout dibuat menyusun ke bawah biar rapi dan nggak nabrak */
    .surprise-layout { 
        flex-direction: column; 
        gap: 40px; 
        width: 100%; 
        margin: 0 auto; 
        justify-content: flex-start; 
        padding-top: 20px;
    }
    
    .final-polaroid { position: relative; left: 0; top: 0; transform: rotate(-2deg); animation: slideInLeftMobile 1s forwards 0.5s; margin: 0 auto; }
    .polaroid { max-width: 85%; padding: 10px 10px 30px 10px; margin: 0 auto; }
    .polaroid-img, .final-img { width: 280px; height: auto; aspect-ratio: 3/2; max-width: 100%; }
    
    .pin-section { padding: 25px 25px; width: 90%; max-width: 300px; }
    .num-btn { width: 50px; height: 50px; font-size: 18px; }
    .numpad { gap: 12px; }
    
    .envelope-wrapper { margin: 20px auto 0 auto; transform: scale(0.85); }
    
    .envelope-wrapper.open .letter { 
        animation: pullOutLetterMobile 2s forwards cubic-bezier(0.4, 0, 0.2, 1); 
        max-height: 400px; 
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Taruh di dalam @media screen and (max-width: 900px) */
    .cake-section { 
        position: absolute; 
        bottom: -150px; /* Ini yang dorong kue pas ke lingkaran hijau */
        right: 0px; 
        transform: scale(0.6); 
        animation: fadeInCakeMobile 1s forwards 2.5s; 
        z-index: 10; 
        top: auto; 
    }
    
    @keyframes fadeInCakeMobile { 0% { opacity: 0; transform: scale(0.5) translateY(20px); } 100% { opacity: 1; transform: scale(0.75) translateY(0); } }
    
    @keyframes pullOutLetterMobile { 
        0% { transform: translateY(0); z-index: 2; opacity: 0; } 
        20% { opacity: 1; } 
        50% { transform: translateY(-180px); z-index: 2; opacity: 1; } 
        51% { transform: translateY(-180px); z-index: 6; opacity: 1; } 
        100%{ transform: translateY(-40px); z-index: 6; opacity: 1; box-shadow: 0 15px 30px rgba(0,0,0,0.6); } 
    }
    
    @keyframes slideInLeftMobile { 0% { opacity: 0; transform: translateY(-20px) rotate(-2deg); } 100% { opacity: 1; transform: translateY(0) rotate(-2deg); } }
}

/* === STYLING GAMBAR & ZOOM === */
.image-container { text-align: center; margin: 30px 0; }
.gambar-pesan { max-width: 80%; height: auto; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); border: 2px solid rgba(255, 255, 255, 0.1); }
#image-viewer { display: none; position: fixed; z-index: 999999; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); justify-content: center; align-items: center; cursor: pointer; backdrop-filter: blur(5px); }
#full-image { max-width: 80%; max-height: 80%; border-radius: 4px; padding: 10px 10px 40px 10px; background: white; box-shadow: 0 0 30px rgba(0,0,0,0.5); transition: transform 0.3s ease; }
/* === RESPONSIVE KHUSUS HP === */
@media screen and (max-width: 900px) {
    .content-container { padding: 30px 20px; width: 95%; }
    .theme-btn { top: 15px; right: 15px; width: 40px; height: 40px; font-size: 16px; }
    
    .pin-wrapper { flex-direction: column; gap: 25px; margin-top: 10px; width: 100%; }
    .surprise-layout { flex-direction: column; gap: 30px; width: 100%; margin: 0 auto; justify-content: flex-start; }
    
    .final-polaroid { position: relative; left: 0; top: 0; transform: rotate(-2deg); animation: slideInLeftMobile 1s forwards 1.5s; }
    .polaroid { max-width: 85%; padding: 10px 10px 30px 10px; margin: 0 auto; }
    .polaroid-img, .final-img { width: 280px; height: auto; aspect-ratio: 3/2; max-width: 100%; }
    
    .pin-section { padding: 25px 25px; width: 90%; max-width: 300px; }
    .num-btn { width: 50px; height: 50px; font-size: 18px; }
    .numpad { gap: 12px; }
    
    .envelope-wrapper { margin: 80px auto 0 auto; transform: scale(0.85); }
    
    .envelope-wrapper.open .letter { 
        animation: pullOutLetterMobile 2s forwards cubic-bezier(0.4, 0, 0.2, 1); 
        max-height: 400px; 
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .cake-section { position: absolute; bottom: -50px; right: 0px; transform: scale(0.6); animation: fadeInCakeMobile 1s forwards 2.5s; z-index: 10; top: auto; }
    
    @keyframes fadeInCakeMobile { 0% { opacity: 0; transform: scale(0.5) translateY(20px); } 100% { opacity: 1; transform: scale(0.7) translateY(0); } }
    
    @keyframes pullOutLetterMobile { 
        0% { transform: translateY(0); z-index: 2; opacity: 0; } 
        20% { opacity: 1; } 
        50% { transform: translateY(-200px); z-index: 2; opacity: 1; } 
        51% { transform: translateY(-200px); z-index: 6; opacity: 1; } 
        100%{ transform: translateY(-50px); z-index: 6; opacity: 1; box-shadow: 0 15px 30px rgba(0,0,0,0.6); } 
    }
    
    @keyframes slideInLeftMobile { 0% { opacity: 0; transform: translateY(-20px) rotate(-2deg); } 100% { opacity: 1; transform: translateY(0) rotate(-2deg); } }
}

/* === STYLING GAMBAR & ZOOM === */
.image-container {
    text-align: center;
    margin: 30px 0; 
}

.gambar-pesan {
    max-width: 80%;       
    height: auto;         
    border-radius: 12px;  
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); 
    border: 2px solid rgba(255, 255, 255, 0.1);
}

#image-viewer {
    display: none; 
    position: fixed; 
    z-index: 999999; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.85); 
    justify-content: center; 
    align-items: center; 
    cursor: pointer;
    backdrop-filter: blur(5px); 
}

#full-image {
    max-width: 80%; 
    max-height: 80%; 
    border-radius: 4px; 
    padding: 10px 10px 40px 10px; 
    background: white; 
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}