/* ==================== RESET & VARIABLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Oswald:wght@400;600;700&display=swap');

:root {
    --primary-red: #FF1744;
    --primary-blue: #007BFF;
    --dark-bg: #0A0E27;
    --darker-bg: #050812;
    --card-bg: rgba(15, 25, 50, 0.6);
    --card-border: rgba(255, 23, 68, 0.2);
    --text-main: #FFFFFF;
    --text-secondary: #B0BEC5;
    --accent-gold: #FFD700;
    --accent-silver: #C0C0C0;
    --accent-bronze: #CD7F32;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    background-color: var(--darker-bg);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body {
    background-image: url('../images/backgrounds/final_background_exact.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center right;
}

/* ==================== CONTAINER & LAYOUT ==================== */
.main-container {
    display: flex;
    min-height: 100vh;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    width: 260px;
    background: rgba(8, 12, 28, 0.96);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
}

.logo-section {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-img {
    width: 90px;
    height: auto;
    margin-bottom: 0.8rem;
}

.club-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    color: var(--text-main);
    font-weight: 800;
    font-style: italic;
}

.club-city {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

.user-profile-section {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar-large {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--primary-red);
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #FF1744, #D32F2F);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.4);
}

.user-name {
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.user-role {
    font-size: 0.72rem;
    color: var(--primary-red);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.nav-menu {
    list-style: none;
    flex-grow: 1;
    margin-bottom: 2rem;
}

.nav-item {
    margin-bottom: 0.55rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.82rem 1rem;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    font-weight: 500;
    font-size: 0.92rem;
    font-family: 'Montserrat', sans-serif;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 23, 68, 0.08);
    border-color: rgba(255, 23, 68, 0.18);
}

.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.55) 0%, rgba(120, 12, 32, 0.75) 100%);
    border: 1px solid rgba(255, 60, 90, 0.85);
    box-shadow:
        0 0 18px rgba(255, 23, 68, 0.45),
        0 0 6px rgba(255, 23, 68, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-link--logout {
    margin-top: 0.75rem;
    justify-content: center;
}

.nav-icon-svg {
    flex-shrink: 0;
    color: currentColor;
    opacity: 0.92;
}

.nav-link.active .nav-icon-svg {
    opacity: 1;
}

.nav-icon {
    display: none;
}

.sidebar-footer {
    background: rgba(255, 23, 68, 0.08);
    border: 1px solid rgba(255, 23, 68, 0.2);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
}

.footer-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
    color: var(--primary-red);
}

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

.footer-sub {
    font-size: 0.7rem;
    margin-top: 0.3rem;
    color: var(--text-secondary);
}

.footer-text {
    font-size: 0.8rem;
    line-height: 1.4;
}

.footer-text strong {
    color: var(--primary-red);
    display: block;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 2rem 2.5rem;
    overflow-y: auto;
    max-height: 100vh;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.page-brand-club {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.06em;
    color: var(--primary-red);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    line-height: 1.15;
}

.page-title .red {
    color: var(--primary-red);
    font-weight: 800;
    font-style: italic;
}

.page-title .white {
    color: var(--text-main);
    font-weight: 700;
}

.user-info-top {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-info-text {
    text-align: right;
}

.user-info-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.user-info-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.avatar-small {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-red);
    background: linear-gradient(135deg, #FF1744, #D32F2F);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* ==================== STAT CARDS ==================== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(255, 23, 68, 0.4);
    transform: translateY(-3px);
}

.stat-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 2px solid var(--primary-red);
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.4);
    background: rgba(255, 23, 68, 0.1);
    flex-shrink: 0;
}

.stat-icon-circle.blue {
    border-color: var(--primary-blue);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
    background: rgba(0, 123, 255, 0.1);
}

.stat-content h4 {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.stat-value {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-red);
}

.stat-value.blue {
    color: var(--primary-blue);
}

.stat-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

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

.panel {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
}

.panel-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    letter-spacing: 1px;
}

.panel-title-icon {
    font-size: 1.5rem;
}

/* ==================== CHART ==================== */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 1.5rem;
}

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

.chart-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.chart-dropdown {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
}

.chart-canvas {
    width: 100%;
    height: 250px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    position: relative;
}

/* ==================== ACHIEVEMENTS ==================== */
.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.achievement-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-silver));
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.achievement-icon.has-image {
    background: transparent !important;
    box-shadow: none !important;
}

