/* CFLEO shared site shell: one source of truth for typography and header */
:root {
    color-scheme: dark;
    --site-bg: #0E1117;
    --site-card: #141A21;
    --site-card-glass: #19212A;
    --site-text: #EEF3F4;
    --site-muted: #A4B0B7;
    --site-dim: #75848C;
    --site-primary: #F39B27;
    --site-primary-hover: #FFC252;
    --site-primary-dark: #B96A10;
    --site-neon-green: #F39B27;
    --site-accent-gold: #F39B27;
    --site-tactical-cyan: #FFC252;
    --site-red: #DE5752;
    --site-red-bright: #F0756E;
    --site-line: rgba(173, 208, 216, .12);
    --site-line-neon: rgba(255, 194, 82, .26);
    --site-header-height: 74px;
    --site-header-height-scrolled: 62px;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; background: var(--site-bg); }
html, body, button, input, select, textarea { font-family: 'Be Vietnam Pro', sans-serif; }
body { margin: 0; min-height: 100vh; background: var(--site-bg); color: var(--site-text); overflow-x: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

/* ── Announcement Bar ───────────────────────────────────────────── */
.site-announcement {
    position: relative;
    z-index: 30;
    min-height: 32px;
    background: #040507;
    border-bottom: 1px solid rgba(243, 155, 39, .10);
    color: #8F98AA;
    font-size: 11px;
}
.site-announcement-inner {
    max-width: 1600px;
    min-height: 32px;
    padding: 0 clamp(16px, 2.5vw, 42px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.site-announcement-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #F39B27;
    font-weight: 900;
    letter-spacing: 1.2px;
    white-space: nowrap;
}
.site-announcement-label i { font-size: 11px; }
.site-announcement-copy {
    flex: 1;
    color: #656F82;
    letter-spacing: .2px;
    font-size: 11px;
}
.site-announcement-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(243, 155, 39, .08);
    border: 1px solid rgba(243, 155, 39, .28);
    color: #F39B27;
    white-space: nowrap;
    font-weight: 800;
    font-size: 9.5px;
    letter-spacing: 1.2px;
}
.site-announcement-status i {
    font-size: 7px;
    animation: cf-server-pulse 1.8s infinite;
}
@keyframes cf-server-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.85); } }

/* ── Main Site Header ───────────────────────────────────────────── */
header.site-header-legacy {
    position: sticky;
    top: 0;
    z-index: 25;
    width: 100%;
    min-height: var(--site-header-height);
    padding: 0 clamp(16px, 2.5vw, 42px);
    border-bottom: 1px solid rgba(243, 155, 39, .18);
    background: rgba(7, 8, 11, .94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(16px, 2vw, 32px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 1px 0 rgba(243, 155, 39, .08);
    transition: min-height .25s ease, background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
header.site-header-legacy.is-scrolled {
    min-height: var(--site-header-height-scrolled);
    background: rgba(5, 6, 9, .98);
    border-bottom-color: rgba(243, 155, 39, .34);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .65), 0 0 20px rgba(243, 155, 39, .12);
}

/* ── Brand Logo ─────────────────────────────────────────────────── */
.logo-container {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
    min-width: 0;
}
.logo-container .site-logo {
    display: block;
    width: 170px;
    height: auto;
    max-height: 48px;
    object-fit: contain;
    transition: filter .2s ease, transform .2s ease;
}
.logo-container:hover .site-logo {
    filter: drop-shadow(0 0 8px rgba(243, 155, 39, .28));
    transform: translateY(-1px);
}
.logo-container .logo-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #050709;
    background: #F39B27;
    border: 1px solid #FFC252;
    font-size: 20px;
    box-shadow: 0 0 16px rgba(243, 155, 39, .4);
    transition: transform .32s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .25s ease, border-color .25s ease;
}
.logo-container:hover .logo-icon {
    transform: scale(1.08) rotate(45deg);
    border-color: #FFC252;
    background: #FFC252;
    color: #050709;
    box-shadow: 0 0 24px rgba(243, 155, 39, .65);
}
.logo-wordmark {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1;
}
.logo-container .logo-text {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 2.8px;
    background: linear-gradient(135deg, #F39B27 0%, #FFC252 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(243, 155, 39, .3));
}
.logo-wordmark small {
    color: #8F98AA;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

/* ── Primary Navigation Links ───────────────────────────────────── */
.primary-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    flex: 1;
}
.primary-nav-links {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
}
.primary-nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding: 10px 13px;
    border-radius: 9px;
    color: #9899a1;
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .35px;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}
.primary-nav-links a i {
    color: #6c6d75;
    font-size: 12px;
    transition: color .18s ease, transform .18s ease;
}
.primary-nav-links a:hover {
    color: #ffffff;
    background: rgba(243, 155, 39, .06);
    transform: translateY(-1px);
}
.primary-nav-links a:hover i {
    color: #F39B27;
    transform: scale(1.1);
}
.primary-nav-links a.active {
    color: #ffffff;
    background: linear-gradient(180deg, rgba(243, 155, 39, .15) 0%, rgba(243, 155, 39, .04) 100%);
    box-shadow: inset 0 0 0 1px rgba(243, 155, 39, .25), 0 4px 14px rgba(243, 155, 39, .15);
}
.primary-nav-links a.active i {
    color: #F39B27;
}
.primary-nav-links a.active::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: #F39B27;
    box-shadow: 0 0 8px #F39B27;
}
.nav-badge-hot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 5px;
    margin-left: 2px;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    border-radius: 4px;
    background: linear-gradient(135deg, #F39B27, #B96A10);
    color: #050709;
    letter-spacing: .5px;
    box-shadow: 0 0 8px rgba(243, 155, 39, .55);
    animation: cf-badge-pulse 2s infinite ease-in-out;
}
@keyframes cf-badge-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .82; transform: scale(1.08); } }

