body {
    margin: 0;
    font-family: sans-serif;
    background: linear-gradient(135deg, #ff9800 0%, #ff7043 100%);
    color: #333;
}

.content {
    padding: 24px 16px 24px 16px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.back-btn {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.page-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* Packages Container */
.packages-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

/* Package Cards */
.package-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.package-card.silver {
    border-color: #a4508b;
    background: #fff;
}

.package-card.gold {
    border-color: #ff9800;
    background: #fff;
}

.package-card.diamond {
    border-color: #00bcd4;
    background: #fff;
}

.package-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* Package Header */
.package-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.package-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: white;
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.10);
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.10) inset, 0 2px 12px 0 rgba(0,0,0,0.10);
    backdrop-filter: blur(6px) saturate(160%);
    -webkit-backdrop-filter: blur(6px) saturate(160%);
    border: 2.5px solid rgba(255,255,255,0.18);
    transition: box-shadow 0.35s, background 0.35s, border 0.35s, filter 0.35s, transform 0.25s;
    overflow: hidden;
    animation: none;
}

.silver .package-icon {
    background: linear-gradient(135deg, #ffafcc 0%, #a4508b 100%);
    box-shadow: 0 0 24px 4px #ffafcc88, 0 0 0 6px #fff4, 0 2px 12px 0 #ffafcc44 inset;
    border: 2.5px solid #a4508b;
}

.gold .package-icon {
    background: linear-gradient(135deg, #ff9800 0%, #ff7043 60%, #e65100 100%);
    box-shadow: 0 0 24px 4px #ff980055, 0 0 0 6px #fff4, 0 2px 12px 0 #ff980033 inset;
    border: 2.5px solid #ff9800;
}

.diamond .package-icon {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 60%, #006064 100%);
    box-shadow: 0 0 24px 4px #00bcd455, 0 0 0 6px #fff4, 0 2px 12px 0 #00bcd433 inset;
    border: 2.5px solid #00bcd4;
}

.package-card:hover .package-icon {
    box-shadow: none;
    filter: none;
    border-color: inherit;
    transform: none;
    animation: none;
}

.silver .potensi-penghasilan,
.gold .potensi-penghasilan,
.diamond .potensi-penghasilan {
    font-size: 0.95em;
    padding: 4px 10px;
    margin: 4px 0 0 0;
    animation: potensiPulseSoft 2.2s infinite cubic-bezier(.4,2,.3,1);
}
.potensi-penghasilan {
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    display: inline-block;
}
@keyframes potensiPulseSoft {
    0% { transform: scale(1); filter: brightness(1); box-shadow: 0 1px 6px 0 rgba(0,0,0,0.10); }
    50% { transform: scale(1.04); filter: brightness(1.07); box-shadow: 0 2px 10px 0 rgba(0,0,0,0.13); }
    100% { transform: scale(1); filter: brightness(1); box-shadow: 0 1px 6px 0 rgba(0,0,0,0.10); }
}

.package-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}

.package-name {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0;
    color: #333;
    background: linear-gradient(120deg, rgba(255,255,255,0.75) 60%, rgba(200,220,255,0.32) 100%);
    border-radius: 16px 16px 0 0;
    padding: 12px 20px 7px 20px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.06);
    border-bottom: 1.5px solid rgba(180,200,255,0.13);
    backdrop-filter: blur(6px) saturate(160%);
    -webkit-backdrop-filter: blur(6px) saturate(160%);
    border-top: 1.5px solid rgba(255,255,255,0.18);
}

.package-price {
    font-size: 1.8em;
    font-weight: 800;
    color: #2ecc71;
    background: linear-gradient(120deg, rgba(255,255,255,0.92) 60%, rgba(220,255,220,0.32) 100%);
    border-radius: 0 0 16px 16px;
    padding: 8px 20px 14px 20px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 16px 0 rgba(44,204,113,0.09);
    border-top: 1.5px solid rgba(44,204,113,0.13);
    margin: 0;
    backdrop-filter: blur(6px) saturate(160%);
    -webkit-backdrop-filter: blur(6px) saturate(160%);
    border-bottom: 1.5px solid rgba(255,255,255,0.18);
}

