/* ==========================================================================
   MODERN GAMING THEME - NGOC RONG PURE
   Clean, High Contrast, Modern Glassmorphism & Gaming Aesthetics
   ========================================================================== */

:root {
    --primary-orange: #f97316;
    --primary-orange-dark: #ea580c;
    --primary-orange-light: #ffedd5;
    --gold-accent: #f59e0b;
    --gold-light: #fef3c7;
    --dark-slate: #0f172a;
    --card-bg: #ffffff;
    --body-text: #1e293b;
    --muted-text: #64748b;
    --border-subtle: rgba(249, 115, 22, 0.2);
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-elevated: 0 20px 30px -10px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
}

/* Base resets & typography */
body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif !important;
    color: var(--body-text);
}

/* Page Frame Container */
.page-layout-content {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 153, 0, 0.35) !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25) !important;
    border-radius: var(--radius-lg) !important;
    padding: 14px !important;
    max-width: 1160px;
    margin: 15px auto !important;
}

/* Header Container */
.page-layout-header-content {
    background: linear-gradient(180deg, #fff8f0 0%, #ffffff 100%) !important;
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: var(--radius-md) !important;
    padding: 20px 15px 15px 15px !important;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.05) !important;
}

/* Main Content Area */
.page-layout-body {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-soft) !important;
    margin: 15px 0 0 0 !important;
    padding: 24px 20px !important;
    overflow: visible !important;
}

.table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

.table th, .table td {
    vertical-align: middle !important;
}

.nowrap {
    white-space: nowrap !important;
}

/* Forum Custom Styles */
.forum-topic-card {
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.forum-topic-card:hover {
    border-color: #f97316;
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.12);
    transform: translateY(-2px);
}

.forum-topic-pinned {
    background: #fffdf7;
    border-left: 4px solid #f59e0b !important;
}

.forum-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f97316;
    background: #fff;
    flex-shrink: 0;
}

.forum-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}

/* User Card in Header */
.user-card-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 10px auto 16px auto;
    text-align: center;
}

.user-avatar-wrap {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    margin-bottom: 8px;
    transition: transform 0.25s ease;
}

.user-avatar-wrap:hover {
    transform: scale(1.06);
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 2px solid #fff;
}

.user-name-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}

.user-name-text {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.3px;
}

.badge-role-admin {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.badge-title {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    color: #fff;
}
.badge-expert { background: #800000; }
.badge-qa { background: #b45309; }
.badge-talk { background: #6366f1; }

.user-stats-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
}

.pill-server {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.pill-coin {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* Modern High-Contrast Buttons */
.header-menu-item,
.ant-btn.header-menu-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    padding: 7px 14px !important;
    height: 38px !important;
    line-height: 1 !important;
    box-shadow: 0 3px 10px rgba(234, 88, 12, 0.25) !important;
    text-shadow: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    animation: none !important;
    cursor: pointer;
    text-decoration: none !important;
}

.header-menu-item:hover,
.ant-btn.header-menu-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35) !important;
    filter: brightness(1.08) !important;
    color: #ffffff !important;
}

.header-menu-item-active,
.ant-btn.header-menu-item-active {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(234, 88, 12, 0.25) !important;
    animation: none !important;
}

/* Secondary Button Variations */
.btn-nav-cpanel {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border: 1px solid #f59e0b !important;
    color: #fbbf24 !important;
}

.btn-nav-logout {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.25) !important;
}

/* Header Login / Register buttons */
.header-btn-login {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    border-radius: var(--radius-sm) !important;
    border: none !important;
    padding: 8px 18px !important;
    font-weight: 600 !important;
    box-shadow: 0 3px 10px rgba(234, 88, 12, 0.25) !important;
    clip-path: none !important;
    text-shadow: none !important;
}
.header-btn-login:hover {
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%) !important;
    transform: translateY(-2px) !important;
}

/* Modern Marquee Bar */
.marquee-container {
    margin: 12px 0 !important;
}

