/* ================================================================ */
/* BUKUMAX - SUBSCRIPTION PAGE STYLESHEET                           */
/* Premium Style — Konsisten dengan main.css & pages.css            */
/* ================================================================ */

/* ================================================================ */
/* 1. SUBSCRIPTION HEADER PREMIUM                                    */
/* ================================================================ */

.subscription-header-bm {
    position: relative;
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 30%, #a855f7 65%, #d946ef 100%);
    border-radius: 24px;
    padding: 28px 24px;
    color: white;
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 
        0 4px 12px rgba(109, 40, 217, 0.25),
        0 20px 48px rgba(124, 58, 237, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Ambient glow */
.subscription-header-bm::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.subscription-header-bm::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.subscription-header-icon {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fcd34d;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.subscription-header-icon::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    height: 42%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    border-radius: 13px 13px 50% 50%;
    pointer-events: none;
}

.subscription-header-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.subscription-header-title {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 6px;
}

.subscription-header-bm p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    color: white;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.subscription-header-bm p strong {
    color: #fcd34d;
    font-weight: 900;
}

/* ================================================================ */
/* 2. PACKAGE LIST CONTAINER                                         */
/* ================================================================ */

.package-list-bm {
    display: flex;
    flex-direction: column;
    gap: 24px; /* ✅ Jarak diperlebar dari 14px/16px agar tidak tabrakan */
    padding-top: 14px; /* ✅ Beri ruang napas untuk badge yang melayang */
    margin-bottom: 20px;
}

/* ================================================================ */
/* 3. PACKAGE CARD PREMIUM                                          */
/* ================================================================ */

.package-card-bm {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ffffff;
    border: 1.5px solid #ede9fe;
    border-radius: 16px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(30, 27, 75, 0.04);
    /* JANGAN ADA overflow: hidden DI SINI */
}

/* Accent bar tipis di kiri */
.package-card-bm::before {
    display: none; 
}

.package-card-bm:hover {
    transform: translateY(-3px);
    border-color: rgba(124, 58, 237, 0.25);
    box-shadow: 
        0 2px 4px rgba(30, 27, 75, 0.06),
        0 8px 20px rgba(124, 58, 237, 0.12),
        0 24px 48px rgba(124, 58, 237, 0.08);
}

.package-card-bm:hover::before {
    opacity: 1;
    width: 5px;
}

.package-card-bm:active {
    transform: translateY(-1px) scale(0.99);
}

/* ---------------------------------------------------------------- */
/* INFO KIRI                                                         */
/* ---------------------------------------------------------------- */

.package-info-bm {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.package-info-bm h4 {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.package-info-bm p {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.1px;
    line-height: 1.3;
    margin-bottom: 10px;
}

/* ---------------------------------------------------------------- */
/* HARGA                                                            */
/* ---------------------------------------------------------------- */

.package-price-bm {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.package-price-original {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-color: rgba(148, 163, 184, 0.6);
    text-decoration-thickness: 1.5px;
    line-height: 1.2;
}

.package-price-current {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #7c3aed;
    letter-spacing: -0.5px;
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}

.package-price-current::before {
    content: 'Rp ';
    font-size: 13px;
    font-weight: 800;
    opacity: 0.75;
}

/* ---------------------------------------------------------------- */
/* BADGE HEMAT                                                      */
/* ---------------------------------------------------------------- */

.package-save-bm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2px;
    line-height: 1;
    width: fit-content;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.15);
}

/* ---------------------------------------------------------------- */
/* ARROW KANAN                                                      */
/* ---------------------------------------------------------------- */

.package-arrow-bm {
    color: #c4b5fd;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.package-card-bm:hover .package-arrow-bm {
    color: #7c3aed;
    transform: translateX(4px);
}

/* ================================================================ */
/* 4. BEST SELLER — Ungu Premium                                    */
/* ================================================================ */

.package-card-bm.best-seller {
    border: 2px solid #a855f7;
    background: #fdfaff;
}

.package-card-bm.best-seller::before {
    content: '⭐ TERLARIS';
    position: absolute;
    top: -12px;        /* ✅ Posisikan keluar dari border card */
    right: 20px;
    left: auto;
    padding: 4px 12px;
    background: linear-gradient(135deg, #7c3aed 0%, #d946ef 100%);
    color: white;
    font-size: 10px;
    font-weight: 900;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
    z-index: 99;       /* ✅ Pastikan di atas segalanya */
    white-space: nowrap; /* ✅ Mencegah teks turun ke bawah */
}

.package-card-bm.best-seller .package-price-current {
    color: #7c3aed;
}

.package-card-bm.best-seller .package-arrow-bm {
    color: #a855f7;
}

/* Badge melayang — BEST SELLER */
.package-card-bm.best-seller::after {
    content: '⭐ TERLARIS';
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #7c3aed 0%, #d946ef 100%);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
    border-radius: 999px;
    box-shadow: 
        0 4px 12px rgba(124, 58, 237, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    z-index: 10;
}

/* ================================================================ */
/* 5. HOT PROMO — Oranye Emas                                       */
/* ================================================================ */

.package-card-bm.hot-promo {
    border: 2px solid #f59e0b;
    background: #fffdf5;
}

.package-card-bm.hot-promo::before {
    content: '🔥 PROMO';
    position: absolute;
    top: -12px;        /* ✅ Posisikan keluar dari border card */
    right: 20px;
    left: auto;
    padding: 4px 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 10px;
    font-weight: 900;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
    z-index: 99;
    white-space: nowrap;
}

.package-card-bm.hot-promo .package-price-current {
    color: #d97706;
}

.package-card-bm.hot-promo .package-arrow-bm {
    color: #f59e0b;
}

.package-card-bm.hot-promo:hover .package-arrow-bm {
    color: #d97706;
}

/* Badge melayang — HOT PROMO */
.package-card-bm.hot-promo::after {
    content: '🔥 PROMO';
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
    border-radius: 999px;
    box-shadow: 
        0 4px 12px rgba(245, 158, 11, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    z-index: 10;
}

/* ================================================================ */
/* 6. RATING BANNER — Bonus Rating 5 Bintang                        */
/* ================================================================ */

.rating-banner {
    position: relative;
    margin-bottom: 16px;
    animation: ratingBannerSlide 0.5s ease-out;
}

@keyframes ratingBannerSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rating-banner-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
    border: 1.5px solid #fbbf24;
    border-radius: 16px;
    box-shadow: 
        0 4px 12px rgba(251, 191, 36, 0.2),
        0 12px 32px rgba(251, 191, 36, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

/* Ambient glow */
.rating-banner-content::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.rating-banner-icon {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 
        0 6px 16px rgba(245, 158, 11, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: ratingStarPulse 2s ease-in-out infinite;
}

.rating-banner-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 42%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 100%);
    border-radius: 10px 10px 50% 50%;
    pointer-events: none;
}

@keyframes ratingStarPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.05) rotate(-5deg);
    }
    75% {
        transform: scale(1.05) rotate(5deg);
    }
}

.rating-banner-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.rating-banner-title {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 900;
    color: #92400e;
    letter-spacing: 0.3px;
    line-height: 1.2;
    margin-bottom: 3px;
}

.rating-banner-desc {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #b45309;
    letter-spacing: 0.1px;
    line-height: 1.3;
}

.rating-banner-desc strong {
    color: #d97706;
    font-weight: 900;
}

.rating-banner-btn {
    position: relative;
    z-index: 1;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 
        0 4px 12px rgba(245, 158, 11, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.rating-banner-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, transparent 100%);
    border-radius: 999px 999px 50% 50%;
    pointer-events: none;
}

.rating-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(245, 158, 11, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.rating-banner-btn:active {
    transform: translateY(0) scale(0.96);
}

/* ================================================================ */
/* 7. BENEFITS CARD — Keuntungan Premium                            */
/* ================================================================ */

.subscription-benefits-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(124, 58, 237, 0.08);
    box-shadow: 
        0 1px 2px rgba(30, 27, 75, 0.04),
        0 4px 12px rgba(30, 27, 75, 0.05),
        0 16px 32px rgba(124, 58, 237, 0.04);
    overflow: hidden;
}

/* Accent bar atas */
.subscription-benefits-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed 0%, #d946ef 50%, #f59e0b 100%);
    opacity: 0.7;
}

.subscription-benefits-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: #1e1b4b;
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(124, 58, 237, 0.15);
}

.subscription-benefits-title i {
    color: #f59e0b;
    font-size: 15px;
}

.subscription-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subscription-benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, 
        rgba(248, 245, 255, 0.4) 0%, 
        rgba(250, 249, 255, 0.2) 100%);
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.subscription-benefit-item:hover {
    background: white;
    border-color: rgba(124, 58, 237, 0.12);
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.06);
}

