﻿/* style.css */
/* ===== ГЛОБАЛЬНЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0b0e14;
    color: #e8edf5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: #8b95a9;
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.gradient-text {
    background: linear-gradient(135deg, #f0b31c, #d48f1a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== КНОПКИ ===== */
.btn-primary-custom {
    background: linear-gradient(135deg, #f0b31c, #d48f1a);
    border: none;
    color: #0b0e14;
    font-weight: 700;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(240, 179, 28, 0.25);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(240, 179, 28, 0.4);
    color: #0b0e14;
    background: linear-gradient(135deg, #f7c23a, #d48f1a);
}

.btn-outline-light-custom {
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: #e8edf5;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-light-custom:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* ===== ХЕДЕР ===== */
.navbar {
    padding: 20px 0;
    background: rgba(11, 14, 20, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-brand {
    color: white !important;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.nav-link {
    color: #8b95a9 !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 20px !important;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #e8edf5 !important;
}

.nav-link.active {
    color: #f0b31c !important;
}

/* ===== ГЕРО С ВИДЕО-ФОНОМ ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
    z-index: 0;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.7;
    transition: opacity 0.6s ease;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(to right,
            rgba(11, 14, 20, 0.98) 0%,
            rgba(11, 14, 20, 0.95) 20%,
            rgba(11, 14, 20, 0.90) 35%,
            rgba(11, 14, 20, 0.75) 50%,
            rgba(11, 14, 20, 0.50) 65%,
            rgba(11, 14, 20, 0.25) 80%,
            rgba(11, 14, 20, 0.05) 92%,
            rgba(11, 14, 20, 0.00) 100%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    color: #d0d7e6;
    max-width: 520px;
    line-height: 1.8;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.hero-badge {
    display: inline-block;
    background: rgba(240, 179, 28, 0.12);
    color: #f0b31c;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 24px;
    border: 1px solid rgba(240, 179, 28, 0.15);
    backdrop-filter: blur(4px);
}

/* ===== СЕЛЕКТОР ИГР ===== */
.game-selector {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.game-selector .game-btn {
    padding: 10px 28px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #6a758b;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(4px);
}

.game-selector .game-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e8edf5;
}

.game-selector .game-btn .game-icon {
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.game-selector .game-btn.active-dota {
    background: rgba(196, 30, 58, 0.15);
    border-color: rgba(196, 30, 58, 0.3);
    color: #e8edf5;
    box-shadow: 0 0 30px rgba(196, 30, 58, 0.05);
}

.game-selector .game-btn.active-cs {
    background: rgba(240, 179, 28, 0.12);
    border-color: rgba(240, 179, 28, 0.25);
    color: #e8edf5;
    box-shadow: 0 0 30px rgba(240, 179, 28, 0.05);
}

.game-selector .game-btn .game-label {
    font-size: 0.85rem;
}

/* ===== ТУРНИРЫ ===== */
.tournament-card {
    background: #141a24;
    border-radius: 20px;
    padding: 28px 24px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tournament-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f0b31c, #d48f1a);
    opacity: 0;
    transition: opacity 0.3s;
}

.tournament-card:hover {
    transform: translateY(-6px);
    border-color: rgba(240, 179, 28, 0.15);
    background: #181f2b;
}

.tournament-card:hover::before {
    opacity: 1;
}

.tournament-card .game-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 16px;
}

.game-icon.dota {
    background: rgba(196, 30, 58, 0.15);
    color: #c41e3a;
}

.game-icon.cs {
    background: rgba(240, 179, 28, 0.12);
    color: #f0b31c;
}

.tournament-card h5 {
    font-weight: 700;
    font-size: 1.2rem;
}

.tournament-card .meta {
    color: #6a758b;
    font-size: 0.9rem;
}

.tournament-card .prize {
    color: #f0b31c;
    font-weight: 700;
    font-size: 1.1rem;
}

.tournament-card .ticket {
    color: #8b95a9;
    font-size: 0.85rem;
}

/* ===== КАК ЭТО РАБОТАЕТ ===== */
.step-card {
    text-align: center;
    padding: 32px 20px;
    background: #141a24;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
    height: 100%;
}

.step-card:hover {
    border-color: rgba(240, 179, 28, 0.12);
    transform: translateY(-4px);
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(240, 179, 28, 0.10);
    color: #f0b31c;
    font-weight: 800;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 1px solid rgba(240, 179, 28, 0.12);
}

.step-card h5 {
    font-weight: 700;
    font-size: 1.15rem;
}

.step-card p {
    color: #6a758b;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ===== ОТЗЫВЫ ===== */
.review-card {
    background: #141a24;
    border-radius: 20px;
    padding: 28px 24px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    height: 100%;
}

.review-card .stars {
    color: #f0b31c;
    letter-spacing: 2px;
    font-size: 0.95rem;
}

.review-card p {
    color: #bcc4d4;
    font-size: 0.98rem;
    line-height: 1.7;
}

.review-card .reviewer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
}

.review-card .reviewer .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1c2330;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5368;
    font-weight: 600;
}

.review-card .reviewer .name {
    font-weight: 600;
    font-size: 0.95rem;
}

.review-card .reviewer .handle {
    color: #6a758b;
    font-size: 0.8rem;
}

/* ===== ФОРМА ===== */
.contact-form {
    background: #141a24;
    border-radius: 24px;
    padding: 48px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.contact-form .form-control {
    background: #0f141e;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #e8edf5;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
}

.contact-form .form-control:focus {
    border-color: rgba(240, 179, 28, 0.3);
    box-shadow: 0 0 0 4px rgba(240, 179, 28, 0.06);
    background: #0f141e;
    color: #e8edf5;
}

.contact-form .form-control::placeholder {
    color: #4a5368;
}

.contact-form .btn-primary-custom {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

/* ===== ФУТЕР ===== */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 48px 0 32px;
    background: #0b0e14;
}

.footer .brand {
    font-size: 1.4rem;
    font-weight: 800;
}

.footer .text-muted-custom {
    color: #4a5368;
    font-size: 0.9rem;
}

.footer .social-links a {
    color: #4a5368;
    font-size: 1.3rem;
    transition: color 0.2s;
    margin-left: 20px;
}

.footer .social-links a:hover {
    color: #e8edf5;
}

.footer .footer-links a {
    color: #6a758b;
    font-size: 0.9rem;
    transition: color 0.2s;
    margin: 0 16px;
}

.footer .footer-links a:hover {
    color: #e8edf5;
}

/* ===== ПРОФИЛЬ ===== */

/* --- Секция --- */
.profile-section {
    padding-top: 110px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* --- Hero-шапка --- */
.profile-hero {
    position: relative;
    background: #141a24;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
    padding: 40px 40px 36px;
    box-shadow: 0 4px 40px rgba(0,0,0,0.3);
}

.profile-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 90% at 85% 50%, rgba(240,179,28,0.09) 0%, transparent 65%),
        radial-gradient(ellipse 50% 70% at 5% 90%, rgba(99,102,241,0.07) 0%, transparent 65%),
        radial-gradient(ellipse 40% 50% at 50% -10%, rgba(240,179,28,0.04) 0%, transparent 60%);
    pointer-events: none;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f0b31c 0%, #d48f1a 50%, transparent 100%);
}

.profile-hero-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

/* --- Аватар --- */
.profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(240, 179, 28, 0.4);
    display: block;
    position: relative;
    z-index: 1;
}

.profile-avatar-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(240, 179, 28, 0.12);
    z-index: 0;
    animation: ring-pulse 3s ease-in-out infinite;
}

@keyframes ring-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.04); }
}

.profile-online-dot {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #4ade80;
    border: 2px solid #141a24;
    z-index: 2;
    box-shadow: 0 0 8px rgba(74,222,128,0.6);
}

/* --- Инфо профиля --- */
.profile-hero-info {
    flex: 1;
    min-width: 0;
}

.profile-hero-name-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.profile-username {
    font-size: 1.9rem;
    font-weight: 800;
    color: #e8edf5;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.1;
}

.profile-rank-badge {
    background: rgba(240, 179, 28, 0.12);
    color: #f0b31c;
    border: 1px solid rgba(240, 179, 28, 0.2);
    border-radius: 50px;
    padding: 4px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.profile-meta-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6a758b;
    font-size: 0.88rem;
}

.profile-meta-item i {
    font-size: 0.9rem;
    color: #4a5368;
}

/* --- Кнопки в шапке --- */
.profile-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-profile-steam {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 50px;
    border: 1.5px solid rgba(255,255,255,0.12);
    color: #e8edf5;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.04);
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-profile-steam:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.22);
    color: #fff;
}

