/* ============================================================================
   Ngọc Rồng – Ultra Gaming Dark HUD Skin
   Phong cách Dragon Ball: Hào quang Ki, viền kim loại, dark glassmorphism.
   ========================================================================= */

:root {
    --bg-body: #040e1d;
    --bg-surface: #07152b;
    --bg-surface-elevated: #0b1e3d;
    --bg-surface-card: rgba(8, 22, 48, 0.95);
    --ki-gold: #f59e0b;
    --ki-gold-bright: #fde047;
    --ki-orange: #ff6a00;
    --ki-cyan: #0284c7;
    --ki-glow: 0 0 20px rgba(2, 132, 199, 0.35);
    --hud-border: rgba(2, 132, 199, 0.38);
    --hud-border-glow: rgba(56, 189, 248, 0.5);
    --text-title: #fef08a;
    --text-main: #e2e8f0;
    --text-dim: #94a3b8;
    --obsidian-carbon: #0c0e12;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background: #040e1d url('../images/bg_dragonball_animated.gif') top center / cover no-repeat fixed;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Super Saiyan Ki Particles & Stars Overlay */
.snowEffect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fde047, rgba(0,0,0,0)),
        radial-gradient(2.5px 2.5px at 150px 120px, #38bdf8, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 320px 450px, #f59e0b, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 480px 220px, #fef08a, rgba(0,0,0,0)),
        radial-gradient(2.5px 2.5px at 700px 380px, #0284c7, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 850px 180px, #fde047, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 1050px 520px, #38bdf8, rgba(0,0,0,0)),
        radial-gradient(3.5px 3.5px at 1200px 290px, #f59e0b, rgba(0,0,0,0));
    background-size: 600px 600px;
    animation: kiParticleDrift 16s linear infinite;
    opacity: 0.7;
}

@keyframes kiParticleDrift {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-600px);
    }
}

img {
    border: none;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--ki-gold);
    text-decoration: none;
    transition: all .2s ease;
}

a:hover {
    color: #ffc83b;
    text-shadow: 0 0 8px rgba(255, 200, 59, 0.4);
}

h3 {
    margin: 0;
    color: var(--text-title);
}

h4 {
    margin: .2em 0;
    color: var(--text-title);
}

/* ============================================================================
   UNIFIED MASTER GAMING FRAME
   Toàn bộ website (Header + User Bar + Banner + Content + Footer) nằm trong
   1 khung liền mạch, đồng nhất, không bị rời rạc.
   ========================================================================= */
.site-master-frame {
    max-width: 920px;
    margin: 20px auto 40px;
    background: linear-gradient(180deg, rgba(8, 22, 48, 0.96) 0%, rgba(5, 15, 34, 0.98) 100%);
    border: 2px solid #0284c7;
    border-radius: 20px;
    box-shadow: 
        0 0 35px rgba(2, 132, 199, 0.35), 
        0 20px 60px rgba(0, 0, 0, 0.85), 
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ---- Header (Seamless Top Section of Master Frame) ---- */
.site-header {
    max-width: 100% !important;
    margin: 0 !important;
    background: rgba(4, 14, 32, 0.75) !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    position: relative;
    z-index: 20;
    padding: 0 0 8px !important;
    overflow: hidden;
}

.header-warning {
    background: transparent;
    border: none;
    max-width: 100%;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    font-size: 11.5px;
    color: #cbd5e1;
    letter-spacing: 0.2px;
}

.header-warning img {
    height: 14px;
    width: auto;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Logo lớn giữa header kèm 2 widget 2 bên */
.header-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px;
    gap: 16px;
    position: relative;
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo img {
    height: 135px;
    max-height: 145px;
    width: auto;
    filter: drop-shadow(0 0 28px rgba(56, 189, 248, 0.65)) drop-shadow(0 6px 20px rgba(0, 0, 0, 0.85));
    transition: transform .3s cubic-bezier(0.2, 0.8, 0.2, 1), filter .3s ease;
}

.header-logo:hover img {
    transform: scale(1.06);
    filter: drop-shadow(0 0 38px rgba(56, 189, 248, 0.9)) drop-shadow(0 8px 26px rgba(0, 0, 0, 0.95));
}

/* ============================================================================
   MASTER DRAGON BALL ARTWORK HEADER (Background Banner + Center Logo)
   ========================================================================= */

.site-header {
    width: 100% !important;
    position: relative !important;
    background: #040e1d url('../images/header_banner_bg.jpg') center top / cover no-repeat !important;
    border-bottom: 2px solid #0284c7 !important;
    aspect-ratio: 1024 / 341 !important;
    min-height: 315px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* 18+ Warning Bar (Centered at Top - Clean, No Surrounding Box) */
.header-warning {
    position: absolute !important;
    top: 6px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    font-size: 11.5px !important;
    color: #cbd5e1 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 6px rgba(0, 0, 0, 0.8) !important;
    z-index: 10 !important;
    white-space: nowrap !important;
    pointer-events: none;
}

.header-warning .badge-18 {
    background: #1e293b !important;
    border: 1px solid #475569 !important;
    color: #fff !important;
    font-weight: 900 !important;
    font-size: 10px !important;
    padding: 1px 5px !important;
    border-radius: 4px !important;
    line-height: 1.2 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
    display: inline-block !important;
}

.header-warning img {
    height: 14px !important;
    width: auto !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8)) !important;
}

/* Center Logo Standalone */
.header-center-logo-wrap {
    position: absolute !important;
    top: 44% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 6 !important;
    pointer-events: auto !important;
}

.header-center-logo-wrap .header-logo {
    display: inline-block !important;
    line-height: 0 !important;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.header-center-logo-wrap .header-logo img {
    height: 165px !important;
    width: auto !important;
    filter: drop-shadow(0 0 32px rgba(56, 189, 248, 0.95)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.95)) !important;
    transition: transform 0.3s ease, filter 0.3s ease !important;
    display: block !important;
}

.header-center-logo-wrap .header-logo:hover img {
    transform: scale(1.06) !important;
    filter: drop-shadow(0 0 38px rgba(56, 189, 248, 1)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.95)) !important;
}

/* ============================================================================
   ULTRA GAMING HUD NAVBAR (Desktop Sleek Bar)
   ========================================================================= */

/* Mobile Topbar hidden on Desktop */
.mobile-topbar {
    display: none !important;
}

/* Desktop HUD Navigation Bar Wrapper */
.header-nav-wrap {
    width: 100% !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 25 !important;
    background: linear-gradient(180deg, rgba(6, 20, 48, 0.88) 0%, rgba(3, 11, 28, 0.96) 100%) !important;
    border-top: 1px solid rgba(56, 189, 248, 0.3) !important;
    border-bottom: 2px solid #0284c7 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.65), 0 -1px 0 rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    padding: 0 16px !important;
}

.header-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 52px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex-wrap: nowrap !important;
}

/* Hidden drawer elements on Desktop */
.mobile-drawer-header,
.m-chevron,
.nav-backdrop {
    display: none !important;
}

/* Nav Groups on Desktop */
.nav-group-links {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
}

.nav-group-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
}

/* Nav Item Styling (Desktop) */
.header-nav a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 7px 13px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    white-space: nowrap !important;
    position: relative !important;
    border: 1px solid transparent !important;
}

/* SVG Icon in Nav Item */
.header-nav a .nav-ic {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease, filter 0.2s ease !important;
    vertical-align: middle !important;
}

/* Hover state on Desktop */
.header-nav a:hover {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.12) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    transform: translateY(-1px) !important;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5) !important;
}

.header-nav a:hover .nav-ic {
    transform: scale(1.15) !important;
    filter: drop-shadow(0 0 4px #38bdf8) !important;
}

/* Active State on Desktop: Refined Super Saiyan Aura Badge */
.header-nav a.active {
    color: #fde047 !important;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.24) 0%, rgba(234, 88, 12, 0.18) 100%) !important;
    border: 1px solid rgba(253, 224, 71, 0.45) !important;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    text-shadow: 0 0 8px rgba(253, 224, 71, 0.6) !important;
}

.header-nav a.active .nav-ic {
    color: #fde047 !important;
    filter: drop-shadow(0 0 6px rgba(253, 224, 71, 0.8)) !important;
}

/* ACTION BUTTON: Nạp Ngọc (Saiyan Gold Flame CTA) */
.header-nav a.nav-btn-topup {
    background: linear-gradient(135deg, #ffaa00 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    padding: 7px 16px !important;
    border-radius: 20px !important;
    border: 1px solid #fde047 !important;
    box-shadow: 0 2px 14px rgba(234, 88, 12, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
    letter-spacing: 0.3px !important;
}

.header-nav a.nav-btn-topup .ic-gem {
    color: #ffffff !important;
    filter: drop-shadow(0 0 4px #fff) !important;
}

.header-nav a.nav-btn-topup:hover {
    transform: translateY(-2px) !important;
    filter: brightness(1.12) !important;
    box-shadow: 0 4px 20px rgba(255, 170, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

/* ACTION BUTTON: Đăng Nhập / Tài Khoản (Cyber Neon Pill) */
.header-nav a.nav-btn-auth {
    background: rgba(2, 132, 199, 0.16) !important;
    color: #38bdf8 !important;
    font-weight: 700 !important;
    padding: 7px 14px !important;
    border-radius: 20px !important;
    border: 1.5px solid #0099ff !important;
    box-shadow: 0 2px 10px rgba(0, 153, 255, 0.25) !important;
}

.header-nav a.nav-btn-auth:hover {
    background: #0099ff !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(0, 153, 255, 0.7) !important;
    transform: translateY(-1px) !important;
}

/* ============================================================================
   AUTHENTIC DRAGON BALL USER GLOBAL BAR (Logged In HUD)
   ========================================================================= */
.user-global-bar {
    background: linear-gradient(180deg, rgba(6, 20, 48, 0.96) 0%, rgba(3, 12, 30, 0.98) 100%);
    border-bottom: 1.5px solid rgba(2, 132, 199, 0.45);
    padding: 10px 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 15;
}

.user-global-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
}

.user-global-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #0099ff;
    overflow: hidden;
    background: #031028;
    box-shadow: 0 0 14px rgba(0, 153, 255, 0.6), inset 0 0 6px rgba(0, 153, 255, 0.4);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.user-global-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(0, 153, 255, 0.9);
}

.user-global-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-global-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.user-global-name {
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.3px;
    text-shadow: 0 0 8px rgba(0, 153, 255, 0.4);
}

.user-global-server-badge {
    background: linear-gradient(135deg, #ff8800, #ea580c);
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    padding: 2px 9px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.user-global-balance {
    color: #94a3b8;
    font-size: 13.5px;
    font-weight: 600;
}

.user-global-balance strong {
    color: #facc15;
    font-weight: 900;
    font-size: 14.5px;
    text-shadow: 0 0 8px rgba(250, 204, 21, 0.45);
}

.user-global-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.user-bar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffb800 0%, #ff8800 50%, #e65c00 100%);
    color: #110702 !important;
    font-weight: 800;
    font-size: 12.5px;
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #ffd000;
    box-shadow: 0 2px 10px rgba(230, 96, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    white-space: nowrap;
}

.user-bar-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
    box-shadow: 0 4px 16px rgba(255, 170, 0, 0.65);
}

.user-bar-btn:active {
    transform: translateY(0);
}

/* ============================================================================
   HERO SECTION (Feature Callout Card)
   ========================================================================= */
.nro-hero-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(8, 26, 56, 0.8) 0%, rgba(4, 15, 36, 0.9) 100%);
    border: 1.5px solid rgba(2, 132, 199, 0.4);
    border-radius: 16px;
    padding: 24px 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.nro-hero-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), transparent);
}

.hero-callout-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: center;
    background: rgba(2, 132, 199, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 800;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-badge-pill .badge-star {
    color: #facc15;
}

.hero-brand-heading {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-brand-heading .text-gold-fire {
    color: #ffaa00;
    background: linear-gradient(180deg, #ffe066 0%, #ff9900 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 170, 0, 0.5));
}

.hero-brand-slogan {
    margin: 0;
    font-size: 13.5px;
    color: #cbd5e1;
    font-weight: 500;
    line-height: 1.4;
}

.hero-features-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 4px 0;
}

.feat-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    color: #e2e8f0;
    font-weight: 600;
}

.feat-chip .chip-dot {
    color: #facc15;
    font-size: 10px;
}

.hero-cta-action {
    margin-top: 6px;
    display: flex;
    justify-content: center;
}

.hero-play-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, #ff9431 0%, #ea580c 100%);
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 800;
    padding: 9px 22px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #fdba74;
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-play-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(234, 88, 12, 0.7);
    filter: brightness(1.1);
}

.hero-play-cta .cta-flame {
    font-size: 15px;
}

.hero-play-cta .cta-arrow {
    font-size: 16px;
    font-weight: 900;
    transition: transform 0.2s ease;
}

.hero-play-cta:hover .cta-arrow {
    transform: translateX(4px);
}

.header-logo .logo-txt {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    padding: 16px 36px 20px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 246, 226, .08), rgba(255, 207, 156, .05));
    border: 1px solid rgba(255, 175, 76, .15);
    transition: transform .3s ease, box-shadow .3s ease;
}

.header-logo:hover .logo-txt {
    transform: scale(1.03);
    box-shadow: 0 8px 32px rgba(255, 160, 60, .2);
}

