/* ==========================================================================
   XTREME JADE MOBILE - NHÂN THẦN CHIẾN (MOBILE-FIRST RESPONSIVE STYLESHEET)
   Designed for Mobile (320px+), Tablet (768px+), and Desktop (1200px+)
   ========================================================================== */

:root {
    --bg-deep: #070b14;
    --bg-dark: #0d1322;
    --bg-panel: rgba(15, 23, 42, 0.88);
    --bg-panel-solid: #111a2e;
    --bg-glass: rgba(12, 19, 34, 0.82);
    --gold-light: #ffe49e;
    --gold-primary: #eab308;
    --gold-warm: #d99b26;
    --gold-dark: #9a6510;
    --jade-primary: #10b981;
    --jade-glow: rgba(16, 185, 129, 0.35);
    --cyan-accent: #38bdf8;
    --crimson-primary: #ef4444;
    --indigo-primary: #6366f1;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-gold: #f5d07e;
    --border-subtle: rgba(148, 163, 184, 0.16);
    --border-gold: rgba(234, 179, 8, 0.32);
    --border-gold-bright: rgba(255, 228, 158, 0.65);
    --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.55);
    --shadow-gold: 0 0 24px rgba(234, 179, 8, 0.22);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --header-height: 70px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
    font-family: 'Signika', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-deep);
    background-image:
        linear-gradient(180deg, rgba(7, 11, 20, 0.30) 0%, rgba(7, 11, 20, 0.72) 55%, rgba(7, 11, 20, 0.90) 100%),
        url('../img/thien_am_tu_bg.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    padding-bottom: 72px; /* Space for mobile bottom dock */
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container-custom {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container-custom {
        padding: 0 24px;
    }
}

/* ==========================================================================
   1. STICKY NAVBAR (MOBILE + DESKTOP)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(7, 11, 20, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-gold);
    z-index: 1030;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background: rgba(7, 11, 20, 0.97);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.65);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 12px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-logo img {
    height: 46px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(234, 179, 8, 0.4));
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: 'Fz Halloween', 'Signika', sans-serif;
    font-size: 1.05rem;
    color: var(--gold-light);
    letter-spacing: 0.5px;
    line-height: 1.15;
}

.brand-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.4px;
}

/* Server Status Pill */
.server-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-subtle);
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
}

.server-status-pill.online {
    border-color: rgba(16, 185, 129, 0.45);
    color: #34d399;
}
.server-status-pill.online .status-dot {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulseDot 1.8s infinite;
}

.server-status-pill.maintenance {
    border-color: rgba(245, 158, 11, 0.45);
    color: #fbbf24;
}
.server-status-pill.maintenance .status-dot {
    background: #f59e0b;
    box-shadow: 0 0 10px #f59e0b;
}

.server-status-pill.offline {
    border-color: rgba(239, 68, 68, 0.45);
    color: #f87171;
}
.server-status-pill.offline .status-dot {
    background: #ef4444;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.65; }
}

/* Desktop Navigation Links */
.nav-links {
    display: none;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 992px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold-light);
    background: rgba(234, 179, 8, 0.1);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

/* Header Auth Actions */
.header-actions {
    display: none;
    align-items: center;
    gap: 8px;
}

@media (min-width: 992px) {
    .header-actions {
        display: flex;
    }
}

.btn-gold {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 50%, #9a3412 100%);
    color: #fff;
    border: 1px solid rgba(255, 240, 195, 0.75);
    padding: 9px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow:
        0 4px 16px rgba(217, 119, 6, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 65%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-25deg);
    transition: left 0.55s ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
    border-color: #ffffff;
    box-shadow:
        0 8px 24px rgba(245, 158, 11, 0.65),
        0 0 15px rgba(251, 191, 36, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    color: #fff;
}

.btn-gold:hover::after {
    left: 140%;
}

.btn-outline-gold {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.14) 0%, rgba(15, 23, 42, 0.78) 100%);
    color: var(--gold-light);
    border: 1px solid rgba(234, 179, 8, 0.5);
    padding: 9px 17px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 228, 158, 0.18);
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-outline-gold:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.28) 0%, rgba(30, 41, 59, 0.9) 100%);
    border-color: var(--gold-light);
    box-shadow: 0 6px 18px rgba(234, 179, 8, 0.28);
    color: #fff;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    font-size: 1.2rem;
    cursor: pointer;
}

@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Slide Drawer */
.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 86vw);
    height: 100vh;
    background: linear-gradient(180deg, #0f172a 0%, #070b14 100%);
    border-left: 1px solid var(--border-gold);
    z-index: 1050;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.mobile-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-size: 1.1rem;
    cursor: pointer;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
}