.achievement-content h5,
.achievement-item h5 {
    font-weight: 700;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.achievement-date {
    font-size: 0.75rem;
    color: var(--primary-red);
}

/* ==================== TRAINING HEATMAP ==================== */
.heatmap-container {
    margin-bottom: 1.5rem;
}

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

.heatmap-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.heatmap-day {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.heatmap-cell {
    aspect-ratio: 1;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.heatmap-cell.active-red {
    background: var(--primary-red);
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.4);
}

.heatmap-cell.active-blue {
    background: var(--primary-blue);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.4);
}

.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-box {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* ==================== MESSAGE CARD ==================== */
.message-card {
    background: rgba(255, 23, 68, 0.08);
    border: 1px solid rgba(255, 23, 68, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.message-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF1744, #D32F2F);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid var(--primary-red);
}

.message-info {
    flex-grow: 1;
}

.message-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.message-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-main);
}

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

@media (max-width: 768px) {
    .sidebar {
        width: 72px;
        padding: 1rem 0.45rem;
    }

    .main-content {
        margin-left: 72px;
        width: calc(100% - 72px);
        padding: 1.5rem;
    }
    
    .sidebar .logo-section,
    .sidebar .user-profile-section,
    .sidebar .nav-link > span:not(.nav-icon-svg),
    .sidebar .sidebar-footer,
    .sidebar .nav-link--logout > span {
        display: none;
    }
    
    .nav-link {
        justify-content: center;
        padding: 0.85rem;
    }

    .page-title {
        font-size: 1.45rem;
    }

    .page-brand-club {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        background-image: url('../images/backgrounds/final_background_mobile_exact.png');
        background-position: center bottom;
    }
    
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ==================== DJANGO SITE INTEGRATION ==================== */
body.sk-lider-app {
    padding-top: 0 !important;
}

/* ==================== THEME VARIABLE OVERRIDES ==================== */
/* Переопределяем золотые переменные theme.css на красную спортивную палитру */
body.sk-lider-app {
    --accent-gold: #FF1744;
    --accent-gold-light: #FF4D70;
    --accent-gold-dark: #CC0033;
    --accent-glow: rgba(255, 23, 68, 0.25);
    --bg-primary: #080C1C;
    --bg-secondary: rgba(8, 12, 28, 0.88);
    --bg-tertiary: rgba(12, 18, 40, 0.96);
    --bg-card: rgba(15, 25, 50, 0.6);
    --bg-hover: rgba(255, 23, 68, 0.09);
    --text-primary: #FFFFFF;
    --text-secondary: #B0BEC5;
    --text-muted: #7A8A9A;
    --border-color: rgba(255, 23, 68, 0.18);
    --border-hover: rgba(255, 23, 68, 0.42);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.42);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.46);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.52);
    --shadow-gold: 0 0 18px rgba(255, 23, 68, 0.32);
    --gradient-primary: linear-gradient(135deg, #050812, #0A0E27);
    --gradient-card: rgba(15, 25, 50, 0.6);
    --gradient-gold: linear-gradient(135deg, #FF1744, #CC0033);
    --achievement-pill-bg: rgba(255, 23, 68, 0.14);
    --achievement-pill-color: #FF4D70;
    --achievement-icon-color: rgba(255,255,255,0.7);
    --achievement-icon-color-earned: #FF4D70;
    --level-icon-color: #FF1744;
}

/* ==================== HERO BANNER ==================== */
.header-top {
    position: relative;
    padding-bottom: 1.75rem;
    margin-bottom: 2rem;
}

.header-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(255, 23, 68, 0.55) 0%,
        rgba(255, 23, 68, 0.15) 35%,
        rgba(0, 123, 255, 0.12) 65%,
        rgba(0, 123, 255, 0.45) 100%
    );
}

/* ==================== NEWS / HOME PAGE ==================== */
.sk-lider-app .news-feed-section {
    min-height: auto;
    padding: 0 0 2rem;
}

.sk-lider-app .news-header {
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 2rem;
}

.sk-lider-app .news-header h1 {
    font-family: 'Oswald', sans-serif;
    color: var(--text-main);
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.sk-lider-app .news-header p {
    color: var(--text-secondary);
}

.sk-lider-app .news-card {
    background: var(--card-bg) !important;
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border) !important;
    border-radius: 20px !important;
    box-shadow: none;
}

.sk-lider-app .news-card:hover {
    border-color: rgba(255, 23, 68, 0.4) !important;
    box-shadow: 0 8px 30px rgba(255, 23, 68, 0.18) !important;
    transform: translateY(-3px);
}

.sk-lider-app .news-date {
    color: var(--primary-red) !important;
    font-weight: 600;
}