.header-logo .logo-1 {
    font-size: 13px;
    letter-spacing: 6px;
    font-weight: 700;
    color: rgba(255, 175, 76, .6);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.header-logo .logo-2 {
    font-size: 42px;
    font-weight: 800;
    color: #ffaf4c;
    text-shadow: 0 2px 12px rgba(255, 160, 60, .4), 0 0 40px rgba(255, 160, 60, .15);
}

/* ---- Hero Banner ---- */
.hero-banner {
    max-width: 100%;
    margin: 0 0 16px;
    line-height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1.5px solid rgba(2, 132, 199, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
}

.hero-banner img {
    width: 100%;
    display: block;
}

/* ---- Main layout ---- */
.body_body {
    max-width: 100%;
    margin: 0;
    padding: 16px 20px 24px;
    position: relative;
}

.main-content {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin-top: 0 !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ---- Content blocks (.bg-content) ---- */
.bg-content {
    text-align: left;
    padding: 20px 22px;
    margin-bottom: 18px;
    background: linear-gradient(180deg, rgba(10, 28, 58, 0.65) 0%, rgba(6, 18, 40, 0.75) 100%);
    border-radius: 14px;
    border: 1.5px solid rgba(2, 132, 199, 0.4);
    color: var(--text-main);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.bg-content:hover {
    border-color: #38bdf8;
    box-shadow: 0 0 32px rgba(2, 132, 199, 0.4), 0 14px 40px rgba(0, 0, 0, 0.7);
}

.bg-content img {
    max-width: 100% !important;
    border-radius: 8px;
}

.bg-content .title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
    border: 1.5px solid #fde047;
    border-radius: 8px;
    padding: 6px 18px;
    color: #fef08a !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    margin-bottom: 16px;
    border-bottom: 1.5px solid #fde047;
}

.bg-content .title h4 {
    margin: 0;
    font-size: 15px;
    color: #fef08a !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.bg-content .content {
    padding: 0;
    line-height: 1.65;
    color: var(--text-main);
}

.content p {
    margin: 0 0 12px;
}

.content-p {
    color: #ffc83b;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 14px 0 8px !important;
}

.text-center {
    text-align: center;
}

.content .text-center img.scene {
    max-width: 32%;
    vertical-align: middle;
    border-radius: 8px;
    border: 1px solid rgba(255, 175, 76, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform .2s ease;
}

.content .text-center img.scene:hover {
    transform: scale(1.04);
}

/* ============================================================================
   AUTHENTIC DRAGON BALL DOWNLOAD BAR (Classic 6-Button Toolbar)
   ========================================================================= */
.download-panel {
    background: linear-gradient(180deg, rgba(25, 30, 42, 0.96) 0%, rgba(14, 17, 24, 0.98) 100%);
    border: 1px solid rgba(255, 175, 76, 0.28);
    border-radius: 14px;
    padding: 16px 14px 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    margin-bottom: 16px;
}

.download-deck {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0 auto;
    text-align: center;
}

div#columns figure,
.download-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 4px;
    padding: 2px;
    width: 112px;
    max-width: 120px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-align: center;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

div#columns figure:hover,
.download-item:hover {
    transform: translateY(-3px);
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.dl-btn-link {
    display: inline-block;
    line-height: 0;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.dl-btn-img {
    width: 108px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45));
    transition: all 0.2s ease;
}

.dl-btn-link:hover .dl-btn-img {
    filter: drop-shadow(0 4px 14px rgba(255, 170, 0, 0.6));
    transform: scale(1.04);
}

.dl-btn-link:active .dl-btn-img {
    transform: scale(0.97);
}

div#columns figure figcaption,
.dl-caption {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    color: #ff5252;
}

.dl-ver-label {
    color: #ff5252;
    font-weight: 800;
}

div#columns figure figcaption a,
.dl-sub-link {
    color: #ff5252;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

div#columns figure figcaption a:hover,
.dl-sub-link:hover {
    color: #ffc83b;
    text-shadow: 0 0 8px rgba(255, 200, 59, 0.6);
}

@media (max-width: 600px) {
    .download-deck {
        gap: 8px 6px;
    }

    div#columns figure,
    .download-item {
        width: 96px;
        max-width: 102px;
        margin: 2px;
    }

    .dl-btn-img {
        width: 96px;
        height: 44px;
    }

    .dl-caption {
        font-size: 11px;
    }
}

/* ---- Footer (Seamless Bottom Section of Master Frame) ---- */
.site-footer {
    max-width: 100% !important;
    margin: 16px 0 0 !important;
    background: rgba(3, 10, 24, 0.92) !important;
    border: none !important;
    border-top: 1.5px solid #0284c7 !important;
    border-bottom: 3.5px solid #ffaa00 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.footer-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 24px 24px 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 1;
    min-width: 200px;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 8px;
    line-height: 0;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.45));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.footer-logo-link:hover .footer-logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 22px rgba(56, 189, 248, 0.75));
}

.footer-logo {
    font-size: 18px;
    font-weight: 700;
    color: #ffaf4c;
    display: block;
    margin-bottom: 8px;
}

.footer-brand p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
}

.footer-links-title {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, .4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.footer-links a {
    font-size: 13.5px;
    color: rgba(255, 255, 255, .65);
    padding: 4px 0;
    transition: color .2s;
}

.footer-links a:hover {
    color: #ffcf9c;
}

.footer-bottom {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    text-align: center;
}

.footer-bottom p {
    margin: 0 0 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, .35);
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

input[type="text"],
textarea,
input[type="password"] {
    background: rgba(8, 20, 42, 0.95);
    color: #fff;
    border-radius: 8px;
    border: 1.5px solid rgba(2, 132, 199, 0.35);
    padding: 10px 14px;
    width: auto;
    font-size: 14px;
    transition: all .2s ease;
}

input[type="text"]:focus,
textarea:focus,
input[type="password"]:focus {
    border-color: #38bdf8;
    outline: none;
    box-shadow: 0 0 14px rgba(2, 132, 199, 0.5);
    background: rgba(12, 28, 58, 0.98);
}

/* ---- popup thông báo cảnh báo giả mạo ---- */
.topup-notice-tb {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}

.topup-notice-tb.show-tb {
    opacity: 1;
    visibility: visible;
}

.topup-inner-tb {
    position: relative;
    width: 92%;
    max-width: 420px;
    background: linear-gradient(165deg, #141822 0%, #0d0f15 100%);
    border: 1px solid rgba(255, 175, 76, .25);
    border-radius: 16px;
    padding: 28px 24px 20px;
    box-shadow:
        0 0 0 1px rgba(255, 175, 76, .08),
        0 20px 60px rgba(0, 0, 0, .6),
        0 0 40px rgba(255, 175, 76, .06);
    color: rgba(255, 255, 255, .88);
    transform: translateY(24px) scale(.96);
    transition: transform .4s cubic-bezier(.2, .9, .3, 1);
    font-size: 14px;
    line-height: 1.5;
}

.topup-notice-tb.show-tb .topup-inner-tb {
    transform: translateY(0) scale(1);
}

/* nút đóng */
.btn-close-tb {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .6);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .2s, color .2s;
}

.btn-close-tb:hover {
    background: rgba(255, 100, 100, .2);
    color: #ff6b6b;
}

/* header: icon + tiêu đề */
.notice-header-tb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.icon-tb {
    flex: 0 0 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff9a3c, #ffaf4c);
    display: grid;
    place-items: center;
    color: #1a1225;
    box-shadow: 0 4px 16px rgba(255, 160, 60, .3);
}

.notice-header-tb h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.01em;
}

/* nội dung */
.content-tb p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, .78);
    font-size: 13.5px;
    line-height: 1.55;
}

.content-tb strong {
    color: #ffbf6e;
}

/* danh sách cảnh báo */
.warn-list-tb {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.warn-list-tb li {
    position: relative;
    padding-left: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, .82);
    line-height: 1.45;
}

.warn-list-tb li::before {
    content: "\2715";
    position: absolute;
    left: 0;
    top: 0;
    color: #ff6b6b;
    font-weight: 700;
    font-size: 11px;
}

.note-tb {
    font-size: 12.5px !important;
    color: rgba(255, 255, 255, .6) !important;
    margin-bottom: 10px !important;
}

/* link box chat */
.links-tb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.links-tb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 175, 76, .1);
    border: 1px solid rgba(255, 175, 76, .18);
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #ffcf9c;
    font-weight: 600;
    font-size: 13px;
    transition: background .2s, border-color .2s, transform .15s;
}

.links-tb a:hover {
    background: rgba(255, 175, 76, .2);
    border-color: rgba(255, 175, 76, .35);
    transform: translateY(-1px);
}

/* footer: checkbox */
.actions-tb {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.small-opts-tb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .5);
    cursor: pointer;
    user-select: none;
}

.small-opts-tb input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #ffaf4c;
    cursor: pointer;
}

/* ---- nút lên đầu trang ---- */
#backTop {
    position: fixed;
    bottom: 24px;
    right: 16px;
    z-index: 9999;
    cursor: pointer;
    text-decoration: none;
    transition: all .3s ease;
    opacity: 0;
    transform: translateY(10px);
    border: none;
    background: linear-gradient(135deg, #ff9a3c, #ffaf4c);
    color: #1a1225;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 16px rgba(255, 160, 60, .3);
}

#backTop.show {
    opacity: 1;
    transform: translateY(0);
}

#backTop:hover {
    box-shadow: 0 6px 24px rgba(255, 160, 60, .45);
    transform: translateY(-2px);
}

#backTop img {
    width: 20px;
    height: 20px;
}

/* ============================ phần thêm cho web này ===================== */
table.data {
    width: 100%;
    border-collapse: collapse;
    background: rgba(8, 20, 44, 0.85);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .45);
    border: 1.5px solid rgba(2, 132, 199, 0.35);
}

table.data th,
table.data td {
    border: 1px solid rgba(2, 132, 199, 0.18);
    padding: 10px 12px;
    font-size: 13.5px;
    color: var(--text-main);
}

table.data th {
    background: linear-gradient(180deg, #0d2852 0%, #071936 100%);
    color: #fde047;
    text-align: left;
    font-weight: 800;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .6px;
    border-bottom: 2px solid #0284c7;
}

table.data tr:nth-child(even) td {
    background: rgba(2, 132, 199, 0.04);
}

table.data tr:hover td {
    background: rgba(2, 132, 199, 0.14);
}

table.data td.rank {
    text-align: center;
    width: 40px;
    font-weight: 900;
    color: #fde047;
}

table.data tr.top1 td {
    background: rgba(255, 170, 0, 0.18) !important;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 200, 59, 0.4);
}

