:root {
    --gold: #ffd700;
    --gold-light: #ffe066;
    --gold-shadow: rgba(255, 215, 0, 0.15);
    --red: #e63946;
    --blue: #4a9eff;
    --orange: #ff8c00;
    --green: #4caf50;
    --bg-primary: #0a0f0a;
    --bg-card: rgba(16, 26, 16, 0.88);
    --border-color: rgba(255, 215, 0, 0.07);
    --text-primary: #ece4d9;
    --text-secondary: #b8b0a0;
    --text-muted: #bdbbb7;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Уведомления */
.notify-premium {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 10px 0;
}

.notify-premium .notify-item {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--gold);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
}

/* Контейнер */
.race-premium {
    margin: 10px;
    padding: 10px;
    padding-top:150px;
 background:
        url('/public/img/r.png') no-repeat center top / 100%,
        radial-gradient(ellipse at 0% 30%, rgba(30, 60, 180, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 100% 30%, rgba(200, 30, 30, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 80%, rgba(30, 60, 180, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 10% 90%, rgba(200, 30, 30, 0.06) 0%, transparent 60%),
        linear-gradient(180deg, #0c0c0e 0%, #141416 20%, #1c1c1e 50%, #141416 80%, #0c0c0e 100%);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9);
}

/* Декоративные полосы ДПС (синяя и красная) сверху и снизу */
.race-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            #0039a6 20%,
            #0039a6 40%,
            #d52b1e 60%,
            #d52b1e 80%,
            transparent 100%);
    opacity: 0.4;
    z-index: 1;
}

.race-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            #0039a6 20%,
            #0039a6 40%,
            #d52b1e 60%,
            #d52b1e 80%,
            transparent 100%);
    opacity: 0.4;
    z-index: 1;
}

/* Мигающие маячки по углам */
.race-premium .police-flashes {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 1;
}

/* Красный справа сверху */
.race-premium .police-flashes::before {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 40px;
    height: 40px;
    background: rgba(200, 30, 30, 0.3);
    border-radius: 50%;
    filter: blur(10px);
    animation: redFlash 2s ease-in-out infinite;
}

/* Синий слева сверху */
.race-premium .police-flashes::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 40px;
    height: 40px;
    background: rgba(30, 60, 180, 0.3);
    border-radius: 50%;
    filter: blur(10px);
    animation: blueFlash 2s ease-in-out infinite;
}

/* Дополнительные приглушённые маячки внизу */
.race-premium .police-bottom-flashes {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 1;
}

.race-premium .police-bottom-flashes::before {
    content: '';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    background: rgba(200, 30, 30, 0.15);
    border-radius: 50%;
    filter: blur(8px);
    animation: redFlashDim 2.5s ease-in-out infinite;
}

.race-premium .police-bottom-flashes::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -5px;
    width: 30px;
    height: 30px;
    background: rgba(30, 60, 180, 0.15);
    border-radius: 50%;
    filter: blur(8px);
    animation: blueFlashDim 2.5s ease-in-out infinite;
}

@keyframes redFlash {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.85;
        transform: scale(1.2);
    }
}

@keyframes blueFlash {

    0%,
    100% {
        opacity: 0.85;
        transform: scale(1.2);
    }

    50% {
        opacity: 0.2;
        transform: scale(1);
    }
}

@keyframes redFlashDim {

    0%,
    100% {
        opacity: 0.1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

@keyframes blueFlashDim {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1.1);
    }

    50% {
        opacity: 0.1;
        transform: scale(1);
    }
}



/* Контент поверх */
.race-premium>* {
    position: relative;
    z-index: 2;
}

/* Верхняя панель */
.premium-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 10px;
}

.premium-header .stat-block {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-secondary);
}

.premium-header .value {
    color: var(--gold);
    text-shadow: 0 0 10px var(--gold-shadow);
}