.subscription-benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 
        0 4px 10px rgba(30, 27, 75, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
}

.subscription-benefit-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 42%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 100%);
    border-radius: 10px 10px 50% 50%;
    pointer-events: none;
}

.subscription-benefit-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.subscription-benefit-text strong {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.subscription-benefit-text span {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.1px;
    line-height: 1.3;
}

/* ================================================================ */
/* 8. FOOTER NOTE — Pembayaran Aman                                 */
/* ================================================================ */

.subscription-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, 
        rgba(240, 253, 244, 0.6) 0%, 
        rgba(220, 252, 231, 0.4) 100%);
    border: 1px dashed rgba(34, 197, 94, 0.25);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #166534;
    letter-spacing: 0.1px;
    line-height: 1.4;
    text-align: center;
}

.subscription-footer-note i {
    color: #22c55e;
    font-size: 13px;
    flex-shrink: 0;
}

/* ================================================================ */
/* 9. SUBSCRIPTION HISTORY LIST                                      */
/* ================================================================ */

.subscription-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subscription-history-item {
    background: white;
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(124, 58, 237, 0.08);
    box-shadow: 0 2px 6px rgba(30, 27, 75, 0.04);
    transition: all 0.2s;
}

.subscription-history-item:hover {
    border-color: rgba(124, 58, 237, 0.15);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
}