/* ── Primary Actions ────────────────────────────────────────────── */
.primary-nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

/* Nút Tải game CTA nổi bật */
.nav-action-download {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    min-height: 38px;
    border-radius: 9px;
    font-size: 11.5px;
    font-weight: 900;
    letter-spacing: .3px;
    text-decoration: none;
    background: linear-gradient(135deg, #F39B27, #B96A10);
    color: #050709 !important;
    box-shadow: 0 0 16px rgba(243, 155, 39, .4);
    border: 1px solid #F39B27;
    transition: transform .18s ease, box-shadow .18s ease;
    flex-shrink: 0;
    white-space: nowrap;
}
.nav-action-download i {
    font-size: 12px;
}
.nav-action-download:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 0 24px rgba(243, 155, 39, .7);
    color: #000000 !important;
}
.nav-action-download.active {
    box-shadow: 0 0 26px rgba(243, 155, 39, .8), inset 0 0 8px rgba(255, 255, 255, .4);
}

/* Community Nav Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.nav-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 9px;
    color: #9899a1;
    background: transparent;
    border: none;
    cursor: pointer;
    font: inherit;
    font-size: 11.5px;
    font-weight: 800;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease;
}
.nav-dropdown-btn i {
    color: #6c6d75;
    font-size: 12px;
    transition: color .18s ease;
}
.nav-dropdown-btn:hover,
.nav-dropdown.open .nav-dropdown-btn,
.nav-dropdown-btn.active {
    color: #ffffff;
    background: rgba(243, 155, 39, .06);
}
.nav-dropdown-btn:hover i,
.nav-dropdown.open .nav-dropdown-btn i,
.nav-dropdown-btn.active i {
    color: #F39B27;
}
.nav-dropdown-arrow {
    font-size: 9px !important;
    transition: transform .2s ease;
}
.nav-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
    color: #F39B27 !important;
}
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 210px;
    border-radius: 12px;
    background: rgba(14, 14, 18, .98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(243, 155, 39, .24);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .75), 0 0 20px rgba(243, 155, 39, .12);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
    animation: cf-dropdown-in .18s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-dropdown-menu[hidden] {
    display: none !important;
}
.nav-dropdown-menu a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 9px 12px !important;
    border-radius: 8px !important;
    color: #CBD5E1 !important;
    text-decoration: none;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    white-space: nowrap;
    transition: all .15s ease !important;
    background: transparent !important;
    box-shadow: none !important;
}
.nav-dropdown-menu a::after {
    display: none !important;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: rgba(243, 155, 39, .1) !important;
    color: #FFFFFF !important;
    transform: translateX(3px) !important;
}
/* Desktop: Luôn ẩn hoàn toàn các mục dành riêng cho menu mobile */
.primary-nav-links a.mobile-only-nav-item,
.mobile-only-nav-item {
    display: none !important;
}
.nav-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 39px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    color: #f8f8f9;
    font-size: 11.5px;
    font-weight: 850;
    letter-spacing: .2px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .18s cubic-bezier(0.2, 0.8, 0.4, 1), border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.nav-action i { font-size: 12px; }
.nav-action:hover { transform: translateY(-1.5px); }

/* Nạp Gem button with Tactical Neon Green */
.nav-action-gem {
    position: relative;
    overflow: hidden;
    background: #F39B27;
    border-color: #FFC252;
    box-shadow: 0 0 20px rgba(243, 155, 39, .4);
    color: #050709;
    font-weight: 900;
}
.nav-action-gem::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -80%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: rotate(25deg);
    pointer-events: none;
}
.nav-action-gem:hover::after {
    animation: cf-gem-shimmer .8s ease forwards;
}
@keyframes cf-gem-shimmer { 0% { left: -80%; } 100% { left: 140%; } }
.nav-action-gem:hover {
    background: #FFC252;
    box-shadow: 0 0 28px rgba(243, 155, 39, .65);
    border-color: #FFC252;
    color: #050709;
}

