*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Ẩn scrollbar nhưng giữ khả năng cuộn */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    touch-action: pan-y;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

body {
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
    background: #030611;
    background-image: 
        radial-gradient(circle at 50% -10%, rgba(56, 189, 248, 0.15) 0%, transparent 55%),
        radial-gradient(circle at 10% 40%, rgba(14, 165, 233, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 90% 70%, rgba(245, 158, 11, 0.04) 0%, transparent 45%);
    color: #f8fafc;
    letter-spacing: -0.005em;
    line-height: 1.55;
    overflow-y: auto;
    min-height: 100vh;
}

button, input, select, textarea, h1, h2, h3, h4, h5, h6 {
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

main {
    padding-bottom: 80px;
}

html {
    scroll-behavior: smooth;
}

/* Kỹ thuật Ẩn Nội Dung SEO dành riêng cho Crawler Bot */
.seo-crawler-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* SPLASH SCREEN OPTIMIZED (250ms) */
.splash-screen {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #030307;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 1;
    transition: opacity 0.25s ease-out, filter 0.25s ease-out;
    will-change: opacity, filter;
}

.splash-screen.fade-out {
    opacity: 0;
    filter: blur(8px);
    pointer-events: none;
}

.splash-screen.hidden {
    display: none !important;
}

.cyber-spinner {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.splash-text {
    font-size: clamp(16px, 3.5vw, 22px);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ENTERPRISE NAVBAR & LED NEON LOGO EFFECT */
.desktop-header {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(3, 3, 7, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 72px;
    align-items: center;
    justify-content: center;
}

.desktop-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.desktop-logo img, .mobile-logo img, .home-logo, .modal-logo {
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 163, 255, 0.45));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.desktop-logo img:hover, .home-logo:hover {
    filter: drop-shadow(0 3px 18px rgba(0, 163, 255, 0.75));
}

.desktop-logo img { height: 40px; width: auto; }
.mobile-logo img { height: 32px; width: auto; }

/* BANNER ĐẠI SỨ THƯƠNG HIỆU GERARD PIQUÉ TRÊN TRANG CHỦ */
.home-logo { 
    max-width: 720px; 
    width: 100%; 
    height: auto; 
    display: block;
    margin: 0 auto;
    border-radius: 18px;
    border: 1px solid rgba(56, 189, 248, 0.38);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.78), 0 0 32px rgba(14, 165, 233, 0.28);
}

.home-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.85), 0 0 42px rgba(56, 189, 248, 0.45);
}

.modal-logo { height: 42px; width: auto; margin: 0 auto 16px; }

.desktop-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.desktop-nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    transition: all 0.2s ease;
    padding: 24px 0;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}

.desktop-nav a:hover, .desktop-nav a.active {
    color: #38bdf8;
}

.desktop-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    border-radius: 2px;
    box-shadow: 0 0 8px #38bdf8;
}

.desktop-register {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 45%, #d97706 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 10px 22px;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #0b0f19;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45), 0 0 12px rgba(251, 191, 36, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.7);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    animation: vipGlowPulse 3s infinite ease-in-out;
}

.desktop-register .btn-reg-icon {
    width: 17px;
    height: 17px;
    fill: #0b0f19;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.desktop-register::before, .mobile-register::before, .btn-home::before, .modal-btn-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-25deg);
    animation: btnSheenSweep 3.5s infinite ease-in-out;
}

@keyframes btnSheenSweep {
    0% { left: -120%; }
    30%, 100% { left: 220%; }
}

@keyframes vipGlowPulse {
    0%, 100% {
        box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45), 0 0 12px rgba(251, 191, 36, 0.25);
    }
    50% {
        box-shadow: 0 4px 26px rgba(245, 158, 11, 0.75), 0 0 20px rgba(255, 215, 0, 0.55);
    }
}

.desktop-register:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.75), 0 0 22px rgba(251, 191, 36, 0.55);
    color: #000000;
}

.desktop-register:hover .btn-reg-icon {
    transform: rotate(20deg) scale(1.15);
}

.mobile-top-bar {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(3, 6, 17, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.12);
    z-index: 1001;
    padding: 12px 20px;
    justify-content: space-between;
    align-items: center;
}

.mobile-register {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 45%, #d97706 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 7px 16px;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.3px;
    color: #0b0f19;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 3px 14px rgba(245, 158, 11, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
}

.mobile-register .btn-reg-icon {
    width: 14px;
    height: 14px;
    fill: #0b0f19;
    flex-shrink: 0;
}

