/* ===== CSS VARIABLES ===== */
        :root {
            /* Gradient Colors */
            --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
            --gradient-warning: linear-gradient(135deg, #F2994A 0%, #F2C94C 100%);
            --gradient-danger: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
            --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
            
            /* Solid Colors */
            --primary: #667eea;
            --primary-light: #8b9ff5;
            --secondary: #f093fb;
            --success: #38ef7d;
            --warning: #F2C94C;
            --danger: #f45c43;
            
            /* Background */
            --bg-dark: #0f0f1a;
            --bg-card: rgba(255, 255, 255, 0.03);
            --bg-card-hover: rgba(255, 255, 255, 0.08);
            
            /* Text */
            --text-white: #ffffff;
            --text-light: rgba(255, 255, 255, 0.9);
            --text-muted: rgba(255, 255, 255, 0.6);
            --text-dark: rgba(255, 255, 255, 0.4);
            
            /* Border */
            --border-light: rgba(255, 255, 255, 0.1);
            --border-glow: rgba(102, 126, 234, 0.5);
            
            /* Effects */
            --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.3);
            --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
            --blur-glass: blur(20px);
            
            /* Sizing */
            --sidebar-width: 300px;
            --header-height: 70px;
            --radius-sm: 10px;
            --radius-md: 16px;
            --radius-lg: 24px;
            --radius-xl: 32px;
            
            /* Fonts */
            --font-display: 'Chakra Petch', sans-serif;
            --font-body: 'Be Vietnam Pro', sans-serif;
            
            /* Transitions */
            --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* ===== RESET & BASE ===== */
        *, *::before, *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            overflow-x: hidden;
            width: 100%;
        }

        body {
            font-family: var(--font-body);
            background: var(--bg-dark);
            color: var(--text-light);
            line-height: 1.6;
            overflow-x: hidden;
            min-height: 100vh;
        }
/* ===== ANTI-OVERFLOW (mobile pinch/zoom fix) ===== */
html, body { max-width: 100%; }
body { width: 100%; }

.app-layout,
.main-content,
.content-section{
    max-width: 100%;
    overflow-x: clip;
}
@supports not (overflow: clip){
    .app-layout,
    .main-content,
    .content-section{ overflow-x: hidden; }
}