/* Register action (Tactical Neon Cyber Green) */
.nav-action-register {
    background: #F39B27;
    border-color: #FFC252;
    box-shadow: 0 0 20px rgba(243, 155, 39, .4);
    color: #050709;
    font-weight: 900;
}
.nav-action-register:hover {
    background: #FFC252;
    box-shadow: 0 0 28px rgba(243, 155, 39, .65);
    border-color: #FFC252;
    color: #050709;
}

/* Login action */
.nav-action-login {
    background: rgba(243, 155, 39, .05);
    border-color: rgba(243, 155, 39, .25);
    color: #E2E8F0;
}
.nav-action-login:hover {
    background: rgba(243, 155, 39, .15);
    border-color: #F39B27;
    color: #F39B27;
    box-shadow: 0 0 16px rgba(243, 155, 39, .3);
}

/* Admin action */
.nav-action-admin {
    background: linear-gradient(135deg, #184c7a, #0d3254);
    border-color: rgba(70, 185, 255, .32);
    color: #dcf1ff;
    box-shadow: 0 3px 14px rgba(0, 140, 240, .16);
}
.nav-action-admin:hover {
    background: linear-gradient(135deg, #1c5d94, #10436f);
    border-color: rgba(85, 205, 255, .6);
    box-shadow: 0 6px 22px rgba(0, 150, 255, .3);
}

/* User Profile Account Pill */
.nav-action-profile-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .045);
    border-color: rgba(255, 255, 255, .11);
    color: #e5e5ea;
    text-decoration: none;
    padding: 0 12px 0 10px;
    border-radius: 10px;
    max-width: 210px;
}
.nav-action-profile-account i.fa-circle-user {
    color: #F39B27;
    font-size: 14px;
}
.nav-action-profile-account .nav-account-label {
    display: inline-block;
    min-width: 0;
    max-width: 125px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11.5px;
    font-weight: 800;
}
.nav-action-profile-account:hover {
    background: rgba(255, 255, 255, .085);
    border-color: rgba(243, 155, 39, .25);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
    color: #ffffff;
}
.nav-vip-icon {
    display: block;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .45));
    transition: transform .18s ease, filter .18s ease;
}
.nav-action-profile-account:hover .nav-vip-icon {
    transform: translateY(-1px) scale(1.08);
    filter: drop-shadow(0 0 7px rgba(243, 155, 39, .4));
}
.nav-action-profile-account .nav-vip-icon[alt=""] { display: none; }