.btn-profile-logout {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 50px;
    border: 1.5px solid rgba(239,68,68,0.25);
    color: #f87171;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(239,68,68,0.06);
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-profile-logout:hover {
    background: rgba(239,68,68,0.14);
    border-color: rgba(239,68,68,0.45);
    color: #fca5a5;
}

/* --- Статистика --- */
.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.profile-stat-card {
    background: #141a24;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 18px;
    padding: 20px 20px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: border-color 0.25s, transform 0.25s;
}

.profile-stat-card:hover {
    border-color: rgba(255,255,255,0.10);
    transform: translateY(-3px);
}

.profile-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.profile-stat-body {
    min-width: 0;
}

.profile-stat-label {
    font-size: 0.75rem;
    color: #6a778e;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-stat-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: #e8edf5;
    line-height: 1;
    letter-spacing: -0.02em;
}

/* --- Вкладки --- */
.profile-tabs-wrap {
    background: #141a24;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    overflow: hidden;
}

.profile-nav-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    overflow-x: auto;
}

.profile-nav-tabs li {
    flex-shrink: 0;
}

.profile-tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 18px 24px;
    background: transparent;
    border: none;
    color: #6a758b;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.profile-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #f0b31c, #d48f1a);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.profile-tab-btn:hover {
    color: #bcc4d4;
}

.profile-tab-btn.active {
    color: #f0b31c;
}

.profile-tab-btn.active::after {
    transform: scaleX(1);
}

.profile-tab-count {
    background: rgba(240,179,28,0.15);
    color: #f0b31c;
    border-radius: 50px;
    padding: 1px 9px;
    font-size: 0.73rem;
    font-weight: 700;
}

.profile-tab-content {
    padding: 32px 36px;
}

/* --- Блоки информации --- */
.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.profile-info-block {
    background: #0f141e;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.04);
}

.profile-info-block-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7a8499;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.profile-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-info-key {
    color: #6a758b;
    font-size: 0.88rem;
}

.profile-info-val {
    color: #e8edf5;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: right;
}

.steam-mono {
    font-family: monospace;
    font-size: 0.82rem;
    color: #8b95a9;
    background: rgba(255,255,255,0.04);
    padding: 3px 8px;
    border-radius: 6px;
}

.winrate-badge {
    background: rgba(74,222,128,0.12);
    color: #4ade80;
    border-radius: 50px;
    padding: 3px 12px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* --- Таблицы --- */
.profile-table {
    width: 100%;
    border-collapse: collapse;
    color: #e8edf5;
    font-size: 0.9rem;
}

.profile-table thead tr {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.profile-table th {
    padding: 10px 14px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6a778e;
    font-weight: 700;
    text-align: left;
}

.profile-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.2s;
}

.profile-table tbody tr:last-child {
    border-bottom: none;
}

.profile-table tbody tr:hover {
    background: rgba(255,255,255,0.025);
}

.profile-table td {
    padding: 13px 14px;
    vertical-align: middle;
}

.text-muted-soft {
    color: #4a5368;
    font-size: 0.85rem;
}

/* --- Бейджи результатов --- */
.result-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.result-badge.win {
    background: rgba(74,222,128,0.12);
    color: #4ade80;
}

.result-badge.loss {
    background: rgba(239,68,68,0.12);
    color: #f87171;
}

.result-badge.draw {
    background: rgba(148,163,184,0.1);
    color: #94a3b8;
}

/* --- Бейджи статусов --- */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-confirmed {
    background: rgba(74,222,128,0.12);
    color: #4ade80;
}

.status-pending {
    background: rgba(251,191,36,0.12);
    color: #fbbf24;
}

.status-completed {
    background: rgba(99,102,241,0.15);
    color: #818cf8;
}

.status-cancelled {
    background: rgba(239,68,68,0.12);
    color: #f87171;
}

.status-other {
    background: rgba(148,163,184,0.1);
    color: #94a3b8;
}

/* --- Бейдж игры --- */
.game-name-badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    color: #bcc4d4;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
}

/* --- Суммы --- */
.prize-positive, .tx-positive {
    color: #4ade80;
}

.tx-negative {
    color: #f87171;
}

/* --- Пустые состояния --- */
.profile-empty-state {
    text-align: center;
    padding: 60px 20px 40px;
}

.profile-empty-icon {
    font-size: 3rem;
    color: #2a3040;
    margin-bottom: 16px;
    line-height: 1;
}

.profile-empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e8edf5;
    margin-bottom: 8px;
}

.profile-empty-text {
    color: #4a5368;
    font-size: 0.9rem;
    margin-bottom: 24px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Адаптив профиля --- */
@media (max-width: 900px) {
    .profile-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-hero {
        padding: 28px 24px;
    }
    .profile-hero-content {
        gap: 20px;
    }
    .profile-avatar {
        width: 84px;
        height: 84px;
    }
    .profile-username {
        font-size: 1.5rem;
    }
    .profile-tab-content {
        padding: 24px 20px;
    }
    .profile-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .profile-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .profile-stat-card {
        padding: 16px 14px;
        gap: 12px;
    }
    .profile-stat-value {
        font-size: 1.3rem;
    }
    .profile-meta-row {
        gap: 12px;
    }
    .profile-hero-actions {
        flex-direction: column;
    }
    .btn-profile-steam, .btn-profile-logout {
        width: 100%;
        justify-content: center;
    }
    .profile-tab-content {
        padding: 20px 16px;
    }
}

/* ===== МОДАЛЬНОЕ ОКНО СОГЛАСИЯ ===== */
.agreement-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 9, 14, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.agreement-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.agreement-modal-box {
    background: #141a24;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    position: relative;
    overflow: hidden;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.28s cubic-bezier(0.34, 1.36, 0.64, 1), opacity 0.25s ease;
    opacity: 0;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
}

.agreement-modal-overlay.active .agreement-modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.agreement-modal-topbar {
    height: 3px;
    background: linear-gradient(90deg, #f0b31c, #d48f1a, transparent);
}

.agreement-modal-inner {
    padding: 36px 36px 32px;
}

.agreement-modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: rgba(240, 179, 28, 0.1);
    border: 1px solid rgba(240, 179, 28, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #f0b31c;
    margin: 0 auto 20px;
}

.agreement-modal-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #e8edf5;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.agreement-modal-subtitle {
    font-size: 0.88rem;
    color: #6a758b;
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* Чекбоксы */
.agreement-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #0f141e;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
}

.agreement-checkbox-label:last-of-type {
    margin-bottom: 0;
}

.agreement-checkbox-label:hover {
    border-color: rgba(240, 179, 28, 0.2);
    background: #111620;
}

.agreement-checkbox-input {
    display: none;
}

.agreement-checkbox-box {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 7px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 1px;
    font-size: 0.85rem;
    color: transparent;
}

.agreement-checkbox-input:checked + .agreement-checkbox-box {
    background: linear-gradient(135deg, #f0b31c, #d48f1a);
    border-color: #f0b31c;
    color: #0b0e14;
    box-shadow: 0 0 12px rgba(240, 179, 28, 0.35);
}

.agreement-checkbox-label:has(.agreement-checkbox-input:checked) {
    border-color: rgba(240, 179, 28, 0.25);
    background: rgba(240, 179, 28, 0.04);
}

.agreement-checkbox-text {
    color: #bcc4d4;
    font-size: 0.9rem;
    line-height: 1.55;
}

.agreement-checkbox-text strong {
    color: #e8edf5;
}

.agreement-link {
    color: #f0b31c;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(240, 179, 28, 0.4);
    font-weight: 500;
    transition: color 0.2s, text-decoration-color 0.2s;
}

.agreement-link:hover {
    color: #f7c23a;
    text-decoration-color: rgba(247, 194, 58, 0.7);
}

/* Кнопки модалки */
.agreement-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.agreement-btn-cancel {
    flex: 1;
    padding: 13px 20px;
    border-radius: 50px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #6a758b;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.agreement-btn-cancel:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #bcc4d4;
}

.agreement-btn-confirm {
    flex: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 50px;
    background: linear-gradient(135deg, #f0b31c, #d48f1a);
    color: #0b0e14;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 6px 24px rgba(240, 179, 28, 0.25);
    cursor: pointer;
}

.agreement-btn-confirm:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(240, 179, 28, 0.4);
    color: #0b0e14;
    background: linear-gradient(135deg, #f7c23a, #d48f1a);
}

.agreement-btn-confirm.disabled {
    background: #1e2535;
    color: #3a4255;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 480px) {
    .agreement-modal-inner {
        padding: 28px 20px 24px;
    }
    .agreement-modal-actions {
        flex-direction: column;
    }
    .agreement-btn-confirm,
    .agreement-btn-cancel {
        flex: unset;
        width: 100%;
    }
}

/* ===== СТРАНИЦЫ ПРАВИЛ И ПОЛИТИКИ ===== */
.legal-section {
    padding-top: 110px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Шапка страницы */
.legal-hero {
    text-align: center;
    padding: 56px 40px 48px;
    background: #141a24;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f0b31c, #d48f1a, transparent);
}

.legal-hero-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: rgba(240, 179, 28, 0.1);
    border: 1px solid rgba(240, 179, 28, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #f0b31c;
    margin: 0 auto 20px;
}

.legal-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #e8edf5;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.legal-hero-subtitle {
    color: #6a758b;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.legal-toc-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.legal-switch-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    border-radius: 50px;
    border: 1.5px solid rgba(255,255,255,0.1);
    color: #8b95a9;
    font-size: 0.87rem;
    font-weight: 600;
    background: rgba(255,255,255,0.03);
    transition: all 0.2s;
    text-decoration: none;
}

.legal-switch-link:hover {
    border-color: rgba(240,179,28,0.3);
    color: #f0b31c;
    background: rgba(240,179,28,0.05);
}

/* Тело документа */
.legal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Блок раздела */
.legal-section-block {
    background: #141a24;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    overflow: hidden;
}

.legal-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.015);
}

.legal-section-num {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(240,179,28,0.1);
    border: 1px solid rgba(240,179,28,0.18);
    color: #f0b31c;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.legal-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e8edf5;
    margin: 0;
    letter-spacing: -0.01em;
}

/* Пункты */
.legal-item {
    display: flex;
    gap: 16px;
    padding: 16px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.2s;
}

.legal-item:last-child {
    border-bottom: none;
}

.legal-item:hover {
    background: rgba(255,255,255,0.02);
}

/* Подпункты (2.3.1 и т.д.) */
.legal-item-sub {
    padding-left: 60px;
    background: rgba(255,255,255,0.01);
}

.legal-item-sub:hover {
    background: rgba(255,255,255,0.025);
}

.legal-item-sub .legal-item-num {
    color: #4a5368;
    font-size: 0.8rem;
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.06);
    min-width: 52px;
}