/* Машина */
.car-summary {
    background:
        /* стартовая клетка слева */
        repeating-linear-gradient(90deg,
            rgba(255, 255, 255, 0.12) 0px,
            rgba(255, 255, 255, 0.12) 6px,
            transparent 6px,
            transparent 12px) 0 0 / 24px 100% no-repeat,
        /* асфальт */
        linear-gradient(180deg, #1a1a1a 0%, #232323 50%, #1a1a1a 100%);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.8);
}

/* Поребрики (красно-белые бордюры) сверху и снизу */
.car-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: repeating-linear-gradient(90deg,
            #c0392b 0px, #c0392b 8px,
            #ecf0f1 8px, #ecf0f1 16px);
    opacity: 0.35;
    pointer-events: none;
}

.car-summary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: repeating-linear-gradient(90deg,
            #c0392b 0px, #c0392b 8px,
            #ecf0f1 8px, #ecf0f1 16px);
    opacity: 0.35;
    pointer-events: none;
}

/* Центральная прерывистая разметка */
.car-summary .track-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 3px dashed rgba(255, 255, 255, 0.08);
    transform: translateY(-50%);
    pointer-events: none;
}

.car-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
    flex-shrink: 0;
    z-index: 1;
}

.car-info {
    flex: 1;
    z-index: 1;
}

.car-icon-large {
    font-size: 1.8em;
    line-height: 1;
}

.car-number {
    font-size: 15px;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

/* Кнопки навигации */
.race-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 6px;
    margin:20px 0px;
}

.btn-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    background: linear-gradient(180deg, #1a1a1a 0%, #232323 50%, #1a1a1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    transition: all var(--transition);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

/* Диагональные полосы как на полицейской ленте */
.btn-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 8px,
            rgba(255, 255, 255, 0.02) 8px,
            rgba(255, 255, 255, 0.02) 10px);
    pointer-events: none;
}

/* Цветная полоса слева (красная или синяя) */
.btn-compact::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #d52b1e, #0039a6);
    opacity: 0.6;
    transition: opacity var(--transition);
}

/* Красная полоса при наведении */
.btn-compact:hover::after {
    opacity: 1;
}

/* Золотая кнопка (Гараж) */
.btn-compact.gold {
    border-color: rgba(255, 215, 0, 0.15);
}

.btn-compact.gold::after {
    background: linear-gradient(180deg, #ffd700, #ff8c00);
}

.btn-compact:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--gold);
    border-color: rgba(255, 215, 0, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Блок лиги */
.league-block {
    background:
        /* диагональные полосы как полицейская лента */
        repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.03) 12px,
            transparent 12px,
            transparent 24px),
        /* тёмная подложка */
        linear-gradient(180deg, #0e0e10 0%, #141416 30%, #18181a 50%, #141416 70%, #0e0e10 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 12px;
    margin: 8px 0 10px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.85);
}

/* Красная и синяя полосы по краям */
.league-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            #d52b1e 0%, #d52b1e 35%,
            #0039a6 35%, #0039a6 65%,
            #d52b1e 65%, #d52b1e 100%);
    opacity: 0.25;
    pointer-events: none;
}

.league-block::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            #0039a6 0%, #0039a6 35%,
            #d52b1e 35%, #d52b1e 65%,
            #0039a6 65%, #0039a6 100%);
    opacity: 0.25;
    pointer-events: none;
}

@keyframes leagueRedFlash {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.3);
    }
}

@keyframes leagueBlueFlash {

    0%,
    100% {
        opacity: 0.9;
        transform: scale(1.3);
    }

    50% {
        opacity: 0.2;
        transform: scale(1);
    }
}

.league-block .league-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.league-block .league-name {
    font-size: 15px;
    color: var(--text-primary);
}

.league-block .league-rating {
    font-size: 13px;
    color: var(--text-secondary);
}

.league-block .league-rating .value {
    color: var(--gold);
    text-shadow: 0 0 10px var(--gold-shadow);
}

.league-block .bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.league-block .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 3px;
    transition: width 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.league-block .values {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
    position: relative;
    z-index: 1;
}

/* Полицейский маячок */
.police-beacon {
    position: absolute;
    top: -6px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #222;
    border: 1px solid #444;
    z-index: 2;
    pointer-events: none;
}

/* Мигающий свет (красный и синий) */
.police-beacon::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 30, 30, 0.7) 0%, rgba(200, 30, 30, 0.2) 50%, transparent 70%);
    filter: blur(2px);
    animation: beaconRed 1.2s ease-in-out infinite;
}

.police-beacon::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 60, 180, 0.7) 0%, rgba(30, 60, 180, 0.2) 50%, transparent 70%);
    filter: blur(2px);
    animation: beaconBlue 1.2s ease-in-out infinite;
}

@keyframes beaconRed {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.4);
    }
}

@keyframes beaconBlue {

    0%,
    100% {
        opacity: 1;
        transform: scale(1.4);
    }

    50% {
        opacity: 0.2;
        transform: scale(1);
    }
}

