
/* ================== VARIABLES ================== */
:root {
    --dark-blue: #1e2a47;
    --medium-blue: #2d3b5a;
    --light-blue: #3a4b6d;
    --accent-blue: #4a65b0;
    --electric-blue: #2979ff;
    --sky-blue: #87CEEB;
    --gradient-blue: linear-gradient(135deg, #87CEEB 0%, #2979ff 50%, #4a65b0 100%);
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #b0b0b0;
    --bg-primary: #0f172a;
    --bg-secondary: #1a243a;
    --border-color: #2d3b5a;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(74, 101, 176, 0.3);
    --shadow-sky: 0 0 20px rgba(135, 206, 235, 0.4);
}

/* ================== BASE STYLES ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 120px;
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================== BANNER ================== */
.banner-card {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: slideInDown 0.6s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.banner-card img {
    width: 100%;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.banner-card:hover img {
    transform: scale(1.02);
}

/* ================== GAME INFO ================== */
.game-info {
    display: flex;
    align-items: center;
    margin: 20px auto;
    max-width: 1000px;
    padding: 25px;
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    animation: slideInLeft 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.game-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(74, 101, 176, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-info:hover::before {
    opacity: 1;
}

.game-logo {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    margin-right: 15px;
    border: 2px solid var(--accent-blue);
    transition: all 0.3s ease;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.game-logo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.game-details {
    flex: 1;
}

.game-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag {
    background: var(--accent-blue);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.game-details h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.game-details h2:hover {
    color: var(--electric-blue);
}

.transact-link {
    font-size: 14px;
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.transact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.transact-link:hover::after {
    width: 100%;
}

/* ================== BADGES ================== */
.game-badges {
    display: flex;
    gap: 10px;
    margin: 0 auto 20px;
    max-width: 1000px;
    flex-wrap: wrap;
    animation: fadeIn 0.8s ease-out;
}

.badge {
    flex: 1;
    min-width: 180px;
    background: var(--dark-blue);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 101, 176, 0.2), transparent);
    transition: left 0.5s;
}

.badge:hover::before {
    left: 100%;
}

.badge:hover {
    transform: translateY(-3px);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-glow);
}

/* ================== DESCRIPTION BOX ================== */
.description-box {
    background: var(--bg-secondary);
    border-radius: 12px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-color);
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.desc-header {
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--dark-blue);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.desc-header::after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.4s ease;
}

.desc-header.active::after {
    transform: rotate(180deg);
}

.desc-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 101, 176, 0.2), transparent);
    transition: left 0.5s;
}

.desc-header:hover::before {
    left: 100%;
}

.desc-header:hover {
    background: var(--medium-blue);
    transform: translateY(-2px);
}

.desc-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 20px;
}

.desc-content.open {
    max-height: 500px;
    padding: 20px;
    animation: contentSlide 0.4s ease-out;
}

@keyframes contentSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.desc-content ol {
    margin-left: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.desc-content li {
    margin-bottom: 8px;
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.desc-content li:nth-child(1) { animation-delay: 0.1s; }
.desc-content li:nth-child(2) { animation-delay: 0.2s; }
.desc-content li:nth-child(3) { animation-delay: 0.3s; }
.desc-content li:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================== FORM & CONTAINER ================== */
.form-box {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    animation: slideInUp 0.6s ease-out;
}

.form-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-box h3::before {
    content: attr(data-step);
    background: var(--accent-blue);
    color: var(--text-primary);
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    animation: pulse 2s infinite;
}

/* ================== INPUT ================== */
input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--dark-blue);
    color: var(--text-primary);
    box-sizing: border-box;
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--accent-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 101, 176, 0.2);
    transform: translateY(-2px);
}

/* ================== GRID & CARD ================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.card {
    border-radius: 12px;
    border: 2px solid var(--border-color);
    overflow: hidden;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--dark-blue);
    cursor: pointer;
    position: relative;
    animation: cardAppear 0.5s ease-out;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(135, 206, 235, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    border-color: var(--sky-blue);
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow), var(--shadow-sky);
}

/* === SUPER ANIMATED ACTIVE STATE === */
.card.active {
    background: var(--gradient-blue);
    border-color: var(--sky-blue);
    transform: scale(1.08);
    animation: skyPulse 2s ease-in-out infinite, glowBorder 1.5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.card.active::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(135, 206, 235, 0.3), transparent);
    animation: shine 3s ease-in-out infinite;
    transform: rotate(45deg);
}