.on {
    color: #4ade80;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

.off {
    color: #f87171;
    font-weight: 700;
}

.note {
    color: var(--text-dim);
    font-size: 12px;
}

.err-detail {
    color: #fca5a5;
    font-family: monospace;
    font-size: 11px;
    word-break: break-all;
}

code {
    background: rgba(255, 175, 76, .15);
    color: #ffc83b;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid rgba(255, 175, 76, .2);
}

.tabs {
    margin: 10px 0 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tabs a {
    display: inline-block;
    border: 1px solid rgba(255, 175, 76, .25);
    padding: 7px 16px;
    border-radius: 8px;
    background: rgba(255, 175, 76, .06);
    color: #ffaf4c;
    font-weight: 600;
    font-size: 13px;
    transition: all .2s;
}

.tabs a:hover {
    background: rgba(255, 175, 76, .16);
    border-color: #ffaf4c;
    color: #ffc83b;
}

.tabs a.sel {
    background: linear-gradient(135deg, #ff9a3c, #ffaf4c);
    border-color: #ffaf4c;
    color: #08090c;
    font-weight: 800;
    box-shadow: 0 3px 12px rgba(255, 160, 60, .35);
}

.frm {
    max-width: 380px;
    margin: 0 auto;
}

.frm label {
    display: block;
    margin: 12px 0 6px;
    font-weight: 700;
    color: #ffc83b;
    font-size: 13.5px;
}

.frm input[type=text],
.frm input[type=password] {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
}

.frm .btn,
.frm.btn,
button.frm.btn {
    display: block;
    margin: 18px auto 0;
    background: linear-gradient(180deg, #ffaa00 0%, #d97706 50%, #b45309 100%);
    color: #120902;
    border: 1.5px solid #fde047;
    border-radius: 10px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: all .2s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.frm .btn:hover,
.frm.btn:hover,
button.frm.btn:hover {
    background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(245, 158, 11, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    color: #000;
}

.frm .btn:active,
.frm.btn:active,
button.frm.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(224, 88, 0, 0.3);
}

.frm .cap-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.frm .cap-row input {
    width: 100px !important;
}

.frm .cap-row img {
    border: 1px solid rgba(255, 175, 76, 0.3);
    border-radius: 6px;
}

.flash {
    padding: 10px 14px;
    margin: 0 0 8px;
    border: 1px solid;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
}

.flash-ok {
    background: #ecfce5;
    border-color: #6ee74e;
    color: #1a6b1a;
}

.flash-err {
    background: #ffeaea;
    border-color: #ff5252;
    color: #8c1414;
}

/* ---- Comic Board Điểm Danh ---- */
.comic-board {
    background: linear-gradient(180deg, #b85d19 0%, #94420e 100%);
    border: 3px solid #5a2203;
    border-radius: 10px;
    padding: 12px 10px 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
    margin-bottom: 14px;
}

.comic-plaque-wrap {
    text-align: center;
    margin-bottom: 10px;
}

.comic-plaque {
    display: inline-block;
    background: linear-gradient(180deg, #7c2d12 0%, #451a03 100%);
    border: 2px solid #fbbf24;
    border-radius: 6px;
    padding: 6px 28px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
}

.plaque-title {
    font-size: 16px;
    font-weight: 900;
    color: #fef08a;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
}

.comic-parchment {
    background: linear-gradient(180deg, #fffdf8 0%, #fef7e8 100%);
    border: 2px solid #ddb88a;
    border-radius: 8px;
    padding: 12px 10px;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, .08);
}

.comic-slots-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 7px;
}

.comic-slot {
    aspect-ratio: 1;
    border-radius: 6px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: transform .12s, box-shadow .12s;
    overflow: hidden;
}

.comic-slot:hover {
    transform: translateY(-2px);
}

/* Sẵn sàng nhận hôm nay */
.comic-slot.is-active-today {
    background: linear-gradient(180deg, #2e2014, #1c130b);
    border: 2.5px solid #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, .55), inset 0 0 6px rgba(245, 158, 11, .2);
}

.comic-slot.is-active-today:hover {
    box-shadow: 0 0 16px rgba(245, 158, 11, .75), inset 0 0 8px rgba(245, 158, 11, .3);
}

.slot-number-center {
    font-size: 26px;
    font-weight: 900;
    color: #fde047;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 8px rgba(253, 224, 71, .6);
    line-height: 1;
}

.slot-today-tag {
    font-size: 9px;
    font-weight: 800;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 1px;
    line-height: 1;
}

.slot-red-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 6px #ef4444, 0 0 10px rgba(239, 68, 68, .8);
    animation: redDotPulse 1.4s infinite;
    z-index: 20;
}

@keyframes redDotPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.35);
        opacity: .65;
    }
}

/* Đã nhận */
.comic-slot.is-claimed {
    background: linear-gradient(180deg, #183821, #0d2315);
    border: 2px solid #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, .4);
}

.slot-check-glow {
    font-size: 24px;
    font-weight: 900;
    color: #4ade80;
    text-shadow: 0 0 8px #22c55e, 0 0 16px rgba(74, 222, 128, .85);
    line-height: 1;
}

.slot-sub-day {
    font-size: 10px;
    font-weight: 800;
    color: #86efac;
    margin-top: 2px;
    line-height: 1;
}

/* Chưa đến ngày */
.comic-slot.is-locked {
    background: linear-gradient(180deg, #f5ecd8, #e9ddc3);
    border: 1.5px solid #d4c2a4;
}

.comic-slot.is-locked:hover {
    border-color: #bfa075;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.slot-locked-dim {
    position: absolute;
    inset: 0;
    background: rgba(180, 160, 130, .15);
    z-index: 1;
}

.slot-big-lock {
    font-size: 18px;
    line-height: 1;
    z-index: 2;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .15));
}

.slot-lock-sub-day {
    font-size: 12px;
    font-weight: 800;
    color: #78350f;
    margin-top: 2px;
    line-height: 1;
    z-index: 2;
}

/* Modal Popup */
.comic-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.comic-modal-overlay.is-open {
    display: flex !important;
}

.comic-modal-box {
    background: #fffcf5;
    border: 3px solid #7c2d12;
    border-radius: 8px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
    overflow: hidden;
    color: #1e293b;
}

.comic-modal-header {
    background: linear-gradient(180deg, #9a3412, #7c2d12);
    border-bottom: 2px solid #ea580c;
    color: #fef08a;
    font-size: 15px;
    font-weight: 900;
    text-align: center;
    padding: 10px 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
}

.comic-modal-body {
    padding: 14px 12px;
    max-height: 320px;
    overflow-y: auto;
    color: #1e293b;
}

.comic-modal-footer {
    padding: 10px 12px 14px;
    background: #f7ede0;
    border-top: 1px solid #e5cfb5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comic-btn-action {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .15s, transform .1s;
    font-family: inherit;
}

.comic-btn-action:active {
    transform: scale(.98);
}

.btn-claim {
    background: linear-gradient(180deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 3px 8px rgba(217, 119, 6, .4);
}

.btn-claim:hover {
    background: linear-gradient(180deg, #d97706, #b45309);
}

.btn-disabled {
    background: #94a3b8;
    color: #f1f5f9;
    cursor: not-allowed;
}

.btn-login {
    background: linear-gradient(180deg, #ea580c, #c2410c);
    color: #fff;
    box-shadow: 0 3px 8px rgba(234, 88, 12, .4);
}

.btn-login:hover {
    background: linear-gradient(180deg, #c2410c, #9a3412);
}

.btn-modal-close {
    background: #475569;
    color: #fff;
}

.btn-modal-close:hover {
    background: #334155;
}

/* Modal badges */
.modal-badge {
    display: inline-block;
    font-weight: 700;
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 6px;
}

.badge-warn {
    color: #b91c1c;
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

.badge-ok {
    color: #15803d;
    background: #dcfce7;
    border: 1px solid #86efac;
}

.badge-ready {
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fde047;
}

.badge-lock {
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
}

/* Modal item rows */
.modal-item-row {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #f1e4d0;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 8px;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.modal-item-icon-box {
    width: 38px;
    height: 38px;
    background: #fdfbf7;
    border: 1.5px solid #ebd9c3;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 2px;
}

.modal-item-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    image-rendering: pixelated;
}

.modal-item-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
}

.modal-item-qty {
    color: #ea580c;
    font-weight: 800;
    margin-left: 4px;
}

/* ---- Forum List ---- */
.forum-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.forum-item {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 175, 76, 0.15);
    background: rgba(18, 22, 30, 0.85);
    text-decoration: none;
    color: var(--text-main);
    transition: all .2s ease;
}

.forum-item:hover {
    background: rgba(26, 32, 44, 0.95);
    border-color: rgba(255, 175, 76, 0.45);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 12px rgba(255, 170, 0, 0.15);
}

.forum-item.pinned {
    background: linear-gradient(135deg, rgba(35, 30, 22, 0.92), rgba(18, 22, 30, 0.95));
    border-color: rgba(255, 175, 76, 0.35);
    border-left: 3px solid #ffaa00;
}

.forum-item-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.forum-pin {
    font-size: 13px;
    flex-shrink: 0;
}

.forum-item-title {
    font-weight: 700;
    font-size: 14.5px;
    color: #fff;
    transition: color .2s ease;
}

.forum-item:hover .forum-item-title {
    color: #ffc83b;
    text-shadow: 0 0 8px rgba(255, 200, 59, 0.3);
}

.forum-item-meta {
    display: flex;
    gap: 6px;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    flex-wrap: wrap;
}

/* Forum Paging */
.forum-paging {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.forum-paging a,
.forum-paging .pg-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}

.forum-paging a {
    background: rgba(255, 175, 76, .08);
    border: 1px solid rgba(255, 175, 76, .2);
    color: #e06000;
}

.forum-paging a:hover {
    background: rgba(255, 175, 76, .2);
    border-color: rgba(255, 175, 76, .4);
}

.forum-paging .pg-current {
    background: linear-gradient(135deg, #ff9a3c, #ffaf4c);
    color: #1a1225;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 160, 60, .25);
}

/* Forum Post Body */
.forum-post-body {
    line-height: 1.7;
    font-size: 14px;
    color: #333;
    word-wrap: break-word;
}

/* Forum Comments */
.forum-comment {
    padding: 14px 16px;
    margin-bottom: 10px;
    background: rgba(16, 20, 28, 0.85);
    border-radius: 10px;
    border: 1px solid rgba(255, 175, 76, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.comment-author {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffc83b;
    text-shadow: 0 0 6px rgba(255, 200, 59, 0.3);
}

.comment-time {
    font-size: 11px;
    color: var(--text-dim);
    margin-left: 8px;
}

.comment-body {
    margin: 6px 0 0;
    font-size: 13.5px;
    color: var(--text-main);
    line-height: 1.6;
}

.comment-form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0e0c8;
}

/* ---- Admin Panel ---- */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat-card {
    background: linear-gradient(135deg, #fff8ed, #fff3e0);
    border: 1px solid #ffcf9c;
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 175, 76, .2);
}

.stat-num {
    font-size: 28px;
    font-weight: 800;
    color: #e06000;
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: #8a7a6a;
    font-weight: 600;
    margin-top: 4px;
}

.admin-btn {
    background: rgba(255, 175, 76, .1);
    border: 1px solid rgba(255, 175, 76, .25);
    color: #e06000;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all .2s;
}

.admin-btn:hover {
    background: rgba(255, 175, 76, .25);
    transform: translateY(-1px);
}

.admin-btn.btn-danger {
    background: rgba(255, 82, 82, .08);
    border-color: rgba(255, 82, 82, .25);
    color: #c42020;
}

.admin-btn.btn-danger:hover {
    background: rgba(255, 82, 82, .2);
}

.admin-btn.btn-success {
    background: rgba(76, 175, 80, .08);
    border-color: rgba(76, 175, 80, .25);
    color: #2e7d32;
}

.admin-btn.btn-success:hover {
    background: rgba(76, 175, 80, .2);
}

/* Modern Admin Primary & Action Buttons (Lưu cấu hình, Tạo giftcode, Quà top...) */
.admin-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(180deg, #ffb800 0%, #ff8800 50%, #e65c00 100%);
    color: #110702 !important;
    font-size: 14px;
    font-weight: 900;
    padding: 10px 24px;
    border-radius: 8px;
    border: 1.5px solid #ffd000;
    box-shadow: 0 4px 16px rgba(230, 92, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    outline: none;
    line-height: 1.3;
}

.admin-btn-primary:hover {
    background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(245, 158, 11, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    color: #000 !important;
}

.admin-btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(224, 88, 0, 0.3);
}

.admin-btn-primary.btn-lg {
    padding: 12px 36px;
    font-size: 15px;
    border-radius: 10px;
}

.admin-btn-primary.btn-sm {
    padding: 7px 18px;
    font-size: 13px;
    border-radius: 6px;
}

/* Admin nav link special style */
.header-nav a.nav-auth.nav-admin {
    background: linear-gradient(135deg, rgba(255, 82, 82, .12), rgba(255, 152, 0, .12));
    border-color: rgba(255, 82, 82, .3);
    color: #ff6b4a;
}

.header-nav a.nav-auth.nav-admin:hover {
    background: linear-gradient(135deg, rgba(255, 82, 82, .25), rgba(255, 152, 0, .25));
    border-color: rgba(255, 82, 82, .5);
}

/* Admin Form Sections */
.admin-form-section {
    background: #faf6f0;
    border: 1px solid #f0e0c8;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.admin-form-section h5 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #e06000;
    font-weight: 700;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    margin-bottom: 8px;
}

.admin-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #8a3c12;
    margin-bottom: 4px;
}

.admin-field input[type="text"],
.admin-field input[type="number"],
.admin-field input[type="date"],
.admin-field select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 8px 12px;
    font-size: 14px;
    transition: border-color .2s;
}

.admin-field input:focus,
.admin-field select:focus {
    border-color: #ffaf4c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 175, 76, .15);
}

/* Reward Cards */
.reward-card {
    background: #fff;
    border: 1px solid #f0e0c8;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    transition: all .2s;
}

.reward-card:hover {
    border-color: #ffcf9c;
    box-shadow: 0 2px 8px rgba(255, 175, 76, .1);
}

.reward-card.reward-special {
    background: linear-gradient(135deg, #fff8ed, #fff3e0);
    border-color: #ffaf4c;
    border-left: 3px solid #ff9a3c;
}

.reward-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.reward-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff9a3c, #ffaf4c);
    color: #1a1225;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.reward-badge.badge-special {
    background: linear-gradient(135deg, #ff6b4a, #ff9a3c);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 107, 74, .25);
}

.reward-desc {
    flex: 1;
    font-size: 13px;
    color: #666;
}

.reward-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.reward-items {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.reward-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    background: #f5f0e8;
    color: #555;
}

.reward-chip.gold {
    background: #fff8e1;
    color: #c6900a;
    border: 1px solid #ffe082;
}

.reward-chip.gem {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.reward-chip.item {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

/* ---- Day Card (Legacy-style Admin Checkin) ---- */
.day-card {
    background: #fff;
    border: 2px solid #f0e0c8;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color .2s;
}

.day-card:hover {
    border-color: #ffcf9c;
}

.day-card-special {
    border-color: #ff9a3c;
    background: linear-gradient(135deg, #fff8ed, #fff3e0);
}

.day-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #faf6f0;
    border-bottom: 1px solid #f0e0c8;
    flex-wrap: wrap;
}

.day-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff9a3c, #ffaf4c);
    color: #1a1225;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 6px;
    white-space: nowrap;
    letter-spacing: .5px;
}

.day-badge-special {
    background: linear-gradient(135deg, #ff6b4a, #ff9a3c);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 107, 74, .25);
}

.day-name-input {
    flex: 1;
    min-width: 150px;
    border: 1px solid #e0d5c5;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #2d1a0e;
    background: #fff;
}

.day-name-input:focus {
    border-color: #ffaf4c;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 175, 76, .15);
}

.day-card-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.day-act-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid;
    transition: all .15s;
    background: #fff;
}

.day-act-thoi {
    color: #c6900a;
    border-color: #ffe082;
}

.day-act-thoi:hover {
    background: #fff8e1;
}

.day-act-copy {
    color: #1976d2;
    border-color: #90caf9;
}

.day-act-copy:hover {
    background: #e3f2fd;
}

.day-act-del {
    color: #c42020;
    border-color: #ef9a9a;
}

.day-act-del:hover {
    background: #fce4ec;
}

/* Thỏi vàng row */
.day-thoi-row {
    display: flex;
    gap: 12px;
    padding: 8px 14px;
    background: #fffde7;
    border-bottom: 1px solid #f0e0c8;
    flex-wrap: wrap;
}

.thoi-field {
    display: flex;
    align-items: center;
    gap: 6px;
}

.thoi-field label {
    font-size: 12px;
    font-weight: 600;
    color: #8a3c12;
    white-space: nowrap;
    margin: 0;
}

.thoi-input {
    width: 90px;
    border: 1px solid #e0d5c5;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 13px;
    text-align: center;
}

.thoi-input:focus {
    border-color: #ffaf4c;
    outline: none;
}

/* Item row (legacy style) */
.day-items {
    padding: 6px 14px;
}

.item-row-legacy {
    background: #faf8f4;
    border: 1.5px solid #ede5d8;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.item-row-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.item-icon-box {
    width: 36px;
    height: 36px;
    background: #f8f4ee;
    border: 1.5px solid #e0d5c5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.item-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.item-id-input {
    width: 80px;
    border: 1.5px solid #d4c8b8;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 13px;
    text-align: center;
    font-weight: 600;
}

.item-id-input:focus {
    border-color: #ffaf4c;
    outline: none;
}

.search-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    background: #e3f2fd;
    border: 1px solid #90caf9;
    color: #1976d2;
    transition: all .15s;
}

.search-btn:hover {
    background: #bbdefb;
}

.item-found-name {
    font-size: 13px;
    font-weight: 700;
    color: #e06000;
    flex: 1;
    min-width: 60px;
}

/* Quantity row */
.item-row-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.item-sl-label {
    font-size: 12px;
    color: #666;
    font-weight: 700;
}

.item-qty-input {
    width: 65px;
    border: 1.5px solid #d4c8b8;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 13px;
    text-align: center;
    font-weight: 600;
    color: #e06000;
}

.item-qty-input:focus {
    border-color: #ffaf4c;
    outline: none;
}

/* Option row */
.item-row-opts {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.opt-label {
    font-size: 12px;
    color: #888;
    font-weight: 600;
}

.item-opt-input {
    flex: 1;
    min-width: 120px;
    border: 1px solid #d4c8b8;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 12px;
}

.item-opt-input:focus {
    border-color: #ffaf4c;
    outline: none;
}

.opt-quick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    background: rgba(255, 175, 76, 0.12);
    border: 1px solid rgba(255, 175, 76, 0.35);
    color: #ff9a3c;
    transition: all .18s ease;
    white-space: nowrap;
    user-select: none;
}

.opt-quick-btn:hover {
    background: rgba(255, 175, 76, 0.28);
    border-color: #ffaf4c;
    color: #ffc107;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 154, 60, 0.2);
}

.opt-quick-btn:active {
    transform: translateY(0);
}

/* Add item button */
.add-item-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    background: rgba(56, 189, 248, 0.08);
    border: 1.5px dashed #38bdf8;
    color: #38bdf8;
    transition: all .2s;
    text-align: center;
}

.add-item-btn:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: #7dd3fc;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.add-item-btn:hover {
    background: #e3f2fd;
    border-color: #90caf9;
}

/* Search item results */
.search-item-row {
    padding: 8px 10px;
    border-bottom: 1px solid #f0e0c8;
    cursor: pointer;
    transition: background .1s, color .1s;
    color: #1e293b;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.search-item-row strong {
    color: #b45309;
    font-weight: 700;
}

.search-item-row:hover {
    background: #fff6e6;
    color: #0f172a;
}

.search-item-row:last-child {
    border-bottom: none;
}

/* ======================================================== */
/* ADMIN: TRA CỨU NHÂN VẬT & SOI VẬT PHẨM                   */
/* ======================================================== */
.player-profile-card {
    display: flex;
    gap: 16px;
    align-items: center;
    background: linear-gradient(135deg, #fffaf2, #fff3e0);
    border: 2px solid #ffcc80;
    border-radius: 12px;
    padding: 16px 18px;
    margin-top: 12px;
    box-shadow: 0 3px 10px rgba(245, 124, 0, .08);
    flex-wrap: wrap;
}

.player-avatar-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    text-align: center;
}

.player-avatar-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #fff;
    border: 2px solid #ffb74d;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    display: block;
}

.player-planet-badge {
    font-size: 11px;
    font-weight: 700;
    color: #e65100;
    background: #ffe0b2;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
}

.player-profile-info {
    flex: 1;
    min-width: 250px;
}

.player-profile-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 900;
    color: #bf360c;
    flex-wrap: wrap;
}

.player-id-tag {
    font-size: 12px;
    background: #e3f2fd;
    color: #1565c0;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
}

.player-sv-tag {
    font-size: 12px;
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
}

.player-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 6px 16px;
    margin-top: 10px;
    font-size: 13px;
    color: #444;
}

/* Stats grid */
.player-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.stat-box {
    background: #fff;
    border: 1.5px solid #e0d5c5;
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .04);
}

.stat-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 15px;
    font-weight: 900;
}

.stat-power {
    border-color: #ffb74d;
    background: #fff8e1;
}

.stat-power .stat-title {
    color: #e65100;
}

.stat-power .stat-value {
    color: #d84315;
}

.stat-tiemnang {
    border-color: #ce93d8;
    background: #fdf7ff;
}

.stat-tiemnang .stat-title {
    color: #6a1b9a;
}

.stat-tiemnang .stat-value {
    color: #4a148c;
}

.stat-hp {
    border-color: #ef9a9a;
    background: #fff5f5;
}

.stat-hp .stat-title {
    color: #c62828;
}

.stat-hp .stat-value {
    color: #b71c1c;
}

.stat-ki {
    border-color: #90caf9;
    background: #f0f7ff;
}

.stat-ki .stat-title {
    color: #1565c0;
}

.stat-ki .stat-value {
    color: #0d47a1;
}

.stat-dame {
    border-color: #ffcc80;
    background: #fff9f0;
}

.stat-dame .stat-title {
    color: #ef6c00;
}

.stat-dame .stat-value {
    color: #e65100;
}

.stat-giap {
    border-color: #b0bec5;
    background: #f8fafc;
}

.stat-giap .stat-title {
    color: #37474f;
}

.stat-giap .stat-value {
    color: #263238;
}

.stat-crit {
    border-color: #a5d6a7;
    background: #f1f8e9;
}

.stat-crit .stat-title {
    color: #2e7d32;
}

.stat-crit .stat-value {
    color: #1b5e20;
}

/* Assets row */
.player-asset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 12px;
    background: #fffde7;
    border: 1.5px solid #fff59d;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #1e293b !important;
}

