@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

/* Переменные для киберпанк темы */
:root {
    --cyber-purple-dark: #0a0014;
    --cyber-purple: #330066;
    --cyber-purple-light: #330066;
    --cyber-pink: #ff1493;
    --cyber-blue: #00ffff;
    --cyber-gold: #FFD700;
    --cyber-silver: #C0C0C0;
    --cyber-bronze: #CD7F32;
    --cyber-special: #8A2BE2;
}

h2 {
    font-size: 4em;
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #ff1493, #8a2be2, #ff69b4, #9370db, #ff1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradient-shift 3s ease infinite;
    text-shadow: 0 0 20px rgba(255, 20, 147, 0.2);
    position: relative;
    padding: 20px;
    margin: 30px 0;
    border-radius: 10px;
    background-color: rgba(20, 5, 30, 0.9);
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    h2 {  font-size: 2em;}
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Киберпанк контейнер */
.kiber-container {
    background: linear-gradient(135deg, #0a0014 0%, #1a0033 25%, #330066 50%, #1a0033 75%, #0a0014 100%);
    padding: 30px 15px 15px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

.kiber-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #ff1493, #00ffff, #ff1493, #00ffff);
    background-size: 400% 400%;
    animation: border-glow 4s ease infinite;
    border-radius: 15px;
    z-index: -2;
}

.kiber-container::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, #0a0014 0%, #1a0033 25%, #330066 50%, #1a0033 75%, #0a0014 100%);
    border-radius: 13px;
    z-index: -1;
}

@keyframes border-glow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Киберпанк навигация */
.kiber-href {
    display: flex;
    gap: 50px;
    place-content: center;
    margin: 50px 0 50px 0;
    position: relative;
    z-index: 10;
}

.kiber-href::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -30px;
    right: -30px;
    bottom: -15px;
    background: linear-gradient(45deg, transparent, rgba(255, 20, 147, 0.1), transparent);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kiber-href:hover::before {
    opacity: 1;
}

.kiber-href a {
    font-size: 30px;
    text-decoration: none;
    position: relative;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #ff1493, #00ffff, #ff1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

.kiber-href a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    right: -10px;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 20, 147, 0.2) 25%, 
        rgba(0, 255, 255, 0.2) 50%, 
        rgba(255, 20, 147, 0.2) 75%, 
        transparent 100%
    );
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.kiber-href a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #ff1493, #00ffff);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease;
    box-shadow: 0 0 10px #00ffff;
}

.kiber-href a:hover {
    font-weight: 900;
    transform: scale(1.05) perspective(1000px) rotateX(10deg);
    text-shadow: 
        0 0 10px #ff1493,
        0 0 20px #ff1493,
        0 0 30px #ff1493,
        2px 2px 0px #00ffff,
        4px 4px 0px rgba(0, 255, 255, 0.5);
    filter: drop-shadow(0 0 15px rgba(255, 20, 147, 0.8));
    animation: glitch 0.3s ease-in-out;
}

.kiber-href a:hover::before {
    opacity: 1;
    animation: neon-pulse 1s ease-in-out infinite alternate;
}

.kiber-href a:hover::after {
    width: calc(100% + 20px);
}

@keyframes glitch {
    0%, 100% { transform: scale(1.05) perspective(1000px) rotateX(10deg); }
    20% { transform: scale(1.05) perspective(1000px) rotateX(10deg) translateX(-2px); }
    40% { transform: scale(1.05) perspective(1000px) rotateX(10deg) translateX(2px); }
    60% { transform: scale(1.05) perspective(1000px) rotateX(10deg) translateX(-1px); }
    80% { transform: scale(1.05) perspective(1000px) rotateX(10deg) translateX(1px); }
}

@keyframes neon-pulse {
    0% { 
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(255, 20, 147, 0.2) 25%, 
            rgba(0, 255, 255, 0.2) 50%, 
            rgba(255, 20, 147, 0.2) 75%, 
            transparent 100%
        );
    }
    100% { 
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(255, 20, 147, 0.6) 25%, 
            rgba(0, 255, 255, 0.6) 50%, 
            rgba(255, 20, 147, 0.6) 75%, 
            transparent 100%
        );
    }
}