/* ================================================================ */
/* 10. EMPTY STATE                                                  */
/* ================================================================ */

.package-list-bm .empty-state-bm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 20px;
    text-align: center;
}

.package-list-bm .empty-state-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    font-size: 28px;
    margin-bottom: 4px;
}

.package-list-bm .empty-state-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: -0.2px;
}

/* ================================================================ */
/* 11. RESPONSIVE                                                    */
/* ================================================================ */

@media (max-width: 480px) {
    .subscription-header-bm {
        padding: 24px 20px;
        border-radius: 20px;
        gap: 14px;
    }
    
    .subscription-header-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .subscription-header-bm p {
        font-size: 14px;
    }
    
    .package-card-bm {
        padding: 16px 18px;
        border-radius: 18px;
    }
    
    .package-info-bm h4 {
        font-size: 15px;
    }
    
    .package-price-current {
        font-size: 18px;
    }
    
    .package-price-current::before {
        font-size: 12px;
    }
    
    .package-card-bm.best-seller::after,
    .package-card-bm.hot-promo::after {
        top: -9px;
        right: 16px;
        font-size: 9px;
        padding: 3px 10px;
    }
    
    .rating-banner-content {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .rating-banner-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }
    
    .rating-banner-title {
        font-size: 12px;
    }
    
    .rating-banner-desc {
        font-size: 10px;
    }
    
    .rating-banner-btn {
        padding: 7px 12px;
        font-size: 10px;
    }
    
    .subscription-benefits-card {
        padding: 16px;
        border-radius: 18px;
    }
    
    .subscription-benefits-title {
        font-size: 13px;
    }
    
    .subscription-benefit-item {
        padding: 8px 10px;
    }
    
    .subscription-benefit-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .subscription-benefit-text strong {
        font-size: 12px;
    }
    
    .subscription-benefit-text span {
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    .subscription-header-bm {
        padding: 20px 16px;
        border-radius: 18px;
        gap: 12px;
    }
    
    .subscription-header-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
        border-radius: 12px;
    }
    
    .subscription-header-bm p {
        font-size: 13px;
    }
    
    .package-card-bm {
        padding: 14px 16px;
        border-radius: 16px;
    }
    
    .package-info-bm h4 {
        font-size: 14px;
    }
    
    .package-info-bm p {
        font-size: 10px;
        margin-bottom: 8px;
    }
    
    .package-price-current {
        font-size: 16px;
    }
    
    .package-price-current::before {
        font-size: 11px;
    }
    
    .package-save-bm {
        font-size: 9px;
        padding: 3px 8px;
    }
    
    .package-arrow-bm {
        font-size: 14px;
    }
    
    .subscription-benefits-card {
        padding: 14px;
        border-radius: 16px;
    }
    
    .subscription-benefit-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .subscription-benefit-text strong {
        font-size: 11px;
    }
    
    .subscription-benefit-text span {
        font-size: 9px;
    }
    
    .subscription-footer-note {
        padding: 10px 12px;
        font-size: 10px;
    }
}

/* ================================================================ */
/* PREMIUM SUBSCRIPTION POPUP                                       */
/* ================================================================ */

.subscription-detail-popup {
    border-radius: 28px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(30, 27, 75, 0.1), 0 24px 64px rgba(124, 58, 237, 0.2) !important;
    max-width: 380px !important; /* Lebar dibatasi agar tidak melar */
    width: 92vw !important;
}

