/* ---------- TOMBOL PEMICU POPUP ---------- */
.popup-trigger-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 500;
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    color: #2c3e50;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 6px 18px rgba(255, 105, 180, 0.4);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
}

.popup-trigger-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(255, 105, 180, 0.6);
}

/* ---------- MODAL OVERLAY ---------- */
.popup-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
    z-index: 2000;
}

.popup-modal-overlay.active {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
}

/* ---------- KARTU MODAL ---------- */
.popup-modal-card {
    background: #fff9f9;
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    border-radius: 32px;
    padding: 24px 20px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid #ffb6c1;
    display: flex;
    flex-direction: column;
}

.popup-modal-overlay.active .popup-modal-card {
    transform: scale(1);
}

.popup-modal-close {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.popup-modal-close:hover {
    color: #e74c3c;
}

.popup-modal-header {
    font-size: 1.8rem;
    text-align: center;
    margin: 0 0 16px 0;
    color: #c44569;
    text-shadow: 2px 2px 0 #ffe0f0;
    padding-right: 20px;
}

.popup-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 5px 5px 15px;
    margin-bottom: 10px;
    max-height: 50vh;
}

/* Scrollbar cantik */
.popup-modal-body::-webkit-scrollbar {
    width: 6px;
}
.popup-modal-body::-webkit-scrollbar-thumb {
    background: #f8a5c2;
    border-radius: 10px;
}

.popup-close-btn {
    background: #c44569;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    border: 2px solid #ffd0dd;
}

.popup-close-btn:hover {
    background: #a13355;
}

/* ---------- DAFTAR UCAPAN ---------- */
.popup-list-item {
    background: white;
    border-radius: 20px;
    padding: 16px 18px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-left: 6px solid #ff6b6b;
    transition: transform 0.1s ease;
}

.popup-list-item:hover {
    transform: translateX(4px);
    background: #fff0f5;
}

.popup-nama {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
}

.popup-ucapan {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.5;
}

.popup-loading,
.popup-error,
.popup-empty {
    text-align: center;
    padding: 30px 20px;
    color: #888;
    font-size: 1.1rem;
}

.popup-error {
    color: #e74c3c;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 500px) {
    .popup-trigger-btn {
        bottom: 70px;
        right: 16px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    .popup-modal-card {
        width: 95%;
        padding: 20px 15px 15px;
    }
    .popup-modal-header {
        font-size: 1.5rem;
    }
    .popup-nama {
        font-size: 1.2rem;
    }
    .popup-ucapan {
        font-size: 0.95rem;
    }
}