/* ==========================================================================
   DREAMY SOFT LIGHT PINK (COQUETTE / PASTEL BLUSH) DESIGN SYSTEM
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&family=Pacifico&family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Quicksand:wght@500;600;700&display=swap');

:root {
    /* Soft Light Pink Palette */
    --bg-blush-1: #fff5f8;
    --bg-blush-2: #ffe8f0;
    --bg-blush-3: #ffd9e6;
    --pink-lightest: #fff0f5;
    --pink-soft: #ffc2d4;
    --pink-pastel: #ff9ebb;
    --pink-primary: #f47fa3;
    --pink-deep: #d95b82;
    --pink-accent: #e86c93;
    
    /* Text Colors (Warm & Soft, never harsh) */
    --text-heading: #b84166;
    --text-body: #784355;
    --text-muted: #a66f80;
    
    /* Glassmorphism & Surfaces */
    --glass-bg: rgba(255, 255, 255, 0.78);
    --glass-bg-strong: rgba(255, 255, 255, 0.90);
    --glass-border: rgba(255, 255, 255, 0.92);
    --pink-border: rgba(255, 182, 203, 0.55);
    --shadow-soft: 0 18px 45px rgba(235, 130, 165, 0.18), 0 4px 15px rgba(235, 130, 165, 0.1);
    --shadow-card: 0 12px 30px rgba(240, 140, 175, 0.16);
    --shadow-hover: 0 20px 40px rgba(235, 115, 155, 0.28);
    --shadow-btn: 0 8px 22px rgba(244, 127, 163, 0.38);
}

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

html, body {
    min-height: 100vh;
    width: 100%;
    font-family: 'Quicksand', 'Plus Jakarta Sans', sans-serif;
    color: var(--text-body);
    background: radial-gradient(circle at 15% 15%, #fff7fa 0%, transparent 45%),
                radial-gradient(circle at 85% 80%, #ffdbe7 0%, transparent 50%),
                linear-gradient(135deg, var(--bg-blush-1) 0%, var(--bg-blush-2) 50%, var(--bg-blush-3) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Decorative Ambient Glowing Blobs */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(70px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.65;
    animation: pulseBlob 10s ease-in-out infinite alternate;
}

body::before {
    width: 340px;
    height: 340px;
    background: #ffc8da;
    top: -90px;
    left: -80px;
}

body::after {
    width: 380px;
    height: 380px;
    background: #ffd4e3;
    bottom: -100px;
    right: -90px;
    animation-delay: -5s;
}

@keyframes pulseBlob {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.15) translate(20px, -20px); }
}

/* Typography */
h1, h2, h3, .font-script {
    font-family: 'Pacifico', cursive;
    font-weight: 400;
    color: var(--text-heading);
    letter-spacing: 0.3px;
}

.font-romantic {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
}

/* ================= UTILITY CLASSES ================= */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeInScale 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ================= FLOATING HEARTS & SAKURA PETALS ================= */
#hearts-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.heart {
    position: fixed;
    bottom: -10vh;
    user-select: none;
    pointer-events: none;
    animation: floatUp linear infinite;
    z-index: 1;
    filter: drop-shadow(0 2px 6px rgba(244, 127, 163, 0.25));
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(0.85);
        opacity: 0;
    }
    15% {
        opacity: 0.75;
    }
    85% {
        opacity: 0.75;
    }
    100% {
        transform: translateY(-115vh) translateX(35px) rotate(360deg) scale(1.1);
        opacity: 0;
    }
}

/* ================= FLOATING AUDIO BUTTON ================= */
.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 950;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid var(--pink-border);
    color: var(--text-heading);
    padding: 10px 16px;
    border-radius: 50px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(244, 127, 163, 0.2);
    transition: all 0.3s ease;
}

.music-toggle:hover {
    transform: translateY(-2px) scale(1.03);
    background: #fff;
    box-shadow: 0 10px 25px rgba(244, 127, 163, 0.32);
}

.music-toggle .disc {
    display: inline-block;
    font-size: 1.1rem;
    animation: spinDisc 4s linear infinite;
    animation-play-state: paused;
}

.music-toggle.playing .disc {
    animation-play-state: running;
}

@keyframes spinDisc {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ================= MAIN CONTAINER ================= */
.container {
    width: 92%;
    max-width: 680px;
    margin: 40px auto;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 5;
}

/* ================= HERO / WELCOME CARD (INDEX.HTML) ================= */
.welcome-card {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 2px solid var(--glass-border);
    border-radius: 36px;
    padding: 48px 32px 42px;
    box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(255, 194, 212, 0.35);
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #ffccd9, #f47fa3, #ffccd9);
}

.ribbon-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #fff0f5 0%, #ffe0eb 100%);
    border: 1px solid #ffbfd3;
    color: var(--pink-deep);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(244, 127, 163, 0.12);
}

