/**
 * =========================================================================
 * CFLEO CROSSFIRE V3 - AUTHENTIC TACTICAL CLIENT HUD DESIGN SYSTEM
 * Authoritative CrossFire V3 client HUD styling for ALL pages:
 * Web Shop, Lucky Wheel, Leaderboard, Attendance, Giftcode, Download,
 * Profile, Wall of Shame, Support, Rules, Game Info.
 * =========================================================================
 */

@font-face {
    font-family: haChise;
    src: url('/assets/HermanoAltoChisel.zvOit6g6.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: haChiseNum;
    src: url('/assets/HermanoAltoChisel.zvOit6g6.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: ReeJiBigRuiXain;
    src: url('/assets/sanFranciscoDisplay.I4SP4Dqp.ttf') format('truetype');
    font-display: swap;
}

:root {
    --font-family-haChise: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    --font-family-ReeJiBigRuiXain: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    --font-family-haChiseNum: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    --font-family-system: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    --cf-orange: #ff9d2b;
    --cf-orange-hover: #ffa726;
    --cf-orange-glow: rgba(255, 157, 43, 0.5);
    --cf-gold: #ffd54f;
    --cf-dark-base: #0b0c0e;
    --cf-dark-surface: rgba(14, 18, 26, 0.94);
    --cf-dark-card: rgba(16, 22, 32, 0.92);
    --cf-border: rgba(255, 255, 255, 0.12);
    --cf-border-hover: rgba(255, 157, 43, 0.5);
    --cf-radius: 4px;
    --cf-content-max-width: 1280px;
    --cf-content-gutter: 20px;
}

/* ── 1. GLOBAL BASE & BACKGROUND (100% Identical to Home) ── */
html,
body.cf-page {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif !important;
    background-color: var(--cf-dark-base) !important;
    color: #eef3f4 !important;
    min-height: 100vh !important;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.cf-page-attendance {
    background-image: none !important;
}

/* Authentic CrossFire Atmospheric Background (100% Identical on Home and All Subpages) */
.page-frame-bg {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden !important;
    z-index: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
    background-color: #0b0c0e !important;
}

/* Authentic Top Ambient Light Cone from Home */
.page-frame-bg:before {
    content: "" !important;
    width: 100% !important;
    aspect-ratio: 1600/900 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: url('/img/page-light-bg.JY3GXiSw.png') no-repeat 50% 50% !important;
    background-size: contain !important;
    z-index: 8 !important;
    pointer-events: none !important;
    opacity: 0.9 !important;
}

.page-frame-bg-blur {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
}

.page-frame-bg-blur img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    opacity: 0.45 !important;
}

.page-frame-bg-main {
    width: 100vw !important;
    max-width: 1920px !important;
    aspect-ratio: 1600/900 !important;
    position: relative !important;
    z-index: 5 !important;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%) !important;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%) !important;
}

.page-frame-bg-main img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: contain !important;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%) !important;
    mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%) !important;
}

/* Smooth Page Transitions (No flickering or jumps when navigating) */
@keyframes cfPageFadeIn {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-shell,
.cf-page-home .page-main-container,
main#mainContent,
.router-view-wrapper {
    animation: cfPageFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

/* ── 2. HEADER BAR (100% Synchronized Dimensions & Coordinates with Home) ── */
header.site-header,
header.site-header.is-scrolled,
header.site-header--v3,
.site-header {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 60 !important;
    box-sizing: border-box !important;
}

header.site-header:before,
header.site-header:after {
    display: none !important;
    content: none !important;
}

.page-row-nav,
header.site-header .page-row-nav {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    z-index: 20 !important;
    background: transparent !important;
    border: none !important;
}

.page-navigation,
header.site-header .page-navigation {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    z-index: 20 !important;
    overflow: visible !important;
}

/* Centered Top Hairline with Chamfered Step Notches */
.page-navigation:before,
header.site-header .page-navigation:before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 7px !important;
    width: 820px !important;
    max-width: 95vw !important;
    height: 10px !important;
    background-image: url('/img/cf-nav-top-line.png') !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    pointer-events: none !important;
    z-index: 1 !important;
    opacity: 0.9 !important;
    display: block !important;
}

.navigation-menu,
header.site-header .navigation-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    height: 54px !important;
    position: relative !important;
    z-index: 2 !important;
}

.site-header-brand {
    position: absolute !important;
    left: clamp(14px, 2vw, 28px) !important;
    top: 50% !important;
    z-index: 24 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #f5f4f1 !important;
    text-decoration: none !important;
    transform: translateY(-50%) !important;
}

.site-header-brand-logo {
    display: block !important;
    width: 118px !important;
    height: auto !important;
    max-height: 34px !important;
    object-fit: contain !important;
    flex: 0 0 auto !important;
    filter: drop-shadow(0 1px 5px rgba(0, 0, 0, .55)) !important;
}

.site-header-brand > span:last-child {
    display: grid !important;
    gap: 2px !important;
}

.site-header-brand strong {
    color: #f7f5f0 !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    letter-spacing: 1.8px !important;
    line-height: 1 !important;
}

.site-header-brand small {
    color: rgba(239, 241, 243, .5) !important;
    font-size: 6px !important;
    font-weight: 800 !important;
    letter-spacing: 1.15px !important;
}

.site-mobile-nav-toggle {
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    border: 1px solid rgba(255, 130, 72, .4) !important;
    border-radius: 4px !important;
    background: rgba(12, 17, 23, .86) !important;
    color: #ff8248 !important;
    font-size: 17px !important;
    cursor: pointer !important;
}

.navigation-menu .menu-item,
header.site-header .navigation-menu .menu-item {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 90px !important;
    height: 54px !important;
    padding: 0 14px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
    box-sizing: border-box !important;
}

.navigation-menu .menu-item-text,
header.site-header .navigation-menu .menu-item-text {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    color: rgba(255, 255, 255, 0.75) !important;
    transition: color 0.15s ease !important;
    position: relative !important;
    z-index: 3 !important;
}

.navigation-menu .menu-item:hover .menu-item-text,
header.site-header .navigation-menu .menu-item:hover .menu-item-text {
    color: #ffffff !important;
}