.drawer-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    color: #e2e8f0;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.drawer-nav a:hover,
.drawer-nav a.active {
    background: rgba(234, 179, 8, 0.14);
    border-color: var(--border-gold);
    color: var(--gold-light);
}

.drawer-nav a i {
    width: 20px;
    text-align: center;
    color: var(--gold-primary);
}

.drawer-auth {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   2. HERO SECTION & QUICK ACTION COMMAND CENTER
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: calc(var(--header-height) + 32px);
    padding-bottom: 48px;
    background-image:
        linear-gradient(180deg, rgba(7, 11, 20, 0.35) 0%, rgba(7, 11, 20, 0.72) 65%, var(--bg-deep) 100%),
        url('../img/thien_am_tu_bg.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    overflow: hidden;
}

@media (min-width: 992px) {
    .hero-section {
        min-height: 680px;
        display: flex;
        align-items: center;
        padding-top: calc(var(--header-height) + 48px);
        padding-bottom: 64px;
    }
}

.hero-content {
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-logo-wrap {
    margin-bottom: 14px;
}

.hero-logo-wrap img {
    width: min(280px, 68vw);
    margin: 0 auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 18px rgba(234, 179, 8, 0.35));
    animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-gold-bright);
    color: var(--gold-light);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 14px;
    box-shadow: var(--shadow-gold);
}

.hero-title {
    font-family: 'Fz Halloween', 'Signika', sans-serif;
    font-size: clamp(1.75rem, 4.5vw, 3.35rem);
    color: #fff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.9), 0 0 30px rgba(234, 179, 8, 0.45);
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-title span {
    background: linear-gradient(180deg, #fff7d6 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: #e2e8f0;
    max-width: 680px;
    margin: 0 auto 28px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* Hero CTA Command Buttons (Tải Game & Đăng Ký) */
.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 720px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.action-tile {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.95) 100%);
    border: 1.5px solid var(--border-gold);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Shimmer sweep effect across Hero CTA buttons */
.action-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -130%;
    width: 75%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255, 248, 220, 0.28) 50%,
        transparent 80%
    );
    z-index: 1;
    transition: left 0.65s ease;
    pointer-events: none;
}

/* Subtle ornate inner frame */
.action-tile::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 228, 158, 0.16);
    pointer-events: none;
}

.action-tile:hover {
    transform: translateY(-5px) scale(1.015);
    border-color: #fff7d6;
}

.action-tile:hover::before {
    left: 140%;
}

/* Button 1: TẢI GAME NGAY (Imperial Amber-Gold & Crimson Flame) */
.action-tile.primary-download {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 42%, #9a3412 85%, #7c2d12 100%);
    border-color: #ffe49e;
    box-shadow:
        0 14px 34px rgba(180, 83, 9, 0.55),
        0 0 24px rgba(245, 158, 11, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.48);
    animation: ctaPulseGold 3.2s ease-in-out infinite;
}

.action-tile.primary-download:hover {
    box-shadow:
        0 18px 40px rgba(217, 119, 6, 0.72),
        0 0 32px rgba(251, 191, 36, 0.58),
        inset 0 1px 2px rgba(255, 255, 255, 0.65);
}

/* Button 2: ĐĂNG KÝ TÀI KHOẢN (Celestial Jade & Royal Obsidian Gold) */
.action-tile.primary-register {
    background: linear-gradient(135deg, #065f46 0%, #0f292a 48%, #0f172a 100%);
    border-color: rgba(110, 231, 183, 0.65);
    box-shadow:
        0 14px 34px rgba(4, 47, 46, 0.65),
        0 0 22px rgba(16, 185, 129, 0.25),
        inset 0 1px 1px rgba(167, 243, 208, 0.32);
}

.action-tile.primary-register::after {
    border-color: rgba(110, 231, 183, 0.18);
}

.action-tile.primary-register:hover {
    border-color: #6ee7b7;
    box-shadow:
        0 18px 40px rgba(5, 150, 105, 0.52),
        0 0 30px rgba(52, 211, 153, 0.45),
        inset 0 1px 2px rgba(209, 250, 229, 0.5);
}

@keyframes ctaPulseGold {
    0%, 100% {
        box-shadow:
            0 14px 34px rgba(180, 83, 9, 0.55),
            0 0 20px rgba(245, 158, 11, 0.32),
            inset 0 1px 1px rgba(255, 255, 255, 0.48);
    }
    50% {
        box-shadow:
            0 16px 38px rgba(217, 119, 6, 0.7),
            0 0 32px rgba(251, 191, 36, 0.52),
            inset 0 1px 1px rgba(255, 255, 255, 0.6);
    }
}

.action-tile-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 240, 195, 0.45);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.action-tile:hover .action-tile-icon {
    transform: scale(1.08) rotate(-4deg);
}