.nav-item-reg-mobile {
    color: #fbbf24 !important;
}
.nav-item-reg-mobile svg {
    fill: #fbbf24 !important;
}
.nav-item-reg-mobile:hover, .nav-item-reg-mobile.active {
    color: #ffd700 !important;
}

/* MARQUEE RUNNING TEXT */
.top-marquee-container {
    position: fixed;
    left: 0; width: 100%;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 0;
    z-index: 999;
    overflow: hidden;
    white-space: nowrap;
}

@media (min-width: 1025px) { .top-marquee-container { top: 72px; } }
@media (max-width: 1024px) { .top-marquee-container { top: 57px; } }

.top-marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: topMarqueeScroll 28s linear infinite;
    will-change: transform;
}

@keyframes topMarqueeScroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* BOTTOM MOBILE NAVIGATION */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background: rgba(3, 3, 7, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    justify-content: space-around;
    align-items: center;
    padding: 10px 8px calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 999;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    flex: 1;
}

.nav-item svg { width: 18px; height: 18px; fill: #64748b; transition: fill 0.2s; }
.nav-item span { font-size: 11px; font-weight: 600; color: #94a3b8; }
.nav-item.active svg { fill: #38bdf8; }
.nav-item.active span { color: #38bdf8; }

@media (min-width: 1025px) { .desktop-header { display: flex !important; } }
@media (max-width: 1024px) { 
    .mobile-top-bar, .bottom-nav { display: flex !important; } 
    .section {
        min-height: auto;
        padding: 110px 4% 60px;
        align-items: flex-start;
    }
}

/* SECTION HERO & CONTENT */
.section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 160px 4% 80px;
    position: relative;
}

.home-banner {
    background: radial-gradient(ellipse at center 40%, #0c1125 0%, #030307 70%);
}

.home-content {
    text-align: center;
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-logo-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: transparent;
}

.home-slogan {
    font-size: clamp(20px, 4vw, 36px);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
    line-height: 1.3;
}

.btn-home {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 50%, #06b6d4 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 15px 48px;
    font-size: clamp(15px, 3vw, 17px);
    font-weight: 800;
    letter-spacing: 0.02em;
    border-radius: 10px;
    cursor: pointer;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-home:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 36px rgba(56, 189, 248, 0.6), 0 0 20px rgba(6, 182, 212, 0.4);
}

/* SERVER TITLE & LIVE TAG SANG TRỌNG */
.server-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    margin-bottom: 24px;
}

.server-live-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
    text-transform: uppercase;
}

.server-live-tag .live-dot {
    width: 7px;
    height: 7px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: livePulseDot 1.6s infinite ease-in-out;
}

@keyframes livePulseDot {
    0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 8px #22c55e; }
    50% { transform: scale(1.35); opacity: 0.7; box-shadow: 0 0 16px #22c55e; }
}

.server-title {
    font-size: 14px;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* BENTO FLAG GRID & HIỆU ỨNG CỜ BAY TRONG GIÓ */
.flag-section { width: 100%; position: relative; perspective: 1000px; }

.flag-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    position: relative;
}

.flag-item {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.72), rgba(7, 11, 24, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 14px 6px 12px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    border-radius: 13px;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s, border-color 0.28s;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    will-change: transform, box-shadow;
}

.flag-item:hover {
    background: linear-gradient(145deg, rgba(22, 34, 62, 0.85), rgba(11, 19, 39, 0.95));
    border-color: rgba(56, 189, 248, 0.5);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 28px -5px rgba(56, 189, 248, 0.3), 0 0 20px rgba(56, 189, 248, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    z-index: 5;
}

.flag-item.fiery-ring {
    border: 1.5px solid #f59e0b;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.25) 0%, rgba(11, 16, 32, 0.95) 80%);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.45), 0 0 30px rgba(239, 68, 68, 0.3);
    animation: fieryPulse 2s infinite alternate ease-in-out;
}

@keyframes fieryPulse {
    0% { border-color: rgba(245, 158, 11, 0.7); box-shadow: 0 0 15px rgba(245, 158, 11, 0.4); }
    100% { border-color: rgba(239, 68, 68, 1); box-shadow: 0 0 24px rgba(239, 68, 68, 0.65); }
}

/* HIỆU ỨNG LÁ CỜ GIÓ THỔI BAY PHẤP PHỚI 3D */
.flag-item .flag-box {
    width: 54px; 
    height: 36px;
    overflow: hidden;
    border-radius: 2px 5px 5px 2px;
    position: relative;
    /* Cột cờ kim loại cố định bên mép trái */
    border-left: 2.5px solid #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), inset 0 0 4px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: left center;
    transform-style: preserve-3d;
    animation: flagWindWave 2.8s ease-in-out infinite;
    will-change: transform;
}

.flag-item .flag-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform-origin: left center;
    animation: flagClothDistort 2.8s ease-in-out infinite;
}

/* Nếp sóng lụa sáng & bóng đổ chạy dọc theo chiều gió */
.flag-item .flag-box::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.28) 0%,
        rgba(255, 255, 255, 0.48) 22%,
        rgba(0, 0, 0, 0.32) 45%,
        rgba(255, 255, 255, 0.52) 70%,
        rgba(0, 0, 0, 0.28) 90%,
        rgba(255, 255, 255, 0.15) 100%
    );
    background-size: 200% 100%;
    mix-blend-mode: overlay;
    animation: clothFoldShine 2.8s ease-in-out infinite;
}