.asset-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #1e293b !important;
}

.asset-item strong {
    color: #1e293b !important;
    font-weight: 700;
}

.asset-val {
    color: #b45309 !important;
    font-weight: 800;
    font-size: 14px;
}

/* Sub boxes */
.card-sub-box {
    background: #fff;
    border: 1.5px solid #ede5d8;
    border-radius: 8px;
    overflow: hidden;
    color: #1e293b;
}

.card-sub-header {
    background: #f7f1e5;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 800;
    color: #63391b;
    border-bottom: 1.5px solid #ede5d8;
}

.skill-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a !important;
}

.skill-tag-pill span {
    color: #0f172a !important;
    font-weight: 700;
}

.skill-level-badge {
    background: #e06000;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
}

/* Storages & Items */
.storage-section-title {
    font-size: 14px;
    font-weight: 800;
    color: #8a3c12;
    padding-bottom: 4px;
    border-bottom: 2px solid #ffcc80;
    margin-bottom: 8px;
}

.player-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.player-item-card {
    background: #fff;
    border: 1.5px solid #e0d5c5;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .03);
    display: flex;
    flex-direction: column;
}

.player-item-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-item-title-box {
    flex: 1;
    min-width: 0;
}

.player-item-name {
    font-size: 13px;
    font-weight: 700;
    color: #c43800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-item-sub {
    font-size: 11px;
    color: #777;
    margin-top: 2px;
}

.item-star-badge {
    background: #fff8e1;
    color: #f57f17;
    border: 1px solid #ffe082;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    white-space: nowrap;
}

.player-item-options {
    background: #fbf9f5;
    border: 1px dashed #e6ded3;
    border-radius: 6px;
    padding: 6px 8px;
    margin-top: 8px;
    font-size: 11.5px;
    color: #475569;
    flex: 1;
}

.opt-line {
    margin-bottom: 2px;
}

.player-item-date {
    font-size: 10.5px;
    color: #999;
    margin-top: 6px;
    text-align: right;
}

/* Raw SQL Accordion */
.raw-sql-accordion {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.raw-sql-item {
    background: #fdfbf7;
    border: 1.5px solid #e2d9cd;
    border-radius: 6px;
    overflow: hidden;
}

.raw-sql-summary {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    background: #f5ede1;
    user-select: none;
    color: #4a2c13;
}

.raw-sql-summary:hover {
    background: #ebe0d0;
}

.raw-sql-pre {
    margin: 0;
    padding: 10px 14px;
    background: #1e1e2e;
    color: #a6e3a1;
    font-family: Consolas, monospace;
    font-size: 12px;
    overflow-x: auto;
    max-height: 250px;
}

/* Scanner styles */
.item-summary-card {
    display: flex;
    gap: 14px;
    align-items: center;
    background: #fff8f0;
    border: 2px solid #ffcc80;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 12px;
    margin-bottom: 14px;
}

.item-summary-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 2px solid #ffa726;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.scan-suggest-box {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #ffa726;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
    z-index: 1000;
    max-height: 280px;
    overflow-y: auto;
}

.scan-suggest-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #f0e0c8;
    cursor: pointer;
    font-size: 13px;
    color: #0f172a !important;
    background: #ffffff;
    transition: background .1s;
}

.scan-suggest-item:hover {
    background: #fef3c7 !important;
}

.scan-suggest-item strong {
    color: #b45309 !important;
    font-weight: 800;
    margin-right: 6px;
}

.scan-suggest-item span {
    color: #0f172a !important;
    font-weight: 600;
}

.scan-suggest-item:last-child {
    border-bottom: none;
}

.nro-mockups-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
    margin: 0 auto;
}

.nro-mockup-card {
    background: linear-gradient(180deg, rgba(12, 28, 58, 0.92) 0%, rgba(6, 18, 38, 0.96) 100%);
    border: 1.5px solid rgba(2, 132, 199, 0.4);
    border-radius: 14px;
    padding: 18px 14px 14px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: inset 0 0 16px rgba(2, 132, 199, 0.12), 0 6px 20px rgba(0, 0, 0, 0.45);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    text-align: center;
}

.nro-mockup-card:hover {
    transform: translateY(-4px);
    border-color: #38bdf8;
    box-shadow: 0 10px 28px rgba(2, 132, 199, 0.45);
}

.nro-mockup-thumb {
    height: 98px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.nro-mockup-thumb img {
    max-height: 94px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
    transition: transform .25s ease;
}

.nro-mockup-card:hover .nro-mockup-thumb img {
    transform: scale(1.06);
}

.nro-mockup-meta {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nro-platform-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    text-align: left;
    width: 100%;
    justify-content: center;
}

.nro-plat-icon {
    font-size: 20px;
    line-height: 1;
}

.nro-plat-text strong {
    display: block;
    font-size: 13.5px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.nro-plat-text span {
    font-size: 11px;
    color: #94a3b8;
}

/* Nút Tải Về Máy */
.nro-dl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all .2s cubic-bezier(0.2, 0.8, 0.2, 1);
    margin-bottom: 8px;
    min-height: 42px;
}

.btn-icon {
    font-size: 14px;
}

.nro-btn-android {
    background: linear-gradient(180deg, #6ee74e 0%, #22c55e 50%, #15803d 100%);
    color: #022c0e !important;
    border: 1.5px solid #86efac;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.nro-btn-android:hover {
    background: linear-gradient(180deg, #86efac 0%, #4ade80 100%);
    box-shadow: 0 6px 22px rgba(34, 197, 94, 0.6);
    transform: translateY(-2px);
    color: #000 !important;
}

.nro-btn-pc {
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 50%, #0369a1 100%);
    color: #04243a !important;
    border: 1.5px solid #7dd3fc;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.nro-btn-pc:hover {
    background: linear-gradient(180deg, #7dd3fc 0%, #38bdf8 100%);
    box-shadow: 0 6px 22px rgba(2, 132, 199, 0.6);
    transform: translateY(-2px);
    color: #000 !important;
}

.nro-btn-ios {
    background: linear-gradient(180deg, #c084fc 0%, #9333ea 50%, #6b21a8 100%);
    color: #fff !important;
    border: 1.5px solid #e9d5ff;
    box-shadow: 0 4px 16px rgba(147, 51, 234, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.nro-btn-ios:hover {
    background: linear-gradient(180deg, #d8b4fe 0%, #a855f7 100%);
    box-shadow: 0 6px 22px rgba(147, 51, 234, 0.6);
    transform: translateY(-2px);
}

.nro-sub-action {
    font-size: 12px;
    color: #93c5fd;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 600;
}

.nro-sub-action a {
    color: #facc15;
    font-weight: 700;
}

.nro-sub-action a:hover {
    color: #fef08a;
    text-decoration: underline;
}

.nro-sub-bolt {
    color: #facc15;
}

.nro-sub-chk {
    color: #38bdf8;
    font-weight: 900;
}

/* Section 2: Giới Thiệu */
.nro-intro-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    align-items: center;
    margin-top: 8px;
    overflow: hidden;
}

.nro-intro-p {
    font-size: 13.5px;
    line-height: 1.65;
    color: #e2e8f0;
    margin: 0 0 14px;
}

.nro-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nro-checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #f8fafc;
}

.chk-icon {
    color: #f59e0b;
    font-weight: 900;
    font-size: 15px;
}

.nro-btn-kham-pha {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    color: #120902 !important;
    font-weight: 900;
    font-size: 14px;
    border-radius: 20px;
    border: 1.5px solid #fde047;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: all .2s ease;
}

.nro-btn-kham-pha:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
    color: #000 !important;
}

.cta-arrow {
    font-size: 16px;
    font-weight: 900;
}

.nro-photos-wrap {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
    padding: 6px 2px;
}

.photo-card-tilt {
    max-width: 46%;
    width: 46%;
    height: auto;
    border: 2px solid #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    transition: all .3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tilt-left {
    transform: rotate(-2deg);
}

.tilt-right {
    transform: rotate(2deg);
}

.photo-card-tilt:hover {
    transform: rotate(0) scale(1.06);
    z-index: 10;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75);
}

/* Section 3: Hướng Dẫn Tân Thủ Workflow */
.nro-steps-workflow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.nro-step-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(14, 28, 56, 0.65);
    border: 1px solid rgba(2, 132, 199, 0.3);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: inset 0 0 12px rgba(2, 132, 199, 0.1);
    transition: transform .2s ease;
}

.nro-step-box:hover {
    transform: translateY(-2px);
    border-color: #38bdf8;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px;
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.circle-blue {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    box-shadow: 0 0 14px rgba(2, 132, 199, 0.6);
}

.circle-purple {
    background: linear-gradient(135deg, #9333ea, #6b21a8);
    box-shadow: 0 0 14px rgba(147, 51, 234, 0.6);
}

.circle-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.6);
}

.step-info strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}

.step-info p {
    margin: 0;
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.35;
}

.step-arrow-wrap {
    flex: 0 0 auto;
}

.step-arrow {
    color: #38bdf8;
    font-size: 22px;
    font-weight: 900;
    text-shadow: 0 0 10px #38bdf8;
    letter-spacing: -2px;
}

/* Section 4: Bạn nên tải phiên bản nào? */
.nro-guide-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    margin-top: 10px;
}

.nro-guide-left p {
    font-size: 13.5px;
    line-height: 1.6;
    color: #e2e8f0;
    margin: 0 0 10px;
}

.nro-guide-left strong {
    color: #facc15;
}

.promo-kid-goku-wrap {
    text-align: center;
}

.promo-kid-goku-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 2px solid #fde047;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    transition: transform .25s ease;
}

.promo-kid-goku-img:hover {
    transform: scale(1.03);
}

/* ============================================================================
   MOBILE RESPONSIVE DRAWER & TOPBAR (max-width: 768px)
   ========================================================================= */