@keyframes skyPulse {
    0%, 100% { 
        box-shadow: var(--shadow), 0 0 25px rgba(135, 206, 235, 0.6);
        transform: scale(1.08);
    }
    50% { 
        box-shadow: var(--shadow), 0 0 35px rgba(135, 206, 235, 0.8);
        transform: scale(1.1);
    }
}

@keyframes glowBorder {
    0%, 100% { border-color: var(--sky-blue); }
    50% { border-color: var(--electric-blue); }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(200%) translateY(200%) rotate(45deg); }
}

.card.active .card-top {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* TEXT TETAP PUTIH - TAK BERUBAH */
.card.active .product-name,
.card.active .price,
.card .product-name,
.card .price {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ICON ANIMATION YANG LEBIH SMOOTH */
.card.active .diamond-img {
    transform: scale(1.3) rotate(15deg);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
    animation: iconTilt 2s ease-in-out infinite;
}

@keyframes iconTilt {
    0%, 100% { 
        transform: scale(1.3) rotate(15deg);
    }
    50% { 
        transform: scale(1.4) rotate(25deg);
    }
}

.card-top {
    background: var(--medium-blue);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.card-top .product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-top .diamond-img {
    width: 30px;
    height: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
    }
    33% { 
        transform: translateY(-3px) rotate(3deg);
    }
    66% { 
        transform: translateY(2px) rotate(-3deg);
    }
}

.card:hover .diamond-img {
    transform: scale(1.2) rotate(10deg);
    animation: hoverTilt 0.6s ease-out;
}

@keyframes hoverTilt {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.3) rotate(15deg); }
    100% { transform: scale(1.2) rotate(10deg); }
}

.card-bottom {
    background: var(--bg-secondary);
    padding: 10px 12px;
    text-align: left;
    position: relative;
    z-index: 1;
}

.price-box {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.price-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 400;
}

.card-bottom .price {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.8rem;
}

/* ================== PAYMENT METHODS ================== */
.payment-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    background: var(--dark-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideInRight 0.5s ease-out;
    width: 100%;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
}

.payment-info .pay-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.payment-info .wallet-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.payment-info .title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.payment-info .user-balance-box {
    background: var(--accent-blue);
    color: var(--text-primary);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 4px;
    width: fit-content;
    white-space: nowrap;
}

.pay-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 15px;
}

.payment-option:hover {
    border-color: var(--accent-blue);
    background: var(--medium-blue);
    transform: translateX(5px);
}

.payment-option input[type="radio"]:checked + .payment-info {
    border-left: 3px solid var(--accent-blue);
    padding-left: 12px;
}

/* ================== ULTIMATE CHECKOUT BOX - SUSUNAN KEKAL ================== */
.preview-box {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 450px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--dark-blue) 100%);
    padding: 18px 20px;
    border-radius: 16px;
    border: 2px solid var(--sky-blue);
    box-shadow: var(--shadow), var(--shadow-sky), 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    animation: slideUpBounce 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    gap: 15px;
}

@keyframes slideUpBounce {
    0% {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    70% {
        transform: translate(-50%, -10%);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* SUSUNAN: ICON -> INFO -> BUTTON */
.preview-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.preview-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--sky-blue);
    animation: bounceFloat 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(135, 206, 235, 0.4);
    transition: all 0.3s ease;
}

@keyframes bounceFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
    }
    33% { 
        transform: translateY(-4px) rotate(5deg);
    }
    66% { 
        transform: translateY(2px) rotate(-5deg);
    }
}

.preview-icon:hover {
    animation: iconSpin 0.6s ease-in-out;
}

@keyframes iconSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(15deg) scale(1.1); }
    100% { transform: rotate(0deg) scale(1); }
}

.preview-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    flex: 1;
}

