/* ========== ОСНОВНЫЕ ПЕРЕМЕННЫЕ ========== */
:root {
    --bg-dark: #1a1a1a;
    --bg-darker: #0d0d0d;
    /* --bg-card: #222222; */
    --bg-card: linear-gradient(145deg,
            rgba(255, 255, 255, 0.08),
            rgba(0, 0, 0, 0.2));;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --yellow-primary: #ffcc00;
    /* --yellow-gradient: linear-gradient(135deg, #ffcc00, #ff9900); */
    /* --yellow-gradient:linear-gradient(135deg, #ffdc4e, #ff9b05); */
    --yellow-gradient: linear-gradient(177deg, #fbff00, #ff8100);
    /* --green-steam: #12c712; */
    --green-steam: linear-gradient(177deg, rgba(18, 199, 18, 1) 0%, rgba(0, 184, 160, 1) 50%, rgba(0, 119, 255, 1) 100%);
    /* --green-steam-hover: #3a8a3a; */
    --green-steam-hover: #00cc47;
    /*#00ff5b #08b345*/
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --purple-discord-gradient: linear-gradient(177deg, rgba(88, 101, 242, 1) 0%, rgb(128, 0, 255) 50%, rgba(151, 47, 255, 0.941) 100%);
    /*linear-gradient(177deg, #5865F2 0%, #7B2CBF 50%, #9a4eff 100%); #5865F2 to #7289DA */
    /* --purple-discord-gradient: linear-gradient(177deg, rgba(88, 101, 242, 1), rgba(114, 137, 218, 1)); #5865F2 to #7289DA */
    --purple-discord-hover: rgb(157, 0, 255);
    /* #7289DA */
    /* --blue-tg: rgba(0, 136, 204, 1); #0088CC */
    --blue-tg-gradient: linear-gradient(177deg, rgba(0, 201, 255, 1) 0%, rgba(0, 114, 255, 1) 50%, rgb(34, 189, 255) 100%);
    /* #0088CC to #0088CC with 70% opacity */
    /* --blue-tg-hover: rgba(0, 136, 204, 0.8); */
    --blue-tg-hover: rgb(0, 213, 255);
    /* #0088CC with 80% opacity */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* font-family: 'Bebas Neue', sans-serif; */
    /* font-family: 'Roboto', sans-serif; */
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;

    background-image:
        radial-gradient(90px circle at 15% 25%, rgba(210, 180, 140, 0.4), transparent),
        radial-gradient(120px circle at 90% 35%, rgba(180, 150, 110, 0.3), transparent),
        radial-gradient(322px circle at 20% 78%, rgba(200, 170, 130, 0.35), transparent),
        radial-gradient(100px circle at 95% 53%, rgba(160, 130, 90, 0.25), transparent),
        radial-gradient(90px circle at 85% 84%, rgba(190, 160, 120, 0.3), transparent);
    background-repeat: no-repeat;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-image: url('/static/images/squad-bg.jpg'); */
    background-size: cover;
    background-position: center;
    filter: blur(50px);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(77 68 0 / 10%);
    backdrop-filter: blur(20px);
    z-index: -1;
}

/* ========== КОНТЕЙНЕРЫ ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== ШАПКА (FIXED) ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-darker);
    border-bottom: 1px solid rgba(255, 204, 0, 0.3);
    z-index: 1000;
    padding: 15px 0;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Навигация */
.menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.menu a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

.menu a:hover {
    color: var(--text-white);
}

/* Кнопка Steam */
.btn-steam {
    background: linear-gradient(168deg, #11db59, transparent);
    /* background: var(--green-steam); */
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

.btn-steam:hover {
    background: var(--green-steam-hover);
    transform: scale(1.02);
    box-shadow: 0 0 15px rgb(0, 255, 34);
    /* box-shadow: 0 0 10px rgba(42, 107, 42, 0.5); */
}

/* Бургер-меню */
.burger-toggle {
    display: none;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger span {
    width: 28px;
    height: 3px;
    background: var(--yellow-primary);
    margin: 4px 0;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        border-bottom: 1px solid var(--yellow-primary);
    }

    .burger-toggle:checked~.menu {
        display: flex;
    }

    .burger-toggle:checked~.burger span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 6px);
    }

    .burger-toggle:checked~.burger span:nth-child(2) {
        opacity: 0;
    }

    .burger-toggle:checked~.burger span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -6px);
    }
}

