/* ================= BIẾN MÀU & RESET ================= */
:root {
    --bg-main: #0c0c0c;
    --bg-card: #1a1a1a;
    --bg-panel: #161616;
    --primary: #ff7b00;
    --primary-light: #ffa200;
    --gold: #f5b942;
    --text-white: #ffffff;
    --text-muted: #a8a8a8;
    --border-color: #2e2e2e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Logo chung */
.logo img {
    height: 40px;
    object-fit: contain;
    display: block;
}

.logo-fallback {
    display: none;
    font-size: 30px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1px;
    color: #fff;
}

.logo-fallback span {
    color: var(--primary);
}

.flag-icon img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #444;
    display: block;
}

/* ================= GIAO DIỆN MÁY TÍNH (PC) ================= */
.pc-header {
    background: #0a0a0a;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #2b2218;
}

.pc-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.pc-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.pc-auth-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-outline {
    background: linear-gradient(180deg, #2b2116, #14100b);
    border: 1px solid #966c33;
    color: #f6d186;
    padding: 6px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-outline:hover {
    border-color: var(--primary-light);
    background: linear-gradient(180deg, #ff8800, #c95b00);
    color: #fff;
}

.pc-sub-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.pc-sub-row a:hover {
    color: var(--primary-light);
}

.live-clock {
    background: #1f1f1f;
    border: 1px solid #333;
    padding: 2px 10px;
    border-radius: 12px;
    color: #ccc;
    font-size: 11px;
}

/* ================= THANH MENU PC ================= */
.pc-navbar {
    background: linear-gradient(180deg, #1d1d1d 0%, #141414 100%);
    border-top: 1.5px solid #ff8c1a;
    box-shadow: inset 0 1px 0 rgba(255, 166, 0, 0.25);
}

.pc-nav-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 48px;
    gap: 14px;
}

.pc-menu-list {
    display: flex;
    list-style: none;
    align-items: stretch;
    height: 100%;
    gap: 2px;
}

.pc-menu-list li {
    display: flex;
    align-items: center;
}

.pc-menu-list a {
    height: 100%;
    padding: 0 11px;
    font-size: 13px;
    font-weight: 700;
    color: #a8a8a8;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.pc-nav-icon {
    font-size: 16px;
    color: #9e9e9e;
}

.pc-nav-svg {
    width: 18px;
    height: 18px;
    color: #9e9e9e;
    flex-shrink: 0;
}

/* Hiệu ứng khi chọn (Active) hoặc rê chuột (Hover) */
.pc-menu-list a.active,
.pc-menu-list a:hover {
    color: #ff8c1a;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 136, 0, 0.32) 0%, rgba(255, 136, 0, 0) 75%);
}

.pc-menu-list a.active .pc-nav-icon,
.pc-menu-list a.active .pc-nav-svg,
.pc-menu-list a:hover .pc-nav-icon,
.pc-menu-list a:hover .pc-nav-svg {
    color: #ff8c1a;
}

/* Vạch sáng trắng cam ở mép trên mục đang chọn */
.pc-menu-list a.active::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #ffffff;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 0 10px 2px #ff8c1a;
}

/* Icon 3 cột sóng vàng góc trên phải (NỔ HŨ & CASINO) */
.pc-hot-bars {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 10px;
    color: #f5c352;
    line-height: 1;
}

/* Cụm Ưu Đãi - Đại Lý - VIP bo tròn màu vàng đồng */
.pc-vip-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(180deg, #8b5b24 0%, #6d461c 45%, #b87324 100%);
    border: 1px solid rgba(255, 198, 112, 0.35);
    padding: 7px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    box-shadow: inset 0 1px 2px rgba(255, 224, 150, 0.35), 0 2px 6px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.pc-vip-bar a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.pc-vip-bar a:hover {
    opacity: 0.85;
}

.pc-vip-bar i {
    font-size: 15px;
}

/* ================= BANNER SLIDER 6 HÌNH ================= */
.banner-section {
    width: 100%;
    position: relative;
    background: #000;
}

.pc-banner-swiper {
    display: block;
    width: 100%;
}

.mb-banner-swiper {
    display: none;
    width: 100%;
}

.swiper-slide img {
    width: 100%;
    display: block;
    object-fit: cover;
    background: #1b1510;
}

.pc-banner-swiper .swiper-slide img {
    aspect-ratio: 1920 / 560;
    max-height: 460px;
}

.mb-banner-swiper .swiper-slide img {
    aspect-ratio: 16 / 7;
}

/* Nút chấm chuyển trang của Banner */
.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 8px;
    height: 8px;
    transition: 0.3s;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
    width: 24px;
    border-radius: 4px;
}

/* ================= THANH CHỮ CHẠY ================= */
.marquee-bar {
    display: flex;
    align-items: center;
    background: #181512;
    border: 1px solid #3a2b1c;
    border-radius: 8px;
    padding: 6px 10px;
    margin: 12px 0;
    gap: 10px;
}

.marquee-icon {
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
}

.marquee-track {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-text {
    display: inline-block;
    font-size: 13px;
    color: #e2e2e2;
    padding-left: 100%;
    animation: marqueeScroll 22s linear infinite;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.marquee-link {
    background: #2b2117;
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    flex-shrink: 0;
}

/* ================= SẢNH GAME HOT ================= */
.game-section {
    padding-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0 14px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-icon {
    color: var(--primary);
    font-size: 20px;
}

.pc-title {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.pc-title span {
    font-size: 13px;
    font-weight: 400;
    color: var(--gold);
}

.mb-title {
    display: none;
    font-size: 17px;
    font-weight: 800;
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ctrl-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1f1f1f;
    border: 1px solid #333;
    color: #bbb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.ctrl-circle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-view-all {
    background: #1f1f1f;
    border: 1px solid #333;
    color: #ddd;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 16px;
}

/* ================= LƯỚI GAME PC (2 THẺ LỚN TRÁI + 12 THẺ PHẢI) ================= */
.pc-game-layout {
    display: grid;
    grid-template-columns: 1.12fr 4fr;
    gap: 12px;
}

.pc-featured-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pc-sub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.mb-game-grid {
    display: none;
}

.game-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid #2a2a2a;
    aspect-ratio: 16 / 10.5;
    display: block;
    transition: transform 0.2s, border-color 0.2s;
}

.pc-featured-card {
    flex: 1;
    aspect-ratio: auto;
}

.game-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #25201b, #141414);
}

.game-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 45%, rgba(0, 0, 0, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px 12px;
}

/* Chữ nằm góc trên trái cho 2 thẻ lớn PC */
.game-overlay.top-left {
    justify-content: flex-start;
    padding-top: 16px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.05) 65%);
}

.game-provider {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
}

.game-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mũi tên tròn góc dưới trái của 2 thẻ lớn PC */
.featured-arrow {
    position: absolute;
    bottom: 14px;
    left: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid #8a6d3b;
    color: #d4a756;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 2;
}

/* Nút "Vào trò chơi" hiện ra khi rê chuột trên PC */
.play-hover-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: linear-gradient(90deg, #ff7b00, #ffa200);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    transition: 0.2s ease;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.game-card:hover .play-hover-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Nút nổi bên phải PC */
.pc-floating-tools {
    position: fixed;
    right: 18px;
    top: 52%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 90;
}

.float-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9900, #e65c00);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(255, 123, 0, 0.4);
    transition: transform 0.2s;
}

.float-btn:hover {
    transform: scale(1.1);
}

/* Ẩn các phần tử Mobile trên PC */
.mb-header,
.mb-quick-section,
.mb-bottom-nav,
.mb-drawer,
.mb-drawer-overlay {
    display: none;
}



/* ================= GIAO DIỆN ĐIỆN THOẠI (<= 768px) ================= */
@media (max-width: 768px) {
    body {
        padding-bottom: 72px; /* Chừa chỗ cho thanh menu dưới */
    }

    .container {
        padding: 0 10px;
    }

    /* Ẩn thành phần PC */
    .pc-header,
    .pc-banner-swiper,
    .pc-title,
    .pc-floating-tools,
    .featured-arrow {
        display: none;
    }

    /* Hiện thành phần Mobile */
    .mb-banner-swiper,
    .mb-quick-section,
    .mb-title {
        display: block;
    }

    /* Header Mobile */
    .mb-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #0a0a0a;
        padding: 10px 14px;
        position: sticky;
        top: 0;
        z-index: 100;
        border-bottom: 1px solid #222;
    }

    .mb-header .logo img {
        height: 32px;
    }

    .mb-menu-btn {
        background: none;
        border: none;
        color: var(--primary);
        font-size: 24px;
        cursor: pointer;
    }

    /* Drawer Mobile */
    .mb-drawer-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.65);
        z-index: 200;
    }

    .mb-drawer-overlay.active {
        display: block;
    }

    .mb-drawer {
        display: block;
        position: fixed;
        top: 0;
        left: -260px;
        width: 260px;
        height: 100%;
        background: #141414;
        z-index: 201;
        transition: left 0.3s ease;
        border-right: 1px solid #2d2d2d;
    }

    .mb-drawer.active {
        left: 0;
    }

    .drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 16px;
        border-bottom: 1px solid #282828;
    }

    .drawer-header .logo-fallback {
        display: inline-block;
        font-size: 24px;
    }

    .drawer-header button {
        background: none;
        border: none;
        color: #fff;
        font-size: 22px;
    }

    .drawer-links {
        list-style: none;
        padding: 10px 0;
    }

    .drawer-links a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 18px;
        color: #ddd;
        font-size: 14px;
        border-bottom: 1px solid #1e1e1e;
    }

    .drawer-links a i {
        color: var(--primary);
        width: 20px;
        text-align: center;
    }

    /* Nút Đăng Ký / Đăng Nhập Mobile */
    .mb-auth-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 12px;
    }

    .mb-btn-register {
        background: linear-gradient(180deg, #333333, #1b1b1b);
        border: 1px solid #4a4a4a;
        color: #fff;
        padding: 11px 0;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 700;
    }

    .mb-btn-login {
        background: linear-gradient(180deg, #ffae00, #ff6a00);
        border: none;
        color: #000;
        padding: 11px 0;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 800;
    }

    /* Thanh danh mục trượt ngang 8 mục (hiển thị 5 ô trên màn hình) */
    .mb-category-grid {
        display: flex;
        gap: 7px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 4px 0 6px;
        margin-bottom: 12px;
        scrollbar-width: none; /* Ẩn thanh cuộn trên Firefox */
    }

    .mb-category-grid::-webkit-scrollbar {
        display: none; /* Ẩn thanh cuộn trên Chrome/Safari */
    }

    .cat-item {
        flex: 0 0 calc((100% - 28px) / 5); /* Vừa khít 5 ô trên màn hình */
        min-width: 66px;
        height: 76px;
        scroll-snap-align: start;
        background: linear-gradient(180deg, #1b1917 0%, #141210 52%, #332314 100%);
        border: 1px solid #302821;
        border-radius: 14px;
        padding: 12px 2px 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        color: #9e9e9e;
        position: relative;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    /* Trạng thái đang chọn (Active - giống ô HOT NHẤT) */
    .cat-item.active {
        background:
            radial-gradient(circle at 50% 0%, rgba(255, 136, 0, 0.55) 0%, rgba(255, 102, 0, 0) 65%),
            linear-gradient(180deg, #2d1807 0%, #140c05 100%);
        border-color: #b85e10;
        color: #ffffff;
    }

    /* Vạch sáng trắng cam ở mép trên ô đang chọn */
    .cat-item.active::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 24px;
        height: 3px;
        background: #ffffff;
        border-radius: 0 0 4px 4px;
        box-shadow: 0 0 10px 2px #ff8800;
    }

    /* Icon Font Awesome & SVG */
    .cat-icon {
        font-size: 28px;
        color: #8c8c8c;
        line-height: 1;
        margin-top: 2px;
    }

    .cat-svg {
        width: 30px;
        height: 30px;
        color: #8c8c8c;
        margin-top: 2px;
    }

    .cat-item.active .cat-icon,
    .cat-item.active .cat-svg {
        color: #ff8c1a;
        filter: drop-shadow(0 0 6px rgba(255, 136, 0, 0.45));
    }

    /* Tên danh mục */
    .cat-label {
        font-size: 10.5px;
        font-weight: 700;
        letter-spacing: -0.2px;
        white-space: nowrap;
    }

    /* Huy hiệu tròn vàng góc trên phải */
    .cat-badge {
        position: absolute;
        top: 5px;
        right: 5px;
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background: linear-gradient(135deg, #ffe082, #d48806);
        color: #14100a;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 8px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    }

    /* Ẩn lưới game PC, hiện lưới game Mobile 4 cột */
    .pc-game-layout {
        display: none;
    }

    .mb-game-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .mb-game-grid .game-card {
        aspect-ratio: 1 / 1.12;
        border-radius: 10px;
    }

    .mb-game-grid .game-overlay {
        padding: 5px 4px;
        text-align: center;
        align-items: center;
    }

    .mb-game-grid .game-provider {
        font-size: 11px;
    }

    .mb-game-grid .game-name {
        font-size: 10px;
        width: 100%;
    }

    /* Thanh điều hướng cố định dưới cùng Mobile */
    .mb-bottom-nav {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #323232;
        border-top: 1px solid #3f3f3f;
        padding: 7px 0 6px;
        z-index: 150;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.35);
    }

    .mb-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: #9e9e9e;
        font-size: 11.5px;
        font-weight: 500;
        transition: color 0.2s ease;
    }

    .mb-bottom-nav .nav-svg {
        width: 34px;
        height: 34px;
        display: block;
    }

    .mb-bottom-nav .nav-item.active {
        color: #ff8a14;
        font-weight: 700;
    }

    .mb-bottom-nav .nav-item.active .nav-svg {
        color: #ff8a14;
    }
}
/* ================= OVERLAY & KHUNG MODAL (PC) ================= */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}
.auth-modal-overlay.active {
    display: flex;
}

.auth-modal-box {
    position: relative;
    width: 100%;
    max-width: 920px;
    background: #141414;
    border: 1.5px solid #ff9000;
    border-radius: 14px;
    display: flex;
    overflow: hidden;
    color: #fff;
    font-family: Arial, sans-serif;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}

.auth-close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

/* Cột trái PC */
.auth-pc-left {
    width: 46%;
    background: radial-gradient(circle at center, #3b230b 0%, #121212 75%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 30px 20px 0;
}
.auth-brand-logo {
    font-size: 46px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1px;
    color: #fff;
}
.auth-brand-logo span {
    color: #ff8c00;
}
.auth-pc-art {
    width: 100%;
    max-height: 440px;
    object-fit: contain;
}

/* Cột phải PC */
.auth-content-right {
    width: 54%;
    padding: 32px 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-mb-header {
    display: none; /* Ẩn trên PC */
}

.auth-form-panel {
    display: none;
}
.auth-form-panel.active {
    display: block;
}

/* Các ô nhập liệu (PC tối màu giống hình 1, 2) */
.auth-field-block {
    margin-bottom: 12px;
}
.auth-field-block label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}
.auth-field-block .star {
    color: #ff8c00;
    margin-right: 4px;
}
.field-hint {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}

.auth-input-group {
    display: flex;
    align-items: center;
    background: #232323;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 0 12px;
    height: 42px;
    margin-bottom: 12px;
}
.auth-field-block .auth-input-group {
    margin-bottom: 0;
}
.auth-input-group:focus-within {
    border-color: #ff8c00;
}
.input-icon {
    margin-right: 8px;
    font-size: 15px;
    color: #ff8c00;
}
.auth-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
    width: 100%;
}
.forgot-text {
    font-size: 12px;
    color: #aaa;
    margin-right: 8px;
    cursor: pointer;
}
.toggle-pass-btn {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 15px;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin: 10px 0 14px;
    cursor: pointer;
}
.auth-checkbox a {
    color: #ff8c00;
    text-decoration: none;
}

.auth-error-msg {
    color: #ff4d4f;
    font-size: 13px;
    margin: 0 0 10px;
    min-height: 18px;
}

/* Nút bấm */
.auth-actions-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.btn-auth-primary {
    flex: 1.4;
    height: 42px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(180deg, #ffa200 0%, #ff6a00 100%);
    color: #000;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
}
.btn-auth-secondary {
    flex: 1;
    height: 42px;
    border: 1px solid #ff8c00;
    border-radius: 6px;
    background: #1f1f1f;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

/* Footer PC */
.auth-footer-box {
    background: #1d1d1d;
    border-radius: 10px;
    padding: 12px;
}
.promo-1111 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    font-size: 11px;
    font-weight: bold;
}
.btn-1111 {
    background: #2b2b2b;
    border: 1px solid #ff8c00;
    color: #ff8c00;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 11px;
}
.auth-quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 8px;
}
.auth-quick-links .q-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #ccc;
}
.auth-quick-links .q-item span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #2a2a2a;
    border: 1px solid #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* ================= GIAO DIỆN ĐIỆN THOẠI (<= 768px - Hình 3, 4) ================= */
@media (max-width: 768px) {
    .auth-modal-overlay {
        padding: 0;
        background: #0d0d0d;
        align-items: flex-start;
        overflow-y: auto;
    }
    .auth-modal-box {
        max-width: 100%;
        min-height: 100vh;
        border: none;
        border-radius: 0;
        flex-direction: column;
        background: #121212;
    }
    .auth-pc-left,
    .pc-only-btn {
        display: none !important;
    }
    .auth-content-right {
        width: 100%;
        padding: 24px 16px 30px;
    }
    .auth-mb-header {
        display: block;
        text-align: center;
        margin-bottom: 0;
    }
    .auth-mb-header .auth-brand-logo {
        font-size: 44px;
        margin-bottom: 18px;
    }
    .auth-mb-tabs {
        display: flex;
        border-radius: 10px 10px 0 0;
        overflow: hidden;
        border: 1px solid #333;
        border-bottom: none;
    }
    .mb-tab-btn {
        flex: 1;
        height: 44px;
        background: #222;
        color: #fff;
        border: none;
        font-weight: 800;
        font-size: 14px;
        cursor: pointer;
    }
    .mb-tab-btn.active {
        background: linear-gradient(180deg, #ffa200 0%, #ff6a00 100%);
        color: #000;
    }

    /* Khung form mobile bo góc dưới, ô input nền trắng chữ đen giống hình 3, 4 */
    .auth-form-panel {
        background: #1c1c1c;
        padding: 18px 14px;
        border-radius: 0 0 12px 12px;
        margin-bottom: 16px;
    }
    .auth-input-group {
        background: #ffffff;
        border-color: #ddd;
        height: 44px;
    }
    .auth-input-group input {
        color: #111;
    }
    .auth-input-group input::placeholder {
        color: #777;
    }
    .btn-auth-primary {
        border-radius: 25px;
        height: 46px;
        font-size: 15px;
    }
}