/* ==========================================================================
   1. CẤU HÌNH BIẾN MÀU & THIẾT LẬP CHUẨN HÓA (RESET & ROOT)
   ========================================================================== */
:root {
    --primary-orange: #ff6a00;
    --primary-gradient: linear-gradient(135deg, #ff7e1a 0%, #ff4b00 100%);
    --primary-hover: linear-gradient(135deg, #ff8c33 0%, #ff5c1a 100%);
    --bg-page: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --text-dark: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --price-green: #10b981;
    --price-green-dark: #059669;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 8px 20px rgba(0, 0, 0, 0.06);
    --shadow-modal: 0 20px 40px rgba(0, 0, 0, 0.22);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-page);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

button, input, select, textarea {
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

/* ==========================================================================
   2. THANH THÔNG BÁO TRÊN CÙNG (TOP ANNOUNCEMENT BAR)
   ========================================================================== */
.top-announcement {
    background: #ff5722;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    padding: 8px 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   3. THANH ĐIỀU HƯỚNG BREADCRUMB (KHÔNG BỊ TÍM, KHÔNG GẠCH CHÂN)
   ========================================================================== */
.breadcrumb-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 0 14px 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
}

.breadcrumb-bar a {
    color: #64748b !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.breadcrumb-bar a:hover {
    color: #ea580c !important;
}

.breadcrumb-bar .sep {
    color: #cbd5e1;
    font-size: 12px;
    user-select: none;
}

.breadcrumb-bar .cur {
    color: #ea580c !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

/* ==========================================================================
   4. HEADER & MENU ĐIỀU HƯỚNG CHÍNH
   ========================================================================== */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.shop-logo {
    text-decoration: none;
    display: inline-block;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 900;
    font-size: 19px;
}

.logo-text {
    background: linear-gradient(45deg, #0284c7, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    text-decoration: none;
    color: #475569;
    font-weight: 700;
    font-size: 13.5px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover, 
.nav-link.active {
    background-color: #feebe5;
    color: #ea580c;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-login {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-login:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.btn-register {
    background: var(--primary-gradient);
    border: none;
    color: #ffffff;
    padding: 9px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 82, 0, 0.25);
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-register:hover {
    box-shadow: 0 6px 14px rgba(255, 82, 0, 0.35);
    transform: translateY(-1px);
}

.header-balance-btn {
    background: #e8f7ed;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-weight: 800;
    font-size: 13px;
    padding: 7px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.header-balance-btn:hover {
    background: #dcfce7;
}

.header-balance-btn .plus {
    color: #16a34a;
    font-size: 15px;
}

/* ==========================================================================
   5. USER DROPDOWN TRÊN PC HEADER
   ========================================================================== */
.user-dropdown-wrapper {
    position: relative;
}

.user-dropdown-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 5px 12px 5px 6px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    color: #1e293b;
    transition: all 0.2s ease;
}

.user-dropdown-btn:hover {
    border-color: #94a3b8;
}

.avatar-circle-sm {
    width: 28px;
    height: 28px;
    background: var(--primary-gradient);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
}

.header-username {
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-arrow {
    font-size: 9px;
    color: #64748b;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border: 1px solid #f1f5f9;
    padding: 14px;
    z-index: 600;
}

.user-dropdown-menu.show {
    display: block !important;
    animation: fadeInMenu 0.15s ease-out;
}

@keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.avatar-circle-md {
    width: 38px;
    height: 38px;
    background: var(--primary-gradient);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
}

.dropdown-name {
    font-size: 13px;
    font-weight: 800;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-sub {
    font-size: 11px;
    color: #94a3b8;
}

.dropdown-wallet-box {
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    margin-bottom: 10px;
}

.wallet-amount {
    color: #10b981;
    font-weight: 900;
}

.dropdown-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-nav-list a {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.dropdown-nav-list a:hover {
    background: #f8fafc;
    color: #ff6a00;
}

.dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 8px 0;
}

.dropdown-logout {
    display: block;
    padding: 6px 10px;
    text-decoration: none;
    color: #ef4444;
    font-size: 13px;
    font-weight: 800;
}

/* ==========================================================================
   6. NÚT HAMBURGER & MENU MOBILE XỔ XUỐNG (ẢNH 2, 3, 6)
   ========================================================================== */
.mobile-toggle {
    display: none;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: #334155;
    transition: all 0.2s ease;
}

.mobile-dropdown-panel {
    display: none;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.mobile-dropdown-panel.show {
    display: block;
    animation: slideDownPanel 0.2s ease-out;
}

@keyframes slideDownPanel {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-item {
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #0f172a;
    font-size: 14.5px;
    font-weight: 800;
    transition: all 0.2s ease;
}

.mobile-nav-item.active {
    background: #fff7ed;
    color: #ea580c;
}

.mobile-menu-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 12px 0 16px 0;
}

.mobile-balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px 14px 4px;
}

.mobile-user-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-user-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    text-decoration: none;
    color: #1e293b;
    font-size: 14.5px;
    font-weight: 800;
    transition: all 0.2s ease;
}

.mobile-user-links a:hover {
    color: #ea580c;
}

.mobile-auth-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mobile-btn-white {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
}

.mobile-btn-orange {
    background: var(--primary-gradient);
    border: none;
    color: #ffffff;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
}

/* ==========================================================================
   7. HERO BANNER TRANG CHỦ (ẢNH 1)
   ========================================================================== */
.hero-section {
    max-width: 1200px;
    margin: 16px auto;
    padding: 0 16px;
    width: 100%;
}

.hero-banner-inner {
    background: linear-gradient(135deg, #1b0c1e 0%, #381220 50%, #150917 100%);
    border-radius: 12px;
    padding: 36px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #ff9800;
    font-weight: 800;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.hero-title {
    color: #ffffff;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 10px;
}

.hero-title span {
    color: #ff8400;
}

.hero-desc {
    color: #cbd5e1;
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 22px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

.btn-hero-primary {
    background: var(--primary-gradient);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

.hero-banner-image {
    max-width: 400px;
    display: flex;
    justify-content: center;
}

.hero-banner-image img {
    max-height: 230px;
    width: auto;
    object-fit: contain;
}

/* ==========================================================================
   8. 2 Ô TIỆN ÍCH NẠP TIỀN NHANH (ẢNH 1)
   ========================================================================== */
.quick-features {
    max-width: 1200px;
    margin: 0 auto 24px auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.quick-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.quick-box:hover {
    transform: translateY(-2px);
}

.quick-bank { background: #0e2a22; }
.quick-card { background: #22162f; }
.quick-icon { font-size: 28px; }
.quick-title { font-size: 15px; font-weight: 800; }
.quick-desc { font-size: 12px; opacity: 0.8; }

/* ==========================================================================
   9. LƯỚI SẢN PHẨM 5 CỘT PC / 2 CỘT MOBILE (ẢNH 2 & 3)
   ========================================================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-title {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.section-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff7ed;
    color: #ea580c;
    font-size: 13px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    border: 1px solid #fed7aa;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 36px;
    width: 100%;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.product-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    background: #111111;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumb img, .product-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-name {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--price-green);
}

/* ==========================================================================
   10. 4 Ô TIỆN ÍCH TRUST BADGES (ẢNH 3 & 4)
   ========================================================================== */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 30px 0;
}

.badge-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    box-shadow: var(--shadow-soft);
}

.badge-icon {
    font-size: 26px;
}

.badge-title {
    font-size: 14px;
    font-weight: 800;
}

.badge-desc {
    font-size: 11.5px;
    color: var(--text-muted);
}

.float-chat-btn {
    position: fixed;
    bottom: 24px;
    right: 20px;
    width: 52px;
    height: 52px;
    background: #ff5722;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 6px 18px rgba(255, 87, 34, 0.4);
    z-index: 400;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.float-chat-btn:hover {
    transform: scale(1.08);
}

/* ==========================================================================
   11. SÀN ĐẤU BÓC TÚI MÙ (PRODUCT DETAIL)
   ========================================================================== */
.game-detail-container {
    max-width: 1150px;
    margin: 16px auto 50px auto;
    padding: 0 20px;
}

.product-page-title {
    font-size: 26px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 16px;
}

.rental-time-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.rental-time-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 75px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rental-time-card.disabled {
    opacity: 0.75;
    background: #f8fafc;
    cursor: not-allowed;
}

.rental-time-card.active {
    border: 1.8px solid #ea580c;
    background: #fffaf7;
}

.rental-duration {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-coming {
    font-size: 10px;
    color: #b45309;
    background: #fef3c7;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 700;
}

.rental-price {
    font-size: 14.5px;
    font-weight: 900;
}
.color-green { color: #10b981; }
.color-orange { color: #ea580c; }

.game-stage-wrapper {
    background: radial-gradient(circle at center, #2e1d3e 0%, #151124 100%);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.game-stage-title {
    font-size: 34px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.game-stage-sub {
    font-size: 13.5px;
    color: #cbd5e1;
    margin-bottom: 26px;
}

.cards-battle-arena {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    perspective: 1000px;
}

.flip-card-box {
    width: 138px;
    height: 195px;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
}

.flip-card-box.flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    border-radius: 6px;
    overflow: hidden;
}

.card-front {
    background: #000000 !important;
    border: 2px solid #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.card-front img, .pool-single-thumb img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
}

.card-back {
    background: #251b36;
    border: 2px solid #6b21a8;
    box-shadow: 0 4px 12px rgba(107, 33, 168, 0.3);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 900;
    color: #a855f7;
}

.btn-play-game {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    padding: 13px 32px;
    border-radius: 8px;
    font-size: 15.5px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 82, 0, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease;
}

.btn-play-game:hover {
    transform: scale(1.04);
}

.btn-play-game:disabled {
    background: #475569;
    cursor: not-allowed;
    box-shadow: none;
}

.pool-section-title {
    font-size: 16px;
    font-weight: 900;
    color: #0f172a;
    margin: 32px 0 12px 0;
    text-transform: uppercase;
}

.pool-box-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    padding: 12px 14px;
    gap: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    margin-bottom: 40px;
}

.pool-single-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 95px;
}

.pool-single-thumb {
    width: 92px;
    height: 130px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 6px;
    border: 1.5px solid #cbd5e1;
    background: #000000;
}

.pool-single-name {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    white-space: nowrap;
}

@keyframes shuffle1 { 
    0% { transform: translateX(0) rotateY(180deg); } 
    50% { transform: translateX(155px) rotateY(180deg); } 
    100% { transform: translateX(0) rotateY(180deg); } 
}

@keyframes shuffle2 { 
    0% { transform: translateX(0) rotateY(180deg); } 
    50% { transform: translateX(-155px) rotateY(180deg); } 
    100% { transform: translateX(0) rotateY(180deg); } 
}

.shuffling-left { animation: shuffle1 0.8s ease-in-out infinite; }
.shuffling-right { animation: shuffle2 0.8s ease-in-out infinite; }

.won-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    z-index: 2000;
    align-items: center; justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.won-modal-box {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    padding: 26px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: zoomModalIn 0.25s ease-out;
}

@keyframes zoomModalIn { 
    from { transform: scale(0.88); opacity: 0; } 
    to { transform: scale(1); opacity: 1; } 
}

/* ==========================================================================
   12. GIAO DIỆN PROFILE TRANG CÁ NHÂN
   ========================================================================== */
.profile-hero-card {
    background: #231b31;
    border-radius: 12px;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.profile-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.avatar-circle-lg {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
}

.profile-username {
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 4px;
}

.profile-subinfo {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    gap: 10px;
}

.user-badge-id {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.profile-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-stat-pill {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 18px;
    min-width: 90px;
    text-align: center;
}

.stat-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 15px;
    font-weight: 900;
}

.btn-profile-recharge {
    background: var(--primary-gradient);
    color: #ffffff;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 800;
    font-size: 13.5px;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.profile-tabs-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.profile-tab-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-tab-item:hover, 
.profile-tab-item.active {
    background: #ffffff;
    border: 2px solid #0f172a;
    color: #0f172a;
}

.tab-pane {
    display: none !important;
}

.tab-pane.active {
    display: block !important;
}

.empty-state-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 50px 20px;
    text-align: center;
}

.empty-box-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.empty-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
}

.empty-sub {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
}

.btn-primary-orange {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    padding: 11px 26px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.account-settings-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
}

.section-heading {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.section-desc {
    font-size: 12.5px;
    color: #64748b;
}

/* ==========================================================================
   13. MODAL AUTH (ĐÃ CỐ ĐỊNH CHUẨN NÚT X GÓC TRÊN PHẢI)
   ========================================================================== */
.auth-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(3px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    padding: 30px 26px 26px 26px;
    position: relative !important;
    box-shadow: var(--shadow-modal);
}

.auth-modal .modal-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 36px !important;
    height: 36px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
}

.auth-modal .modal-close:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.auth-icon-badge {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.auth-title { 
    font-size: 22px; 
    font-weight: 900; 
    color: #0f172a; 
    margin-bottom: 6px; 
}

.auth-subtitle { 
    font-size: 13px; 
    color: var(--text-muted); 
    margin-bottom: 20px; 
}

.form-group { 
    margin-bottom: 16px; 
}

.form-group label { 
    display: block; 
    font-size: 13px; 
    font-weight: 700; 
    margin-bottom: 6px; 
    color: #334155; 
}

.auth-input { 
    width: 100%; 
    padding: 12px 14px; 
    border: 1px solid #e2e8f0; 
    border-radius: 8px; 
    font-size: 13.5px; 
    background: #f8fafc; 
    outline: none; 
    transition: border-color 0.2s ease;
}

.auth-input:focus { 
    border-color: #ff6a00; 
    background: #ffffff; 
}

.password-wrapper { 
    position: relative; 
}

.toggle-eye { 
    position: absolute; 
    right: 12px; 
    top: 50%; 
    transform: translateY(-50%); 
    cursor: pointer; 
    color: #94a3b8; 
}

.auth-helper { 
    display: flex; 
    justify-content: flex-end; 
    margin-bottom: 20px; 
}

.forgot-link { 
    font-size: 12.5px; 
    color: #64748b; 
    text-decoration: none; 
}

.btn-auth-submit { 
    width: 100%; 
    background: var(--primary-gradient); 
    border: none; 
    color: #ffffff; 
    padding: 13px; 
    border-radius: 8px; 
    font-size: 15px; 
    font-weight: 800; 
    cursor: pointer; 
}

.auth-footer-text { 
    text-align: center; 
    font-size: 13px; 
    color: #475569; 
    margin-top: 20px; 
}

.auth-footer-text a { 
    color: #ea580c; 
    text-decoration: none; 
    font-weight: 700; 
}

.auth-error { 
    background: #fee2e2; 
    color: #b91c1c; 
    padding: 10px; 
    border-radius: 6px; 
    font-size: 12.5px; 
    margin-bottom: 15px; 
    display: none; 
}

/* ==========================================================================
   14. MODAL NẠP TIỀN CHUẨN 3 BƯỚC
   ========================================================================== */
.recharge-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 430px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-top-header {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    align-items: center;
    margin-bottom: 12px;
}

.recharge-heading {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
    text-align: center;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.modal-back-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
}

.recharge-sub { 
    font-size: 13px; 
    color: #64748b; 
    margin-bottom: 18px; 
}

.recharge-options-list { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}

.recharge-opt-box { 
    border-radius: 12px; 
    padding: 16px 18px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    cursor: pointer; 
    color: #ffffff; 
}

.opt-bank { background: #0e2a22; }
.opt-card { background: #22162f; }
.opt-left { display: flex; align-items: center; gap: 14px; }
.opt-icon-badge { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.opt-icon-bank { background: #081a15; color: #ff9800; }
.opt-icon-card { background: #150d1d; color: #f59e0b; }
.opt-title { font-size: 14.5px; font-weight: 800; margin-bottom: 2px; }
.opt-desc { font-size: 11.5px; opacity: 0.75; }
.opt-arrow { font-size: 16px; opacity: 0.6; }

.quick-amounts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 16px 0; }
.quick-amount-btn { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 4px; font-size: 13.5px; font-weight: 800; color: #1e293b; cursor: pointer; }
.quick-amount-btn:hover { background: #e2e8f0; }
.bank-hint-text { font-size: 12px; color: #64748b; line-height: 1.5; margin-bottom: 20px; }
.field-label { display: block; font-size: 12.5px; font-weight: 800; color: #334155; margin-bottom: 6px; }
.telco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.telco-btn { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 8px; padding: 9px 0; font-size: 13px; font-weight: 800; color: #334155; cursor: pointer; }
.telco-btn.active { border: 1.5px solid #ea580c; color: #ea580c; background: #fff7ed; }
.denominations-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
.denom-btn { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 10px; text-align: center; cursor: pointer; }
.denom-btn.active { border: 1.5px solid #10b981; background: #ecfdf5; }
.denom-val { font-size: 13.5px; font-weight: 800; color: #0f172a; }
.denom-rate { font-size: 11px; font-weight: 700; color: #10b981; }
.card-warning-text { font-size: 11.5px; color: #ea580c; line-height: 1.4; margin-bottom: 16px; }

.qr-image-wrapper { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px; width: 210px; margin: 8px auto 14px auto; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04); }
.qr-image-wrapper img { width: 100%; height: auto; display: block; border-radius: 6px; }
.qr-info-details { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 16px; font-size: 13px; color: #334155; display: flex; flex-direction: column; gap: 8px; }
.qr-info-row { display: flex; justify-content: space-between; align-items: center; }
.qr-row-memo { margin-top: 4px; padding-top: 8px; border-top: 1px dashed #cbd5e1; }
.highlight-orange { color: #ea580c; font-weight: 900; }
.highlight-green { color: #10b981; font-weight: 900; }
.highlight-red { color: #dc2626; font-family: monospace; font-size: 14.5px; font-weight: 900; }
.copy-box { display: flex; align-items: center; gap: 8px; }
.btn-copy-small { background: #e2e8f0; border: none; padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 700; color: #1e293b; cursor: pointer; }

/* ==========================================================================
   15. FOOTER CHÂN TRANG
   ========================================================================== */
.main-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    padding: 40px 0 20px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1fr 1.5fr;
    gap: 30px;
}

.footer-title { 
    font-size: 14px; 
    font-weight: 800; 
    margin-bottom: 16px; 
    color: #1e293b; 
}

.footer-links { 
    list-style: none; 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
}

.footer-links a { 
    text-decoration: none; 
    color: var(--text-muted); 
    font-size: 13px; 
}

.footer-links a:hover { 
    color: var(--primary-orange); 
}

.footer-desc { 
    font-size: 13px; 
    color: var(--text-muted); 
    line-height: 1.6; 
    margin-top: 12px; 
}

.contact-line { 
    font-size: 13px; 
    margin-bottom: 8px; 
    color: #475569; 
}

.footer-bottom { 
    max-width: 1200px; 
    margin: 30px auto 0 auto; 
    padding-top: 20px; 
    border-top: 1px solid #f1f5f9; 
    text-align: center; 
    font-size: 12.5px; 
    color: var(--text-muted); 
}

/* ==========================================================================
   16. TỐI ƯU GIAO DIỆN MOBILE CHUẨN XÁC 100% (ẢNH 2 & 3)
   ========================================================================== */
@media (min-width: 769px) {
    .desktop-only { display: flex !important; }
    .mobile-toggle { display: none !important; }
}

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .nav-menu { display: none !important; }
    
    .mobile-toggle { display: flex !important; }
    
    .hero-banner-inner { padding: 26px 20px; flex-direction: column; text-align: center; }
    .hero-banner-image { display: none; }
    .hero-title { font-size: 26px; }
    .hero-buttons { justify-content: center; }
    
    .quick-features { grid-template-columns: 1fr; gap: 12px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .trust-badges { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .footer-container { grid-template-columns: 1fr; gap: 20px; }
}