/* PREMIUM DESIGN SYSTEM FOR ACV INVESTMENT PLATFORM */
/* Tone: Elegant White Background, Classic ACV Blue Accents (#0f6ab0), Sleek Typography */

/* --- Import Phông chữ Montserrat & Outfit --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* --- Áp dụng Reset và Nền trắng tinh tế cho tất cả các trang, ngoại trừ trang HomeIndex --- */
html {
    background-color: #f4f6f9 !important;
    /* Nền xám bao quanh cực kỳ sang trọng */
}

body {
    font-family: 'Montserrat', sans-serif !important;
    background-color: #ffffff !important;
    /* Nền trắng của khung điện thoại ở giữa */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.08) !important;
    /* Đổ bóng nhẹ tạo chiều sâu cho điện thoại */
}

/* Đảm bảo trang chọn ngôn ngữ HomeIndex không bị ảnh hưởng phong cách nền trắng */
.banner_bg:has(.imagecenter) {
    background: #2b709c !important;
    /* Giữ màu xanh nguyên bản của trang chọn ngôn ngữ */
}

/* --- Tối ưu hóa Toàn bộ Giao diện Mobile --- */
.mobile,
.main {
    background-color: #ffffff !important;
    /* Nền trắng tinh khiết chủ đạo */
}

/* Khắc phục padding/margin cho trang Home */
.main {
    padding-top: 10px !important;
}

/* --- Header & Top Navigation --- */
.othertop {
    width: 100% !important;
    max-width: 500px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    height: 0.9rem !important;
    line-height: 0.9rem !important;
    background: #ffffff !important;
    border-bottom: 1px solid #eaeaea !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    position: fixed !important;
    top: 0 !important;
    z-index: 9999 !important;
}

.goback {
    position: absolute !important;
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 0.6rem !important;
    height: 0.6rem !important;
    float: none !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.goback img {
    width: 0.45rem !important;
    height: 0.45rem !important;
    margin: 0 !important;
    transition: transform 0.2s ease !important;
    /* Chuyển icon màu trắng sang màu xanh thương hiệu ACV (#0f6ab0) để hiển thị nổi bật trên nền trắng */
    filter: brightness(0) saturate(100%) invert(32%) sepia(90%) saturate(1212%) hue-rotate(184deg) brightness(90%) contrast(98%) !important;
}

.goback:active img {
    transform: scale(0.85) !important;
}

.othertop-font {
    color: #0f6ab0 !important;
    font-weight: 700 !important;
    font-size: 0.32rem !important;
    width: auto !important;
    float: none !important;
    line-height: normal !important;
    text-align: center !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* --- Banner & Slide Swiper --- */
.hm_banner_1 {
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(15, 106, 176, 0.12) !important;
    margin: 15px 12px !important;
    background: transparent !important;
    padding: 0 !important;
}

.swiper-slide img {
    width: 100% !important;
    border-radius: 16px !important;
    display: block !important;
    padding: 0 !important;
}

/* --- Navigation Grid (8 Menu Icons) --- */
.hm_nav {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px 10px !important;
    padding: 20px 10px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03) !important;
    margin: 15px 12px !important;
    border: 1px solid #f0f3f6 !important;
}

.hm_nav a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
}

.hm_nav a:active {
    transform: scale(0.92);
}

.hm_nav a img {
    width: 1.1rem !important;
    height: 1.1rem !important;
    margin-bottom: 8px !important;
    filter: drop-shadow(0 4px 8px rgba(15, 106, 176, 0.15)) !important;
    transition: filter 0.2s ease !important;
}

.hm_nav a span {
    color: #444444 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    font-family: 'Montserrat', sans-serif !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 6px !important;
    white-space: nowrap !important;
}

/* --- Thẻ Dự án / Gói đầu tư (Investment Cards) --- */
.hm_lc {
    background: transparent !important;
    padding: 10px 0 !important;
}

.hm_lc .head {
    margin-bottom: 15px !important;
    border-left: 4px solid #0f6ab0 !important;
    padding-left: 10px !important;
}

.hm_lc .head .tit {
    color: #0f6ab0 !important;
    /* Xanh ACV */
    font-weight: 700 !important;
    font-size: 0.34rem !important;
    font-family: 'Montserrat', sans-serif !important;
}

.lc_item {
    background: #ffffff !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 20px !important;
    padding: 18px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
    box-sizing: border-box !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.lc_item_h {
    height: auto !important;
}

.lc_item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(15, 106, 176, 0.08) !important;
}

.lc_item .banner {
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-bottom: 12px !important;
}

.lc_item .banner img.banner_img {
    width: 100% !important;
    height: auto !important;
    display: block;
}

.lc_item .title-wrapper-com {
    font-size: 0.32rem !important;
    font-weight: 700 !important;
    color: #111111 !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
    font-family: 'Montserrat', sans-serif !important;
}

.lc_item .wrapper {
    display: flex !important;
    justify-content: space-between !important;
    background: #f8fafc !important;
    padding: 12px !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
}

.lc_item .wrapper dl {
    text-align: center !important;
    margin: 0 !important;
    flex: 1;
}

.lc_item .wrapper dl dt {
    color: #0f6ab0 !important;
    /* Xanh ACV */
    font-size: 0.36rem !important;
    font-weight: 700 !important;
    font-family: 'Montserrat', sans-serif !important;
}

.lc_item .wrapper dl dt font {
    font-size: 0.36rem !important;
    font-weight: 700 !important;
}

.lc_item .wrapper dl dt span {
    font-size: 0.24rem !important;
}

.lc_item .wrapper dl dd {
    color: #777777 !important;
    font-size: 0.22rem !important;
    margin-top: 4px !important;
    font-weight: 500 !important;
}