.sk-lider-app .news-title {
    color: var(--text-main) !important;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
}

.sk-lider-app .news-badge-news {
    background: rgba(255, 23, 68, 0.18) !important;
    color: var(--primary-red) !important;
    border: 1px solid rgba(255, 23, 68, 0.35) !important;
}

.sk-lider-app .news-badge-event {
    background: rgba(0, 123, 255, 0.18) !important;
    color: var(--primary-blue) !important;
    border: 1px solid rgba(0, 123, 255, 0.35) !important;
}

.sk-lider-app .event-card {
    border-left: 4px solid var(--primary-blue) !important;
}

.sk-lider-app .news-empty h2 {
    color: var(--text-main);
}

/* ==================== RATINGS PAGE ==================== */
.sk-lider-app .ratings-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-bottom: none !important;
}

.sk-lider-app .rating-tab {
    padding: 0.7rem 1.5rem;
    background: transparent;
    border: 1px solid transparent !important;
    border-bottom: 1px solid transparent !important;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.25s ease;
    position: static !important;
    bottom: auto !important;
}

.sk-lider-app .rating-tab:hover {
    color: #fff;
    background: rgba(255, 23, 68, 0.09);
    border-color: rgba(255, 23, 68, 0.25) !important;
}

.sk-lider-app .rating-tab.active {
    background: var(--primary-red) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 0 16px rgba(255, 23, 68, 0.48);
}

.sk-lider-app .top-10-item {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(12px);
    box-shadow: none !important;
}

.sk-lider-app .top-10-item:hover {
    border-color: rgba(255, 23, 68, 0.4) !important;
    box-shadow: 0 4px 20px rgba(255, 23, 68, 0.15) !important;
    transform: translateY(-2px);
}

.sk-lider-app .top-10-item.first {
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.18), rgba(15, 25, 50, 0.7)) !important;
    border-color: rgba(255, 23, 68, 0.5) !important;
    box-shadow: 0 4px 24px rgba(255, 23, 68, 0.25) !important;
}

.sk-lider-app .top-10-item.second {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.12), rgba(15, 25, 50, 0.7)) !important;
    border-color: rgba(0, 123, 255, 0.35) !important;
}

.sk-lider-app .top-10-item.third {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.12), rgba(15, 25, 50, 0.7)) !important;
    border-color: rgba(205, 127, 50, 0.35) !important;
}

.sk-lider-app .top-10-item.is-user {
    border-color: rgba(255, 23, 68, 0.5) !important;
    background: rgba(255, 23, 68, 0.1) !important;
}

.sk-lider-app .top-10-position {
    color: var(--primary-red) !important;
    font-family: 'Oswald', sans-serif;
}

.sk-lider-app .top-10-item.first .top-10-position { color: var(--primary-red) !important; }
.sk-lider-app .top-10-item.second .top-10-position { color: var(--primary-blue) !important; }
.sk-lider-app .top-10-item.third .top-10-position { color: #CD7F32 !important; }

.sk-lider-app .top-10-name {
    color: var(--text-main) !important;
    font-weight: 600;
}

.sk-lider-app .top-10-points-value {
    color: var(--primary-blue) !important;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem !important;
}

.sk-lider-app .top-10-item.first .top-10-points-value {
    color: var(--primary-red) !important;
}

.sk-lider-app .user-position-card {
    background: rgba(255, 23, 68, 0.09) !important;
    border: 2px solid rgba(255, 23, 68, 0.4) !important;
    box-shadow: 0 0 22px rgba(255, 23, 68, 0.18) !important;
    backdrop-filter: blur(12px);
}

.sk-lider-app .user-position-card:hover {
    box-shadow: 0 4px 26px rgba(255, 23, 68, 0.3) !important;
}

.sk-lider-app .user-position-value {
    color: var(--primary-red) !important;
    font-family: 'Oswald', sans-serif;
}

.sk-lider-app .rating-section h2 {
    color: var(--text-main) !important;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==================== ACHIEVEMENTS PAGE ==================== */
.sk-lider-app .achievement-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    backdrop-filter: blur(15px);
}

.sk-lider-app .achievement-card:hover {
    border-color: rgba(255, 23, 68, 0.4) !important;
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.2) !important;
}

.sk-lider-app .achievement-card.earned {
    border-color: rgba(255, 23, 68, 0.5) !important;
    box-shadow: 0 0 22px rgba(255, 23, 68, 0.22) !important;
    background: linear-gradient(145deg, rgba(255,23,68,0.1), rgba(15,25,50,0.7)) !important;
}

