:root {
    --bg-main: #0f1014;
    --bg-secondary: #1a1c23;
    --bg-tertiary: #252830;
    --accent: #d4a938; /* CS2 like gold/yellow */
    --accent-hover: #edd372;
    --text-main: #ffffff;
    --text-muted: #8b92a5;
    --border-color: #2a2d36;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--accent);
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 0 15px rgba(212, 169, 56, 0.4);
}

.btn-outline {
    border: 2px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(212, 169, 56, 0.1);
    box-shadow: 0 0 15px rgba(212, 169, 56, 0.2);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(15, 16, 20, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: 2px;
}

.nav-brand span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(15, 16, 20, 0.9) 0%, rgba(26, 28, 35, 0.8) 100%);
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(212, 169, 56, 0.1) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    height: 100vh;
    padding-top: 73px; /* offset for navbar */
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-menu {
    list-style: none;
    flex-grow: 1;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: var(--text-muted);
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
    background: var(--bg-tertiary);
    color: var(--text-main);
    border-left-color: var(--accent);
}

.sidebar-menu li a i {
    margin-right: 15px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
    background: var(--bg-main);
}

/* Dashboard Header */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 800;
    font-size: 1.2rem;
}

/* Cards */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-color: #3a3d46;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.card-title {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
}

/* Tables */
.table-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.table-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* Utilities */
.text-accent { color: var(--accent); }
.text-success { color: #4caf50; }
.text-danger { color: #f44336; }
.text-muted { color: var(--text-muted); }

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-pro { background: var(--accent); color: #000; }
.badge-outline { border: 1px solid var(--border-color); color: var(--text-muted); }

/* Game Menu Specific Styles */
.game-menu-body {
    background-color: #000;
    overflow: hidden;
    height: 100vh;
    display: flex;
    user-select: none;
}

/* Dynamic Video/Smoke Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 30% 50%, #1e2330 0%, #0a0b0e 80%);
    overflow: hidden;
}

.smoke {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 60%);
    opacity: 0.5;
    animation: drift 40s linear infinite;
    transform-origin: center;
}

.smoke-1 {
    top: -50%;
    left: -50%;
}

.smoke-2 {
    top: -30%;
    left: -20%;
    animation: drift 30s linear infinite reverse;
    opacity: 0.3;
}

.vignette {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    box-shadow: inset 0 0 150px rgba(0,0,0,0.9);
    pointer-events: none;
}

@keyframes drift {
    0% { transform: rotate(0deg) translate(0, 0); }
    50% { transform: rotate(180deg) translate(5%, 5%); }
    100% { transform: rotate(360deg) translate(0, 0); }
}

/* Game Top Bar */
.game-top-bar {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.player-status {
    display: flex;
    align-items: center;
    background: rgba(15, 16, 20, 0.7);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 5px 15px 5px 5px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    gap: 12px;
}

.game-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

.player-info {
    display: flex;
    flex-direction: column;
}

.player-name {
    font-weight: 700;
    font-size: 14px;
}

.player-rank {
    font-size: 11px;
    color: var(--text-muted);
}

.level-badge {
    background: linear-gradient(135deg, #1e90ff, #00bfff);
    color: white;
    font-weight: 800;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 12px;
    box-shadow: 0 0 10px rgba(30, 144, 255, 0.5);
}

.top-actions {
    display: flex;
    gap: 10px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 16, 20, 0.7);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.2s;
}

.icon-btn:hover {
    color: white;
    background: rgba(255,255,255,0.1);
    transform: scale(1.1);
}

/* Game Sidebar */
.game-sidebar {
    width: 80px;
    height: 100vh;
    background: linear-gradient(to right, rgba(10, 11, 14, 0.95), rgba(10, 11, 14, 0.4));
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    z-index: 10;
}

.game-brand {
    margin-bottom: 50px;
}

.game-nav-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.game-nav-item {
    position: relative;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 22px;
    transition: all 0.2s;
}

.game-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.2s;
}

.game-nav-item:hover, .game-nav-item.active {
    color: white;
    background: linear-gradient(to right, rgba(255,255,255,0.05), transparent);
}

.game-nav-item.active::before {
    transform: scaleY(1);
}

.game-nav-item:hover::after {
    content: attr(data-title);
    position: absolute;
    left: 80px;
    background: rgba(15, 16, 20, 0.9);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.1);
    pointer-events: none;
    animation: fadeIn 0.2s;
    z-index: 100;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Game Friends Panel */
.game-friends-panel {
    position: absolute;
    right: 0;
    top: 90px;
    bottom: 0;
    width: 250px;
    background: linear-gradient(to left, rgba(10, 11, 14, 0.9), transparent);
    padding: 20px;
    display: flex;
    flex-direction: column;
    z-index: 5;
    pointer-events: none; /* Let clicks pass through empty areas */
}

.friends-header {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    pointer-events: auto;
}

.friends-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: auto;
}

.friend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.friend-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

.friend-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    position: relative;
}

.friend-item.online .friend-avatar::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #4caf50;
    border-radius: 50%;
    border: 2px solid #000;
}