.navigation-menu .menu-item.cur .menu-item-text,
header.site-header .navigation-menu .menu-item.cur .menu-item-text {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 157, 43, 0.6) !important;
}

/* Active Highlight with Authentic CF V3 Notch */
.navigation-menu .menu-item.cur:before,
header.site-header .navigation-menu .menu-item.cur:before {
    content: "" !important;
    position: absolute !important;
    top: 0px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 128px !important;
    height: 87px !important;
    background-image: url('/img/cfhd-navigation-menu-item-cur.Bft4LNZt.png') !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
    pointer-events: none !important;
    z-index: 2 !important;
    opacity: 1 !important;
}

/* Tactical Dropdown Menu for "THÊM" - Translucent Glass HUD */
.menu-item-more,
header.site-header .menu-item-more {
    position: relative !important;
    cursor: pointer !important;
}

.cf-dropdown-menu,
header.site-header .cf-dropdown-menu {
    display: none;
    position: absolute !important;
    top: 54px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    min-width: 220px !important;
    background: rgba(10, 14, 22, 0.65) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-top: 1px solid rgba(255, 157, 43, 0.5) !important;
    border-radius: 4px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6) !important;
    padding: 6px 0 !important;
    z-index: 100 !important;
}

.menu-item-more:hover .cf-dropdown-menu,
.menu-item-more:focus-within .cf-dropdown-menu,
header.site-header .menu-item-more:hover .cf-dropdown-menu,
header.site-header .menu-item-more:focus-within .cf-dropdown-menu {
    display: block !important;
    animation: cfDropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

@keyframes cfDropdownFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -4px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.cf-dropdown-item,
header.site-header .cf-dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 16px !important;
    color: rgba(255, 255, 255, 0.82) !important;
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    background: transparent !important;
    border-left: 2px solid transparent !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
}

.cf-dropdown-item i,
header.site-header .cf-dropdown-item i {
    width: 16px !important;
    color: #ff9d2b !important;
    font-size: 13px !important;
    text-align: center !important;
}

.cf-dropdown-item:hover,
header.site-header .cf-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-left-color: rgba(255, 157, 43, 0.9) !important;
    text-shadow: 0 0 8px rgba(255, 157, 43, 0.4) !important;
}

.cf-dropdown-item.active,
header.site-header .cf-dropdown-item.active {
    background: rgba(255, 157, 43, 0.15) !important;
    color: #ff9d2b !important;
    border-left-color: #ff9d2b !important;
    font-weight: 700 !important;
}

/* User Account & Gem Balance on Header Right (Subpages) - Isolated from Header Alignment */
.header-user-status,
header.site-header .header-user-status {
    position: absolute !important;
    right: 24px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    height: 36px !important;
    z-index: 25 !important;
}

.nav-gem-balance {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: 32px !important;
    padding: 0 10px !important;
    background: rgba(18, 24, 34, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 4px !important;
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: var(--cf-gold) !important;
    box-sizing: border-box !important;
}

.user-dropdown-container {
    position: relative !important;
    display: inline-flex !important;
}

.nav-user-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: 32px !important;
    padding: 0 10px 0 6px !important;
    background: rgba(18, 24, 34, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: all 0.15s ease !important;
}

.nav-user-pill:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 157, 43, 0.5) !important;
}

.user-dropdown-menu {
    background: rgba(10, 14, 22, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 4px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65) !important;
}

/* ── 3. UNIVERSAL PAGE GRID (Matching Home Shell: Max 1440px) ── */
.page-shell,
.cf-shop-page,
.wheel-page,
.lb-page,
.attendance-main,
.cf-giftcode-page,
.dl-page,
.cf-profile-page,
.wos-page,
.cf-support-page,
.cf-legacy-page,
.bp-page,
.cf-admin-page,
.cf-admin-dashboard,
.market-page,
.cf-market-page {
    width: min(1440px, calc(100% - 32px)) !important;
    max-width: 1440px !important;
    margin: 20px auto 60px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 2 !important;
}

/* ── 4. TACTICAL HEADINGS & TYPOGRAPHY ── */
h1, h2, h3, h4,
.cf-shop-hero-copy h1,
.cf-wheel-hero-copy h1,
.lb-hero h1,
.attendance-hero h1,
.cf-giftcode-hero h1,
.dl-hero-main h1,
.cf-profile-hero-name,
.cf-wos-hero-copy h1,
.cf-support-hero-copy h1,
.cf-legacy-hero-copy h1 {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #ffffff !important;
}

/* Orange Highlights in Titles */
h1 span, h2 span,
.cf-shop-hero-copy h1 span,
.lb-hero h1 span,
.cf-giftcode-hero h1 span,
.cf-wos-hero-copy h1 span {
    color: var(--cf-orange) !important;
    text-shadow: 0 0 16px rgba(255, 157, 43, 0.45) !important;
}

/* ── 5. HERO BRIEFING HUD PANELS (Home Design Language) ── */
.cf-shop-hero,
.cf-wheel-hero,
.lb-hero,
.attendance-hero,
.cf-giftcode-hero,
.dl-hero,
.cf-profile-hero-card,
.cf-wos-hero,
.cf-support-hero,
.cf-legacy-hero,
.bp-hero,
.cf-market-hero,
.cf-admin-overview-hero {
    position: relative !important;
    background: var(--cf-dark-surface) !important;
    border: 1px solid var(--cf-border) !important;
    border-radius: 4px !important;
    padding: 24px 28px !important;
    margin-bottom: 20px !important;
    box-shadow: inset 0 2px 0 var(--cf-orange), 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Chamfered Accent Top Hairline */
.cf-shop-hero:before,
.cf-wheel-hero:before,
.lb-hero:before,
.cf-profile-hero-card:before,
.dl-hero:before,
.cf-wos-hero:before,
.cf-support-hero:before,
.attendance-hero:before,
.cf-giftcode-hero:before,
.bp-hero:before,
.cf-market-hero:before,
.cf-admin-overview-hero:before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 20px !important;
    width: 120px !important;
    height: 3px !important;
    background: var(--cf-orange) !important;
    box-shadow: 0 0 10px var(--cf-orange-glow) !important;
    z-index: 2 !important;
}

