* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Palet bright pastel v2 dikadoin.id */
:root {
    --bg: #fffafc;
    --frame: #ffafcc;
    --frame-dark: #f78fb3;
    --pink: #ffd6e4;
    --pink-lt: #ffedf4;
    --content: #ffe9f1;
    --text: #b5657f;
    --muted: #9a8a92;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg);
    background-image: linear-gradient(45deg, var(--pink-lt), var(--content));
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    padding: 20px;
}

.container {
    position: relative;
    z-index: 1001;
    text-align: center;
    animation: float 3s ease-in-out infinite;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg);
    border: 3px solid var(--frame);
    border-radius: 28px;
    box-shadow: 0 10px 40px rgba(247, 143, 179, 0.25);
    padding: 40px 30px;
}

/* Watermark overlay dikadoin.id */
.watermark-overlay {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1000;
}

.watermark-inner {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    transform: rotate(-28deg);
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    gap: 90px 70px;
}

.watermark-inner span {
    font-size: 30px;
    font-weight: 700;
    color: rgba(247, 143, 179, .20);
    white-space: nowrap;
    user-select: none;
}

/* Badge branding */
.brand-badge {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 9500;
    background: #ffffff;
    color: var(--text);
    border: 2px solid var(--frame);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(247, 143, 179, 0.25);
    pointer-events: none;
}

/* Tombol simulasi tier (demo) */
.tier-toggle {
    position: fixed;
    bottom: 14px;
    right: 14px;
    z-index: 9500;
    background: #ffffff;
    color: var(--text);
    border: 2px solid var(--frame-dark);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(247, 143, 179, 0.25);
}

.tier-toggle:hover {
    background: var(--pink-lt);
}

.step {
    display: none;
}

.step.active {
    display: block;
}

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

.bear-img {
    width: 280px;
    height: 280px;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 182, 193, 0.5));
}

/* Fallback placeholder saat gambar lokal tidak tersedia (standalone) */
.img-placeholder {
    background: linear-gradient(135deg, var(--pink), var(--pink-lt));
    border: 3px solid var(--frame);
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    line-height: 1;
    padding: 20px;
}

.hearts {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.heart {
    position: absolute;
    font-size: 20px;
    color: #f76b9c;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

h1 {
    font-size: 2.5em;
    color: var(--text);
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(181, 101, 127, 0.1);
    animation: pulse 2s ease-in-out infinite;
}

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

.buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    font-size: 1.2em;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    width: auto;
    min-width: 160px;
    margin: 5px;
}

.btn-yes {
    background: var(--frame-dark);
    color: white;
    box-shadow: 0 4px 15px rgba(247, 143, 179, 0.4);
}

.btn-yes:hover {
    transform: translateY(-3px);
    background: #f76b9c;
    box-shadow: 0 6px 20px rgba(247, 107, 156, 0.6);
}

.btn-no {
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 4px 15px rgba(247, 143, 179, 0.2);
    transition: all 0.3s ease;
}

.whatsapp-btn {
    display: none;
    padding: 15px 40px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s;
    width: fit-content;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.final-message {
    display: none;
    color: var(--text);
    font-size: 1.5em;
    margin-top: 20px;
    animation: fadeIn 1s ease-in;
    text-align: center;
    padding: 0 20px;
}

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

/* Media Queries */
@media screen and (max-width: 768px) {
    body {
        padding: 15px;
    }

    h1 {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .bear-img {
        width: 220px;
        height: 220px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 1.1em;
        min-width: 140px;
    }

    .container {
        padding: 30px 20px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.6em;
        margin-bottom: 15px;
    }

    .bear-img {
        width: 180px;
        height: 180px;
    }

    .buttons {
        gap: 10px;
    }

    .btn {
        padding: 10px 25px;
        font-size: 1em;
        min-width: 120px;
    }

    .final-message {
        font-size: 1.2em;
    }

    .whatsapp-btn {
        padding: 12px 30px;
        font-size: 1em;
    }
}

@media screen and (max-height: 600px) {
    .bear-img {
        width: 160px;
        height: 160px;
        margin-bottom: 10px;
    }

    h1 {
        margin-bottom: 10px;
    }

    .buttons {
        margin-bottom: 10px;
    }
}