/* User Pill Container in Header */
.nav-user-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 999px;
    padding: 3px 5px 3px 3px;
    transition: all .2s ease;
}
.nav-user-pill:hover,
.user-dropdown-container.open .nav-user-pill {
    background: rgba(255, 255, 255, .085);
    border-color: rgba(243, 155, 39, .35);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .4);
}
.nav-user-avatar-btn {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform .2s ease;
    margin-right: 2px;
    outline: none;
    background: transparent;
    border: none;
    padding: 0;
}
.nav-user-avatar-btn:hover {
    transform: scale(1.1);
}
.nav-avatar-zoom-icon {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #F39B27;
    opacity: 0;
    transition: opacity .18s ease;
    pointer-events: none;
    z-index: 5;
}
.nav-user-avatar-btn:hover .nav-avatar-zoom-icon {
    opacity: 1;
}
.nav-user-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: none;
    color: #E2E8F0;
    padding: 4px 6px 4px 4px;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
}
.nav-user-toggle-btn .nav-account-label {
    display: inline-block;
    min-width: 0;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── User Account Dropdown ───────────────────────────────────────── */
.user-dropdown-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.user-dropdown-toggle {
    cursor: pointer;
}
.user-dropdown-toggle:hover,
.user-dropdown-container.open .user-dropdown-toggle {
    background: rgba(255, 255, 255, .085);
    border-color: rgba(243, 155, 39, .35);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
    color: #ffffff;
}
.user-dropdown-caret {
    font-size: 10px;
    color: #8e909a;
    transition: transform .25s ease, color .2s ease;
    margin-left: 2px;
}
.user-dropdown-container.open .user-dropdown-caret {
    transform: rotate(180deg);
    color: #F39B27;
}
.user-dropdown-menu[hidden] {
    display: none !important;
}
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 250px;
    border-radius: 14px;
    background: rgba(14, 14, 18, .98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(243, 155, 39, .24);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .75), 0 0 20px rgba(243, 155, 39, .12);
    padding: 8px;
    z-index: 1000;
    animation: cf-dropdown-in .18s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cf-dropdown-in {
    from { opacity: 0; transform: translateY(-6px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.user-dropdown-header {
    padding: 8px 10px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    margin-bottom: 6px;
}
.user-dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* ── Avatar + Frame Component ───────────────────────────────────── */
.cf-avatar-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}
.cf-avatar-img {
    display: block;
    border-radius: 50%;
    object-fit: cover;
    background: #111;
}
.cf-avatar-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    object-fit: contain;
    z-index: 2;
    display: block;
    max-width: none !important;
}
.cf-avatar-wrap-sm { width: 26px; height: 26px; }
.cf-avatar-wrap-sm .cf-avatar-img { width: 22px; height: 22px; }
.cf-avatar-wrap-sm .cf-avatar-frame { width: 36px; height: 36px; }

.cf-avatar-wrap-md { width: 36px; height: 36px; }
.cf-avatar-wrap-md .cf-avatar-img { width: 30px; height: 30px; }
.cf-avatar-wrap-md .cf-avatar-frame { width: 48px; height: 48px; }

.cf-avatar-wrap-lg { width: 56px; height: 56px; }
.cf-avatar-wrap-lg .cf-avatar-img { width: 48px; height: 48px; }
.cf-avatar-wrap-lg .cf-avatar-frame { width: 74px; height: 74px; }

.user-dropdown-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.user-dropdown-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.user-dropdown-name {
    font-size: 13px;
    font-weight: 850;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-dropdown-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(255, 200, 0, .18), rgba(255, 140, 0, .08));
    border: 1px solid rgba(255, 200, 0, .35);
    color: #ffd24d;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .3px;
}
.user-dropdown-rank {
    font-size: 10px;
    color: #8e909c;
    font-weight: 700;
}
.user-dropdown-items {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 9px;
    text-decoration: none;
    color: #d0d2db;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: left;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.user-dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 13.5px;
    color: #8e909c;
    transition: color .15s ease, transform .15s ease;
}
.user-dropdown-item-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}
.user-dropdown-item-text span {
    font-size: 12px;
    font-weight: 800;
    color: #ececee;
    line-height: 1.2;
}
.user-dropdown-item-text small {
    font-size: 10px;
    color: #6f717c;
    line-height: 1.2;
}
.user-dropdown-item:hover {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .08);
    transform: translateX(2px);
    color: #ffffff;
}
.user-dropdown-item:hover .user-dropdown-item-text span {
    color: #ffffff;
}
.user-dropdown-item-gem:hover {
    background: linear-gradient(90deg, rgba(243, 155, 39, .14), rgba(243, 155, 39, .03));
    border-color: rgba(243, 155, 39, .3);
}
.user-dropdown-item-gem:hover i {
    color: #F39B27;
    transform: scale(1.15);
}
.user-dropdown-badge-gem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 5px;
    font-size: 8px;
    font-weight: 900;
    border-radius: 4px;
    background: linear-gradient(135deg, #F39B27, #B96A10);
    color: #050709;
    letter-spacing: .5px;
    box-shadow: 0 0 8px rgba(243, 155, 39, .55);
}
.user-dropdown-item-admin:hover {
    background: linear-gradient(90deg, rgba(0, 150, 255, .14), rgba(0, 150, 255, .03));
    border-color: rgba(0, 150, 255, .3);
}
.user-dropdown-item-admin:hover i {
    color: #38bdf8;
    transform: scale(1.15);
}
.user-dropdown-item-logout:hover {
    background: rgba(255, 50, 60, .08);
    border-color: rgba(255, 50, 60, .25);
}
.user-dropdown-item-logout:hover i {
    color: #ff5258;
}
.user-dropdown-item-logout:hover .user-dropdown-item-text span {
    color: #ff757b;
}
.user-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, .06);
    margin: 4px 6px;
}

/* Gem Balance Widget */
.nav-gem-balance {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 39px;
    padding: 0 6px 0 11px;
    border: 1px solid rgba(243, 155, 39, .3);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(243, 155, 39, .11), rgba(7, 8, 11, .75));
    color: #F39B27;
    white-space: nowrap;
    flex: 0 0 auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 4px 14px rgba(0, 0, 0, .25);
}
.nav-gem-balance-icon {
    color: #F39B27;
    font-size: 13px;
    filter: drop-shadow(0 0 6px rgba(243, 155, 39, .6));
}
.nav-gem-balance-value {
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11.5px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: .1px;
}
.nav-gem-refresh {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 7px;
    background: rgba(255, 255, 255, .04);
    color: #c4c5cd;
    font-size: 11px;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease, transform .2s ease;
}
.nav-gem-refresh:hover:not(:disabled) {
    color: #ffffff;
    border-color: rgba(243, 155, 39, .4);
    background: rgba(243, 155, 39, .14);
    transform: rotate(45deg);
}
.nav-gem-refresh:disabled { opacity: .55; cursor: wait; }
.nav-gem-refresh.is-loading i { animation: cf-gem-refresh-spin .75s linear infinite; }
@keyframes cf-gem-refresh-spin { to { transform: rotate(360deg); } }