@media (max-width: 768px) {
    /* Prevent page scroll when mobile drawer is open */
    body.nav-locked {
        overflow: hidden !important;
    }

    /* Adjust header banner */
    .site-header {
        aspect-ratio: auto !important;
        min-height: 230px !important;
        background-size: cover !important;
        background-position: center top !important;
        display: block !important;
        position: relative !important;
    }

    .header-warning {
        top: 50px !important;
        font-size: 10px !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        max-width: 95% !important;
        z-index: 10 !important;
    }

    .header-center-logo-wrap {
        top: 60% !important;
    }

    .header-center-logo-wrap .header-logo img {
        height: 105px !important;
        max-height: 115px !important;
    }

    /* Mobile Top Bar: Sleek Dark Glass Bar on Top */
    .mobile-topbar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 46px !important;
        padding: 0 12px !important;
        background: rgba(4, 14, 32, 0.94) !important;
        border-bottom: 1.5px solid rgba(2, 132, 199, 0.45) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        position: relative !important;
        z-index: 30 !important;
    }

    /* Brand in Topbar */
    .m-topbar-brand {
        display: inline-flex !important;
        align-items: center !important;
        gap: 7px !important;
        text-decoration: none !important;
        color: #fde047 !important;
        font-weight: 800 !important;
        font-size: 13px !important;
        letter-spacing: 0.5px !important;
        text-shadow: 0 0 10px rgba(253, 224, 71, 0.5) !important;
    }

    .m-brand-ico {
        width: 22px !important;
        height: 22px !important;
        border-radius: 50% !important;
    }

    /* Quick Topup CTA in Topbar */
    .m-topbar-cta {
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
        background: linear-gradient(135deg, #ffaa00, #ea580c) !important;
        color: #ffffff !important;
        font-size: 11.5px !important;
        font-weight: 800 !important;
        padding: 5px 12px !important;
        border-radius: 16px !important;
        text-decoration: none !important;
        border: 1px solid #fed7aa !important;
        box-shadow: 0 2px 8px rgba(234, 88, 12, 0.5) !important;
        letter-spacing: 0.3px !important;
    }

    .m-topbar-cta .ic-gem {
        width: 13px !important;
        height: 13px !important;
    }

    /* Hamburger Button (3 animated bars) */
    .nav-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 4px !important;
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        background: rgba(2, 132, 199, 0.15) !important;
        border: 1px solid rgba(56, 189, 248, 0.35) !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        transition: all 0.25s ease !important;
    }

    .nav-toggle .bar {
        display: block !important;
        width: 18px !important;
        height: 2px !important;
        background: #38bdf8 !important;
        border-radius: 2px !important;
        transition: transform 0.25s ease, opacity 0.2s ease !important;
        box-shadow: 0 0 6px rgba(56, 189, 248, 0.5) !important;
    }

    .nav-toggle.active .bar-1 {
        transform: translateY(6px) rotate(45deg) !important;
        background: #fde047 !important;
    }

    .nav-toggle.active .bar-2 {
        opacity: 0 !important;
        transform: scaleX(0) !important;
    }

    .nav-toggle.active .bar-3 {
        transform: translateY(-6px) rotate(-45deg) !important;
        background: #fde047 !important;
    }

    /* Nav Wrap on Mobile becomes static container */
    .header-nav-wrap {
        position: static !important;
        padding: 0 !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    /* Mobile Navigation Drawer */
    .header-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 290px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        background: linear-gradient(180deg, #07152b 0%, #030a18 100%) !important;
        border-right: 2px solid #0284c7 !important;
        box-shadow: 10px 0 35px rgba(0, 0, 0, 0.85), 0 0 20px rgba(2, 132, 199, 0.3) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        gap: 0 !important;
        padding: 0 0 24px !important;
        z-index: 10000 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        transform: translateX(-105%) !important;
        transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    }

    .header-nav.open {
        transform: translateX(0) !important;
    }

    /* Mobile Drawer Header */
    .mobile-drawer-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 16px 18px !important;
        background: rgba(2, 132, 199, 0.14) !important;
        border-bottom: 1.5px solid rgba(56, 189, 248, 0.25) !important;
        margin-bottom: 10px !important;
    }

    .m-drawer-brand {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        color: #fde047 !important;
        font-weight: 800 !important;
        font-size: 14.5px !important;
    }

    .m-drawer-brand img {
        width: 22px !important;
        height: 22px !important;
    }

    .btn-close-drawer {
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        color: #cbd5e1 !important;
        font-size: 22px !important;
        line-height: 1 !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.2s ease !important;
    }

    .btn-close-drawer:hover {
        background: rgba(239, 68, 68, 0.25) !important;
        color: #f87171 !important;
        border-color: #ef4444 !important;
    }

    /* Drawer Groups */
    .nav-group-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        padding: 0 10px !important;
    }

    .nav-group-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 14px 10px 0 !important;
        margin-top: 10px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    /* Links inside Drawer */
    .header-nav a {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        padding: 12px 14px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #e2e8f0 !important;
        border-radius: 10px !important;
        border: 1px solid transparent !important;
        min-height: 46px !important;
        white-space: nowrap !important;
    }

    .header-nav a .nav-ic {
        width: 18px !important;
        height: 18px !important;
        flex-shrink: 0 !important;
    }

    .header-nav a .m-chevron {
        display: inline-block !important;
        margin-left: auto !important;
        color: #64748b !important;
        font-size: 16px !important;
        font-weight: 800 !important;
    }

    .header-nav a:hover,
    .header-nav a:active {
        background: rgba(56, 189, 248, 0.12) !important;
        color: #38bdf8 !important;
        border-color: rgba(56, 189, 248, 0.25) !important;
    }

    .header-nav a:hover .m-chevron {
        color: #38bdf8 !important;
    }

    .header-nav a.active {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(234, 88, 12, 0.25)) !important;
        color: #fde047 !important;
        border-color: rgba(253, 224, 71, 0.4) !important;
    }

    .header-nav a.active .m-chevron {
        color: #fde047 !important;
    }

    /* Full-width CTA buttons in Drawer */
    .header-nav a.nav-btn-topup {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 16px !important;
        border-radius: 12px !important;
        font-size: 14.5px !important;
    }

    .header-nav a.nav-btn-topup .m-chevron {
        display: none !important;
    }

    .header-nav a.nav-btn-auth {
        width: 100% !important;
        justify-content: center !important;
        padding: 11px 16px !important;
        border-radius: 12px !important;
        font-size: 14px !important;
    }

    .header-nav a.nav-btn-auth .m-chevron {
        display: none !important;
    }

    /* Backdrop overlay */
    .nav-backdrop {
        display: block !important;
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(0, 0, 0, 0.72) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        z-index: 9999 !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.3s ease !important;
    }

    .nav-backdrop.show {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .user-global-bar {
        padding: 10px 12px !important;
    }

    .user-global-inner {
        flex-direction: column !important;
        gap: 8px !important;
        text-align: center !important;
    }

    .user-global-meta {
        justify-content: center !important;
    }

    .user-global-actions {
        justify-content: center !important;
        width: 100% !important;
    }

    .nro-mockups-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .nro-intro-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .nro-guide-split {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .nro-steps-workflow {
        flex-direction: column;
        gap: 10px;
    }

    .step-arrow-wrap {
        transform: rotate(90deg);
        margin: 2px 0;
    }

    .nro-step-box {
        width: 100%;
    }

    .nro-hero-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-goku-standing {
        height: 140px;
    }

    .hero-title-brush {
        max-width: 300px;
    }

    .site-master-frame {
        max-width: calc(100% - 16px) !important;
        margin: 10px 8px 24px !important;
        border-radius: 16px !important;
    }

    .header-brand {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 10px 4px 6px;
        gap: 0;
    }

    .header-char-box {
        width: 65px;
    }

    .header-char-fig {
        height: 65px !important;
    }

    .header-beam-wrap {
        max-width: 45px;
        min-width: 25px;
        height: 24px;
    }

    .header-logo img {
        height: 85px !important;
    }

    .impact-left {
        left: -6px;
        width: 18px;
        height: 18px;
    }

    .impact-right {
        right: -6px;
        width: 18px;
        height: 18px;
    }

    .nro-hero-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 14px 12px;
    }

    .hero-callout-card {
        align-items: center;
        text-align: center;
    }

    .hero-features-chips {
        justify-content: center;
    }

    .hero-goku-standing {
        height: 140px;
    }

    .body_body {
        padding: 12px 10px 16px !important;
    }

    .site-header,
    .user-global-bar,
    .site-footer {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Restored Forum and HUD Rules */
.forum-auth-box {
    background: linear-gradient(135deg, rgba(32, 22, 48, 0.9) 0%, rgba(22, 15, 34, 0.9) 100%);
    border: 1px solid var(--hud-border);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.forum-guest-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.guest-text {
    font-size: 13.5px;
    color: #ffc83b;
    font-weight: 600;
    flex: 1;
    min-width: 200px;
}
.guest-actions, .user-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.forum-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 800;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}
.forum-auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0,0,0,0.35);
}
.forum-auth-btn.btn-login {
    background: linear-gradient(180deg, #ff9431 0%, #ea580c 100%);
    color: #fff !important;
}
.forum-auth-btn.btn-register {
    background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
    color: #fff !important;
}
.forum-auth-btn.btn-account {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    color: #fff !important;
}
.forum-auth-btn.btn-admin {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    color: #fff !important;
}
.forum-auth-btn.btn-logout {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171 !important;
    border: 1px solid rgba(220, 38, 38, 0.35);
}
.forum-auth-btn.btn-logout:hover {
    background: rgba(220, 38, 38, 0.3);
}

.forum-user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.user-greeting {
    font-size: 14px;
    color: var(--text-main);
}
.user-role-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 6px;
}
.user-role-badge.badge-admin {
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    color: #fff;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}
.user-role-badge.badge-gm {
    background: linear-gradient(135deg, #0284c7, #06b6d4);
    color: #fff;
}
.user-role-badge.badge-member {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
}

/* Lối tắt Bảng Xếp Hạng */
.forum-rank-shortcut {
    border-radius: 12px;
    overflow: hidden;
}
.rank-link-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(46, 28, 62, 0.9) 0%, rgba(32, 19, 46, 0.95) 100%);
    border: 1.5px solid var(--ki-gold);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 0 16px rgba(255, 170, 0, 0.15);
    border-radius: 12px;
    padding: 12px 18px;
    text-decoration: none;
    transition: all 0.25s ease;
}
.rank-link-btn:hover {
    background: linear-gradient(135deg, rgba(60, 36, 80, 0.95) 0%, rgba(42, 24, 60, 0.98) 100%);
    border-color: #ffc83b;
    box-shadow: 0 6px 24px rgba(255, 170, 0, 0.3);
    transform: translateY(-2px);
}
.rank-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 8px rgba(255, 200, 59, 0.5));
}
.rank-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.rank-text strong {
    color: #ffc83b;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(255, 200, 59, 0.3);
}
.rank-text small {
    color: var(--text-dim);
    font-size: 12px;
}
.rank-arrow {
    color: var(--ki-gold);
    font-size: 16px;
    transition: transform 0.2s ease;
}
.rank-link-btn:hover .rank-arrow {
    transform: translateX(4px);
    color: #ffc83b;
}

.nro-hud-card {
    background: rgba(10, 28, 58, 0.7);
    border: 1.5px solid rgba(2, 132, 199, 0.4);
    border-radius: 14px;
    margin-bottom: 18px;
    padding: 20px 22px;
}

@media (max-width: 480px) {
    .user-global-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }
    .user-bar-btn {
        padding: 6px 8px !important;
        font-size: 11px !important;
        text-align: center !important;
    }
}


/* Forum Required Selectors */
.forum-auth-box {
    background: linear-gradient(135deg, rgba(32, 22, 48, 0.9) 0%, rgba(22, 15, 34, 0.9) 100%);
    border: 1px solid rgba(2, 132, 199, 0.4);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.forum-post-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 8px;
}

.badge-pinned-tag {
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}

.forum-rank-shortcut {
    color: #facc15;
    font-weight: 700;
}

/* ============================================================================
   TOP REWARDS SHOWCASE & TIERS GRID (Bảng Xếp Hạng Đua Top)
   ========================================================================= */
.top-reward-showcase {
    background: linear-gradient(180deg, rgba(8, 20, 42, 0.95) 0%, rgba(4, 12, 28, 0.98) 100%);
    border: 1.5px solid rgba(251, 191, 36, 0.5);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.top-reward-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px dashed rgba(251, 191, 36, 0.3);
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.top-reward-title {
    font-size: 15px;
    font-weight: 800;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-reward-time {
    font-size: 12.5px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-running {
    display: inline-block;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    color: #4ade80;
    font-weight: 800;
    font-size: 10.5px;
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 0.3px;
}

.badge-ended {
    display: inline-block;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #f87171;
    font-weight: 800;
    font-size: 10.5px;
    padding: 2px 8px;
    border-radius: 12px;
}

.top-reward-tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.top-tier-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    padding: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.top-tier-card:hover {
    transform: translateY(-2px);
}

.top-tier-card.tier-card-1 {
    border-color: #fbbf24;
    background: linear-gradient(180deg, rgba(30, 24, 12, 0.85) 0%, rgba(15, 23, 42, 0.85) 100%);
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.25);
}

.top-tier-card.tier-card-2 {
    border-color: #cbd5e1;
    background: linear-gradient(180deg, rgba(24, 30, 40, 0.85) 0%, rgba(15, 23, 42, 0.85) 100%);
    box-shadow: 0 0 16px rgba(203, 213, 225, 0.2);
}

.top-tier-card.tier-card-3 {
    border-color: #d97706;
    background: linear-gradient(180deg, rgba(30, 20, 10, 0.85) 0%, rgba(15, 23, 42, 0.85) 100%);
    box-shadow: 0 0 16px rgba(217, 119, 6, 0.2);
}

.top-tier-card.tier-card-other {
    border-color: rgba(56, 189, 248, 0.4);
}

.top-tier-badge {
    font-size: 14px;
    font-weight: 800;
    color: #f1f5f9;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tier-card-1 .top-tier-badge { color: #fde047; }
.tier-card-2 .top-tier-badge { color: #e2e8f0; }
.tier-card-3 .top-tier-badge { color: #f59e0b; }

.top-tier-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tier-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px 8px;
    border-radius: 6px;
}

.tier-item-icon-box {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
}

.tier-item-icon {
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
}

.tier-item-details {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    min-width: 0;
}

.tier-item-name {
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 6px;
}

.tier-item-qty {
    font-weight: 800;
    color: #fb923c;
    flex-shrink: 0;
}

.tier-item-opt-hint {
    margin-left: 4px;
    cursor: help;
    font-size: 11px;
}

/* ============================================================================
   PET ITEMS 2-COLUMN LAYOUT (Admin Tra Cứu)
   ========================================================================= */
.pet-items-grid-2col {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
}
@media (max-width: 640px) {
    .pet-items-grid-2col {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================================
   TOP REWARDS COUNTDOWN & CLAIM ACTION
   ========================================================================= */
.top-countdown-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    color: #e2e8f0;
    margin-top: 4px;
}
.top-countdown-box .timer-digits {
    font-family: 'Courier New', monospace;
    font-weight: 800;
    color: #fbbf24;
    font-size: 13.5px;
    letter-spacing: 0.5px;
}
.top-claim-action-box {
    background: linear-gradient(135deg, rgba(20, 83, 45, 0.9) 0%, rgba(6, 78, 59, 0.95) 100%);
    border: 2px solid #22c55e;
    border-radius: 10px;
    padding: 14px 18px;
    margin-top: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.35);
}
.top-claim-info {
    font-size: 13.5px;
    color: #f0fdf4;
    line-height: 1.5;
}
.btn-claim-top-reward {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    font-size: 13.5px;
    font-weight: 800;
    padding: 10px 22px;
    border-radius: 8px;
    border: 1px solid #86efac;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
    transition: transform 0.15s ease, filter 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.btn-claim-top-reward:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}
.btn-claim-top-reward:active {
    transform: translateY(0);
}
.top-claimed-badge {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 10px 14px;
    color: #94a3b8;
    font-size: 13px;
    margin-top: 12px;
}

/* ============================================================================
   RANKING TABLES RESPONSIVE (Mobile friendly)
   ========================================================================= */
.ranking-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 12px;
    border-radius: 8px;
}
.ranking-table-responsive::-webkit-scrollbar {
    height: 6px;
}
.ranking-table-responsive::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 4px;
}
.ranking-table-responsive::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.4);
    border-radius: 4px;
}
@media (max-width: 768px) {
    .ranking-table-responsive table.data {
        min-width: 540px;
    }
    .ranking-table-responsive table.data th,
    .ranking-table-responsive table.data td {
        padding: 7px 5px !important;
        font-size: 12px !important;
    }
    .ranking-table-responsive .rank-badge-cell {
        font-size: 11px !important;
        padding: 1px 4px !important;
    }
}

