/* --- โครงสร้างหน้าเติมเงิน --- */
.topup-wrapper {
    max-width: 500px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* --- การ์ดยอดเงินคงเหลือ --- */
.balance-card {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
}

.balance-card p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.balance-card h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

/* --- หัวข้อแต่ละส่วน --- */
.topup-section {
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
}

/* --- ปุ่มเลือกจำนวนเงิน (Grid) --- */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.amount-btn {
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* สถานะตอนปุ่มถูกเลือก */
.amount-btn.active, .amount-btn:hover {
    background: #fff3e0;
    border-color: #ff9800;
    color: #ff9800;
}

/* --- ช่องกรอกตัวเลขเอง --- */
.custom-amount-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.custom-amount-input:focus {
    border-color: #ff9800;
}

/* --- ตัวเลือกชำระเงิน --- */
.payment-method {
    display: block;
    cursor: pointer;
}

.payment-method input[type="radio"] {
    display: none; /* ซ่อนปุ่ม Radio ของจริงไว้ */
}

.method-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #ff9800; /* ตั้งค่า Default เป็นสีส้มเพราะมีตัวเลือกเดียว */
    border-radius: 8px;
    background: #fff3e0;
}

.method-card img {
    height: 30px;
    margin-right: 15px;
}

.method-card span {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

/* --- ปุ่มยืนยัน --- */
.btn-confirm {
    width: 100%;
    padding: 16px;
    background-color: #ff9800;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
    transition: background-color 0.2s ease;
}

.btn-confirm:hover {
    background-color: #e68a00;
}