/* Logout action */
.nav-action-logout {
    width: 39px;
    min-height: 39px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .03);
    border-color: rgba(255, 255, 255, .1);
    color: #92949e;
    border-radius: 10px;
    cursor: pointer;
}
.nav-action-logout span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.nav-action-logout:hover {
    color: #ff5258;
    border-color: rgba(255, 60, 70, .4);
    background: rgba(255, 40, 50, .08);
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 11px;
    background: rgba(255, 255, 255, .05);
    color: #f4f4f5;
    font-size: 18px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.mobile-toggle:hover {
    background: rgba(255, 255, 255, .09);
    border-color: rgba(255, 45, 55, .4);
}

/* Mobile Backdrop */
.mobile-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 23;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
body.mobile-nav-open .mobile-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
}
body.mobile-nav-open { overflow: hidden; }
@media (max-width: 1080px) {
    .mobile-toggle { border-color: rgba(243, 155, 39, .28); color: #F39B27; }
    .mobile-toggle:hover,
    .mobile-toggle[aria-expanded="true"] { border-color: #F39B27; background: rgba(243, 155, 39, .08); }
}

/* ── Responsive Queries ─────────────────────────────────────────── */
@media (max-width: 1380px) {
    header.site-header-legacy { gap: 10px; padding: 0 16px; }
    .primary-nav { gap: 8px; }
    .primary-nav-links a { padding: 8px 8px; font-size: 11px; gap: 5px; }
    .nav-dropdown-btn { padding: 8px 8px; font-size: 11px; }
    .nav-action-download { padding: 0 10px; min-height: 35px; font-size: 11px; }
    .nav-action { padding: 0 10px; font-size: 10.5px; }
    .primary-nav-actions { gap: 8px; flex-shrink: 0; }
    .nav-action-profile-account { max-width: 155px; padding-inline: 8px; }
    .nav-action-profile-account .nav-account-label { max-width: 90px; }
    .nav-vip-icon { width: 20px; height: 20px; flex-basis: 20px; }
    .nav-gem-balance { gap: 5px; min-height: 35px; padding: 0 6px 0 8px; }
    .nav-gem-balance-value { max-width: 80px; font-size: 10.5px; }
    .nav-gem-refresh { width: 23px; height: 23px; }
}

@media (max-width: 1080px) {
    .site-announcement-copy { display: none; }
    .mobile-toggle { display: inline-grid; place-items: center; margin-left: auto; }
    .mobile-nav-backdrop { display: block; }
    header.site-header-legacy { min-height: 68px; padding: 0 18px; }
    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 26;
        max-height: calc(100vh - 68px);
        max-height: calc(100dvh - 68px);
        overflow-y: auto;
        padding: 14px 18px max(24px, env(safe-area-inset-bottom));
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        border: 1px solid rgba(255, 194, 82, .18);
        border-top: 0;
        background: rgba(12, 17, 23, .98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        box-shadow: 0 20px 45px rgba(0, 0, 0, .55);
        transform: translateY(-8px);
        opacity: 0;
        transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), opacity .2s ease;
    }
    .primary-nav.open {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }
    .nav-dropdown {
        display: block;
        width: 100%;
    }
    .nav-dropdown-btn {
        width: 100%;
        min-height: 44px;
        justify-content: flex-start;
        padding: 12px 16px;
        border: 1px solid rgba(255, 255, 255, .04);
        background: rgba(255, 255, 255, .02);
        font-size: 12.5px;
    }
    .nav-dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 6px;
        padding: 5px;
        border-color: rgba(255, 194, 82, .14);
        border-radius: 6px;
        background: rgba(3, 8, 13, .65);
        box-shadow: none;
        animation: none;
    }
    .nav-dropdown-menu a {
        min-height: 42px;
        padding: 11px 14px !important;
        white-space: normal;
    }
    .nav-user-pill { width: 100%; justify-content: center; }
    .primary-nav-links, .primary-nav-actions {
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
        width: 100%;
    }
    .primary-nav-links a {
        width: 100%;
        padding: 12px 16px;
        font-size: 12.5px;
        border: 1px solid rgba(255, 255, 255, .04);
        background: rgba(255, 255, 255, .02);
    }
    .primary-nav-links a.active::after { display: none; }
    .primary-nav-actions {
        border-top: 1px solid rgba(255, 255, 255, .08);
        padding-top: 14px;
        gap: 8px;
    }
    .user-dropdown-container {
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    .user-dropdown-toggle {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        padding: 0 14px;
    }
    .user-dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 6px;
        box-shadow: none;
        background: rgba(18, 18, 22, .95);
        border-color: rgba(255, 45, 55, .18);
    }
    .nav-action-profile-account {
        width: 100%;
        max-width: none;
        min-height: 44px;
        justify-content: center;
    }
    .nav-action-profile-account .nav-account-label { max-width: none; font-size: 12.5px; }
    .nav-vip-icon { width: 24px; height: 24px; flex-basis: 24px; }
    .nav-gem-balance {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        gap: 10px;
    }
    .nav-gem-balance-value { max-width: none; font-size: 13px; }
    .nav-gem-refresh { width: 28px; height: 28px; font-size: 12px; }
    .nav-action { width: 100%; min-height: 44px; padding: 0 16px; justify-content: center; font-size: 12.5px; }
    .nav-action-logout {
        width: 100%;
        min-height: 44px;
        gap: 8px;
    }
    .nav-action-logout span {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
        font-size: 12.5px;
    }
}

