/* ======================== 
   TOP UP PAGE STYLES
   ======================== */

.topup-bg-glow {
    position: absolute;
    top: -100px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(160, 20, 20, 0.15) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.topup-section {
    position: relative;
    z-index: 1;
    padding: 120px 0 100px; /* Offset for navbar */
    background: var(--bg-dark);
}

.container-topup {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.topup-header {
    margin-bottom: 40px;
}

.topup-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 16px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.topup-header-line {
    height: 1px;
    width: 140px;
    background: var(--border);
    position: relative;
}

.topup-header-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 1px;
    width: 40px;
    background: var(--white);
}

.topup-header p {
    font-size: 1rem;
    color: var(--text-sub);
    margin-top: 12px;
}

/* Grid Layout */
.topup-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: flex-start;
}

/* CARDS */
.topup-card, .summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 32px;
}

.mt-24 {
    margin-top: 24px;
}

.topup-card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.topup-card-header p {
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-bottom: 16px;
}

.card-line {
    height: 1px;
    background: var(--border);
    margin-bottom: 24px;
    width: 100%;
}

/* Inputs */
.form-group-topup {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-topup label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
}

.form-control-topup {
    width: 100%;
    background: #111111;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    color: var(--white);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control-topup::placeholder {
    color: var(--text-muted);
}

.form-control-topup:focus {
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
}

/* Denomination Grid */
.denom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.denom-item {
    cursor: pointer;
    display: block;
}

.denom-item input[type="radio"] {
    display: none;
}

.denom-card {
    display: flex;
    align-items: center;
    background: #1A1A1A; /* Slightly lighter than card bg to pop out */
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    transition: var(--transition);
}

.denom-card:hover {
    border-color: var(--border-hover);
}

/* Radio circle logic */
.denom-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    transition: var(--transition);
}

.radio-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    transition: var(--transition);
}

/* Checked State */
.denom-item input[type="radio"]:checked + .denom-card {
    border-color: var(--gold);
    /* In the mockup, the card itself might just get a bright border 
       and the radio turns green. */
}

.denom-item input[type="radio"]:checked + .denom-card .denom-radio {
    border-color: #10B981; /* Green */
}

.denom-item input[type="radio"]:checked + .denom-card .radio-inner {
    background: #10B981; /* Green */
}

/* Details inside option */
.denom-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.denom-icon img {
    width: 100%;
    height: auto;
}

.denom-info {
    flex: 1;
}

.denom-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
}

.denom-info p {
    font-size: 0.75rem;
    color: var(--text-sub);
}

.denom-price {
    font-size: 0.95rem;
    font-weight: 700;
    text-align: right;
}

.view-more {
    margin-top: 16px;
}

.btn-view-more {
    background: none;
    border: none;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-view-more:hover {
    color: var(--text-sub);
}

/* ===============================
   SUMMARY CARD (RIGHT) 
   =============================== */
.summary-card {
    position: sticky;
    top: 100px;
    padding: 24px;
}

.summary-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.summary-game-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.summary-game-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.summary-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-game-text {
    flex: 1;
}

.summary-game-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.summary-game-text p {
    font-size: 0.85rem;
    color: var(--text-sub);
}

.summary-divider {
    height: 1px;
    background: rgba(255,255,255,0.05); /* very subtle */
    margin: 20px 0;
}

.summary-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.s-label {
    color: var(--text-sub);
}

.s-value {
    font-weight: 500;
    color: var(--white);
    text-align: right;
}

.s-strike {
    text-decoration: line-through;
    color: var(--text-muted);
    margin-right: 6px;
    font-weight: 400;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.t-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--white);
}

.t-value {
    font-weight: 800;
    font-size: 1.1rem;
}

.btn-checkout {
    width: 100%;
    background: var(--red);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 16px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-checkout:hover {
    background: var(--red-light);
}


/* ======================== RESPONSIVE ======================== */
@media (max-width: 1024px) {
    .topup-grid {
        grid-template-columns: 1fr;
    }

    .summary-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .denom-grid {
        grid-template-columns: 1fr;
    }

    .topup-header h2 {
        font-size: 1.6rem;
    }

    .topup-card {
        padding: 20px;
    }
    
    .summary-card {
        padding: 20px;
    }
}