.subscription-detail-popup .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.sdp-wrap {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

/* --- HEADER --- */
.sdp-header {
    position: relative;
    padding: 32px 24px 24px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #d946ef 100%);
    text-align: center;
    color: white;
    overflow: hidden;
}

.sdp-header::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.sdp-icon-hero {
    position: relative;
    width: 72px; height: 72px;
    margin: 0 auto 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fcd34d; /* Warna Emas */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.sdp-title {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.sdp-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* --- BODY --- */
.sdp-body {
    padding: 24px;
}

.sdp-price-card {
    background: #ffffff;
    border: 1.5px dashed #c4b5fd;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.05);
}

.sdp-price-label {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.sdp-price-original {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: line-through;
    margin-right: 8px;
}

.sdp-price-current {
    font-size: 28px;
    font-weight: 900;
    color: #7c3aed;
    letter-spacing: -1px;
}

.sdp-save-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #16a34a;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    margin-top: 8px;
}

/* --- FITUR LIST --- */
.sdp-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.sdp-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.sdp-feature-item i {
    color: #22c55e;
    font-size: 14px;
    background: #dcfce7;
    padding: 4px;
    border-radius: 50%;
}

/* --- BUTTONS --- */
.sdp-btn-confirm {
    width: 100% !important;
    padding: 16px !important;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #d946ef 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35) !important;
    transition: all 0.25s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
}

.sdp-btn-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.45) !important;
}

.sdp-btn-cancel {
    width: 100% !important;
    padding: 14px !important;
    background: #f8fafc !important;
    color: #64748b !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.sdp-btn-cancel:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

/* Sembunyikan action default Swal */
.subscription-detail-popup .swal2-actions {
    display: none !important;
}

/* ================================================================ */
/* PREMIUM PAYMENT METHOD POPUP                                     */
/* ================================================================ */

.payment-method-popup {
    border-radius: 24px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    max-width: 400px !important;
    width: 92vw !important;
}

.payment-method-popup .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.pmp-wrap {
    display: flex;
    flex-direction: column;
    background: #fafbff;
}

/* --- HEADER --- */
.pmp-header {
    background: #ffffff;
    padding: 24px 20px 16px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.pmp-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}

.pmp-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: #1e1b4b;
    margin-bottom: 4px;
}

.pmp-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

/* --- BODY --- */
.pmp-body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 55vh; /* Agar bisa di-scroll jika metode banyak */
    overflow-y: auto;
}

/* Tombol Metode (Card) */
.pmp-method-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1.5px solid #ede9fe;
    border-radius: 16px;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-shadow: 0 2px 6px rgba(30, 27, 75, 0.02);
}

.pmp-method-btn:hover {
    border-color: #c4b5fd;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.08);
}

.pmp-method-btn:active {
    transform: translateY(0) scale(0.98);
}

.pmp-method-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.pmp-method-info {
    flex: 1;
}

.pmp-method-name {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 2px;
}

.pmp-method-desc {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
}

.pmp-method-arrow {
    color: #cbd5e1;
    font-size: 14px;
    flex-shrink: 0;
}

.pmp-method-btn:hover .pmp-method-arrow {
    color: #7c3aed;
    transform: translateX(2px);
}

/* --- FOOTER --- */
.pmp-footer {
    padding: 0 20px 20px;
}

.pmp-btn-cancel {
    width: 100%;
    padding: 14px;
    background: #ffffff;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.pmp-btn-cancel:hover {
    background: #f8fafc;
    color: #475569;
    border-color: #cbd5e1;
}

/* Sembunyikan tombol default Swal */
.payment-method-popup .swal2-actions {
    display: none !important;
}

/* ================================================================ */
/* PREMIUM MANUAL TRANSFER POPUP                                    */
/* ================================================================ */

.manual-payment-popup {
    border-radius: 28px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    max-width: 400px !important;
    width: 92vw !important;
}

.manual-payment-popup .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.mp-wrap {
    display: flex;
    flex-direction: column;
    background: #fafbff;
}

/* --- HEADER --- */
.mp-header {
    background: #ffffff;
    padding: 28px 20px 20px;
    text-align: center;
    border-bottom: 1px dashed #e2e8f0;
    position: relative;
}

.mp-icon-hero {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
    position: relative;
}

.mp-icon-hero::before {
    content: '';
    position: absolute;
    top: 3px; left: 3px; right: 3px;
    height: 42%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 17px 17px 50% 50%;
    pointer-events: none;
}

.mp-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #1e1b4b;
    margin-bottom: 4px;
}

.mp-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

/* --- BODY --- */
.mp-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Kartu Rekening */
.mp-card-rek {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(30, 27, 75, 0.03);
    position: relative;
    overflow: hidden;
}

.mp-card-rek::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: #3b82f6; /* Biru untuk Bank */
}

.mp-bank-name {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mp-rek-number {
    font-family: monospace;
    font-size: 20px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: 1px;
    margin-bottom: 8px;
    word-break: break-all;
}

.mp-rek-name {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Tombol Copy */
.mp-btn-copy {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #eff6ff;
    color: #3b82f6;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.mp-btn-copy:hover {
    background: #dbeafe;
}

.mp-btn-copy:active {
    transform: scale(0.95);
}

/* Kartu Nominal */
.mp-card-amount {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1.5px solid #fcd34d;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    position: relative;
}

.mp-amount-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.mp-amount-value {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #d97706;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -1px;
}

.mp-amount-warning {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #b45309;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.mp-amount-warning i {
    font-size: 12px;
}

/* Timer Countdown */
.mp-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #991b1b;
}

.mp-timer i {
    font-size: 14px;
    color: #ef4444;
}

.mp-timer span {
    font-family: monospace;
    font-size: 14px;
    font-weight: 800;
}

/* --- FOOTER / BUTTONS --- */
.mp-footer {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mp-btn-confirm {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
    transition: all 0.25s;
}

.mp-btn-confirm::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    border-radius: 999px 999px 50% 50%;
    pointer-events: none;
}

.mp-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.mp-btn-confirm:active {
    transform: translateY(0) scale(0.98);
}

.mp-btn-cancel {
    width: 100%;
    padding: 14px;
    background: #ffffff;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.mp-btn-cancel:hover {
    background: #f8fafc;
    color: #475569;
}

/* Sembunyikan action default Swal */
.manual-payment-popup .swal2-actions {
    display: none !important;
}

/* ================================================================ */
/* PREMIUM BANK SELECTION POPUP (MINIMALIST STYLE)                  */
/* ================================================================ */

.bank-pick-popup {
    border-radius: 20px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fafbff !important;
    max-width: 400px !important;
    width: 92vw !important;
    box-shadow: 0 10px 40px rgba(30, 27, 75, 0.15) !important;
}

.bank-pick-popup .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.bank-pick-wrap {
    display: flex;
    flex-direction: column;
    background: transparent;
}

/* --- HEADER INFO BOX --- */
.bank-pick-header {
    background: #f3f0ff;
    padding: 16px 20px;
    margin: 20px 20px 10px 20px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    border: none;
}

.bank-pick-header-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #7c3aed;
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.bank-pick-header-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 4px;
}