.friend-item.in-game .friend-avatar::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid #000;
}

.friend-name {
    font-size: 13px;
    font-weight: 600;
}

.friend-status {
    font-size: 11px;
    color: var(--text-muted);
}

/* Game Main Content Area */
.game-main-content {
    flex-grow: 1;
    position: relative;
    padding: 40px 100px 40px 120px; /* Space for sidebar and right panel */
    display: flex;
    align-items: flex-end; /* Align content to bottom like CS2 */
}

.game-center-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* News Panel */
.news-panel {
    width: 400px;
    height: 250px;
    background: rgba(20, 22, 28, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}

.news-panel:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1c23, #2a2d36);
    position: relative;
}

.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.news-tag {
    background: var(--accent);
    color: #000;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 800;
    border-radius: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-block;
}

.news-overlay h2 {
    font-size: 18px;
    margin-bottom: 5px;
}

.news-overlay p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.game-btn-primary {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.2s;
}

.game-btn-primary:hover {
    background: white;
    color: #000;
}

/* Quick Start Panel */
.quick-start-panel {
    background: rgba(20, 22, 28, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 25px;
    width: 320px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.panel-title {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.mode-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}

.mode-item {
    padding: 12px 15px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mode-item:hover {
    background: rgba(255,255,255,0.1);
}

/* Dev Modal */
.dev-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dev-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dev-modal-content {
    background: rgba(20, 22, 28, 0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 35px;
    width: 450px;
    max-width: 90%;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    text-align: center;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dev-modal-overlay.active .dev-modal-content {
    transform: translateY(0) scale(1);
}

.dev-modal-icon {
    font-size: 50px;
    color: var(--accent);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(212, 169, 56, 0.4);
}

.dev-modal-title {
    font-size: 22px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.dev-modal-text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

.dev-modal-text strong {
    color: #fff;
    font-size: 16px;
}

.dev-modal-text a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.dev-modal-text a:hover {
    color: var(--accent-hover);
    text-shadow: 0 0 8px rgba(212, 169, 56, 0.6);
}

.dev-modal-btn {
    display: inline-block;
    padding: 12px 35px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dev-modal-btn:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
}

.mode-item.active {
    background: rgba(212, 169, 56, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.mode-item.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.play-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px;
    background: transparent;
    border: 2px solid #4caf50;
    color: white;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.play-btn-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #4caf50;
    z-index: -1;
    opacity: 0.2;
    transition: opacity 0.3s;
}

.play-btn:hover {
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
    transform: scale(1.02);
}

.play-btn:hover .play-btn-bg {
    opacity: 0.4;
}

/* Dashboard Specific Styles matching Game Menu */
.game-dashboard-content {
    flex-grow: 1;
    position: relative;
    padding: 90px 40px 40px 120px; /* Space for sidebar and top bar */
    height: 100vh;
    overflow-y: auto;
}

.dashboard-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.game-panel {
    background: rgba(20, 22, 28, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.game-table {
    width: 100%;
    border-collapse: collapse;
}

.game-table th, .game-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.game-table th {
    background: rgba(0,0,0,0.3);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.game-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

.game-quick-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
    color: var(--text-main);
    transition: all 0.2s;
}

.game-quick-btn:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    transform: translateX(5px);
}