.action-tile.primary-download .action-tile-icon {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.26) 0%, rgba(251, 191, 36, 0.2) 100%);
    color: #fffbeb;
    border-color: rgba(255, 255, 255, 0.6);
}

.action-tile.primary-register .action-tile-icon {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.32) 0%, rgba(6, 78, 59, 0.55) 100%);
    color: #a7f3d0;
    border-color: rgba(110, 231, 183, 0.55);
}

.action-tile-body {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.action-tile-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 9px;
    border-radius: 999px;
    margin-bottom: 4px;
    background: rgba(0, 0, 0, 0.32);
    color: #fef3c7;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.action-tile.primary-register .action-tile-badge {
    color: #a7f3d0;
    border-color: rgba(110, 231, 183, 0.32);
}

.action-tile-title {
    font-family: 'Fz Halloween', 'Signika', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
    line-height: 1.2;
    margin-bottom: 3px;
}

.action-tile.primary-register .action-tile-title {
    color: #ffe49e;
}

.action-tile-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.3;
}

.action-tile.primary-register .action-tile-desc {
    color: #cbd5e1;
}

.action-tile-arrow {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.82rem;
    position: relative;
    z-index: 2;
    transition: all 0.28s ease;
}

.action-tile:hover .action-tile-arrow {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.22);
    border-color: #fff;
}

/* ==========================================================================
   3. SECTION HEADINGS & COMMON CONTAINERS
   ========================================================================== */
.section-block {
    padding: 48px 0;
    position: relative;
}

@media (min-width: 992px) {
    .section-block {
        padding: 68px 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-primary);
    font-weight: 700;
    margin-bottom: 6px;
}

.section-title {
    font-family: 'Fz Halloween', 'Signika', sans-serif;
    font-size: clamp(1.5rem, 3.2vw, 2.35rem);
    color: var(--gold-light);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.section-title::before,
.section-title::after {
    content: '';
    height: 2px;
    width: clamp(28px, 6vw, 80px);
    background: linear-gradient(90deg, transparent, var(--gold-primary));
}

.section-title::after {
    background: linear-gradient(90deg, var(--gold-primary), transparent);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.94rem;
    margin-top: 6px;
}

.glass-card {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

/* ==========================================================================
   4. NEWS & BANNER CAROUSEL SECTION (#tintuc)
   ========================================================================== */
.news-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 992px) {
    .news-layout-grid {
        grid-template-columns: 5fr 7fr;
        align-items: stretch;
    }
}

.promo-carousel-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-gold);
    background: #000;
    min-height: 260px;
    display: flex;
}

.promo-carousel-card .carousel,
.promo-carousel-card .carousel-inner,
.promo-carousel-card .carousel-item {
    width: 100%;
    height: 100%;
}

.promo-carousel-card .carousel-item img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    max-height: 420px;
    object-fit: cover;
}

.carousel-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(0deg, rgba(7, 11, 20, 0.95) 0%, rgba(7, 11, 20, 0.5) 70%, transparent 100%);
    color: #fff;
}

.carousel-caption-overlay h4 {
    font-family: 'Fz Halloween', 'Signika', sans-serif;
    color: var(--gold-light);
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.carousel-caption-overlay p {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin: 0;
}

/* News Tabs & List */
.news-box {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .news-box {
        padding: 24px;
    }
}

.news-tabs-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
    scrollbar-width: none;
}

.news-tabs-bar::-webkit-scrollbar {
    display: none;
}

.news-tab-btn {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s ease;
}

.news-tab-btn:hover,
.news-tab-btn.active {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(180, 83, 9, 0.35));
    border-color: var(--gold-primary);
    color: var(--gold-light);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.news-item-row:hover {
    background: rgba(234, 179, 8, 0.08);
    border-color: var(--border-gold);
    transform: translateX(4px);
}