.flag-item .flag-box::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, transparent 60%, rgba(0, 0, 0, 0.35) 100%);
}

/* Keyframes cờ uốn lượn bay phấp phới */
@keyframes flagWindWave {
    0% {
        transform: perspective(400px) rotateY(0deg) skewY(0deg) scaleX(1);
    }
    25% {
        transform: perspective(400px) rotateY(-11deg) skewY(3.2deg) scaleX(0.97) translateY(-1px);
    }
    50% {
        transform: perspective(400px) rotateY(7deg) skewY(-2.5deg) scaleX(0.99) translateY(1px);
    }
    75% {
        transform: perspective(400px) rotateY(-8deg) skewY(2deg) scaleX(0.98) translateY(-0.5px);
    }
    100% {
        transform: perspective(400px) rotateY(0deg) skewY(0deg) scaleX(1);
    }
}

@keyframes flagClothDistort {
    0%, 100% { filter: brightness(1) contrast(1); }
    25% { filter: brightness(1.08) contrast(1.06); }
    50% { filter: brightness(0.94) contrast(1.02); }
    75% { filter: brightness(1.05) contrast(1.05); }
}

@keyframes clothFoldShine {
    0% { background-position: -150% 0; }
    50% { background-position: 50% 0; }
    100% { background-position: 250% 0; }
}

/* ĐỘ LỆCH THỜI GIAN GIỮA CÁC LÁ CỜ ĐỂ KHÔNG BỊ TRÙNG LẶP */
.flag-item:nth-child(2n) .flag-box,
.flag-item:nth-child(2n) .flag-box img,
.flag-item:nth-child(2n) .flag-box::before {
    animation-delay: -0.4s;
    animation-duration: 2.5s;
}

.flag-item:nth-child(3n) .flag-box,
.flag-item:nth-child(3n) .flag-box img,
.flag-item:nth-child(3n) .flag-box::before {
    animation-delay: -1.1s;
    animation-duration: 3.1s;
}

.flag-item:nth-child(4n) .flag-box,
.flag-item:nth-child(4n) .flag-box img,
.flag-item:nth-child(4n) .flag-box::before {
    animation-delay: -1.7s;
    animation-duration: 2.7s;
}

.flag-item:nth-child(5n) .flag-box,
.flag-item:nth-child(5n) .flag-box img,
.flag-item:nth-child(5n) .flag-box::before {
    animation-delay: -2.3s;
    animation-duration: 2.9s;
}

.flag-item:nth-child(7n) .flag-box,
.flag-item:nth-child(7n) .flag-box img,
.flag-item:nth-child(7n) .flag-box::before {
    animation-delay: -0.8s;
    animation-duration: 3.3s;
}

/* Tăng tốc độ gió thổi khi rê chuột vào */
.flag-item:hover .flag-box {
    animation-duration: 1.3s !important;
    transform: perspective(400px) rotateY(-13deg) skewY(3.8deg) scale(1.04);
}
.flag-item:hover .flag-box::before {
    animation-duration: 1.3s !important;
}

.flag-item .country-name { 
    font-size: 12px; 
    font-weight: 600; 
    color: #e2e8f0;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* CỘT SÓNG ĐIỆN THOẠI & SỐ PING NHẢY NHƯ THẬT */
.flag-ping-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
}

.signal-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.signal-bars .bar {
    width: 2.5px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
    transition: background-color 0.25s, box-shadow 0.25s;
}

.signal-bars .bar:nth-child(1) { height: 3px; }
.signal-bars .bar:nth-child(2) { height: 6px; }
.signal-bars .bar:nth-child(3) { height: 9px; }
.signal-bars .bar:nth-child(4) { height: 12px; }

