:root {
    /* Premium Color Palette */
    --primary-color: #D4AF37;
    /* Gold */
    --primary-dark: #C5A028;
    --secondary-color: #1A1A1A;
    /* Dark Grey/Black */
    --background-color: #121212;
    /* Very Dark Grey */
    --surface-color: #1E1E1E;
    /* Card Background */
    --text-color: #E0E0E0;
    --text-muted: #A0A0A0;
    --success-color: #4CAF50;
    --error-color: #F44336;

    /* Spacing & Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Font */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;

    /* Custom Colors */
    --coin-gold: #FFD700;
}

.coin-icon {
    display: inline-block !important;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    margin-right: 0.2em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='46' fill='%23FFD700' stroke='%23B8860B' stroke-width='4'/%3E%3Ctext x='50' y='65' font-family='Arial' font-size='40' font-weight='bold' fill='%234B3621' text-anchor='middle'%3EFG%3C/text%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    content: '';
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.1s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--secondary-color);
    border: 1px solid #333;
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.card {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

/* Auth Pages Specific */
.auth-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-box {
    width: 100%;
    max-width: 400px;
}

/* Sidebar Styles */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: #111;
    color: #e0e0e0;
    z-index: 2001;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.6);
    border-right: 1px solid #333;
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.sidebar-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    padding: 2rem 1.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #333;
}

.sidebar-header::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.15;
    border-radius: 50%;
}

.user-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.user-card-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    object-fit: cover;
    background: #222;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.user-card-info h3 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
}

.user-card-info p {
    margin: 5px 0;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-badge {
    margin-top: 8px;
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 0;
    background: #111;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.5rem;
    color: #bbb;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border-left: 4px solid transparent;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.menu-item.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.menu-item.home-item {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    color: var(--primary-color);
    font-weight: 600;
    border-left-color: var(--primary-color);
}

.menu-item.home-item:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.1) 100%);
}

.menu-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-label span {
    font-size: 1.2rem;
}

.menu-divider {
    height: 1px;
    background: #333;
    margin: 1rem 1.5rem;
}

.menu-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid #444;
    color: var(--primary-color);
    padding: 0.6rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s, background 0.2s;
}

.menu-toggle:hover {
    background: var(--surface-color);
    transform: scale(1.05);
}

body.sidebar-open {
    overflow: hidden;
}


/* Dashboard Player Hero Styles */
.player-hero {
    background: linear-gradient(135deg, #1e1e1e 0%, #121212 100%);
    border: 1px solid #333;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.player-hero::after {
    content: '⚽';
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 150px;
    opacity: 0.05;
    transform: rotate(-15deg);
}

.player-hero-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.player-hero-info {
    flex: 1;
    min-width: 250px;
}

.player-hero-info h1 {
    margin: 0;
    color: #fff;
    font-size: 2rem;
}

.player-hero-info .nickname {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.player-hero-stats {
    display: flex;
    gap: 2rem;
}

.player-hero-balance {
    background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
    color: #000;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.player-hero-balance h3 {
    color: #000;
    margin: 0;
    font-size: 1rem;
    opacity: 0.8;
}

.player-hero-balance .amount {
    font-size: 2.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}