.sk-lider-app .achievement-card.earned::after {
    background: var(--primary-red) !important;
    box-shadow: 0 0 12px rgba(255, 23, 68, 0.5);
}

.sk-lider-app .achievement-card h3,
.sk-lider-app .achievement-card h3 { color: var(--text-main) !important; }

.sk-lider-app .achievement-card p { color: var(--text-secondary) !important; }

.sk-lider-app .achievement-points {
    color: var(--primary-red) !important;
}

.sk-lider-app .category-tab {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    color: var(--text-secondary) !important;
    border-radius: 10px !important;
}

.sk-lider-app .category-tab:hover {
    border-color: rgba(255, 23, 68, 0.3) !important;
    color: #fff !important;
    background: rgba(255, 23, 68, 0.09) !important;
}

.sk-lider-app .category-tab.active {
    background: var(--primary-red) !important;
    border-color: rgba(255, 23, 68, 0.5) !important;
    color: #fff !important;
    box-shadow: 0 0 16px rgba(255, 23, 68, 0.42) !important;
}

/* ==================== LEVELS PAGE ==================== */
.sk-lider-app .level-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    backdrop-filter: blur(15px);
}

.sk-lider-app .level-card.current {
    border-color: rgba(255, 23, 68, 0.5) !important;
    box-shadow: 0 0 22px rgba(255, 23, 68, 0.22) !important;
}

.sk-lider-app .level-card.unlocked:not(.current) {
    border-color: rgba(0, 123, 255, 0.3) !important;
}

.sk-lider-app .level-status--current {
    background: rgba(255, 23, 68, 0.16) !important;
    color: var(--primary-red) !important;
    border-color: rgba(255, 23, 68, 0.35) !important;
}

.sk-lider-app .level-meta,
.sk-lider-app .level-reward { color: var(--primary-red) !important; }

.sk-lider-app .level-heading h2 { color: var(--text-main) !important; }

/* ==================== EVENTS / CALENDAR ==================== */
.sk-lider-app .event-card-large {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    backdrop-filter: blur(15px);
}

.sk-lider-app .event-card-large:hover {
    border-color: rgba(255, 23, 68, 0.4) !important;
    box-shadow: 0 8px 28px rgba(255, 23, 68, 0.18) !important;
}

.sk-lider-app .event-card-small {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    backdrop-filter: blur(12px);
}

.sk-lider-app .event-card-small:hover {
    border-color: rgba(255, 23, 68, 0.4) !important;
}

.sk-lider-app .event-date-day,
.sk-lider-app .event-date-day-small { color: var(--primary-red) !important; }

.sk-lider-app .calendar-day {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
}

.sk-lider-app .calendar-day--today {
    border-color: var(--primary-red) !important;
    box-shadow: 0 0 14px rgba(255, 23, 68, 0.28) !important;
}

.sk-lider-app .calendar-nav-btn:hover {
    border-color: var(--primary-red) !important;
    color: var(--primary-red) !important;
}

.sk-lider-app .sidebar-event-time { color: var(--primary-red) !important; }

.sk-lider-app .calendar-sidebar {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    backdrop-filter: blur(15px);
}

/* ==================== AUTH MODAL ==================== */
.sk-lider-app .auth-tab.active {
    background: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    box-shadow: 0 0 14px rgba(255, 23, 68, 0.4) !important;
}

.sk-lider-app .form-control:focus {
    border-color: var(--primary-red) !important;
    box-shadow: 0 0 0 3px rgba(255, 23, 68, 0.2) !important;
}

/* ==================== HELP PAGE ==================== */
.sk-lider-app .help-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    backdrop-filter: blur(15px);
    border-radius: 20px !important;
}

.sk-lider-app .help-card:hover {
    border-color: rgba(255, 23, 68, 0.4) !important;
    box-shadow: 0 8px 28px rgba(255, 23, 68, 0.16) !important;
}

/* ==================== PROFILE PAGE ==================== */
.sk-lider-app .profile-header {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    backdrop-filter: blur(15px);
}

.sk-lider-app .profile-info h1 { color: var(--text-main) !important; }

.sk-lider-app .profile-section-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    backdrop-filter: blur(15px);
}

.sk-lider-app .profile-section-card h2 {
    border-bottom: 1px solid var(--card-border) !important;
    color: var(--text-main) !important;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
}

.sk-lider-app .achievement-card-small {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--card-border) !important;
}

.sk-lider-app .achievement-card-small:hover {
    border-color: rgba(255, 23, 68, 0.35) !important;
}

