/* Gaming Hub - Dark Blue & Orange Theme */
:root,
[data-bs-theme="dark"] {
    --bs-primary: #ff6b2c;
    --bs-primary-rgb: 255, 107, 44;
    --bs-info: #1e3a5f;
    --bs-info-rgb: 30, 58, 95;
    --bs-link-color: #ff8c42;
    --bs-link-hover-color: #ff6b2c;
    --gh-primary: #ff6b2c;
    --gh-primary-dark: #e55a1f;
    --gh-primary-light: #ff8c42;
    --gh-secondary: #1e3a5f;
    --gh-secondary-dark: #0d1b33;
    --gh-secondary-light: #2a4a73;
    --gh-accent: #ffb347;
    --gh-success: #22c55e;
    --gh-warning: #f59e0b;
    --gh-danger: #ef4444;
    --gh-bg: #0a1628;
    --gh-bg-card: #112240;
    --gh-bg-sidebar: #0d1b33;
    --gh-bg-elevated: #1a3058;
    --gh-border: #1e3a5f;
    --gh-text: #e8edf5;
    --gh-text-muted: #8ba3c7;
    --sidebar-width: 260px;
    --gh-glow: rgba(255, 107, 44, 0.35);
    color-scheme: dark;
}

[data-bs-theme="light"] {
    --bs-primary: #ff6b2c;
    --bs-primary-rgb: 255, 107, 44;
    --bs-info: #1e3a5f;
    --bs-info-rgb: 30, 58, 95;
    --bs-link-color: #e55a1f;
    --bs-link-hover-color: #ff6b2c;
    --gh-primary: #ff6b2c;
    --gh-primary-dark: #e55a1f;
    --gh-primary-light: #ff8c42;
    --gh-secondary: #1e3a5f;
    --gh-secondary-dark: #0d1b33;
    --gh-secondary-light: #2a4a73;
    --gh-accent: #ffb347;
    --gh-bg: #eef1f6;
    --gh-bg-card: #ffffff;
    --gh-bg-sidebar: #ffffff;
    --gh-bg-elevated: #f8fafc;
    --gh-border: #d5deea;
    --gh-text: #1e293b;
    --gh-text-muted: #64748b;
    --gh-glow: rgba(255, 107, 44, 0.25);
    color-scheme: light;
}

[data-bs-theme="light"] body {
    background: var(--gh-bg);
    color: var(--gh-text);
}

[data-bs-theme="light"] .sidebar {
    background: var(--gh-bg-sidebar);
    border-right-color: var(--gh-border);
}

[data-bs-theme="light"] .topbar,
[data-bs-theme="light"] .card,
[data-bs-theme="light"] .game-card,
[data-bs-theme="light"] .match-card,
[data-bs-theme="light"] .gamer-today-card {
    background: var(--gh-bg-card);
    border-color: var(--gh-border);
}

[data-bs-theme="light"] .public-navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--gh-border);
}

[data-bs-theme="light"] .public-brand,
[data-bs-theme="light"] .public-tabs .nav-link {
    color: var(--gh-text);
}

[data-bs-theme="light"] .form-control,
[data-bs-theme="light"] .form-select {
    background: #fff;
    border-color: var(--gh-border);
    color: var(--gh-text);
}

[data-bs-theme="light"] .home-hero,
[data-bs-theme="light"] .gamer-of-week-card,
[data-bs-theme="light"] .leaderboard-mini,
[data-bs-theme="light"] .hero-stat-card,
[data-bs-theme="light"] .explore-card,
[data-bs-theme="light"] .home-section {
    color: var(--gh-text);
}

[data-bs-theme="light"] .hero-stat-value,
[data-bs-theme="light"] .section-header h2,
[data-bs-theme="light"] .gamer-of-week-card h3 {
    color: var(--gh-text);
}

* { box-sizing: border-box; }