/* Стили для заголовка даты */
.kiber-container h3 {
    color: #00ffff;
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-weight: 400;
    margin-bottom: 30px;
}

/* Улучшенные степы */
.steps {
    gap: 15px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.step {
    display: flex;
    height: 200px;
    width: 100%;
    border-radius: 15px;
    text-align: left;
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 240, 255, 0.95));
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #ff1493, #00ffff, #ff1493);
    background-size: 300% 300%;
    animation: step-border 3s ease infinite;
    border-radius: 15px;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.step::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 240, 255, 0.95));
    border-radius: 13px;
    z-index: -1;
}

@keyframes step-border {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 30px rgba(255, 20, 147, 0.3),
        0 0 20px rgba(0, 255, 255, 0.2);
}

.step:hover::before {
    opacity: 1;
}

.step:hover img {
    transform: scale(1.05);
    filter: brightness(1.1) saturate(1.2);
}

.step-text {
    padding: 20px 10px 10px 20px;
    min-height: 200px;
    z-index: 1;
}

.step-text h3 {
    height: 35%;
    font-size: 15px;
    line-height: normal;
    margin: 0px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    color: #2c1810;
}

.step-text hr {
    margin: 10px 10px 10px 0px;
    background: linear-gradient(90deg, #ff1493, #00ffff);
    height: 2px;
    border: none;
    box-shadow: 0 0 5px rgba(255, 20, 147, 0.5);
}

.step-text p {
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: #444;
}

.step img {
    border-radius: 0 15px 15px 0;
    height: auto;
    transition: 0.6s ease;
}

/* Киберпанк кнопка */
.btn-kiber {
    margin-top: 10px;
    background: linear-gradient(45deg, #ff1493, #00ffff);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-kiber::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-kiber:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.5);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.btn-kiber:hover::before {
    left: 100%;
}

/* Оптимизированные баннеры */
.zoo-banner-container {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
    margin: 30px 0;
    width: 100%;
}

.zoo-banner {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background-color: #1a0033;
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 25/12; /* Соотношение сторон для больших баннеров */
}

.zoo-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 20, 147, 0.3);
}

.zoo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: bottom; /* Устраняет проблему с пробелами под изображениями */
    display: block; /* Убирает проблему с лишним пространством */
    will-change: transform; /* Подготавливает браузер к анимации */
    transition: transform 0.4s ease;
}

.zoo-banner img:hover {
    transform: scale(1.04);
}

.zoo-banner:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    background: linear-gradient(45deg, #ff1493, #00ffff) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
}

/* Размеры баннеров */
.zoo-big {
    grid-column: span 2; /* Занимает 1/4 сетки */
}

.zoo-small {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 1; /* Квадратный формат */
}

/* Улучшенный important блок */
.important {
    align-items: center;
    background: linear-gradient(135deg, #fff7fc 0%, #f0e6ff 50%, #fff7fc 100%);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    gap: 50px 10px;
    margin: 20px 0 20px 0;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

.important::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #ff1493, #00ffff, #ff1493);
    background-size: 300% 300%;
    animation: important-border 4s ease infinite;
    border-radius: 15px;
    z-index: -2;
}

.important::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, #fff7fc 0%, #f0e6ff 50%, #fff7fc 100%);
    border-radius: 13px;
    z-index: -1;
}

@keyframes important-border {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.important span {
    color: #c16c92;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 5px rgba(193, 108, 146, 0.3);
    font-size: 1.3em;
}

/* Якорные ссылки */
#old_archive, #kiber-sale, #kiber-rate {
    scroll-margin-top: 100px;
}

.kiber-center {
    justify-content: center;
}