/* ============================================================================
   NẠP NGỌC (PAYMENT PAGE) – Dark Obsidian Gold Gaming Theme
   ========================================================================= */

.payment-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 0;
}

/* --- Promo Banner --- */
.payment-promo-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(255, 106, 0, 0.12) 100%);
    border: 1px solid var(--ki-gold);
    border-radius: 12px;
    padding: 18px 24px;
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.15), inset 0 1px 0 rgba(253, 224, 71, 0.15);
}
.payment-promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(245, 158, 11, 0.06) 25%, transparent 50%);
    animation: promoSpin 8s linear infinite;
}
@keyframes promoSpin { to { transform: rotate(360deg); } }

.promo-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--ki-orange), var(--ki-gold));
    color: #0c0e12;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}
.promo-headline {
    color: var(--ki-gold-bright);
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    position: relative;
    z-index: 1;
}
.promo-desc {
    color: var(--text-dim);
    font-size: 13px;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

/* --- Account Info Bar --- */
.payment-account-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--hud-border);
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-main);
}
.pai-left, .pai-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.pai-icon { font-size: 16px; }
.pai-sep { color: var(--text-dim); margin: 0 4px; }
.text-gold { color: var(--ki-gold-bright) !important; }
.text-emerald { color: #34d399 !important; }

/* --- Transfer Box --- */
.payment-transfer-box {
    background: var(--bg-surface-card);
    border: 1px solid var(--hud-border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--ki-glow);
}
.ptb-header {
    background: linear-gradient(90deg, rgba(2, 132, 199, 0.15), rgba(245, 158, 11, 0.1));
    border-bottom: 1px solid var(--hud-border);
    padding: 14px 20px;
    text-align: center;
}
.ptb-header h3 {
    color: var(--ki-gold-bright);
    font-size: 17px;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}
.ptb-header p {
    color: var(--text-dim);
    font-size: 12px;
    margin: 4px 0 0;
}
.ptb-body {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}
.ptb-qr-side {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-right: 1px solid var(--hud-border);
}
.ptb-qr-frame {
    background: #fff;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.ptb-qr-img {
    display: block;
    max-width: 180px;
    height: auto;
    border-radius: 6px;
}
.ptb-qr-hint {
    color: var(--text-dim);
    font-size: 11px;
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
}
.ptb-info-side {
    flex: 1 1 300px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ptb-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ptb-label {
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 600;
    min-width: 120px;
}
.ptb-value {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
}
.ptb-account-no {
    color: var(--ki-gold-bright) !important;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Copy Buttons */
.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(2, 132, 199, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-copy:hover {
    background: rgba(2, 132, 199, 0.3);
    border-color: #38bdf8;
}
.btn-copy.copied {
    background: rgba(52, 211, 153, 0.2) !important;
    color: #34d399 !important;
    border-color: #34d399 !important;
}
.btn-copy-primary {
    background: linear-gradient(135deg, var(--ki-gold), var(--ki-orange));
    color: #0c0e12;
    border: none;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
}
.btn-copy-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}
.btn-copy-primary.copied {
    background: #34d399 !important;
}

/* Transfer Content */
.ptb-transfer-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ptb-transfer-value-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px dashed var(--ki-gold);
    border-radius: 8px;
    padding: 8px 12px;
}
.ptb-transfer-value {
    color: var(--ki-gold-bright);
    font-size: 16px;
    font-weight: 800;
    word-break: break-all;
    flex: 1;
}
.ptb-warning {
    background: rgba(245, 158, 11, 0.06);
    border-left: 3px solid var(--ki-gold);
    padding: 8px 12px;
    color: var(--text-dim);
    font-size: 11px;
    border-radius: 0 6px 6px 0;
    line-height: 1.5;
}

/* --- Conversion Table Box --- */
.payment-conversion-box,
.payment-history-box {
    background: var(--bg-surface-card);
    border: 1px solid var(--hud-border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
}
.pcb-header, .phb-header {
    background: linear-gradient(90deg, rgba(2, 132, 199, 0.12), rgba(245, 158, 11, 0.08));
    border-bottom: 1px solid var(--hud-border);
    padding: 12px 20px;
    text-align: center;
}
.pcb-header h3, .phb-header h3 {
    color: var(--ki-gold-bright);
    font-size: 15px;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
}
.pcb-header p {
    color: var(--text-dim);
    font-size: 12px;
    margin: 2px 0 0;
}
.payment-conv-table,
.payment-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.payment-conv-table thead tr,
.payment-history-table thead tr {
    background: rgba(2, 132, 199, 0.12);
}
.payment-conv-table th,
.payment-history-table th {
    color: var(--ki-gold-bright);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    padding: 10px 8px;
    border-bottom: 1px solid var(--hud-border);
    text-align: center;
}
.payment-conv-table td,
.payment-history-table td {
    padding: 10px 8px;
    color: var(--text-main);
    border-bottom: 1px solid rgba(2, 132, 199, 0.1);
    text-align: center;
}
.payment-conv-table tbody tr:hover,
.payment-history-table tbody tr:hover {
    background: rgba(245, 158, 11, 0.05);
}
.payment-conv-table td small {
    color: #34d399;
    font-weight: 600;
}
.pcb-note {
    padding: 10px 16px;
    color: var(--text-dim);
    font-size: 11px;
    text-align: center;
    border-top: 1px solid rgba(2, 132, 199, 0.08);
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}
.status-ok {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}
.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--ki-gold);
}

.payment-empty {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-dim);
    font-size: 14px;
}

/* --- Admin Payment Config --- */
.payment-admin-config {
    max-width: 700px;
}
.payment-admin-config .config-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.payment-admin-config .config-field label {
    min-width: 160px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 13px;
}
.payment-admin-config .config-field input[type="text"],
.payment-admin-config .config-field input[type="number"],
.payment-admin-config .config-field select {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--hud-border);
    border-radius: 6px;
    color: var(--text-main);
    font-size: 13px;
}
.payment-admin-config .config-field input:focus,
.payment-admin-config .config-field select:focus {
    border-color: var(--ki-gold);
    outline: none;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}
.promo-quick-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.promo-quick-btns button {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--hud-border);
    color: var(--text-main);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.promo-quick-btns button:hover,
.promo-quick-btns button.active {
    background: var(--ki-gold);
    color: #0c0e12;
    border-color: var(--ki-gold);
}

/* --- Responsive Mobile --- */
@media (max-width: 640px) {
    .payment-page { padding: 6px; }
    .promo-headline { font-size: 16px; }
    .payment-account-info { flex-direction: column; align-items: flex-start; }
    .pai-sep { display: none; }
    .ptb-qr-side {
        flex: 0 0 auto;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--hud-border);
        padding: 16px;
    }
    .ptb-info-side { padding: 16px; }
    .ptb-label { min-width: auto; }
    .ptb-account-no { font-size: 15px; }
    .ptb-transfer-value { font-size: 14px; }
}


/* ============================================================================
   ULTRA GAMING DARK HUD: ĐIỂM DANH, AUTH (LOGIN/REGISTER) & DIỄN ĐÀN CỘNG ĐỒNG
   ========================================================================= */

/* -------------------------------------------------------------
   1. ĐIỂM DANH HẰNG NGÀY (DRAGON BALL HUD CHECKIN)
   ------------------------------------------------------------- */
.nro-checkin-board {
    background: linear-gradient(180deg, rgba(8, 24, 52, 0.97) 0%, rgba(4, 14, 32, 0.99) 100%);
    border: 2px solid #0284c7;
    border-radius: 16px;
    padding: 22px 18px 24px;
    box-shadow: 0 0 30px rgba(2, 132, 199, 0.35), 0 10px 40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.nro-checkin-board::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8, #f59e0b, #38bdf8, transparent);
}

.checkin-hud-header {
    text-align: center;
    margin-bottom: 20px;
}

.checkin-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(2, 132, 199, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 20px;
    padding: 3px 14px;
    font-size: 11px;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.checkin-badge-top .badge-star {
    color: #facc15;
}

.checkin-title-main {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(56, 189, 248, 0.6), 0 2px 6px rgba(0, 0, 0, 0.9);
}

.checkin-subtitle {
    margin: 0 0 16px;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.4;
}

/* Checkin Player Stats Bar */
.checkin-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    background: rgba(3, 12, 28, 0.85);
    border: 1px solid rgba(2, 132, 199, 0.35);
    border-radius: 14px;
    padding: 12px 18px;
    margin: 0 auto;
    max-width: 720px;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.5);
}

.checkin-stat-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(8, 26, 56, 0.95);
    border: 1.5px solid rgba(2, 132, 199, 0.45);
    border-radius: 10px;
    padding: 8px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.checkin-stat-pill:hover {
    background: rgba(12, 36, 76, 0.98);
    border-color: #38bdf8;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.45);
    transform: translateY(-1px);
}

.checkin-stat-pill .stat-ico {
    font-size: 20px;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
    flex-shrink: 0;
}

.checkin-stat-pill .stat-txt {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.checkin-stat-pill .stat-txt small {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    line-height: 1.2;
}

.checkin-stat-pill .stat-txt strong {
    font-size: 14.5px;
    color: #ffffff;
    font-weight: 900;
    line-height: 1.3;
    margin-top: 2px;
}

.stat-highlight-warn {
    color: #fbbf24 !important;
}

.stat-highlight-ok {
    color: #4ade80 !important;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

.stat-highlight-ready {
    color: #facc15 !important;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.7);
    animation: textKiPulse 1.4s infinite alternate;
}

.stat-highlight-lock {
    color: #64748b !important;
}

@keyframes textKiPulse {
    0% { transform: scale(1); filter: brightness(1); }
    100% { transform: scale(1.02); filter: brightness(1.2); }
}

/* Quick Action Checkin Hero Button */
.checkin-quick-action {
    margin-top: 14px;
}

.btn-checkin-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, #ffb800 0%, #ff8800 50%, #e65c00 100%);
    color: #110702 !important;
    font-size: 14px;
    font-weight: 900;
    padding: 10px 28px;
    border-radius: 25px;
    border: 1.5px solid #ffd000;
    box-shadow: 0 0 20px rgba(255, 136, 0, 0.7), 0 4px 12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    animation: btnKiFloat 2s ease-in-out infinite alternate;
}

.btn-checkin-hero-cta:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 28px rgba(255, 170, 0, 0.9), 0 6px 18px rgba(0, 0, 0, 0.8);
    filter: brightness(1.15);
}

.btn-checkin-hero-cta .cta-flame {
    font-size: 16px;
}

@keyframes btnKiFloat {
    0% { box-shadow: 0 0 16px rgba(255, 136, 0, 0.5); }
    100% { box-shadow: 0 0 26px rgba(255, 170, 0, 0.85); }
}

/* Checkin Grid & Slots */
.checkin-cards-wrap {
    margin-top: 10px;
}

.checkin-slots-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.checkin-card-slot {
    background: linear-gradient(180deg, rgba(11, 30, 61, 0.85) 0%, rgba(6, 18, 38, 0.95) 100%);
    border: 1.5px solid rgba(2, 132, 199, 0.4);
    border-radius: 12px;
    padding: 10px 6px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 125px;
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.checkin-card-slot:hover {
    transform: translateY(-4px);
    border-color: #38bdf8;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.45);
}

.card-day-tag {
    font-size: 10.5px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.card-reward-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 6px 0;
    width: 100%;
}

.reward-icon-holder {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.2) 0%, transparent 70%);
    border-radius: 8px;
}

.reward-icon-img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
    transition: transform 0.2s ease;
}

.checkin-card-slot:hover .reward-icon-img {
    transform: scale(1.15);
}

.reward-fallback-chest {
    font-size: 28px;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.6));
}

.reward-qty-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #0284c7;
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
}

.reward-name-text {
    font-size: 11px;
    font-weight: 700;
    color: #e2e8f0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
    margin-top: 3px;
    line-height: 1.2;
}

/* Card Status Badges */
.card-status-badge {
    width: 100%;
    text-align: center;
    margin-top: 2px;
}

.badge-claimed-label {
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(74, 222, 128, 0.4);
    color: #4ade80;
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    letter-spacing: 0.3px;
}

.badge-claimed-label .icon-chk {
    font-size: 10px;
}

.badge-active-label {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.6);
}

.pulse-dot {
    width: 5px;
    height: 5px;
    background: #ffffff;
    border-radius: 50%;
    animation: dotBlink 1s infinite alternate;
}

@keyframes dotBlink {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

.badge-locked-label {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.badge-locked-label .icon-lock {
    font-size: 9px;
}

/* Card States: Claimed, Active Today, Locked, Jackpot */
.checkin-card-slot.is-claimed {
    background: linear-gradient(180deg, rgba(6, 32, 20, 0.85) 0%, rgba(3, 18, 12, 0.95) 100%);
    border-color: rgba(34, 197, 94, 0.45);
}

.checkin-card-slot.is-claimed .reward-icon-img {
    filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.5));
}

.checkin-card-slot.is-active-today {
    background: linear-gradient(180deg, rgba(30, 22, 6, 0.95) 0%, rgba(18, 12, 3, 0.98) 100%);
    border: 2px solid #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.55), inset 0 0 10px rgba(245, 158, 11, 0.25);
    animation: activeSlotPulse 2s infinite alternate;
}

@keyframes activeSlotPulse {
    0% { box-shadow: 0 0 14px rgba(245, 158, 11, 0.45); }
    100% { box-shadow: 0 0 24px rgba(245, 158, 11, 0.8); }
}

.checkin-card-slot.is-active-today .card-day-tag {
    color: #fde047;
    font-weight: 900;
}

.checkin-card-slot.is-locked {
    opacity: 0.72;
    background: linear-gradient(180deg, rgba(10, 20, 38, 0.7) 0%, rgba(6, 13, 26, 0.85) 100%);
    border-color: rgba(148, 163, 184, 0.2);
}

.checkin-card-slot.is-locked:hover {
    opacity: 1;
    border-color: rgba(56, 189, 248, 0.4);
}