/* Military Eyebrow Badges */
.cf-shop-eyebrow,
.cf-wheel-eyebrow,
.lb-eyebrow,
.attendance-eyebrow,
.cf-giftcode-eyebrow,
.dl-eyebrow,
.cf-wos-eyebrow,
.cf-support-eyebrow,
.cf-legacy-eyebrow,
.bp-hero-kicker,
.cf-admin-eyebrow,
.market-eyebrow {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: var(--cf-orange) !important;
    background: rgba(255, 157, 43, 0.12) !important;
    border: 1px solid rgba(255, 157, 43, 0.35) !important;
    padding: 3px 10px !important;
    border-radius: 2px !important;
    margin-bottom: 8px !important;
}

/* User Wallet & Stats Card on Right Side of Hero */
.cf-shop-balance-card,
.cf-wheel-hero-mark,
.lb-hero-mark,
.cf-wos-hero-mark,
.cf-support-hero-mark {
    background: rgba(10, 14, 22, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 4px !important;
    padding: 14px 18px !important;
    min-width: 260px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 16px rgba(0, 0, 0, 0.4) !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.cf-shop-balance-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-bottom: 8px !important;
    margin-bottom: 10px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #cbd5e1 !important;
    text-transform: uppercase !important;
}

.cf-shop-balance-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 6px !important;
}

.cf-shop-balance-gem {
    color: var(--cf-gold) !important;
    font-weight: 800 !important;
    font-size: 15px !important;
}

.cf-shop-balance-gp {
    color: var(--cf-orange) !important;
    font-weight: 800 !important;
    font-size: 15px !important;
}

/* ── 6. CATEGORY FILTER TABS (Matching Home's Carousel Tabs) ── */
.cf-shop-cat-tabs,
.lb-cat-tabs,
.cf-profile-tabs,
.cf-frame-filter-tabs,
.cf-shop-gift-tabs {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 18px !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
    scrollbar-width: none !important;
}

.cf-shop-cat-tab,
.lb-tab-btn,
.cf-profile-tab,
.cf-frame-filter-btn,
.cf-shop-gift-tab {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 42px !important;
    padding: 0 18px !important;
    background: rgba(14, 18, 26, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 4px !important;
    color: rgba(255, 255, 255, 0.72) !important;
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.cf-shop-cat-tab:hover,
.lb-tab-btn:hover,
.cf-profile-tab:hover,
.cf-frame-filter-btn:hover,
.cf-shop-gift-tab:hover {
    color: #ffffff !important;
    border-color: rgba(255, 157, 43, 0.5) !important;
    background: rgba(255, 157, 43, 0.08) !important;
}

.cf-shop-cat-tab.active,
.lb-tab-btn.active,
.cf-profile-tab.active,
.cf-frame-filter-btn.active,
.cf-shop-gift-tab.active {
    color: #ffffff !important;
    border-color: var(--cf-orange) !important;
    background: rgba(255, 157, 43, 0.16) !important;
    box-shadow: inset 0 -3px 0 var(--cf-orange), 0 0 16px rgba(255, 157, 43, 0.3) !important;
    text-shadow: 0 0 10px rgba(255, 157, 43, 0.6) !important;
}

/* ── 7. WEAPON / ITEM / PRODUCT GRID CARDS ── */
.cf-shop-grid,
.dl-bottom-grid,
.profile-inventory-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 16px !important;
    margin-bottom: 28px !important;
}

.cf-shop-card,
.dl-card,
.profile-item-card,
.cf-giftcode-card,
.attendance-day-box {
    position: relative !important;
    background: var(--cf-dark-card) !important;
    border: 1px solid var(--cf-border) !important;
    border-radius: 4px !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.cf-shop-card:hover,
.dl-card:hover,
.profile-item-card:hover,
.cf-giftcode-card:hover {
    border-color: var(--cf-orange) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 14px rgba(255, 157, 43, 0.25) !important;
}

/* Authentic Corner HUD Accents on Hover */
.cf-shop-card:hover:after,
.dl-card:hover:after {
    content: "" !important;
    position: absolute !important;
    inset: 2px !important;
    border: 1px solid rgba(255, 157, 43, 0.3) !important;
    border-radius: 2px !important;
    pointer-events: none !important;
}

.cf-shop-card-thumb,
.dl-card-icon {
    position: relative !important;
    width: 100% !important;
    height: 140px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%) !important;
    margin-bottom: 12px !important;
}

.cf-shop-card-thumb img {
    max-width: 90% !important;
    max-height: 120px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6)) !important;
    transition: transform 0.2s ease !important;
}

.cf-shop-card:hover .cf-shop-card-thumb img {
    transform: scale(1.05) !important;
}

.cf-shop-card-name {
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 8px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.cf-shop-card-price {
    display: flex !important;
    align-items: baseline !important;
    gap: 6px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: var(--cf-gold) !important;
    margin-bottom: 12px !important;
}

.cf-shop-card-price-gp {
    color: var(--cf-orange) !important;
}

/* Sharp Rarity & Duration Badges */
.cf-shop-badge,
.cf-shop-duration-tag,
.dl-card-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 2px 8px !important;
    border-radius: 2px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.cf-shop-badge-vip {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5) !important;
}

.cf-shop-badge-hot {
    background: var(--cf-orange) !important;
    color: #0b0c0e !important;
}

.cf-shop-duration-tag.perm {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    color: #10b981 !important;
}

/* ── 8. UNIVERSAL TACTICAL BUTTONS (Home Style) ── */
.cf-shop-btn-buy,
.cf-wheel-spin-primary,
.attendance-claim-button,
.cf-giftcode-submit,
.dl-button,
.cf-btn-hero-primary,
.cf-shop-btn-modal-submit,
.cf-support-submit,
.bp-btn-elite,
.bp-claim-all-btn,
.bp-btn-claim-mission,
.cf-admin-button,
.cf-admin-btn-primary,
.market-button--primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 40px !important;
    padding: 0 20px !important;
    border: none !important;
    border-radius: 4px !important;
    background: linear-gradient(180deg, #ff9d2b 0%, #e65100 100%) !important;
    color: #ffffff !important;
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(230, 81, 0, 0.35) !important;
    transition: all 0.15s ease !important;
    box-sizing: border-box !important;
}