.matrix-bg {
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .zoo-banner-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .zoo-banner-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .kiber-href {
        gap: 30px;
        flex-direction: column;
        align-items: center;
    }
    
    .kiber-href a {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .zoo-banner-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .zoo-banner {
        /* aspect-ratio: 2/1; */
    }
    
    .kiber-href {
        flex-direction: column;
        gap: 20px;
    }
    
    .kiber-href a {
        font-size: 20px;
    }
}

@media (min-width: 900px) and (max-width: 1495px) {
    .step img {
        display: none;
    }
    .step {
        height: auto;
        padding-bottom: 20px;
    }
}

@media (min-width:600px) and (max-width: 899px) {
    .step {
        flex-direction: column-reverse;
        justify-content: flex-end;
        height: auto;
        padding-bottom: 20px;
    }
    .step img {
        object-fit: cover;
        margin-top: 10px;
        object-position: top;
        border-radius: 15px;
        max-height: 200px;
    }
    .step-text h3 {
        height: auto;
    }
}

@media (max-width: 599px) {
    .steps {
        flex-direction: column;
    }
    .step img {
        width: 25vw;
        object-fit: cover;
        object-position: top;
    }
    .step h3 {
        align-content: center;
    }
    .step-text {
        padding-right: 15px;
        width: 75vw;
    }
    .contact {
        display: block;
    }
    .contact-icon {
        margin-top: 15px;
    }
    .step-text p {
        text-align: left;
    }
}

@media (max-width: 767px) { 
    .kiber-crutch .swiper-wrapper {
        aspect-ratio: 3 / 1;
        width: 100%;
    }

    .kiber-crutch .top_slider_wrapp.view_3 .main-slider__item tr{
        background-size: contain;
        margin-top: -12px;
        padding-top: 40%;
    }
}

/* Стили для таймера ярмарки */
.fair-timer-container {
    text-align: center;
    margin: 20px 0 0 0;
    padding: 20px;
    background: rgba(20, 5, 30, 0.8);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 20, 147, 0.5);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.fair-timer-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    animation: timer-scan 3s ease-in-out infinite;
}

@keyframes timer-scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.fair-status {
    font-family: 'Orbitron', monospace;
    font-size: 1.4em;
    font-weight: 700;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
    animation: status-glow 2s ease-in-out infinite alternate;
}

.fair-status.ended {
    color: #ff1493;
    text-shadow: 0 0 15px rgba(255, 20, 147, 0.6);
}

@keyframes status-glow {
    0% { text-shadow: 0 0 15px rgba(0, 255, 255, 0.6); }
    100% { text-shadow: 0 0 25px rgba(0, 255, 255, 0.8), 0 0 35px rgba(0, 255, 255, 0.4); }
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.time-unit {
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.3), rgba(50, 15, 80, 0.6));
    border: 2px solid rgba(255, 20, 147, 0.4);
    border-radius: 10px;
    padding: 15px 10px;
    min-width: 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.time-unit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.3);
    border-color: #ff1493;
}

.time-value {
    font-family: 'Orbitron', monospace;
    font-size: 2em;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    display: block;
    line-height: 1;
    margin-bottom: 5px;
    background: linear-gradient(45deg, #ffffff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: timer-flow 3s linear infinite;
}

@keyframes timer-flow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.time-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.8em;
    font-weight: 600;
    color: #ff1493;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(255, 20, 147, 0.4);
}

.timer-info {
    margin-top: 15px;
    font-family: 'Orbitron', monospace;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    letter-spacing: 1px;
}

/* Адаптация таймера для мобильных устройств */
@media (max-width: 768px) {
    .fair-timer-container {
        margin: 15px 0 20px 0;
        padding: 15px;
    }

    .fair-status {
        font-size: 1.2em;
        margin-bottom: 12px;
    }

    .countdown-timer {
        gap: 10px;
    }

    .time-unit {
        padding: 10px 8px;
        min-width: 60px;
    }

    .time-value {
        font-size: 1.6em;
    }

    .time-label {
        font-size: 0.7em;
    }
}

.top-clients-rating {
    min-height: 800px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cyber-purple-dark) 0%, var(--cyber-purple) 25%, var(--cyber-purple-light) 50%, var(--cyber-purple) 75%, var(--cyber-purple-dark) 100%);
    padding: 30px;
    border-radius: 15px;
    position: relative;
    margin: 10px 0;
    box-shadow: 
        0 0 30px rgba(255, 20, 147, 0.3),
        0 0 60px rgba(0, 255, 255, 0.2),
        inset 0 0 120px rgba(138, 43, 226, 0.1);
}