/* ========== HERO БЛОК С ВИДЕО ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 70px;
    overflow: hidden;
}

/* Видео фон */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -900;
}

/* Затемнение поверх видео (для лучшей читаемости) */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Чёрное затемнение 40% */
    /* backdrop-filter: blur(50px);*/
    /* Лёгкий размытый эффект */
    z-index: -1;
}

/* Стеклянная карточка */
.hero-title {
    font-size: 64px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-title span {
    /* font-size: 64px;
    font-weight: bold;
    margin-bottom: 20px; */
    background: linear-gradient(135deg, #ffcc00, #ff9900);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .yellow-line {
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, #ffcc00, #ff9900);
    margin: 20px auto;
    border-radius: 2px;
}

.hero .subtitle {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .hero .glass-card {
        padding: 30px 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero .subtitle {
        font-size: 18px;
    }
}


/* ========== СЕКЦИИ ========== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 48px;
    margin-bottom: 50px;
    background: var(--yellow-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
    }
}

/* ========== КАРТОЧКИ СЕРВЕРОВ ========== */
.server-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 0px;
    transition: var(--transition);
    margin-bottom: 20px;
    border: 1px solid var(--yellow-primary);
}

.server-cart-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--yellow-primary), transparent);
    margin: 5px 0;
}

.server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
    border: 1px solid var(--yellow-primary);
}

.server-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: bold;
    padding-left: 5px;
    padding-right: 5px;
}

.mode-name {
    color: var(--yellow-primary);
}

.server-name {
    padding: 2px;
    color: var(--yellow-primary);
}

.server-status {
    color: #1eef1e;
    backdrop-filter: blur(5px);
    background: linear-gradient(135deg, #22c55e33, #22c55e26), linear-gradient(180deg, #ffffff1a, #0000);
    border-radius: 20px;
    margin: 4px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    box-shadow: 0 2px 12px #22c55e4d, 0 0 20px #22c55e33, inset 0 0 0 1px #ffffff1a;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    align-content: space-around;
    padding: 2px;
}

.status-dot {
    animation: pulse-green 2s ease-in-out infinite;
    text-shadow: 0px 0px 25px var(--green-steam);
    border-radius: 75px;
    padding: 0px;
    animation: pulse-dot 2s ease-in-out infinite;
    border-radius: 50%;
    margin-right: 8px;
    /* display: inline-block; */
    width: 10px;
    height: 10px;
    background-color: gray;

}

.status-dot.online {
    background-color: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse-green 2s ease-in-out infinite;
}

.status-dot.offline {
    background-color: #ef4444;
    box-shadow: 0 0 4px #ef4444;
}

.status-dot.soon {
    background-color: #f59e0b;
    box-shadow: 0 0 4px #f59e0b;
}

@keyframes pulse-green {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 5px rgba(34, 197, 94, 0);
    }
}

.online-count {
    text-shadow: 0px 0px 25px #070704;
}

.server-card img {
    width: 100%;
    border-radius: 0px;
    margin-bottom: 10px;
    will-change: transform;
}

.map-name,
.mod-name {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    padding-left: 5px;
    padding-right: 5px;
}

.btn-connect {
    width: 80%;
    background: var(--yellow-gradient);
    color: var(--bg-darker);
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    margin: auto;
    display: block;
    margin-bottom: 5px;
    text-align: center;
    text-decoration: none;
}

.btn-connect:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgb(255, 212, 0);
}

.divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--yellow-primary), transparent);
    margin: 40px 0;
}

/* ========== БЛОК "КАК ИГРАТЬ" (НОВЫЙ) ========== */
.howto-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.howto-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px 0;
}

.howto-number {
    width: 50px;
    height: 50px;
    background: var(--yellow-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--bg-darker);
    flex-shrink: 0;
}

.howto-content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.howto-text {
    color: var(--text-gray);
    font-size: 20px;
    line-height: 1.5;
}

.howto-link {
    color: var(--yellow-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.howto-link:hover {
    color: #ff9900;
    text-decoration: underline;
}

.howto-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--yellow-primary), transparent);
}

@media (max-width: 768px) {
    .howto-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .howto-content {
        flex-direction: column;
        align-items: center;
    }

    .howto-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* ========== БЛОК ПРАВИЛ С ТАБАМИ ========== */
.rules-section {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-top: 30px;
}

/* Табы */
.rules-tabs {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.rules-tab {
    background: transparent;
    border: 2px solid var(--yellow-primary);
    color: var(--text-white);
    padding: 12px 28px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    will-change: transform;
}

.rules-tab:hover {
    background: rgb(255, 204, 0);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
}

.rules-tab-active {
    background: var(--yellow-gradient);
    color: var(--bg-darker);
    border-color: transparent;
}

/* Контент правил */
.rules-section {
    display: none;
}

.rules-section-visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rules-section-subtitle {
    color: var(--yellow-primary);
    font-size: 24px;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 204, 0, 0.3);
}

.rules-section-subtitle:first-of-type {
    margin-top: 0;
}

/* Правило (строка) */
.rules-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: var(--transition);
}

.rules-item:hover {
    background: rgba(255, 204, 0, 0.1);
    transform: translateX(5px);
}

.rules-item-id {
    color: var(--yellow-primary);
    font-weight: bold;
    min-width: 45px;
    font-family: monospace;
    font-size: 16px;
}

.rules-item-text {
    /* color: var(--text-gray); */
    color: var(--text-white);
    line-height: 1.5;
    font-size: 16px;
}

.rules-item-text :hover {
    color: white;
}

.rules-item-text strong {
    color: var(--yellow-primary);
}

/* Маркированные списки */
.rules-bullet-list {
    margin: 10px 0 20px 60px;
    color: var(--text-gray);
    line-height: 1.6;
}

.rules-bullet-list li {
    margin-bottom: 8px;
}

/* Параграф */
.rules-paragraph {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 204, 0, 0.05);
    border-left: 3px solid var(--yellow-primary);
    color: var(--text-gray);
    font-size: 14px;
}

/* Футер правил */
.rules-footer {
    margin-top: 30px;
    padding-top: 20px;
    text-align: right;
    color: var(--text-gray);
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Адаптация для телефона */
@media (max-width: 768px) {
    .rules-section {
        padding: 20px;
    }

    .rules-tab {
        padding: 8px 20px;
        font-size: 14px;
    }

    .rules-item {
        flex-direction: column;
        gap: 5px;
    }

    .rules-bullet-list {
        margin-left: 20px;
    }

    .rules-section-subtitle {
        font-size: 20px;
    }
}

/* ========== НОВОСТИ ========== */
.news-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--yellow-primary);
    

}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
    border: 2px solid var(--yellow-primary);
    
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--bg-darker);
}

.news-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    color: var(--yellow-primary);
    font-size: 12px;
    margin-bottom: 10px;
}

.news-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-excerpt {
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.5;
    height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 15px;
}

.new-link {
    color: var(--yellow-primary);
    text-decoration: none;
    font-size: 12px;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-link:hover {
    text-decoration: underline;
}

.btn-news {
    color: var(--yellow-primary);
}

/* ========== VIP ТАРИФЫ ========== */
.vip-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.vip-card {
    flex: 1;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    will-change: transform;
    border: 1px solid var(--yellow-primary);
}

.vip-card:hover {
    transform: translateY(-10px);
    border: 2px solid var(--yellow-primary);
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.3);
}