.legal-item-num {
    min-width: 44px;
    padding: 4px 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #f0b31c;
    font-family: 'Inter', monospace;
    flex-shrink: 0;
    padding-top: 2px;
}

.legal-item-body {
    color: #bcc4d4;
    font-size: 0.93rem;
    line-height: 1.7;
    padding-top: 1px;
}

.legal-item-body strong {
    color: #e8edf5;
    font-weight: 600;
}

/* Блок контактов внизу */
.legal-contact-block {
    background: #141a24;
    border: 1px solid rgba(240,179,28,0.12);
    border-radius: 20px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.legal-contact-icon {
    font-size: 2rem;
    color: #f0b31c;
    flex-shrink: 0;
    opacity: 0.7;
}

.legal-contact-title {
    font-size: 1rem;
    font-weight: 700;
    color: #e8edf5;
    margin-bottom: 4px;
}

.legal-contact-text {
    color: #6a758b;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Адаптив */
@media (max-width: 768px) {
    .legal-hero {
        padding: 36px 24px 32px;
    }
    .legal-hero-title {
        font-size: 1.7rem;
    }
    .legal-section-header {
        padding: 18px 20px;
    }
    .legal-item {
        padding: 14px 20px;
    }
    .legal-item-sub {
        padding-left: 20px;
    }
    .legal-contact-block {
        padding: 22px 20px;
        flex-direction: column;
        text-align: center;
    }
}

/* ===== АДАПТИВ ===== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .contact-form {
        padding: 32px 24px;
    }
    .hero-gradient-overlay {
        background: linear-gradient(to right,
                rgba(11, 14, 20, 0.95) 0%,
                rgba(11, 14, 20, 0.80) 30%,
                rgba(11, 14, 20, 0.50) 55%,
                rgba(11, 14, 20, 0.15) 80%,
                rgba(11, 14, 20, 0.02) 100%);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 40px;
    }
    .hero h1 {
        font-size: 2.4rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .section-padding {
        padding: 48px 0;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .game-selector {
        justify-content: center;
    }
    .game-selector .game-btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
    .btn-primary-custom,
    .btn-outline-light-custom {
        padding: 12px 28px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }
    .contact-form {
        padding: 24px 16px;
    }
    .hero-gradient-overlay {
        background: linear-gradient(to right,
                rgba(11, 14, 20, 0.98) 0%,
                rgba(11, 14, 20, 0.85) 35%,
                rgba(11, 14, 20, 0.55) 65%,
                rgba(11, 14, 20, 0.15) 100%);
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .hero-gradient-overlay {
        background: linear-gradient(to right,
                rgba(11, 14, 20, 0.98) 0%,
                rgba(11, 14, 20, 0.90) 45%,
                rgba(11, 14, 20, 0.60) 75%,
                rgba(11, 14, 20, 0.20) 100%);
    }
}

/* ===== АДМИН-ПАНЕЛЬ ===== */

/* Убираем футер и скролл тела на странице админки */
.admin-wrap {
    display: flex;
    min-height: 100vh;
    padding-top: 72px; /* высота navbar */
    background: #0b0e14;
}

/* --- Сайдбар --- */
.admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #0f1420;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 28px 24px 20px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #e8edf5;
    letter-spacing: -0.01em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-sidebar-brand i {
    font-size: 1.4rem;
    color: #f0b31c;
    filter: drop-shadow(0 0 8px rgba(240, 179, 28, 0.4));
}

.admin-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    color: #6a758b;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.admin-nav-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #bcc4d4;
}

.admin-nav-item.active {
    background: rgba(240, 179, 28, 0.1);
    color: #f0b31c;
    border: 1px solid rgba(240, 179, 28, 0.12);
}

.admin-nav-item.active i {
    color: #f0b31c;
}

/* --- Футер сайдбара (профиль) --- */
.admin-sidebar-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.015);
}

.admin-me-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(240, 179, 28, 0.3);
    flex-shrink: 0;
}

.admin-me-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #e8edf5;
    line-height: 1.2;
}

.admin-me-role {
    font-size: 0.75rem;
    color: #f0b31c;
    font-weight: 600;
}

.admin-logout-btn {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5368;
    font-size: 1rem;
    transition: all 0.2s;
    background: transparent;
    flex-shrink: 0;
}

.admin-logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

/* --- Основной контент --- */
.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 32px 36px;
    min-height: calc(100vh - 72px);
    overflow-y: auto;
}

/* --- Заголовок страницы --- */
.admin-page-header {
    margin-bottom: 28px;
}

.admin-page-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #e8edf5;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-page-title i {
    color: #f0b31c;
}

/* --- Сетка статистики --- */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: #141a24;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: border-color 0.25s, transform 0.25s;
}