.news-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.news-badge {
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.news-badge.tintuc {
    background: rgba(56, 189, 248, 0.16);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.news-badge.sukien {
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.news-badge.capnhat {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.news-item-title {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item-row:hover .news-item-title {
    color: var(--gold-light);
}

.news-item-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    flex-shrink: 0;
    font-family: monospace;
}

/* ==========================================================================
   5. ACTIVITY SCHEDULE (#lichhoatdong) & LEADERBOARD (#bangxephang)
   ========================================================================== */
.schedule-rank-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 992px) {
    .schedule-rank-grid {
        grid-template-columns: 7fr 5fr;
    }
}

.panel-box {
    padding: 20px;
}

@media (min-width: 768px) {
    .panel-box {
        padding: 26px;
    }
}

.panel-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.panel-box-title {
    font-family: 'Fz Halloween', 'Signika', sans-serif;
    font-size: 1.3rem;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Day Tabs (Thứ 2 -> Chủ Nhật) */
.day-pills-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 14px;
    scrollbar-width: none;
}

.day-pills-bar::-webkit-scrollbar {
    display: none;
}

.day-pill-btn {
    flex: 1 0 auto;
    padding: 8px 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.day-pill-btn.active {
    background: linear-gradient(135deg, #d97706 0%, #92400e 100%);
    border-color: var(--gold-light);
    color: #fff;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.activity-cards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.activity-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--border-subtle);
    transition: all 0.2s ease;
}

.activity-item-card.live-now {
    border-color: var(--jade-primary);
    background: rgba(16, 185, 129, 0.09);
}

.activity-info h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.activity-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.activity-status-tag {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.activity-status-tag.live {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.45);
}

.activity-status-tag.upcoming {
    background: rgba(234, 179, 8, 0.14);
    color: var(--gold-light);
    border: 1px solid var(--border-gold);
}

/* Leaderboard Table */
.rank-table-wrap {
    overflow-x: auto;
}

.rank-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.rank-table th {
    text-align: left;
    padding: 10px 12px;
    color: var(--gold-light);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-gold);
}

.rank-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

.rank-table tr:hover td {
    background: rgba(234, 179, 8, 0.06);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #fde047, #ca8a04);
    color: #1e293b;
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.5);
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
    color: #0f172a;
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #fdba74, #c2410c);
    color: #fff;
}

/* ==========================================================================
   6. 12 CLASSES SHOWCASE SECTION (#gioithieumonphai)
   ========================================================================== */
.classes-section {
    background-image:
        linear-gradient(180deg, var(--bg-deep) 0%, rgba(10, 15, 29, 0.84) 50%, var(--bg-deep) 100%),
        url('../img/header_bg.jpg');
    background-size: cover;
    background-position: center;
}

.faction-switch-wrap {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.faction-btn {
    padding: 10px 26px;
    border-radius: 999px;
    border: 1px solid var(--border-gold);
    background: rgba(15, 23, 42, 0.85);
    color: var(--text-muted);
    font-family: 'Fz Halloween', 'Signika', sans-serif;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.faction-btn.active {
    background: linear-gradient(135deg, #d97706 0%, #78350f 100%);
    color: #fff;
    border-color: var(--gold-light);
    box-shadow: var(--shadow-gold);
}

/* Horizontal Scrollable Class Selector Pills */
.class-selector-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 4px 14px;
    margin-bottom: 20px;
    scrollbar-width: thin;
}

@media (min-width: 768px) {
    .class-selector-strip {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.class-pill {
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-subtle);
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.22s ease;
}

.class-pill:hover {
    border-color: var(--border-gold);
    color: var(--gold-light);
}

.class-pill.active {
    background: rgba(234, 179, 8, 0.2);
    border-color: var(--gold-light);
    color: var(--gold-light);
    box-shadow: 0 0 16px rgba(234, 179, 8, 0.25);
}

/* Class Detail Showcase Card */
.class-showcase-stage {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    padding: 24px;
}

@media (min-width: 992px) {
    .class-showcase-stage {
        grid-template-columns: 5fr 7fr;
        padding: 36px 42px;
    }
}

.class-info-pane {
    order: 2;
}

@media (min-width: 992px) {
    .class-info-pane {
        order: 1;
    }
}

.class-art-pane {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    position: relative;
}

@media (min-width: 992px) {
    .class-art-pane {
        order: 2;
        min-height: 440px;
    }
}

.class-art-pane::before {
    content: '';
    position: absolute;
    width: min(340px, 75vw);
    height: min(340px, 75vw);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.22) 0%, rgba(56, 189, 248, 0.08) 50%, transparent 72%);
    z-index: 0;
}

.class-art-img {
    position: relative;
    z-index: 1;
    max-height: 430px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.8));
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.class-faction-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(234, 179, 8, 0.16);
    color: var(--gold-light);
    border: 1px solid var(--border-gold);
    margin-bottom: 10px;
}

.class-name-heading {
    font-family: 'SVN-Gang of Three', 'Fz Halloween', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--gold-light);
    line-height: 1.1;
    margin-bottom: 12px;
}

.class-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.class-meta-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
}