/* Special Milestone / Jackpot Slot (Day 7) */
.checkin-card-slot.is-jackpot {
    background: linear-gradient(180deg, rgba(38, 16, 56, 0.85) 0%, rgba(20, 8, 32, 0.95) 100%);
    border-color: #d946ef;
    box-shadow: 0 0 18px rgba(217, 70, 239, 0.35);
}

.checkin-card-slot.is-jackpot.is-active-today {
    border-color: #f59e0b;
    box-shadow: 0 0 26px rgba(245, 158, 11, 0.8), 0 0 18px rgba(217, 70, 239, 0.5);
}

.tag-jackpot {
    color: #fde047;
    font-weight: 900;
    text-shadow: 0 0 6px rgba(253, 224, 71, 0.6);
}

/* Footer Notes */
.checkin-footer-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(3, 12, 28, 0.6);
    border: 1px solid rgba(2, 132, 199, 0.25);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 12px;
    color: #94a3b8;
    flex-wrap: wrap;
}

.note-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Checkin Modal Popup Dark HUD */
.checkin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 8, 20, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.checkin-modal-overlay.is-open {
    display: flex !important;
}

.checkin-modal-box {
    background: linear-gradient(180deg, #091e3e 0%, #051329 100%);
    border: 2px solid #0099ff;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 0 40px rgba(0, 153, 255, 0.5), 0 20px 60px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    animation: modalPopIn 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes modalPopIn {
    0% { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.checkin-modal-header {
    background: linear-gradient(180deg, rgba(2, 132, 199, 0.35) 0%, rgba(2, 132, 199, 0.15) 100%);
    border-bottom: 1.5px solid rgba(2, 132, 199, 0.5);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.modal-header-decor {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fde047;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(253, 224, 71, 0.5);
}

.modal-star {
    font-size: 12px;
}

.modal-btn-close-corner {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: all 0.2s;
}

.modal-btn-close-corner:hover {
    color: #fde047;
    transform: scale(1.2);
}

.checkin-modal-body {
    padding: 18px 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-status-badge-wrap {
    margin-bottom: 14px;
    text-align: center;
}

.modal-badge-hud {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
}

.modal-badge-hud.badge-warn {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fde047;
}

.modal-badge-hud.badge-ok {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.modal-badge-hud.badge-ready {
    background: rgba(245, 158, 11, 0.25);
    border: 1.5px solid #f59e0b;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
}

.modal-badge-hud.badge-lock {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #94a3b8;
}

.modal-items-title {
    font-size: 11px;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.modal-items-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-rpg-item-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(7, 21, 46, 0.8);
    border: 1px solid rgba(2, 132, 199, 0.3);
    border-radius: 10px;
    padding: 8px 12px;
    transition: all 0.2s;
}

.modal-rpg-item-card:hover {
    border-color: #0284c7;
    background: rgba(11, 30, 64, 0.9);
}

.item-card-icon-box {
    width: 44px;
    height: 44px;
    background: rgba(3, 12, 30, 0.9);
    border: 1.5px solid rgba(2, 132, 199, 0.45);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.item-card-img {
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
}

.item-card-meta {
    flex: 1;
}

.item-card-name {
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
}

.item-card-qty {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 2px;
}

.item-card-qty strong {
    color: #facc15;
    font-size: 13px;
}

.checkin-modal-footer {
    background: rgba(3, 12, 28, 0.75);
    border-top: 1px solid rgba(2, 132, 199, 0.35);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.modal-action-slot {
    flex: 1;
}

.btn-modal-action {
    width: 100%;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-modal-claim {
    background: linear-gradient(180deg, #ffb800 0%, #ff8800 50%, #e65c00 100%);
    color: #110702 !important;
    border: 1.5px solid #ffd000;
    box-shadow: 0 4px 14px rgba(255, 136, 0, 0.6);
}

.btn-modal-claim:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 170, 0, 0.85);
    filter: brightness(1.15);
}

.btn-modal-login {
    background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    border: 1px solid #38bdf8;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.5);
}

.btn-modal-login:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

.btn-modal-disabled {
    background: rgba(148, 163, 184, 0.15);
    color: #64748b;
    border: 1px solid rgba(148, 163, 184, 0.2);
    cursor: not-allowed;
}

.btn-checkin-modal-close {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #94a3b8;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-checkin-modal-close:hover {
    color: #ffffff;
    border-color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
}


/* -------------------------------------------------------------
   2. AUTH PORTAL (ĐĂNG NHẬP & ĐĂNG KÝ ANIME SHOWCASE)
   ------------------------------------------------------------- */
.nro-auth-container {
    max-width: 520px;
    margin: 15px auto 30px;
}

.nro-auth-card {
    display: flex;
    background: linear-gradient(135deg, rgba(8, 26, 56, 0.95) 0%, rgba(4, 15, 36, 0.98) 100%);
    border: 2px solid #0284c7;
    border-radius: 18px;
    box-shadow: 0 0 35px rgba(2, 132, 199, 0.35), 0 15px 50px rgba(0, 0, 0, 0.85);
    overflow: hidden;
    position: relative;
}

.nro-auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8, #f59e0b, transparent);
    z-index: 5;
}

/* Auth Left Showcase */
.auth-showcase-side {
    flex: 0 0 45%;
    background: linear-gradient(180deg, rgba(3, 14, 34, 0.8) 0%, rgba(2, 9, 22, 0.95) 100%);
    border-right: 1.5px solid rgba(2, 132, 199, 0.35);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-showcase-side::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.auth-showcase-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    background: rgba(2, 132, 199, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.auth-hero-title {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.auth-hero-desc {
    margin: 0 0 16px;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
}

.auth-character-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 10px 0 18px;
}

.auth-goku-art {
    height: 200px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(250, 204, 21, 0.65)) drop-shadow(0 0 32px rgba(234, 88, 12, 0.45)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.9));
    animation: authGokuFloat 4s ease-in-out infinite alternate;
}

@keyframes authGokuFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-7px); }
}

.auth-ki-glow-sphere {
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.auth-features-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: auto;
}

.auth-feat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12px;
    color: #e2e8f0;
    font-weight: 600;
}

.auth-feat-item .feat-ico {
    font-size: 14px;
    flex-shrink: 0;
}

/* Auth Right Form */
.auth-form-side {
    flex: 1;
    padding: 32px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(7, 20, 44, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.auth-form-header {
    text-align: center;
    margin-bottom: 20px;
}

.auth-form-tag {
    font-size: 10px;
    font-weight: 900;
    color: #0284c7;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.auth-form-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.auth-form-sub {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

.auth-flash {
    margin-bottom: 16px !important;
}

.auth-hud-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #cbd5e1;
}

.auth-label .label-ico {
    font-size: 14px;
}

.auth-label small {
    font-weight: 500;
}

.auth-control {
    width: 100% !important;
    background: rgba(3, 11, 26, 0.85) !important;
    border: 1.5px solid rgba(2, 132, 199, 0.38) !important;
    border-radius: 10px !important;
    padding: 11px 14px !important;
    font-size: 14px !important;
    color: #ffffff !important;
    outline: none !important;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}

.auth-control:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.4), inset 0 1px 4px rgba(0, 0, 0, 0.3) !important;
    background: rgba(5, 17, 38, 0.95) !important;
}

.auth-control::placeholder {
    color: #64748b !important;
}

.auth-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-input {
    width: 120px !important;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
}

.auth-captcha-img-box {
    cursor: pointer;
    border: 1px solid rgba(2, 132, 199, 0.4);
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
}

.auth-captcha-img-box:hover {
    transform: scale(1.03);
    border-color: #38bdf8;
}

.btn-auth-submit {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(180deg, #ffb800 0%, #ff8800 50%, #e65c00 100%);
    color: #110702 !important;
    font-size: 14.5px;
    font-weight: 900;
    padding: 12px 24px;
    border-radius: 10px;
    border: 1.5px solid #ffd000;
    box-shadow: 0 4px 18px rgba(255, 136, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 170, 0, 0.85);
    filter: brightness(1.15);
}

.btn-auth-submit:active {
    transform: translateY(0);
}

.btn-auth-submit .btn-arrow {
    font-size: 16px;
    font-weight: 900;
    transition: transform 0.2s;
}

.btn-auth-submit:hover .btn-arrow {
    transform: translateX(4px);
}

.auth-footer-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(2, 132, 199, 0.2);
}

.auth-switch-prompt {
    font-size: 13.5px;
    color: #cbd5e1;
    text-align: center;
}

.auth-link-highlight {
    color: #facc15 !important;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(250, 204, 21, 0.4);
    margin-left: 4px;
}

.auth-link-highlight:hover {
    color: #fde047 !important;
    text-decoration: underline;
}

.auth-security-note {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

.note-lock-ico {
    font-size: 12px;
}


/* -------------------------------------------------------------
   3. DIỄN ĐÀN CỘNG ĐỒNG (COMMUNITY FORUM & COMPOSER HUD)
   ------------------------------------------------------------- */
/* Trophy Leaderboard Banner */
.forum-leaderboard-banner {
    margin-bottom: 16px;
}

.leaderboard-banner-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(90deg, rgba(38, 22, 6, 0.95) 0%, rgba(18, 12, 3, 0.98) 50%, rgba(38, 22, 6, 0.95) 100%);
    border: 1.5px solid #f59e0b;
    border-radius: 14px;
    padding: 12px 20px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.35), 0 6px 18px rgba(0, 0, 0, 0.6);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none !important;
}

.leaderboard-banner-card:hover {
    transform: translateY(-2px);
    border-color: #fde047;
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.65);
}

.banner-badge-trophy {
    width: 44px;
    height: 44px;
    background: rgba(245, 158, 11, 0.2);
    border: 1.5px solid #fbbf24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.trophy-pulse {
    font-size: 22px;
}

.banner-text-info {
    flex: 1;
    min-width: 0;
}

.banner-headline {
    color: #fde047;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.banner-subline {
    color: #cbd5e1;
    font-size: 12.5px;
    margin-top: 2px;
}

.banner-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(180deg, #ffb800 0%, #ea580c 100%);
    color: #110702 !important;
    font-size: 12px;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(234, 88, 12, 0.5);
    white-space: nowrap;
    transition: transform 0.2s;
}

.leaderboard-banner-card:hover .banner-btn-action {
    transform: scale(1.05);
}

/* Forum Hub Card */
.forum-hub-hud-card {
    background: linear-gradient(180deg, rgba(8, 24, 52, 0.96) 0%, rgba(4, 14, 32, 0.98) 100%);
    border: 2px solid #0284c7;
    border-radius: 16px;
    box-shadow: 0 0 28px rgba(2, 132, 199, 0.35), 0 10px 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    margin-bottom: 20px;
}

.forum-hub-header {
    background: rgba(3, 14, 34, 0.85);
    border-bottom: 1.5px solid rgba(2, 132, 199, 0.35);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.hub-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(2, 132, 199, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 14px;
    padding: 2px 10px;
    font-size: 10.5px;
    font-weight: 800;
    color: #38bdf8;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.hub-title-main {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hub-subtitle {
    margin: 0;
    font-size: 12.5px;
    color: #94a3b8;
}

.btn-quick-post-anchor {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(180deg, #ffb800 0%, #ff8800 50%, #e65c00 100%);
    color: #110702 !important;
    font-size: 12.5px;
    font-weight: 800;
    padding: 7px 16px;
    border-radius: 8px;
    border: 1px solid #ffd000;
    box-shadow: 0 2px 10px rgba(255, 136, 0, 0.5);
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-quick-post-anchor:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
}

/* Forum Threads List */
.forum-threads-container {
    padding: 12px 16px 16px;
}

.forum-threads-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.thread-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(8, 22, 46, 0.75);
    border: 1px solid rgba(2, 132, 199, 0.25);
    border-radius: 12px;
    padding: 12px 16px;
    text-decoration: none !important;
    transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.thread-item-row:hover {
    background: rgba(12, 32, 68, 0.9);
    border-color: #0284c7;
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.3);
}

.thread-item-row.is-pinned {
    background: linear-gradient(90deg, rgba(38, 16, 8, 0.8) 0%, rgba(12, 26, 52, 0.85) 100%);
    border-color: rgba(245, 158, 11, 0.5);
}

.thread-item-row.is-pinned:hover {
    border-color: #f59e0b;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
}

.thread-col-left {
    flex-shrink: 0;
}

.thread-avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #031028;
    border: 2px solid #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.45);
    flex-shrink: 0;
}

.thread-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thread-avatar-circle.is-bqt {
    border-color: #ea580c;
    box-shadow: 0 0 14px rgba(234, 88, 12, 0.65);
    background: #1a0802;
}

.thread-avatar-circle.is-bqt img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thread-col-center {
    flex: 1;
    min-width: 0;
}

.thread-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 3px;
}

.tag-thread-pinned {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.5);
}

.tag-thread-locked {
    font-size: 11px;
}

.tag-thread-media {
    font-size: 12px;
}

.thread-title-text {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    transition: color 0.2s;
    line-height: 1.35;
}

.thread-item-row:hover .thread-title-text {
    color: #fde047;
}

.thread-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
}

.author-name {
    color: #cbd5e1;
    font-weight: 600;
}

.badge-role-bqt-tiny {
    background: #ea580c;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 3px;
}

.meta-sep {
    color: #475569;
}

.thread-date {
    color: #94a3b8;
}

.thread-col-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.thread-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(3, 12, 28, 0.8);
    border: 1px solid rgba(2, 132, 199, 0.3);
    border-radius: 16px;
    padding: 4px 10px;
    font-size: 11.5px;
    color: #e2e8f0;
}

.thread-stat-pill strong {
    color: #facc15;
}

.pill-views {
    color: #94a3b8;
}

.thread-arrow-indicator {
    color: #0284c7;
    font-size: 14px;
    font-weight: 900;
    transition: transform 0.2s, color 0.2s;
}

.thread-item-row:hover .thread-arrow-indicator {
    color: #fde047;
    transform: translateX(3px);
}

/* Forum Pagination */
.forum-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
}

.pg-pill {
    padding: 6px 13px;
    border-radius: 8px;
    background: rgba(8, 22, 48, 0.85);
    border: 1px solid rgba(2, 132, 199, 0.35);
    color: #cbd5e1 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.pg-pill:hover {
    border-color: #38bdf8;
    color: #ffffff !important;
    background: rgba(14, 38, 78, 0.95);
}