.gift-illustration {
    width: 120px;
    height: 120px;
    margin: 6px auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #fff 0%, #ffe5ee 75%);
    border-radius: 50%;
    border: 2px dashed var(--pink-soft);
    box-shadow: 0 10px 25px rgba(244, 127, 163, 0.2);
    animation: gentleFloat 3.5s ease-in-out infinite;
    position: relative;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 3.1rem);
    margin-bottom: 12px;
    color: var(--text-heading);
    text-shadow: 0 3px 12px rgba(244, 127, 163, 0.22);
    line-height: 1.25;
}

.hero-subtitle {
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--text-body);
    max-width: 440px;
    margin: 0 auto 30px;
    font-weight: 600;
}

/* ================= BUTTONS ================= */
.btn {
    background: linear-gradient(135deg, #ff9ebb 0%, #f47fa3 50%, #e8668e 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.65);
    padding: 14px 36px;
    font-size: 1.08rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: var(--shadow-btn);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(25deg);
    transition: left 0.6s ease;
}

.btn:hover::after {
    left: 120%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 28px rgba(232, 102, 142, 0.48);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: #fff0f5;
    color: var(--text-heading);
    border: 1.5px solid var(--pink-soft);
    box-shadow: 0 4px 12px rgba(244, 127, 163, 0.12);
}

.btn-secondary:hover {
    background: #ffe3ec;
    box-shadow: 0 6px 16px rgba(244, 127, 163, 0.22);
}

/* ================= MODALS / POPUPS ================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(145, 65, 92, 0.32);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeOverlay 0.3s ease forwards;
}

@keyframes fadeOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-box {
    background: rgba(255, 252, 253, 0.95);
    border: 2px solid #ffffff;
    padding: 34px 28px 28px;
    border-radius: 32px;
    box-shadow: 0 25px 60px rgba(184, 65, 102, 0.25), 0 0 0 1px rgba(255, 182, 203, 0.5);
    text-align: center;
    max-width: 400px;
    width: 100%;
    position: relative;
    animation: popModal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popModal {
    from { opacity: 0; transform: scale(0.88) translateY(15px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-x {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--pink-soft);
    background: #fff0f5;
    color: var(--text-heading);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close-x:hover {
    background: var(--pink-primary);
    color: white;
    transform: rotate(90deg);
}

/* ================= PASSCODE LOCK SCREEN UI ================= */
.pin-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin: 18px 0 14px;
}

.pin-dot {
    width: 30px;
    height: 34px;
    border-radius: 10px;
    background: #fff0f5;
    border: 1.5px solid #ffbfd3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--pink-deep);
    font-weight: 700;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pin-dot.filled {
    background: linear-gradient(135deg, #ffadc6, #f47fa3);
    border-color: #f47fa3;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(244, 127, 163, 0.35);
}

#passcode-input {
    width: 100%;
    padding: 12px 16px;
    margin: 4px 0 12px;
    border: 2px solid var(--pink-soft);
    background: #fff7fa;
    border-radius: 16px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-heading);
    text-align: center;
    outline: none;
    transition: all 0.25s ease;
}

#passcode-input::placeholder {
    letter-spacing: 0.5px;
    font-weight: 600;
    color: #cfa0b0;
    font-size: 0.92rem;
}

#passcode-input:focus {
    border-color: var(--pink-primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(244, 127, 163, 0.15);
}

.numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.num-btn {
    background: #fff2f6;
    border: 1.5px solid #ffd4e2;
    color: var(--text-heading);
    font-family: 'Quicksand', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 12px 0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(244, 127, 163, 0.08);
}

.num-btn:hover {
    background: #ffe0eb;
    border-color: var(--pink-pastel);
    transform: translateY(-2px);
}

.num-btn:active {
    transform: scale(0.95);
    background: var(--pink-soft);
}

.num-btn.action-btn {
    background: #ffeaf0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.hint-toggle {
    margin-top: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hint-toggle:hover {
    color: var(--text-heading);
}

.hint-box {
    margin-top: 8px;
    padding: 10px 14px;
    background: #fff0f5;
    border: 1px dashed var(--pink-pastel);
    border-radius: 12px;
    font-size: 0.84rem;
    color: var(--text-body);
    font-weight: 600;
}

.error-msg {
    color: #d6336c;
    background: #ffe3ec;
    border: 1px solid #ffadc6;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    margin-top: 12px;
    display: none;
}

/* ================= ANIMASI SHAKE ================= */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

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

/* ================= MENU PAGE (MENU.HTML) ================= */
.menu-header-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid var(--glass-border);
    border-radius: 32px;
    padding: 34px 28px 28px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 26px;
    position: relative;
}