@media (max-width: 480px) {
    .site-announcement { min-height: 29px; }
    .site-announcement-inner { padding: 0 12px; }
    .logo-container { min-width: 0; }
    .logo-container .site-logo { width: 145px; max-height: 40px; }
}

/* Shared eligibility prompt: used by Gem, attendance and Giftcode entry points. */
.cf-character-required-modal[hidden]{display:none!important}.cf-character-required-modal{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:18px}.cf-character-required-backdrop{position:absolute;inset:0;background:rgba(0,5,12,.78);backdrop-filter:blur(8px)}.cf-character-required-dialog{position:relative;width:min(100%,460px);padding:34px 30px 28px;border:1px solid rgba(55,180,255,.28);border-radius:20px;background:linear-gradient(145deg,#0d1d2d,#06111e 80%);box-shadow:0 26px 90px rgba(0,0,0,.65),0 0 35px rgba(0,136,255,.12);text-align:center;outline:none;animation:cf-char-modal-in .2s ease-out}.cf-character-required-close{position:absolute;top:13px;right:13px;width:34px;height:34px;border:1px solid rgba(255,255,255,.08);border-radius:9px;background:rgba(255,255,255,.04);color:#9daab9;cursor:pointer}.cf-character-required-icon{display:grid;place-items:center;width:62px;height:62px;margin:0 auto 18px;border:1px solid rgba(255,183,63,.22);border-radius:18px;color:#ffca60;background:rgba(255,184,63,.09);font-size:25px}.cf-character-required-eyebrow{color:#5ecbf5;font-size:9px;font-weight:900;letter-spacing:2px}.cf-character-required-dialog h2{margin:10px 0 12px;color:#f4f8ff;font-size:22px;font-weight:850}.cf-character-required-dialog p{margin:0 auto;color:#9caabd;font-size:13px;line-height:1.8;max-width:370px}.cf-character-required-actions{display:flex;justify-content:center;gap:10px;margin-top:24px}.cf-character-required-primary,.cf-character-required-secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 18px;border-radius:11px;text-decoration:none;font-size:12px;font-weight:800;cursor:pointer}.cf-character-required-primary{border:1px solid #27b7f4;background:linear-gradient(135deg,#35d5f3,#087de1);color:#041020;box-shadow:0 7px 24px rgba(0,151,255,.2)}.cf-character-required-secondary{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:#c1ccdb}.cf-character-required-open{overflow:hidden}@keyframes cf-char-modal-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:480px){.cf-character-required-dialog{padding:30px 20px 22px}.cf-character-required-dialog h2{font-size:19px}.cf-character-required-actions{flex-direction:column}.cf-character-required-primary,.cf-character-required-secondary{width:100%}}

/* ============================================================
   VIP CHARACTER NAME NEON GLOW STYLES (CẤP VIP 1 - 20)
   ============================================================ */
.vip-neon {
    display: inline-block;
    transition: text-shadow 0.3s ease, color 0.3s ease;
    letter-spacing: 0.3px;
}

/* 🟢 VIP 1 - 5: Emerald Neon Tactical (Xanh Lục Bảo Neon) */
.vip-name-tier-1,
.vip-neon-tier-1 {
    color: #e6fff4 !important;
    font-weight: 800 !important;
    text-shadow:
        0 0 3px #ffffff,
        0 0 8px #F39B27,
        0 0 16px #F39B27,
        0 0 28px #B96A10,
        0 0 42px rgba(243, 155, 39, 0.45) !important;
    animation: neonPulseGreen 2.8s ease-in-out infinite alternate;
}
@keyframes neonPulseGreen {
    0% {
        text-shadow:
            0 0 3px #ffffff,
            0 0 8px #F39B27,
            0 0 16px #F39B27,
            0 0 28px #B96A10,
            0 0 40px rgba(243, 155, 39, 0.4);
    }
    100% {
        text-shadow:
            0 0 4px #ffffff,
            0 0 12px #FFC252,
            0 0 22px #F39B27,
            0 0 36px #F39B27,
            0 0 55px rgba(243, 155, 39, 0.65);
    }
}

/* 🟡 VIP 6 - 10: Solar Gold Neon (Hoàng Kim Neon) */
.vip-name-tier-2,
.vip-neon-tier-2 {
    color: #fffbe6 !important;
    font-weight: 800 !important;
    text-shadow:
        0 0 3px #ffffff,
        0 0 9px #ffd700,
        0 0 20px #F39B27,
        0 0 34px #ff9500,
        0 0 48px rgba(243, 155, 39, 0.5) !important;
    animation: neonPulseGold 2.6s ease-in-out infinite alternate;
}
@keyframes neonPulseGold {
    0% {
        text-shadow:
            0 0 3px #ffffff,
            0 0 9px #ffd700,
            0 0 18px #F39B27,
            0 0 32px #ff9500,
            0 0 45px rgba(243, 155, 39, 0.45);
    }
    100% {
        text-shadow:
            0 0 5px #ffffff,
            0 0 13px #ffe033,
            0 0 26px #ffc107,
            0 0 44px #ff9800,
            0 0 65px rgba(243, 155, 39, 0.7);
    }
}

/* 🔴 VIP 11 - 15: Fiery Crimson Ruby Neon (Huyết Diễm Chiến Thần Neon) */
.vip-name-tier-3,
.vip-neon-tier-3 {
    color: #ffe6e8 !important;
    font-weight: 800 !important;
    text-shadow:
        0 0 3px #ffffff,
        0 0 10px #ff3b30,
        0 0 22px #ff0033,
        0 0 38px #cc0029,
        0 0 55px rgba(255, 59, 48, 0.55) !important;
    animation: neonPulseCrimson 2.4s ease-in-out infinite alternate;
}
@keyframes neonPulseCrimson {
    0% {
        text-shadow:
            0 0 3px #ffffff,
            0 0 10px #ff3b30,
            0 0 20px #ff0033,
            0 0 35px #cc0029,
            0 0 50px rgba(255, 59, 48, 0.5);
    }
    100% {
        text-shadow:
            0 0 5px #ffffff,
            0 0 14px #ff4d4d,
            0 0 28px #ff1a1a,
            0 0 48px #e60000,
            0 0 72px rgba(255, 0, 51, 0.75);
    }
}

/* 🟣 VIP 16 - 20: Mythic Celestial Cosmic Neon (Thần Thoại Tím Neon) */
.vip-name-tier-4,
.vip-neon-tier-4 {
    color: #fdf2f8 !important;
    font-weight: 900 !important;
    text-shadow:
        0 0 4px #ffffff,
        0 0 12px #f0abfc,
        0 0 24px #d946ef,
        0 0 40px #a855f7,
        0 0 62px #7c3aed,
        0 0 80px rgba(217, 70, 239, 0.6) !important;
    animation: neonPulseMythic 2.2s ease-in-out infinite alternate;
}
@keyframes neonPulseMythic {
    0% {
        text-shadow:
            0 0 4px #ffffff,
            0 0 11px #f0abfc,
            0 0 22px #d946ef,
            0 0 38px #a855f7,
            0 0 58px #7c3aed,
            0 0 75px rgba(217, 70, 239, 0.55);
    }
    100% {
        text-shadow:
            0 0 6px #ffffff,
            0 0 16px #f472b6,
            0 0 30px #e879f9,
            0 0 52px #c084fc,
            0 0 75px #9333ea,
            0 0 100px rgba(217, 70, 239, 0.85);
    }
}

/* 🌟 Cực Hạn VIP 20: Đỉnh cao thần thoại */
.vip-neon-lv-20 {
    background: linear-gradient(90deg, #ffffff 0%, #f0abfc 35%, #ffd700 70%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: neonPulseMythic 2.2s ease-in-out infinite alternate, neonRainbowShift 6s linear infinite !important;
}
@keyframes neonRainbowShift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ============================================================
   AVATAR ZOOM & LIGHTBOX SHOWCASE STYLES
   ============================================================ */
.cf-avatar-clickable {
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
    user-select: none;
}
.cf-avatar-clickable:hover {
    transform: scale(1.06);
    filter: brightness(1.15) drop-shadow(0 0 10px rgba(243, 155, 39, 0.4));
}
.cf-avatar-clickable:active {
    transform: scale(0.97);
}

/* Profile Hero Avatar Box */
.cf-profile-avatar-wrap-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.cf-avatar-zoom-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 2;
    backdrop-filter: blur(2px);
}
.cf-avatar-clickable:hover .cf-avatar-zoom-overlay {
    opacity: 1;
}

/* Action Buttons below Hero Avatar */
.cf-avatar-col-buttons {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}
.cf-avatar-sub-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #CBD5E1;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.cf-avatar-sub-btn:hover {
    background: rgba(243, 155, 39, 0.15);
    border-color: #F39B27;
    color: #F39B27;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 155, 39, 0.2);
}

/* Lightbox Modal */
body.cf-lightbox-open {
    overflow: hidden;
}
.cf-avatar-lightbox-modal {
    display: none !important;
}
.cf-avatar-lightbox-modal[hidden] {
    display: none !important;
}
.cf-avatar-lightbox-modal.is-active {
    display: flex !important;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cf-avatar-lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 13, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: lightboxFadeIn 0.25s ease-out forwards;
}
@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cf-avatar-lightbox-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    background: linear-gradient(180deg, #101622 0%, #090D14 100%);
    border: 1px solid rgba(243, 155, 39, 0.28);
    border-radius: 18px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85), 0 0 30px rgba(243, 155, 39, 0.15);
    padding: 26px 24px 22px;
    text-align: center;
    transform: scale(0.92);
    opacity: 0;
    animation: lightboxPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes lightboxPopIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cf-avatar-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94A3B8;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cf-avatar-lightbox-close:hover {
    background: rgba(255, 59, 48, 0.25);
    border-color: #ff3b30;
    color: #ffffff;
    transform: rotate(90deg);
}

.cf-avatar-lightbox-header {
    margin-bottom: 20px;
}
.cf-avatar-lightbox-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #F39B27;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.cf-avatar-lightbox-name {
    font-size: 22px;
    font-weight: 900;
    margin: 4px 0 10px;
    word-break: break-word;
}
.cf-avatar-lightbox-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.cf-lightbox-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}
.cf-lightbox-vip-badge {
    background: rgba(243, 155, 39, 0.15);
    border: 1px solid rgba(243, 155, 39, 0.5);
    color: #ffd700;
}
.cf-lightbox-frame-badge {
    background: rgba(243, 155, 39, 0.12);
    border: 1px solid rgba(243, 155, 39, 0.4);
    color: #F39B27;
}