.admin-stat-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.admin-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.admin-stat-icon.blue   { background: rgba(96, 165, 250, 0.12);  color: #60a5fa; }
.admin-stat-icon.gold   { background: rgba(240, 179, 28, 0.12);  color: #f0b31c; }
.admin-stat-icon.green  { background: rgba(74, 222, 128, 0.12);  color: #4ade80; }
.admin-stat-icon.purple { background: rgba(167, 139, 250, 0.12); color: #a78bfa; }
.admin-stat-icon.orange { background: rgba(251, 146, 60, 0.12);  color: #fb923c; }
.admin-stat-icon.red    { background: rgba(248, 113, 113, 0.12); color: #f87171; }

.admin-stat-body {
    min-width: 0;
}

.admin-stat-val {
    font-size: 1.7rem;
    font-weight: 800;
    color: #e8edf5;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 4px;
}

.admin-stat-label {
    font-size: 0.78rem;
    color: #6a758b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* --- Быстрые ссылки --- */
.admin-quick-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.admin-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    background: rgba(240, 179, 28, 0.08);
    border: 1px solid rgba(240, 179, 28, 0.15);
    color: #f0b31c;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.admin-quick-btn:hover {
    background: rgba(240, 179, 28, 0.15);
    border-color: rgba(240, 179, 28, 0.3);
    color: #f7c23a;
    transform: translateY(-2px);
}

/* --- Карточки --- */
.admin-card {
    background: #141a24;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.admin-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #f0b31c, #d48f1a, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.admin-card:hover::before {
    opacity: 1;
}

.admin-card-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6a758b;
    padding: 18px 24px 0;
    margin-bottom: 18px;
}

.mb-4 {
    margin-bottom: 20px !important;
}

/* --- Форма создания турнира --- */
.admin-form {
    padding: 0 24px 24px;
}

.admin-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.admin-form-group {
    flex: 1;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0;
}

.admin-form-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #8b95a9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-input {
    background: #0f141e;
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #e8edf5;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.admin-input:focus {
    border-color: rgba(240, 179, 28, 0.4);
    box-shadow: 0 0 0 3px rgba(240, 179, 28, 0.07);
}

.admin-input option {
    background: #141a24;
    color: #e8edf5;
}

.admin-textarea {
    resize: vertical;
    min-height: 80px;
}

.admin-form > .admin-form-group {
    margin-bottom: 14px;
}

/* --- Таблицы --- */
.admin-table-wrap {
    overflow-x: auto;
    padding: 0 24px 24px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    color: #e8edf5;
}

.admin-table thead tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-table th {
    padding: 10px 12px;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6a778e;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.admin-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.15s;
}

.admin-table tbody tr:last-child {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.admin-table td {
    padding: 12px 12px;
    vertical-align: middle;
}

/* --- Бейдж игры --- */
.admin-game-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #bcc4d4;
    font-size: 0.8rem;
    font-weight: 500;
}

/* --- Селект статуса --- */
.admin-status-select {
    background: #0f141e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e8edf5;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.admin-status-select:focus {
    border-color: rgba(240, 179, 28, 0.35);
}

.admin-status-select.status-recruiting    { color: #fbbf24; }
.admin-status-select.status-waiting_admin { color: #fb923c; }
.admin-status-select.status-scheduled     { color: #60a5fa; }
.admin-status-select.status-ongoing       { color: #4ade80; }
.admin-status-select.status-finished      { color: #818cf8; }
/* устаревшие — обратная совместимость */
.admin-status-select.status-upcoming  { color: #fbbf24; }
.admin-status-select.status-active    { color: #4ade80; }
.admin-status-select.status-cancelled { color: #f87171; }

/* --- Кнопки действий --- */
.admin-del-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.07);
    color: #f87171;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.admin-del-btn:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fca5a5;
}

.admin-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-right: 4px;
}

.admin-action-btn.green {
    background: rgba(74, 222, 128, 0.07);
    border-color: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.admin-action-btn.green:hover {
    background: rgba(74, 222, 128, 0.16);
    border-color: rgba(74, 222, 128, 0.4);
}

.admin-action-btn.orange {
    background: rgba(251, 146, 60, 0.07);
    border-color: rgba(251, 146, 60, 0.2);
    color: #fb923c;
}

.admin-action-btn.orange:hover {
    background: rgba(251, 146, 60, 0.16);
    border-color: rgba(251, 146, 60, 0.4);
}

.admin-actions {
    white-space: nowrap;
}

/* --- Аватар в таблице пользователей --- */
.admin-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-user-ava {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

/* --- Бейджи ролей --- */
.admin-badge-admin {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 50px;
    background: rgba(240, 179, 28, 0.1);
    border: 1px solid rgba(240, 179, 28, 0.18);
    color: #f0b31c;
    font-size: 0.78rem;
    font-weight: 600;
}

.admin-badge-user {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #8b95a9;
    font-size: 0.78rem;
    font-weight: 600;
}

/* --- Пустое состояние --- */
.admin-empty {
    text-align: center;
    padding: 48px 20px;
    color: #4a5368;
    font-size: 0.9rem;
    margin: 0 24px 24px;
}

/* --- Адаптив админки --- */
@media (max-width: 1100px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .admin-sidebar {
        width: 220px;
    }
    .admin-main {
        margin-left: 220px;
        padding: 24px 20px;
    }
}

@media (max-width: 720px) {
    .admin-wrap {
        flex-direction: column;
    }
    .admin-sidebar {
        position: static;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .admin-sidebar-brand {
        padding: 16px 20px;
        border-bottom: none;
    }
    .admin-nav {
        flex-direction: row;
        padding: 8px 12px;
        gap: 4px;
        overflow-x: auto;
        flex-wrap: nowrap;
        flex: 0 0 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    .admin-nav-item {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    .admin-sidebar-footer {
        display: none;
    }
    .admin-main {
        margin-left: 0;
        padding: 20px 16px;
    }
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .admin-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .admin-stat-val {
        font-size: 1.3rem;
    }
    .admin-form-row {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== ADMIN: ЗАГРУЗКА ФОТО ТУРНИРА ===== */
.admin-upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: #0f141e;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.admin-upload-zone:hover {
    border-color: rgba(240, 179, 28, 0.35);
    background: #111620;
}

.admin-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 20px;
    color: #4a5368;
    pointer-events: none;
    width: 100%;
    text-align: center;
}

.admin-upload-placeholder i {
    font-size: 2rem;
    color: #3a4255;
    margin-bottom: 4px;
}

.admin-upload-placeholder span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6a758b;
}

.admin-upload-placeholder small {
    font-size: 0.78rem;
    color: #3a4255;
}

.admin-upload-preview {
    width: 100%;
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-upload-preview img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.admin-upload-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.15);
    color: #e8edf5;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.admin-upload-remove:hover {
    background: rgba(239, 68, 68, 0.8);
}

/* ===== ADMIN: ПИКЕР ИГРЫ ===== */
.admin-game-picker {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.admin-game-pick-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #6a758b;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-game-pick-btn:hover {
    border-color: rgba(240, 179, 28, 0.25);
    color: #bcc4d4;
}

.admin-game-pick-btn.active {
    background: rgba(240, 179, 28, 0.12);
    border-color: rgba(240, 179, 28, 0.35);
    color: #f0b31c;
}

.admin-game-pick-icon {
    font-size: 1rem;
    line-height: 1;
}

/* ===== ADMIN: ПИКЕР РЕЖИМА ===== */
.admin-mode-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.admin-mode-btn {
    padding: 8px 18px;
    border-radius: 50px;
    border: 1.5px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
    color: #6a758b;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.admin-mode-btn:hover {
    border-color: rgba(99, 102, 241, 0.3);
    color: #bcc4d4;
}

.admin-mode-btn.active {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.4);
    color: #818cf8;
}

/* ===== ADMIN: PLACEHOLDER (разделы в разработке) ===== */
.admin-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 64px 32px;
    text-align: center;
}

.admin-placeholder-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e8edf5;
}

.admin-placeholder-text {
    font-size: 0.93rem;
    color: #6b7896;
    max-width: 480px;
    line-height: 1.65;
}

/* ===== СТРАНИЦА ТУРНИРОВ: ПАНЕЛЬ ФИЛЬТРОВ ===== */

.tfilter-panel {
    background: #141a24;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 20px 24px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- Строка поиска --- */
.tfilter-search-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tfilter-search-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.tfilter-search-icon {
    position: absolute;
    left: 14px;
    color: #4a5368;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 1;
}

.tfilter-search-input {
    width: 100%;
    background: #0f141e;
    border: 1.5px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    color: #e8edf5;
    font-size: 0.93rem;
    font-family: 'Inter', sans-serif;
    padding: 11px 40px 11px 40px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tfilter-search-input:focus {
    border-color: rgba(240,179,28,0.35);
    box-shadow: 0 0 0 3px rgba(240,179,28,0.07);
}

.tfilter-search-input::placeholder {
    color: #3a4255;
}

.tfilter-search-clear {
    position: absolute;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    border: none;
    color: #6a758b;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tfilter-search-clear:hover {
    background: rgba(239,68,68,0.15);
    color: #f87171;
}

.tfilter-search-btn {
    padding: 11px 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0b31c, #d48f1a);
    border: none;
    color: #0b0e14;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.tfilter-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(240,179,28,0.3);
}

/* --- Строка селектов --- */
.tfilter-selects-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.tfilter-select-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 150px;
}

.tfilter-select-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6a778e;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tfilter-select-wrap {
    position: relative;
}

.tfilter-select {
    width: 100%;
    background: #0f141e;
    border: 1.5px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    color: #e8edf5;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    padding: 10px 36px 10px 14px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tfilter-select:focus {
    border-color: rgba(240,179,28,0.35);
    box-shadow: 0 0 0 3px rgba(240,179,28,0.07);
}

.tfilter-select option {
    background: #141a24;
    color: #e8edf5;
}

.tfilter-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #4a5368;
    font-size: 0.8rem;
    pointer-events: none;
}

/* Кнопка сброса */
.tfilter-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1.5px solid rgba(239,68,68,0.2);
    background: rgba(239,68,68,0.06);
    color: #f87171;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    height: 42px;
    align-self: flex-end;
}

.tfilter-reset-btn:hover {
    background: rgba(239,68,68,0.14);
    border-color: rgba(239,68,68,0.4);
    color: #fca5a5;
}

/* --- Теги активных фильтров --- */
.tfilter-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tfilter-tags-label {
    font-size: 0.78rem;
    color: #6a778e;
    font-weight: 600;
}

.tfilter-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 4px 12px;
    border-radius: 50px;
    background: rgba(240,179,28,0.1);
    border: 1px solid rgba(240,179,28,0.2);
    color: #f0b31c;
    font-size: 0.8rem;
    font-weight: 600;
}

.tfilter-tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(240,179,28,0.15);
    color: #f0b31c;
    font-size: 0.7rem;
    text-decoration: none;
    transition: all 0.2s;
    margin-left: 2px;
}

.tfilter-tag-remove:hover {
    background: rgba(239,68,68,0.2);
    color: #f87171;
}

/* --- Счётчик --- */
.tfilter-count-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.tfilter-count-text {
    font-size: 0.85rem;
    color: #6a778e;
    font-weight: 600;
}

/* Адаптив */
@media (max-width: 768px) {
    .tfilter-panel { padding: 16px; }
    .tfilter-search-row { flex-direction: column; }
    .tfilter-search-btn { width: 100%; justify-content: center; }
    .tfilter-selects-row { flex-direction: column; gap: 10px; }
    .tfilter-select-group { min-width: 100%; }
    .tfilter-reset-btn { width: 100%; justify-content: center; }
}

/* ===== КАРТОЧКИ ТУРНИРОВ ===== */

.tours-count-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.tours-count-text {
    font-size: 0.85rem;
    color: #6a778e;
    font-weight: 600;
}

/* Карточка турнира */
.tours-card {
    background: #141a24;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tours-card:hover {
    transform: translateY(-6px);
    border-color: rgba(240,179,28,0.15);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.tours-card-cover {
    position: relative;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.tours-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tours-card:hover .tours-card-img {
    transform: scale(1.04);
}

.tours-card-no-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f1420, #1c2535);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.tours-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
}

.tours-badge-game {
    padding: 3px 10px;
    border-radius: 50px;
    background: rgba(11,14,20,0.8);
    backdrop-filter: blur(6px);
    color: #e8edf5;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.1);
}

.tours-badge-status {
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.tours-badge-upcoming      { background: rgba(251,191,36,0.85);  color: #0b0e14; }
.tours-badge-active        { background: rgba(74,222,128,0.85);   color: #0b0e14; }
.tours-badge-finished      { background: rgba(99,102,241,0.85);   color: #fff; }
.tours-badge-cancelled     { background: rgba(239,68,68,0.85);    color: #fff; }
.tours-badge-recruiting    { background: rgba(74,222,128,0.85);   color: #0b0e14; }
.tours-badge-waiting_admin { background: rgba(251,191,36,0.85);   color: #0b0e14; }
.tours-badge-scheduled     { background: rgba(96,165,250,0.85);   color: #0b0e14; }
.tours-badge-ongoing       { background: rgba(52,211,153,0.85);   color: #0b0e14; }

.tours-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tours-card-mode {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #f0b31c;
    margin-bottom: 6px;
}

.tours-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #e8edf5;
    margin: 0 0 10px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.tours-card-desc {
    font-size: 0.87rem;
    color: #6a778e;
    line-height: 1.6;
    margin: 0 0 12px;
    flex: 1;
}

.tours-card-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.tours-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #4a5368;
}

.tours-meta-item i {
    color: #3a4255;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.tours-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(240,179,28,0.1);
    border: 1.5px solid rgba(240,179,28,0.2);
    color: #f0b31c;
    font-size: 0.88rem;
    font-weight: 700;
    transition: all 0.2s;
    text-decoration: none;
    margin-top: auto;
}

.tours-card-btn:hover {
    background: rgba(240,179,28,0.18);
    border-color: rgba(240,179,28,0.4);
    color: #f7c23a;
    transform: translateX(2px);
}

/* Пагинация */
.tours-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 48px;
}

.tours-page-btn {
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1.5px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.03);
    color: #6a758b;
    text-decoration: none;
    transition: all 0.2s;
    padding: 0 10px;
}

.tours-page-btn:hover {
    border-color: rgba(240,179,28,0.25);
    color: #f0b31c;
    background: rgba(240,179,28,0.06);
}

.tours-page-btn.active {
    background: linear-gradient(135deg, #f0b31c, #d48f1a);
    border-color: #f0b31c;
    color: #0b0e14;
    font-weight: 800;
}

.tours-page-dots {
    color: #4a5368;
    font-size: 0.9rem;
    padding: 0 4px;
}

/* Пустое состояние */
.tours-empty {
    text-align: center;
    padding: 80px 20px 60px;
}

.tours-empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.tours-empty-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #e8edf5;
    margin-bottom: 8px;
}

.tours-empty-text {
    color: #4a5368;
    font-size: 0.95rem;
    margin-bottom: 28px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== СТРАНИЦА ДЕТАЛЕЙ ТУРНИРА ===== */

.tdetail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tdetail-breadcrumb-link {
    color: #6a778e;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.tdetail-breadcrumb-link:hover { color: #f0b31c; }

.tdetail-breadcrumb-sep {
    color: #3a4255;
    font-size: 0.75rem;
}

.tdetail-breadcrumb-cur {
    color: #bcc4d4;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Обложка детальной */
.tdetail-cover {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
    height: 320px;
}

.tdetail-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tdetail-cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f1420, #1a2235);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.tdetail-cover-overlay {
    position: absolute;
    bottom: 14px;
    left: 14px;
    display: flex;
    gap: 8px;
}

.tdetail-cover-game,
.tdetail-cover-mode {
    padding: 5px 14px;
    border-radius: 50px;
    background: rgba(11,14,20,0.82);
    backdrop-filter: blur(8px);
    color: #e8edf5;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.1);
}

.tdetail-cover-status {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Основная область */
.tdetail-main {
    padding-top: 24px;
}

.tdetail-title {
    font-size: 2rem;
    font-weight: 800;
    color: #e8edf5;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.tdetail-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6a778e;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tdetail-description {
    margin-bottom: 24px;
}

.tdetail-desc-text {
    color: #bcc4d4;
    font-size: 0.97rem;
    line-height: 1.75;
    margin: 0;
    white-space: pre-line;
}

/* Детали */
.tdetail-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tdetail-detail-item {
    background: #141a24;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: border-color 0.2s;
}

.tdetail-detail-item:hover {
    border-color: rgba(255,255,255,0.1);
}

.tdetail-detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(240,179,28,0.1);
    border: 1px solid rgba(240,179,28,0.15);
    color: #f0b31c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.tdetail-detail-label {
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6a778e;
    font-weight: 700;
    margin-bottom: 3px;
}

.tdetail-detail-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e8edf5;
}

/* Боковые карточки */
.tdetail-sidebar-card {
    background: #141a24;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 16px;
}

.tdetail-sidebar-label {
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6a778e;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tdetail-creator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.tdetail-creator-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(240,179,28,0.3);
    flex-shrink: 0;
}

.tdetail-creator-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1c2330;
    border: 2px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5368;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tdetail-creator-name {
    font-size: 0.97rem;
    font-weight: 700;
    color: #e8edf5;
    line-height: 1.2;
}

.tdetail-creator-role {
    font-size: 0.78rem;
    color: #f0b31c;
    font-weight: 600;
    margin-top: 2px;
}

.tdetail-steam-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 50px;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.09);
    color: #bcc4d4;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}

.tdetail-steam-link:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
    color: #e8edf5;
}

/* Инвайт */
.tdetail-invite-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.tdetail-invite-input {
    flex: 1;
    background: #0f141e;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    color: #8b95a9;
    font-size: 0.8rem;
    padding: 9px 12px;
    font-family: monospace;
    outline: none;
    min-width: 0;
}

.tdetail-copy-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(240,179,28,0.1);
    border: 1.5px solid rgba(240,179,28,0.2);
    color: #f0b31c;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.tdetail-copy-btn:hover {
    background: rgba(240,179,28,0.18);
    border-color: rgba(240,179,28,0.4);
}

.tdetail-invite-hint {
    font-size: 0.78rem;
    color: #4a5368;
    margin: 0;
    line-height: 1.5;
}

/* Большой статус */
.tdetail-status-big {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Цвета статуса */
.tdetail-status-recruiting    { background: rgba(251,191,36,0.12);  color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }
.tdetail-status-waiting_admin { background: rgba(251,146,60,0.12);  color: #fb923c; border: 1px solid rgba(251,146,60,0.2); }
.tdetail-status-scheduled     { background: rgba(96,165,250,0.12);  color: #60a5fa; border: 1px solid rgba(96,165,250,0.2); }
.tdetail-status-ongoing       { background: rgba(74,222,128,0.12);  color: #4ade80; border: 1px solid rgba(74,222,128,0.2); }
.tdetail-status-finished      { background: rgba(99,102,241,0.12);  color: #818cf8; border: 1px solid rgba(99,102,241,0.2); }
/* устаревшие — обратная совместимость */
.tdetail-status-upcoming  { background: rgba(251,191,36,0.12); color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }
.tdetail-status-active    { background: rgba(74,222,128,0.12);  color: #4ade80; border: 1px solid rgba(74,222,128,0.2); }
.tdetail-status-cancelled { background: rgba(239,68,68,0.12);   color: #f87171; border: 1px solid rgba(239,68,68,0.2); }

/* Кнопка назад */
.tdetail-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1.5px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: #6a778e;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}

.tdetail-back-btn:hover {
    border-color: rgba(255,255,255,0.16);
    color: #bcc4d4;
    transform: translateX(-2px);
}

@media (max-width: 768px) {
    .tdetail-cover { height: 220px; }
    .tdetail-title { font-size: 1.5rem; }
    .tdetail-details-grid { grid-template-columns: 1fr; }
    .tours-filter-label { min-width: auto; }
}

/* ===== ADMIN: БЕЙДЖ "СКОРО" ===== */
.admin-page-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.admin-page-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(240, 179, 28, 0.15);
    color: #f0b31c;
    border: 1px solid rgba(240, 179, 28, 0.3);
}

/* ===== DEV: БЫСТРЫЙ ВХОД (тестовые аккаунты) ===== */
.dev-login-section {
    margin-top: 22px;
    animation: dev-section-in 0.3s cubic-bezier(0.34, 1.36, 0.64, 1) both;
}

@keyframes dev-section-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dev-login-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.dev-login-divider::before,
.dev-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

.dev-login-divider span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #f0b31c;
    white-space: nowrap;
    text-transform: uppercase;
    background: rgba(240, 179, 28, 0.08);
    border: 1px solid rgba(240, 179, 28, 0.18);
    padding: 3px 10px;
    border-radius: 50px;
}

.dev-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Карточка тестового пользователя */
.dev-login-btn {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(240,179,28,0.05) 0%, rgba(240,179,28,0.02) 100%);
    border: 1px solid rgba(240, 179, 28, 0.14);
    color: #bcc4d4;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.22s, border-color 0.22s, transform 0.18s, box-shadow 0.22s, color 0.2s;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Левая полоска-акцент */
.dev-login-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #f0b31c, #d48f1a);
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transition: opacity 0.2s;
}

/* Стрелка вправо */
.dev-login-btn::after {
    content: '→';
    position: absolute;
    right: 14px;
    font-size: 0.9rem;
    color: #f0b31c;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s, transform 0.2s;
}

.dev-login-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, rgba(240,179,28,0.12) 0%, rgba(240,179,28,0.05) 100%);
    border-color: rgba(240, 179, 28, 0.38);
    color: #e8edf5;
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(240, 179, 28, 0.1);
}

.dev-login-btn:hover:not(.disabled)::before {
    opacity: 1;
}

.dev-login-btn:hover:not(.disabled)::after {
    opacity: 1;
    transform: translateX(0);
}

.dev-login-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

/* Аватар */
.dev-login-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid rgba(240, 179, 28, 0.2);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dev-login-btn:hover:not(.disabled) .dev-login-avatar {
    border-color: rgba(240, 179, 28, 0.5);
    box-shadow: 0 0 12px rgba(240, 179, 28, 0.2);
}

/* Текстовый блок */
.dev-login-info {
    flex: 1;
    min-width: 0;
    padding-right: 20px; /* место под стрелку */
}

.dev-login-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: #e8edf5;
    line-height: 1.2;
    margin-bottom: 2px;
}

.dev-login-sub {
    font-size: 0.75rem;
    color: #4a5368;
    font-weight: 500;
    line-height: 1;
}

/* Флаг */
.dev-login-flag {
    font-size: 1.25rem;
    flex-shrink: 0;
    line-height: 1;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

/* ===== КОЛЕСО ПРИЗОВ ===== */

/* Шапка страницы колеса */
.wheel-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.wheel-page-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wheel-page-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(240,179,28,0.12);
    border: 1px solid rgba(240,179,28,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #f0b31c;
    flex-shrink: 0;
}

.wheel-page-title h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #e8edf5;
    letter-spacing: -0.02em;
    margin: 0 0 4px;
}

.wheel-page-title p {
    font-size: 0.86rem;
    color: #6a778e;
    margin: 0;
    line-height: 1.4;
}

/* Бейдж с билетами */
.wheel-tickets-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(59,130,246,0.08));
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: 50px;
    padding: 10px 20px;
    color: #60a5fa;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.wheel-tickets-badge i { font-size: 1.1rem; }
.wheel-tickets-badge span { font-size: 1.3rem; }
.wheel-tickets-badge small { font-size: 0.78rem; font-weight: 600; opacity: 0.7; }

/* Основная раскладка */
.wheel-wrap {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* --- Левая колонка (колесо) --- */
.wheel-left {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 340px;
}

.wheel-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #e8edf5;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wheel-title i {
    color: #f0b31c;
    font-size: 1.3rem;
}

.wheel-subtitle {
    font-size: 0.87rem;
    color: #6a778e;
    text-align: center;
    max-width: 320px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Контейнер самого колеса */
.wheel-container {
    position: relative;
    width: 340px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Внешнее кольцо / свечение */
.wheel-outer-ring {
    border-radius: 50%;
    box-shadow:
        0 0 0 4px rgba(240,179,28,0.15),
        0 0 40px rgba(240,179,28,0.1),
        0 8px 40px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-outer-ring canvas {
    border-radius: 50%;
    display: block;
}

/* Указатель сверху */
.wheel-pointer {
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 36px;
    z-index: 10;
    filter: drop-shadow(0 2px 6px rgba(240,179,28,0.5));
}

/* Центральная кнопка поверх колеса */
.wheel-center-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0b31c, #d48f1a);
    border: 3px solid #0b0e14;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    z-index: 5;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(240,179,28,0.4);
}

.wheel-center-btn:hover:not(:disabled) {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 6px 28px rgba(240,179,28,0.6);
}

.wheel-center-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.wheel-center-btn.spinning .wheel-center-icon i {
    animation: spin-icon 0.5s linear infinite;
}

@keyframes spin-icon {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.wheel-center-icon {
    font-size: 1.1rem;
    color: #0b0e14;
    line-height: 1;
}

.wheel-center-text {
    font-size: 0.6rem;
    font-weight: 900;
    color: #0b0e14;
    letter-spacing: 0.08em;
    line-height: 1;
}

/* Строка цены */
.wheel-cost-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.15);
    border-radius: 50px;
    padding: 7px 16px;
}

.wheel-cost-label {
    font-size: 0.87rem;
    color: #6a778e;
    font-weight: 600;
}

.wheel-cost-label i { color: #60a5fa; }

.wheel-cost-value {
    font-size: 0.9rem;
    font-weight: 800;
    color: #60a5fa;
}

/* Главная кнопка крутить */
.wheel-spin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 40px;
    border-radius: 50px;
    background: linear-gradient(135deg, #f0b31c, #d48f1a);
    border: none;
    color: #0b0e14;
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 6px 24px rgba(240,179,28,0.3);
    width: 100%;
    max-width: 280px;
}

.wheel-spin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(240,179,28,0.45);
}

.wheel-spin-btn:disabled {
    background: #1e2535;
    color: #3a4255;
    box-shadow: none;
    cursor: not-allowed;
}

/* --- Правая колонка (призы + история) --- */
.wheel-right {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wheel-prizes-card {
    background: #0f141e;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 18px;
    padding: 20px 22px;
}

.wheel-card-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6a778e;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Список призов */
.wheel-prize-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wheel-prize-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    transition: background 0.2s;
}

.wheel-prize-item:hover {
    background: rgba(255,255,255,0.04);
}

.wheel-prize-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--seg-color, #888);
    box-shadow: 0 0 6px var(--seg-color, #888);
}

.wheel-prize-name {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e8edf5;
}

.wheel-prize-chance {
    font-size: 0.78rem;
    font-weight: 700;
    color: #4a5368;
    background: rgba(255,255,255,0.04);
    padding: 2px 8px;
    border-radius: 50px;
}

/* История вращений */
.wheel-history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 60px;
}

.wheel-history-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3a4255;
    font-size: 0.87rem;
    padding: 8px 0;
}

.wheel-history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    animation: toast-in 0.25s ease both;
}

.wheel-history-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.wheel-history-prize {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 600;
    color: #e8edf5;
}

.wheel-history-time {
    font-size: 0.78rem;
    color: #4a5368;
}

/* --- Модалка результата --- */
.wheel-result-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7,9,14,0.75);
    backdrop-filter: blur(8px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s;
}

.wheel-result-overlay.active {
    opacity: 1;
}

.wheel-result-box {
    background: #141a24;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 24px;
    padding: 40px 36px;
    text-align: center;
    max-width: 360px;
    width: 100%;
    transform: scale(0.9);
    transition: transform 0.28s cubic-bezier(0.34,1.36,0.64,1);
    box-shadow: 0 32px 80px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
}

.wheel-result-overlay.active .wheel-result-box {
    transform: scale(1);
}

.wheel-result-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f0b31c, #c084fc, #60a5fa);
}

.wheel-result-icon {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 16px;
    animation: pop-in 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.1s both;
}

@keyframes pop-in {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.wheel-result-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #e8edf5;
    margin-bottom: 10px;
}

.wheel-result-prize {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #f0b31c, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.wheel-result-sub {
    font-size: 0.82rem;
    color: #4a5368;
    margin-bottom: 24px;
    line-height: 1.5;
}

.wheel-result-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 40px;
    border-radius: 50px;
    background: linear-gradient(135deg, #f0b31c, #d48f1a);
    border: none;
    color: #0b0e14;
    font-size: 0.95rem;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 6px 20px rgba(240,179,28,0.3);
}

.wheel-disabled-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    background: #0f141e;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    margin-top: 16px;
}

/* Бейдж кулдауна под колесом */
.wheel-cooldown-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(248,113,113,0.08);
    border: 1px solid rgba(248,113,113,0.2);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: #f87171;
    font-weight: 600;
    margin-bottom: 12px;
    width: 100%;
    max-width: 360px;
    justify-content: center;
}
.wheel-cooldown-badge i { font-size: 0.95rem; }

.wheel-result-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(240,179,28,0.45);
}

/* --- stats-row адаптив для 5 карточек --- */
@media (min-width: 992px) {
    .profile-stats-row {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Canvas обёртка */
.wheel-canvas-wrap {
    border-radius: 50%;
    box-shadow:
        0 0 0 5px rgba(240,179,28,0.18),
        0 0 50px rgba(240,179,28,0.12),
        0 12px 50px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-canvas-wrap canvas {
    border-radius: 50%;
    display: block;
}

/* Центральная кнопка — переопределение для нового HTML */
.wheel-container .wheel-center-btn {
    font-size: 0.7rem;
    font-weight: 900;
    color: #0b0e14;
    letter-spacing: 0.05em;
    gap: 3px;
}

.wheel-container .wheel-center-btn i {
    font-size: 1.3rem;
    color: #0b0e14;
    display: block;
}

.wheel-container .wheel-center-btn span {
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

/* Блок действий под колесом */
.wheel-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 360px;
}

/* Бейдж цены */
.wheel-cost-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #4a5368;
}

.wheel-cost-badge i { color: #60a5fa; opacity: 0.7; }

/* Карточки правой колонки */
.wheel-card {
    background: #0f141e;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 18px;
    padding: 20px 22px;
}

.wheel-card-header {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6a778e;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 6px;
}

.wheel-card-header i { color: #f0b31c; }

/* Строки призов с прогресс-баром */
.wheel-prize-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.03);
    margin-bottom: 6px;
    transition: background 0.2s;
}

.wheel-prize-row:last-child { margin-bottom: 0; }

.wheel-prize-row:hover {
    background: rgba(255,255,255,0.04);
}

.wpr-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--c, #888);
    box-shadow: 0 0 6px var(--c, #888);
    flex-shrink: 0;
}

.wpr-emoji {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.wpr-name {
    flex: 0 0 80px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #e8edf5;
}

.wpr-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    overflow: hidden;
}

.wpr-bar span {
    display: block;
    height: 100%;
    background: var(--c, #888);
    border-radius: 2px;
    opacity: 0.6;
}

.wpr-pct {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4a5368;
    flex-shrink: 0;
    min-width: 32px;
    text-align: right;
}

/* Указатель — размер для нового SVG */
.wheel-pointer {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 50px;
    z-index: 10;
    filter: drop-shadow(0 2px 8px rgba(240,179,28,0.6));
}

/* Адаптив колеса */
@media (max-width: 860px) {
    .wheel-wrap {
        flex-direction: column;
        align-items: center;
    }
    .wheel-left {
        min-width: 0;
        width: 100%;
    }
    .wheel-container {
        width: 300px;
        height: 300px;
    }
    .wheel-right {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .wheel-container {
        width: 270px;
        height: 270px;
    }
}

/* ===== ADMIN: Отзывы и обращения ===== */

/* Строка скрытого отзыва */
.admin-row-hidden td {
    opacity: 0.45;
}
.admin-row-hidden {
    background: rgba(239, 68, 68, 0.04);
}

/* Строка непрочитанного обращения */
.admin-row-unread {
    background: rgba(255, 179, 0, 0.06);
    border-left: 3px solid #ffb300;
}
.admin-row-unread td:first-child {
    padding-left: 9px;
}

/* Бейдж "скрыт" / "виден" */
.admin-badge-hidden {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.13);
    color: #f87171;
    white-space: nowrap;
}
.admin-badge-visible {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(74, 222, 128, 0.13);
    color: #4ade80;
    white-space: nowrap;
}

/* Бейдж счётчика непрочитанных */
.admin-unread-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 179, 0, 0.18);
    color: #ffb300;
    margin-left: 12px;
}

/* Подзаголовок рядом с заголовком страницы */
.admin-page-subtitle {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255,255,255,0.06);
    color: var(--muted, #8892a4);
    margin-left: 12px;
}

/* Текст отзыва в таблице */
.admin-review-text {
    max-width: 280px;
    white-space: normal;
    word-break: break-word;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #c8d0dd;
    cursor: default;
}

/* Звёзды рейтинга */
.admin-rating-stars {
    font-size: 0.82rem;
    letter-spacing: -1px;
    display: block;
    line-height: 1.3;
}

/* Бейджи типа контакта */
.admin-contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.admin-contact-badge.email  { background: rgba(59,130,246,0.15); color: #60a5fa; }
.admin-contact-badge.tg     { background: rgba(0,136,204,0.15);  color: #38bdf8; }
.admin-contact-badge.vk     { background: rgba(39,122,199,0.15); color: #7ba7d4; }
.admin-contact-badge.dc     { background: rgba(88,101,242,0.15); color: #a5b4fc; }
.admin-contact-badge.ph     { background: rgba(74,222,128,0.15); color: #4ade80; }

/* Пагинация */
.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 0 4px;
}
.admin-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: #c8d0dd;
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    transition: background 0.18s;
}
.admin-page-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.admin-page-info {
    font-size: 0.9rem;
    color: var(--muted, #8892a4);
    min-width: 60px;
    text-align: center;
}

/* ===== Мини-статистика фильтров ===== */
.admin-filter-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.admin-fstat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 10px 16px;
    min-width: 80px;
    text-align: center;
    flex: 1 1 80px;
    max-width: 120px;
}
.admin-fstat-card.green { border-color: rgba(74,222,128,0.25); background: rgba(74,222,128,0.06); }
.admin-fstat-card.orange { border-color: rgba(251,146,60,0.25); background: rgba(251,146,60,0.06); }
.admin-fstat-card.gold { border-color: rgba(250,204,21,0.25); background: rgba(250,204,21,0.06); }
.admin-fstat-card.star { border-color: rgba(250,204,21,0.2); background: rgba(250,204,21,0.04); }
.admin-fstat-val {
    font-size: 1.35rem;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.2;
}
.admin-fstat-label {
    font-size: 0.72rem;
    color: var(--muted, #8892a4);
    margin-top: 3px;
    line-height: 1.3;
}

/* ===== Панель фильтров (select-версия) ===== */
.admin-selects-bar {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 18px;
}
.admin-select-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 170px;
    flex: 1;
}
.admin-select-label {
    font-size: 0.75rem;
    color: var(--muted, #8892a4);
    font-weight: 600;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
}
.admin-filter-select {
    padding: 8px 12px !important;
    font-size: 0.875rem !important;
    height: 38px;
    cursor: pointer;
    min-height: unset !important;
}
.admin-filter-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    border-radius: 8px;
    background: rgba(239,68,68,0.10);
    color: #f87171;
    font-size: 0.82rem;
    text-decoration: none;
    border: 1px solid rgba(239,68,68,0.2);
    transition: background 0.2s;
    align-self: flex-end;
    height: 38px;
    white-space: nowrap;
    font-weight: 600;
}
.admin-filter-reset-btn:hover {
    background: rgba(239,68,68,0.20);
    color: #fca5a5;
    text-decoration: none;
}

/* ===== Панель фильтров ===== */
.admin-filters-bar {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.admin-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.admin-filter-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted, #8892a4);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    min-width: 80px;
    flex-shrink: 0;
}
.admin-filter-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.admin-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(255,255,255,0.05);
    color: #c8d0dd;
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    cursor: pointer;
    white-space: nowrap;
}
.admin-filter-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.15);
    text-decoration: none;
}
.admin-filter-btn.active {
    background: rgba(99,102,241,0.25);
    color: #a5b4fc;
    border-color: rgba(99,102,241,0.4);
}

/* Строки с непрочитанными обращениями */
.admin-row-unread td {
    font-weight: 500;
}
.admin-row-unread {
    background: rgba(255,160,0,0.04);
    border-left: 3px solid rgba(255,180,0,0.4);
}

/* ===== УПРАВЛЕНИЕ ПОЛЬЗОВАТЕЛЕМ ===== */

/* Кнопка «Управление» — синяя (расширенная) */
.admin-action-btn.blue {
    width: auto;
    padding: 0 12px;
    gap: 6px;
    background: rgba(96, 165, 250, 0.08);
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.2);
    border-radius: 8px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    height: 32px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}
.admin-action-btn.blue:hover {
    background: rgba(96, 165, 250, 0.18);
    color: #93c5fd;
    text-decoration: none;
}
.admin-action-btn.red {
    background: rgba(239, 68, 68, 0.07);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
}
.admin-action-btn.red:hover {
    background: rgba(239, 68, 68, 0.16);
}

/* Кнопка «Назад» */
.admin-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #8b95a9;
    font-size: 0.85rem;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}
.admin-back-btn:hover {
    background: rgba(255,255,255,0.09);
    color: #e8edf5;
    text-decoration: none;
}

/* Мини-статы в шапке карточки пользователя */
.admin-stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 8px 16px;
    min-width: 72px;
}
.asmi-label {
    font-size: 0.7rem;
    color: #5a6478;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.asmi-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e8edf5;
}

/* Сетка карточек управления */
.admin-user-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 8px;
}

/* Карточка действия */
.admin-action-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.admin-action-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #c8d0dd;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-action-card-desc {
    font-size: 0.82rem;
    color: #5a6478;
    line-height: 1.5;
    margin: 0;
}