.bank-pick-header-sub {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    line-height: 1.5;
}

/* --- LIST BANK --- */
.bank-pick-list {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    max-height: 50vh;
    overflow-y: auto;
}

.bank-pick-list::-webkit-scrollbar { width: 0px; }

.bank-pick-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.bank-pick-item:last-child { border-bottom: none; }
.bank-pick-item:hover { opacity: 0.8; }

.bank-pick-item.selected .bank-pick-radio {
    border-color: #7c3aed;
    background: #7c3aed;
}
.bank-pick-item.selected .bank-pick-radio i {
    display: block;
}

/* Radio Button */
.bank-pick-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    flex-shrink: 0;
    transition: all 0.2s;
    background: #ffffff;
}
.bank-pick-radio i { display: none; }

/* Icon / Logo Bank */
.bank-pick-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.bank-pick-icon img { width: 80%; height: 80%; object-fit: contain; }
.bank-pick-icon i { font-size: 24px; color: #7c3aed; }

/* Info Bank */
/* Info Bank (Nama di atas, Detail di bawah, Rata Kiri) */
.bank-pick-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* ✅ Kunci agar semua teks rata kiri */
    gap: 4px;
    text-align: left;        /* ✅ Pastikan text align left */
}

.bank-pick-name {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #1e1b4b;
    margin: 0;
    width: 100%;
}

/* Baris Nomor Rekening & Nama Pemilik */
.bank-pick-detail-row {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* ✅ Rata kiri */
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
}

.bank-pick-account {
    font-family: monospace;
    font-size: 12px;
    font-weight: 600;
    color: #1e1b4b;
    margin: 0;
}

.bank-pick-separator {
    color: #cbd5e1;
    font-size: 12px;
    margin: 0 2px;
}