/* Large Stage */
.cf-avatar-lightbox-stage {
    position: relative;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.cf-avatar-lightbox-aura {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    pointer-events: none;
    transition: box-shadow 0.4s ease;
    box-shadow: 0 0 90px rgba(243, 155, 39, 0.35);
}

/* Extra-Large Avatar Display */
.cf-avatar-wrap-xl {
    width: 220px;
    height: 220px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cf-avatar-wrap-xl .cf-avatar-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}
.cf-avatar-wrap-xl .cf-avatar-frame {
    width: 280px;
    height: 280px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    object-fit: contain;
    max-width: none !important;
}
.cf-avatar-lightbox-caption {
    margin: 18px 0 0;
    font-size: 11.5px;
    color: #94A3B8;
}

/* Actions in Lightbox */
.cf-avatar-lightbox-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.cf-lightbox-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}
.cf-lightbox-btn-primary {
    background: linear-gradient(135deg, #F39B27 0%, #00B36E 100%);
    color: #06110D;
    box-shadow: 0 4px 14px rgba(243, 155, 39, 0.35);
}
.cf-lightbox-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(243, 155, 39, 0.55);
    color: #000000;
}
.cf-lightbox-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}
.cf-lightbox-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}
.cf-lightbox-btn-close {
    background: transparent;
    color: #94A3B8;
}
.cf-lightbox-btn-close:hover {
    color: #FFFFFF;
}

@media (max-width: 520px) {
    .cf-avatar-wrap-xl {
        width: 170px;
        height: 170px;
    }
    .cf-avatar-wrap-xl .cf-avatar-img {
        width: 170px;
        height: 170px;
    }
    .cf-avatar-wrap-xl .cf-avatar-frame {
        width: 216px;
        height: 216px;
    }
    .cf-avatar-lightbox-dialog {
        padding: 20px 16px;
    }
    .cf-avatar-lightbox-name {
        font-size: 19px;
    }
}
.live-server-ping-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    background: rgba(11, 16, 23, 0.85);
    border: 1px solid rgba(27, 36, 51, 0.9);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #F39B27;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}
.live-server-ping-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #F39B27;
    box-shadow: 0 0 8px #F39B27;
    animation: pingDotPulse 1.8s infinite;
}
.live-server-ping-label {
    color: #8b94a5;
    font-size: 10px;
    font-weight: 600;
}
@keyframes pingDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}
