:root {
    --bg-color: #0b0c10; /* Very dark background */
    --sidebar-bg: #111217; 
    --surface-color: rgba(255, 255, 255, 0.02);
    --surface-border: rgba(255, 255, 255, 0.05);
    --primary: #ffffff;
    --text-main: #cbd5e1;
    --text-muted: #64748b;
    --accent: #ccff00; /* EA FC Neon Green */
    --accent-hover: #b3e600;
    --danger: #ff003c;
    --success: #00ff66;
    --gold: #ffc800; /* FC Points gold */
    
    --sidebar-width: 250px;
    --header-height: 80px;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(45deg, rgba(204, 255, 0, 0.03) 0%, transparent 40%),
        linear-gradient(-45deg, rgba(204, 255, 0, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .page-title, .sidebar-logo, .card-value {
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--surface-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-logo {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid var(--surface-border);
    letter-spacing: 2px;
}

.sidebar-logo span {
    color: var(--accent);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    flex: 1;
    gap: 5px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    gap: 15px;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

.nav-item svg {
    opacity: 0.7;
    transition: all 0.2s;
}

.nav-item:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.02);
}

.nav-item:hover svg {
    opacity: 1;
}

.nav-item.active {
    color: var(--primary);
    background: linear-gradient(90deg, rgba(204, 255, 0, 0.05) 0%, transparent 100%);
    border-left-color: var(--accent);
}

.nav-item.active svg {
    opacity: 1;
    stroke: var(--accent);
}

/* MAIN CONTENT */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width));
}

.topbar {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    border-bottom: 1px solid var(--surface-border);
    background: rgba(11, 12, 16, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 90;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--primary);
    line-height: 1;
    transform: translateY(2px);
}

.user-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-color);
    padding: 8px 16px;
    border-radius: 4px; /* Squarer look */
    border: 1px solid var(--surface-border);
    font-family: 'Teko', sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1;
    transform: skewX(-5deg); /* Gaming italic slant */
}

.stat-badge svg {
    transform: skewX(5deg); /* Counter skew for icon */
}

.stat-badge.gold {
    color: var(--gold);
    border-color: rgba(255, 200, 0, 0.3);
    background: rgba(255, 200, 0, 0.05);
}

.stat-badge.gold svg {
    stroke: var(--gold);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    padding: 6px 12px 6px 6px;
    transition: background 0.2s;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--surface-border);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%); /* Diagonal cut */
}

.content-area {
    padding: 40px;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* GAMING CARDS (FC Style) */
.fc-card {
    background: linear-gradient(145deg, rgba(30, 33, 48, 0.4) 0%, rgba(18, 20, 28, 0.6) 100%);
    border: 1px solid var(--surface-border);
    padding: 30px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    min-height: 180px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.fc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.fc-card:hover {
    border-color: rgba(204, 255, 0, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -10px rgba(204, 255, 0, 0.15);
}

.fc-card:hover::before {
    transform: scaleX(1);
}

/* PANELS */
.panel {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 0;
    padding: 30px;
    margin-bottom: 30px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
}

/* BUTTONS */
button, .btn-primary, .btn-secondary {
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.btn-primary {
    background: var(--accent);
    color: #000;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--surface-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

/* INPUTS */
input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--surface-border);
    color: var(--primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
}

/* MESSAGES */
.flashes {
    list-style-type: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.flashes li {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 4px solid var(--accent);
    background: rgba(204, 255, 0, 0.05);
    color: var(--primary);
    font-weight: 500;
}

.flashes li.error {
    border-left-color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: 70px;
        bottom: 0;
        top: auto;
        flex-direction: row;
        border-right: none;
        border-top: 1px solid var(--surface-border);
        z-index: 1000;
    }

    .sidebar-logo {
        display: none;
    }

    .sidebar-nav {
        flex-direction: row;
        padding: 0;
        width: 100%;
        justify-content: space-around;
        align-items: center;
    }

    .nav-item {
        flex-direction: column;
        padding: 10px;
        gap: 5px;
        font-size: 0.7rem;
        border-left: none;
        border-bottom: 3px solid transparent;
        justify-content: center;
        flex: 1;
        text-align: center;
    }

    .nav-item.active {
        background: linear-gradient(0deg, rgba(204, 255, 0, 0.1) 0%, transparent 100%);
        border-left: none;
        border-bottom-color: var(--accent);
    }

    .main-wrapper {
        margin-left: 0;
        width: 100%;
        padding-bottom: 70px; /* Space for bottom nav */
    }

    .topbar {
        padding: 0 20px;
    }

    .content-area {
        padding: 20px;
    }
}