.bank-pick-owner {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- FOOTER & BUTTONS --- */
.bank-pick-footer {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.btn-bank-back {
    flex: 1;
    padding: 14px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-bank-back:hover { background: #e2e8f0; }

.btn-bank-next {
    flex: 1.5;
    padding: 14px;
    background: #e2e8f0;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: not-allowed;
    transition: all 0.2s;
}

.btn-bank-next.active {
    background: #7c3aed;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}
.btn-bank-next.active:hover { background: #6d28d9; }

.bank-pick-popup .swal2-actions,
.bank-pick-popup .swal2-close { display: none !important; }


/* ================================================================ */
/* PREMIUM MANUAL TRANSFER POPUP (SETELAH PILIH BANK)               */
/* ================================================================ */

.manual-payment-popup {
    border-radius: 24px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    max-width: 400px !important;
    width: 92vw !important;
}

.manual-payment-popup .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.mp-wrap {
    display: flex;
    flex-direction: column;
    background: #fafbff;
}

/* HEADER */
.mp-header {
    background: #ffffff;
    padding: 28px 20px 20px;
    text-align: center;
    border-bottom: 1px dashed #e2e8f0;
}

.mp-icon-hero {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
    position: relative;
}

.mp-icon-hero::before {
    content: '';
    position: absolute;
    top: 3px; left: 3px; right: 3px;
    height: 42%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 17px 17px 50% 50%;
}

.mp-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #1e1b4b;
    margin-bottom: 4px;
}

.mp-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

/* BODY */
.mp-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Kartu Rekening */
.mp-card-rek {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(30, 27, 75, 0.03);
    position: relative;
    overflow: hidden;
}

.mp-card-rek::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: #3b82f6;
}

.mp-bank-name {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mp-rek-number {
    font-family: monospace;
    font-size: 20px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: 1px;
    margin-bottom: 8px;
    word-break: break-all;
}

.mp-rek-name {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mp-btn-copy {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #eff6ff;
    color: #3b82f6;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}
.mp-btn-copy:hover { background: #dbeafe; }

/* Kartu Nominal */
.mp-card-amount {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1.5px solid #fcd34d;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
}

.mp-amount-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.mp-amount-value {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #d97706;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -1px;
}

.mp-amount-warning {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #b45309;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Timer Countdown */
.mp-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #991b1b;
}
.mp-timer i { color: #ef4444; font-size: 14px; }
.mp-timer span { font-family: monospace; font-size: 14px; font-weight: 800; }

/* FOOTER */
.mp-footer {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mp-btn-confirm {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
    transition: all 0.25s;
}
.mp-btn-confirm:hover { transform: translateY(-2px); }
.mp-btn-confirm:active { transform: translateY(0) scale(0.98); }

.mp-btn-cancel {
    width: 100%;
    padding: 14px;
    background: #ffffff;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.mp-btn-cancel:hover { background: #f8fafc; color: #475569; }

.manual-payment-popup .swal2-actions { display: none !important; }

/* ================================================================ */
/* PREMIUM PENDING WARNING POPUP (DARI FUNGSI selectPackage)        */
/* ================================================================ */

.pending-warn-popup {
    border-radius: 24px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    max-width: 400px !important;
    width: 92vw !important;
}

.pending-warn-popup .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* Wrapper utama */
.pending-warn-wrap {
    padding: 32px 24px 20px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

/* Ikon Jam */
.pending-warn-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
    position: relative;
}

.pending-warn-icon::before {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px;
    height: 42%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
}

.pending-warn-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(245, 158, 11, 0.4);
    animation: pulseRing 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0; }
}

/* Teks Judul */
.pending-warn-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #1e1b4b;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.pending-warn-sub {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 20px;
    padding: 0 10px;
}

/* Card Info Transaksi */
.pending-warn-card {
    background: #ffffff;
    border: 1.5px dashed #fcd34d;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.05);
    text-align: left;
}

.pending-warn-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.2);
}

.pending-warn-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pending-warn-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

.pending-warn-value {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #1e1b4b;
    text-align: right;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Note di bawah */
.pending-warn-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(124, 58, 237, 0.05);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #7c3aed;
    line-height: 1.4;
    text-align: left;
}

.pending-warn-note i {
    font-size: 14px;
    flex-shrink: 0;
}

/* ---------------------------------------------------------------- */
/* BUTTONS                                                          */
/* ---------------------------------------------------------------- */

.pending-warn-popup .swal2-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 0 24px 24px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Tombol Lanjut Bayar (Hijau) */
.pending-warn-btn-confirm {
    width: 100% !important;
    padding: 15px 20px !important;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    transition: all 0.2s !important;
    order: 1 !important; /* Posisikan paling atas */
}

.pending-warn-btn-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4) !important;
}

/* Tombol Batalkan (Merah) */
.pending-warn-btn-deny {
    width: 100% !important;
    padding: 14px 20px !important;
    background: #fef2f2 !important;
    color: #ef4444 !important;
    border: 1.5px solid #fecaca !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    transition: all 0.2s !important;
    order: 2 !important;
}

.pending-warn-btn-deny:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
}

/* Tombol Nanti (Abu-abu) */
.pending-warn-btn-cancel {
    width: 100% !important;
    padding: 14px 20px !important;
    background: transparent !important;
    color: #64748b !important;
    border: none !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin: 0 !important;
    transition: all 0.2s !important;
    order: 3 !important;
}

.pending-warn-btn-cancel:hover {
    background: #f8fafc !important;
    color: #475569 !important;
}

/* Responsive Mobile */
@media (max-width: 380px) {
    .pending-warn-wrap {
        padding: 24px 20px 16px;
    }
    
    .pending-warn-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
    
    .pending-warn-title {
        font-size: 18px;
    }
    
    .pending-warn-sub {
        font-size: 12px;
    }
    
    .pending-warn-card {
        padding: 14px;
    }
    
    .pending-warn-value {
        font-size: 12px;
    }
    
    .pending-warn-popup .swal2-actions {
        padding: 0 20px 20px !important;
    }
    
    .pending-warn-btn-confirm,
    .pending-warn-btn-deny,
    .pending-warn-btn-cancel {
        padding: 12px 16px !important;
        font-size: 13px !important;
    }
}

/* ================================================================ */
/* PREMIUM CANCEL PENDING POPUP                                     */
/* ================================================================ */

.cancel-pending-popup {
    border-radius: 24px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    max-width: 400px !important;
    width: 92vw !important;
}

.cancel-pending-popup .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* WRAPPER */
.cp-cancel-wrap {
    padding: 32px 24px 20px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #fef2f2 100%);
}

/* ICON (Merah dengan pulse ring) */
.cp-cancel-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
    position: relative;
}

.cp-cancel-icon::before {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px;
    height: 42%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
}

.cp-cancel-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(239, 68, 68, 0.4);
    animation: cp-pulse-ring 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cp-pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0; }
}