/* Заглушка без машины */
.no-car {
    text-align: center;
    padding: 15px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.car-image {
    width: 55px;
    height: 55px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
    flex-shrink: 0;
}

.car-info {
    flex: 1;
}

/* Номер машины */
.car-number-plate {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border: 1px solid #222;
    border-radius: 5px;
    padding: 3px 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    line-height: 1;
    font-family: 'Arial Black', 'Segoe UI', sans-serif;
    font-weight: 700;
    color: #111;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
    display: inline-flex;
    font-size: 14px;
}

/* Гоночная трасса */
.league-track {
    position: relative;
    width: 100%;
    height: 18px;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
    margin-top: 4px;
}

/* Заполненная часть трассы */
.league-track-fill {
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 215, 0, 0.1) 100%);
    border-right: 2px solid #554c18;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

/* Машинка на конце заполнения */
.league-track-car {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6));
    transition: left 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

/* Разметка на трассе */
.league-track::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 2px dashed rgba(255, 255, 255, 0.05);
    transform: translateY(-50%);
    pointer-events: none;
}


































/* ========== ГАРАЖ ПРЕМИУМ ========== */
.garage-premium {
    margin: 10px;
    padding: 10px;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(230, 57, 70, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(74, 158, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(255, 140, 0, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, #0c0c0e 0%, #141416 20%, #1c1c1e 50%, #141416 80%, #0c0c0e 100%);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

/* ========== ШАПКА ========== */
.garage-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 5px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
    animation: heroFadeIn 0.3s ease backwards;
}

.garage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #d52b1e, #0039a6);
    opacity: 0.3;
}

/* ========== СЦЕНА С МАШИНОЙ И ДОРОГОЙ ========== */
.garage-car-scene {
    position: relative;
    width: 100px;
    height: 70px;
    flex-shrink: 0;
    animation: carFloat 2s ease-in-out infinite;
}

.garage-road {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 18px;
    background: linear-gradient(180deg, #1a1a1a, #2a2a2a);
    border-radius: 3px;
    overflow: hidden;
}

.garage-road::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
}

.garage-road-line {
    position: absolute;
    top: 50%;
    left: -12px;
    width: calc(100% + 24px);
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 215, 0, 0.6) 0px,
        rgba(255, 215, 0, 0.6) 6px,
        transparent 6px,
        transparent 12px
    );
    transform: translateY(-50%);
    animation: roadLineMove 0.8s linear infinite;
}

.garage-car {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
    z-index: 2;
    animation: carDriveIn 0.4s ease backwards;
    animation-delay: 0.1s;
}

/* ========== ИНФО В ШАПКЕ ========== */
.garage-hero-info {
    flex: 1;
}

.garage-car-name {
    font-size: 14px;
    color: #ece4d9;
    margin-bottom: 4px;
    animation: nameFadeIn 0.25s ease backwards;
    animation-delay: 0.15s;
}

/* ========== НОМЕР МАШИНЫ ========== */
.car-number-plate {
    display: inline-flex;
    align-items: center;
    background: #f5f5f5;
    border: 2px solid #222;
    border-radius: 5px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.7);
    overflow: hidden;
    line-height: 1;
    font-family: 'Arial Black', 'Segoe UI', sans-serif;
    font-weight: 700;
    color: #111;
    animation: plateFadeIn 0.2s ease backwards;
    animation-delay: 0.25s;
}

.car-number-plate .plate-flag {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border-right: 2px solid #222;
}

.car-number-plate .plate-flag .flag {
    width: 20px;
    height: 14px;
    background: linear-gradient(to bottom,
        #ffffff 0%, #ffffff 33.33%,
        #0039a6 33.33%, #0039a6 66.66%,
        #d52b1e 66.66%, #d52b1e 100%);
    border: 1px solid #222;
    border-radius: 1px;
}

.car-number-plate .plate-flag .rus {
    font-size: 8px;
    font-weight: 700;
    color: #111;
    margin-top: 1px;
}

.car-number-plate .plate-number {
    font-size: 15px;
    letter-spacing: 2px;
    padding: 5px 8px;
}

/* ========== СТАТИСТИКА В ШАПКЕ ========== */
.garage-stats-line {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    animation: statsFadeIn 0.25s ease backwards;
    animation-delay: 0.35s;
}

.stat-mini {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 3px 6px;
    text-align: center;
    flex: 1;
}

.stat-mini-label {
    display: block;
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
}

.stat-mini-value {
    font-size: 11px;
    color: #ffd700;
    font-weight: 600;
}

/* Детали прокачки */
.upgrade-details {
    margin-top: 4px;
    font-size: 9px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
}

.upgrade-current {
    color: #d4a54a; /* золотистый для текущего значения */
}

.upgrade-arrow {
    color: #666;
}

.upgrade-next {
    color: #86b441; /* зелёный для значения после прокачки */
    font-weight: 600;
}

.upgrade-bonus {
    color: #ffd700;
    font-weight: 600;
}

/* ========== ТОПЛИВО ========== */
.fuel-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 5px;
    margin-bottom: 10px;
    animation: heroFadeIn 0.3s ease backwards;
    animation-delay: 0.45s;
}