body {
    background: var(--gh-bg);
    color: var(--gh-text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

/* Wrapper Layout */
.wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--gh-bg-sidebar);
    border-right: 1px solid var(--gh-border);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s;
}
.sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--gh-border);
}
.sidebar-brand {
    color: var(--gh-primary);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sidebar-brand i { font-size: 1.5rem; }
.sidebar-nav { list-style: none; padding: 0.75rem 0; margin: 0; }
.nav-section {
    padding: 0.75rem 1.25rem 0.25rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gh-text-muted);
    font-weight: 600;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    color: var(--gh-text-muted);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.nav-link:hover { color: var(--gh-text); background: rgba(255,107,44,0.08); }
.nav-link.active {
    color: var(--gh-primary);
    background: rgba(255,107,44,0.12);
    border-left-color: var(--gh-primary);
}
.nav-link i { width: 20px; text-align: center; }

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Topbar */
.topbar {
    background: var(--gh-bg-card);
    border-bottom: 1px solid var(--gh-border);
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 999;
}
.topbar-search { position: relative; flex: 1; max-width: 400px; }
.topbar-search i {
    position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%); color: var(--gh-text-muted);
}
.topbar-search input {
    padding-left: 2.5rem;
    background: var(--gh-bg);
    border: 1px solid var(--gh-border);
    color: var(--gh-text);
    border-radius: 8px;
}
.topbar-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gh-primary);
}
.notification-badge {
    position: absolute; top: -2px; right: -2px;
    background: var(--gh-danger);
    color: #fff; font-size: 0.65rem;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.notification-dropdown { width: 320px; max-height: 400px; overflow-y: auto; }
.notification-list .notif-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gh-border);
    cursor: pointer;
    transition: background 0.2s;
}
.notification-list .notif-item:hover { background: rgba(108,92,231,0.08); }
.notification-list .notif-item.unread { border-left: 3px solid var(--gh-primary); }

/* Cards */
.card {
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: 12px;
}
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--gh-border);
    font-weight: 600;
}

/* Stat Cards */
.stat-card {
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 4px; height: 100%;
}
.stat-card.primary::before { background: var(--gh-primary); }
.stat-card.success::before { background: var(--gh-success); }
.stat-card.warning::before { background: var(--gh-warning); }
.stat-card.danger::before { background: var(--gh-danger); }
.stat-card.info::before { background: var(--gh-secondary); }
.stat-card .stat-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; }
.stat-card .stat-label { color: var(--gh-text-muted); font-size: 0.85rem; }

/* Game Cards */
.game-card {
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--gh-glow);
}
.game-card-img {
    height: 160px;
    background: var(--gh-secondary-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: rgba(255,255,255,0.3);
}
[data-bs-theme="light"] .game-card-img {
    background: var(--gh-bg-elevated);
    color: var(--gh-text-muted);
}
.game-card-body { padding: 1rem; }

/* Station Cards */
.station-card {
    background: var(--gh-bg-card);
    border: 2px solid var(--gh-border);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.station-card.available { border-color: var(--gh-success); }
.station-card.occupied { border-color: var(--gh-warning); opacity: 0.7; }
.station-card.selected { border-color: var(--gh-primary); background: rgba(108,92,231,0.1); }
.station-card:hover:not(.occupied) { border-color: var(--gh-primary); }

/* Time Slot Grid */
.time-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.5rem; }
.time-slot {
    padding: 0.6rem;
    border: 1px solid var(--gh-border);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}
.time-slot.available:hover { border-color: var(--gh-primary); background: rgba(255,107,44,0.1); }
.time-slot.selected { border-color: var(--gh-primary); background: var(--gh-primary); color: #fff; }
.time-slot.booked { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }

/* Auth Pages */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gh-bg);
}
.auth-card {
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-logo i { font-size: 3rem; color: var(--gh-primary); }
.auth-logo h2 { font-weight: 700; margin-top: 0.5rem; }

/* Forms */
.form-control, .form-select {
    background: var(--gh-bg);
    border: 1px solid var(--gh-border);
    color: var(--gh-text);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
}
.form-control:focus, .form-select:focus {
    background: var(--gh-bg);
    border-color: var(--gh-primary);
    color: var(--gh-text);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 44, 0.25);
}
.form-label { font-weight: 500; font-size: 0.9rem; }

