/* ============================================
   REINWIDE LEAGUE - MAIN STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0A0A10;
    color: #E8E8F0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-top: 74px;
}

::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: #0A0A10;
}
::-webkit-scrollbar-thumb {
    background: #9D4EDD;
    border-radius: 2px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== ФИКСАЦИЯ ШАПКИ ===== */
html {
    overflow-y: scroll;
}

body {
    margin: 0;
    padding: 0;
}

/* Фиксированная ширина для контента, чтобы не прыгал */
.header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes wobble1 {
    0%, 100% { transform: rotate(-1.5deg) translateX(0); }
    25% { transform: rotate(1.5deg) translateX(6px); }
    50% { transform: rotate(-1deg) translateX(-4px); }
    75% { transform: rotate(2deg) translateX(4px); }
}

@keyframes wobble2 {
    0%, 100% { transform: rotate(1deg) translateX(0); }
    25% { transform: rotate(-1.5deg) translateX(-8px); }
    50% { transform: rotate(1.5deg) translateX(6px); }
    75% { transform: rotate(-1deg) translateX(-4px); }
}

@keyframes wobble3 {
    0%, 100% { transform: rotate(-0.5deg) translateX(0); }
    25% { transform: rotate(2.5deg) translateX(-4px); }
    50% { transform: rotate(-2deg) translateX(8px); }
    75% { transform: rotate(1deg) translateX(-6px); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

.slide-up:nth-child(1) { animation-delay: 0.1s; }
.slide-up:nth-child(2) { animation-delay: 0.2s; }
.slide-up:nth-child(3) { animation-delay: 0.3s; }

.float-1 { animation: float1 5s ease-in-out infinite; }
.float-2 { animation: float2 6s ease-in-out infinite; }
.float-3 { animation: float3 4.5s ease-in-out infinite; }

/* ============================================
   PARTICLES BACKGROUND
   ============================================ */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== GRID BACKGROUND ===== */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image: 
        linear-gradient(rgba(157, 78, 221, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(157, 78, 221, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridPulse 4s ease-in-out infinite;
}

/* ============================================
   HEADER - FIXED
   ============================================ */
.header {
    background: rgba(10, 10, 16, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(157, 78, 221, 0.06);
    padding: 18px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
}

.logo:hover {
    transform: scale(1.02);
}

.logo .light {
    color: #FFFFFF;
}

.logo .accent {
    color: #9D4EDD;
}



.nav {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav a {
    color: #8888A0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
    letter-spacing: 0.3px;
    position: relative;
    padding: 4px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #9D4EDD;
    transition: 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a:hover {
    color: #FFFFFF;
}

.nav a.active {
    color: #9D4EDD;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(157, 78, 221, 0.2);
    color: #B8B8D0;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.btn-outline:hover {
    border-color: #9D4EDD;
    color: #9D4EDD;
    box-shadow: 0 0 40px rgba(157, 78, 221, 0.08);
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #9D4EDD, #7B2FBE);
    border: none;
    color: #fff;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 40px rgba(157, 78, 221, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(157, 78, 221, 0.2);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 80px 0 60px;
    position: relative;
    z-index: 1;
    min-height: 85vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(157, 78, 221, 0.03);
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.hero-left {
    flex: 1;
}

.hero-left .tagline {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #9D4EDD;
    margin-bottom: 16px;
    opacity: 0.7;
}

.hero-left h1 {
    font-size: 72px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.15;
}

.hero-left h1 .wobble-1 {
    display: block;
    animation: wobble1 6s ease-in-out infinite;
    transform-origin: center;
    color: #FFFFFF;
}

.hero-left h1 .wobble-2 {
    display: block;
    animation: wobble2 7s ease-in-out infinite;
    transform-origin: center;
    color: #B8B8D0;
}

.hero-left h1 .wobble-3 {
    display: block;
    animation: wobble3 5.5s ease-in-out infinite;
    transform-origin: center;
    background: linear-gradient(135deg, #9D4EDD, #B84CFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: wobble3 5.5s ease-in-out infinite, gradientShift 4s ease-in-out infinite;
}

.hero-left .subtitle {
    font-size: 18px;
    color: #8888A0;
    margin-top: 16px;
    max-width: 480px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #9D4EDD, #7B2FBE);
    border: none;
    color: #fff;
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 50px rgba(157, 78, 221, 0.12);
}

.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 80px rgba(157, 78, 221, 0.25);
}

.btn-hero-secondary {
    background: transparent;
    border: 1px solid rgba(157, 78, 221, 0.2);
    color: #B8B8D0;
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.btn-hero-secondary:hover {
    border-color: #9D4EDD;
    color: #9D4EDD;
    transform: translateY(-3px);
}

/* ===== HERO RIGHT ===== */
.hero-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 280px;
}

/* Games Cards */
.hero-games {
    display: grid;
    /* minmax(0, 1fr), а не просто 1fr: без этого grid-колонка не может сжаться
       уже своего минимального контента (иконка/слово в .name), и третья карточка
       вылезает за пределы контейнера на узких экранах вместо того, чтобы уменьшиться */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.game-card {
    aspect-ratio: 1 / 1;
    min-width: 0;
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    transition: 0.4s ease;
    backdrop-filter: blur(8px);
    cursor: default;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.game-card.cs2 {
    background: rgba(0, 80, 255, 0.15);
    border: 2px solid rgba(0, 80, 255, 0.5);
    box-shadow: 0 0 40px rgba(0, 80, 255, 0.15);
}

.game-card.cs2:hover {
    background: rgba(0, 80, 255, 0.25);
    border-color: #0050FF;
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 16px 50px rgba(0, 80, 255, 0.25);
}

.game-card.dota2 {
    background: rgba(255, 0, 0, 0.15);
    border: 2px solid rgba(255, 0, 0, 0.5);
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.15);
}

.game-card.dota2:hover {
    background: rgba(255, 0, 0, 0.25);
    border-color: #FF0000;
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 16px 50px rgba(255, 0, 0, 0.25);
}

.game-card.mc {
    background: rgba(0, 200, 50, 0.15);
    border: 2px solid rgba(0, 200, 50, 0.5);
    box-shadow: 0 0 40px rgba(0, 200, 50, 0.15);
}

.game-card.mc:hover {
    background: rgba(0, 200, 50, 0.25);
    border-color: #00C832;
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 16px 50px rgba(0, 200, 50, 0.25);
}

.game-card .icon {
    font-size: 26px;
    margin-bottom: 4px;
    display: block;
    opacity: 0.7;
    color: #FFFFFF;
}

.game-card .icon img {
    width: 44px;
    height: 44px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.game-card .name {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Stats */
.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-stats .stat {
    background: rgba(157, 78, 221, 0.03);
    border: 1px solid rgba(157, 78, 221, 0.06);
    border-radius: 10px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.4s ease;
    backdrop-filter: blur(8px);
    animation: slideRight 0.6s ease-out forwards;
    opacity: 0;
}

.hero-stats .stat:nth-child(1) { animation-delay: 0.1s; }
.hero-stats .stat:nth-child(2) { animation-delay: 0.2s; }
.hero-stats .stat:nth-child(3) { animation-delay: 0.3s; }

.hero-stats .stat:hover {
    border-color: rgba(157, 78, 221, 0.15);
    background: rgba(157, 78, 221, 0.05);
    transform: translateX(4px);
}

.hero-stats .stat .stat-label {
    font-size: 13px;
    color: #8888A0;
    font-weight: 500;
}

.hero-stats .stat .stat-number {
    font-size: 22px;
    font-weight: 900;
    color: #E8E8F0;
    letter-spacing: -0.5px;
    animation: countUp 0.6s ease-out forwards;
    opacity: 0;
}

.hero-stats .stat .stat-number:nth-child(1) { animation-delay: 0.2s; }
.hero-stats .stat .stat-number:nth-child(2) { animation-delay: 0.3s; }
.hero-stats .stat .stat-number:nth-child(3) { animation-delay: 0.4s; }

.hero-stats .stat .stat-number .accent {
    color: #9D4EDD;
}

/* ============================================
   BANNER SLIDER
   ============================================ */
.banner-section {
    padding: 40px 0 40px;
    position: relative;
    z-index: 1;
    background: #0A0A10;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(157, 78, 221, 0.05);
    background: rgba(16, 16, 26, 0.4);
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 16, 0.85), rgba(20, 10, 40, 0.7));
    z-index: 0;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide > * {
    position: relative;
    z-index: 1;
}

.banner-slide .banner-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9D4EDD;
    margin-bottom: 8px;
    opacity: 0.7;
}

.banner-slide .banner-title {
    font-size: 32px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.banner-slide .banner-title .highlight {
    background: linear-gradient(135deg, #9D4EDD, #B84CFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-slide .banner-desc {
    font-size: 15px;
    color: #8888A0;
    max-width: 500px;
}

.banner-slide .banner-btn {
    margin-top: 16px;
    background: linear-gradient(135deg, #9D4EDD, #7B2FBE);
    border: none;
    color: #fff;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    width: fit-content;
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.08);
}

.banner-slide .banner-btn:hover {
    transform: translateX(6px) scale(1.02);
    box-shadow: 0 0 50px rgba(157, 78, 221, 0.2);
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(157, 78, 221, 0.15);
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.banner-dot.active {
    background: #9D4EDD;
    width: 24px;
    border-radius: 4px;
}

.banner-dot:hover {
    background: rgba(157, 78, 221, 0.35);
}

/* ============================================
   TRAILER SECTION
   ============================================ */
.trailer-section {
    padding: 40px 0 60px;
    position: relative;
    z-index: 1;
    background: #0A0A10;
}

.trailer-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.trailer-title {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    color: #FFFFFF;
}

.trailer-title .highlight {
    background: linear-gradient(135deg, #9D4EDD, #B84CFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trailer-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(157, 78, 221, 0.05);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    background: #000;
}

.trailer-video::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(157, 78, 221, 0.05));
    z-index: -1;
    filter: blur(4px);
}

.trailer-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.trailer-btn-wrap {
    text-align: center;
    margin-top: 32px;
}

.btn-trailer {
    background: linear-gradient(135deg, #9D4EDD, #7B2FBE);
    border: none;
    color: #fff;
    padding: 16px 56px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.4s ease;
    box-shadow: 0 0 50px rgba(157, 78, 221, 0.12);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-trailer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.03), transparent);
    transform: rotate(45deg);
    transition: 0.6s;
}

.btn-trailer:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 0 80px rgba(157, 78, 221, 0.3);
}

.btn-trailer:hover::before {
    left: 100%;
}

.btn-trailer:active {
    transform: scale(0.97);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid rgba(157, 78, 221, 0.05);
    padding: 40px 0 30px;
    position: relative;
    z-index: 1;
    background: rgba(10, 10, 16, 0.95);
    backdrop-filter: blur(12px);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-left {
    flex: 0 0 auto;
}

.footer-logo {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0px;
    margin-bottom: 6px;
}

.footer-logo .light {
    color: #FFFFFF;
}

.footer-logo .accent {
    color: #9D4EDD;
}

.footer-logo .logo-badge {
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(157, 78, 221, 0.12);
    color: #9D4EDD;
    padding: 2px 10px;
    border-radius: 3px;
}

.footer-left p {
    font-size: 12px;
    color: #444458;
    margin-top: 4px;
}

.footer-center {
    flex: 1;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.social-link {
    color: #555570;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #9D4EDD;
    transition: 0.3s ease;
}

.social-link:hover {
    color: #9D4EDD;
}

.social-link:hover::after {
    width: 100%;
}

.footer-right {
    flex: 0 0 auto;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 12px;
    color: #444458;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #8888A0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-left h1 {
        font-size: 52px;
    }
    .hero-right {
        min-width: 220px;
    }
    .game-card .name {
        font-size: 15px;
    }
    .game-card .icon {
        font-size: 22px;
    }
    .hero-stats .stat .stat-number {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 66px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 50px 0 30px;
        min-height: auto;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    
    .hero-left h1 {
        font-size: 38px;
    }
    
    .hero-left .subtitle {
        margin-left: auto;
        margin-right: auto;
        font-size: 15px;
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-right {
        width: 100%;
        min-width: auto;
    }
    
    .hero-games {
        gap: 10px;
    }
    
    .game-card {
        padding: 12px 8px;
    }
    
    .game-card .icon {
        font-size: 20px;
    }

    .game-card .icon img {
        width: 34px;
        height: 34px;
    }

    .game-card .name {
        font-size: 14px;
    }
    
    .hero-stats .stat {
        padding: 8px 16px;
    }
    
    .hero-stats .stat .stat-number {
        font-size: 16px;
    }
    
    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .header {
        padding: 14px 0;
    }
    
    .nav {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav a {
        font-size: 13px;
    }
    
    .banner-slider {
        height: 280px;
    }
    
    .banner-slide {
        padding: 28px 24px;
    }
    
    .banner-slide .banner-title {
        font-size: 22px;
    }
    
    .banner-slide .banner-desc {
        font-size: 13px;
    }
    
    .trailer-title {
        font-size: 22px;
    }
    
    .btn-trailer {
        padding: 14px 36px;
        font-size: 15px;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        align-items: center;
    }
    
    .footer-social {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }
    
    .hero-left h1 {
        font-size: 28px;
    }
    
    .hero-games {
        gap: 6px;
    }

    .game-card .icon {
        font-size: 16px;
    }

    .game-card .icon img {
        width: 22px;
        height: 22px;
    }

    .game-card {
        padding: 8px 4px;
        border-radius: 10px;
    }

    .game-card .name {
        font-size: 10px;
        letter-spacing: 0.2px;
    }

    .header {
        padding: 12px 0;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .logo-badge {
        font-size: 6px;
        padding: 2px 8px;
    }
    
    .nav {
        gap: 10px;
    }
    
    .nav a {
        font-size: 11px;
    }
    
    .btn-primary,
    .btn-outline {
        padding: 6px 14px;
        font-size: 11px;
    }
    
    .banner-slider {
        height: 220px;
    }
    
    .banner-slide .banner-title {
        font-size: 18px;
    }
    
    .banner-slide .banner-desc {
        font-size: 12px;
    }
    
    .banner-slide .banner-btn {
        padding: 8px 20px;
        font-size: 12px;
    }
    
    .trailer-title {
        font-size: 18px;
    }
    
    .btn-trailer {
        padding: 12px 28px;
        font-size: 14px;
    }
}

/* Совсем узкие телефоны (iPhone SE, бюджетные Android ~320-360px) —
   дисциплины ужимаем ещё сильнее, чтобы все 3 карточки гарантированно помещались */
@media (max-width: 360px) {
    .hero-games {
        gap: 5px;
    }

    .game-card {
        padding: 6px 3px;
        border-radius: 8px;
    }

    .game-card .icon img {
        width: 18px;
        height: 18px;
    }

    .game-card .name {
        font-size: 9px;
        letter-spacing: 0;
    }
}

/* ============================================
   AUTHENTICATION STYLES
   ============================================ */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.auth-wrapper {
    background: rgba(16, 16, 26, 0.85);
    border: 1px solid rgba(157, 78, 221, 0.08);
    border-radius: 20px;
    padding: 48px 40px;
    max-width: 480px;
    width: 100%;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    animation: authIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes authIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    font-size: 28px;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.auth-logo .light {
    color: #FFFFFF;
}

.auth-logo .accent {
    color: #9D4EDD;
}

.auth-subtitle {
    color: #555570;
    font-size: 13px;
    margin-top: 4px;
}

.auth-form h2 {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.auth-desc {
    color: #8888A0;
    font-size: 14px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #B8B8D0;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(10, 10, 16, 0.6);
    border: 1px solid rgba(157, 78, 221, 0.1);
    border-radius: 10px;
    color: #E8E8F0;
    font-size: 14px;
    transition: 0.3s;
    outline: none;
}

.form-input:focus {
    border-color: rgba(157, 78, 221, 0.4);
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.05);
}

.form-input::placeholder {
    color: #444458;
}

.form-error {
    display: block;
    color: #FF4D6D;
    font-size: 12px;
    margin-top: 4px;
}

.btn-auth {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #9D4EDD, #7B2FBE);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 8px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(157, 78, 221, 0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #555570;
}

.auth-footer a {
    color: #9D4EDD;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    color: #B84CFF;
}

/* ============================================
   USER DROPDOWN
   ============================================ */
.dropdown-user {
    position: relative;
    display: inline-block;
}

.btn-user {
    background: rgba(157, 78, 221, 0.08);
    border: 1px solid rgba(157, 78, 221, 0.15);
    color: #E8E8F0;
    padding: 8px 16px 8px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-user:hover {
    background: rgba(157, 78, 221, 0.15);
    border-color: rgba(157, 78, 221, 0.3);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9D4EDD, #7B2FBE);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    text-transform: uppercase;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    color: #E8E8F0;
}

.btn-user .arrow {
    font-size: 10px;
    color: #666;
    transition: 0.3s;
}

.dropdown-user:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(16, 16, 26, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(157, 78, 221, 0.1);
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.dropdown-user:hover .dropdown-user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-user-menu a {
    display: block;
    padding: 10px 16px;
    color: #B8B8D0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    transition: 0.2s;
}

.dropdown-user-menu a:hover {
    background: rgba(157, 78, 221, 0.1);
    color: #9D4EDD;
}

/* ============================================
   PROFILE SECTION
   ============================================ */
.profile-section {
    padding: 80px 0 60px;
    position: relative;
    z-index: 1;
    min-height: 70vh;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(16, 16, 26, 0.6);
    border: 1px solid rgba(157, 78, 221, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9D4EDD, #7B2FBE);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    flex-shrink: 0;
}

.profile-info h1 {
    font-size: 28px;
    font-weight: 800;
    color: #FFFFFF;
}

.profile-email {
    color: #8888A0;
    font-size: 15px;
    margin-top: 4px;
}

.profile-badge {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.profile-badge .badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(157, 78, 221, 0.15);
    color: #9D4EDD;
    border: 1px solid rgba(157, 78, 221, 0.2);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    background: rgba(16, 16, 26, 0.6);
    border: 1px solid rgba(157, 78, 221, 0.06);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: 0.3s;
}

.stat-card:hover {
    border-color: rgba(157, 78, 221, 0.15);
    transform: translateY(-2px);
}

.stat-card .stat-number {
    font-size: 32px;
    font-weight: 900;
    color: #FFFFFF;
    display: block;
}

.stat-card .stat-label {
    font-size: 12px;
    color: #555570;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ============================================
   RESPONSIVE AUTH
   ============================================ */
@media (max-width: 768px) {
    .auth-wrapper {
        padding: 40px 32px;
        margin: 0 16px;
    }

    .auth-logo {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .auth-wrapper {
        padding: 32px 20px;
        margin: 16px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .profile-stats {
        grid-template-columns: 1fr 1fr;
    }
}


/* ============================================
   PROFILE - HLTV/BLAST STYLE
   ============================================ */
.profile-hltv {
    padding: 32px 0 60px;
    position: relative;
    z-index: 1;
}

.profile-hltv-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

/* ===== LEFT SIDEBAR ===== */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-card {
    background: rgba(16, 16, 26, 0.6);
    border: 1px solid rgba(157, 78, 221, 0.06);
    border-radius: 12px;
    padding: 20px;
}

.profile-card .card-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555570;
    margin-bottom: 12px;
}

/* Avatar Block */
.avatar-block {
    text-align: center;
    padding: 24px 20px;
}

.avatar-block .avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9D4EDD, #7B2FBE);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 12px;
    text-transform: uppercase;
}

.avatar-block .nickname {
    font-size: 22px;
    font-weight: 800;
    color: #FFFFFF;
}

.avatar-block .nickname small {
    font-size: 14px;
    font-weight: 400;
    color: #555570;
}

.avatar-block .level {
    font-size: 12px;
    color: #9D4EDD;
    font-weight: 600;
}

/* Info Lines */
.info-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.info-line:last-child {
    border-bottom: none;
}

.info-line .label {
    font-size: 13px;
    color: #666680;
}

.info-line .value {
    font-size: 13px;
    color: #E8E8F0;
    font-weight: 500;
}

/* Badges */
.profile-badges-side {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.profile-badges-side .badge {
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: rgba(157, 78, 221, 0.1);
    color: #9D4EDD;
    border: 1px solid rgba(157, 78, 221, 0.1);
}

/* Social Links */
.social-links-side {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.social-links-side a {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #8888A0;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.04);
    text-decoration: none;
    transition: 0.3s;
}

.social-links-side a:hover {
    background: rgba(157, 78, 221, 0.1);
    color: #9D4EDD;
    border-color: rgba(157, 78, 221, 0.1);
}

/* ===== MAIN CONTENT ===== */
.profile-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Stats Grid */
.stats-grid-hltv {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.stat-box {
    background: rgba(16, 16, 26, 0.6);
    border: 1px solid rgba(157, 78, 221, 0.04);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    transition: 0.3s;
}

.stat-box:hover {
    border-color: rgba(157, 78, 221, 0.1);
}

.stat-box .number {
    font-size: 28px;
    font-weight: 900;
    color: #FFFFFF;
    display: block;
}

.stat-box .label {
    font-size: 11px;
    color: #555570;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Info Grid */
.info-grid-hltv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.info-item {
    background: rgba(16, 16, 26, 0.4);
    border: 1px solid rgba(157, 78, 221, 0.03);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-item .label {
    font-size: 12px;
    color: #555570;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.info-item .value {
    font-size: 14px;
    color: #E8E8F0;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .profile-hltv-wrapper {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .profile-sidebar {
        grid-template-columns: 1fr;
    }
    
    .stats-grid-hltv {
        grid-template-columns: 1fr 1fr;
    }
    
    .info-grid-hltv {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid-hltv {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .stat-box .number {
        font-size: 20px;
    }
}


/* ===== TABS ===== */
.profile-tabs {
    display: flex;
    gap: 4px;
    background: rgba(16, 16, 26, 0.4);
    border-radius: 10px;
    padding: 4px;
    border: 1px solid rgba(157, 78, 221, 0.04);
}

.tab-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #666680;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn:hover {
    color: #E8E8F0;
}

.tab-btn.active {
    background: rgba(157, 78, 221, 0.12);
    color: #9D4EDD;
}

.tab-content {
    display: none;
    animation: fadeInUp 0.3s ease-out;
}

.tab-content.active {
    display: block;
}

.game-switch-select {
    background: rgba(157, 78, 221, 0.05);
    border: 1px solid rgba(157, 78, 221, 0.1);
    color: #E8E8F0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
}

.game-switch-select option {
    background: #1A1A2E;
    color: #E8E8F0;
}

.btn-verify {
    padding: 8px 20px;
    background: rgba(0, 200, 50, 0.1);
    border: 1px solid rgba(0, 200, 50, 0.2);
    border-radius: 8px;
    color: #00C832;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-verify:hover {
    background: rgba(0, 200, 50, 0.2);
    transform: translateY(-1px);
}

/* ===== GAME ACCOUNTS ===== */
.game-account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    background: rgba(10, 10, 16, 0.4);
    border: 1px solid rgba(157, 78, 221, 0.04);
    border-radius: 10px;
    margin-bottom: 12px;
    transition: 0.3s;
}

.game-account-item:hover {
    border-color: rgba(157, 78, 221, 0.08);
}

.game-account-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.game-account-info .game-icon {
    font-size: 28px;
    width: 40px;
    text-align: center;
}

.game-account-info .game-name {
    font-size: 15px;
    font-weight: 600;
    color: #E8E8F0;
}

.game-account-info .game-status {
    font-size: 13px;
    color: #8888A0;
    margin-top: 2px;
}

.game-account-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-connect {
    padding: 8px 24px;
    background: linear-gradient(135deg, #9D4EDD, #7B2FBE);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.25);
}

.btn-disconnect {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid rgba(255, 77, 109, 0.3);
    border-radius: 8px;
    color: #FF4D6D;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.btn-disconnect:hover {
    background: rgba(255, 77, 109, 0.1);
}

@media (max-width: 768px) {
    .game-account-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .game-account-actions {
        width: 100%;
    }

    .btn-connect, .btn-disconnect {
        width: 100%;
        text-align: center;
    }
}

/* ===== GAME ICONS ===== */
.game-icon-svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.game-icon-svg.cs2 {
    color: #9D4EDD;
}

.game-icon-svg.dota2 {
    color: #FF006E;
}

.game-icon-svg.minecraft {
    color: #00D4FF;
}

.game-icon-svg.steam {
    color: #9D4EDD;
}

/* ===== SOCIAL ICONS ===== */
.social-icon-svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.6;
    transition: 0.3s;
}

.social-icon-svg:hover {
    opacity: 1;
}

.btn-danger {
    background: #FF4D6D;
    border: none;
    color: #fff;
}

.btn-danger:hover {
    background: #E0355A;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 77, 109, 0.3);
}

/* ============================================
   REINWIDE LEAGUE - PROFESSIONAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0A0A0F;
    --bg-secondary: #12121A;
    --bg-card: #181825;
    --bg-card-hover: #1E1E30;
    --border-color: #2A2A3E;
    --border-light: #1E1E2E;
    --text-primary: #E8E8F0;
    --text-secondary: #8888A0;
    --text-muted: #555570;
    --accent: #9D4EDD;
    --accent-hover: #B84CFF;
    --accent-gradient: linear-gradient(135deg, #9D4EDD, #7B2FBE);
    --danger: #FF4D6D;
    --success: #00C832;
    --warning: #FFB800;
    --info: #00D4FF;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(157, 78, 221, 0.3);
}

.btn-secondary {
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--accent);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #E0355A;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: #00A028;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-xs {
    padding: 4px 12px;
    font-size: 11px;
    border-radius: 4px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--border-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: rgba(10, 10, 16, 0.6);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.05);
}

.form-control::placeholder { color: var(--text-muted); }
.form-control:disabled { opacity: 0.5; cursor: not-allowed; }

select.form-control { appearance: none; cursor: pointer; }
select.form-control option { background: var(--bg-secondary); }

/* ============================================
   TABLES
   ============================================ */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    padding: 10px 14px;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
}

.table td {
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.table tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-primary { background: rgba(157, 78, 221, 0.15); color: var(--accent); }
.badge-success { background: rgba(0, 200, 50, 0.15); color: var(--success); }
.badge-danger { background: rgba(255, 77, 109, 0.15); color: var(--danger); }
.badge-warning { background: rgba(255, 184, 0, 0.15); color: var(--warning); }
.badge-info { background: rgba(0, 212, 255, 0.15); color: var(--info); }
.badge-muted { background: rgba(255,255,255,0.04); color: var(--text-muted); }

/* ============================================
   ADMIN LAYOUT
   ============================================ */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-light);
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.admin-sidebar .logo {
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 16px;
}

.admin-sidebar .logo a {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
}

.admin-sidebar .logo a .accent { color: var(--accent); }

.admin-sidebar .nav-section {
    padding: 8px 24px 4px;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-weight: 600;
}

.admin-sidebar .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
}

.admin-sidebar .nav-item:hover {
    color: var(--text-primary);
    background: rgba(157, 78, 221, 0.04);
}

.admin-sidebar .nav-item.active {
    color: var(--accent);
    border-left-color: var(--accent);
    background: rgba(157, 78, 221, 0.06);
}

.admin-sidebar .nav-item .icon { width: 20px; text-align: center; opacity: 0.6; }

.admin-main {
    margin-left: 260px;
    flex: 1;
    padding: 24px 32px 60px;
    min-height: 100vh;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.admin-topbar .page-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.admin-topbar .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.admin-topbar .user-info .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 14px;
}

/* ============================================
   STATS CARDS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-card .number {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-primary);
}

.stat-card .label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-success {
    background: rgba(0, 200, 50, 0.08);
    border: 1px solid rgba(0, 200, 50, 0.2);
    color: var(--success);
}

.alert-danger {
    background: rgba(255, 77, 109, 0.08);
    border: 1px solid rgba(255, 77, 109, 0.2);
    color: var(--danger);
}

.alert-warning {
    background: rgba(255, 184, 0, 0.08);
    border: 1px solid rgba(255, 184, 0, 0.2);
    color: var(--warning);
}

.alert-info {
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--info);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .admin-sidebar { width: 60px; }
    .admin-sidebar .logo span,
    .admin-sidebar .nav-item span { display: none; }
    .admin-sidebar .nav-section { display: none; }
    .admin-main { margin-left: 60px; padding: 16px; }
    .admin-sidebar .nav-item { padding: 10px 16px; justify-content: center; }
    .admin-sidebar .nav-item .icon { opacity: 1; }
}

/* ============================================
   MODAL OVERLAY
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active { display: flex; }

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover { color: var(--text-primary); }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}