/* ==================== RESET & BIẾN DÙNG CHUNG ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

:root {
    --pc-bg-dark: #071329;
    --pc-header-bg: #081c3a;
    --pc-nav-bg: #114388;
    --pc-gold: #ffcc00;
    --mb-bg-light: #f3f6fb;
    --mb-primary: #2563eb;
    --mb-text: #1e293b;
}

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

ul {
    list-style: none;
}

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

/* ==================== HIỂN THỊ RESPONSIVE DESKTOP VS MOBILE ==================== */
.desktop-view {
    display: block;
    background-color: var(--pc-bg-dark);
    color: #ffffff;
    min-height: 100vh;
}

.mobile-view {
    display: none;
}

@media (max-width: 991px) {
    .desktop-view {
        display: none;
    }
    .mobile-view {
        display: block;
        background-color: var(--mb-bg-light);
        color: var(--mb-text);
        min-height: 100vh;
        padding-bottom: 70px;
    }
}

/* ==================== PHẦN 1: CSS GIAO DIỆN MÁY TÍNH (DESKTOP) ==================== */
.pc-header {
    background: linear-gradient(180deg, #0b264e 0%, #06152d 100%);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.pc-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-logo {
    height: 50px;
    object-fit: contain;
}

.brand-slogan {
    display: flex;
    align-items: center;
}

.main-slogan {
    height: 54px; /* Điều chỉnh chiều cao cho khớp với logo */
    object-fit: contain;
}

.pc-login-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #040d1e;
    border: 1px solid #1e4278;
    border-radius: 20px;
    padding: 6px 12px;
    color: #94a3b8;
}

.input-group i {
    font-size: 13px;
    margin-right: 6px;
}

.input-group input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 13px;
    width: 110px;
}

.captcha-group input {
    width: 80px;
}

.captcha-code {
    background: #fde047;
    color: #b91c1c;
    font-weight: 800;
    font-size: 13px;
    padding: 1px 6px;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
}

.btn-wrapper {
    position: relative;
}

.promo-badge {
    position: absolute;
    top: -11px;
    right: 5px;
    font-size: 10px;
    font-weight: bold;
    padding: 1px 6px;
    border-radius: 8px;
    white-space: nowrap;
}

.promo-badge.green {
    background: #ea580c;
    color: #fff;
}

.promo-badge.red {
    background: #ef4444;
    color: #fff;
}

.btn {
    border: none;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.2s, filter 0.2s;
}

.btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-login {
    background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
    color: #fff;
}

.btn-register {
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
    color: #fff;
}

/* Thanh Navigation Desktop */
.pc-navbar {
    background: linear-gradient(90deg, #0d3670 0%, #1958ad 50%, #0d3670 100%);
    border-bottom: 1px solid #38bdf8;
}

.pc-nav-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pc-nav-list li a {
    display: block;
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 700;
    position: relative;
    transition: color 0.2s;
}

.pc-nav-list li.active a,
.pc-nav-list li a:hover {
    color: var(--pc-gold);
}

.pc-nav-list li.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--pc-gold);
}

.tag-hot {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    padding: 0 4px;
    border-radius: 4px;
}

/* Subbar Desktop */
.pc-subbar {
    background: rgba(6, 18, 40, 0.92);
    padding: 6px 0;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pc-subbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #cbd5e1;
}

.text-success {
    color: #22c55e;
    font-size: 9px;
}

.counter-box {
    background: #1e3a8a;
    border: 1px solid #3b82f6;
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: bold;
}

.subbar-right {
    display: flex;
    gap: 15px;
}

.subbar-right a {
    color: #e2e8f0;
    transition: color 0.2s;
}

.subbar-right a:hover {
    color: var(--pc-gold);
}

.subbar-right i {
    color: #38bdf8;
    margin-right: 4px;
}

/* ==================== SLIDER TỰ ĐỘNG TRƯỢT NGANG VÒNG LẶP 6 HÌNH ==================== */
.pc-banner-section {
    position: relative;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
}

