* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --dark: #111827;
    --text: #334155;
    --gray: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --background: #f8fafc;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
}

a { text-decoration: none; }

.header {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 15px 5%;
    background: var(--white);
    border-bottom: 1px solid #edf2f7;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
}

/* LOGO */
.logo img {
    display: block;
    height: 45px;
    width: 50px;
    min-width: 50px;
    object-fit: contain;
    max-width: 100%;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: #111827;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
    color: var(--dark);
}

.logo-text h2 {
    font-size: 23px;
    letter-spacing: 1px;
}

.logo-text p {
    margin-top: 4px;
    color: var(--gray);
    font-size: 10px;
}

/* MENU */
.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
}

.menu a {
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s;
}

.menu a:hover,
.menu a.active {
    color: var(--primary);
}

/* ĐĂNG NHẬP */
.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 9px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    transition: 0.2s;
}

.login-btn:hover { background: var(--primary-dark); }

.deposit-page {
    min-height: 700px;
    padding: 30px 20px 60px;
}

.deposit-container {
    max-width: 950px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    font-size: 12px;
    color: var(--gray);
}

.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

.page-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.heading-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #dbeafe;
    font-size: 27px;
}

.page-heading h1 {
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 27px;
}

.page-heading p {
    color: var(--gray);
    font-size: 13px;
    line-height: 1.6;
}

.balance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 32px;
    margin-bottom: 25px;
    border-radius: 17px;
    color: white;
    background: linear-gradient(115deg, #1d4ed8, #3b82f6);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.15);
}

.balance-label {
    display: block;
    margin-bottom: 12px;
    color: #dbeafe;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.2px;
}

.balance-info h2 {
    font-size: 35px;
    margin-bottom: 8px;
}

.balance-info p {
    color: #dbeafe;
    font-size: 12px;
}

.balance-icon {
    font-size: 55px;
    opacity: 0.9;
}

.deposit-card {
    padding: 30px;
    background: white;
    border: 1px solid #edf2f7;
    border-radius: 17px;
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.035);
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 22px;
}

.step-number {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: bold;
}

.section-heading h2 {
    margin: 3px 0 7px;
    color: var(--dark);
    font-size: 17px;
}

.section-heading p {
    color: var(--gray);
    font-size: 12px;
    line-height: 1.6;
}

/* Chọn số tiền: dùng Flexbox, không dùng Grid */
.amount-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-bottom: 27px;
}

.amount-option {
    width: calc((100% - 26px) / 3);
    min-height: 58px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: white;
    color: #334155;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.amount-option:hover {
    border-color: #93c5fd;
    background: #f8fbff;
    color: var(--primary);
}

.amount-option.selected {
    border: 2px solid var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.custom-amount { margin-bottom: 35px; }

.custom-amount > label {
    display: block;
    margin-bottom: 10px;
    color: #334155;
    font-size: 13px;
    font-weight: bold;
}

.money-input {
    display: flex;
    align-items: center;
    min-height: 49px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: 0.2s;
}

.money-input:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.money-input input {
    width: 100%;
    padding: 13px 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--dark);
    font-size: 14px;
}

.money-input input::placeholder { color: #94a3b8; }

.money-input span {
    color: var(--gray);
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.custom-amount small {
    display: block;
    margin-top: 8px;
    color: #94a3b8;
    font-size: 11px;
}

.payment-heading { margin-bottom: 20px; }

.payment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.payment-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px;
    min-height: 78px;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.payment-option:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}

.payment-option:has(input:checked) {
    border: 1px solid var(--primary);
    background: #f8fbff;
}

.payment-option input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

/* ICON THANH TOÁN */
.payment-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    flex-shrink: 0;
    font-size: 19px;
    font-weight: bold;
}