.vip-card h3 {
    font-size: 28px;
    margin-bottom: 20px;

}

.vip-price {
    font-size: 36px;
    font-weight: bold;
    color: var(--yellow-primary);
    margin-bottom: 20px;
}

.vip-feature {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vip-feature:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .vip-grid {
        flex-direction: column;
    }
}

/* ========== ФУТЕР ========== */
.footer {
    background: var(--bg-darker);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    gap: 50px;
    justify-content: space-between;
}

.footer-logo img {
    height: 80px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-column {
    padding: 0 20px;
    border-left: 1px solid var(--text-gray);
    border-right: 1px solid var(--text-gray);
}

.footer-column h4 {
    color: var(--yellow-primary);
    margin-bottom: 15px;
}

.footer-column a {
    display: block;
    color: var(--text-white);
    text-decoration: none;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--yellow-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
    }

    .footer-column {
        border: none;
    }
}

/* ========== КНОПКА ВСЕГО САЙТА ========== */
.btn {
    background: var(--yellow-gradient);
    color: var(--bg-darker);
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgb(255, 212, 0);
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--yellow-primary);
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-gray);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--yellow-primary);
}

.modal-price {
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    color: var(--yellow-primary);
    margin: 20px 0;
}

/* ========== ПЛАТЁЖНЫЕ КНОПКИ ========== */
.payment-methods {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0 20px;
    flex-wrap: wrap;
}

.payment-btn {
    background: var(--bg-darker);
    border: 1px solid var(--text-gray);
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 110px;
    color: var(--text-white);
    font-weight: bold;
}

.payment-btn:hover {
    border-color: var(--yellow-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.2);
}

.payment-btn img {
    width: 40px;
    height: 40px;
}

.payment-info {
    text-align: center;
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 20px;
}


/* ========================================================== */

/* ========== ДАШБОРД ========== */
.account-section {
    margin-bottom: -55px;
}

.account-section-title {
    font-size: 28px;
    margin-top: 130px;
    margin-bottom: 20px;
    color: var(--yellow-primary);
}

.account-profile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.account-profile-left {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.account-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--yellow-primary);
}

.account-nickname {
    font-size: 28px;
    margin-bottom: 5px;
}

.account-steam-id {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 10px;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 8px;
}

.account-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    height: 100%;
}

.account-card-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--yellow-primary);
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    border: 1px solid var(--yellow-primary);
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--yellow-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 5px;
}

.role-card {
    padding: 15px;
    margin-bottom: 20px;
}

.role-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.role-stats {
    display: flex;
    justify-content: space-between;
    color: var(--text-gray);
    font-size: 13px;
}

.matches-table {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.match-win {
    background: rgba(34, 197, 94, 0.1);
}

.match-loss {
    background: rgba(239, 68, 68, 0.1);
}

.badge-win,
.badge-loss {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.badge-win {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.badge-loss {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.progress-bar {
    background: var(--bg-darker);
    border-radius: 10px;
    height: 8px;
    margin: 10px 0;
}

.progress-fill {
    background: var(--yellow-gradient);
    border-radius: 10px;
    height: 100%;
    width: 0%;
}

.vip-badge {
    background: var(--yellow-gradient);
    color: var(--bg-darker);
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: bold;
}

/* ========== glass card for account ========== */
.glass-card {
    position: relative;
    /* background: rgba(151, 149, 149, 0.1); */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 25px;
    /* border: 1px solid rgba(255, 204, 0, 0.2); */
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
    overflow: hidden;
    /* margin-bottom: 25px; */
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.08),
            rgba(0, 0, 0, 0.2));
}

.glass-card:hover::before {
    opacity: 0.8;
}

.glass-card:hover {
    border-color: var(--yellow-primary);
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.3);
}

.glass-card::after {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        /* radial-gradient(rgba(255,255,255,0.15) 1px, transparent 1px); */
        radial-gradient(rgba(255, 255, 255, -0.15) 4px, transparent 1px);

    background-size: 6px 6px;

    opacity: 0.15;
    pointer-events: none;
}

.glass-card-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--yellow-primary);
    border-left: 3px solid var(--yellow-primary);
    padding-left: 12px;
}