.slide {
    min-width: 100%;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.pc-banner-section .slide img {
    height: 460px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    z-index: 5;
    transition: background 0.2s;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn { left: 20px; }
.next-btn { right: 85px; }

.slider-dots {
    position: absolute;
    bottom: 42px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    width: 24px;
    border-radius: 6px;
    background: var(--pc-gold);
}

/* Nút Hoàn Trả Nổi Bên Trái */
.floating-left-promo {
    position: absolute;
    left: 15px;
    top: 35%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    animation: bounce 2s infinite;
}

.floating-left-promo img {
    width: 124px;
    height: 124px;
    border-radius: 50%;
}

.floating-left-promo span {
    background: linear-gradient(90deg, #9333ea, #ec4899);
    font-size: 11px;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 12px;
    margin-top: -8px;
    border: 1px solid #fff;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Marquee Desktop */
.pc-marquee-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(5, 15, 35, 0.85);
    border-top: 1px solid rgba(56, 189, 248, 0.3);
    padding: 7px 0;
    font-size: 13px;
}

.marquee-inner {
    display: flex;
    align-items: center;
    gap: 15px;
}

.marquee-title {
    color: var(--pc-gold);
    font-weight: bold;
    white-space: nowrap;
}

/* ==================== KHU VỰC TRÒ CHƠI HOT (DESKTOP) ==================== */
.pc-hot-games {
    padding: 35px 0 55px;
    background: radial-gradient(circle at top, #112d5e 0%, #071329 70%);
}

.pc-games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Xếp 5 hình trên 1 hàng */
    gap: 25px 15px;
    max-width: 1050px;
    margin: 0 auto;
    justify-items: center;
}

.pc-game-item {
    display: block;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.pc-game-item img {
    width: 155px; /* Kích thước vừa vặn cả icon và chữ bên trong ảnh */
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
}
/* ==================== TIÊU ĐỀ TRÒ CHƠI HOT GIỐNG BẢN GỐC ==================== */
.pc-section-header-bar {
    position: relative;
    width: 100%;
    height: 45px;
    background: linear-gradient(90deg, rgba(3, 10, 25, 0) 0%, rgba(13, 41, 88, 0.85) 20%, rgba(13, 41, 88, 0.85) 80%, rgba(3, 10, 25, 0) 100%);
    border-top: 2px solid #1d4ed8;
    border-bottom: 2px solid #38bdf8;
    box-shadow: inset 0 0 15px rgba(56, 189, 248, 0.3), 0 0 10px rgba(29, 78, 216, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%); /* Tạo kiểu vát góc công nghệ ở 2 đầu */
}

.section-heading-orig {
    color: #00f0ff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.8), 0 0 20px rgba(0, 240, 255, 0.5);
    margin: 0;
    text-transform: uppercase;
}

/* Hiệu ứng nổi lên và phát sáng nhẹ khi rê chuột vào */
.pc-game-item:hover {
    transform: translateY(-8px) scale(1.04);
    filter: brightness(1.1);
}

/* Sidebar Phải & Phòng Chat Desktop */
.pc-right-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(8, 24, 52, 0.92);
    border: 1px solid #1d4ed8;
    border-right: none;
    border-radius: 12px 0 0 12px;
    z-index: 50;
    overflow: hidden;
}

.sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 8px;
    font-size: 10px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item:hover {
    background: #1d4ed8;
}

.sidebar-item i {
    font-size: 18px;
    margin-bottom: 4px;
    color: #38bdf8;
}

.pc-chat-widget {
    position: fixed;
    right: 15px;
    bottom: 20px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: 2px solid #93c5fd;
    border-radius: 14px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 50;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.pc-chat-widget i {
    font-size: 22px;
}

.pc-chat-widget span {
    font-size: 11px;
    font-weight: bold;
    margin-top: 2px;
}

.chat-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 10px;
}


/* ==================== PHẦN 2: CSS GIAO DIỆN ĐIỆN THOẠI (MOBILE) ==================== */
.mb-header {
    background: #ffffff;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.mb-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mb-menu-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #3b82f6;
    cursor: pointer;
}

.mb-logo {
    height: 32px;
    object-fit: contain;
}

.mb-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mb-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.mb-btn-login {
    background: #ffffff;
    border: 1px solid #93c5fd;
    color: #2563eb;
}

.mb-reg-wrap {
    position: relative;
}

.mb-promo-tag {
    position: absolute;
    top: -8px;
    right: 0;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 8px;
}

.mb-btn-register {
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
    border: none;
    color: #ffffff;
}

/* Banner Mobile */
.mb-banner-wrap {
    padding: 8px 12px;
    background: #fff;
}

.mb-slider {
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.15);
}

.mb-slider .slide img {
    height: 155px;
}

.mb-slider .slider-dots {
    bottom: 8px;
}

/* Marquee Mobile */
.mb-marquee {
    background: #ffffff;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}

.mb-marquee i {
    color: #3b82f6;
}

/* ==================== SỰ KIỆN NỔI BẬT (TỰ ĐỘNG CUỘN NGANG) ==================== */
.mb-events {
    background: #ffffff;
    margin: 8px 12px;
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mb-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mb-section-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.mb-event-arrows {
    display: flex;
    gap: 6px;
}

.mb-event-arrows button {
    background: #f1f5f9;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    color: #64748b;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.mb-event-arrows button:active {
    background: #e2e8f0;
    color: #0f172a;
}

/* Khung cuộn ngang sự kiện */
.mb-events-viewport {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mb-events-viewport::-webkit-scrollbar {
    display: none;
}

.mb-events-track {
    display: flex;
    align-items: center;
}

/* Ép mỗi mục sự kiện chiếm 25% chiều rộng để hiện đúng 4 icon trên khung nhìn */
.event-item {
    flex: 0 0 25%;
    max-width: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 4px;
    gap: 4px;
}

.event-item span {
    font-size: 11px;
    font-weight: 500;
    color: #334155;
    white-space: nowrap;
}

/* Mỗi mục chiếm chính xác 25% chiều rộng để luôn hiện 4 icon trên 1 màn hình */
.event-item {
    flex: 0 0 25%;
    max-width: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 4px;
    gap: 6px;
}

.event-item img {
    width: 52px;
    height: 52px;
    object-fit: contain; /* Giữ nguyên tỷ lệ icon PNG nền trong suốt */
    display: block;
}

.event-item span {
    font-size: 11px;
    font-weight: 500;
    color: #475569;
    line-height: 1.25;
    white-space: nowrap;
}

/* ==================== SẢNH GAME MOBILE (TÁCH LOGO & NHÂN VẬT) ==================== */
.mb-game-lobby {
    display: flex;
    gap: 10px;
    padding: 4px 12px 20px;
    align-items: flex-start;
}

/* Sidebar danh mục bên trái */
.mb-category-sidebar {
    width: 68px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.cat-tab {
    background: #f1f5f9;
    border: none;
    border-radius: 10px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cat-tab i {
    font-size: 18px;
    color: #94a3b8;
}

.cat-tab.active {
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    color: #ea580c;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.15);
}

.cat-tab.active i {
    color: #f97316;
}

/* Lưới thẻ game bên phải */
.mb-game-cards {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mb-card {
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

/* Các màu nền pastel giống bản gốc */
.bg-light-gray { background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%); }
.bg-light-purple { background: linear-gradient(135deg, #ffffff 0%, #f3e8ff 100%); }
.bg-light-yellow { background: linear-gradient(135deg, #ffffff 0%, #fef9c3 100%); }
.bg-light-pink { background: linear-gradient(135deg, #ffffff 0%, #fce7f3 100%); }

/* Khu vực Logo & Tên sảnh góc trên bên trái */
.card-brand {
    position: relative;
    z-index: 2;
    padding: 10px 10px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-logo {
    height: 30px;
    max-width: 115px;
    object-fit: contain;
    margin-bottom: 4px;
}

.brand-name {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    line-height: 1.2;
}

/* 1. Định dạng thẻ ngang lớn (SEXY CASINO) */
.card-full {
    grid-column: span 2;
    height: 165px;
}

.card-full .brand-logo {
    height: 38px;
    max-width: 140px;
}

.card-full .card-char {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 158px; /* Nhân vật đứng sát mép phải và đáy thẻ */
    width: auto;
    object-fit: contain;
    z-index: 1;
}

/* 2. Định dạng thẻ chia đôi cột (SABA, ON Live, DG, PG...) */
.card-half {
    height: 195px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-half .card-char {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    margin: 0 auto;
    height: 125px; /* Nhân vật/cầu thủ nằm gọn nửa dưới thẻ */
    width: auto;
    max-width: 95%;
    object-fit: contain;
    object-position: bottom center;
    z-index: 1;
}

/* Ảnh vuông bo góc cho các game slot PG ở hàng dưới */
.card-half .card-char.game-thumb {
    height: 95px;
    bottom: 8px;
    border-radius: 10px;
}

/* Icon trái tim yêu thích ở góc dưới bên trái */
.fav-icon {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 3;
    color: #94a3b8;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.85);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s;
}

.fav-icon.liked {
    color: #ef4444;
    font-weight: 900;
}

/* CSKH Nổi Mobile */
.mb-floating-cskh {
    position: fixed;
    right: 10px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 45;
}

.mb-floating-cskh img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.mb-floating-cskh span {
    background: #2563eb;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 1px 8px;
    border-radius: 10px;
    margin-top: -6px;
}

/* Bottom Navigation Bar Mobile */
.mb-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    border-top: 1px solid #e2e8f0;
    z-index: 50;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.nav-item i {
    font-size: 18px;
}

.nav-item.active {
    color: #2563eb;
    font-weight: 700;
}
/* ==================== CSS FORM ĐĂNG KÝ PC (GIỐNG ẢNH 1) ==================== */
.pc-reg-box {
    width: 100%;
    max-width: 860px;
    background: linear-gradient(135deg, #1b3b7a 0%, #0d2149 100%);
    border: 2px solid #eab308;
    border-radius: 16px;
    display: flex;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.65);
}

.pc-reg-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
}

.pc-reg-left {
    width: 42%;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
}

.pc-reg-banner {
    width: 100%;
    max-width: 260px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.pc-reg-promos p {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.pc-reg-promos span {
    color: #facc15;
    font-size: 15px;
}

.pc-reg-right {
    width: 58%;
    padding: 25px 30px;
    background: rgba(10, 25, 58, 0.65);
}

.pc-reg-title {
    text-align: center;
    color: #fde047;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
}

.pc-reg-sub {
    text-align: center;
    font-size: 12px;
    color: #e2e8f0;
    margin-bottom: 10px;
}

.pc-reg-links {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.pc-reg-links a {
    color: #38bdf8;
    font-weight: 700;
    text-decoration: underline;
}

.pc-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.pc-form-row label {
    width: 145px;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.pc-form-row label span {
    color: #ef4444;
    margin-right: 3px;
}

.pc-form-row input,
.pwd-wrap,
.phone-input-box {
    flex: 1;
    background: #0c1d42;
    border: 1px solid #9ca3af;
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
}

.pc-form-row input {
    padding: 9px 12px;
    outline: none;
}

.pwd-wrap, .phone-input-box {
    display: flex;
    align-items: center;
    padding-right: 10px;
}

.pwd-wrap input, .phone-input-box input {
    border: none;
    background: transparent;
    width: 100%;
}

.vn-flag {
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: #fde047;
    white-space: nowrap;
}

.pc-reg-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    color: #cbd5e1;
    margin: 12px 0 18px;
}

.pc-reg-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-pc-submit {
    background: linear-gradient(180deg, #b49a67 0%, #8c7344 100%);
    color: #ffffff;
    border: none;
    padding: 9px 35px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.btn-pc-reset {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    padding: 9px 35px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}


/* ==================== CSS FORM ĐĂNG NHẬP / ĐĂNG KÝ ĐIỆN THOẠI (GIỐNG ẢNH 2 & 3) ==================== */
.mb-auth-container {
    width: 100%;
    max-width: 390px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mb-auth-card {
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    padding: 18px 18px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color: #334155;
}

.mb-auth-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 14px;
}

.mb-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 5px;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mb-tab-btn.active {
    color: #3b82f6;
}

.mb-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 15%;
    width: 70%;
    height: 2.5px;
    background: #3b82f6;
    border-radius: 2px;
}

.red-pill {
    position: absolute;
    top: -8px;
    right: 4px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
}

.mb-auth-banner {
    width: 100%;
    margin-bottom: 14px;
    border-radius: 12px;
    overflow: hidden;
}

.mb-auth-banner img {
    width: 100%;
    height: auto; /* Tự động co giãn chiều cao theo tỷ lệ gốc của ảnh */
    max-height: 180px; /* Giới hạn chiều cao tối đa để form không bị quá dài */
    object-fit: contain; /* Hiển thị trọn vẹn toàn bộ ảnh, không bị cắt xén */
    display: block;
}

.mb-input-box {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 11px 14px;
    margin-bottom: 11px;
    gap: 10px;
    color: #94a3b8;
}

.mb-input-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: #1e293b;
}

.toggle-eye {
    cursor: pointer;
}

.mb-forgot-row {
    text-align: right;
    margin-bottom: 14px;
}

.mb-forgot-row a {
    font-size: 12px;
    color: #ef4444;
    font-weight: 500;
}

.mb-auth-submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(90deg, #93c5fd 0%, #60a5fa 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4);
    transition: background 0.2s;
}

.mb-auth-submit:hover {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.mb-auth-footer-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 18px;
    text-align: center;
}

.mb-auth-footer-icons a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #64748b;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}

.icon-circle.blue { background: #60a5fa; }
.icon-circle.orange { background: #fb923c; }
.icon-circle.red { background: #f87171; }
.icon-circle.gold { background: #fef08a; color: #b45309; font-size: 10px; border: 1px solid #eab308; }

.mb-auth-close-circle {
    margin-top: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    border: 1.5px solid #ffffff;
    color: #ffffff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
/* Trạng thái hiển thị của Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* Mặc định ẩn */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 15px;
}

.modal-backdrop.show {
    display: flex !important; /* Hiện lên khi có class show */
}