.bank-icon { background: #dbeafe; color: #1d4ed8; }
.momo-icon { background: #fce7f3; color: #db2777; }
.zalo-icon { background: #dbeafe; color: #2563eb; }

/* THÔNG TIN THANH TOÁN */
.payment-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.payment-info strong {
    color: var(--dark);
    font-size: 13px;
}

.payment-info small {
    color: var(--gray);
    font-size: 11px;
}

.deposit-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.deposit-summary span {
    color: var(--gray);
    font-size: 13px;
}

.deposit-summary strong {
    color: var(--primary);
    font-size: 23px;
}

.deposit-button {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border: none;
    border-radius: 11px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s;
}

.deposit-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.security-note {
    margin-top: 14px;
    text-align: center;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.6;
}

.deposit-message {
    display: none;
    margin-bottom: 15px;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.deposit-message.error {
    display: block;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.deposit-message.success {
    display: block;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.history-card {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 22px;
    padding: 22px;
    background: white;
    border: 1px solid #edf2f7;
    border-radius: 14px;
}

.history-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    background: #eff6ff;
    font-size: 23px;
}

.history-content { flex: 1; }

.history-content h3 {
    margin-bottom: 7px;
    color: var(--dark);
    font-size: 14px;
}

.history-content p {
    color: var(--gray);
    font-size: 11px;
    line-height: 1.6;
}

.history-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 13px;
    border: 1px solid #bfdbfe;
    border-radius: 9px;
    background: #eff6ff;
    color: var(--primary);
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
    transition: 0.2s;
}

.history-button:hover { background: #dbeafe; }

.notice-card {
    margin-top: 22px;
    padding: 23px;
    border: 1px solid #dbeafe;
    border-radius: 13px;
    background: #eff6ff;
}

.notice-card h3 {
    margin-bottom: 15px;
    color: #1e40af;
    font-size: 14px;
}

.notice-card ul { padding-left: 20px; }

.notice-card li {
    margin-bottom: 10px;
    color: #475569;
    font-size: 12px;
    line-height: 1.7;
}

.notice-card li:last-child { margin-bottom: 0; }

.footer {
    padding: 35px 20px;
    text-align: center;
    background: white;
    border-top: 1px solid #edf2f7;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--dark);
    font-size: 21px;
    font-weight: bold;
}

.footer p {
    margin-top: 8px;
    color: var(--gray);
    font-size: 11px;
    line-height: 1.6;
}

@media (max-width: 1000px) {
    .header { flex-wrap: wrap; }

    .menu {
        order: 3;
        width: 100%;
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 15px 20px;
        gap: 15px;
    }

    .menu {
        justify-content: flex-start;
        gap: 15px;
    }

    .menu a { font-size: 12px; }

    .deposit-page { padding: 22px 13px 40px; }

    .page-heading h1 { font-size: 22px; }
    .page-heading p { font-size: 12px; }

    .balance-card { padding: 23px 20px; }
    .balance-info h2 { font-size: 29px; }
    .balance-icon { font-size: 40px; }

    .deposit-card { padding: 20px 15px; }

    /* Điện thoại: hai nút trên mỗi hàng, vẫn dùng Flexbox */
    .amount-grid { gap: 10px; }

    .amount-option {
        width: calc((100% - 10px) / 2);
        min-height: 52px;
        font-size: 13px;
    }

    .section-heading h2 { font-size: 15px; }

    .history-card {
        flex-wrap: wrap;
        padding: 18px;
    }

    .history-content { min-width: 150px; }
    .history-button { width: 100%; }
    .deposit-summary strong { font-size: 20px; }
}
#thongBaoThanhToan {
    display: none;
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

/* THANH TOÁN THÀNH CÔNG */

.thanh-cong {
    display: block !important;
    color: #166534;
    background-color: #2e19a2;
    border: 1px solid #2e19a2;
}

/* THANH TOÁN THẤT BẠI */

.thanh-that-bai {
    display: block !important;
    color: #991b1b;
    background-color: #e11010;
    border: 1px solid #fca5a5;
}