.cf-shop-btn-buy:hover,
.cf-wheel-spin-primary:hover,
.attendance-claim-button:hover,
.cf-giftcode-submit:hover,
.dl-button:hover,
.cf-btn-hero-primary:hover,
.cf-shop-btn-modal-submit:hover,
.cf-support-submit:hover {
    background: linear-gradient(180deg, #ffa726 0%, #f57c00 100%) !important;
    box-shadow: 0 6px 18px rgba(255, 157, 43, 0.5), 0 0 10px rgba(255, 157, 43, 0.4) !important;
    transform: translateY(-1px) !important;
}

.cf-shop-btn-gift,
.cf-wheel-spin-secondary,
.cf-btn-hero-secondary,
.cf-shop-btn-history,
.cf-shop-btn-modal-cancel,
.dl-button-secondary,
.bp-btn-secondary,
.bp-btn-claim,
.cf-admin-secondary-button,
.market-button--secondary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: 40px !important;
    padding: 0 16px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 4px !important;
    color: #e2e8f0 !important;
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    box-sizing: border-box !important;
}

.cf-shop-btn-gift:hover,
.cf-wheel-spin-secondary:hover,
.cf-btn-hero-secondary:hover,
.cf-shop-btn-history:hover,
.cf-shop-btn-modal-cancel:hover,
.dl-button-secondary:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

.bp-mission-action .bp-btn-claim-mission {
    height: 32px !important;
    padding: 0 14px !important;
    font-size: 11.5px !important;
    letter-spacing: 0.5px !important;
}

.bp-mission-action .bp-btn-goto-mission {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: 32px !important;
    padding: 0 12px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 4px !important;
    color: #e2e8f0 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
}

.bp-mission-action .bp-btn-goto-mission:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* ── 9. TACTICAL HUD TABLES (Leaderboard & Wall of Shame & History) ── */
.lb-table-wrap,
.cf-shop-history-modal .cf-shop-modal-body,
.wos-table-wrap,
.cf-admin-table-wrap {
    background: var(--cf-dark-surface) !important;
    border: 1px solid var(--cf-border) !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    margin-bottom: 24px !important;
}

.lb-table,
.cf-shop-history-table,
.wos-table,
.cf-admin-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 13.5px !important;
    color: #e2e8f0 !important;
}

.lb-table th,
.cf-shop-history-table th,
.wos-table th {
    background: rgba(20, 26, 38, 0.98) !important;
    color: var(--cf-orange) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 14px 18px !important;
    text-align: left !important;
    border-bottom: 2px solid rgba(255, 157, 43, 0.35) !important;
}

.lb-table td,
.cf-shop-history-table td,
.wos-table td {
    padding: 12px 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: transparent !important;
    transition: background 0.15s ease !important;
}

.lb-table tr:hover td,
.cf-shop-history-table tr:hover td,
.wos-table tr:hover td {
    background: rgba(255, 157, 43, 0.08) !important;
}

/* Top Rankers Badges */
.lb-rank-number.rank-1,
.lb-rank-image.rank-1 {
    color: var(--cf-gold) !important;
    font-weight: 900 !important;
    text-shadow: 0 0 10px rgba(255, 213, 79, 0.6) !important;
}

.lb-rank-number.rank-2 {
    color: #e2e8f0 !important;
    font-weight: 900 !important;
}

.lb-rank-number.rank-3 {
    color: #f59e0b !important;
    font-weight: 900 !important;
}