.menu-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    margin-bottom: 8px;
    color: var(--text-heading);
}

.menu-subtitle {
    font-size: 1.02rem;
    color: var(--text-body);
    font-weight: 600;
}

.progress-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 6px 16px;
    background: #fff0f5;
    border: 1px solid #ffcadb;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pink-deep);
}

/* Bento Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 2px solid #ffffff;
    padding: 28px 20px 24px;
    border-radius: 28px;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255, 224, 235, 0.45) 0%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--pink-soft);
}

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff0f5;
    color: var(--pink-deep);
    border: 1px solid #ffcadb;
}

.card-opened-check {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffd6e5;
    color: var(--text-heading);
    font-size: 0.75rem;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.card.visited .card-opened-check {
    display: flex;
}

.card-icon-wrap {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    background: linear-gradient(135deg, #fff0f5 0%, #ffd9e6 100%);
    border: 1.5px solid #ffffff;
    box-shadow: 0 8px 20px rgba(244, 127, 163, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0 14px;
    transition: transform 0.35s ease;
}

.card:hover .card-icon-wrap {
    transform: scale(1.1) rotate(-4deg);
}

.card-icon {
    font-size: 2.6rem;
    line-height: 1;
    display: block;
}

.card-title {
    font-family: 'Pacifico', cursive;
    font-weight: 400;
    font-size: 1.35rem;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.card-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.4;
}

/* Modal Preview Icon */
.modal-preview-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff0f5, #ffd6e4);
    border: 2px solid #fff;
    box-shadow: 0 8px 20px rgba(244, 127, 163, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
    margin: 0 auto 14px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
}

/* ================= SHARED BACK BUTTON ================= */
.btn-kembali {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 950;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-heading);
    border: 2px solid var(--pink-soft);
    padding: 12px 28px;
    font-size: 0.98rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(217, 91, 130, 0.22);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-kembali:hover {
    background: linear-gradient(135deg, #ff9ebb 0%, #f47fa3 100%);
    color: white;
    border-color: white;
    transform: translateX(-50%) translateY(-3px) scale(1.03);
    box-shadow: 0 12px 28px rgba(244, 127, 163, 0.4);
}

/* ================= LIVE RELATIONSHIP TIMER (MENU.HTML) ================= */
.love-timer-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid var(--glass-border);
    border-radius: 30px;
    padding: 24px 22px 22px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.love-timer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ffd1e0, #f47fa3, #ffd1e0);
}

.timer-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff0f5;
    border: 1px solid #ffcadb;
    color: var(--pink-deep);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
    letter-spacing: 0.4px;
}

.timer-title {
    font-family: 'Pacifico', cursive;
    font-size: 1.45rem;
    color: var(--text-heading);
    font-weight: 400;
}

.timer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 480px;
    margin: 0 auto 14px;
}

.timer-box {
    background: linear-gradient(145deg, #ffffff 0%, #fff0f5 100%);
    border: 1.5px solid #ffd4e2;
    border-radius: 20px;
    padding: 14px 8px 12px;
    box-shadow: 0 6px 16px rgba(244, 127, 163, 0.14);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.timer-box:hover {
    transform: translateY(-3px);
    border-color: var(--pink-pastel);
}

.timer-num {
    font-family: 'Plus Jakarta Sans', 'Quicksand', sans-serif;
    font-size: clamp(1.45rem, 4vw, 1.95rem);
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.1;
    margin-bottom: 4px;
}

.timer-box.sec-box .timer-num {
    color: var(--pink-primary);
    animation: pulseSec 1s ease-in-out infinite;
}

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

.timer-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.timer-footer {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-body);
}

@media (max-width: 520px) {
    .welcome-card {
        padding: 36px 20px 32px;
    }
    .timer-grid {
        gap: 8px;
    }
    .timer-box {
        padding: 12px 4px 10px;
        border-radius: 16px;
    }
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .card {
        padding: 24px 14px 20px;
    }
    .card-icon-wrap {
        width: 68px;
        height: 68px;
    }
    .card-icon {
        font-size: 2.2rem;
    }
    .card-title {
        font-size: 1.18rem;
    }
}