/* 4 Cấp độ sóng viễn thông động */
.signal-bars.level-4 .bar {
    background-color: #22c55e;
    box-shadow: 0 0 4px rgba(34, 197, 94, 0.6);
}

.signal-bars.level-3 .bar:nth-child(1),
.signal-bars.level-3 .bar:nth-child(2),
.signal-bars.level-3 .bar:nth-child(3) {
    background-color: #38bdf8;
    box-shadow: 0 0 4px rgba(56, 189, 248, 0.6);
}
.signal-bars.level-3 .bar:nth-child(4) {
    background-color: rgba(255, 255, 255, 0.18);
}

.signal-bars.level-2 .bar:nth-child(1),
.signal-bars.level-2 .bar:nth-child(2) {
    background-color: #eab308;
    box-shadow: 0 0 4px rgba(234, 179, 8, 0.6);
}
.signal-bars.level-2 .bar:nth-child(3),
.signal-bars.level-2 .bar:nth-child(4) {
    background-color: rgba(255, 255, 255, 0.18);
}

.signal-bars.level-1 .bar:nth-child(1) {
    background-color: #f97316;
    box-shadow: 0 0 4px rgba(249, 115, 22, 0.6);
}
.signal-bars.level-1 .bar:nth-child(2),
.signal-bars.level-1 .bar:nth-child(3),
.signal-bars.level-1 .bar:nth-child(4) {
    background-color: rgba(255, 255, 255, 0.18);
}

/* SỐ PING VỚI HIỆU ỨNG NHẢY CHÂN THỰC */
.ping-text {
    color: #38bdf8;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: -0.01em;
    display: inline-block;
    transition: color 0.25s ease;
    will-change: transform;
}

.ping-text.ping-fast {
    color: #4ade80;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

.ping-text.ping-medium {
    color: #38bdf8;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.ping-text.ping-slow {
    color: #fbbf24;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.ping-text.ping-jump {
    animation: pingTickJump 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes pingTickJump {
    0% { transform: scale(1); }
    50% { transform: scale(1.22); filter: brightness(1.35); }
    100% { transform: scale(1); }
}

/* HIỆU ỨNG BẢO TRÌ VÀ Ổ KHÓA MỜ */
.flag-item.maintenance {
    opacity: 0.45;
    pointer-events: none;
    filter: grayscale(0.85);
    background: rgba(15, 23, 42, 0.7);
}

.maintenance-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(3, 6, 17, 0.86);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    z-index: 5;
    gap: 4px;
}

.maintenance-overlay svg {
    width: 17px;
    height: 17px;
    fill: #ef4444;
    filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.5));
}

.maintenance-overlay span {
    font-size: 9px;
    font-weight: 800;
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (max-width: 1200px) { .flag-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 900px) { .flag-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { 
    .flag-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } 
    .flag-item { padding: 9px 4px 8px; border-radius: 10px; }
    .flag-item .flag-box { width: 46px; height: 30px; border-radius: 2px 4px 4px 2px; }
    .flag-item .country-name { font-size: 11px; }
    .flag-ping-info { font-size: 9.5px; gap: 4px; }
    .maintenance-overlay svg { width: 14px; height: 14px; }
    .maintenance-overlay span { font-size: 8px; }
    .home-logo { max-width: 96%; border-radius: 14px; }
    .home-slogan { font-size: clamp(17px, 4.5vw, 24px); margin-bottom: 20px; }
    .btn-home { padding: 12px 32px; font-size: 14px; }
    .server-title-wrapper { margin-top: 32px; margin-bottom: 16px; }
    .server-title { font-size: 12px; }
}

/* GAME HOT SECTION */
.gamehot-section { 
    background: #030307; 
    width: 100%;
    display: block !important;
    min-height: auto;
    padding: 120px 4% 80px;
}

.gamehot-container { 
    max-width: 1240px; 
    width: 100%; 
    margin: 0 auto; 
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.hotgame-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 10px;
}

.hotgame-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(160deg, #0e172e 0%, #070c1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s, box-shadow 0.28s;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    will-change: transform, box-shadow;
}

.hotgame-card .img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #040711;
}

.hotgame-card .img-wrapper img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hotgame-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 163, 255, 0.55);
    box-shadow: 0 16px 36px -5px rgba(0, 163, 255, 0.28), 0 0 20px rgba(0, 163, 255, 0.16);
}

.hotgame-card:hover .img-wrapper img { transform: scale(1.07); }