/* Media elements should never exceed viewport width */
img, svg, video, canvas { max-width: 100%; height: auto; }


        a {
            text-decoration: none;
            color: inherit;
            transition: var(--transition-fast);
        }

        /* ===== ANIMATED BACKGROUND ===== */
        .bg-animated {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    overflow: clip;
    contain: paint;
    background: var(--bg-dark);
}


        .bg-animated::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(ellipse at 20% 0%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 0%, rgba(240, 147, 251, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 100%, rgba(56, 239, 125, 0.08) 0%, transparent 50%);
        }

        /* Floating Orbs */
        .orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            animation: floatOrb 20s ease-in-out infinite;
        }

        .orb-1 {
            width: 600px;
            height: 600px;
            background: rgba(102, 126, 234, 0.15);
            top: -200px;
            left: -200px;
            animation-delay: 0s;
        }

        .orb-2 {
            width: 500px;
            height: 500px;
            background: rgba(240, 147, 251, 0.12);
            top: 50%;
            right: -150px;
            animation-delay: -5s;
        }

        .orb-3 {
            width: 400px;
            height: 400px;
            background: rgba(56, 239, 125, 0.1);
            bottom: -100px;
            left: 30%;
            animation-delay: -10s;
        }

        @keyframes floatOrb {
            0%, 100% { transform: translate(0, 0) scale(1); }
            25% { transform: translate(50px, -30px) scale(1.05); }
            50% { transform: translate(-30px, 50px) scale(0.95); }
            75% { transform: translate(-50px, -20px) scale(1.02); }
        }

        /* Grid Pattern */
        .grid-pattern {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
            background-size: 60px 60px;
            mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
        }

        /* ===== MAIN LAYOUT ===== */
        .app-layout {
            display: flex;
            min-height: 100vh;
        }

        /* ===== SIDEBAR ===== */
        .sidebar {
            width: var(--sidebar-width);
            height: 100vh;
            position: fixed;
            top: 0;
            left: 0;
            background: var(--bg-card);
            backdrop-filter: var(--blur-glass);
            border-right: 1px solid var(--border-light);
            display: flex;
            flex-direction: column;
            z-index: 100;
            transition: var(--transition-normal);
        }

        .sidebar-header {
            padding: 25px;
            text-align: center;
            border-bottom: 1px solid var(--border-light);
            position: relative;
        }

        .sidebar-close-btn{
            position:absolute;
            top: 14px;
            right: 14px;
            width: 42px;
            height: 42px;
            display:none;
            align-items:center;
            justify-content:center;
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.14);
            border-radius: 14px;
            color: rgba(255,255,255,0.9);
            cursor:pointer;
            transition: var(--transition-fast);
        }
        .sidebar-close-btn:hover{ background: rgba(255,255,255,0.12); transform: translateY(-1px); }

        .sidebar-logo {
            width: 78px;
            height: 78px;
            border-radius: var(--radius-lg);
            object-fit: cover;
            border: 3px solid var(--border-light);
            box-shadow: var(--shadow-glow);
            transition: var(--transition-normal);
        }

        .sidebar-logo:hover {
            transform: scale(1.05);
            border-color: var(--primary);
        }

        .sidebar-brand {
            font-family: var(--font-display);
            font-size: 1.3rem;
            font-weight: 700;
            margin-top: 15px;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Sidebar Actions */
        .sidebar-actions {
            padding: 20px;
        }

        .btn-download-main {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            width: 100%;
            padding: 16px 24px;
            background: var(--gradient-success);
            color: var(--bg-dark);
            border: none;
            border-radius: var(--radius-md);
            font-family: var(--font-display);
            font-size: 1.1rem;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition-normal);
            box-shadow: 0 4px 20px rgba(56, 239, 125, 0.3);
            position: relative;
            overflow: hidden;
        }

        .btn-download-main::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: 0.5s;
        }

        .btn-download-main:hover::before {
            left: 100%;
        }

        .btn-download-main:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(56, 239, 125, 0.4);
        }

        .btn-community {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            padding: 14px 24px;
            background: var(--bg-card);
            color: var(--text-light);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            font-family: var(--font-body);
            font-size: 1rem;
            font-weight: 500;
            margin-top: 12px;
            cursor: pointer;
            transition: var(--transition-normal);
        }

        .btn-community:hover {
            background: var(--bg-card-hover);
            border-color: var(--primary);
            color: var(--primary-light);
        }

        /* Sidebar Menu */
        .sidebar-menu {
            flex: 1;
            overflow-y: auto;
            padding: 10px 0;
        }

        .sidebar-menu::-webkit-scrollbar {
            width: 4px;
        }

        .sidebar-menu::-webkit-scrollbar-track {
            background: transparent;
        }

        .sidebar-menu::-webkit-scrollbar-thumb {
            background: var(--border-light);
            border-radius: 4px;
        }

        .menu-section {
            margin-bottom: 5px;
        }

        .menu-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 20px;
            cursor: pointer;
            transition: var(--transition-fast);
            border-left: 3px solid transparent;
        }

        .menu-header:hover {
            background: var(--bg-card-hover);
            border-left-color: var(--primary);
        }

        .menu-header-left {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .menu-icon {
            width: 38px;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--gradient-primary);
            border-radius: var(--radius-sm);
            font-size: 1rem;
            color: white;
        }

        .menu-section:nth-child(2) .menu-icon { background: var(--gradient-warning); }
        .menu-section:nth-child(3) .menu-icon { background: var(--gradient-secondary); }

        .menu-title {
            font-family: var(--font-display);
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-light);
        }

        .menu-arrow {
            color: var(--text-muted);
            transition: var(--transition-fast);
            font-size: 0.8rem;
        }

        .menu-section.open .menu-arrow {
            transform: rotate(180deg);
            color: var(--primary);
        }

        .menu-items {
            display: none;
            padding: 5px 0;
            background: rgba(0, 0, 0, 0.2);
        }

        .menu-section.open .menu-items {
            display: block;
            animation: slideDown 0.3s ease;
        }

        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .menu-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 20px 12px 72px;
            color: var(--text-muted);
            font-size: 0.95rem;
            transition: var(--transition-fast);
            position: relative;
        }

        .menu-item::before {
            content: '';
            position: absolute;
            left: 45px;
            width: 6px;
            height: 6px;
            background: var(--text-dark);
            border-radius: 50%;
            transition: var(--transition-fast);
        }

        .menu-item:hover {
            color: var(--text-white);
            background: var(--bg-card-hover);
        }

        .menu-item:hover::before {
            background: var(--primary);
            box-shadow: 0 0 10px var(--primary);
        }

        /* ===== MAIN CONTENT ===== */
        .main-content {
            flex: 1;
            margin-left: var(--sidebar-width);
            min-height: 100vh;
        }

        /* ===== MOBILE HEADER ===== */
        .mobile-header {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: var(--header-height);
            background: var(--bg-card);
            backdrop-filter: var(--blur-glass);
            border-bottom: 1px solid var(--border-light);
            z-index: 200;
            padding: 0 20px;
            align-items: center;
            justify-content: space-between;
        }

        .mobile-menu-btn {
            width: 45px;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-card-hover);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-sm);
            color: var(--text-light);
            font-size: 1.3rem;
            cursor: pointer;
            transition: var(--transition-fast);
        }

        .mobile-menu-btn:hover {
            background: var(--primary);
            border-color: var(--primary);
        }

        .mobile-logo {
            height: 45px;
            border-radius: var(--radius-sm);
        }

        .mobile-actions {
            display: flex;
            gap: 10px;
        }

        .mobile-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}