.top-clients-rating::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff1493, #00ffff, #ff1493, #00ffff);
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 17px;
    animation: cyber-border 4s linear infinite;
}

/* Контейнер для контента с фиксированными размерами */
.rating-content-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    /* Важно: фиксируем размеры чтобы избежать скачков */
    min-height: 700px;
    overflow: hidden;
}

/* КРИТИЧЕСКИ ВАЖНО: Контейнер для контента вкладок */
.tabs-content-container {
    position: relative;
    width: 100%;
    /* Оптимальная высота без излишков */
    min-height: 700px;
    max-height: 700px;
    overflow: hidden;
}

/* Улучшенные стили для контента вкладок */
.tab-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    /* Предотвращаем переполнение */
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 700px;
}

.tab-content.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Скрытые скроллбары для контента */
.tab-content::-webkit-scrollbar {
    width: 8px;
}

.tab-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.tab-content::-webkit-scrollbar-thumb {
    background: rgba(255, 20, 147, 0.6);
    border-radius: 4px;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 20, 147, 0.8);
}

/* Стили для вкладок с фиксированной высотой */
.cyber-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 20, 147, 0.3);
    padding-bottom: 0;
    /* Управляем переполнением */
    overflow-x: auto;
    overflow-y: hidden;
    /* Фиксируем высоту */
    height: 60px;
    align-items: flex-end;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ff1493 rgba(0, 0, 0, 0.3);
}

.cyber-tabs::-webkit-scrollbar {
    height: 6px;
}

.cyber-tabs::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.cyber-tabs::-webkit-scrollbar-thumb {
    background: #ff1493;
    border-radius: 3px;
}

.cyber-tab {
    padding: 15px 25px;
    background: rgba(50, 15, 80, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
    /* Фиксируем высоту */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cyber-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 20, 147, 0.3), transparent);
    transition: left 0.5s ease;
}

.cyber-tab:hover::before {
    left: 100%;
}

.cyber-tab:hover {
    background: rgba(80, 25, 110, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 -5px 15px rgba(255, 20, 147, 0.3);
}

.cyber-tab.active {
    background: linear-gradient(45deg, rgba(255, 20, 147, 0.8), rgba(0, 255, 255, 0.8));
    color: #0a0014;
    border-color: #ff1493;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.5);
    transform: translateY(-2px);
}

.cyber-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    font-family: 'Orbitron', monospace;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background: rgba(20, 5, 30, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 20px rgba(255, 20, 147, 0.2),
        0 0 40px rgba(0, 255, 255, 0.1);
}

.cyber-table::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(255, 20, 147, 0.3), rgba(0, 255, 255, 0.3), rgba(255, 20, 147, 0.3), rgba(0, 255, 255, 0.3));
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 17px;
    animation: cyber-border 3s linear infinite;
    opacity: 0.5;
}

@keyframes cyber-border {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.cyber-table th {
    padding: 15px;
    text-align: center;
    background: linear-gradient(45deg, #330066, #4d0099);
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    border-bottom: 2px solid #ff1493;
    position: relative;
    overflow: hidden;
}

.cyber-table th::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: scanline 3s ease-in-out infinite;
}

@keyframes scanline {
    0% { left: -100%; }
    100% { left: 200%; }
}

.cyber-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    color: #ffffff;
    transition: all 0.3s ease;
}

.cyber-table tbody tr {
    transition: all 0.3s ease;
    position: relative;
}

.cyber-table tbody tr:hover {
    background: rgba(255, 20, 147, 0.1);
    transform: scale(1.02);
    z-index: 10;
}

.cyber-table tbody tr:hover td {
    color: #00ffff;
}

/* Новые стили для пустых мест */
.empty-slot {
    background: linear-gradient(to right, rgba(138, 43, 226, 0.15), rgba(138, 43, 226, 0.05));
    border-left: 4px solid #8A2BE2;
    font-style: italic;
}