/* Большие кнопки действий */
.admin-action-bigbtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
    text-decoration: none;
}
.admin-action-bigbtn:active { transform: scale(0.97); }
.admin-action-bigbtn.red {
    background: rgba(239,68,68,0.12);
    color: #f87171;
    border-color: rgba(239,68,68,0.25);
}
.admin-action-bigbtn.red:hover { background: rgba(239,68,68,0.22); }
.admin-action-bigbtn.green {
    background: rgba(74,222,128,0.1);
    color: #4ade80;
    border-color: rgba(74,222,128,0.25);
}
.admin-action-bigbtn.green:hover { background: rgba(74,222,128,0.2); }
.admin-action-bigbtn.blue {
    background: rgba(96,165,250,0.1);
    color: #60a5fa;
    border-color: rgba(96,165,250,0.25);
}
.admin-action-bigbtn.blue:hover { background: rgba(96,165,250,0.2); }
.admin-action-bigbtn.orange {
    background: rgba(251,146,60,0.1);
    color: #fb923c;
    border-color: rgba(251,146,60,0.25);
}
.admin-action-bigbtn.orange:hover { background: rgba(251,146,60,0.2); }

/* Форма с инпутами в строку */
.admin-inline-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.admin-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #e8edf5;
    padding: 8px 12px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
}
.admin-input:focus {
    border-color: rgba(96,165,250,0.4);
}
.admin-input::placeholder { color: #3d4557; }

/* Транзакции цвета */
.tx-positive { color: #4ade80; }
.tx-negative { color: #f87171; }

/* ===== ADMIN: БОНУСЫ (колесо призов + промокоды) ===== */

/* Заголовок секции внутри карточки */
.admin-card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap;
    gap: 10px;
}

.bonuses-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #e8edf5;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bonuses-section-title i { color: #f0b31c; }

/* Toggle-переключатель */
.bonus-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.bonus-toggle-wrap input[type="checkbox"] { display: none; }
.bonus-toggle-slider {
    width: 44px;
    height: 24px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}
.bonus-toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #8b95a9;
    transition: all 0.2s;
}
.bonus-toggle-wrap input:checked + .bonus-toggle-slider {
    background: rgba(74, 222, 128, 0.3);
    border: 1px solid rgba(74,222,128,0.4);
}
.bonus-toggle-wrap input:checked + .bonus-toggle-slider::after {
    left: 22px;
    background: #4ade80;
}
.bonus-toggle-label {
    font-size: 0.85rem;
    color: #8b95a9;
    min-width: 70px;
}
.bonus-toggle-wrap input:checked ~ .bonus-toggle-label {
    color: #4ade80;
}

/* Редактор колеса: layout */
.wheel-editor-layout {
    display: flex;
    gap: 24px;
    padding: 20px 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Превью колеса (canvas) */
.wheel-preview-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.wheel-canvas-wrap {
    position: relative;
    width: 280px;
    height: 280px;
}
.wheel-canvas-wrap canvas {
    border-radius: 50%;
    display: block;
    filter: drop-shadow(0 0 20px rgba(240,179,28,0.15));
}
.wheel-center-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0b0e14;
    border: 2px solid rgba(240,179,28,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f0b31c;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}
.wheel-preview-label {
    font-size: 0.78rem;
    color: #3d4557;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Список секторов */
.wheel-sectors-wrap {
    flex: 1;
    min-width: 280px;
}
.wheel-sectors-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #8b95a9;
}
.wheel-sector-count {
    color: #f0b31c;
    font-weight: 700;
}
.wheel-sectors-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}
.wheel-sectors-list::-webkit-scrollbar { width: 4px; }
.wheel-sectors-list::-webkit-scrollbar-track { background: transparent; }
.wheel-sectors-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.wheel-sector-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 8px 12px;
    transition: border-color 0.15s;
}
.wheel-sector-row:hover { border-color: rgba(255,255,255,0.1); }

