:root {
    --primary: #FF4655;
    --primary-dark: #D63847;
    --primary-light: #FF6B75;
    --secondary: #0F1923;
    --background: #0A0E13;
    --surface: #151B23;
    --surface-light: #1F2933;
    --text-primary: #ECE8E1;
    --text-secondary: #9BA3AB;
    --text-muted: #5E6A75;
    --success: #00E676;
    --warning: #FFB800;
    --error: #FF4655;

    --sidebar-width: 280px;
    --header-height: 80px;

    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(255, 70, 85, 0.3);

    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background: var(--background);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== APP CONTAINER ===== */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg,
        rgba(21, 27, 35, 0.95) 0%,
        rgba(15, 25, 35, 0.98) 100%
    );
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 70, 85, 0.1);
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
}

.sidebar-header {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--primary);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

.logo .highlight {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
}

/* ===== NAVIGATION ===== */
.nav-menu {
    flex: 1;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg,
        rgba(255, 70, 85, 0.1),
        transparent
    );
    transition: width var(--transition-normal);
}

.nav-item:hover::before {
    width: 100%;
}

.nav-item:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.nav-item.active {
    border-left-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 70, 85, 0.05);
}

.nav-item.active .nav-indicator {
    opacity: 1;
    transform: scaleX(1);
}

.nav-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.nav-indicator {
    position: absolute;
    right: 1rem;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transform: scaleX(0);
    transition: all var(--transition-normal);
    box-shadow: 0 0 10px var(--primary);
}

/* ===== SIDEBAR FOOTER ===== */
.sidebar-footer {
    padding: 1rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */
.header {
    height: var(--header-height);
    background: rgba(15, 25, 35, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.search-container {
    flex: 1;
    max-width: 800px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-normal);
}

.search-box:focus-within {
    border-color: var(--primary);
    background: rgba(255, 70, 85, 0.05);
    box-shadow: 0 0 20px rgba(255, 70, 85, 0.2);
}

.search-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.search-input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    flex: 1;
    min-width: 120px;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.tag-input {
    max-width: 100px;
}

.search-separator {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
}

.region-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all var(--transition-fast);
}

.region-select:hover {
    background: rgba(255, 255, 255, 0.08);
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    color: white;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.search-btn:hover::before {
    width: 300px;
    height: 300px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 70, 85, 0.4);
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: rgba(255, 70, 85, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(180deg);
}

.action-btn svg {
    width: 24px;
    height: 24px;
}

/* ===== LOADING STATE ===== */
.loading-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 4rem 2rem;
}

.loading-state.active {
    display: flex;
}

.loading-radar {
    width: 200px;
    height: 200px;
    position: relative;
    margin-bottom: 2rem;
}

.radar-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: radarPulse 2s ease-out infinite;
}

.radar-circle:nth-child(1) {
    width: 60px;
    height: 60px;
}

.radar-circle:nth-child(2) {
    width: 120px;
    height: 120px;
    animation-delay: 0.4s;
}

.radar-circle:nth-child(3) {
    width: 180px;
    height: 180px;
    animation-delay: 0.8s;
}

@keyframes radarPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 100px;
    background: linear-gradient(180deg, var(--primary), transparent);
    transform-origin: bottom center;
    animation: radarSweep 2s linear infinite;
}

@keyframes radarSweep {
    0% { transform: translate(-50%, -100%) rotate(0deg); }
    100% { transform: translate(-50%, -100%) rotate(360deg); }
}

.loading-state h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.loading-state p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== ERROR STATE ===== */
.error-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 4rem 2rem;
    text-align: center;
}

.error-state.active {
    display: flex;
}

.error-icon {
    width: 80px;
    height: 80px;
    color: var(--error);
    margin-bottom: 2rem;
    animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-state h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--error);
    margin-bottom: 1rem;
}

.error-state p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 400px;
}

.retry-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    color: white;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 70, 85, 0.4);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state.hidden {
    display: none;
}

.empty-illustration {
    margin-bottom: 2rem;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.empty-state h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
}

/* ===== CONTENT SECTIONS ===== */
.content-sections {
    flex: 1;
    padding: 2rem;
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== PLAYER HEADER ===== */
.player-header {
    background: linear-gradient(135deg,
        rgba(255, 70, 85, 0.1) 0%,
        rgba(21, 27, 35, 0.8) 100%
    );
    border: 1px solid rgba(255, 70, 85, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.player-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 70, 85, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 70, 85, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.player-info-primary {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.player-avatar {
    width: 100px;
    height: 100px;
    position: relative;
}

.avatar-frame {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0.3;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.1); }
}

.player-name {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.player-tag {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.player-meta {
    display: flex;
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.meta-item svg {
    width: 18px;
    height: 18px;
}

/* ===== RANK SHOWCASE ===== */
.rank-showcase {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.rank-current,
.rank-peak {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rank-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.rank-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rank-icon {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    animation: rankFloat 3s ease-in-out infinite;
}

@keyframes rankFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.rank-text h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.rank-rr {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.rank-season {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.rank-divider {
    width: 1px;
    height: 80px;
    background: linear-gradient(180deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(255, 70, 85, 0.05),
        transparent
    );
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(255, 70, 85, 0.2);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.win {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.2), rgba(0, 230, 118, 0.05));
    color: var(--success);
}

.stat-icon.loss {
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.2), rgba(255, 70, 85, 0.05));
    color: var(--error);
}

.stat-icon.neutral {
    background: linear-gradient(135deg, rgba(155, 163, 171, 0.2), rgba(155, 163, 171, 0.05));
    color: var(--text-secondary);
}

.stat-icon.highlight {
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.2), rgba(255, 184, 0, 0.05));
    color: var(--warning);
}

.stat-icon svg {
    width: 28px;
    height: 28px;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-trend {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.stat-trend.positive {
    background: rgba(0, 230, 118, 0.1);
    color: var(--success);
}

.stat-trend.negative {
    background: rgba(255, 70, 85, 0.1);
    color: var(--error);
}

.stat-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: width 1s ease-out;
    border-radius: 0 0 12px 0;
}

/* ===== CHARTS ROW ===== */
.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all var(--transition-normal);
}

.chart-card:hover {
    border-color: rgba(255, 70, 85, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.chart-legend {
    display: flex;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.rank-up {
    background: var(--success);
}

.dot.rank-down {
    background: var(--error);
}

.chart-filter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all var(--transition-fast);

.chart-filter:hover {
    background: rgba(255, 255, 255, 0.08);
}

.chart-container {
    position: relative;
    height: 300px;
}

.chart-container.small {
    height: 200px;
}

/* ===== SECTION HEADER ===== */
.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== PERFORMANCE GRID ===== */
.performance-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.performance-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
}

.performance-card.wide {
    grid-column: span 1;
}

.performance-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.combat-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.combat-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.combat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.combat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

/* ===== MATCH FILTERS ===== */
.match-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    color: white;
}

/* ===== MATCHES CONTAINER ===== */
.matches-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ===== AGENTS & MAPS GRID ===== */
.agents-grid,
.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .charts-row {
        grid-template-columns: 1fr;
    }

    .performance-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 70px;
    }

    .sidebar {
        width: var(--sidebar-width);
    }

    .logo span,
    .nav-item span,
    .sidebar-footer span {
        display: none;
    }

    .logo-icon {
        margin: 0 auto;
    }

    .nav-item {
        justify-content: center;
        padding: 1rem;
    }

    .header {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }

    .search-box {
        flex-wrap: wrap;
    }

    .player-header {
        flex-direction: column;
        text-align: center;
    }

    .rank-showcase {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .combat-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
