:root {
    --swal2-confirm-button-background-color: #0d6efd !important
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Kanit', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
}

.center-card {
    width: 100%;
    max-width: 720px;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(28, 44, 72, 0.12);
    background: #fff;
    padding: 20px;
    position: relative;
}

.card-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

/* โลโก้เป็นรูปแบบ responsive */
.brand-img-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-img {
    height: 46px;
    /* ขนาดมาตรฐานบนเดสก์ท็อป */
    width: auto;
    display: block;
    object-fit: contain;
}

/* ปรับขนาดโลโก้ในหน้าจอเล็ก */
@media (max-width: 576px) {
    .brand-img {
        height: 38px;
    }
}

@media (max-width: 400px) {
    .brand-img {
        height: 34px;
    }
}

.main-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.main-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    color: #4b5563;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s, transform .06s;
}

.main-nav .nav-link:hover {
    background: rgb(59 130 246 / 50%);
    color: #1e3a8a;
    transform: translateY(-1px);
    text-decoration: none;
}

.nav-logout {
    background: linear-gradient(90deg, #ff7a7a, #ff4b4b);
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(255, 75, 75, 0.12);
}

.promo {
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: center;
    color: #fff;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    box-shadow: 0 8px 20px rgba(255, 100, 80, 0.12);
    margin-bottom: 18px;
    font-weight: 500;
}

.promo i {
    font-size: 20px;
}

.promo strong {
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-control,
.form-select {
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: none;
    border: 1px solid #e6e9ee;
}

.input-icon {
    min-width: 44px;
    display: grid;
    place-items: center;
    color: #6c757d;
}

.section-label {
    font-weight: 700;
    color: #d9534f;
    margin-top: 8px;
    margin-bottom: 8px;
}

.submit-btn {
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(33, 123, 201, 0.18);
}

.card-footer-text {
    font-size: 13px;
    color: #9aa3af;
    text-align: center;
    margin-top: 16px;
}

.forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
    margin-bottom: 8px;
}

.forgot-row a {
    font-size: 0.9rem;
    color: #2563eb;
    text-decoration: none;
}

.forgot-row a:hover {
    text-decoration: underline;
}

.btn-payment-select {
    height: 150px;
    max-width: 150px;
    background: url(../images/topup-idle.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    padding: 10px;
    transition: 0.3s;
}

.btn-payment-select:hover, .btn-payment-select.selected {
    background: url(../images/topup-select.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.no-focus {
  pointer-events: none; /* ป้องกันการคลิก focus */
  background-color: #e9ecef; /* สีเทาอ่อนเหมือน disabled */
  user-select: none; /* กันการ select text */
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
}

@media (max-width: 576px) {
    .center-card {
        padding: 16px;
        margin: 16px;
        border-radius: 14px;
    }

    .promo {
        padding: 12px;
        gap: 10px;
    }

    .promo i {
        font-size: 20px;
    }
}