.wheel-sector-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.15);
}
.wheel-sector-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e8edf5;
    min-width: 80px;
    flex: 1;
}
.wheel-sector-type {
    flex-shrink: 0;
}
.wheel-sector-val {
    font-size: 0.82rem;
    color: #8b95a9;
    min-width: 50px;
}
.wheel-sector-weight {
    font-size: 0.75rem;
    color: #3d4557;
    min-width: 30px;
    text-align: right;
}
.wheel-sector-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

/* Бейджи типов секторов */
.wheel-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
}
.wheel-type-badge.gold   { background: rgba(240,179,28,0.15); color: #f0b31c; }
.wheel-type-badge.blue   { background: rgba(96,165,250,0.15);  color: #60a5fa; }
.wheel-type-badge.purple { background: rgba(167,139,250,0.15); color: #a78bfa; }

/* Пустое состояние секторов */
.wheel-no-sectors {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px 0;
    color: #3d4557;
    font-size: 0.88rem;
    text-align: center;
}

/* Форма нового сектора */
.wheel-sector-form {
    margin: 0 24px 16px;
    background: rgba(240,179,28,0.04);
    border: 1px solid rgba(240,179,28,0.12);
    border-radius: 12px;
    padding: 18px 20px 14px;
}
.wheel-sector-form-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #f0b31c;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.wheel-sector-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* Кнопка сохранения колеса */
.wheel-save-row {
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: flex-end;
}

/* ===== ADMIN: COLOR INPUT ===== */
.admin-color-input {
    padding: 4px 6px !important;
    height: 38px;
    cursor: pointer;
}

/* ── Промокоды ── */
.promo-create-form {
    margin: 0 24px 16px;
    background: rgba(96,165,250,0.04);
    border: 1px solid rgba(96,165,250,0.12);
    border-radius: 12px;
    padding: 18px 20px 14px;
}

.promo-code-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(240,179,28,0.12);
    border: 1px solid rgba(240,179,28,0.2);
    color: #f0b31c;
    font-weight: 700;
    font-size: 0.82rem;
    font-family: 'Courier New', monospace;
    letter-spacing: .04em;
}

/* Responsive */
@media (max-width: 900px) {
    .wheel-editor-layout { flex-direction: column; }
    .wheel-canvas-wrap { width: 220px; height: 220px; }
    .wheel-canvas-wrap canvas { width: 220px; height: 220px; }
}