/* TITLE */
.cp-cancel-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #1e1b4b;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.cp-cancel-sub {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 20px;
    padding: 0 10px;
}

/* CARD ORDER ID */
.cp-cancel-card {
    background: #ffffff;
    border: 1.5px dashed #fecaca;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.05);
    text-align: center;
}

.cp-cancel-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.cp-cancel-order {
    font-family: monospace;
    font-size: 15px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: 0.5px;
    word-break: break-all;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 8px;
}

/* NOTE */
.cp-cancel-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.05);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #dc2626;
    line-height: 1.4;
    text-align: left;
}

.cp-cancel-note i {
    font-size: 14px;
    flex-shrink: 0;
}

/* BUTTONS */
.cancel-pending-popup .swal2-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 0 24px 24px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Tombol Ya Batalkan (Merah) */
.cp-cancel-btn-confirm {
    width: 100% !important;
    padding: 15px 20px !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    transition: all 0.2s !important;
    order: 1 !important;
}

.cp-cancel-btn-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4) !important;
}

/* Tombol Tidak (Abu-abu) */
.cp-cancel-btn-cancel {
    width: 100% !important;
    padding: 14px 20px !important;
    background: #f8fafc !important;
    color: #64748b !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    transition: all 0.2s !important;
    order: 2 !important;
}

.cp-cancel-btn-cancel:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

/* RESPONSIVE */
@media (max-width: 380px) {
    .cp-cancel-wrap {
        padding: 24px 20px 16px;
    }
    
    .cp-cancel-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
    
    .cp-cancel-title {
        font-size: 18px;
    }
    
    .cp-cancel-sub {
        font-size: 12px;
    }
    
    .cp-cancel-order {
        font-size: 13px;
    }
    
    .cancel-pending-popup .swal2-actions {
        padding: 0 20px 20px !important;
    }
}

/* ================================================================ */
/* PREMIUM PENDING ON LOAD POPUP (DARI checkPendingOnLoad)          */
/* ================================================================ */

.pending-load-popup {
    border-radius: 24px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    max-width: 400px !important;
    width: 92vw !important;
}

.pending-load-popup .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.pending-load-wrap {
    padding: 32px 24px 20px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8f5ff 100%);
}

/* ICON */
.pending-load-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
    position: relative;
}

.pending-load-icon::before {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px;
    height: 42%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
}

.pending-load-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(124, 58, 237, 0.4);
    animation: pending-load-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pending-load-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0; }
}

/* TITLE & DESC */
.pending-load-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #1e1b4b;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.pending-load-desc {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 16px;
    padding: 0 10px;
}

.pending-load-desc strong {
    color: #7c3aed;
    font-weight: 800;
}

/* INFO CARD */
.pending-load-card {
    background: #ffffff;
    border: 1.5px dashed #c4b5fd;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pending-load-card-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}

.pending-load-card-value {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #1e1b4b;
}

/* BUTTONS */
.pending-load-popup .swal2-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 0 24px 24px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.pending-load-btn-confirm {
    width: 100% !important;
    padding: 15px 20px !important;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    transition: all 0.2s !important;
    order: 1 !important;
}

.pending-load-btn-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4) !important;
}

.pending-load-btn-cancel {
    width: 100% !important;
    padding: 14px 20px !important;
    background: transparent !important;
    color: #64748b !important;
    border: none !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin: 0 !important;
    transition: all 0.2s !important;
    order: 2 !important;
}

.pending-load-btn-cancel:hover {
    background: #f8fafc !important;
    color: #475569 !important;
}

.pending-load-btn-deny {
    width: 100% !important;
    padding: 14px 20px !important;
    background: #fef2f2 !important;
    color: #ef4444 !important;
    border: 1.5px solid #fecaca !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    transition: all 0.2s !important;
    order: 2 !important; /* Posisi setelah Lanjut Bayar */
}

.pending-load-btn-deny:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
}

/* Sesuaikan urutan tombol Nanti (jadi paling bawah) */
.pending-load-btn-cancel {
    order: 3 !important; 
}

/* ================================================================ */
/* SUBSCRIPTION HISTORY PAGE (PREMIUM STYLE)                        */
/* ================================================================ */

/* Container Utama */
#subscriptionHistoryList {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 20px;
}

/* Item Card */
.sh-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #ffffff;
    border: 1.5px solid #ede9fe;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(30, 27, 75, 0.03);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sh-item:hover {
    transform: translateY(-2px);
    border-color: #c4b5fd;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.08);
}

/* Strip Warna Kiri */
.sh-item-strip {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

/* Icon */
.sh-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(30, 27, 75, 0.15);
    position: relative;
}

.sh-item-icon::before {
    content: '';
    position: absolute;
    top: 2px; left: 2px; right: 2px;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 100%);
    border-radius: 12px 12px 50% 50%;
    pointer-events: none;
}