.empty-slot td {
    color: #8A2BE2;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
    opacity: 0.8;
}

.empty-slot .empty-message {
    font-weight: 600;
    letter-spacing: 1px;
}

.empty-slot .brand-name {
    color: #ff1493;
    font-weight: 700;
    text-transform: uppercase;
}

/* Анимация для пустых слотов */
.empty-slot {
    animation: empty-pulse 3s ease-in-out infinite;
}

@keyframes empty-pulse {
    0%, 100% { 
        background: linear-gradient(to right, rgba(138, 43, 226, 0.15), rgba(138, 43, 226, 0.05));
    }
    50% { 
        background: linear-gradient(to right, rgba(138, 43, 226, 0.25), rgba(138, 43, 226, 0.1));
    }
}

/* Стили для призов */
.gold-prize {
    background: linear-gradient(to right, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05));
    border-left: 4px solid #FFD700;
}

.gold-prize td {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.silver-prize {
    background: linear-gradient(to right, rgba(192, 192, 192, 0.2), rgba(192, 192, 192, 0.05));
    border-left: 4px solid #C0C0C0;
}

.silver-prize td {
    color: #C0C0C0;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.bronze-prize {
    background: linear-gradient(to right, rgba(205, 127, 50, 0.2), rgba(205, 127, 50, 0.05));
    border-left: 4px solid #CD7F32;
}

.bronze-prize td {
    color: #CD7F32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.special-prize {
    background: linear-gradient(to right, rgba(138, 43, 226, 0.2), rgba(138, 43, 226, 0.05));
    border-left: 4px solid #8A2BE2;
}

.special-prize td {
    color: #8A2BE2;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.current-user {
    background: linear-gradient(to right, rgba(0, 255, 255, 0.2), rgba(0, 255, 255, 0.05)) !important;
    border: 2px solid #00ffff !important;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.current-user td {
    color: #00ffff !important;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Специальный стиль для текущего пользователя вне топа */
.current-user-outside-top {
    background: linear-gradient(to right, rgba(0, 255, 255, 0.15), rgba(255, 20, 147, 0.15)) !important;
    border: 2px solid #00ffff !important;
    border-style: dashed !important;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    position: relative;
}

.current-user-outside-top td {
    color: #00ffff !important;
    font-weight: bold;
    letter-spacing: 1px;
    padding-top: 15px !important;
}

.cyber-you {
    color: #00ffff !important;
    font-weight: 900 !important;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8) !important;
    font-size: 1.3em !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    display: inline-block !important;
    background: #00ffff;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-size: 200% auto !important;
    animation: cyber-text-flow 2s linear infinite !important;
}

@keyframes cyber-text-flow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.cyber-position {
    color: #00ffff !important;
    font-weight: 700 !important;
    text-shadow: 0 0 6px rgba(0, 255, 255, 0.8) !important;
    letter-spacing: 2px !important;
    font-family: 'Orbitron', monospace !important;
    text-transform: uppercase !important;
    display: inline-block !important;
    padding: 2px 8px !important;
    background: rgba(20, 5, 30, 0.7) !important;
    border-radius: 4px !important;
    border: 1px solid #00ffff !important;
}

.prize-name {
    background: linear-gradient(45deg, #ffffff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.5);
    font-size: 17px;
}

.cyber-alert {
    background: rgba(50, 15, 80, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid #ff1493;
    padding: 15px;
    border-radius: 10px;
    color: #00ffff;
    margin: 0 0 20px 0;
    font-family: 'Orbitron', monospace;
    text-align: center;
    letter-spacing: 1px;
    box-shadow: 
        0 0 20px rgba(255, 20, 147, 0.2),
        inset 0 0 30px rgba(138, 43, 226, 0.1);
    position: relative;
    overflow: hidden;
}

.cyber-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    animation: scanline 2s ease-in-out infinite;
}

.cyber-alert a {
    color: #ff1493;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.cyber-alert a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff1493, #00ffff);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.cyber-alert a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.cyber-alert a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Индикатор свежести кэша */
.cache-indicator {
    position: absolute;
    top: 10px;
    right: 20px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #00ffff;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 0.8em;
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    z-index: 10;
}

.cache-indicator.stale {
    background: rgba(255, 20, 147, 0.1);
    border-color: #ff1493;
    color: #ff1493;
}

/* Стили для админской колонки "Закупил на" */
.admin-purchase-amount {
    color: #FFD700 !important;
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6) !important;
    font-family: 'Orbitron', monospace !important;
}

.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0.8;
}

.glitch-text::before {
    color: #ff1493;
    z-index: -1;
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

.cyber-status {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.status-line {
    font-size: 1.1em;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.cyber-status .status-line:first-child {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.cyber-status .status-line:first-child::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, #ff1493, #00ffff, transparent);
    background-size: 200% 100%;
    animation: line-flow 4s linear infinite;
}

@keyframes line-flow {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

@keyframes glitch-anim {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes pulse {
    0%, 100% { text-shadow: 0 0 10px rgba(0, 255, 255, 0.5); }
    50% { text-shadow: 0 0 20px rgba(255, 20, 147, 0.7); }
}

.sum-highlight {
    animation: pulse 2s infinite;
    font-weight: 700;
    color: #ff1493;
}

/* Сводная таблица */
.cyber-summary {
    background: rgba(20, 5, 30, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(138, 43, 226, 0.5);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.cyber-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.2), transparent);
    animation: summary-scan 4s ease-in-out infinite;
}

@keyframes summary-scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.cyber-summary h3 {
    color: #ff1493;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5em;
    text-shadow: 0 0 15px rgba(255, 20, 147, 0.5);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.summary-item {
    background: rgba(50, 15, 80, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.summary-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
    border-color: #00ffff;
}

.summary-rating-name {
    color: #00ffff;
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-detail {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255, 20, 147, 0.2);
    font-size: 0.9em;
}

.summary-detail:last-child {
    border-bottom: none;
}

.summary-label {
    color: rgba(255, 255, 255, 0.7);
}

.summary-value {
    color: #ff1493;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255, 20, 147, 0.3);
}

.summary-value.position {
    color: #00ffff;
}

.summary-value.prize {
    color: #FFD700;
}

.no-data {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Индикатор загрузки для вкладок */
.cyber-tab.loading {
    position: relative;
    overflow: hidden;
}

.cyber-tab.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading-sweep 0.5s ease-out;
}

@keyframes loading-sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Мобильная оптимизация с исправлениями */
@media (max-width: 768px) {
    .top-clients-rating {
        padding: 20px 15px;
        min-height: 600px; /* Уменьшаем для мобильных */
    }
    
    .rating-content-wrapper {
        min-height: 500px;
    }
    
    .tabs-content-container {
        min-height: 400px;
        max-height: 600px;
    }
    
    .tab-content {
        max-height: 600px;
    }
    
    .cache-indicator {
        position: static;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .cyber-tabs {
        gap: 5px;
        margin-bottom: 15px;
        height: 50px;
    }
    
    .cyber-tab {
        padding: 10px 15px;
        font-size: 0.9em;
        height: 40px;
    }
    
    .cyber-table {
        font-size: 0.85em;
    }
    
    .cyber-table th,
    .cyber-table td {
        padding: 8px 5px;
    }
    
    .cyber-alert {
        padding: 12px;
        font-size: 0.9em;
    }
    
    .status-line {
        font-size: 1em;
    }
    
    .cyber-you {
        font-size: 1.2em !important;
    }
    
    .prize-name {
        font-size: 0.85em;
    }
    
    .cyber-summary {
        padding: 20px 15px;
    }
    
    .cyber-summary h3 {
        font-size: 1.2em;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Адаптивная таблица */
    @media (max-width: 480px) {
        .cyber-table thead th:nth-child(4),
        .cyber-table tbody td:nth-child(4) {
            display: none;
        }
        
        .cyber-tab {
            padding: 8px 12px;
            font-size: 0.8em;
            height: 35px;
        }
        
        .cyber-tabs {
            height: 45px;
        }
    }
}