/* Профиль */
.account-profile {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 30px;
    min-height: 140px;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Адаптация под телефон */
@media (max-width: 768px) {
    /* .hof-grid {
        grid-template-columns: repeat(2, 1fr);
    } */

    .glass-card {
        padding: 15px;
    }
}

/* ========== DROPDOWN ПОЛЬЗОВАТЕЛЯ ========== */
.user-dropdown {
    position: relative;
    display: inline-block;
    background: rgba(151, 149, 149, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 8px;
}

.user-dropdown-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: var(--transition);
    font-family: inherit;
}

.user-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    /* border: 1px solid var(--yellow-primary); */
}

.user-name {
    color: var(--text-white);
    font-weight: 500;
    font-size: 14px;
}

.dropdown-arrow {
    color: var(--text-gray);
    font-size: 10px;
    transition: transform 0.3s;
}

/* .dropdown-menu-a {
    font-weight: normal !important;

} */

.user-dropdown-btn[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 204, 0, 0.3);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown-menu.show {
    display: flex;
    animation: dropdownFadeIn 0.2s ease;
    flex-direction: column;
    background: rgba(151, 149, 149, 0.1);
    backdrop-filter: blur(10px);
    align-items: stretch;
    justify-content: space-evenly;
    font-size: 14px;


}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(255, 204, 0, 0.1);
    color: var(--yellow-primary);
}

.dropdown-icon {
    font-size: 18px;
    width: 24px;
}

/* Адаптация для телефона */
@media (max-width: 768px) {
    .user-dropdown-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 8px 8px 8px 8px;
        animation: slideUp 0.3s ease;
        background: rgba(113, 111, 111, 0.5)!important;
        backdrop-filter: blur(40px)!important;
        border: 1px solid ;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    .dropdown-item {
        padding: 16px;
        justify-content: center;
    }
}

.stats-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.stats-3col td {
    padding: 10px 12px;
}

/* каждая пара */
.stats-3col td:nth-child(odd) {
    color: var(--text-gray);
    width: 16%;
}

.stats-3col td:nth-child(even) {
    font-weight: bold;
    color: var(--yellow-primary);
    width: 17%;
}

.stats-3col .win {
    color: #22c55e;
}

.stats-3col .loss {
    color: #ef4444;
}

.stats-3col .danger {
    color: #f97316;
}

.stats-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.side-card {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    padding: 15px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.2s;
}

.side-title {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-gray);
}

.side-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.side-item {
    flex: 1;
    text-align: center;
}

.side-item .val {
    font-size: 16px;
    font-weight: bold;
    color: var(--yellow-primary);
}

.side-item .lbl {
    font-size: 11px;
    color: var(--text-gray);
}

.back-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border: 1px solid var(--yellow-primary);
    border-radius: 6px;
    font-size: 14px;
    /* background: var(--bg-darker); */
    color: var(--yellow-primary);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    background: rgba(151, 149, 149, 0.1);
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: var(--yellow-primary);
    color: var(--bg-darker);
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--yellow-primary);
}

.profile-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.avatar img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid var(--yellow-primary);
}

.name {
    font-size: 22px;
}

.steam-id {
    font-size: 14px;
    /* color: var(--text-gray); */
    /* background: rgba(0,0,0,0.3); */
    padding: 6px 10px;
    border-radius: 6px;
}

/* account-vip */
.account-vip-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.account-vip-status {
    font-size: 14px;
    /* color: var(--text-gray); */
    /* background: rgba(0,0,0,0.3); */
    padding: 5px 10px;
    border-radius: 8px;
}