.preview-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.preview-price {
    font-size: 13px;
    color: var(--sky-blue);
    font-weight: 600;
    margin: 2px 0 0;
    text-shadow: 0 0 10px rgba(135, 206, 235, 0.5);
}

.preview-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.countdown {
    background: var(--gradient-blue);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    animation: countdownPulse 1s ease-in-out infinite alternate;
    box-shadow: 0 0 15px rgba(135, 206, 235, 0.5);
    white-space: nowrap;
}

@keyframes countdownPulse {
    from { 
        transform: scale(1);
        box-shadow: 0 0 15px rgba(135, 206, 235, 0.5);
    }
    to { 
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(135, 206, 235, 0.8);
    }
}

/* ================== EPIC CHECKOUT BUTTON ================== */
.checkout-btn {
    background: var(--gradient-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 100px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 5px 15px rgba(135, 206, 235, 0.4);
    white-space: nowrap;
}

.checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.checkout-btn:hover::before {
    left: 100%;
}

.checkout-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.6);
    animation: buttonShake 0.3s ease-in-out;
}

@keyframes buttonShake {
    0%, 100% { transform: translateX(0) translateY(-3px) scale(1.05); }
    25% { transform: translateX(-2px) translateY(-3px) scale(1.05); }
    75% { transform: translateX(2px) translateY(-3px) scale(1.05); }
}

.checkout-btn:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

/* ================== CONFIRMATION MODAL ================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--dark-blue) 100%);
    border-radius: 20px;
    padding: 25px;
    width: 90%;
    max-width: 420px;
    box-shadow: var(--shadow), var(--shadow-sky), 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--sky-blue);
    animation: modalSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(135, 206, 235, 0.1), transparent);
    animation: modalShine 6s ease-in-out infinite;
    transform: rotate(45deg);
}

@keyframes modalShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(200%) translateY(200%) rotate(45deg); }
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.close-btn {
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    float: right;
    margin-top: -5px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-inner {
    display: grid;
    gap: 15px;
    margin-top: 10px;
}

.modal-box {
    background: rgba(30, 42, 71, 0.7);
    border: 1px solid var(--sky-blue);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    animation: fadeInUp 0.6s ease-out;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(135, 206, 235, 0.2);
}

.modal-box h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 5px;
    animation: slideInRight 0.5s ease-out;
}

.info-row .label {
    font-weight: 500;
    color: var(--text-secondary);
}

.info-row .value {
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}

.btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.back-btn {
    background: rgba(30, 42, 71, 0.8);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.back-btn:hover {
    background: var(--medium-blue);
    border-color: var(--sky-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(135, 206, 235, 0.3);
}

.confirm-btn {
    background: var(--gradient-blue);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(135, 206, 235, 0.4);
}

.confirm-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(135, 206, 235, 0.6);
}

/* ================== UTILITY ================== */
.hidden {
    display: none;
}

.payment-option.unavailable {
    opacity: 0.6;
    cursor: not-allowed;
}

.payment-option.unavailable::after {
    content: "Tidak tersedia";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    z-index: 2;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
    .game-info {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .game-logo {
        margin: 0 auto 10px;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .preview-box {
        width: 95%;
        padding: 15px;
        gap: 12px;
    }
    
    .preview-icon {
        width: 40px;
        height: 40px;
    }
    
    .preview-title {
        font-size: 14px;
    }
    
    .preview-price {
        font-size: 12px;
    }
    
    .checkout-btn {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 90px;
    }
    
    .countdown {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .card.active {
        transform: scale(1.05);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .form-box {
        padding: 15px;
    }
    
    .game-badges {
        flex-direction: column;
    }
    
    .badge {
        min-width: auto;
    }
    
    .card {
        min-height: 80px;
    }
    
    .preview-box {
        bottom: 15px;
        padding: 12px;
    }
    
    .preview-left {
        gap: 8px;
    }
    
    .preview-icon {
        width: 35px;
        height: 35px;
    }
    
    .preview-info {
        min-width: 0;
    }
    
    .preview-title {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .preview-price {
        font-size: 11px;
    }
    
    .checkout-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 80px;
    }
}

/* ================== SMOOTH SCROLLING ================== */
html {
    scroll-behavior: smooth;
}