.fuel-icon {
    font-size: 20px;
}

.fuel-info {
    flex: 1;
}

.fuel-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
}

.fuel-label {
    color: #bdbbb7;
}

.fuel-value {
    color: #ffd700;
    font-weight: 600;
}

.fuel-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    overflow: hidden;
}

.fuel-fill {
    height: 100%;
    background: linear-gradient(90deg, #e67e22, #ffd700);
    border-radius: 3px;
    transition: width 0.6s;
}

.fuel-timer {
    font-size: 9px;
    color: #86b441;
    margin-top: 2px;
}

/* ========== ЗАГОЛОВКИ СЕКЦИЙ ========== */
.garage-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    padding: 0 2px;
}

.garage-section-title::before,
.garage-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
}

.garage-section-title::before {
    margin-right: 8px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2));
}

.garage-section-title::after {
    margin-left: 8px;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), transparent);
}

.garage-section-title .title-icon {
    font-size: 14px;
}

/* ========== СЕКЦИИ ========== */
.garage-section {
    margin-bottom: 10px;
}

.garage-section-characteristics {
    animation: sectionFadeIn 0.4s ease backwards;
    animation-delay: 0.5s;
}

.garage-section-upgrades {
    animation: sectionFadeIn 0.4s ease backwards;
    animation-delay: 0.6s;
}

/* ========== ПАРАМЕТРЫ ========== */
.params-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.param-box {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 5px;
    animation: plateFadeIn 0.25s ease backwards;
}

.param-box:nth-child(1) { animation-delay: 0.55s; }
.param-box:nth-child(2) { animation-delay: 0.6s; }
.param-box:nth-child(3) { animation-delay: 0.65s; }
.param-box:nth-child(4) { animation-delay: 0.7s; }

.param-icon {
    font-size: 16px;
}

.param-info {
    flex: 1;
}

.param-label {
    font-size: 14px;
        color: #ece4d9c4;
}

.param-val {
    font-size: 12px;
    color: #ece4d9;
    font-weight: 600;
}

.param-unit {
    font-size: 12px;
    color: #666;
}

/* ========== ПРОКАЧКА ========== */
.upgrade-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 5px;
    margin-bottom: 5px;
}

.upgrade-icon {
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.upgrade-info {
    flex: 1;
}

.upgrade-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
}

.upgrade-name {
    font-size: 12px;
    color: #ece4d9;
}

.upgrade-level {
    font-size: 10px;
    color: #bdbbb7;
}

.upgrade-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    overflow: hidden;
}

.upgrade-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s;
}

.upgrade-action {
    flex-shrink: 0;
}

.btn-upgrade {
    display: inline-block;
    padding: 4px 6px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(180deg, #1a1a1a, #232323);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #b8b0a0;
    transition: all 0.2s;
    font-size: 9px;
    line-height: 1.2;
}

.btn-upgrade:hover {
    background: rgba(255, 215, 0, 0.04);
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.15);
}

.btn-upgrade-cost {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #ffd700;
}

.btn-upgrade-resource {
    font-size: 8px;
    color: #888;
}

.upgrade-max {
    font-size: 11px;
    color: #ffd700;
    font-weight: 600;
}

/* ========== АНИМАЦИИ ========== */
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes carFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes roadLineMove {
    from { transform: translateY(-50%) translateX(0); }
    to { transform: translateY(-50%) translateX(12px); }
}

@keyframes nameFadeIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes plateFadeIn {
    from { opacity: 0; transform: scale(0.7); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes statsFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes sectionFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes carDriveIn {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(-50%); }
}