/* ── 10. TACTICAL FORMS & INPUTS ── */
:is(
    input[type="text"],
    input[type="email"],
    input[type="password"]
):not(.auth-input input):not(.auth-dialog input):not(.cf-giftcode-input-wrap input):not(.lb-search input):not(.cf-profile-search input),
textarea,
select,
.cf-shop-search-box input {
    background: rgba(0, 0, 0, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-size: 13.5px !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;
    transition: all 0.15s ease !important;
}

input:focus,
textarea:focus,
select:focus,
.cf-shop-search-box input:focus,
.cf-giftcode-input-wrap:focus-within {
    border-color: var(--cf-orange) !important;
    box-shadow: 0 0 10px rgba(255, 157, 43, 0.35) !important;
    outline: none !important;
}

/* ── 11. LUCKY WHEEL SPECIFIC HUD ── */
.cf-jackpot-board {
    background: rgba(14, 18, 26, 0.96) !important;
    border: 1px solid rgba(255, 157, 43, 0.4) !important;
    border-radius: 4px !important;
    padding: 16px 20px !important;
    box-shadow: inset 0 2px 0 var(--cf-orange), 0 8px 24px rgba(0, 0, 0, 0.6) !important;
    margin-bottom: 20px !important;
}

.cf-jackpot-amount {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 900 !important;
    font-size: clamp(24px, 3.5vw, 36px) !important;
    color: var(--cf-gold) !important;
    text-shadow: 0 0 16px rgba(255, 213, 79, 0.6) !important;
    letter-spacing: 1px !important;
}

.cf-wheel-stage-card {
    background: var(--cf-dark-surface) !important;
    border: 1px solid var(--cf-border) !important;
    border-radius: 4px !important;
    padding: 24px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

.cf-wheel-side-card {
    background: var(--cf-dark-card) !important;
    border: 1px solid var(--cf-border) !important;
    border-radius: 4px !important;
    padding: 20px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

/* Recent Logs matching Home Vinh Danh format */
.cf-wheel-log-entry {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    font-size: 13px !important;
}

.cf-wheel-log-entry span.tag-jackpot {
    background: var(--cf-orange) !important;
    color: #0b0c0e !important;
    font-weight: 800 !important;
    padding: 2px 6px !important;
    border-radius: 2px !important;
    font-size: 11px !important;
}

/* ── 12. TACTICAL MODALS & DIALOGS ── */
.cf-shop-modal-backdrop,
.modal-backdrop,
.cf-wheel-winner-backdrop,
.cf-frame-modal-backdrop {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(6px) !important;
}

.cf-shop-modal,
.modal-dialog,
.cf-wheel-winner-dialog,
.cf-frame-modal-dialog,
.bp-modal-box {
    background: var(--cf-dark-surface) !important;
    border: 1px solid var(--cf-orange) !important;
    border-radius: 4px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 24px rgba(255, 157, 43, 0.3) !important;
    overflow: hidden !important;
}

.cf-shop-modal-header,
.modal-header,
.cf-frame-modal-header {
    background: rgba(20, 26, 38, 0.98) !important;
    border-bottom: 1px solid rgba(255, 157, 43, 0.35) !important;
    padding: 16px 20px !important;
}

.cf-shop-modal-title,
.modal-title,
.cf-frame-modal-title-wrap {
    color: var(--cf-orange) !important;
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.cf-shop-modal-footer,
.modal-footer {
    background: rgba(10, 14, 22, 0.98) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 14px 20px !important;
}

/* ── 13. GLOBAL FOOTER (Matching Home's Tactical Match Module) ── */
footer.cf-global-footer {
    background: rgba(10, 14, 22, 0.96) !important;
    border-top: 1px solid var(--cf-border) !important;
    padding: 32px 0 24px !important;
    margin-top: 60px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.cf-global-footer-main {
    width: min(1440px, calc(100% - 32px)) !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 1.5fr repeat(3, 1fr) !important;
    gap: 32px !important;
}

.cf-global-footer-column h2 {
    color: var(--cf-orange) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    margin-bottom: 14px !important;
}

.cf-global-footer-column a {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 13px !important;
    transition: color 0.15s ease !important;
}

.cf-global-footer-column a:hover {
    color: var(--cf-orange) !important;
}

.cf-global-footer-bottom {
    width: min(1440px, calc(100% - 32px)) !important;
    margin: 24px auto 0 !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    justify-content: space-between !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 12px !important;
}

/* ── 14. MOBILE RESPONSIVE TACTICAL ADJUSTMENTS ── */
@media screen and (max-width: 900px) {
    .cf-shop-hero,
    .cf-wheel-hero,
    .lb-hero,
    .attendance-hero,
    .cf-giftcode-hero,
    .dl-hero,
    .cf-profile-hero-card {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .cf-shop-balance-card,
    .cf-wheel-hero-mark,
    .lb-hero-mark {
        min-width: 100% !important;
    }

    .cf-global-footer-main {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .page-row-nav,
    header.site-header .page-row-nav {
        height: 54px !important;
        min-height: 54px !important;
        padding: 0 12px !important;
    }
}

/* ── Shared page rhythm, mobile navigation, and focused UI refinements ── */
body.cf-page:not(.cf-page-home) main#mainContent {
    width: min(var(--cf-content-max-width), calc(100% - var(--cf-content-gutter) - var(--cf-content-gutter))) !important;
    max-width: var(--cf-content-max-width) !important;
    margin: clamp(24px, 3vw, 40px) auto 64px !important;
    padding: 0 !important;
}

.mobile-nav-backdrop {
    display: none;
}

.cf-page-home .cf-home-portal .cf-home-ref-action {
    min-height: 46px;
    padding-inline: 20px;
    gap: 10px;
    font-size: 10px;
    letter-spacing: 1.15px;
}

.cf-page-home .cf-home-portal .cf-home-ref-action-primary {
    border: 1px solid #ff8a65;
    background: linear-gradient(120deg, #ff7148, #e64f31);
    box-shadow: 0 9px 24px rgba(230, 79, 49, .24);
    color: #17110e !important;
}

.cf-page-home .cf-home-portal .cf-home-ref-action-ghost {
    border: 1px solid rgba(255, 255, 255, .64);
    background: rgba(8, 13, 18, .92) !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}

.cf-page-home .cf-home-portal .cf-home-ref-action-ghost:hover,
.cf-page-home .cf-home-portal .cf-home-ref-action-ghost:focus-visible {
    border-color: #ff8248;
    background: rgba(35, 25, 21, .96) !important;
    color: #ffb18e !important;
}

.cf-page-home .cf-home-portal .cf-home-ref-action:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.cf-page-home .cf-home-ref-activity-heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.cf-page-home .cf-home-ref-activity-count {
    color: rgba(236, 239, 242, .48);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .8px;
}

.cf-page-home .cf-home-portal .cf-home-ref-activity-list {
    overflow: hidden;
}

.cf-page-home .cf-home-portal .cf-home-ref-activity-item {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    min-height: 48px;
    gap: 10px;
    padding: 7px 12px;
}

.cf-page-home .cf-home-ref-activity-rank {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(255, 255, 255, .1);
    color: rgba(236, 239, 242, .42);
    font-size: 8px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.cf-page-home .cf-home-portal .cf-home-ref-activity-copy {
    min-width: 0;
    gap: 9px;
}

.cf-page-home .cf-home-portal .cf-home-ref-activity-copy small {
    padding: 3px 6px;
    border: 1px solid rgba(255, 130, 72, .24);
    background: rgba(255, 130, 72, .09);
    color: #ff9a70;
    font-size: 7px;
    letter-spacing: .55px;
}

.cf-page-home .cf-home-portal .cf-home-ref-activity-item.is-jackpot .cf-home-ref-activity-copy small {
    border-color: rgba(255, 195, 91, .35);
    background: rgba(255, 195, 91, .12);
    color: #ffd27b;
}

.cf-page-home .cf-home-portal .cf-home-ref-activity-copy strong {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    font-size: 9px;
}

.cf-page-home .cf-home-portal .cf-home-ref-activity-copy strong span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cf-page-home .cf-home-portal .cf-home-ref-activity-copy strong i {
    flex: 0 0 auto;
}

.cf-page-home .cf-home-portal .cf-home-ref-activity-item time {
    white-space: nowrap;
}

.cf-page-download .dl-card {
    border-radius: 6px;
}

.cf-page-download .dl-card-icon {
    flex: 0 0 56px;
    width: 56px !important;
    height: 56px !important;
    margin: 0 !important;
    border: 1px solid rgba(243, 155, 39, .28);
    background: rgba(243, 155, 39, .09) !important;
}

.cf-page-download .dl-card-top {
    min-height: 58px;
}

.cf-page-download .dl-package-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 14px;
    margin-top: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.cf-page-download .dl-package-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #aab4c1;
    font-size: 9px;
    font-weight: 700;
}

.cf-page-download .dl-package-meta span i {
    color: #aab4c1;
}

.cf-page-download .dl-package-meta .is-ready,
.cf-page-download .dl-package-meta .is-ready i {
    color: #7fddb0;
}

.cf-page-download .dl-package-meta .is-unavailable,
.cf-page-download .dl-package-meta .is-unavailable i {
    color: #e7b66c;
}

.cf-page-download .dl-card-badge-muted {
    border-color: rgba(231, 182, 108, .22);
    background: rgba(231, 182, 108, .08);
    color: #e7b66c;
}

.cf-page-download .dl-button-fallback {
    border-color: rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .04);
    color: #e7e9ec;
    box-shadow: none;
}

.cf-page-download .dl-button-fallback:hover {
    border-color: #F39B27;
    background: rgba(243, 155, 39, .1);
    color: #ffd08f;
}

@media (max-width: 900px) {
    header.site-header--v3,
    header.site-header--v3 .page-row-nav {
        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;
    }

    .site-header-brand {
        left: 14px !important;
    }

    .site-header-brand-logo {
        width: clamp(82px, 23vw, 112px) !important;
        max-height: 30px !important;
    }

    .site-mobile-nav-toggle {
        position: absolute !important;
        top: 8px !important;
        right: 14px !important;
        z-index: 63 !important;
        display: inline-flex !important;
    }

    header.site-header--v3 .page-navigation {
        position: absolute !important;
        top: 58px !important;
        right: 12px !important;
        left: 12px !important;
        z-index: 62 !important;
        display: none !important;
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: calc(100vh - 72px) !important;
        max-height: calc(100dvh - 72px) !important;
        padding: 10px !important;
        overflow-y: auto !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        transform: none !important;
        border: 1px solid rgba(255, 130, 72, .25) !important;
        background: rgba(10, 15, 20, .97) !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, .58) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
    }

    header.site-header--v3.mobile-nav-open .page-navigation {
        display: flex !important;
    }

    header.site-header--v3 .navigation-menu {
        display: none !important;
        height: auto !important;
        margin: 0 !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 3px !important;
    }

    header.site-header--v3.mobile-nav-open .navigation-menu {
        display: flex !important;
    }

    header.site-header--v3 .navigation-menu .menu-item {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 44px !important;
        height: auto !important;
        justify-content: flex-start !important;
        padding: 10px 12px !important;
        border: 1px solid rgba(255, 255, 255, .06) !important;
        background: rgba(255, 255, 255, .025) !important;
    }

    header.site-header--v3 .navigation-menu .menu-item-text {
        font-size: 12px !important;
    }

    header.site-header--v3 .navigation-menu .menu-item.cur:before,
    header.site-header--v3 .page-navigation:before {
        display: none !important;
        content: none !important;
    }

    header.site-header--v3 .navigation-menu .menu-item-more {
        display: block !important;
        padding: 0 !important;
    }

    header.site-header--v3 .menu-item-more > .menu-item-text {
        display: flex !important;
        min-height: 44px !important;
        align-items: center !important;
        padding: 10px 12px !important;
    }

    header.site-header--v3 .menu-item-more .cf-dropdown-menu {
        position: static !important;
        display: none !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 4px !important;
        transform: none !important;
        border: 0 !important;
        border-top: 1px solid rgba(255, 130, 72, .2) !important;
        background: rgba(0, 0, 0, .2) !important;
        box-shadow: none !important;
        animation: none !important;
    }

    header.site-header--v3 .menu-item-more.is-dropdown-open .cf-dropdown-menu {
        display: block !important;
    }

    header.site-header--v3 .cf-dropdown-item {
        min-height: 40px !important;
        padding: 9px 12px !important;
        white-space: normal !important;
    }

    header.site-header--v3 .header-user-status {
        position: static !important;
        display: flex !important;
        width: 100% !important;
        height: auto !important;
        margin-top: 10px !important;
        padding-top: 12px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        transform: none !important;
        border-top: 1px solid rgba(255, 255, 255, .1) !important;
    }

    header.site-header--v3 .header-user-status > .market-float-button {
        width: 100% !important;
        min-height: 42px !important;
        justify-content: center !important;
    }

    header.site-header--v3 .header-user-status .nav-gem-balance,
    header.site-header--v3 .header-user-status .nav-user-pill {
        width: 100% !important;
        justify-content: center !important;
    }

    header.site-header--v3 .header-user-status .user-dropdown-container {
        width: 100% !important;
    }

    header.site-header--v3 .header-user-status .user-dropdown-menu {
        position: static !important;
        width: 100% !important;
        max-height: 42vh !important;
        overflow-y: auto !important;
    }

    .mobile-nav-backdrop {
        position: fixed !important;
        inset: 58px 0 0 !important;
        z-index: 59 !important;
        display: block !important;
        width: 100% !important;
        height: calc(100vh - 58px) !important;
        height: calc(100dvh - 58px) !important;
        padding: 0 !important;
        border: 0 !important;
        background: rgba(0, 0, 0, .62) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity .2s ease !important;
    }

    body.mobile-nav-open .mobile-nav-backdrop {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    body.cf-page:not(.cf-page-home) main#mainContent {
        width: calc(100% - 24px) !important;
        margin-top: 22px !important;
        margin-bottom: 48px !important;
    }
}

@media (max-width: 420px) {
    .cf-page-home .cf-home-ref-activity-heading-actions {
        gap: 7px;
        flex-direction: column;
        align-items: flex-end;
    }

    .cf-page-home .cf-home-ref-activity-count {
        display: none;
    }

    .cf-page-home .cf-home-portal .cf-home-ref-activity-item {
        grid-template-columns: 22px minmax(0, 1fr);
    }

    .cf-page-home .cf-home-portal .cf-home-ref-activity-item time {
        grid-column: 2;
        margin-top: -3px;
    }

    .cf-page-home .cf-home-portal .cf-home-ref-activity-copy {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

@media (min-width: 901px) and (max-width: 1100px) {
    .site-header-brand {
        gap: 7px !important;
    }

    .site-header-brand-logo {
        width: 86px !important;
    }

    .site-header-brand strong {
        font-size: 13px !important;
    }

    .site-header-brand small {
        font-size: 5.5px !important;
        letter-spacing: .8px !important;
    }

    .navigation-menu,
    header.site-header .navigation-menu {
        gap: 2px !important;
    }

    .navigation-menu .menu-item,
    header.site-header .navigation-menu .menu-item {
        min-width: 72px !important;
        padding: 0 8px !important;
    }

    .navigation-menu .menu-item-text,
    header.site-header .navigation-menu .menu-item-text {
        font-size: 12px !important;
    }
}

/* Selective glass surfaces: preserve an opaque-enough reading layer over artwork. */
header.site-header--v3 .page-row-nav {
    background:
        linear-gradient(180deg, rgba(10, 14, 19, .62), rgba(10, 14, 19, .38)) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .09) !important;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .14) !important;
    backdrop-filter: blur(14px) saturate(125%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(125%) !important;
}

.cf-page-home .cf-home-portal .cf-home-ref-panel {
    border-color: rgba(255, 255, 255, .17);
    background-color: rgba(18, 25, 32, .76);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
}

.cf-page-home .cf-home-portal .cf-home-ref-wheel-panel {
    background-image:
        linear-gradient(90deg, rgba(17, 24, 31, .84), rgba(17, 24, 31, .72)),
        url('../../img/cf-v3-home/daily-supply-card-bg.CExwbj-J.png');
}

.cf-page-home .cf-home-portal .cf-home-ref-activity-list,
.cf-page-home .cf-home-portal .cf-home-ref-activity-empty {
    background: rgba(20, 28, 35, .72);
    border-color: rgba(255, 255, 255, .14);
    backdrop-filter: blur(12px) saturate(118%);
    -webkit-backdrop-filter: blur(12px) saturate(118%);
}

.cf-page-home .cf-home-portal .cf-home-ref-activity-item {
    background: rgba(15, 21, 27, .2);
}

.cf-page-home .cf-home-portal .cf-home-ref-slide-dots button {
    border-color: rgba(255, 255, 255, .3);
    background: rgba(9, 14, 19, .56);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cf-page-home .cf-home-portal .cf-home-ref-carousel-arrow {
    border-color: rgba(255, 255, 255, .2);
    background: rgba(12, 18, 24, .68);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cf-page-home .cf-home-portal .cf-home-ref-quicklinks a {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(19, 26, 33, .72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cf-page-home .cf-home-portal .cf-home-ref-quicklinks a:hover {
    background: rgba(33, 37, 39, .84);
}

.cf-page-home .cf-home-portal .cf-home-ref-panel-link {
    border-color: rgba(255, 255, 255, .11);
    background: rgba(8, 13, 18, .3);
}

.cf-page-home .cf-home-portal .cf-home-ref-panel-link:hover {
    background: rgba(255, 100, 59, .13);
}

.cf-page-download .dl-card,
.cf-page-download .dl-install-section,
.cf-page-download .dl-info-card,
.cf-page-market .market-maintenance {
    background-color: rgba(14, 19, 25, .86);
    backdrop-filter: blur(8px) saturate(112%);
    -webkit-backdrop-filter: blur(8px) saturate(112%);
}

.cf-page-lucky-wheel .cf-wheel-stage-card,
.cf-page-lucky-wheel .cf-wheel-side-card,
.cf-page-wheel .cf-wheel-stage-card,
.cf-page-wheel .cf-wheel-side-card {
    backdrop-filter: blur(10px) saturate(112%);
    -webkit-backdrop-filter: blur(10px) saturate(112%);
}

footer.cf-global-footer {
    background: rgba(9, 13, 19, .84) !important;
    backdrop-filter: blur(14px) saturate(115%);
    -webkit-backdrop-filter: blur(14px) saturate(115%);
}

.auth-dialog {
    background: rgba(12, 17, 24, .9);
    backdrop-filter: blur(18px) saturate(118%);
    -webkit-backdrop-filter: blur(18px) saturate(118%);
    border-color: rgba(255, 255, 255, .16);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    header.site-header--v3 .page-row-nav {
        background: rgba(10, 14, 19, .9) !important;
    }

    .cf-page-home .cf-home-portal .cf-home-ref-panel,
    .cf-page-home .cf-home-portal .cf-home-ref-activity-list,
    .cf-page-home .cf-home-portal .cf-home-ref-activity-empty,
    .cf-page-home .cf-home-portal .cf-home-ref-quicklinks a,
    .cf-page-download .dl-card,
    .cf-page-download .dl-install-section,
    .cf-page-download .dl-info-card,
    .cf-page-market .market-maintenance,
    .auth-dialog {
        background-color: rgba(12, 17, 24, .94);
    }
}

@media (prefers-reduced-transparency: reduce) {
    header.site-header--v3 .page-row-nav,
    .cf-page-home .cf-home-portal .cf-home-ref-panel,
    .cf-page-home .cf-home-portal .cf-home-ref-activity-list,
    .cf-page-home .cf-home-portal .cf-home-ref-activity-empty,
    .cf-page-home .cf-home-portal .cf-home-ref-quicklinks a,
    .cf-page-download .dl-card,
    .cf-page-download .dl-install-section,
    .cf-page-download .dl-info-card,
    .cf-page-market .market-maintenance,
    footer.cf-global-footer,
    .auth-dialog {
        background-color: rgba(10, 14, 20, .96) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}


/* ── Ensure Battle Pass modals stay hidden until explicitly opened with .is-open ── */
.bp-modal-wrap:not(.is-open) {
    display: none !important;
}
.bp-modal-wrap.is-open {
    display: flex !important;
}


/* ==========================================================================
   CF V3 TACTICAL HUD: REAL-TIME NOTIFICATION BELL & DROPDOWN (MASTER SOLID)
   ========================================================================== */
.header-notif-wrapper {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1000 !important;
}

.header-notif-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    outline: none !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
}

.header-notif-btn:hover,
.header-notif-btn.is-active {
    background: rgba(255, 107, 0, 0.16) !important;
    border-color: rgba(255, 107, 0, 0.5) !important;
    color: #ff9d2b !important;
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.3) !important;
}

.header-notif-btn.has-new-alert i {
    animation: notif-bell-ring 0.8s ease-in-out infinite !important;
    color: #ff9d2b !important;
}

@keyframes notif-bell-ring {
    0%, 100% { transform: rotate(0); }
    20%, 60% { transform: rotate(14deg); }
    40%, 80% { transform: rotate(-14deg); }
}

.notif-badge {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    min-width: 17px !important;
    height: 17px !important;
    padding: 0 4px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif !important;
    background: linear-gradient(135deg, #ff4757, #ff6b00) !important;
    color: #fff !important;
    border-radius: 9px !important;
    border: 1.5px solid #0d121a !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.5) !important;
    pointer-events: none !important;
    z-index: 5 !important;
}

.notif-badge-mini {
    display: inline-block !important;
    padding: 1px 5px !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #ff4757, #ff6b00) !important;
    border-radius: 3px !important;
    margin-left: 6px !important;
    vertical-align: middle !important;
    line-height: 1.2 !important;
    box-shadow: 0 0 6px rgba(255, 107, 0, 0.4) !important;
}

.notif-dropdown {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    width: 360px !important;
    max-width: calc(100vw - 24px) !important;
    background: #0d121a !important;
    border: 1px solid rgba(255, 107, 0, 0.35) !important;
    border-radius: 6px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.95), 0 0 24px rgba(255, 107, 0, 0.15) !important;
    z-index: 99999 !important;
    display: none !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    animation: notifDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.notif-dropdown:not(.is-open) {
    display: none !important;
}

.notif-dropdown.is-open {
    display: flex !important;
}

@keyframes notifDropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.notif-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: #111722 !important;
    box-sizing: border-box !important;
}

.notif-header-title {
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    color: #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
}

.notif-mark-all {
    background: none !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 11px !important;
    cursor: pointer !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    transition: all 0.15s ease !important;
}

.notif-mark-all:hover {
    color: #ff9d2b !important;
    background: rgba(255, 107, 0, 0.1) !important;
}

.notif-tabs {
    display: flex !important;
    padding: 6px 10px !important;
    gap: 6px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: #090d14 !important;
    box-sizing: border-box !important;
}

.notif-tab {
    flex: 1 !important;
    background: none !important;
    border: 1px solid transparent !important;
    color: #8fa0b5 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 5px 8px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    text-align: center !important;
}

.notif-tab:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.notif-tab.is-active {
    color: #ff9d2b !important;
    background: rgba(255, 107, 0, 0.14) !important;
    border-color: rgba(255, 107, 0, 0.3) !important;
}

.notif-list {
    max-height: 320px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    background: #0d121a !important;
    box-sizing: border-box !important;
}

.notif-empty {
    padding: 32px 16px !important;
    text-align: center !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

.notif-loading {
    padding: 28px 16px !important;
    text-align: center !important;
    color: #8fa0b5 !important;
    font-size: 12px !important;
}

.notif-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    cursor: pointer !important;
    background: transparent !important;
    transition: background 0.15s ease !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.notif-item:hover {
    background: rgba(255, 107, 0, 0.06) !important;
}

.notif-item.is-unread {
    background: rgba(255, 107, 0, 0.09) !important;
    border-left: 3px solid #ff9d2b !important;
}

.notif-item-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}

.notif-item-icon.type-event {
    background: rgba(255, 107, 0, 0.15) !important;
    color: #ff9d2b !important;
    border: 1px solid rgba(255, 107, 0, 0.3) !important;
}

.notif-item-icon.type-system {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

.notif-item-icon.type-reward {
    background: rgba(234, 179, 8, 0.15) !important;
    color: #facc15 !important;
    border: 1px solid rgba(234, 179, 8, 0.3) !important;
}

.notif-item-body {
    flex: 1 !important;
    min-width: 0 !important;
}

.notif-item-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #f1f5f9 !important;
    margin-bottom: 3px !important;
    line-height: 1.35 !important;
}

.notif-item-content {
    font-size: 11px !important;
    color: #94a3b8 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.notif-item-time {
    font-size: 10px !important;
    color: #64748b !important;
    margin-top: 4px !important;
}

.notif-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 14px !important;
    background: #111722 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    font-size: 11px !important;
    color: #94a3b8 !important;
    box-sizing: border-box !important;
}

.notif-footer-text {
    font-size: 11px !important;
    color: #8fa0b5 !important;
    display: inline-flex !important;
    align-items: center !important;
}

@media (max-width: 900px) {
    .header-notif-wrapper {
        position: relative !important;
    }
    .notif-dropdown {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        right: 0 !important;
        left: auto !important;
        width: min(340px, calc(100vw - 20px)) !important;
        max-width: calc(100vw - 20px) !important;
    }
}



/* ==========================================================================
   CF V3 AUTH MODAL ABSOLUTE CLEAN INPUT RESET (ELIMINATES DOUBLE BOX EFFECT)
   ========================================================================== */
.auth-dialog .auth-input,
.auth-modal .auth-input,
.auth-input {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 4px !important;
    background: #07090e !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    position: relative !important;
}

.auth-dialog .auth-input:focus-within,
.auth-modal .auth-input:focus-within,
.auth-input:focus-within {
    border-color: #ff9d2b !important;
    background: #07090e !important;
    box-shadow: 0 0 14px rgba(255, 107, 0, 0.28) !important;
}

.auth-input > i {
    width: 18px !important;
    text-align: center !important;
    color: #ff9d2b !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
    pointer-events: none !important;
}

/* Force inner <input> to be 100% borderless, transparent, and seamless */
.auth-dialog .auth-input input,
.auth-modal .auth-input input,
.auth-form .auth-input input,
.auth-input input,
#modal-login-user,
#modal-login-pass,
#modal-register-user,
#modal-register-email,
#modal-register-pass,
#modal-register-captcha {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    outline: none !important;
    outline-offset: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #ffffff !important;
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    box-sizing: border-box !important;
}

.auth-dialog .auth-input input:focus,
.auth-modal .auth-input input:focus,
.auth-form .auth-input input:focus,
.auth-input input:focus,
#modal-login-user:focus,
#modal-login-pass:focus,
#modal-register-user:focus,
#modal-register-email:focus,
#modal-register-pass:focus,
#modal-register-captcha:focus {
    border: none !important;
    border-width: 0 !important;
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

/* WebKit Autofill seamless fix */
.auth-input input:-webkit-autofill,
.auth-input input:-webkit-autofill:hover,
.auth-input input:-webkit-autofill:focus,
.auth-input input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #07090e inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