.mobile-btn i{ font-size: 1rem; }
.mobile-btn-label{ display: inline; }


        /* Mobile Overlay */
        .mobile-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            z-index: 99;
            opacity: 0;
            transition: var(--transition-normal);
        }

        .mobile-overlay.active {
            display: block;
            opacity: 1;
        }

        /* ===== CONTENT SECTIONS ===== */
        .content-section {
            padding: 30px;
        }

        /* Hero Section */
        .hero-card {
            background: var(--bg-card);
            backdrop-filter: var(--blur-glass);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-xl);
            padding: 30px;
            margin-bottom: 30px;
            position: relative;
            overflow: hidden;
        }

        .hero-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-primary);
        }

        .hero-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 20px;
        }

        .hero-info {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .hero-status {
            width: 14px;
            height: 14px;
            background: var(--success);
            border-radius: 50%;
            box-shadow: 0 0 20px var(--success);
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.7; transform: scale(1.1); }
        }

        .hero-text h1 {
            font-family: var(--font-display);
            font-size: 2rem;
            font-weight: 700;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-text p {
            color: var(--text-muted);
            font-size: 1rem;
            margin-top: 5px;
        }

        .hero-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 14px 28px;
            background: var(--gradient-success);
            color: var(--bg-dark);
            border: none;
            border-radius: var(--radius-md);
            font-family: var(--font-display);
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition-normal);
        }

        .hero-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 30px rgba(56, 239, 125, 0.4);
        }

        /* Banner Slider */
        .banner-container {
            margin-top: 25px;
            position: relative;
            border-radius: var(--radius-lg);
            overflow: hidden;
        }

        .banner-slide {
            display: none;
            animation: fadeIn 0.5s ease;
        }

        .banner-slide.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .banner-content {
            height: 280px;
            background: var(--gradient-primary);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 30px;
            position: relative;
            overflow: hidden;
        }

        .banner-content::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: repeating-linear-gradient(
                45deg,
                transparent,
                transparent 30px,
                rgba(255,255,255,0.03) 30px,
                rgba(255,255,255,0.03) 60px
            );
            animation: moveStripes 20s linear infinite;
        }

        @keyframes moveStripes {
            0% { transform: translate(0, 0); }
            100% { transform: translate(60px, 60px); }
        }

        .banner-content.style-2 {
            background: var(--gradient-warning);
        }

        .banner-content.style-3 {
            background: var(--gradient-secondary);
        }

        .banner-icon {
            font-size: 4rem;
            margin-bottom: 15px;
            position: relative;
            z-index: 1;
            animation: bounce 2s ease infinite;
        }

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

        .banner-title {
            font-family: var(--font-display);
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 10px;
            position: relative;
            z-index: 1;
        }

        .banner-desc {
            font-size: 1.1rem;
            opacity: 0.9;
            position: relative;
            z-index: 1;
        }

        /* Banner Navigation */
        .banner-nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 50px;
            height: 50px;
            background: var(--bg-card);
            backdrop-filter: var(--blur-glass);
            border: 1px solid var(--border-light);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-light);
            font-size: 1.2rem;
            cursor: pointer;
            transition: var(--transition-normal);
            z-index: 10;
        }

        .banner-nav-btn:hover {
            background: var(--primary);
            border-color: var(--primary);
            transform: translateY(-50%) scale(1.1);
        }

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

        .banner-dots {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 10;
        }

        .banner-dot {
            width: 12px;
            height: 12px;
            background: rgba(255, 255, 255, 0.4);
            border-radius: 50%;
            cursor: pointer;
            transition: var(--transition-fast);
        }

        .banner-dot.active {
            background: white;
            transform: scale(1.2);
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
        }

        /* ===== NEWS SECTION ===== */
        .section-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 25px;
        }

        .section-icon {
            width: 50px;
            height: 50px;
            background: var(--gradient-primary);
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            color: white;
        }

        .section-title {
            font-family: var(--font-display);
            font-size: 1.5rem;
            font-weight: 700;
        }

        .section-subtitle {
            color: var(--text-muted);
            font-size: 0.95rem;
        }

        /* ===== DOWNLOAD MODAL ===== */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal-content {
            background: var(--bg-card);
            backdrop-filter: var(--blur-glass);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-xl);
            width: 100%;
            max-width: 550px;
            max-height: 85vh;
            overflow: hidden;
            animation: modalPop 0.3s ease;
        }

        @keyframes modalPop {
            from { transform: scale(0.9); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }

        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px 25px;
            background: var(--gradient-success);
            color: var(--bg-dark);
        }

        .modal-header h3 {
            font-family: var(--font-display);
            font-size: 1.2rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .modal-close {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.2);
            border: none;
            border-radius: 50%;
            color: var(--bg-dark);
            font-size: 1.2rem;
            cursor: pointer;
            transition: var(--transition-fast);
        }

        .modal-close:hover {
            background: rgba(0, 0, 0, 0.3);
            transform: rotate(90deg);
        }

        .modal-body {
            padding: 20px;
            max-height: 60vh;
            overflow-y: auto;
        }

        .modal-body::-webkit-scrollbar {
            width: 6px;
        }

        .modal-body::-webkit-scrollbar-thumb {
            background: var(--border-light);
            border-radius: 3px;
        }

        /* Download Sections */
        .dl-section {
            margin-bottom: 15px;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            overflow: hidden;
        }

        .dl-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px 18px;
            background: var(--bg-card-hover);
            cursor: pointer;
            transition: var(--transition-fast);
        }

        .dl-header:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .dl-header-left {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .dl-icon {
            width: 42px;
            height: 42px;
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: white;
        }

        .dl-icon.java { background: var(--gradient-success); }
        .dl-icon.android { background: var(--gradient-danger); }
        .dl-icon.ios { background: var(--gradient-primary); }
        .dl-icon.pc { background: var(--gradient-dark); border: 1px solid var(--border-light); }

        .dl-title {
            font-family: var(--font-display);
            font-weight: 600;
            font-size: 1rem;
        }

        .dl-arrow {
            color: var(--text-muted);
            transition: var(--transition-fast);
        }

        .dl-section.open .dl-arrow {
            transform: rotate(180deg);
            color: var(--primary);
        }

        .dl-items {
            display: none;
            padding: 10px 15px;
        }

        .dl-section.open .dl-items {
            display: block;
        }

        .dl-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            margin-bottom: 8px;
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-sm);
            color: var(--text-light);
            font-size: 0.9rem;
            transition: var(--transition-fast);
        }

        .dl-item:hover {
            background: var(--bg-card-hover);
            border-color: var(--primary);
            transform: translateX(5px);
        }

        .dl-item:last-child {
            margin-bottom: 0;
        }

        .dl-item i {
            color: var(--success);
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 1024px) {
            .sidebar {
                transform: translateX(-112%);
                height: 100dvh;
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
            }

            .sidebar.open {
                transform: translateX(0);
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
            }

            .main-content {
                margin-left: 0;
            }

            .mobile-header {
                display: flex;
            }

            /* Mobile header: avoid visual artifacts + prevent width overflow */
            .mobile-header{
                max-width: 100%;
                overflow: hidden;
                background: rgba(15,15,26,0.92);
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
            }
            .mobile-actions{ gap: 8px; min-width: 0; }
            .mobile-btn{ white-space: nowrap; padding: 9px 14px; font-size: 0.86rem; }

            /* When the side menu (tab) is open, hide the top bar and use the close button inside the menu */
            body.nav-open .mobile-header{ display: none !important; }
            body.nav-open{ overflow: hidden; }
            .sidebar-close-btn{ display:flex; }

            /* Tablet/Mobile menu compact: reduce logo area ~35% */
            .sidebar-header{ padding: 18px 18px 14px; }
            .sidebar-logo{ width: 78px; height: 78px; }
            .sidebar-brand{ margin-top: 10px; font-size: 1.05rem; }
            .sidebar-actions{ padding: 16px 18px 18px; }

            /* Remove redundant register button inside the menu (Register is available in content/header) */
            .sidebar-actions .btn-register-main{ display: none; }

            .content-section {
                padding: calc(var(--header-height) + 16px) 16px 16px;
            }
        }

        @media (max-width: 768px) {
            .content-section {
                padding: calc(var(--header-height) + 15px) 15px 15px;
            }

            .hero-top {
                flex-direction: column;
                align-items: flex-start;
            }

            .hero-btn {
                width: 100%;
                justify-content: center;
            }

            .hero-text h1 {
                font-size: 1.6rem;
            }

            .banner-content {
                height: 220px;
            }

            .banner-title {
                font-size: 1.4rem;
            }

            .banner-icon {
                font-size: 3rem;
            }

            .banner-nav-btn {
                width: 40px;
                height: 40px;
            }
        }

        @media (max-width: 480px) {
            :root{ --header-height: 62px; }

            .hero-card {
                padding: 20px;
            }

            .banner-content {
                height: 200px;
                padding: 20px;
            }

            .mobile-btn {
                padding: 8px 14px;
                font-size: 0.85rem;
            }

            .mobile-header{ padding: 0 14px; }
            .mobile-logo{ height: 38px; }
        }