.pg-pill.is-current {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff !important;
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* Forum Article View Card */
.forum-article-hud-card {
    background: linear-gradient(180deg, rgba(8, 24, 52, 0.96) 0%, rgba(4, 14, 32, 0.98) 100%);
    border: 2px solid #0284c7;
    border-radius: 16px;
    box-shadow: 0 0 28px rgba(2, 132, 199, 0.35), 0 10px 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    margin-bottom: 20px;
}

.article-header-meta {
    background: rgba(3, 14, 34, 0.8);
    border-bottom: 1.5px solid rgba(2, 132, 199, 0.35);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.article-author-cluster {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #031028;
    border: 2px solid #0099ff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 14px rgba(0, 153, 255, 0.5);
    flex-shrink: 0;
}

.article-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-author-avatar.is-bqt {
    border-color: #ea580c;
    box-shadow: 0 0 16px rgba(234, 88, 12, 0.7);
    background: #1a0802;
}

.article-author-avatar.is-bqt img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-title-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-username {
    font-size: 15px;
    color: #ffffff;
    font-weight: 800;
}

.badge-role-bqt {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.5);
}

.article-timestamp {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.badge-pinned-flame {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
}

.article-title-wrap {
    padding: 20px 20px 10px;
}

.article-headline {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.35;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.article-body-content {
    padding: 10px 20px 24px;
}

.article-media-box {
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid rgba(2, 132, 199, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    background: #030e20;
}

.article-featured-img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.article-text-paragraph {
    font-size: 14.5px;
    line-height: 1.7;
    color: #e2e8f0;
    word-break: break-word;
}

/* Comments Card */
.forum-comments-hud-card {
    background: linear-gradient(180deg, rgba(8, 24, 52, 0.96) 0%, rgba(4, 14, 32, 0.98) 100%);
    border: 2px solid #0284c7;
    border-radius: 16px;
    box-shadow: 0 0 28px rgba(2, 132, 199, 0.35);
    overflow: hidden;
    margin-bottom: 20px;
}

.comments-header {
    background: rgba(3, 14, 34, 0.8);
    border-bottom: 1.5px solid rgba(2, 132, 199, 0.35);
    padding: 14px 20px;
}

.comments-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-content-area {
    padding: 18px 20px;
}

.comments-stream {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.comment-bubble-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.comment-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #031028;
    border: 1.5px solid #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(2, 132, 199, 0.35);
}

.comment-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comment-user-avatar.is-bqt {
    border-color: #ea580c;
    box-shadow: 0 0 10px rgba(234, 88, 12, 0.6);
    background: #1a0802;
}

.comment-user-avatar.is-bqt img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-bubble-body {
    flex: 1;
    background: rgba(8, 22, 46, 0.7);
    border: 1px solid rgba(2, 132, 199, 0.3);
    border-radius: 12px;
    padding: 10px 14px;
}

.comment-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-user-name {
    font-size: 13.5px;
    color: #facc15;
    font-weight: 800;
}

.badge-role-bqt-small {
    background: #ea580c;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 4px;
}

.comment-time-stamp {
    font-size: 11.5px;
    color: #64748b;
    margin-left: auto;
}

.comment-text-view {
    font-size: 13.5px;
    line-height: 1.5;
    color: #e2e8f0;
}

.comment-submission-form {
    margin-top: 14px;
}

.comment-textarea {
    width: 100% !important;
    background: rgba(3, 11, 26, 0.85) !important;
    border: 1.5px solid rgba(2, 132, 199, 0.38) !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 13.5px !important;
    color: #ffffff !important;
    outline: none !important;
    resize: vertical;
}

.comment-textarea:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35) !important;
}

.btn-comment-submit {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(180deg, #0284c7, #0369a1);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid #38bdf8;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-comment-submit:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.comment-notice-box {
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-size: 13px;
    background: rgba(3, 12, 28, 0.7);
    border: 1px solid rgba(2, 132, 199, 0.25);
    color: #94a3b8;
}

.text-highlight {
    color: #facc15 !important;
    font-weight: 700;
}

.forum-back-nav {
    margin-bottom: 20px;
}

.btn-back-forum {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #38bdf8 !important;
    font-size: 13.5px;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-back-forum:hover {
    color: #fde047 !important;
    transform: translateX(-3px);
}

/* Forum Compose Form Card */
.forum-compose-hud-card {
    background: linear-gradient(180deg, rgba(8, 24, 52, 0.96) 0%, rgba(4, 14, 32, 0.98) 100%);
    border: 2px solid #0284c7;
    border-radius: 16px;
    box-shadow: 0 0 28px rgba(2, 132, 199, 0.35), 0 10px 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    margin-bottom: 20px;
}

.compose-header {
    background: rgba(3, 14, 34, 0.85);
    border-bottom: 1.5px solid rgba(2, 132, 199, 0.35);
    padding: 16px 20px;
}

.compose-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(2, 132, 199, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 10.5px;
    font-weight: 800;
    color: #38bdf8;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.compose-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.compose-sub {
    margin: 0;
    font-size: 12.5px;
    color: #94a3b8;
}

.compose-body {
    padding: 20px;
}

.compose-notice-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12.5px;
    color: #fde047;
    margin-bottom: 16px;
}

.compose-hud-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.compose-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.compose-label {
    font-size: 13px;
    font-weight: 700;
    color: #cbd5e1;
}

.text-req {
    color: #ef4444;
}

.compose-control {
    width: 100% !important;
    background: rgba(3, 11, 26, 0.85) !important;
    border: 1.5px solid rgba(2, 132, 199, 0.38) !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 13.5px !important;
    color: #ffffff !important;
    outline: none !important;
    transition: all 0.2s;
}

.compose-control:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35) !important;
}

.compose-file-wrapper {
    position: relative;
}

.compose-file-input {
    display: none;
}

.compose-file-label {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(3, 11, 26, 0.7);
    border: 1.5px dashed rgba(2, 132, 199, 0.45);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
}

.compose-file-label:hover {
    border-color: #38bdf8;
    color: #ffffff;
    background: rgba(5, 17, 38, 0.9);
}

/* Image Preview Box in Forum Compose */
.forum-image-preview-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(7, 21, 46, 0.95) 0%, rgba(4, 14, 32, 0.98) 100%);
    border: 1.5px solid #0284c7;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 14px rgba(2, 132, 199, 0.25);
    backdrop-filter: blur(8px);
    animation: fadeInPreview 0.25s ease-out;
}

@keyframes fadeInPreview {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preview-img-box {
    width: 120px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background: #020814;
    border: 1.5px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 10px rgba(0, 153, 255, 0.35);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-info-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 12px;
    flex-wrap: wrap;
}

.preview-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.preview-badge {
    display: inline-block;
    align-self: flex-start;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #34d399;
    font-size: 10.5px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.preview-filename {
    color: #fde047;
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.preview-filesize {
    color: #94a3b8;
    font-size: 12px;
}

.btn-remove-preview {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #f87171;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove-preview:hover {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
    transform: translateY(-1px);
}

/* Delete Article Button in Forum Detail */
.btn-delete-article {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fca5a5;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-delete-article svg {
    color: currentColor;
    flex-shrink: 0;
}

.btn-delete-article:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
    transform: translateY(-1px);
}

.btn-compose-submit {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, #ffb800 0%, #ff8800 50%, #e65c00 100%);
    color: #110702 !important;
    font-size: 13.5px;
    font-weight: 900;
    padding: 11px 26px;
    border-radius: 10px;
    border: 1.5px solid #ffd000;
    box-shadow: 0 3px 14px rgba(255, 136, 0, 0.6);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.btn-compose-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 170, 0, 0.8);
    filter: brightness(1.12);
}

.forum-login-prompt-hud {
    background: rgba(8, 24, 52, 0.85);
    border: 1.5px solid rgba(2, 132, 199, 0.35);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 20px;
}

.login-prompt-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.prompt-ico {
    font-size: 24px;
}

.prompt-txt {
    flex: 1;
    min-width: 200px;
}

.prompt-txt strong {
    font-size: 14.5px;
    color: #ffffff;
}

.prompt-txt p {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: #94a3b8;
}

.btn-prompt-login {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid #38bdf8;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.5);
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-prompt-login:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}


/* -------------------------------------------------------------
   4. RESPONSIVE MOBILE BREAKPOINTS
   ------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Điểm danh */
    .checkin-slots-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    .checkin-card-slot {
        min-height: 115px;
        padding: 8px 4px 6px;
    }
    .reward-icon-holder {
        width: 40px;
        height: 40px;
    }
    .reward-icon-img {
        max-width: 32px;
        max-height: 32px;
    }
    .reward-fallback-chest {
        font-size: 24px;
    }
    .reward-name-text {
        font-size: 10px;
    }
    .checkin-stats-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .checkin-stat-pill {
        justify-content: flex-start;
        padding: 8px 12px;
    }
    .checkin-footer-note {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Auth (Đăng nhập / Đăng ký) */
    .nro-auth-card {
        flex-direction: column;
    }
    .auth-showcase-side {
        flex: 0 0 auto;
        border-right: none;
        border-bottom: 1.5px solid rgba(2, 132, 199, 0.35);
        padding: 20px 18px;
    }
    .auth-goku-art {
        height: 130px;
    }
    .auth-features-list {
        display: none;
    }
    .auth-hero-desc {
        display: none;
    }
    .auth-form-side {
        padding: 22px 18px;
    }
    .auth-input-row {
        grid-template-columns: 1fr;
    }

    /* Diễn đàn */
    .leaderboard-banner-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .banner-badge-trophy {
        margin: 0 auto;
    }
    .forum-hub-header {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-quick-post-anchor {
        text-align: center;
        justify-content: center;
    }
    .thread-item-row {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 12px;
    }
    .thread-col-center {
        flex: 1 1 100%;
        order: 2;
    }
    .thread-col-left {
        order: 1;
    }
    .thread-col-right {
        order: 1;
        margin-left: auto;
    }
    .thread-arrow-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .checkin-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   NÚT ẨN/HIỆN MẬT KHẨU (PASSWORD VISIBILITY TOGGLE)
   ========================================================================== */
.pw-toggle-wrap {
    position: relative;
    width: 100%;
}

.auth-input-wrapper {
    position: relative;
}

.pw-toggle-wrap input,
.auth-input-wrapper input.has-toggle-pw,
.auth-input-wrapper:has(.btn-toggle-pw) input {
    padding-right: 42px !important;
}

.btn-toggle-pw {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    outline: none;
    padding: 6px;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 5;
    line-height: 1;
}

.btn-toggle-pw:hover {
    color: #38bdf8;
}

.btn-toggle-pw:focus-visible {
    outline: 2px solid #38bdf8;
    border-radius: 6px;
}

.btn-toggle-pw .eye-icon {
    width: 18px;
    height: 18px;
    pointer-events: none;
    vertical-align: middle;
}

.btn-toggle-pw .eye-hide {
    display: none;
}

.btn-toggle-pw .eye-show {
    display: block;
}

.btn-toggle-pw.is-visible {
    color: #38bdf8;
}

.btn-toggle-pw.is-visible .eye-show {
    display: none;
}

.btn-toggle-pw.is-visible .eye-hide {
    display: block;
}

/* ==========================================================================
   ADMIN PANEL & TABLES - MOBILE RESPONSIVE & HIGH CONTRAST THEME
   ========================================================================== */

/* 1. Item Scanner Readability & High Contrast */
.item-summary-card {
    color: #1e293b !important;
}
.item-summary-card strong {
    color: #0f172a !important;
}
.scan-server-badge {
    background: #fed7aa;
    color: #9a3412 !important;
    padding: 3px 9px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12.5px;
    display: inline-block;
}
.scan-count-badge {
    background: #e0f2fe;
    color: #0369a1 !important;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 800;
}
.scan-total-badge {
    background: #fef3c7;
    color: #b45309 !important;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 14px;
}
.item-scan-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    color: #4ade80 !important;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
    transition: all .15s ease;
    white-space: nowrap;
}
.item-scan-action-btn:hover {
    background: rgba(34, 197, 94, 0.35);
    border-color: #4ade80;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

/* 2. Top Rewards Grid & Tier Cards */
.top-rewards-tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

.day-card {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.day-card-header {
    min-width: 0;
    box-sizing: border-box;
    justify-content: space-between;
}

.item-row-legacy {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.admin-form-section {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* 3. Global Table Responsive Safeguards */
.table-responsive,
.ranking-table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 12px;
    border-radius: 8px;
    box-sizing: border-box;
}

.ranking-table-responsive::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
    height: 6px;
}
.ranking-table-responsive::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 4px;
}
.ranking-table-responsive::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.4);
    border-radius: 4px;
}

/* 4. Mobile Responsiveness Breakpoints */
@media (max-width: 768px) {
    .ranking-table-responsive table.data,
    .table-responsive table.data {
        min-width: 520px;
    }
    .ranking-table-responsive table.data th,
    .ranking-table-responsive table.data td,
    .table-responsive table.data th,
    .table-responsive table.data td {
        padding: 8px 6px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 640px) {
    /* Prevent page containers from blowing out horizontally */
    .bg-content {
        padding: 14px 10px !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
    }
    .bg-content .title {
        padding: 5px 12px !important;
        font-size: 13px !important;
    }
    .bg-content .title h4 {
        font-size: 13.5px !important;
    }

    /* Admin stats grid on phones */
    .admin-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .stat-card {
        padding: 12px 6px !important;
    }
    .stat-num {
        font-size: 20px !important;
    }
    .stat-label {
        font-size: 11px !important;
    }

    /* Stack form grids vertically on mobile to prevent input blowout */
    .admin-form-grid,
    .gc-form-grid,
    .top-event-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .admin-form-section {
        padding: 12px 10px !important;
        border-radius: 10px !important;
    }
    .admin-field {
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .admin-field input[type="text"],
    .admin-field input[type="number"],
    .admin-field input[type="datetime-local"],
    .admin-field input[type="date"],
    .admin-field input[type="time"],
    .admin-field select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Top Rewards tier cards stack 1 per row */
    .top-rewards-tier-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Tabs navigation touch friendly */
    .tabs {
        gap: 5px !important;
        margin: 8px 0 12px !important;
    }
    .tabs a {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    /* Search forms on mobile */
    .admin-panel form[method="get"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .admin-panel form[method="get"] input[type="text"],
    .admin-panel form[method="get"] select,
    .admin-panel form[method="get"] button,
    .admin-panel form[method="get"] a.admin-btn {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .item-row-opts .item-opt-input {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
    .opt-quick-btn {
        padding: 4px 6px !important;
        font-size: 10.5px !important;
    }
    .item-row-qty {
        flex-wrap: wrap;
    }
    .item-row-main {
        flex-wrap: wrap;
    }
    .add-item-btn {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}