.online-badge {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(7, 12, 26, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.online-badge .dot {
    width: 6px; height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: livePulseDot 1.6s infinite ease-in-out;
}

.online-badge span { font-size: 11px; font-weight: 700; color: #f8fafc; }

.hotgame-info {
    padding: 14px 16px;
    text-align: left;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hotgame-name { 
    font-size: 14.5px; 
    font-weight: 700; 
    color: #f1f5f9; 
    line-height: 1.38;
    transition: color 0.2s ease;
    word-break: normal;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.hotgame-card:hover .hotgame-name {
    color: #00c6ff;
}

@media (max-width: 1024px) { 
    .hotgame-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } 
}
@media (max-width: 640px) {
    .hotgame-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hotgame-info { padding: 10px 12px; }
    .hotgame-name { font-size: 12.5px; min-height: 35px; }
}

.section-title { text-align: center; }
.section-title h2 { 
    font-size: clamp(22px, 4.5vw, 32px); 
    font-weight: 800; 
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.right-title { font-size: 14.5px; text-align: center; margin-top: 10px; color: #94a3b8; font-weight: 500; }

/* SECTION BADGE */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

/* THANH TAB PHÂN LOẠI DANH MỤC GAME */
.game-category-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 28px 0 24px;
    overflow-x: auto;
    padding: 6px 4px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.game-category-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: #94a3b8;
    padding: 9px 18px;
    border-radius: 24px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-tab:hover {
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(22, 34, 62, 0.85);
    transform: translateY(-2px);
}

.cat-tab.active {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* CARD PLAY OVERLAY KHI DI CHUỘT */
.card-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 6, 18, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.28s ease, transform 0.28s ease;
    transform: scale(0.92);
    pointer-events: none;
    z-index: 2;
}

.hotgame-card:hover .card-play-overlay {
    opacity: 1;
    transform: scale(1);
}

.play-btn-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.8);
    border: 2px solid #ffffff;
}

.play-btn-circle svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
    margin-left: 3px;
}

.play-btn-text {
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* BADGE TRẠNG THÁI GAME */
.game-tag-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    z-index: 3;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.game-tag-badge.hot {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #ffffff;
}

.game-tag-badge.jackpot {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    animation: fieryPulse 1.8s infinite alternate;
}

.game-tag-badge.vip {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #ffffff;
}

.game-tag-badge.thethao {
    background: linear-gradient(135deg, #06b6d4, #0284c7);
    color: #ffffff;
}

/* THÔNG TIN CARD CHI TIẾT */
.hotgame-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.rtp-tag {
    font-size: 10.5px;
    font-weight: 700;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.hotgame-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
}

.provider-tag {
    color: #64748b;
    font-weight: 600;
}

.jackpot-mini strong {
    color: #f59e0b;
}

/* 1. BẢNG TÍCH LŨY MEGA JACKPOT THỜI GIAN THỰC */
.mega-jackpot-banner {
    position: relative;
    margin-top: 48px;
    background: linear-gradient(145deg, rgba(20, 27, 45, 0.85) 0%, rgba(9, 13, 26, 0.95) 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 158, 11, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px 24px 28px;
    text-align: center;
    overflow: hidden;
}

.jackpot-glow-aura {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.jackpot-top-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 30px;
    margin-bottom: 16px;
}

.jackpot-cup { font-size: 16px; }

.jackpot-title-text {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #fbbf24;
    text-transform: uppercase;
}

.jackpot-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 800;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 12px;
    padding: 2px 8px;
}

.jackpot-value-box {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin: 10px 0 14px;
}

.jackpot-currency-symbol {
    font-size: clamp(16px, 3.5vw, 24px);
    font-weight: 800;
    color: #f59e0b;
}

.jackpot-odometer {
    font-size: clamp(28px, 6.5vw, 54px);
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #fbbf24;
    text-shadow: 0 0 25px rgba(245, 158, 11, 0.7), 0 2px 5px rgba(0, 0, 0, 0.8);
    font-family: 'Be Vietnam Pro', 'Inter', monospace;
    font-variant-numeric: tabular-nums;
    transition: all 0.2s ease;
}

.jackpot-odometer.ticking {
    transform: scale(1.03);
    color: #fde047;
    text-shadow: 0 0 35px rgba(253, 224, 71, 0.9);
}

.jackpot-description {
    font-size: 13.5px;
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.5;
}

/* 2. THANH VINH DANH NGƯỜI THẮNG LỚN (LIVE WINNERS STRIP) */
.live-winners-strip {
    margin-top: 24px;
    display: flex;
    align-items: center;
    background: rgba(11, 17, 34, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.15);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 10px 16px;
    overflow: hidden;
    gap: 16px;
}

.winners-badge-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #38bdf8;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

.winners-carousel-track {
    overflow: hidden;
    width: 100%;
    position: relative;
    mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.winners-scroll-container {
    display: flex;
    gap: 20px;
    white-space: nowrap;
    animation: winnersTickerScroll 28s linear infinite;
    will-change: transform;
}

@keyframes winnersTickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.winner-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.chip-user { color: #cbd5e1; font-weight: 600; }
.chip-game { color: #64748b; font-size: 11px; }
.chip-win { color: #22c55e; font-weight: 800; text-shadow: 0 0 8px rgba(34, 197, 94, 0.5); }

/* 3. BENTO 4 ĐIỂM SÁNG VƯỢT TRỘI */
.features-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 40px;
}

.feature-card {
    background: linear-gradient(150deg, rgba(15, 23, 42, 0.7) 0%, rgba(7, 11, 24, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(14px);
    border-radius: 18px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s, box-shadow 0.28s;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 14px 30px -5px rgba(56, 189, 248, 0.25), 0 0 15px rgba(56, 189, 248, 0.1);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.feature-icon-wrapper svg { width: 24px; height: 24px; }

.speed-icon { background: rgba(56, 189, 248, 0.15); border: 1px solid rgba(56, 189, 248, 0.4); }
.speed-icon svg { fill: #38bdf8; }

.security-icon { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.4); }
.security-icon svg { fill: #22c55e; }

.gift-icon { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.4); }
.gift-icon svg { fill: #f59e0b; }

.support-icon { background: rgba(168, 85, 247, 0.15); border: 1px solid rgba(168, 85, 247, 0.4); }
.support-icon svg { fill: #c084fc; }

.feature-heading {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.feature-body {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.55;
    margin-bottom: 16px;
    flex-grow: 1;
}

.feature-pill {
    font-size: 10px;
    font-weight: 800;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.05em;
}

/* 4. BANNER VIP THAM GIA NGAY */
.vip-invitation-banner {
    margin-top: 40px;
    background: linear-gradient(135deg, #091630 0%, #0c1c3d 50%, #081125 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    border-radius: 20px;
    padding: 32px 36px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.2);
    position: relative;
    overflow: hidden;
}

.vip-invitation-banner::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 350px; height: 100%;
    background: radial-gradient(circle at 100% 50%, rgba(56, 189, 248, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.vip-badge-tag {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #f59e0b;
    margin-bottom: 10px;
}

.vip-banner-headline {
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.vip-banner-sub {
    font-size: 14px;
    color: #cbd5e1;
    max-width: 780px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.vip-banner-btn {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 50%, #06b6d4 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 13px 32px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 14.5px;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.vip-banner-btn svg { width: 18px; height: 18px; fill: #ffffff; transition: transform 0.2s; }

.vip-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(56, 189, 248, 0.65);
}

.vip-banner-btn:hover svg { transform: translateX(3px); }

/* RESPONSIVE MOBILE CHO KHU VỰC GAME & PHẦN DƯỚI */
@media (max-width: 1024px) {
    .features-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .game-category-tabs {
        justify-content: flex-start;
        padding-left: 4px;
        padding-right: 4px;
    }
    .cat-tab {
        padding: 7px 14px;
        font-size: 12.5px;
    }
    .mega-jackpot-banner {
        padding: 22px 14px 20px;
        margin-top: 32px;
        border-radius: 16px;
    }
    .jackpot-top-bar {
        padding: 4px 12px;
        gap: 6px;
    }
    .jackpot-title-text { font-size: 10.5px; }
    .jackpot-description { font-size: 12px; }
    .features-bento-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .feature-card {
        padding: 18px 16px;
    }
    .vip-invitation-banner {
        padding: 22px 18px;
        border-radius: 16px;
    }
    .vip-banner-btn {
        width: 100%;
        justify-content: center;
    }
}

/* POPUP MODAL VIP SANG TRỌNG - HIỆU ỨNG KÍNH FROSTED GLASS TRANSLUCENT */
.modal-overlay {
    position: fixed;
    inset: 0;
    width: 100%; height: 100%;
    background: rgba(2, 6, 18, 0.40);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: linear-gradient(135deg, rgba(12, 28, 56, 0.48) 0%, rgba(5, 14, 30, 0.58) 100%);
    backdrop-filter: blur(28px) saturate(210%);
    -webkit-backdrop-filter: blur(28px) saturate(210%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 
        0 28px 65px -10px rgba(0, 0, 0, 0.75), 
        0 0 45px rgba(0, 163, 255, 0.22), 
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        inset 0 -1px 2px rgba(0, 163, 255, 0.15);
    border-radius: 26px;
    max-width: 540px;
    width: 100%;
    padding: 34px 28px 28px;
    text-align: center;
    position: relative;
    transform: scale(0.92) translateY(10px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.modal-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(255, 255, 255, 0.8) 50%, transparent 95%);
    pointer-events: none;
}

.modal-overlay.active .modal-box {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #cbd5e1;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ffffff;
    border-color: rgba(239, 68, 68, 0.6);
    transform: rotate(90deg) scale(1.05);
}

.modal-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
}

.modal-logo {
    display: block;
    margin: 0 auto;
    max-width: 175px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 163, 255, 0.45));
}

.modal-box h2.modal-title {
    font-size: clamp(17px, 3.2vw, 21px);
    font-weight: 800;
    color: #38bdf8;
    margin-bottom: 18px;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(56, 189, 248, 0.5);
    line-height: 1.35;
    letter-spacing: 0.03em;
}

.modal-notices-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    text-align: left;
}

.glass-notice-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 13px 15px;
    transition: background 0.25s, border-color 0.25s;
}

.glass-notice-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(0, 163, 255, 0.35);
}

.notice-icon-badge {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.icon-shield {
    background: rgba(0, 163, 255, 0.15);
    border: 1px solid rgba(0, 163, 255, 0.35);
}

.icon-shield svg {
    width: 17px;
    height: 17px;
    fill: #00c6ff;
}

.icon-gift {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.icon-gift svg {
    width: 17px;
    height: 17px;
    fill: #f59e0b;
}

.notice-card-text {
    font-size: 13.5px;
    color: #e2e8f0;
    line-height: 1.55;
    flex: 1;
}

.notice-card-text strong {
    color: #00c6ff;
    font-weight: 700;
}

.notice-card-text .highlight-gold {
    color: #fbbf24;
    font-weight: 700;
}

.modal-btn-action {
    background: linear-gradient(135deg, #0095e8 0%, #00b4d8 50%, #0077b6 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    padding: 14px 28px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    letter-spacing: 0.04em;
}

.modal-btn-action:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0095e8 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 180, 216, 0.7), 0 0 20px rgba(0, 163, 255, 0.4);
}

.modal-btn-action svg {
    transition: transform 0.25s ease;
}

.modal-btn-action:hover svg {
    transform: translateX(3px);
}

@media (max-width: 480px) {
    .modal-box {
        padding: 24px 18px 20px;
        border-radius: 20px;
    }
    .modal-logo {
        max-width: 145px;
    }
    .notice-card-text {
        font-size: 12.5px;
    }
    .modal-btn-action {
        font-size: 13.5px;
        padding: 12px 20px;
    }
}

footer {
    background: #020308;
    text-align: center;
    padding: 36px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

footer p { font-size: 13px; color: #64748b; margin: 4px 0; }
footer .social-icons { display: flex; justify-content: center; gap: 16px; margin-top: 14px; }
footer .social-icons a { color: #64748b; font-size: 18px; text-decoration: none; transition: color 0.2s; }
footer .social-icons a:hover { color: #38bdf8; }

/* ================================================================ */
/* NÚT TRÒN TELEGRAM NỔI BẬT GÓC MÀN HÌNH CHUYỂN HƯỚNG @CSKHxx88FB  */
/* ================================================================ */
.telegram-float-container {
    position: fixed;
    bottom: 30px;
    right: 28px;
    z-index: 9999;
    display: flex;
    align-items: center;
}

@media (max-width: 1024px) {
    .telegram-float-container {
        bottom: 84px; /* Nằm ngay trên mobile bottom bar, không bị che */
        right: 18px;
    }
}

.telegram-btn-link {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    outline: none;
    cursor: pointer;
}

/* Biểu tượng tròn Telegram màu xanh phát sáng */
.telegram-circle-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2aabee 0%, #229ed9 45%, #0088cc 80%, #006da8 100%);
    border: 2px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 
        0 10px 25px rgba(0, 136, 204, 0.65), 
        0 0 25px rgba(42, 171, 238, 0.5), 
        inset 0 2px 2px rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 4;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: telegramGentleFloat 3.6s ease-in-out infinite;
}

.telegram-svg-icon {
    width: 31px;
    height: 31px;
    margin-right: 3px;
    margin-top: 1px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
    transition: transform 0.3s ease;
}

/* Các tầng sóng xung kích radar phát ra liên tục */
.telegram-wave-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    margin-top: -29px;
    margin-left: -29px;
    border-radius: 50%;
    background: rgba(42, 171, 238, 0.45);
    pointer-events: none;
    z-index: 1;
    animation: telegramRadarWave 3s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.telegram-wave-pulse.pulse-2 {
    animation-delay: 1s;
}

.telegram-wave-pulse.pulse-3 {
    animation-delay: 2s;
}

@keyframes telegramRadarWave {
    0% {
        transform: scale(0.9);
        opacity: 0.85;
        box-shadow: 0 0 0 0 rgba(42, 171, 238, 0.8);
    }
    70% {
        transform: scale(2.2);
        opacity: 0;
        box-shadow: 0 0 25px 15px rgba(42, 171, 238, 0);
    }
    100% {
        transform: scale(2.3);
        opacity: 0;
    }
}

@keyframes telegramGentleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

/* Hiệu ứng khi rê chuột vào nút Telegram */
.telegram-btn-link:hover .telegram-circle-icon {
    transform: scale(1.12) translateY(-3px);
    background: linear-gradient(135deg, #3ac2ff 0%, #29b2fa 45%, #009be6 100%);
    box-shadow: 
        0 14px 35px rgba(0, 136, 204, 0.85), 
        0 0 35px rgba(56, 189, 248, 0.7);
}

.telegram-btn-link:hover .telegram-svg-icon {
    transform: rotate(-12deg) scale(1.08);
}

@media (max-width: 640px) {
    .telegram-circle-icon {
        width: 50px;
        height: 50px;
    }
    .telegram-svg-icon {
        width: 26px;
        height: 26px;
    }
    .telegram-wave-pulse {
        width: 50px;
        height: 50px;
        margin-top: -25px;
        margin-left: -25px;
    }
}

/* ==========================================================================
   TOOL DỰ ĐOÁN BACCARAT AI SIÊU CẤP - LUXURY CASINO STYLING
   ========================================================================== */

/* 1. Header & Bottom Nav Enhancements */
.nav-bcr-link {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    color: #ffd700 !important;
    font-weight: 700 !important;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}
.nav-badge-ai {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    color: #fff;
    letter-spacing: 0.5px;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    animation: bcrPulseBadge 2s infinite ease-in-out;
}
@keyframes bcrPulseBadge {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.08); filter: brightness(1.25); }
}

.nav-item-bcr .nav-bcr-icon-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nav-bcr-dot {
    position: absolute;
    top: -2px;
    right: -3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
    animation: bcrPulseDot 1.5s infinite;
}

/* ==========================================================================
   SEO KNOWLEDGE HUB (CHUẨN GOOGLE E-E-A-T & SEMANTIC ENTITY)
   ========================================================================== */
.seo-knowledge-hub {
    padding: 12px 16px 32px;
    max-width: 1280px;
    margin: 0 auto;
}

.seo-accordion-box {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 16px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    transition: all 0.3s ease;
}

.seo-accordion-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 22px;
    cursor: pointer;
    user-select: none;
}

.seo-accordion-summary::-webkit-details-marker {
    display: none;
}

.seo-summary-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.seo-badge-pill {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(56, 189, 248, 0.12));
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    letter-spacing: 0.04em;
}

.seo-summary-title {
    font-size: clamp(13px, 2vw, 15px);
    font-weight: 700;
    color: #e2e8f0;
    margin: 0;
}

.seo-expand-btn {
    font-size: 12.5px;
    font-weight: 600;
    color: #38bdf8;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.seo-accordion-box[open] .arrow-down {
    display: inline-block;
    transform: rotate(180deg);
}

.seo-article-content {
    padding: 18px 22px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.7;
}

.seo-article-content h2 {
    font-size: 16px;
    font-weight: 800;
    color: #38bdf8;
    margin: 16px 0 8px;
}

.seo-article-content h2:first-child {
    margin-top: 0;
}

.seo-article-content h3 {
    font-size: 14.5px;
    font-weight: 700;
    color: #fbbf24;
    margin: 12px 0 4px;
}

.seo-article-content p,
.seo-article-content ul {
    margin-bottom: 10px;
}

.seo-article-content ul {
    padding-left: 20px;
}

.seo-article-content li {
    margin-bottom: 6px;
}

.seo-keyword-tags {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed rgba(56, 189, 248, 0.25);
    font-size: 12.5px;
    color: #94a3b8;
}

.seo-keyword-tags span {
    color: #e2e8f0;
    font-weight: 600;
}