/* Buttons */
.btn-primary {
    background: var(--gh-primary);
    border-color: var(--gh-primary);
}
.btn-primary:hover { background: var(--gh-primary-dark); border-color: var(--gh-primary-dark); }
.btn-outline-primary { color: var(--gh-primary); border-color: var(--gh-primary); }
.btn-outline-primary:hover { background: var(--gh-primary); border-color: var(--gh-primary); color: #fff; }

/* Brand palette — orange & dark navy only (no bright bootstrap blue) */
.bg-primary { background-color: var(--gh-primary) !important; color: #fff !important; }
.bg-info { background-color: var(--gh-secondary) !important; color: #fff !important; }
.bg-gh-orange { background-color: var(--gh-primary) !important; color: #fff !important; }
.bg-gh-navy { background-color: var(--gh-secondary) !important; color: #fff !important; }
.btn-info { background: var(--gh-secondary); border-color: var(--gh-secondary); color: #fff; }
.btn-info:hover { background: var(--gh-secondary-light); border-color: var(--gh-secondary-light); color: #fff; }
.btn-outline-info { color: var(--gh-secondary-light); border-color: var(--gh-secondary); }
.btn-outline-info:hover { background: var(--gh-secondary); border-color: var(--gh-secondary); color: #fff; }

.nav-pills .nav-link {
    color: var(--gh-text-muted);
    background: transparent;
    border: 1px solid transparent;
}
.nav-pills .nav-link:hover {
    color: var(--gh-text);
    background: rgba(255, 107, 44, 0.08);
}
.nav-pills .nav-link.active {
    background-color: var(--gh-primary) !important;
    color: #fff !important;
    border-color: var(--gh-primary);
}
.nav-pills .nav-link.active .badge {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
}

.text-primary { color: var(--gh-primary) !important; }

.nav-tabs { border-bottom-color: var(--gh-border); }
.nav-tabs .nav-link {
    color: var(--gh-text-muted);
    border-color: transparent;
}
.nav-tabs .nav-link:hover {
    color: var(--gh-text);
    border-color: var(--gh-border);
}
.nav-tabs .nav-link.active {
    color: var(--gh-primary) !important;
    background: transparent;
    border-color: var(--gh-border) var(--gh-border) var(--gh-primary) !important;
}

.btn-gaming {
    background: var(--gh-primary);
    border: none; color: #fff; font-weight: 600;
    padding: 0.65rem 1.5rem; border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-gaming:hover { background: var(--gh-primary-dark); transform: translateY(-2px); box-shadow: 0 4px 20px var(--gh-glow); color: #fff; }
.btn-outline-orange {
    color: var(--gh-primary); border: 1px solid var(--gh-primary);
    background: transparent; font-weight: 600; border-radius: 8px;
    padding: 0.5rem 1rem;
}
.btn-outline-orange:hover { background: var(--gh-primary); color: #fff; }
.text-orange { color: var(--gh-primary) !important; }
.badge-orange { background: var(--gh-primary); color: #fff; }
.badge-live { background: rgba(239,68,68,0.2); color: #ef4444; border: 1px solid #ef4444; padding: 0.35rem 0.75rem; border-radius: 20px; font-size: 0.8rem; }

/* Tables */
.table { color: var(--gh-text); }
.table > :not(caption) > * > * { border-bottom-color: var(--gh-border); }
.table thead th {
    background: var(--gh-bg);
    color: var(--gh-text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--gh-border);
}

/* DataTables dark override */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background: var(--gh-bg); border: 1px solid var(--gh-border); color: var(--gh-text);
}
.page-link { background: var(--gh-bg-card); border-color: var(--gh-border); color: var(--gh-text); }
.page-item.active .page-link { background: var(--gh-primary); border-color: var(--gh-primary); }

/* Leaderboard */
.leaderboard-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gh-border);
}
.leaderboard-rank {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem;
}
.rank-1 { background: #ffd700; color: #000; }
.rank-2 { background: #c0c0c0; color: #000; }
.rank-3 { background: #cd7f32; color: #fff; }
.rank-default { background: var(--gh-border); color: var(--gh-text-muted); }

/* POS */
.pos-product {
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: 10px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.pos-product:hover { border-color: var(--gh-primary); background: rgba(108,92,231,0.08); }
.pos-cart { background: var(--gh-bg-card); border: 1px solid var(--gh-border); border-radius: 12px; }

.pos-product.selected { border-color: var(--gh-primary); background: rgba(108,92,231,0.12); }
.pos-product-img {
    width: 100%; height: 70px; object-fit: cover; border-radius: 6px;
}
.pos-product-img-placeholder {
    width: 100%; height: 70px; border-radius: 6px;
    background: linear-gradient(135deg, var(--gh-primary), var(--gh-secondary));
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.4); font-size: 1.5rem;
}
.product-thumb {
    width: 48px; height: 48px; object-fit: cover; border-radius: 8px;
    border: 1px solid var(--gh-border);
}
.product-thumb-lg { max-width: 120px; border-radius: 8px; }
.product-thumb-placeholder {
    width: 48px; height: 48px; border-radius: 8px;
    background: var(--gh-bg); border: 1px solid var(--gh-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--gh-text-muted);
}

/* Footer */
.footer-bar {
    background: var(--gh-bg-card);
    border-top: 1px solid var(--gh-border);
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
}

/* Print */
@media print {
    .sidebar, .topbar, .footer-bar { display: none !important; }
    .main-content { margin-left: 0 !important; }
    body { background: #fff; color: #000; }
    .card { border: 1px solid #ddd; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gh-bg); }
::-webkit-scrollbar-thumb { background: var(--gh-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gh-text-muted); }

/* Page header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.page-header h1 { font-size: 1.5rem; font-weight: 700; margin: 0; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gh-text-muted);
}
.empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }

/* Public Home Page */
.public-home { background: var(--gh-bg); }

.public-navbar {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gh-border);
    padding: 0.5rem 0;
}
.public-brand {
    color: var(--gh-primary) !important;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.public-brand i { font-size: 1.4rem; }

.public-tabs .nav-link {
    color: var(--gh-text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    transition: all 0.2s;
}
.public-tabs .nav-link:hover { color: var(--gh-text); background: rgba(255,107,44,0.08); }
.public-tabs .nav-link.active {
    color: var(--gh-primary);
    background: rgba(255,107,44,0.15);
}

.public-search { position: relative; min-width: 200px; }
.public-search i {
    position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%); color: var(--gh-text-muted);
    font-size: 0.85rem;
}
.public-search input {
    padding-left: 2.25rem;
    background: var(--gh-bg);
    border: 1px solid var(--gh-border);
    color: var(--gh-text);
    border-radius: 8px;
    font-size: 0.85rem;
    width: 100%;
    min-width: 180px;
}

.home-hero {
    padding: 3rem 0 2.5rem;
    background: var(--gh-bg);
    border-bottom: 1px solid var(--gh-border);
}
[data-bs-theme="light"] .home-hero {
    background: var(--gh-bg-card);
}
.hero-badge {
    display: inline-block;
    background: rgba(255,107,44,0.15);
    color: var(--gh-primary);
    border: 1px solid rgba(255,107,44,0.3);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--gh-text);
}
.hero-title .text-orange { color: var(--gh-primary); }
.hero-subtitle {
    color: var(--gh-text-muted);
    font-size: 1.1rem;
    max-width: 540px;
    margin-top: 0.75rem;
}

.hero-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(1.25rem, 2.5vw, 2rem);
    max-width: 1100px;
}
.hero-copy {
    flex: 1 1 320px;
    max-width: 540px;
}
.hero-image-wrap {
    flex: 0 0 auto;
    width: min(100%, 420px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--gh-border);
    background: var(--gh-bg-card);
    aspect-ratio: 4 / 3;
    max-height: 340px;
    box-shadow: 0 12px 32px rgba(15, 52, 96, 0.12);
}
.hero-stat-card {
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}
.hero-stat-card i { font-size: 1.5rem; color: var(--gh-primary); margin-bottom: 0.5rem; }
.hero-stat-value { font-size: 1.75rem; font-weight: 700; }
.hero-stat-label { color: var(--gh-text-muted); font-size: 0.8rem; }

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}
.hero-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--gh-text-muted);
    background: linear-gradient(135deg, rgba(255,107,44,0.08), rgba(15,52,96,0.12));
    text-align: center;
    padding: 1.5rem;
    border-radius: 20px;
}
.hero-image-placeholder i {
    font-size: 3rem;
    color: var(--gh-primary);
    opacity: 0.7;
}
.hero-image-placeholder span {
    font-size: 0.8rem;
    max-width: 220px;
}

.home-section {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--gh-border);
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.section-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.game-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.release-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gh-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}
.game-card-img { position: relative; }

.leaderboard-mini {
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: 10px;
    padding: 1rem;
}

.public-footer {
    background: var(--gh-bg-card);
    border-top: 1px solid var(--gh-border);
    padding: 1rem 0;
    color: var(--gh-text-muted);
    font-size: 0.85rem;
}

.public-main { min-height: calc(100vh - 120px); }

.alert-gh {
    background: rgba(255, 107, 44, 0.1);
    border: 1px solid rgba(255, 107, 44, 0.25);
    color: var(--gh-text);
}
[data-bs-theme="light"] .alert-gh {
    background: rgba(255, 107, 44, 0.08);
    border-color: rgba(255, 107, 44, 0.2);
}

.gamer-of-week-card {
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-top: 3px solid var(--gh-primary);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
}
.gow-crown {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
}
.gow-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffd700;
    box-shadow: 0 4px 20px rgba(255,215,0,0.3);
}

.topbar .btn-link,
.topbar .btn-link:hover,
.topbar .btn-link:focus {
    text-decoration: none !important;
    color: var(--gh-text);
    box-shadow: none;
}
.topbar .dropdown-item,
.topbar .dropdown-item:hover,
.topbar .dropdown-menu a {
    text-decoration: none !important;
}
.topbar .dropdown-toggle::after { display: none; }
.topbar .profile-dropdown-btn span { text-decoration: none !important; }

.explore-card,
.explore-card:hover,
.explore-card h6,
.explore-card p,
.explore-card * {
    text-decoration: none !important;
}
.explore-card {
    display: block;
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s;
    color: var(--gh-text);
}
.explore-card:hover {
    border-color: var(--gh-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--gh-glow);
    color: var(--gh-text);
}
.explore-card i { font-size: 1.75rem; margin-bottom: 0.75rem; display: block; }
.explore-card h6 { font-weight: 600; margin-bottom: 0.25rem; }
.explore-card p { font-size: 0.8rem; color: var(--gh-text-muted); margin: 0; }

@media (max-width: 991px) {
    .public-tabs { flex-wrap: wrap; margin-top: 0.5rem; }
    .public-search { width: 100%; margin-top: 0.5rem; }
    .hero-title { font-size: 1.75rem; }
    .hero-top {
        max-width: none;
    }
    .hero-copy {
        max-width: none;
    }
    .hero-image-wrap {
        width: 100%;
        max-height: none;
    }
}

/* Match Cards */
.match-card {
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: 14px;
    padding: 1.25rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.match-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.match-live { border-color: var(--gh-primary); box-shadow: 0 0 20px var(--gh-glow); }
.match-live-badge {
    position: absolute; top: 12px; right: 12px;
    background: rgba(239,68,68,0.2); color: #ef4444;
    border: 1px solid #ef4444; font-size: 0.7rem; font-weight: 700;
    padding: 0.2rem 0.6rem; border-radius: 12px;
    display: flex; align-items: center; gap: 0.35rem;
}
.pulse-dot {
    width: 6px; height: 6px; background: #ef4444; border-radius: 50%;
    animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
.match-vs { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.match-player { text-align: center; flex: 1; }
.match-player img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gh-border); margin-bottom: 0.35rem; }
.match-player span { font-size: 0.8rem; font-weight: 600; display: block; }
.match-score { text-align: center; min-width: 60px; }
.score-num { font-size: 1.5rem; font-weight: 800; color: var(--gh-primary); }
.score-sep { color: var(--gh-text-muted); margin: 0 0.25rem; }
.vs-text { font-size: 1.1rem; font-weight: 800; color: var(--gh-primary); }
.match-meta { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--gh-text-muted); margin-top: 0.75rem; }
.match-game { font-weight: 600; font-size: 0.9rem; }

/* Gamers Today */
.gamer-today-card {
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    position: relative;
    transition: all 0.2s;
}
.gamer-today-card:hover { border-color: var(--gh-primary); transform: translateY(-3px); }
.gamer-today-avatar-wrap { position: relative; display: inline-block; }
.gamer-today-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gh-secondary); }
.online-dot {
    position: absolute; bottom: 2px; right: 2px;
    width: 14px; height: 14px; background: #22c55e;
    border: 2px solid var(--gh-bg-card); border-radius: 50%;
}
.gamer-today-stats { display: flex; justify-content: center; gap: 1rem; margin-top: 0.5rem; font-size: 0.8rem; }
.level-badge {
    position: absolute; top: 8px; right: 8px;
    background: var(--gh-primary); color: #fff;
    font-size: 0.65rem; font-weight: 700;
    padding: 0.15rem 0.45rem; border-radius: 6px;
}

/* XP Bar */
.xp-bar-wrap { height: 6px; background: var(--gh-bg); border-radius: 3px; overflow: hidden; }
.xp-bar { height: 100%; background: var(--gh-primary); border-radius: 3px; }

/* Auth Gamified */
.auth-card-gamified { position: relative; overflow: hidden; border: 1px solid var(--gh-border); }
.auth-card-glow {
    position: absolute; top: -50%; right: -30%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, var(--gh-glow) 0%, transparent 70%);
    pointer-events: none;
}
.auth-icon-ring {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--gh-secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem; color: #fff; margin: 0 auto 1rem;
    box-shadow: 0 4px 20px var(--gh-glow);
}
.auth-level-badge {
    display: inline-block;
    background: rgba(255,107,44,0.15);
    color: var(--gh-primary);
    border: 1px solid rgba(255,107,44,0.3);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.auth-input {
    background: var(--gh-bg) !important;
    border: 1px solid var(--gh-border) !important;
    color: var(--gh-text) !important;
    border-radius: 8px !important;
}
.auth-input:focus { border-color: var(--gh-primary) !important; box-shadow: 0 0 0 0.2rem var(--gh-glow) !important; }
.auth-demo-box {
    background: var(--gh-bg);
    border: 1px solid var(--gh-border);
    border-radius: 10px;
    padding: 0.85rem;
}
.auth-modal-content {
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}
.auth-modal-glow {
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gh-primary);
}
.auth-modal .modal-content { color: var(--gh-text); }
[data-bs-theme="light"] .auth-modal-content .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(0.3);
}

/* Tom Select — dark blue & orange, rounded options */
.ts-wrapper.form-select,
.ts-wrapper.single .ts-control {
    background: var(--gh-bg) !important;
    border: 1px solid var(--gh-border) !important;
    border-radius: 8px !important;
    color: var(--gh-text) !important;
    min-height: 38px;
    padding: 0.35rem 0.5rem;
}
.ts-wrapper.single .ts-control {
    position: relative;
    padding-right: 2rem !important;
}
.ts-wrapper.single .ts-control::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--gh-text-muted);
    transform: translateY(-50%);
    pointer-events: none;
}
.ts-wrapper.single .ts-control:focus,
.ts-wrapper.focus .ts-control {
    border-color: var(--gh-primary) !important;
    box-shadow: 0 0 0 0.2rem var(--gh-glow) !important;
}
.ts-dropdown {
    background: var(--gh-bg-card) !important;
    border: 1px solid var(--gh-border) !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.ts-dropdown .option,
.ts-dropdown .ts-option-rounded,
.ts-dropdown .active {
    border-radius: 8px !important;
    margin: 2px 6px;
    padding: 0.5rem 0.75rem !important;
}
.ts-dropdown .option:hover,
.ts-dropdown .active {
    background: rgba(255,107,44,0.15) !important;
    color: var(--gh-primary) !important;
}
.ts-dropdown .option.selected {
    background: var(--gh-primary) !important;
    color: #fff !important;
}
.ts-wrapper .item {
    background: rgba(255,107,44,0.2) !important;
    color: var(--gh-primary) !important;
    border-radius: 6px !important;
}
.ts-control input { color: var(--gh-text) !important; }
.ts-wrapper.form-select-sm .ts-control,
.ts-wrapper.single.form-select-sm .ts-control {
    min-height: 31px;
    font-size: 0.875rem;
    border-radius: 6px !important;
}

/* ─── Top Navigation (Tab-like) ─────────────────────────────── */
.tnav {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow-x: auto;
    background: var(--gh-bg-card);
    border-bottom: 1px solid var(--gh-border);
    scrollbar-width: none; /* Firefox */
}
.tnav::-webkit-scrollbar { display: none; }

.tnav-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 18px;
    height: 48px;
    color: var(--gh-text-muted);
    text-decoration: none !important;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color 0.18s, border-color 0.18s, background 0.18s;
    position: relative;
}
.tnav-item i {
    font-size: 1.1rem;
    display: block;
}
.tnav-item:hover {
    color: var(--gh-text);
    background: rgba(255,107,44,0.06);
    border-bottom-color: rgba(255,107,44,0.4);
}
.tnav-item.active {
    color: var(--gh-primary);
    border-bottom-color: var(--gh-primary);
    background: rgba(255,107,44,0.08);
}

/* Layout override for top-nav mode */
.layout-top-nav {
    flex-direction: column;
}
.layout-top-nav .main-content {
    margin-left: 0 !important;
    width: 100%;
}
.layout-top-nav .topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
}
.layout-top-nav .tnav {
    position: sticky;
    top: 57px; /* height of topbar */
    z-index: 999;
}

@media (max-width: 768px) {
    .tnav-item { padding: 8px 12px; font-size: 0.7rem; }
    .tnav-item i { font-size: 1rem; }
}

/* Top gamers horizontal row */
.top-gamers-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.top-gamers-row::-webkit-scrollbar { height: 6px; }
.top-gamers-row::-webkit-scrollbar-thumb {
    background: var(--gh-border);
    border-radius: 3px;
}
.top-gamer-card {
    flex: 0 0 180px;
    scroll-snap-align: start;
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: 12px;
    padding: 1.25rem 1rem;
}