/* Tiến độ đầu tư & Thanh tiến trình */
.lc_item .plan {
    display: flex !important;
    align-items: center !important;
    margin-top: 15px !important;
    font-size: 0.24rem !important;
    color: #666666 !important;
    font-weight: 500 !important;
}

.lc_item .plan-wrap {
    flex: 1 !important;
    height: 8px !important;
    background: #e2e8f0 !important;
    border-radius: 10px !important;
    margin: 0 10px !important;
    overflow: hidden !important;
}

.lc_item .plan-con {
    height: 100% !important;
    background: linear-gradient(90deg, #3b82f6, #0f6ab0) !important;
    /* Gradient xanh mượt */
    border-radius: 10px !important;
    transition: width 0.5s ease-in-out;
}

.lc_item .plan-text {
    font-weight: 700 !important;
    color: #0f6ab0 !important;
}

/* Nút đầu tư & Thông tin chân thẻ */
.lc_item .ib-foot {
    margin-top: 15px !important;
    border-top: 1px solid #f0f0f0 !important;
    padding-top: 12px !important;
}

.lc_item .ib-foot .text p {
    margin: 0 !important;
    color: #666666 !important;
    font-size: 0.24rem !important;
    font-weight: 500 !important;
}

.lc_item .ib-foot .text p font {
    font-weight: 700 !important;
    color: #0f6ab0 !important;
}

.now-btn,
.input_btn,
.btn-submit {
    background: linear-gradient(135deg, #2563eb, #0f6ab0) !important;
    /* Xanh ACV */
    color: #ffffff !important;
    border: none !important;
    padding: 10px 20px !important;
    font-size: 0.26rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    text-align: center !important;
    box-shadow: 0 4px 12px rgba(15, 106, 176, 0.25) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.now-btn:active,
.input_btn:active,
.btn-submit:active {
    transform: scale(0.96) !important;
    box-shadow: 0 2px 6px rgba(15, 106, 176, 0.15) !important;
}

/* --- Trang cá nhân (Profile / Me.php) --- */
.avatar {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 30px 15px !important;
    background: linear-gradient(180deg, #f4f7fa, #ffffff) !important;
    border-radius: 0 0 24px 24px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
    margin-bottom: 20px !important;
}

.ant-avatar {
    border: 4px solid #ffffff !important;
    box-shadow: 0 8px 24px rgba(15, 106, 176, 0.15) !important;
    margin-bottom: 12px !important;
}

.avatar span.ant-typography {
    color: #111111 !important;
    font-weight: 700 !important;
    font-size: 0.36rem !important;
}

/* Bảng điều khiển CMND */
.alert-container {
    background: #f0f7ff !important;
    /* Nền xanh nước biển cực nhạt */
    border: 1px dashed #0f6ab0 !important;
    border-radius: 16px !important;
    padding: 16px !important;
    margin: 15px !important;
}

/* Danh mục tùy chọn (Profile Rows) */
.tab {
    background: #ffffff !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 14px !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
    transition: background-color 0.2s ease !important;
}

.tab:active {
    background-color: #f8fafc !important;
}

.tab .anticon {
    font-size: 22px !important;
    margin-right: 15px !important;
    color: #0f6ab0 !important;
    /* Thay màu trắng cũ thành xanh ACV */
}

.tab-text {
    color: #333333 !important;
    /* Thay chữ trắng cũ thành chữ tối đậm */
    font-weight: 600 !important;
    font-size: 0.28rem !important;
}

/* Nút đăng xuất */
.log-out-btn {
    background: #fff0f0 !important;
    border: 1px solid #ffcccc !important;
    color: #d93838 !important;
    font-weight: 700 !important;
    width: 100% !important;
    padding: 12px !important;
    border-radius: 12px !important;
    font-size: 0.28rem !important;
    transition: background 0.2s ease !important;
}

.log-out-btn:active {
    background: #ffe3e3 !important;
}

.log-out-btn .anticon {
    color: #d93838 !important;
    margin-right: 10px !important;
}

/* Chân trang đóng dấu VSETGROUP */
.ant-image-img {
    filter: grayscale(1) opacity(0.7);
}

/* --- Form Đầu vào (Input Fields & Labels) --- */

.input_btn {
    width: 100% !important;
    padding: 14px !important;
    font-size: 0.3rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px !important;
}

/* --- Form Đấu thầu (Dauthau.php) --- */
.form_outer {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 20px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #f0f0f0 !important;
}

.form_top {
    background: #f0f7ff !important;
    border-radius: 16px !important;
    padding: 16px !important;
    margin-bottom: 20px !important;
    border-left: 4px solid #0f6ab0 !important;
    width: auto !important;
}

.form_top p {
    margin: 12px 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.form_top .span_tit {
    color: #555555 !important;
    font-weight: 600 !important;
    font-size: 0.24rem !important;
    text-align: left !important;
    line-height: 1.4 !important;
}

.form_top .span_num {
    color: #0f6ab0 !important;
    font-weight: 700 !important;
    font-size: 0.28rem !important;
    text-align: right !important;
    line-height: 1.4 !important;
}

.form_outer ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
}

.form_outer ul li {
    padding: 12px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form_outer ul li label {
    font-weight: 600 !important;
    color: #444444 !important;
    font-size: 0.26rem !important;
}

.form_outer ul li span {
    font-weight: 700 !important;
    color: #0f6ab0 !important;
    font-size: 0.28rem !important;
}

/* --- Chân trang (Footer Navigation) --- */
footer.footer {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-top: 1px solid #eaeaea !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03) !important;
}

footer.footer a p {
    font-family: 'Montserrat', sans-serif !important;
}

/* Trạng thái hoạt động của icon chân trang */
footer.footer a:active p {
    color: #0f6ab0 !important;
}

/* --- Tái thiết kế Ticker Thu nhập Realtime Premium (Live Payout Ticker) --- */
.marquee_outer {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid rgba(15, 106, 176, 0.08) !important;
    border-radius: 20px !important;
    padding: 16px 20px !important;
    margin: 15px 12px !important;
    height: auto !important;
    min-height: 280px !important;
    box-shadow: 0 10px 30px rgba(15, 106, 176, 0.04) !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

.marquee_outer::before {
    content: '● HOẠT ĐỘNG GIAO DỊCH TRỰC TUYẾN' !important;
    display: flex !important;
    align-items: center !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #10b981 !important;
    margin-bottom: 12px !important;
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: 0.8px !important;
    background: rgba(16, 185, 129, 0.08) !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    width: fit-content !important;
    animation: pulse-live 2s infinite !important;
}

@keyframes pulse-live {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

.marquee_txt {
    width: 100% !important;
    float: none !important;
    height: 250px !important;
    overflow: hidden !important;
    color: #334155 !important;
    font-family: 'Montserrat', sans-serif !important;
    position: relative !important;
}

.ticker-wrapper {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    will-change: transform !important;
}

.ticker-item {
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #475569 !important;
}

.ticker-item span:first-child {
    font-family: 'Outfit', sans-serif !important;
    color: #334155 !important;
    font-weight: 600 !important;
}

.ticker-item span:last-child {
    font-size: 12px !important;
    color: #64748b !important;
}

.ticker-item span:last-child span.ticker-amount {
    color: #10b981 !important;
    font-weight: 800 !important;
    font-size: 13.5px !important;
    font-family: 'Outfit', sans-serif !important;
    margin-left: 6px !important;
}

/* --- Popup thông báo (Hộp cảnh báo đẹp mắt) --- */
#popup>div {
    border-radius: 16px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
}

#popup #title {
    background-color: #0f6ab0 !important;
    /* Xanh ACV */
    font-weight: 700 !important;
    font-size: 0.32rem !important;
    text-align: center;
}

#popup #content {
    font-weight: 500 !important;
    font-size: 0.28rem !important;
    color: #444444 !important;
    text-align: center;
    padding: 24px !important;
}

#popup input[type="button"] {
    background-color: #0f6ab0 !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    padding: 8px 20px !important;
}

/* ========================================================================= */
/* --- THIẾT KẾ LẠI CÁC TRANG CON CHI TIẾT (NEW SUBPAGES REDESIGN) --- */
/* ========================================================================= */

/* --- 1. Thẻ Tín Dụng / Tổng Tiền (Person.php my_total) --- */
.my_total {
    background: linear-gradient(135deg, #1d4ed8, #0f6ab0) !important;
    /* Gradient xanh ACV */
    color: #ffffff !important;
    border-radius: 24px !important;
    padding: 24px !important;
    box-shadow: 0 10px 30px rgba(15, 106, 176, 0.2) !important;
    margin-bottom: 24px !important;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.my_total::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.my_total .user {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    opacity: 0.9;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-bottom: 12px !important;
    margin-bottom: 16px !important;
    gap: 10px !important;
}

.my_total .user span {
    white-space: nowrap !important;
}

.my_total .user span {
    color: #ffffff !important;
}

.my_total p.bal {
    font-size: 0.64rem !important;
    font-weight: 700 !important;
    margin: 10px 0 4px 0 !important;
    letter-spacing: -0.5px;
    font-family: 'Outfit', sans-serif !important;
    /* Font tiền tròn trịa, mượt mà hơn */
    color: #ffffff !important;
}

.my_total p.bal_tit {
    font-size: 0.24rem !important;
    font-weight: 600 !important;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 20px 0 !important;
    color: #ffffff !important;
}

.my_total .wait {
    display: flex !important;
    justify-content: space-between !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 12px !important;
}

.my_total .wait .item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.my_total .wait .item:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.my_total .wait .span_num {
    font-size: 0.32rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.my_total .wait .span_tit {
    font-size: 0.2rem !important;
    font-weight: 500 !important;
    opacity: 0.8;
    margin-top: 4px;
    color: #ffffff !important;
}

/* --- 2. Nút Tiện Ích Đỉnh (Deposit & Withdraw Buttons) --- */
.user_btn {
    display: flex !important;
    justify-content: space-between !important;
    gap: 15px !important;
    margin-bottom: 24px !important;
}

.user_btn a {
    flex: 1 !important;
    display: block !important;
    text-align: center !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 4px 15px rgba(15, 106, 176, 0.1) !important;
}

.user_btn a:first-child {
    background: linear-gradient(135deg, #2563eb, #0f6ab0) !important;
    /* Xanh ACV */
    color: #ffffff !important;
}

.user_btn a:last-child {
    background: #ffffff !important;
    color: #0f6ab0 !important;
    border: 1.5px solid #0f6ab0 !important;
}

.user_btn a:active {
    transform: scale(0.96);
}

/* --- 3. Danh sách Điều Hướng (Person.php user_list) --- */
.user_list {
    background: #ffffff !important;
    border-radius: 16px !important;
    margin: 15px 12px !important;
    padding: 8px 0 !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
    list-style: none !important;
}

.user_list li {
    margin: 0 !important;
    padding: 0 !important;
}

.user_list li a {
    display: flex !important;
    align-items: center !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    border-bottom: 1px solid #f8fafc !important;
    position: relative !important;
    transition: background-color 0.2s ease !important;
    text-decoration: none !important;
    font-family: 'Montserrat', sans-serif !important;
}

.user_list li a:active {
    background-color: #f8fafc !important;
}

.user_list li:last-child a {
    border-bottom: none !important;
}

.user_list li a img {
    width: 22px !important;
    height: 22px !important;
    margin-right: 12px !important;
    position: static !important;
    filter: drop-shadow(0 4px 8px rgba(15, 106, 176, 0.15)) !important;
}

/* Nút quay lại góc phải trong danh sách */
.user_list li a:after {
    content: '' !important;
    position: absolute !important;
    width: 14px !important;
    height: 14px !important;
    top: 50% !important;
    right: 16px !important;
    transform: translateY(-50%) !important;
    background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNhY2FjYWMiIHN0cm9rZS13aWR0aD0iMyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cG9seWxpbmUgcG9pbnRzPSI5IDE4IDE1IDEyIDkgNiI+PC9wb2x5bGluZT48L3N2Zz4=") no-repeat center !important;
}

.user_list li a span {
    margin-left: auto !important;
    margin-right: 24px !important;
    color: #0f6ab0 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
}

/* --- Nút Đăng Xuất (Logout Button Redesign) --- */
.btn-logout {
    display: block !important;
    width: calc(100% - 24px) !important;
    margin: 20px 12px !important;
    padding: 14px !important;
    text-align: center !important;
    background: #fef2f2 !important;
    /* Đỏ nhẹ sang trọng */
    color: #ef4444 !important;
    /* Chữ đỏ */
    border: 1px solid #fee2e2 !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.05) !important;
    transition: all 0.2s ease !important;
    font-family: 'Montserrat', sans-serif !important;
    box-sizing: border-box !important;
}

.btn-logout:active {
    background: #fde8e8 !important;
    transform: scale(0.97) !important;
}

/* --- Thiết kế lại chọn ngôn ngữ Flag Icons Premium --- */
.divlanguage {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(15, 106, 176, 0.05) !important;
    padding: 4px 8px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(15, 106, 176, 0.1) !important;
    box-sizing: border-box !important;
}

.divlanguage span {
    display: none !important;
    /* Ẩn chữ VN/CN/EN thừa */
}

.lang-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 1.5px solid transparent !important;
    transition: all 0.2s ease !important;
    opacity: 0.5 !important;
}

.lang-btn img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

.lang-btn.active {
    border-color: #0f6ab0 !important;
    opacity: 1 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 2px 8px rgba(15, 106, 176, 0.25) !important;
}

/* --- 4. Biểu mẫu Nạp & Rút tiền (Recharge, Cash, Addbank) --- */
.form_box {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 24px !important;
    border: 1px solid #f0f3f6 !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 24px !important;
}

.form_box_title {
    color: #0f6ab0 !important;
    font-weight: 700 !important;
    font-size: 0.32rem !important;
    margin-bottom: 20px !important;
    font-family: 'Montserrat', sans-serif !important;
    border-left: 4px solid #0f6ab0 !important;
    padding-left: 10px !important;
}

/* --- 5. Bảng hiển thị Lịch sử giao dịch (History / Cashrecord) --- */
.history_list {
    margin-top: 15px !important;
}

.history_card {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #f1f5f9 !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}

.history_card_header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 10px !important;
}

.history_card_title {
    font-weight: 700 !important;
    color: #111111 !important;
    font-size: 0.28rem !important;
}

.history_card_amount {
    font-weight: 800 !important;
    font-size: 0.3rem !important;
}

.amount_plus {
    color: #059669 !important;
    /* Xanh lục bảo cho tiền cộng */
}

.amount_minus {
    color: #dc2626 !important;
    /* Đỏ cho tiền trừ */
}

.history_card_footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 0.22rem !important;
    color: #777777 !important;
    border-top: 1px dashed #f1f5f9 !important;
    padding-top: 8px !important;
}

.status_badge {
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 0.2rem !important;
}

.status_pending {
    background: #eff6ff !important;
    color: #2563eb !important;
}

.status_success {
    background: #ecfdf5 !important;
    color: #059669 !important;
}

.status_failed {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

/* --- Tối ưu hóa tiêu đề trang chủ (Home Page Branded Header) --- */
.home-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 16px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #f0f0f0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.home-header .header-logo {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.home-header .header-logo img {
    height: 32px !important;
    width: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

.home-header .header-logo span {
    font-size: 0.32rem !important;
    font-weight: 800 !important;
    color: #0f6ab0 !important;
    font-family: 'Outfit', sans-serif !important;
    letter-spacing: 0.5px !important;
}

.home-header .header-lang {
    display: flex !important;
    align-items: center !important;
}

.home-header .divlanguage {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.home-header .divlanguage span {
    font-size: 0.24rem !important;
    font-weight: 700 !important;
    color: #0f6ab0 !important;
    font-family: 'Montserrat', sans-serif !important;
}

.home-header #trans2 {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    color: #333333 !important;
    font-size: 0.22rem !important;
    font-weight: 700 !important;
    padding: 4px 8px !important;
    cursor: pointer !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.home-header #trans2:focus {
    border-color: #0f6ab0 !important;
    box-shadow: 0 0 0 2px rgba(15, 106, 176, 0.15) !important;
}

/* Đảm bảo trang chủ không bị khoảng hở phía trên */
.main {
    padding-top: 0 !important;
}

/* --- Khắc phục triệt để lỗi 404 next.png của Arrow Chevron --- */
.user_list li a:after,
.about_outer li a:after,
.mnote li a:after {
    background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNhY2FjYWMiIHN0cm9rZS13aWR0aD0iMyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cG9seWxpbmUgcG9pbnRzPSI5IDE4IDE1IDEyIDkgNiI+PC9wb2x5bGluZT48L3N2Zz4=") no-repeat !important;
    background-size: contain !important;
}

/* --- Hộp thoại Xác thực Thanh toán Premium (Payment Verification Modal) --- */
.modal {
    display: flex !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.modal-content {
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 28px !important;
    box-shadow: 0 20px 50px rgba(15, 106, 176, 0.25) !important;
    border: 1px solid rgba(15, 106, 176, 0.1) !important;
    width: 85% !important;
    max-width: 400px !important;
    box-sizing: border-box !important;
}

.modal-content h2 {
    font-size: 0.32rem !important;
    font-weight: 700 !important;
    color: #111111 !important;
    margin-bottom: 20px !important;
    font-family: 'Montserrat', sans-serif !important;
}

.modal-content .input-field {
    width: 100% !important;
    padding: 14px 18px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 0.28rem !important;
    font-family: 'Montserrat', sans-serif !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
    background: #f8fafc !important;
    transition: all 0.2s ease !important;
    text-align: center;
}

.modal-content .input-field:focus {
    border-color: #0f6ab0 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(15, 106, 176, 0.1) !important;
    outline: none !important;
}

.modal-content .btn-submit {
    width: 100% !important;
    padding: 14px !important;
    font-size: 0.28rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #2563eb, #0f6ab0) !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 16px rgba(15, 106, 176, 0.25) !important;
    transition: all 0.2s ease !important;
}

.modal-content .btn-submit:active {
    transform: scale(0.97) !important;
    box-shadow: 0 2px 6px rgba(15, 106, 176, 0.1) !important;
}

/* --- Trang Giới thiệu (About.php Redesign) --- */
.news_detail {
    padding: 0.88rem 0.35rem 1.2rem 0.35rem !important;
    background: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    line-height: 1.6 !important;
    color: #444444 !important;
    font-size: 0.26rem !important;
}

.news_detail strong {
    color: #0f6ab0 !important;
    font-weight: 700 !important;
}

.news_detail p {
    margin-bottom: 16px !important;
    text-align: justify !important;
}

.news_detail table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 24px !important;
    margin-bottom: 24px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid #f0f0f0 !important;
}

.news_detail table tr {
    transition: background-color 0.2s ease !important;
}

.news_detail table tr:nth-child(even) {
    background-color: #f8fafc !important;
}

.news_detail table td {
    padding: 12px 14px !important;
    font-size: 0.24rem !important;
    border-bottom: 1px solid #f0f0f0 !important;
    color: #555555 !important;
}

.news_detail table tr td:first-child {
    font-weight: 600 !important;
    color: #0f6ab0 !important;
    width: 40% !important;
}

.news_detail table tr td:last-child {
    color: #222222 !important;
}

/* --- Tái thiết kế Form Đăng nhập & Đăng ký Premium --- */
.login_bg,
.reg_bg {
    background: #ffffff !important;
    padding: 24px 20px 36px 20px !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px rgba(15, 106, 176, 0.06) !important;
    margin: 15px !important;
    border: 1px solid #f1f5f9 !important;
    box-sizing: border-box !important;
}

.login_bg form,
.reg_bg form {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.login_bg .input_text,
.reg_bg .input_text {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    margin-bottom: 18px !important;
    height: auto !important;
    padding: 10px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    position: relative !important;
    box-sizing: border-box !important;
    width: 100% !important;
    transition: all 0.25s ease !important;
}

.login_bg .input_text:focus-within,
.reg_bg .input_text:focus-within {
    border-color: #0f6ab0 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(15, 106, 176, 0.1) !important;
}

.login_bg .input_text i,
.reg_bg .input_text i {
    position: static !important;
    margin-right: 8px !important;
    display: none !important;
}

.login_bg .input_text label,
.reg_bg .input_text label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #0f6ab0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 6px !important;
    display: block !important;
    width: 100% !important;
    float: none !important;
    line-height: normal !important;
    text-align: left !important;
}

.login_bg .input_text input,
.reg_bg .input_text input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 6px 0 !important;
    width: 100% !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #222222 !important;
    height: auto !important;
    float: none !important;
    box-sizing: border-box !important;
}

.login_bg .input_text input::-webkit-input-placeholder,
.reg_bg .input_text input::-webkit-input-placeholder {
    color: #a0aec0 !important;
    font-size: 13px !important;
}

.login_bg .input_text i.pwd_show,
.reg_bg .input_text i.pwd_show {
    position: absolute !important;
    right: 14px !important;
    top: calc(50% + 10px) !important;
    transform: translateY(-50%) !important;
    display: block !important;
    cursor: pointer !important;
    z-index: 10 !important;
}

.login_bg .input_text i.pwd_show img,
.reg_bg .input_text i.pwd_show img {
    width: 20px !important;
    height: 20px !important;
}

.login_bg .input_btn,
.reg_bg .input_btn {
    width: 100% !important;
    padding: 14px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    margin: 10px 0 !important;
    text-transform: uppercase !important;
    box-sizing: border-box !important;
}

.login_bg p.p2,
.reg_bg p.p2 {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #666666 !important;
    margin-top: 15px !important;
    margin-bottom: 5px !important;
    padding: 0 !important;
}

.login_bg p.p2 a,
.reg_bg p.p2 a {
    color: #0f6ab0 !important;
    font-weight: 700 !important;
}

.login_bg p.p1 a,
.reg_bg p.p1 a {
    color: #777777 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-decoration: underline !important;
}

/* --- Tái thiết kế Popup thành Thông báo Rơi từ trên màn hình xuống (Premium Top Slide Down Toast) --- */
#popup {
    position: fixed !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: 500px !important;
    height: auto !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 99999 !important;
    pointer-events: none !important;
}

#popup>div {
    width: calc(100% - 24px) !important;
    max-width: 476px !important;
    margin: 15px auto !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(15, 106, 176, 0.12) !important;
    border: 1px solid rgba(15, 106, 176, 0.1) !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
    animation: slide-down-toast 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes slide-down-toast {
    0% {
        transform: translateY(-150%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

#popup #title {
    background-color: #0f6ab0 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 12px 20px !important;
    text-align: center !important;
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: 0.5px !important;
}

#popup #content {
    padding: 16px 20px !important;
    font-size: 13px !important;
    color: #4a5568 !important;
    line-height: 1.5 !important;
    font-weight: 600 !important;
    text-align: center !important;
    font-family: 'Montserrat', sans-serif !important;
}

#popup input[type="button"] {
    background: linear-gradient(135deg, #2563eb, #0f6ab0) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 6px 18px !important;
    margin: 4px auto 12px auto !important;
    display: block !important;
    cursor: pointer !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(15, 106, 176, 0.2) !important;
    transition: transform 0.1s ease !important;
}

#popup input[type="button"]:active {
    transform: scale(0.96) !important;
}

/* --- Tối ưu hóa Chân trang (Footer Navigation Premium) --- */
footer.footer {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    height: 1.25rem !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    border-top: 1px solid #eaeaea !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 500px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    padding: 6px 0 !important;
}

footer.footer a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 25% !important;
    float: none !important;
    margin: 0 !important;
    text-decoration: none !important;
    height: 100% !important;
}

footer.footer a:nth-child(3) {
    display: none !important;
}

footer.footer a img {
    width: 0.44rem !important;
    height: 0.44rem !important;
    margin: 0 0 4px 0 !important;
    transition: transform 0.2s ease !important;
}

footer.footer a p {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #888888 !important; /* Default inactive label color */
    line-height: 1.2 !important;
    margin: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    transition: color 0.2s ease !important;
}

footer.footer a:active img {
    transform: scale(0.9) !important;
}

/* === TAB BAR ACTIVE STATE STYLING === */
footer.footer a.active-tab p {
    color: #0f6ab0 !important; /* Brand Blue active text */
    font-weight: 700 !important;
}

footer.footer a.active-tab img {
    /* High-fidelity color conversion filter to perfectly render active tab in ACV brand blue #0f6ab0 */
    filter: brightness(0) saturate(100%) invert(32%) sepia(90%) saturate(1212%) hue-rotate(184deg) brightness(90%) contrast(98%) !important;
}

footer.footer a:not(.active-tab) img {
    /* Uniformly convert inactive footer icons to modern gray scale with elegant opacity */
    filter: grayscale(1) brightness(1.2) opacity(0.5) !important;
}

/* --- Tối ưu hóa độ rộng và giãn dòng của Grid menu trang chủ (.hm_nav) --- */
.hm_nav a span {
    color: #334155 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    text-align: center !important;
    margin-top: 6px !important;
    display: block !important;
    width: 100% !important;
    word-break: break-word !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* --- Sắp xếp liên kết Đăng ký & Quên mật khẩu nằm ngang (Form Links Layout) --- */
.login_bg .form-links,
.reg_bg .form-links {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.login_bg .form-links a,
.reg_bg .form-links a {
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    color: #777777 !important;
    transition: color 0.2s ease !important;
    display: inline-block !important;
    width: auto !important;
    float: none !important;
}

.login_bg .form-links a:hover,
.reg_bg .form-links a:hover {
    color: #0f6ab0 !important;
}

.login_bg .form-links a.highlight,
.reg_bg .form-links a.highlight {
    color: #0f6ab0 !important;
    font-weight: 700 !important;
}

/* --- Khắc phục triệt để lỗi SweetAlert2 bị co giãn và phóng to do rem scaling --- */
.swal2-container {
    z-index: 99999 !important;
}

.swal2-popup {
    font-family: 'Montserrat', sans-serif !important;
    border-radius: 24px !important;
    padding: 24px !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #f0f0f0 !important;
    width: 320px !important;
    /* Độ rộng absolute cố định chống bóp méo */
    max-width: 90% !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}

.swal2-icon {
    width: 60px !important;
    height: 60px !important;
    margin: 15px auto !important;
    border-width: 3px !important;
}

.swal2-icon .swal2-icon-content {
    font-size: 32px !important;
    line-height: 60px !important;
}

.swal2-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

.swal2-html-container {
    font-size: 14px !important;
    color: #555555 !important;
    line-height: 1.5 !important;
    margin: 10px 0 !important;
}

.swal2-actions {
    margin-top: 20px !important;
    gap: 10px !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, #2563eb, #0f6ab0) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 10px 24px !important;
    border-radius: 10px !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(15, 106, 176, 0.2) !important;
}

.swal2-cancel {
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    border-radius: 10px !important;
    border: none !important;
}

/* ==========================================================================
   Giao diện trang liên kết thẻ ngân hàng cao cấp (Addbank.php Redesign)
   ========================================================================== */

.premium-card-wrapper {
    padding: 16px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif !important;
}

/* Thẻ ngân hàng sang trọng kiểu thẻ vật lý */
.premium-bank-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 220px;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #0f6ab0 0%, #0a4d80 50%, #052640 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(10, 77, 128, 0.35);
    color: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premium-bank-card:active {
    transform: scale(0.98);
    box-shadow: 0 8px 20px rgba(10, 77, 128, 0.25);
}

/* Hiệu ứng hào quang trên bề mặt thẻ */
.premium-bank-card .card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    transform: rotate(-15deg);
}

/* Đầu thẻ chứa Tên ngân hàng & Dòng thẻ */
.premium-bank-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.premium-bank-card .bank-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.premium-bank-card .bank-label {
    font-size: 8px;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    text-transform: uppercase;
}

.premium-bank-card .bank-value {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.premium-bank-card .card-brand {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dòng chip thông minh & sóng không tiếp xúc */
.premium-bank-card .card-chip-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    z-index: 2;
}

/* Tạo chip đồng vàng kim loại sang trọng */
.premium-bank-card .card-chip {
    position: relative;
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #f3d078 0%, #d4af37 40%, #aa7c11 100%);
    border-radius: 6px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 2px 5px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.premium-bank-card .card-chip .chip-line {
    position: absolute;
    background: rgba(0, 0, 0, 0.15);
}

.premium-bank-card .card-chip .chip-line:nth-child(1) {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
}

.premium-bank-card .card-chip .chip-line:nth-child(2) {
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
}

.premium-bank-card .card-chip .chip-line:nth-child(3) {
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 3px;
    background: transparent;
}

.premium-bank-card .card-contactless {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

/* Hiển thị số tài khoản */
.premium-bank-card .card-number {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 12px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    font-family: 'Courier New', Courier, monospace !important;
    z-index: 2;
}

.premium-bank-card .num-chunk.pwd-stars {
    font-size: 20px;
    letter-spacing: 4px;
    opacity: 0.85;
}

/* Footer thẻ chứa Tên chủ thẻ & Ngày hết hạn */
.premium-bank-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 2;
}

.premium-bank-card .card-holder {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.premium-bank-card .holder-label {
    font-size: 8px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
}

.premium-bank-card .holder-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.premium-bank-card .card-valid {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.premium-bank-card .valid-label {
    font-size: 7px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
}

.premium-bank-card .valid-date {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Hộp thông báo hỗ trợ bên dưới */
.support-notice-box {
    margin-top: 32px;
    padding: 24px;
    background-color: #fcfdfe;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.support-notice-box .notice-icon {
    width: 40px;
    height: 40px;
    background: #fef2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.support-notice-box .notice-icon svg {
    width: 24px;
    height: 24px;
}

.support-notice-box .notice-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 0 8px;
}

/* Nút liên hệ CSKH trực tiếp */
.support-notice-box .btn-contact-support {
    display: inline-block;
    width: 100%;
    max-width: 240px;
    padding: 12px 20px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #0f6ab0, #0a4d80);
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(15, 106, 176, 0.25);
    transition: all 0.2s ease;
}

.support-notice-box .btn-contact-support:active {
    transform: translateY(1px);
    opacity: 0.95;
    box-shadow: 0 2px 6px rgba(15, 106, 176, 0.15);
}

/* Làm đẹp Form Add Bank khi chưa liên kết */
.mycard_add {
    margin: 16px !important;
    padding: 24px !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #f1f5f9 !important;
    box-sizing: border-box !important;
}

.mycard_add h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    line-height: 1.4 !important;
}

.mycard_add .input_text {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    margin-bottom: 16px !important;
    padding: 4px 12px !important;
    display: flex !important;
    align-items: center !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.mycard_add .input_text:focus-within {
    border-color: #0f6ab0 !important;
    box-shadow: 0 0 0 3px rgba(15, 106, 176, 0.1) !important;
    background: #ffffff !important;
}

.mycard_add .input_text i {
    width: 20px !important;
    height: 20px !important;
    margin-right: 12px !important;
    opacity: 0.6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mycard_add .input_text i img {
    max-width: 100% !important;
    max-height: 100% !important;
}

.mycard_add .input_text input {
    border: 0 !important;
    background: transparent !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    width: 100% !important;
    padding: 0 !important;
    outline: none !important;
    font-family: 'Montserrat', sans-serif !important;
}

.mycard_add .action {
    display: flex !important;
    gap: 12px !important;
    margin-top: 24px !important;
}

.mycard_add .sub {
    flex: 1 !important;
    height: 44px !important;
    line-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    border: 0 !important;
    cursor: pointer !important;
    font-family: 'Montserrat', sans-serif !important;
    text-shadow: none !important;
}

.mycard_add .sub[type="submit"] {
    background: linear-gradient(135deg, #0f6ab0, #0a4d80) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(15, 106, 176, 0.2) !important;
}

.mycard_add .sub.del {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

/* === KHẮC PHỤC TRIỆT ĐỂ LỖI TEXT BỊ TỤT XUỐNG DƯỚI NÚT BẤM === */
/* Ghi đè height/line-height cố định từ base.css gây lệch chữ */
.input_btn, input.input_btn, input[type="submit"].input_btn {
    height: auto !important;
    line-height: 1.4 !important;
    padding: 12px 20px !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 15px auto !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-align: center !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #2563eb, #0f6ab0) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(15, 106, 176, 0.25) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
}

.input_btn:active, input.input_btn:active {
    transform: scale(0.97) !important;
    box-shadow: 0 2px 6px rgba(15, 106, 176, 0.15) !important;
}

/* Fix nút bấm Addbank */
.mycard_add .action {
    display: flex !important;
    gap: 10px !important;
    padding: 10px 0 !important;
}

.mycard_add .action .sub {
    flex: 1 !important;
    width: auto !important;
    margin: 0 !important;
}

/* Fix form-links cho Đăng nhập / Đăng ký */
.form-links {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 0 !important;
    margin-top: 5px !important;
}

.form-links a {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #666 !important;
    text-decoration: none !important;
}

.form-links a.highlight, .form-links a .highlight {
    color: #0f6ab0 !important;
    font-weight: 700 !important;
}

/* === THIẾT KẾ TRANG RÚT TIỀN (Cash.php) === */
.blank_card {
    background: #ffffff !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 14px !important;
    padding: 16px 20px !important;
    margin: 10px 15px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}

.blank_card label {
    display: block !important;
    width: 100% !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
}

.blank_card input[type="text"],
.blank_card input[type="password"],
.blank_card select {
    width: 100% !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    background-color: #f8fafc !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    min-height: auto !important;
}

.blank_card input[type="text"]:focus,
.blank_card input[type="password"]:focus,
.blank_card select:focus {
    background-color: #ffffff !important;
    border-color: #0f6ab0 !important;
    box-shadow: 0 0 0 3px rgba(15, 106, 176, 0.12) !important;
}

.blank_card select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230f6ab0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 36px !important;
}

.blank_card p {
    font-size: 12px !important;
    color: #64748b !important;
    margin: 6px 0 0 0 !important;
    font-weight: 500 !important;
}

.blank_card p span {
    color: #0f6ab0 !important;
    font-weight: 700 !important;
}

/* Nút Đầu thầu */
.now-btn {
    height: auto !important;
    line-height: 1.4 !important;
    padding: 8px 18px !important;
    display: inline-block !important;
}

/* Home header logo alignment */
.home-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 12px !important;
    background: #ffffff !important;
}

.home-header .header-logo img,
.header-logo img,
img[alt="Logo"] {
    height: 60px !important;
    width: auto !important;
    max-height: 70px !important;
}

/* === PERFECT GLOBAL BUTTON CENTERING & VERTICAL ALIGNMENT === */
/* Prevents text from being pushed down or misaligned inside inputs, buttons, and anchors */
.input_btn, 
input[type="submit"].input_btn, 
button.btn-submit, 
.now-btn, 
.btn-logout, 
.btn-submit, 
.sub,
.sub.del,
.btn-contact-support {
    height: 48px !important;
    line-height: 1 !important;
    padding: 0 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    text-align: center !important;
    font-family: 'Montserrat', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
}

/* Home Page Ticker & Grid Layout Adjustments */
.hm_nav a span {
    margin-top: 6px !important;
    line-height: 1.2 !important;
}

/* Addbank form action alignment */
.mycard_add .action {
    display: flex !important;
    gap: 12px !important;
    margin-top: 15px !important;
}

.mycard_add .action .sub {
    flex: 1 !important;
    width: auto !important;
    margin: 0 !important;
}

.support-notice-box .btn-contact-support {
    display: inline-flex !important;
    text-decoration: none !important;
    text-transform: none !important;
    font-weight: 600 !important;
    height: 42px !important;
}

/* === TIGHTEN CARDS SPACING IN BIDDING/INVESTMENT PAGE === */
/* === TIGHTEN CARDS SPACING IN BIDDING/INVESTMENT PAGE === */
.lc_item {
    padding: 12px 14px !important;
    margin-bottom: 12px !important;
    border-radius: 14px !important;
    min-height: auto !important; /* Reset giant hardcoded min-height from 26.css! */
    height: auto !important; /* Reset custom height from 26.css! */
}

.lc_item_h {
    height: auto !important; /* Force auto height! */
    min-height: auto !important;
}

.lc_item .banner {
    margin-bottom: 8px !important;
    height: auto !important; /* Reset hardcoded height: 5rem from 26.css! */
    max-height: none !important;
}

.lc_item .title-wrapper-com {
    margin-bottom: 8px !important;
}

.lc_item .wrapper {
    padding: 8px !important;
    margin-bottom: 8px !important;
}

.lc_item .wrapper dl dt {
    font-size: 0.32rem !important;
}

.lc_item .ib-foot {
    margin-top: 8px !important;
    padding-top: 8px !important;
}

.lc_item .plan {
    margin-top: 8px !important;
}

/* === MENU ICON ALIGNMENT BOOST === */
/* Force absolute single-line block layout to prevent browser cache or rendering engines from wrapping text under icons */
.hm_nav a span,
.hm_nav span,
.hm_nav a p,
.hm_nav p {
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    font-family: 'Montserrat', sans-serif !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 6px !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow: visible !important;
}

.hm_nav {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    padding: 16px 16px 20px 16px !important; /* Balanced padding with more bottom spacing */
    box-sizing: border-box !important;
    height: auto !important; /* Reset hardcoded height from 26.css to prevent text cut-off */
    min-height: auto !important;
}

.hm_nav a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 22% !important; /* 4 items with space-between */
    box-sizing: border-box !important;
}

.hm_nav a img {
    width: 1.1rem !important;
    height: 1.1rem !important;
    margin: 0 auto 8px auto !important; /* Center the image perfectly within flex cell */
    display: block !important;
    filter: drop-shadow(0 4px 8px rgba(15, 106, 176, 0.15)) !important;
    transition: filter 0.2s ease !important;
    transform: translateX(4px) !important; /* Nudge icons slightly to the right to perfectly balance! */
}

.hm_nav .clear {
    display: none !important; /* Hide clear div from breaking grid cells! */
}

/* === NOW-BTN & ALL BIDDING BUTTONS (ĐẤU THẦU) - THIN FONT & SINGLE LINE === */
.now-btn,
.ib-foot .now-btn,
#btndautu,
.touzi,
.touzi a.f_get_now {
    width: auto !important;
    min-width: 90px !important;
    max-width: none !important;
    font-weight: 400 !important; /* Elegant thin font weight */
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    text-transform: none !important; /* Keep original/mixed case (Đấu thầu) instead of uppercase */
    white-space: nowrap !important; /* Keep it strictly on a single line */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 14px !important;
    height: 32px !important;
    line-height: 1 !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
}

/* Ensure Dautu.php button wraps nicely inside parent container without clipping */
.ib-foot .other {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    height: auto !important;
}