:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --primary-red: #e50914;
    --primary-red-hover: #b20710;
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
    --success: #46d369;
    --telegram: #0088cc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #121212, #2c0509, #121212);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: -1;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Container - Centered with max-width */
.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header */
header {
    padding: 20px 0;
    text-align: center;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.store-name {
    color: var(--primary-red);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
}

/* Banner - Centered */
.banner-section {
    margin: 20px auto;
    width: 100%;
    max-width: 1000px;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.banner-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    animation: fade 1s;
}

.banner-container img.active {
    display: block;
}

@keyframes fade {
    from {opacity: .4} to {opacity: 1}
}

/* Features Section - Centered */
.features-section {
    padding: 40px 20px;
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-white);
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-red);
    margin: 10px auto 0;
}

.section-label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-gray);
    font-weight: 600;
    text-align: center;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.feature-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #333;
    transition: transform 0.3s;
    flex: 0 0 calc(33.333% - 40px);
    max-width: 300px;
    min-width: 250px;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-align: center;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-align: center;
}

/* Pricing Section - Centered */
.pricing-section {
    padding: 40px 20px 80px;
    width: 100%;
}

.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    width: 100%;
}

.price-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex: 0 0 calc(33.333% - 50px);
    max-width: 320px;
    min-width: 280px;
}

.price-card:hover {
    border-color: var(--primary-red);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.3);
}

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-white);
    text-align: center;
}

.price-card .specs {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
}

.price-card .specs p {
    text-align: center;
}

.price-card .price {
    font-size: 1.8rem;
    color: var(--primary-red);
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.price-card .price span {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: normal;
}

.btn-select {
    background: transparent;
    border: 1px solid var(--primary-red);
    color: var(--text-white);
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    text-align: center;
}

.btn-select:hover {
    background: var(--primary-red);
}

/* Modal - Centered with Scroll */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px 0;
}

.modal-content {
    background-color: var(--bg-card);
    padding: 40px 30px 30px 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid #333;
    animation: slideDown 0.3s ease;
    margin: auto;
    text-align: center;
}

/* Custom Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #121212;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red-hover);
}

@keyframes slideDown {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-gray);
    z-index: 10;
    background: transparent;
    padding: 5px;
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-white);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 20px;
}

.package-details {
    text-align: center;
    margin-bottom: 20px;
}

.package-details p {
    text-align: center;
    margin: 8px 0;
}

.form-group {
    margin: 20px 0;
    text-align: center;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-gray);
    text-align: center;
}

.form-group input[type="text"] {
    width: 100%;
    max-width: 350px;
    padding: 12px;
    background: #121212;
    border: 1px solid #333;
    color: white;
    border-radius: 5px;
    outline: none;
    text-align: center;
}

.form-group input[type="text"]:focus {
    border-color: var(--primary-red);
}

.form-group input[type="range"] {
    width: 100%;
    max-width: 350px;
    accent-color: var(--primary-red);
    cursor: pointer;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--primary-red);
    cursor: pointer;
}

.total-price-box {
    background: #121212;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin: 20px 0;
    border: 1px solid #333;
}

.total-price-box h3 {
    color: var(--primary-red);
    margin: 0;
    text-align: center;
}

.btn-primary {
    width: 100%;
    max-width: 350px;
    padding: 12px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    margin: 0 auto;
    display: block;
}

.btn-primary:hover {
    background: var(--primary-red-hover);
}

.btn-success {
    width: 100%;
    max-width: 350px;
    padding: 12px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    margin: 15px auto 0;
    display: block;
}

/* Payment & Contact Methods - Centered */
.payment-methods, .contact-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    align-items: center;
}

.radio-card {
    cursor: pointer;
    flex: 0 0 auto;
    min-width: 100px;
}

.radio-card input {
    display: none;
}

.radio-card .card-body {
    background: #121212;
    border: 1px solid #333;
    padding: 10px 20px;
    text-align: center;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: 0.3s;
    display: inline-block;
    min-width: 100px;
}

.radio-card input:checked + .card-body {
    border-color: var(--primary-red);
    background: rgba(229, 9, 20, 0.1);
    color: var(--primary-red);
    font-weight: bold;
}

.radio-card input[value="TELEGRAM"]:checked + .card-body {
    border-color: var(--telegram);
    background: rgba(0, 136, 204, 0.1);
    color: var(--telegram);
}

.payment-info-box {
    background: #121212;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin: 0 auto;
    max-width: 450px; /* Diperlebar */
}

.payment-info-box p {
    text-align: center;
}

.payment-info-box h3 {
    text-align: center;
    margin: 10px 0;
}

.payment-info-box hr {
    border-color: #333;
    margin: 10px 0;
}

/* QRIS Image - Responsive & Limited Size */
#qrisImage {
    text-align: center;
    margin: 10px 0;
}

#qrisImage img {
    max-width: 280px;
    max-height: 280px;
    width: auto;
    height: auto;
    border-radius: 5px;
    object-fit: contain;
}


.error-text {
    color: var(--primary-red);
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
    text-align: center;
}

/* Footer - Centered */
footer {
    background: #0a0a0a;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #333;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-content p {
    text-align: center;
}

.footer-links {
    text-align: center;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-red);
}

/* Floating WA Button */
.float-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
}

.float-wa:hover {
    transform: scale(1.1);
    background-color: #1ebc57;
}

/* Responsive */
@media (max-width: 768px) {
    .feature-card {
        flex: 0 0 calc(50% - 40px);
    }
    
    .price-card {
        flex: 0 0 calc(50% - 50px);
    }
    
    .store-name {
        font-size: 1.4rem;
    }
    
    .banner-section {
        height: 180px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }
    
    .payment-methods, .contact-methods {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .radio-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    #qrisImage img {
        max-width: 250px;
        max-height: 250px;
    }
    
    .btn-qris-full {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

    .price-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .radio-card {
        flex: 0 0 100%;
    }
    
    #qrisImage img {
        max-width: 150px;
        max-height: 150px;
    }
}

/* Tombol Perbesar QRIS */
.btn-qris-full {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: #121212;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
}

.btn-qris-full:hover {
    background: var(--primary-red);
    color: var(--text-white);
}

.btn-qris-full i {
    margin-right: 5px;
}

.qris-clickable {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.qris-clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
    border-color: var(--primary-red);
}

.qris-clickable:active {
    transform: scale(0.98);
}