.class-meta-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.class-meta-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.class-lore-text {
    color: #cbd5e1;
    font-size: 0.94rem;
    margin-bottom: 18px;
    line-height: 1.65;
}

.class-stat-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-bar-label {
    width: 90px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

.stat-bar-track {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b, #fde047);
    transition: width 0.4s ease;
}

/* ==========================================================================
   7. GALLERY / FEATURES SHOWCASE
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-gold);
    aspect-ratio: 16 / 10;
    background: #000;
}

.feature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.feature-card:hover img {
    transform: scale(1.06);
}

.feature-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(7, 11, 20, 0.92) 0%, rgba(7, 11, 20, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
}

.feature-card-overlay h4 {
    font-family: 'Fz Halloween', 'Signika', sans-serif;
    color: var(--gold-light);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.feature-card-overlay p {
    font-size: 0.82rem;
    color: #cbd5e1;
    margin: 0;
}

/* ==========================================================================
   8. FLOATING RIGHT DOCK (DESKTOP) & STICKY BOTTOM BAR (MOBILE)
   ========================================================================== */
.desktop-floating-dock {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-floating-dock {
        position: fixed;
        right: 18px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1010;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 12px 10px;
        border-radius: var(--radius-md);
        background: rgba(11, 17, 30, 0.92);
        border: 1px solid var(--border-gold);
        box-shadow: var(--shadow-card);
        width: 124px;
    }
}

.dock-qr-box {
    background: #fff;
    padding: 6px;
    border-radius: 8px;
    width: 96px;
    height: 96px;
    margin-bottom: 4px;
}

.dock-qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dock-btn {
    width: 100%;
    padding: 8px 6px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.dock-btn:hover {
    background: rgba(234, 179, 8, 0.2);
    border-color: var(--gold-light);
    color: var(--gold-light);
}

.dock-btn.dock-primary {
    background: linear-gradient(135deg, #d97706, #92400e);
    border-color: var(--gold-light);
    color: #fff;
}

/* Mobile Sticky Bottom Bar */
.mobile-bottom-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(7, 11, 20, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-gold);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    z-index: 1025;
}

@media (min-width: 992px) {
    .mobile-bottom-dock {
        display: none;
    }
}

.mobile-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: transparent;
}

.mobile-dock-item i {
    font-size: 1.1rem;
    color: #cbd5e1;
}

.mobile-dock-item.highlight i,
.mobile-dock-item.highlight span {
    color: var(--gold-light);
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
.site-footer {
    background: #04070d;
    border-top: 1px solid var(--border-gold);
    padding: 40px 0 28px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-logo {
    height: 60px;
    margin: 0 auto 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-bottom: 16px;
}

.footer-links a {
    color: #cbd5e1;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--gold-light);
}

/* ==========================================================================
   10. RECHARGE MODAL (SEPAY QR)
   ========================================================================== */
.custom-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.custom-modal-backdrop.show {
    display: flex;
}

.custom-modal-dialog {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: #111a2e;
    border: 1px solid var(--border-gold-bright);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    padding: 24px;
    position: relative;
}

.custom-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.custom-modal-header h3 {
    font-family: 'Fz Halloween', 'Signika', sans-serif;
    font-size: 1.25rem;
    color: var(--gold-light);
    margin: 0;
}

.custom-modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
}

.bank-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9rem;
}

.bank-detail-row:last-child {
    border-bottom: none;
}

/* ==========================================================================
   11. DOWNLOAD PAGE & ARTICLE DETAIL PAGE SPECIFICS
   ========================================================================== */
.page-banner-sub {
    padding-top: calc(var(--header-height) + 36px);
    padding-bottom: 36px;
    background-image:
        linear-gradient(180deg, rgba(7, 11, 20, 0.55) 0%, var(--bg-deep) 100%),
        url('../img/thien_am_tu_bg.jpg');
    background-size: cover;
    background-position: center top;
    text-align: center;
}

.download-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .download-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.download-mirror-card {
    padding: 28px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th,
.spec-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-subtle);
    text-align: left;
}

.spec-table th {
    background: rgba(234, 179, 8, 0.12);
    color: var(--gold-light);
    font-weight: 700;
}

.article-content-body {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #e2e8f0;
}

.article-content-body img {
    border-radius: var(--radius-sm);
    margin: 16px auto;
}

.article-content-body h1,
.article-content-body h2,
.article-content-body h3 {
    color: var(--gold-light);
    margin-top: 24px;
    margin-bottom: 12px;
}

.article-content-body table {
    width: 100%;
    display: block;
    overflow-x: auto;
}