.silver .package-price {
    background: linear-gradient(135deg, #a4508b 0%, #ffafcc 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(255, 175, 204, 0.3);
}

.gold .package-price {
    background: linear-gradient(135deg, #ff7043 0%, #ff9800 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(255, 152, 0, 0.3);
}

.diamond .package-price {
    background: linear-gradient(135deg, #0097a7 0%, #00bcd4 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(0, 188, 212, 0.3);
}

/* Package Features */
.package-features {
    margin-bottom: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 0.95em;
}

.feature-item i {
    color: #2ecc71;
    font-size: 1em;
    width: 16px;
    text-align: center;
}

.feature-item span {
    color: #555;
    line-height: 1.4;
}

/* Buy Buttons */
.buy-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.silver-btn {
    background: linear-gradient(135deg, #ffafcc 0%, #a4508b 100%);
    border: 2px solid #a4508b;
    color: #fff;
}

.gold-btn {
    background: linear-gradient(135deg, #e65100 0%, #bf360c 100%);
}

.diamond-btn {
    background: linear-gradient(135deg, #006064 0%, #004d40 100%);
}

.silver-btn:hover {
    background: linear-gradient(135deg, #fbb1d8 0%, #c471b5 100%);
    border-color: #c471b5;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.buy-btn:active {
    transform: translateY(0);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.payment-modal {
    background: #fff !important;
    border-radius: 18px !important;
    width: 100%;
    max-width: 98vw;
    max-height: 95vh;
    overflow-y: auto;
    overflow: hidden !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    padding-bottom: 8px;
    padding-top: 0 !important;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-header {
    overflow: hidden;
    border-radius: 18px 18px 0 0 !important;
    padding: 0;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.payment-header h3 {
    background: #ff7eb3 !important;
    color: #fff !important;
    padding: 12px 0 !important;
    border-radius: 18px 18px 0 0 !important;
    font-weight: bold;
    font-size: 1.18em;
    margin: 0;
    letter-spacing: 0.5px;
    width: 100% !important;
    box-sizing: border-box;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 18px;
    background: rgba(255,255,255,0.85);
    color: #ff9800;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px #ffd70033;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    z-index: 2;
}

.close-btn:hover {
    background: #fff3cd;
    color: #e65100;
    box-shadow: 0 4px 16px #ffd70055;
}

.payment-content {
    padding: 24px;
    padding-bottom: 4 !important;
}

/* Selected Package */
.selected-package {
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.package-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.package-icon-small {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    color: white;
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
}

.package-details h4 {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #333;
}

.package-price-modal {
    font-size: 1.2em;
    font-weight: 700;
    color: #2ecc71;
}

/* Payment Methods */
.payment-methods,
.payment-options {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.payment-methods h4 {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #333;
}

.payment-options {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
    padding-bottom: 4px;
}

.payment-option {
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 18px 0 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: border 0.2s, box-shadow 0.2s;
    flex: 1 1 0;
    min-width: 120px;
    max-width: 400px;
    box-shadow: 0 2px 8px #e0e0e022;
}

.payment-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.payment-option.selected {
    border-color: #667eea;
    background: #f0f4ff;
}

.payment-option img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.payment-option span {
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
}

/* Payment Summary */
.payment-summary:empty,
.payment-summary[style*='display: none'],
.payment-summary:not(:has(#summaryStaticInfo[style*='block']), :has(#dynamicPaymentInfo[style*='block'])) {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}
.payment-summary:not(:empty):not([style*='display: none']) {
    background: #f8f9fa !important;
    border-radius: 10px !important;
    padding: 14px 14px 8px 14px !important;
    margin-bottom: 0;
    transition: background 0.2s;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95em;
    color: #666;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    font-size: 1.1em;
    font-weight: 700;
    color: #333;
}

/* Payment Actions */
.payment-actions {
    display: flex;
    gap: 6px;
    padding: 0 8px 18px 8px;
    border-top: none;
}

.cancel-btn, .confirm-btn {
    flex: 1;
    padding: 7px;
    border: none;
    border-radius: 7px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-btn {
    background: #f8f9fa;
    color: #666;
}

.cancel-btn:hover {
    background: #e9ecef;
}

.confirm-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.confirm-btn:hover {
    background: linear-gradient(135deg, #27ae60, #229954);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 480px) {
    .content {
        padding: 16px 12px 24px 12px;
    }
    
    .package-card {
        padding: 20px;
    }
    
    .package-header {
        gap: 12px;
    }
    
    .package-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5em;
    }
    
    .package-name {
        font-size: 1.2em;
    }
    
    .package-price {
        font-size: 1.5em;
    }
    
    .payment-modal {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        border-radius: 16px !important;
        font-size: 0.97em;
        padding: 0 0 6px 0 !important;
        overflow: hidden !important;
    }
    
    .payment-header {
        border-radius: 16px 16px 0 0 !important;
        width: 100%;
        box-sizing: border-box;
    }
    
    .payment-header h3 {
        font-size: 1em !important;
        padding: 12px 0 !important;
        border-radius: 16px 16px 0 0 !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .selected-package {
        margin-bottom: 10px;
        padding: 10px 8px;
        border-radius: 10px;
    }
    
    .payment-methods {
        margin-bottom: 12px;
    }
    
    .payment-options {
        gap: 4px;
        overflow-x: unset;
        flex-wrap: wrap;
    }
    
    .payment-option {
        min-width: 68px;
        max-width: 90px;
        padding: 5px 0 3px 0;
        font-size: 0.89em;
    }
    
    .payment-summary {
        margin-bottom: 0;
        border-radius: 7px;
        padding: 4px 4px 1px 4px;
    }
    
    .payment-actions {
        gap: 4px;
        padding: 0 1vw 12px 1vw;
        border-top: none;
    }
    
    .cancel-btn, .confirm-btn {
        padding: 6px;
        border-radius: 6px;
        font-size: 1em;
    }
    
    .payment-methods h4 {
        font-size: 1em;
    }
    
    #subPaymentOptions, #dynamicPaymentInfo {
        margin-bottom: 8px;
    }
}

/* Animation for package cards */
.package-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.package-card:nth-child(1) { animation-delay: 0.1s; }
.package-card:nth-child(2) { animation-delay: 0.2s; }
.package-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for package cards */
.package-card.silver:hover {
    border-color: #c471b5;
    box-shadow: 0 8px 32px rgba(196, 113, 181, 0.18);
}

.package-card.gold:hover {
    border-color: #ffb347;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.2);
}

.package-card.diamond:hover {
    border-color: #87ceeb;
    box-shadow: 0 8px 32px rgba(135, 206, 235, 0.2);
}

.silver .package-badge, .package-card.silver .package-badge {
    background: linear-gradient(90deg, #ffafcc 0%, #a4508b 100%) !important;
    color: #fff !important;
    font-size: 1em !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    border: 2px solid #fff0;
    box-shadow: 0 4px 16px #a4508b33;
}

.silver-bg {
    background: linear-gradient(90deg, #ff7eb3 0%, #ff758c 100%) !important;
}
.gold-bg {
    background: linear-gradient(90deg, #ffd700 0%, #ff9800 100%) !important;
}
.diamond-bg {
    background: linear-gradient(90deg, #00c6fb 0%, #005bea 100%) !important;
}

#dynamicPaymentInfo {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px !important;
    font-weight: 700 !important;
    font-size: 1em;
    color: #333;
}
#dynamicPaymentInfo .total-label {
    font-weight: 600;
}
#dynamicPaymentInfo .total-nominal {
    min-width: 90px;
    text-align: right;
    display: inline-block;
    font-weight: 700;
}

.sub-ewallet-btn.selected {
    background: linear-gradient(90deg, #2196f3 60%, #21cbf3 100%) !important;
    color: #fff !important;
    border-color: #2196f3 !important;
}
.sub-ewallet-btn.selected img {
    filter: brightness(1.1) contrast(1.1);
}
.sub-mobilebank-btn.selected {
    background: linear-gradient(90deg, #ff9800 60%, #ffd600 100%) !important;
    color: #fff !important;
    border-color: #ff9800 !important;
}
.sub-mobilebank-btn.selected img {
    filter: brightness(1.1) contrast(1.1);
}
.sub-crypto-btn.selected {
    background: linear-gradient(90deg, #00bfae 60%, #00c6fb 100%) !important;
    color: #fff !important;
    border-color: #00bfae !important;
}
.sub-crypto-btn.selected img {
    filter: brightness(1.1) contrast(1.1);
}
#dynamicPaymentInfo.loading {
    position: relative;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#dynamicPaymentInfo .spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #2196f3;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.history-btn {
    background: rgba(255,255,255,0.13);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: background 0.18s, box-shadow 0.18s, transform 0.13s;
    cursor: pointer;
    position: relative;
}
.history-btn:hover {
    background: rgba(255,255,255,0.25);
    box-shadow: 0 4px 16px #ff980055;
    transform: scale(1.08);
}
.history-btn i {
    color: #fff;
    font-size: 1.35em;
    transition: color 0.18s;
}

body, html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}
body::-webkit-scrollbar, html::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
} 