.marquee-wrapper {
    background: #0f172a !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    border-radius: 30px !important;
    padding: 7px 15px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

.marquee-text {
    color: #fbbf24 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    animation: marquee-move 18s linear infinite !important;
}

/* Modern Download Buttons */
.download-nav-btn {
    height: 42px !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: var(--radius-sm) !important;
    color: #1e293b !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s ease !important;
}

.download-nav-btn:hover {
    background: #ffffff !important;
    border-color: var(--primary-orange) !important;
    color: var(--primary-orange) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15) !important;
}

/* Dragonball Title Banner */
.dragonball-title {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    font-family: inherit !important;
    font-weight: 800 !important;
    font-size: 18px !important;
    letter-spacing: 0.5px !important;
    padding: 10px 24px !important;
    border: none !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3) !important;
    max-width: 280px !important;
    margin: 15px auto !important;
    text-shadow: none !important;
}

/* News Feed Cards */
.home_page_listItem__GD_iE {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--radius-md) !important;
    margin: 10px 0 !important;
    padding: 14px 18px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s ease !important;
}

.home_page_listItem__GD_iE:hover {
    transform: translateX(4px) !important;
    border-color: var(--primary-orange) !important;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.12) !important;
}

.home_page_listItemTitle__YB3V5 a {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.home_page_listItemTitle__YB3V5 a:hover {
    color: var(--primary-orange) !important;
}

/* Ranking Buttons & Podium */
.dragonball-btn {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9) !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    padding: 8px 18px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    border-radius: 20px !important;
    text-shadow: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04) !important;
    transition: all 0.2s ease !important;
}

.dragonball-btn:hover {
    background: #ffffff !important;
    border-color: var(--primary-orange) !important;
    color: var(--primary-orange) !important;
    transform: translateY(-2px) !important;
}

.dragonball-btn.active {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    border-color: var(--primary-orange-dark) !important;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3) !important;
}

.title-top-rank {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    padding: 12px 30px !important;
    border-radius: 30px !important;
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3) !important;
    animation: none !important;
}

/* ==========================================================================
   ADMINCP DASHBOARD COMPONENTS
   ========================================================================== */

.admin-dashboard {
    padding: 10px 0;
}

.admin-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #fbbf24;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

.admin-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s ease;
}

.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevated);
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.icon-blue { background: #eff6ff; color: #2563eb; }
.icon-green { background: #f0fdf4; color: #16a34a; }
.icon-red { background: #fef2f2; color: #dc2626; }
.icon-gold { background: #fefce8; color: #ca8a04; }

.admin-stat-info h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.admin-stat-info p {
    margin: 0 !important;
    font-size: 13px;
    color: var(--muted-text);
    font-weight: 500;
}

/* Action Quick Grid */
.admin-actions-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 25px;
}

.admin-action-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none !important;
    color: #1e293b !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.admin-action-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.12);
    background: #fffaf5;
}

.admin-action-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.admin-action-details {
    display: flex;
    flex-direction: column;
}

.admin-action-title {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 2px;
}

.admin-action-desc {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.3;
}

/* Top Spenders Table / List in AdminCP */
.admin-topnap-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
}

.admin-topnap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-topnap-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
}
.admin-topnap-item:last-child {
    border-bottom: none;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 12px;
}
.rank-1 { background: #fef08a; color: #854d0e; }
.rank-2 { background: #e2e8f0; color: #475569; }
.rank-3 { background: #fed7aa; color: #9a3412; }

/* Admin Form Overhauls */
.modern-form-card {
    max-width: 650px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-soft);
}

.modern-form-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modern-form-group {
    margin-bottom: 18px;
}

.modern-form-label {
    display: block;
    font-weight: 600;
    font-size: 13.5px;
    color: #334155;
    margin-bottom: 6px;
}

.form-control, .form-select {
    border: 1px solid #cbd5e1 !important;
    border-radius: var(--radius-sm) !important;
    padding: 9px 12px !important;
    font-size: 14px !important;
    color: #0f172a !important;
    transition: all 0.2s ease !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-orange) !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15) !important;
    outline: none !important;
}

.btn-primary-action {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
}

.btn-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.35);
    filter: brightness(1.06);
    color: #ffffff;
}

.modern-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.modern-back-btn:hover {
    color: var(--primary-orange);
}

.modern-alert {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 18px;
}