/* Konten Kanan */
.sh-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Header (Nama Paket & Badge) */
.sh-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.sh-item-name {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.sh-item-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.sh-item-badge i {
    font-size: 10px;
}

/* Detail (Durasi & Waktu) */
.sh-item-detail {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 4px;
}

.sh-item-detail-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

.sh-item-detail-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sh-item-detail-left i {
    color: #a78bfa;
    font-size: 11px;
    width: 12px;
    text-align: center;
}

.sh-item-amount {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 900;
    color: #7c3aed;
    letter-spacing: -0.3px;
    text-align: right;
}

/* Payment Method */
.sh-item-method {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f8fafc;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #475569;
    width: fit-content;
    margin-top: 4px;
}

.sh-item-method i {
    color: #94a3b8;
    font-size: 11px;
}

/* Periode Aktif */
.sh-item-periode {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #16a34a;
    background: #f0fdf4;
    padding: 6px 10px;
    border-radius: 8px;
    width: fit-content;
    margin-top: 4px;
}

.sh-item-periode i {
    font-size: 11px;
}

/* Rejection Reason */
.sh-item-rejection {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #991b1b;
    background: #fef2f2;
    padding: 8px 10px;
    border-radius: 8px;
    margin-top: 6px;
    line-height: 1.4;
}

.sh-item-rejection i {
    color: #ef4444;
    font-size: 12px;
    margin-top: 1px;
}


/* ================================================================ */
/* PREMIUM SUBSCRIPTION HISTORY DETAIL POPUP (SWAL)                 */
/* ================================================================ */

.sh-detail-popup {
    border-radius: 24px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    max-width: 400px !important;
    width: 92vw !important;
}

.sh-detail-popup .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.shd-wrap {
    display: flex;
    flex-direction: column;
    background: #fafbff;
}

/* Header */
.shd-header {
    background: #ffffff;
    padding: 24px 20px;
    text-align: center;
    border-bottom: 1px dashed #e2e8f0;
}

.shd-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin: 0 auto 12px;
    box-shadow: 0 8px 20px rgba(30, 27, 75, 0.15);
}

.shd-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: #1e1b4b;
    margin-bottom: 4px;
}

.shd-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

/* Body */
.shd-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Detail Row */
.shd-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}

.shd-row:last-child {
    border-bottom: none;
}

.shd-label {
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.shd-label i {
    color: #a78bfa;
    font-size: 12px;
    width: 14px;
    text-align: center;
}

.shd-value {
    font-weight: 800;
    color: #1e1b4b;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.shd-value.amount {
    color: #7c3aed;
    font-size: 15px;
}

.shd-value.status-active { color: #16a34a; }
.shd-value.status-pending { color: #d97706; }
.shd-value.status-failed { color: #dc2626; }

/* Footer / Buttons */
.shd-footer {
    padding: 0 20px 20px;
}

.shd-btn-close {
    width: 100%;
    padding: 14px;
    background: #f8fafc;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.shd-btn-close:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

/* Sembunyikan action default Swal */
.sh-detail-popup .swal2-actions {
    display: none !important;
}

/* Responsive */
@media (max-width: 380px) {
    .sh-item {
        padding: 14px;
        gap: 12px;
    }
    
    .sh-item-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .sh-item-name {
        font-size: 14px;
    }
    
    .sh-item-amount {
        font-size: 14px;
    }
}

/* ================================================================ */
/* RATING BONUS - PENDING APPROVAL POPUP (Premium)                  */
/* ================================================================ */

.rating-pending-popup {
    border-radius: 24px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    max-width: 400px !important;
    width: 92vw !important;
}

.rating-pending-popup .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
}

.rp-wrap {
    padding: 32px 24px 24px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

/* Icon Jam (Warna Amber/Kuning) */
.rp-icon-hero {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    position: relative;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
    animation: rp-pulse 2.5s ease-in-out infinite;
}

.rp-icon-hero::before {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px;
    height: 42%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 100%);
    border-radius: 50%;
}

@keyframes rp-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Judul */
.rp-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #1e1b4b;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.rp-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 20px;
    padding: 0 10px;
}

/* Kotak Status */
.rp-status-box {
    background: #ffffff;
    border: 1.5px dashed #fcd34d;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.05);
}

.rp-status-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.rp-status-value {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 900;
    color: #d97706;
}

/* Catatan */
.rp-note {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.5;
    padding: 0 10px;
    margin-bottom: 4px;
}

/* Tombol */
.rating-pending-popup .swal2-actions {
    padding: 0 24px 24px !important;
    margin: 0 !important;
    width: 100% !important;
}

.rp-btn-confirm {
    width: 100% !important;
    padding: 15px 20px !important;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.2s !important;
}

.rp-btn-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4) !important;
}

/* ✅ Highlight untuk item lifetime di riwayat */
.sh-item[data-status="active"] .sh-item-duration-lifetime,
.shd-value.lifetime {
    color: #f59e0b;
    font-weight: 800;
}

.sh-item-periode .lifetime-label,
.shd-value.lifetime {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
}