/* ==================== DAILY TASKS ==================== */
.sk-lider-app .card {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    backdrop-filter: blur(15px);
    border-radius: 20px !important;
}

.sk-lider-app .card:hover {
    border-color: rgba(255, 23, 68, 0.4) !important;
    box-shadow: 0 8px 28px rgba(255, 23, 68, 0.16) !important;
}

/* General heading overrides */
.sk-lider-app h1,
.sk-lider-app h2,
.sk-lider-app h3 { color: var(--text-main); }

.sk-lider-app .section-title h2 {
    color: var(--text-main) !important;
    font-family: 'Oswald', sans-serif;
}

/* ==================== SCHOOL 690 RATING WIDGET ==================== */
.sk-lider-app .school690-rating-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    backdrop-filter: blur(15px);
}

.sk-lider-app .school690-filter-pill.active {
    background: var(--primary-red) !important;
    box-shadow: 0 0 14px rgba(255, 23, 68, 0.45) !important;
    color: #fff !important;
}

.sk-lider-app .development-placeholder {
    background: var(--card-bg) !important;
    border: 1px dashed rgba(255, 23, 68, 0.25) !important;
    border-radius: 20px !important;
}

.sk-lider-app .site-side-backgrounds,
.sk-lider-app .site-header,
.sk-lider-app .site-footer,
.sk-lider-app .achievements-bar,
.sk-lider-app .hamburger-backdrop,
.sk-lider-app .hamburger-dropdown {
    display: none !important;
}

.sk-lider-app .container {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

.sk-lider-app .sidebar .avatar-large {
    overflow: hidden;
    padding: 0;
}

.sk-lider-app .sidebar .avatar-large img,
.sk-lider-app .sidebar .avatar-large span {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    object-fit: cover;
    font-weight: 700;
}

.sk-lider-app .user-info-top .avatar-small,
.sk-lider-app .user-info-top .user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-red);
    overflow: hidden;
    box-shadow: 0 0 12px rgba(255, 23, 68, 0.35);
}

.sk-lider-app .user-info-top .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sk-lider-app .dashboard-card,
.sk-lider-app .card,
.sk-lider-app .profile-section-card,
.sk-lider-app .profile-header,
.sk-lider-app .auth-card,
.sk-lider-app .help-card,
.sk-lider-app .news-card,
.sk-lider-app .school690-rating-card,
.sk-lider-app .top-10-item,
.sk-lider-app .development-placeholder {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
}

.sk-lider-app .dashboard-card h2,
.sk-lider-app .profile-section-card h2,
.sk-lider-app .rating-section h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.sk-lider-app .btn-primary {
    background: var(--primary-red);
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.4);
}

.sk-lider-app .btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text-secondary);
    background: transparent;
}

.sk-lider-app .ratings-tabs,
.sk-lider-app .achievements-tabs,
.sk-lider-app .school690-months,
.sk-lider-app .school690-divisions {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 5px;
}

.sk-lider-app .rating-tab.active,
.sk-lider-app .school690-months .school690-filter-pill.active {
    background: var(--primary-red) !important;
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.5);
    color: #fff !important;
}

.sk-lider-app .message-container {
    margin-bottom: 1rem;
}

.sk-lider-app .messages {
    list-style: none;
}

.sk-lider-app .messages li {
    background: rgba(255, 23, 68, 0.12);
    border: 1px solid rgba(255, 23, 68, 0.3);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

.panel-mobile-top {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(10, 15, 35, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.panel-mobile-top .club-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.1em;
    color: var(--primary-red);
}

.sk-lider-app .user-info-top .user-info-name,
.sk-lider-app .user-info-top .user-info-role {
    font-family: 'Montserrat', sans-serif;
}

.sk-lider-app .stat-value,
.sk-lider-app .panel-title {
    font-family: 'Oswald', sans-serif;
}

.panel-mobile-menu-btn {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 23, 68, 0.35);
    border-radius: 10px;
    background: rgba(255, 23, 68, 0.1);
    color: var(--primary-red);
    font-size: 1.25rem;
    cursor: pointer;
}

@media (max-width: 480px) {
    .panel-mobile-top {
        display: flex;
    }

    .sk-lider-app .main-content {
        padding-top: 4.5rem;
    }

    .sk-lider-app .sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.45);
    }

    .sk-lider-app .sidebar.is-open {
        transform: translateX(0);
    }

    .panel-sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 999;
        background: rgba(2, 4, 10, 0.6);
    }

    .panel-sidebar-backdrop.is-open {
        display: block;
    }
}