.account-vip-btn {
    padding: 5px 12px;
    font-size: 13px;
}

.profile-links {
    position: absolute;
    right: 20px;
    bottom: 20px;

    display: flex;
    gap: 8px;
}

.link-btn {
    padding: 5px 10px;
    font-size: 14px;
    border: 1px solid;
    border-radius: 8px;
    transition: 0.2s;
    font-weight: bold;
    color: var(--bg-darker);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.lick-btn:hover {
    transform: translateY(-2px);
}

.link-btn.discord {
    background: var(--purple-discord-gradient);
}

.link-btn.discord:hover {
    box-shadow: 0 0 15px var(--purple-discord-hover);
}

.link-btn.tg {
    background: var(--blue-tg-gradient);
}

.link-btn.tg:hover {
    box-shadow: 0 0 15px var(--blue-tg-hover);
}

.link-btn.steam {
    background: linear-gradient(135deg, rgba(18, 199, 18, 1) 0%, rgba(0, 184, 160, 1) 50%, rgba(0, 119, 255, 1) 100%);
}

.link-btn.steam:hover {
    box-shadow: 0 0 15px rgb(0, 255, 34);
}


/* Блок с винрейтом  */
.winrate-block {
    margin-top: 20px;
}

.winrate-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.winrate-bar {
    position: relative;
    background: #ef4444;
    /* красный фон */
    height: 10px;
    border-radius: 6px;
    overflow: hidden;
}

.winrate-win {
    background: #22c55e;
    height: 100%;
}

/* ========== АДАПТИВНЫЙ ЛИЧНЫЙ КАБИНЕТ ========== */

/* Мобильная версия (<768px) */
@media (max-width: 768px) {
    .account-section {
        margin-bottom: 25px !important;
    }

    .account-section-title {
        margin-top: 100px;
        font-size: 24px;
    }

    .account-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .profile-left {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .avatar img {
        width: 70px;
        height: 70px;
    }

    .name {
        font-size: 20px;
    }

    .steam-id {
        font-size: 12px;
        word-break: break-all;
    }

    .account-vip-row {
        justify-content: center;
    }

    .profile-links {
        position: static;
        justify-content: center;
        margin-top: 15px;
    }

    .back-btn {
        position: static;
        display: inline-block;
        margin-bottom: 15px;
    }

    .glass-card {
        padding: 20px;
    }

    .glass-card-title {
        font-size: 18px;
    }

    /* Статистика */
    .stats-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stats-table-wrap {
        overflow-x: auto;
    }

    .stats-table {
        min-width: 500px;
    }

    .stats-3col td {
        padding: 8px 10px;
        font-size: 13px;
    }

    .side-row {
        justify-content: space-around;
    }

    .winrate-block {
        margin-top: 15px;
    }

    .winrate-header {
        font-size: 12px;
    }
}

/* Планшет (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .glass-card {
        padding: 20px;
    }

    .stats-content {
        gap: 15px;
    }

    .stats-3col td {
        padding: 8px 10px;
    }
}

/* Десктоп (>1024px) */
@media (min-width: 1024px) {
    .stats-content {
        grid-template-columns: 2fr 1fr;
    }
}

/* Мелкие экраны (<480px) */
@media (max-width: 480px) {
    .account-section-title {
        margin-top: 80px;
        font-size: 20px;
    }

    .glass-card {
        padding: 15px;
    }

    .avatar img {
        width: 60px;
        height: 60px;
    }

    .name {
        font-size: 18px;
    }

    .account-vip-status,
    .account-vip-btn {
        font-size: 11px;
        padding: 4px 8px;
    }

    .back-btn {
        font-size: 12px;
        padding: 4px 10px;
    }

    .link-btn {
        font-size: 12px;
        padding: 4px 8px;
    }

    .glass-card-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .side-item .val {
        font-size: 14px;
    }

    .side-item .lbl {
        font-size: 10px;
    }
}