/* ====== EXTRA: unify legacy pages (bootstrap forms) ====== */
.page-container{
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: clamp(12px, 3.5vw, 24px);
  /* Hard stop for any element that tries to push the page wider on mobile */
  overflow-x: clip;
}
@supports not (overflow: clip){
  .page-container{ overflow-x: hidden; }
}

/* Breadcrumbs (Bootstrap) */
.breadcrumb{
  background: transparent !important;
  padding: 0 !important;
  margin: 0 0 14px 0 !important;
}
.breadcrumb .breadcrumb-item a{
  color: rgba(255,255,255,.78);
  text-decoration: none;
}
.breadcrumb .breadcrumb-item a:hover{ color: #fff; }
.breadcrumb .breadcrumb-item.active{
  color: rgba(255,255,255,.65) !important;
}


/* Breadcrumbs (strong override) */
nav[aria-label="breadcrumb"]{ margin: 4px 0 14px; }
nav[aria-label="breadcrumb"] .breadcrumb,
ol.breadcrumb{
  background: transparent !important;
  background-color: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
nav[aria-label="breadcrumb"] .breadcrumb-item,
ol.breadcrumb .breadcrumb-item{
  font-size: .95rem;
}
nav[aria-label="breadcrumb"] .breadcrumb-item + .breadcrumb-item::before,
ol.breadcrumb .breadcrumb-item + .breadcrumb-item::before{
  color: rgba(255,255,255,.45) !important;
}
@media (max-width: 480px){
  nav[aria-label="breadcrumb"] .breadcrumb-item{ font-size: .9rem; }
}

/* Generic glass card for older pages */
.login-glass-card,
.reg-glass-card,
.user-glass-card,
.glass-card{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(255,255,255,0.92);
  overflow: hidden;
  max-width: 720px;
  width: 100%;
}
.login-title span,
.reg-title span,
.user-title span{
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .2px;
}

/* Inputs (Bootstrap) */
.form-control{
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  color: rgba(255,255,255,0.92) !important;
}
.form-control:focus{
  box-shadow: 0 0 0 .2rem rgba(0,200,255,0.15) !important;
  border-color: rgba(0,200,255,0.35) !important;
}
.form-control::placeholder{ color: rgba(255,255,255,0.55) !important; }

/* Alerts */
.alert{ border-radius: 14px; border: 1px solid rgba(255,255,255,0.10); }
.alert a{ color: #fff; text-decoration: underline; }

/* Hide old background effects to match homepage */
.bokeh,
canvas.sakura,
.bg-anime-blur{
  display: none !important;
}


/* ====== Auth / CTA buttons (homepage + sidebar) ====== */
.hero-actions{
  display:flex;
  gap: 12px;
  align-items:center;
}
@media (max-width: 640px){
  .hero-actions{ gap: 10px; }
  .hero-actions .hero-btn{ padding: 12px 14px; font-size: .95rem; }
}

.hero-btn-secondary{
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
}
.hero-btn-secondary:hover{
  background: rgba(255,255,255,0.16);
  transform: translateY(-2px);
}

.btn-register-main,
.btn-login-main,
.btn-account-main{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 800;
  letter-spacing: .6px;
  text-decoration:none;
  border: 1px solid rgba(255,255,255,0.14);
  transition: transform .2s ease, filter .2s ease, background .2s ease;
}

.btn-register-main{
  background: linear-gradient(135deg, #ff5bbd, #8b5cf6);
  color: #fff;
}
.btn-register-main:hover{ filter: brightness(1.08); transform: translateY(-2px); color:#fff; }

.btn-login-main{
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
}
.btn-login-main:hover{ background: rgba(255,255,255,0.12); transform: translateY(-2px); color:#fff; }

.btn-account-main{
  background: linear-gradient(135deg, #22c55e, #06b6d4);
  color:#041b12;
  border-color: rgba(255,255,255,0.10);
}
.btn-account-main:hover{ filter: brightness(1.05); transform: translateY(-2px); color:#041b12; }

.btn-logout{
  display:block;
  width:100%;
  margin-top: 6px;
  text-align:center;
  color: rgba(255,255,255,0.68);
  text-decoration:none;
  font-weight: 600;
  font-size: .92rem;
}
.btn-logout:hover{ color:#fff; text-decoration: underline; }

.mobile-btn-accent{
  background: linear-gradient(135deg, #ff5bbd, #8b5cf6);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff !important;
}

/* ====== EXTRA v2: accessibility + footer + unified legacy wrappers ====== */
.skip-link{
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 9999;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* Hidden by default (prevents showing a "mảng" trên mobile) */
  transform: translateY(-180%);
  opacity: 0;
  pointer-events: none;
  transition: transform .18s ease, opacity .18s ease;
}
.skip-link:focus,
.skip-link:focus-visible{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  outline: none;
  box-shadow: 0 0 0 3px rgba(102,126,234,.35);
}


@media (max-width: 1024px){
  /* Skip-link is for keyboard users (desktop). Hide on mobile to avoid visual artifacts */
  .skip-link{ display: none !important; }
}

.site-disclaimer{
  text-align:center;
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  padding: 10px 0 18px;
}

/* Remove page-specific anime background to match homepage */
.bg-main-anime{
  background: transparent !important;
  min-height: auto !important;
}

/* Some pages use bg-light bars for breadcrumbs — convert to glass */
.bg-light{
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Headings */
.section-heading{
  display:flex;
  align-items:flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.section-heading .icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
}
.section-heading h1{
  margin:0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: .2px;
}
.section-heading p{
  margin: 3px 0 0 0;
  color: rgba(255,255,255,0.65);
  font-size: 0.98rem;
}

@media (max-width: 520px){
  .section-heading{ gap: 12px; }
  .section-heading .icon{ width: 40px; height: 40px; border-radius: 12px; }
  .section-heading h1{ font-size: 1.35rem; }
  .section-heading p{ font-size: 0.94rem; }
}

/* Form card layout */
.form-card{
  max-width: 520px;
  margin: 0 auto;
}
.form-header{
  padding: 18px 18px 0 18px;
}
.form-header .muted{
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
}
.form-body{
  padding: 18px;
}
.form-help{
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
}
.form-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
  justify-content:flex-start;
  margin-top: 14px;
}
.form-actions > *{
  flex: 1 1 160px;
  min-width: 0;
}
@media (max-width: 420px){
  .form-actions{ flex-direction: column; }
  .form-actions > *{ width: 100%; flex-basis: 100%; }
}


/* reCAPTCHA responsive (avoid overflow on small screens) */
.g-recaptcha{
  max-width: 100%;
  overflow: hidden;
}
.g-recaptcha > div{ margin: 0 auto; }
@media (max-width: 360px){
  .g-recaptcha{ transform: scale(0.92); transform-origin: center; }
}
@media (max-width: 330px){
  .g-recaptcha{ transform: scale(0.86); transform-origin: center; }
}
.btn-action{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: var(--gradient-success);
  color: var(--bg-dark);
  font-weight: 800;
  letter-spacing: .4px;
  cursor:pointer;
}
.btn-action:hover{ transform: translateY(-2px); box-shadow: 0 10px 26px rgba(56,239,125,0.25); }
.btn-action-secondary{
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
}
.btn-action-secondary:hover{ background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-action-warning{
  background: var(--gradient-warning);
  color: #1a1602;
}
.btn-action-info{
  background: var(--gradient-primary);
  color: #fff;
}

/* Account quick actions */
.quick-actions{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
@media (max-width: 520px){
  .quick-actions{ grid-template-columns: 1fr; }
}
.quick-actions a, .quick-actions button{
  width:100%;
}

/* Webshop */
.webshop-toolbar{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
  justify-content: space-between;
  margin: 12px 0 18px;
}
.webshop-toolbar .toolbar-left{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
}
.webshop-toolbar .toolbar-right{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
}
.product-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
@media (max-width: 1100px){
  .product-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 820px){
  .product-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px){
  .product-grid{ grid-template-columns: 1fr; }
}

.product-card{
  position:relative;
  overflow:hidden;
}
.product-badges{
  position:absolute;
  top: 12px;
  left: 12px;
  display:flex;
  gap: 8px;
  z-index: 2;
}
.badge-pill{
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: .4px;
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
}
.badge-sale{ background: rgba(252,54,119,0.22); color:#fff; }
.badge-hot{ background: rgba(242,201,76,0.22); color:#fff; }

.product-media{
  padding: 14px 14px 0 14px;
}
.product-image{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}
.product-body{
  padding: 14px;
}
.product-title{
  font-weight: 800;
  letter-spacing: .2px;
  margin: 0 0 6px 0;
}
.product-meta{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 10px;
}
.product-price{
  font-weight: 900;
}
.product-price .old{
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  text-decoration: line-through;
  margin-left: 8px;
}
.product-actions{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content: space-between;
}
.product-actions form{ margin: 0; }
.product-actions .btn-buy{
  width: 100%;
  justify-content:center;
}

/* ===== Webshop legacy-style cards (match old webshop look) ===== */
.page-webshop .product-card.glass-card{
  background: rgba(22,24,32,0.78);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.page-webshop .product-media{ padding: 14px 14px 0 14px; }
.page-webshop .product-image{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
}
.page-webshop .product-body{ padding: 12px 14px 14px 14px; }
.page-webshop .product-title{
  font-size: 1.02rem;
  line-height: 1.25;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.95);
}
.page-webshop .product-price{ font-size: 1.05rem; color: rgba(255,255,255,0.95); }
.page-webshop .product-price .old{ color: rgba(255,255,255,0.55); }
.page-webshop .product-body a{ color: rgba(255,255,255,0.70); text-decoration: underline; }
.page-webshop .product-body a:hover{ color: rgba(255,255,255,0.92); }

.page-webshop .btn-view-images{
  border-radius: 12px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.9);
}
.page-webshop .btn-view-images:hover{ background: rgba(0,0,0,0.50); }

.page-webshop .product-actions{ margin-top: 10px; }
.page-webshop .product-actions .btn-buy{
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 900;
}
.page-webshop .product-actions .btn-buy i{ opacity: .95; }

.page-webshop .badge-pill{
  border-radius: 999px;
  padding: 6px 10px;
}



/* ===== Mobile header overflow fix ===== */
@media (max-width: 520px){
  .mobile-header{ padding: 0 12px; height: 64px; }
  .mobile-menu-btn{ width: 42px; height: 42px; }
  .mobile-logo{ height: 36px; }
  .mobile-actions{ gap: 8px; }
  .mobile-btn{ padding: 8px 12px; font-size: 0.82rem; white-space: nowrap; }
  /* prevent iOS/Safari focus zoom on form inputs */
  input, select, textarea{ font-size: 16px; }
}
@media (max-width: 360px){
  .mobile-btn{ padding: 7px 10px; font-size: 0.78rem; }
  /* Keep the button but hide text to prevent overflow */
  .mobile-btn-label{ display:none; }
  .mobile-btn{ gap: 0; }
  .mobile-btn i{ font-size: 1.05rem; }
}


/* Prevent horizontal overflow from embeds */
iframe, table{ max-width: 100%; }
img{ max-width: 100%; height: auto; }


/* ========= Extra UI (payments/history) ========= */
.nso-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
@media (max-width: 640px){
  .nso-tabs{
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    max-width: 100%;
  }
  .nso-tabs::-webkit-scrollbar{ height: 6px; }
  .nso-tabs::-webkit-scrollbar-thumb{ background: rgba(255,255,255,0.18); border-radius: 999px; }
}
.nso-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration:none !important;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
}
.nso-chip:hover{
  background: rgba(255,255,255,0.10);
  color: #fff;
}
.nso-chip.active{
  border-color: rgba(238,143,194,0.35);
  background: linear-gradient(90deg, rgba(238,143,194,0.34) 0%, rgba(18,194,233,0.26) 100%);
}

.table-nowrap td, .table-nowrap th{ white-space: nowrap; }

.table.nso-table{
  color: rgba(255,255,255,0.92);
  margin:0;
}
.table.nso-table thead th{
  border-top: none;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.90);
  font-weight: 900;
  background: rgba(255,255,255,0.04);
}
.table.nso-table td{
  border-top: 1px solid rgba(255,255,255,0.10);
  vertical-align: middle;
}
.table.nso-table tbody tr:hover{
  background: rgba(255,255,255,0.04);
}

/* VietQR blocks */
.qr-card, .info-card{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 16px;
}
.qr-title, .info-title{
  font-weight: 900;
  font-size: 1.03rem;
  margin-bottom: 12px;
  display:flex;
  align-items:center;
  gap:10px;
}
.qr-wrap{
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  padding: 10px;
  background: rgba(0,0,0,0.12);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
}
.vietqr-img{
  display:block;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  background: #fff;
  padding: 8px;
}

.info-field{ margin-bottom: 12px; }
.info-label{
  color: rgba(255,255,255,0.65);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.info-value{ color: rgba(255,255,255,0.92); }


/* Webshop image modal */
.btn-view-images{
  margin-top:10px;
  width:100%;
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  cursor:pointer;
}
.btn-view-images:hover{ background: rgba(255,255,255,0.10); }

.ws-modal{ position:fixed; inset:0; display:none; z-index:9999; }
.ws-modal.open{ display:block; }
.ws-modal-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,0.62); }
.ws-modal-dialog{
  position:relative;
  width:min(92vw, 860px);
  margin: 8vh auto 0;
  background: rgba(20,20,34,0.96);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  overflow:hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.ws-modal-close{
  position:absolute; top:10px; right:12px;
  width:42px; height:42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  font-size: 26px;
  line-height: 1;
  cursor:pointer;
}
.ws-modal-close:hover{ background: rgba(255,255,255,0.10); }
.ws-modal-header{
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.ws-modal-title{ font-weight:700; }
.ws-modal-counter{ color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.ws-modal-body{
  position:relative;
  padding: 14px 14px 8px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.ws-modal-img{
  max-width: 100%;
  max-height: 62vh;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
}
.ws-modal-nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:44px; height:44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 20px;
}
.ws-modal-nav.prev{ left: 10px; }
.ws-modal-nav.next{ right: 10px; }
.ws-modal-nav:hover{ background: rgba(255,255,255,0.12); }

.ws-modal-thumbs{
  padding: 10px 14px 14px;
  display:flex;
  gap:10px;
  overflow:auto;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.ws-thumb{
  flex: 0 0 auto;
  width: 70px; height: 70px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  padding:0;
  cursor:pointer;
  overflow:hidden;
}
.ws-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.ws-thumb.active{ outline: 2px solid rgba(95,255,200,0.55); border-color: rgba(95,255,200,0.55); }

body.modal-open{ overflow:hidden; }
@media (max-width: 520px){
  .ws-modal-dialog{ margin-top: 5vh; width: 94vw; }
  .ws-modal-img{ max-height: 56vh; }
  .ws-thumb{ width: 58px; height:58px; }
}


/* =========================
   WEBSHOP: use full width (fix empty right space)
   ========================= */
.page-webshop .page-container{
  max-width: none !important;
  width: 100% !important;
  margin: 0 auto !important;
}

/* If any legacy .container is constraining width */
.page-webshop .container,
.page-webshop .container-fluid{
  max-width: none !important;
  width: 100% !important;
}

.page-webshop .content-section{
  /* keep padding but allow full width */
  width: 100% !important;
}

/* Ensure flex children can shrink/grow correctly */
.app-layout,
.main-content{
  min-width: 0;
}

/* Product grid should fill available space */
.page-webshop .webshop-grid,
.page-webshop .shop-grid,
.page-webshop .product-grid{
  width: 100% !important;
  max-width: none !important;
}


/* =========================
   BXH (Leaderboard)
   ========================= */
.bxh-card{ padding: 18px; }
.bxh-card-head{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.bxh-card-title{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 900;
  font-size: 1.08rem;
  color: rgba(255,255,255,0.94);
}
.bxh-card-sub{
  color: rgba(255,255,255,0.62);
  font-weight: 700;
  font-size: 0.92rem;
}
.bxh-table-wrap{ border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,0.10); }
.bxh-table .bxh-name{ font-weight: 900; color: rgba(255,255,255,0.92); }
.bxh-table .bxh-value{ font-weight: 900; color: rgba(18,194,233,0.95); }
.rank-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 58px;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 900;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
}
.rank-badge.rank-1{
  background: linear-gradient(90deg, rgba(255,203,71,0.32) 0%, rgba(255,126,95,0.22) 100%);
  border-color: rgba(255,203,71,0.40);
}
.rank-badge.rank-2{
  background: linear-gradient(90deg, rgba(200,200,200,0.28) 0%, rgba(160,160,160,0.18) 100%);
  border-color: rgba(220,220,220,0.35);
}
.rank-badge.rank-3{
  background: linear-gradient(90deg, rgba(205,127,50,0.28) 0%, rgba(255,126,95,0.18) 100%);
  border-color: rgba(205,127,50,0.38);
}
.bxh-row.rank-1 td{ background: rgba(255,203,71,0.05); }
.bxh-row.rank-2 td{ background: rgba(220,220,220,0.04); }
.bxh-row.rank-3 td{ background: rgba(205,127,50,0.045); }
.bxh-empty{
  padding: 16px;
  color: rgba(255,255,255,0.70);
  text-align:center;
  font-weight: 800;
}

@media (max-width: 480px){
  .bxh-card{ padding: 14px; }
  .bxh-card-head{ flex-direction: column; }
  .rank-badge{ min-width: 52px; padding: 6px 9px; }
}


/* =========================
   Giftcode page
   ========================= */
.giftcode-card{ padding: 0; overflow:hidden; }
.giftcode-card-head{
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.giftcode-title{
  display:flex; align-items:center; gap:10px;
  font-weight:800;
}
.giftcode-title i{ opacity:.9; }
.giftcode-sub{ margin-top:6px; opacity:.75; font-size:.92rem; }
.giftcode-table-wrap{ padding: 10px 14px 14px; }
.giftcode-code{
  display:inline-flex;
  align-items:center;
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 900;
  letter-spacing: .6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  white-space: nowrap;
}
.giftcode-hint{ margin-top:8px; opacity:.75; font-size:.9rem; }
.gift-item-list{ display:flex; flex-direction:column; gap:10px; }
.gift-item{
  display:flex; align-items:flex-start; gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}
.gift-item-icon{
  width: 34px; height: 34px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.10);
}
.gift-item-main{ min-width:0; flex:1; }
.gift-item-name{
  font-weight: 800;
  color: rgba(255,255,255,.95);
  line-height: 1.2;
}
.gift-item-meta{ margin-top:6px; display:flex; flex-wrap:wrap; gap:8px; }
.gift-pill{
  display:inline-flex; align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size:.9rem;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
}
.gift-pill.pill-gold{ color: #ffd36a; }
.gift-pill.pill-xu{ color: #36fca8; }
.gift-pill.pill-yen{ color: #7db6ff; }
.gift-empty{
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px dashed rgba(255,255,255,.14);
  opacity:.9;
}
.giftcode-note{
  display:flex; gap:10px; align-items:flex-start;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  opacity:.9;
}
.giftcode-note i{ margin-top:2px; opacity:.85; }
@media (max-width: 520px){
  .giftcode-table-wrap{ padding: 8px 10px 12px; }
  .giftcode-card-head{ padding: 16px 14px 10px; }
  .giftcode-code{ width:100%; justify-content:center; }
}
