/* ============================================================
   ДИНАСТИЯ — CS 1.6
   Тёмная тема с красными акцентами, современная типографика
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --red: #DC143C;
    --red-dark: #8B0000;
    --red-light: #ff4d6d;
    --red-glow: rgba(220, 20, 60, 0.35);
    --green: #28c850;
    --green-light: #6bff9a;
    --gold: #ffb800;
    --bg: #0d0d0f;
    --bg2: #15151a;
    --bg3: #1c1c24;
    --text: #e8e8e8;
    --muted: #888;
    --border: #2a2a35;
    --radius: 8px;
    --radius-lg: 10px;

    --font-head: 'Montserrat', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.2px;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(220, 20, 60, 0.18), transparent 55%),
        radial-gradient(circle at 90% 90%, rgba(220, 20, 60, 0.08), transparent 50%);
    background-attachment: fixed;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    letter-spacing: 0.5px;
}

a { color: var(--red); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--red-light); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ==================== HEADER ==================== */
header {
    background: linear-gradient(180deg, #1a1a22 0%, #0d0d0f 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    height: 72px;
    display: flex;
    align-items: center;
    animation: headerSlide 0.6s ease-out;
}
@keyframes headerSlide {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.header-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(220, 20, 60, 0.18), transparent 40%),
        radial-gradient(circle at 85% 50%, rgba(220, 20, 60, 0.12), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    pointer-events: none;
    z-index: 0;
}

.header-particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 15% 50%, rgba(220, 20, 60, 0.6), transparent),
        radial-gradient(1px 1px at 45% 30%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 75% 70%, rgba(220, 20, 60, 0.5), transparent),
        radial-gradient(1px 1px at 90% 20%, rgba(255, 255, 255, 0.3), transparent);
    background-size: 400px 100px;
    pointer-events: none;
    z-index: 0;
    animation: headerParticles 20s linear infinite;
    opacity: 0.7;
}
@keyframes headerParticles {
    0%   { background-position: 0 0; }
    100% { background-position: 400px 0; }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.header-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    box-shadow: 0 0 30px var(--red), 0 0 15px var(--red);
    opacity: 0.9;
    z-index: 1;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
    transition: 0.3s;
    text-decoration: none;
}
.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    box-shadow:
        0 0 20px rgba(220, 20, 60, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    color: #fff;
    font-size: 20px;
    animation: logoIconPulse 3s ease-in-out infinite;
    transition: 0.3s;
}
@keyframes logoIconPulse {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(220, 20, 60, 0.6),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    }
    50% {
        box-shadow:
            0 0 35px rgba(220, 20, 60, 0.9),
            0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    }
}
.logo-text {
    display: inline-block;
    letter-spacing: 2px;
}
.logo-text b {
    color: var(--red);
    font-weight: 900;
    text-shadow: 0 0 15px rgba(220,20,60,0.7);
}
.logo:hover .logo-icon {
    transform: scale(1.1) rotate(-5deg);
}
.logo:hover {
    transform: translateY(-1px);
}

.server-ip {
    flex: 1;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 16px;
    max-width: 320px;
    margin: 0 auto;
    background: rgba(40, 200, 80, 0.08);
    border: 1px solid rgba(40, 200, 80, 0.25);
    border-radius: 30px;
    position: relative;
}
.server-ip > i {
    color: var(--green);
    filter: drop-shadow(0 0 6px var(--green));
    font-size: 13px;
}
.server-pulse {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
    flex-shrink: 0;
    animation: serverPulseDot 1.5s ease-in-out infinite;
}
.server-pulse::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--green);
    opacity: 0.3;
    animation: serverPulseRing 1.5s ease-out infinite;
}
@keyframes serverPulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(1.15); }
}
@keyframes serverPulseRing {
    0%   { transform: scale(1);   opacity: 0.5; }
    100% { transform: scale(2.5); opacity: 0; }
}
.ip-gradient {
    background: linear-gradient(90deg,
        var(--green-light) 0%,
        #fff 25%,
        var(--green-light) 50%,
        #fff 75%,
        var(--green-light) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: ipFlow 4s linear infinite;
    font-weight: 700;
    letter-spacing: 0.5px;
}
@keyframes ipFlow {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}
.server-status-badge {
    font-size: 9px;
    font-weight: 900;
    color: var(--green);
    letter-spacing: 1.2px;
    padding: 2px 8px;
    background: rgba(40, 200, 80, 0.15);
    border-radius: 10px;
    border: 1px solid rgba(40, 200, 80, 0.35);
}

nav ul {
    display: flex;
    gap: 4px;
    list-style: none;
    align-items: center;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #bbb;
    font-weight: 600;
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.8px;
    padding: 10px 14px;
    border-radius: 8px;
    transition: 0.25s;
    position: relative;
    overflow: hidden;
}
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    transition: width 0.3s;
    box-shadow: 0 0 8px var(--red);
}
.nav-link i {
    font-size: 13px;
    transition: 0.25s;
}
.nav-link:hover {
    color: #fff;
    background: rgba(220, 20, 60, 0.08);
}
.nav-link:hover::before { width: 60%; }
.nav-link:hover i {
    color: var(--red);
    filter: drop-shadow(0 0 8px var(--red));
    transform: scale(1.1);
}

.nav-logout:hover i {
    color: #ff6b8a;
}

.nav-deposit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff !important;
    font-weight: 800;
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.2px;
    border-radius: 8px;
    box-shadow:
        0 4px 15px rgba(220, 20, 60, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    animation: depositPulse 3s ease-in-out infinite;
}
@keyframes depositPulse {
    0%, 100% {
        box-shadow:
            0 4px 15px rgba(220, 20, 60, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    }
    50% {
        box-shadow:
            0 4px 25px rgba(220, 20, 60, 0.7),
            0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    }
}
.nav-deposit::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}
.nav-deposit:hover::before { left: 100%; }
.nav-deposit:hover {
    transform: translateY(-2px);
    color: #fff !important;
    box-shadow:
        0 6px 25px rgba(220, 20, 60, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}
.nav-deposit i {
    color: #fff !important;
    font-size: 13px;
    filter: none !important;
}

.nav-register {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff !important;
    font-weight: 800;
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.2px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
    transition: 0.3s;
}
.nav-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(220, 20, 60, 0.7);
    color: #fff !important;
}

@media (max-width: 1100px) {
    .server-status-badge { display: none; }
}
@media (max-width: 900px) {
    .server-ip { display: none; }
    header { height: 64px; }
    .logo { font-size: 20px; }
    .logo-icon { width: 34px; height: 34px; font-size: 16px; }
    nav ul { gap: 2px; }
    .nav-link, .nav-deposit, .nav-register { padding: 8px 10px; font-size: 10px; }
}
@media (max-width: 700px) {
    .nav-link span, .nav-deposit span, .nav-register span { display: none; }
    .nav-link, .nav-deposit, .nav-register { padding: 10px 12px; }
    .nav-link i, .nav-deposit i, .nav-register i { font-size: 16px; }
    .logo-text { font-size: 18px; letter-spacing: 1px; }
}

/* ==================== HERO ==================== */
.hero {
    text-align: center;
    padding: 70px 20px 50px;
    position: relative;
}
.hero h1 {
    font-size: 72px;
    font-weight: 900;
    letter-spacing: 8px;
    background: linear-gradient(90deg, #fff 0%, var(--red) 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    margin-bottom: 14px;
    animation: gradientMove 4s linear infinite;
    filter: drop-shadow(0 0 30px rgba(220,20,60,0.5));
}
.hero p {
    color: var(--muted);
    font-size: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
}
.hero p i { color: var(--red); margin-right: 8px; }
.hero .btn { margin-top: 20px; }
@media (max-width: 700px) {
    .hero h1 { font-size: 42px; letter-spacing: 4px; }
    .hero p { font-size: 12px; letter-spacing: 2px; }
}

/* ==================== SECTION TITLES ==================== */
.section-title {
    color: #fff;
    margin: 45px 0 22px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}
.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--red), var(--red-dark));
    border-radius: 2px;
    box-shadow: 0 0 12px var(--red);
    flex-shrink: 0;
}
.section-title i {
    color: var(--red);
    filter: drop-shadow(0 0 8px var(--red));
    font-size: 20px;
}

/* ==================== GRID / CARDS ==================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}
.card {
    background: linear-gradient(180deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-left: 3px solid var(--red);
    border-radius: var(--radius);
    padding: 22px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(220,20,60,0.15), transparent 70%);
    opacity: 0;
    transition: 0.3s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px var(--red-glow);
    border-color: rgba(220, 20, 60, 0.5);
}
.card:hover::before { opacity: 1; }
.card h3 {
    color: var(--red);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    font-weight: 800;
}
.card h3 i { margin-right: 8px; }

/* ==================== TABLE ==================== */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg2);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
th {
    background: linear-gradient(90deg, var(--red-dark), var(--red));
    color: #fff;
    padding: 14px 12px;
    text-align: left;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.2px;
    font-family: var(--font-head);
    font-weight: 700;
}
th i { margin-right: 6px; opacity: 0.9; }
td { padding: 14px 12px; border-bottom: 1px solid var(--border); }
tr { transition: 0.2s; }
tr:hover td { background: rgba(220, 20, 60, 0.08); color: #fff; }
tr:last-child td { border-bottom: none; }
.rank-1 td {
    background: linear-gradient(90deg, rgba(220,20,60,0.18), rgba(220,20,60,0.05));
    font-weight: 700;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    font-weight: 900;
    font-size: 12px;
    background: var(--bg3);
    color: #aaa;
    font-family: var(--font-head);
}
.rank-badge.gold   { background: linear-gradient(135deg, #ffb800, #ff8c00); color: #000; box-shadow: 0 0 12px #ffb800; }
.rank-badge.silver { background: linear-gradient(135deg, #c0c0c0, #808080); color: #000; box-shadow: 0 0 10px #c0c0c0; }
.rank-badge.bronze { background: linear-gradient(135deg, #cd7f32, #8b4513); color: #fff; box-shadow: 0 0 10px #cd7f32; }

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--red-dark), var(--red));
    color: #fff;
    font-weight: 700;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.25);
}
.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transition: left 0.6s;
}
.btn:hover::before { left: 100%; }
.btn:hover {
    box-shadow: 0 0 25px var(--red), 0 4px 20px rgba(220, 20, 60, 0.5);
    transform: translateY(-2px);
    color: #fff;
}
.btn i { font-size: 13px; }
.btn-outline {
    background: transparent;
    border: 2px solid var(--red);
    color: var(--red);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--red);
    color: #fff;
    box-shadow: 0 0 25px var(--red);
}
.btn-sm { padding: 8px 16px; font-size: 11px; }

/* ==================== FORMS ==================== */
.form-box {
    max-width: 440px;
    margin: 60px auto;
    padding: 40px;
    background: linear-gradient(180deg, var(--bg2), var(--bg3));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--red);
    box-shadow: 0 0 50px rgba(220, 20, 60, 0.15);
}
.form-box h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    font-size: 22px;
}
.form-box h2 i {
    color: var(--red);
    margin-right: 10px;
    filter: drop-shadow(0 0 8px var(--red));
}

input, textarea, select {
    width: 100%;
    padding: 13px 16px;
    margin-bottom: 15px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: 0.25s;
    font-family: var(--font-body);
    font-weight: 500;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.15), 0 0 15px rgba(220, 20, 60, 0.3);
    background: var(--bg2);
}
input::placeholder, textarea::placeholder { color: #555; }

label {
    display: block;
    color: #aaa;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
    margin-top: 12px;
    font-weight: 600;
    font-family: var(--font-head);
}
label i {
    color: var(--red);
    width: 18px;
    margin-right: 4px;
}

/* ==================== BADGES ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.5px;
    font-family: var(--font-head);
    box-shadow: 0 0 12px rgba(220,20,60,0.3);
}
.badge-soft {
    background: var(--bg3);
    color: #bbb;
    border: 1px solid var(--border);
    box-shadow: none;
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.alert i { font-size: 18px; }
.alert-error {
    background: rgba(220, 20, 60, 0.12);
    border: 1px solid var(--red);
    color: #ff8ba0;
}
.alert-success {
    background: rgba(40, 200, 80, 0.12);
    border: 1px solid var(--green);
    color: var(--green-light);
}

/* ==================== PROFILE ==================== */
.profile-card {
    background: var(--bg2);
    border-radius: var(--radius-lg);
    margin: 30px 0 25px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
.profile-banner {
    height: 190px;
    background: linear-gradient(120deg, #8B0000, #DC143C, #1a1a22);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}
.profile-banner:not([style*="background-image"]) {
    background-size: 200% 200%;
    animation: bannerMove 8s ease infinite;
}
.profile-banner[style*="background-image"] {
    animation: none !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.banner-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%),
        radial-gradient(circle at 30% 50%, rgba(255,255,255,0.06), transparent 60%);
    pointer-events: none;
}
@keyframes bannerMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.profile-info {
    display: flex;
    gap: 28px;
    padding: 0 32px 28px;
    margin-top: -75px;
    position: relative;
    align-items: flex-end;
    flex-wrap: wrap;
    z-index: 2;
}
.avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--bg2);
    background: #222;
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.6), 0 0 60px rgba(220, 20, 60, 0.2);
    object-fit: cover;
}
.avatar-online-dot {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    background: var(--green);
    border: 3px solid var(--bg2);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--green);
    animation: pulse 1.5s infinite;
}
.profile-meta {
    flex: 1;
    padding-bottom: 8px;
    min-width: 220px;
}
.profile-meta h1 {
    font-size: 34px;
    color: #fff;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-weight: 900;
}
.profile-meta .status {
    color: #bbb;
    font-size: 14px;
    font-style: italic;
    margin-top: 6px;
    font-weight: 500;
}
.profile-meta .status i {
    color: var(--red);
    margin-right: 6px;
    opacity: 0.6;
}

.badge-admin {
    background: linear-gradient(135deg, #ffb800, #ff8c00) !important;
    color: #000 !important;
    border: none !important;
    box-shadow: 0 0 18px rgba(255,184,0,0.5);
}
.badge-user {
    background: var(--bg3) !important;
    color: #ccc !important;
    border: 1px solid var(--border) !important;
    box-shadow: none;
}

.online-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(40, 200, 80, 0.15);
    color: var(--green-light);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: var(--font-head);
    border: 1px solid rgba(40, 200, 80, 0.3);
}
.online-dot i { font-size: 8px; }
.online-dot.offline {
    background: rgba(120, 120, 120, 0.15);
    color: #888;
    border-color: rgba(120,120,120,0.3);
}
.online-dot:not(.offline) i { animation: pulse 1.5s infinite; }

/* Кнопки действий в профиле */
.profile-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 25px 0 30px;
}
.profile-actions .btn {
    width: 100%;
    padding: 14px 16px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-actions .btn i {
    font-size: 13px;
    margin-right: 6px;
}
@media (max-width: 700px) {
    .profile-actions {
        grid-template-columns: 1fr;
    }
}

.btn-deposit {
    background: linear-gradient(90deg, var(--red-dark), var(--red)) !important;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4) !important;
}
.btn-deposit:hover {
    box-shadow: 0 0 25px var(--red) !important;
}
.btn-shop {
    background: transparent !important;
    border: 2px solid var(--red) !important;
    color: var(--red) !important;
    box-shadow: none !important;
}
.btn-shop:hover {
    background: var(--red) !important;
    color: #fff !important;
    box-shadow: 0 0 25px var(--red) !important;
}
.btn-gifts {
    background: transparent !important;
    border: 2px solid var(--gold) !important;
    color: var(--gold) !important;
    box-shadow: none !important;
}
.btn-gifts:hover {
    background: var(--gold) !important;
    color: #000 !important;
    box-shadow: 0 0 25px var(--gold) !important;
}

/* мини-карточки профиля */
.mini-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}
.mini-stat {
    background: linear-gradient(180deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}
.mini-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--red), transparent);
}
.mini-stat:hover {
    border-color: rgba(220,20,60,0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220,20,60,0.2);
}
.mini-stat .label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-family: var(--font-head);
    font-weight: 600;
}
.mini-stat .label i { color: var(--red); margin-right: 6px; }
.mini-stat .value {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    font-family: var(--font-head);
    transition: 0.3s;
}
.mini-stat .value.gold { color: var(--gold); }
.mini-stat .value.red  { color: var(--red); }
.mini-stat .value.green { color: var(--green-light); }
.mini-stat .value small { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.mini-stat:hover .value { transform: scale(1.08); }

/* статистика в ряд */
.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}
.stat {
    background: linear-gradient(180deg, var(--bg2), var(--bg3));
    padding: 22px 15px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
    border-bottom: 3px solid var(--red);
    transition: 0.3s;
    position: relative;
}
.stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(220,20,60,0.25);
}
.stat .value {
    font-size: 30px;
    font-weight: 900;
    color: var(--red);
    font-family: var(--font-head);
    transition: 0.3s;
    text-shadow: 0 0 20px rgba(220,20,60,0.4);
}
.stat .label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
    font-family: var(--font-head);
    font-weight: 600;
}
.stat .label i { color: var(--red); margin-right: 4px; }
.stat:hover .value { transform: scale(1.1); }

.profile-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 22px;
}
@media (max-width: 800px) {
    .profile-layout { grid-template-columns: 1fr; }
}

.side-menu {
    background: linear-gradient(180deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 100px;
}
.side-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    color: #bbb;
    font-size: 13px;
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: 0.2s;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-head);
    letter-spacing: 0.3px;
}
.side-menu a i {
    color: var(--red);
    width: 18px;
    text-align: center;
    transition: 0.2s;
}
.side-menu a:last-child { border-bottom: none; }
.side-menu a:hover,
.side-menu a.active {
    background: rgba(220, 20, 60, 0.08);
    color: #fff;
    border-left-color: var(--red);
}
.side-menu a:hover i { filter: drop-shadow(0 0 6px var(--red)); }

.profile-form { padding: 28px; }
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 5px 22px;
}
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
}

/* ==================== SERVERS ==================== */
.server-card {
    background: linear-gradient(135deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}
.server-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--red), transparent);
    opacity: 0;
    transition: 0.3s;
}
.server-card:hover::before { opacity: 1; }
.server-card:hover {
    border-color: rgba(220,20,60,0.5);
    box-shadow: 0 15px 35px rgba(220,20,60,0.2);
    transform: translateY(-3px);
}
.server-card .mode {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-head);
    box-shadow: 0 0 12px rgba(220,20,60,0.4);
}
.server-card .server-name {
    margin-top: 12px;
    font-weight: 800;
    color: #fff;
    font-size: 17px;
    font-family: var(--font-head);
    letter-spacing: 0.3px;
}
.server-card .server-ip-text {
    color: var(--muted);
    font-size: 13px;
    margin-top: 5px;
    font-family: 'Inter', monospace;
}
.server-card .server-ip-text i { color: var(--red); margin-right: 6px; }
.server-card .server-map {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}
.server-card .server-map i { color: var(--red); margin-right: 6px; }
.server-card .server-map .map-val { color: #bbb; }
.server-card .online {
    color: var(--green-light);
    font-weight: 900;
    font-size: 24px;
    text-align: right;
    font-family: var(--font-head);
    text-shadow: 0 0 15px rgba(40,200,80,0.5);
    line-height: 1;
}
.server-card .online span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    text-shadow: none;
}
.server-card .online-label {
    color: var(--muted);
    font-size: 11px;
    text-align: right;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-head);
    font-weight: 600;
}
.server-card .online-label i { color: var(--green); margin-right: 4px; }

.server-card.online-status::before {
    content: 'LIVE';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--green);
    color: #000;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
    box-shadow: 0 0 15px var(--green);
    animation: livePulse 1.5s ease-in-out infinite;
    font-family: var(--font-head);
    opacity: 1;
    width: auto;
    height: auto;
    left: auto;
    z-index: 5;
    line-height: 1.2;
}
.server-card.offline-status { opacity: 0.55; }
.server-card.offline-status::before {
    content: 'OFFLINE';
    position: absolute;
    top: 12px;
    right: 12px;
    background: #333;
    color: #888;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
    font-family: var(--font-head);
    box-shadow: none;
    animation: none;
    width: auto;
    height: auto;
    left: auto;
    z-index: 5;
    line-height: 1.2;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.75; transform: scale(1.05); }
}

/* ==================== EVENTS ==================== */
.event-list { padding: 0; }
.event-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    transition: 0.2s;
}
.event-item:hover { background: rgba(220,20,60,0.05); }
.event-item:last-child { border-bottom: none; }
.event-item .icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    color: #fff;
    box-shadow: 0 0 14px var(--red-glow);
}
.event-item .time {
    color: var(--muted);
    font-size: 11px;
    margin-left: auto;
    white-space: nowrap;
    font-family: var(--font-head);
    letter-spacing: 0.5px;
}

/* ==================== POLLS ==================== */
.poll-bar {
    background: var(--bg);
    border-radius: 10px;
    overflow: hidden;
    height: 28px;
    position: relative;
    margin-top: 12px;
    border: 1px solid var(--border);
}
.poll-bar-fill {
    background: linear-gradient(90deg, var(--red-dark), var(--red), #ff4d6d);
    background-size: 200% auto;
    animation: gradientMove 3s linear infinite;
    box-shadow: 0 0 15px rgba(220,20,60,0.4);
    height: 100%;
    transition: width 0.4s;
}
.poll-bar span {
    position: absolute;
    top: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-head);
    letter-spacing: 0.5px;
}
.poll-bar .yes { left: 12px; }
.poll-bar .no  { right: 12px; }

/* ==================== FOOTER ==================== */
footer {
    margin-top: 80px;
    padding: 35px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
    position: relative;
}
footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    opacity: 0.5;
}
footer span {
    background: linear-gradient(135deg, var(--red), #ff6b8a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-family: var(--font-head);
    letter-spacing: 1px;
}

.footer-main { margin-bottom: 8px; }
.footer-requisites {
    color: var(--muted);
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.footer-requisites i {
    color: var(--red);
    opacity: 0.8;
}
.footer-requisites strong {
    color: var(--gold);
    font-family: 'Inter', monospace;
    letter-spacing: 0.5px;
}
.footer-requisites a {
    color: var(--red);
    font-weight: 600;
}
.footer-requisites a:hover {
    color: var(--red-light);
    text-shadow: 0 0 8px var(--red);
}

/* ==================== UTILS ==================== */
.two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 22px;
    margin-top: 40px;
}
@media (max-width: 800px) {
    .two-col { grid-template-columns: 1fr; }
}
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* ==================== АНИМАЦИИ ==================== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(220, 20, 60, 0.4), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(220, 20, 60, 0.3), transparent),
        radial-gradient(1px 1px at 80% 20%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40% 90%, rgba(220, 20, 60, 0.35), transparent),
        radial-gradient(1px 1px at 10% 60%, rgba(255, 255, 255, 0.2), transparent);
    background-size: 800px 800px;
    pointer-events: none;
    z-index: -1;
    animation: particleFloat 60s linear infinite;
    opacity: 0.6;
}
@keyframes particleFloat {
    0%   { background-position: 0 0; }
    100% { background-position: 800px 800px; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.card, .server-card, .stat, .mini-stat, table {
    animation: fadeInUp 0.6s ease-out backwards;
}
.card:nth-child(1)     { animation-delay: 0.05s; }
.card:nth-child(2)     { animation-delay: 0.10s; }
.card:nth-child(3)     { animation-delay: 0.15s; }
.card:nth-child(4)     { animation-delay: 0.20s; }

@keyframes logoPulse {
    0%, 100% { text-shadow: 0 0 12px rgba(220,20,60,0.6), 0 0 25px rgba(220,20,60,0.3); }
    50%      { text-shadow: 0 0 20px var(--red), 0 0 45px rgba(220,20,60,0.6), 0 0 70px rgba(220,20,60,0.3); }
}
@keyframes gradientMove {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.fade-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}
.fade-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--red-dark), var(--red));
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ============================================================
   СТРАНИЦЫ: ДРУЗЬЯ / ПРИВИЛЕГИИ / ПОДАРКИ / ECD / МИССИИ
   ============================================================ */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0 25px;
    flex-wrap: wrap;
    gap: 15px;
}
.page-header h1 {
    font-size: 32px;
    color: #fff;
    font-weight: 900;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.page-header h1 i {
    color: var(--red);
    filter: drop-shadow(0 0 10px var(--red));
}
.page-header .subtitle {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin: 25px 0;
}
.shop-item {
    background: linear-gradient(180deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 25px 22px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}
.shop-item::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(220,20,60,0.18), transparent 70%);
    border-radius: 50%;
    transition: 0.4s;
}
.shop-item:hover {
    transform: translateY(-4px);
    border-color: rgba(220,20,60,0.5);
    box-shadow: 0 15px 35px rgba(220,20,60,0.25);
}
.shop-item:hover::before {
    transform: scale(1.2);
    background: radial-gradient(circle, rgba(220,20,60,0.3), transparent 70%);
}
.shop-item .item-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    box-shadow: 0 8px 20px rgba(220,20,60,0.35);
}
.shop-item h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
    font-family: var(--font-head);
    font-weight: 800;
}
.shop-item .item-desc {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
}
.shop-item .item-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 900;
    color: var(--gold);
    font-family: var(--font-head);
    margin-bottom: 15px;
}
.shop-item .item-price i { font-size: 18px; }
.shop-item .item-price small { font-size: 13px; color: var(--muted); font-weight: 500; }

.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
    margin: 20px 0;
}
.friend-card {
    background: linear-gradient(180deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: 0.3s;
    position: relative;
}
.friend-card:hover {
    border-color: rgba(220,20,60,0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220,20,60,0.15);
}
.friend-card img {
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 2px solid var(--red);
    background: #222;
    flex-shrink: 0;
}
.friend-card .info { flex: 1; min-width: 0; }
.friend-card .info .name {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.friend-card .info .status-small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}
.friend-card .actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.icon-btn {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: #bbb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    font-size: 13px;
}
.icon-btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    box-shadow: 0 0 12px var(--red);
}
.icon-btn.green:hover { background: var(--green); border-color: var(--green); box-shadow: 0 0 12px var(--green); }
.icon-btn.red:hover { background: #c62828; border-color: #c62828; box-shadow: 0 0 12px #c62828; }

.gift-card {
    background: linear-gradient(180deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    transition: 0.3s;
}
.gift-card:hover { border-color: rgba(220,20,60,0.4); }
.gift-card .gift-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(220,20,60,0.4);
}
.gift-card .gift-body { flex: 1; }
.gift-card .gift-body .name { color: #fff; font-weight: 700; font-size: 15px; }
.gift-card .gift-body .msg { color: var(--muted); font-size: 13px; margin-top: 3px; font-style: italic; }
.gift-card .gift-meta { text-align: right; color: var(--muted); font-size: 11px; }

.ecd-card {
    background: linear-gradient(180deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-left: 4px solid var(--red);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 15px;
    transition: 0.3s;
}
.ecd-card:hover { box-shadow: 0 10px 30px rgba(220,20,60,0.15); }
.ecd-card.approved { border-left-color: var(--green); }
.ecd-card.rejected { border-left-color: #c62828; }
.ecd-card .ecd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}
.ecd-card .ecd-header h3 { color: #fff; font-size: 16px; margin: 0; }
.ecd-card .ecd-body { color: #bbb; font-size: 13px; line-height: 1.6; }
.ecd-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-head);
}
.ecd-status.pending  { background: rgba(255,184,0,0.15); color: var(--gold); border: 1px solid var(--gold); }
.ecd-status.approved { background: rgba(40,200,80,0.15); color: var(--green-light); border: 1px solid var(--green); }
.ecd-status.rejected { background: rgba(198,40,40,0.15); color: #ff6b6b; border: 1px solid #c62828; }

.mission-card {
    background: linear-gradient(180deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    margin-bottom: 15px;
    display: flex;
    gap: 18px;
    align-items: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}
.mission-card:hover {
    border-color: rgba(220,20,60,0.4);
    transform: translateX(4px);
}
.mission-card.completed {
    border-color: rgba(40,200,80,0.5);
    background: linear-gradient(180deg, rgba(40,200,80,0.08), var(--bg3));
}
.mission-card .m-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(220,20,60,0.35);
}
.mission-card.completed .m-icon {
    background: linear-gradient(135deg, #1b5e20, var(--green));
    box-shadow: 0 0 20px rgba(40,200,80,0.5);
}
.mission-card .m-body { flex: 1; }
.mission-card .m-body h3 { color: #fff; font-size: 16px; margin-bottom: 5px; }
.mission-card .m-body p { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.mission-card .m-progress {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 6px;
}
.mission-card .m-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red-dark), var(--red));
    background-size: 200% auto;
    animation: gradientMove 3s linear infinite;
    transition: width 0.4s;
}
.mission-card.completed .m-progress-fill {
    background: linear-gradient(90deg, #1b5e20, var(--green));
    animation: none;
}
.mission-card .m-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
}
.mission-card .m-meta strong { color: #fff; }
.mission-card .m-reward {
    text-align: center;
    flex-shrink: 0;
    padding-left: 15px;
    border-left: 1px solid var(--border);
}
.mission-card .m-reward .coin {
    font-size: 22px;
    font-weight: 900;
    color: var(--gold);
    font-family: var(--font-head);
}
.mission-card .m-reward .lbl {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
}
@media (max-width: 600px) {
    .mission-card { flex-wrap: wrap; }
    .mission-card .m-reward { border-left: none; padding-left: 0; width: 100%; text-align: left; }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(180deg, var(--bg2), var(--bg3));
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    margin: 20px 0;
}
.empty-state i {
    font-size: 48px;
    color: var(--border);
    margin-bottom: 15px;
}
.empty-state h3 {
    color: #bbb;
    font-size: 18px;
    margin-bottom: 8px;
    font-family: var(--font-head);
}
.empty-state p { color: var(--muted); font-size: 13px; }

.search-box {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}
.search-box input {
    margin: 0;
    background: var(--bg2);
}
.search-box input:focus { background: var(--bg3); }

.tabs {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--border);
    margin: 20px 0;
    overflow-x: auto;
}
.tabs a {
    padding: 12px 20px;
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-head);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.tabs a.active, .tabs a:hover {
    color: #fff;
    border-bottom-color: var(--red);
}
.tabs a.active i { color: var(--red); filter: drop-shadow(0 0 6px var(--red)); }

.modal-bg {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-bg.active { display: flex; }
.modal {
    background: linear-gradient(180deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-top: 3px solid var(--red);
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 100%;
    padding: 30px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    animation: fadeInUp 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}
.modal h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
    font-family: var(--font-head);
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal h3 i { color: var(--red); }
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.modal-actions .btn { flex: 1; }

.warning-box {
    background: rgba(255,184,0,0.1);
    border: 1px solid rgba(255,184,0,0.4);
    color: var(--gold);
    padding: 14px 18px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 15px;
}

/* ============================================================
   УВЕДОМЛЕНИЕ VIP
   ============================================================ */
.vip-notify-wrap {
    padding: 0;
    margin: 25px 0 10px;
    animation: fadeInUp 0.6s ease-out;
}
.vip-notify {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 22px;
    background: linear-gradient(90deg,
        rgba(255, 184, 0, 0.10) 0%,
        rgba(255, 184, 0, 0.02) 60%,
        transparent 100%);
    border: 1px solid rgba(255, 184, 0, 0.35);
    border-left: 4px solid var(--vip-color, #ffb800);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 30px -10px rgba(255, 184, 0, 0.4),
        inset 0 0 20px rgba(255, 184, 0, 0.03);
}
.vip-notify::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,184,0,0.15), transparent 65%);
    pointer-events: none;
    animation: vipShine 6s ease-in-out infinite;
}
@keyframes vipShine {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.15); }
}
.vip-notify-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--vip-color, #ffb800), rgba(255, 140, 0, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #000;
    flex-shrink: 0;
    box-shadow:
        0 8px 20px -5px rgba(255, 184, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: vipIconPulse 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}
@keyframes vipIconPulse {
    0%, 100% { box-shadow: 0 8px 20px -5px rgba(255,184,0,0.6), 0 0 0 1px rgba(255,255,255,0.1) inset; }
    50%      { box-shadow: 0 8px 30px -5px rgba(255,184,0,0.9), 0 0 0 1px rgba(255,255,255,0.2) inset; }
}
.vip-notify-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.vip-notify-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-family: var(--font-head);
}
.vip-notify-title strong {
    font-size: 17px;
    color: #ffd76e;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 0 12px rgba(255,184,0,0.5);
}
.vip-notify-status {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--vip-color, #ffb800);
    background: rgba(255, 184, 0, 0.12);
    border: 1px solid rgba(255, 184, 0, 0.35);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 700;
}
.vip-notify-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
    font-size: 13px;
    color: #bbb;
}
.vip-notify-info i { color: var(--vip-color, #ffb800); font-size: 13px; }
.vip-notify-info strong { color: #fff; }
.vip-notify-days {
    color: var(--muted);
    padding-left: 6px;
    border-left: 1px solid var(--border);
}
.vip-notify-days strong { color: var(--vip-color, #ffb800); }
.vip-notify-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    background: linear-gradient(90deg, #b37d00, #ffb800);
    color: #000;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.25s;
    box-shadow: 0 4px 15px -3px rgba(255, 184, 0, 0.5);
    font-family: var(--font-head);
    position: relative;
    z-index: 1;
}
.vip-notify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 184, 0, 0.7);
    color: #000;
}
.vip-notify-btn-ghost {
    background: transparent;
    color: var(--vip-color, #ffb800);
    border: 1px solid rgba(255, 184, 0, 0.5);
    box-shadow: none;
}
.vip-notify-btn-ghost:hover {
    background: rgba(255, 184, 0, 0.1);
    color: var(--vip-color, #ffb800);
    box-shadow: 0 0 20px rgba(255, 184, 0, 0.3);
}
.vip-notify-urgent {
    background: linear-gradient(90deg, rgba(220, 20, 60, 0.12), transparent);
    border-color: rgba(220, 20, 60, 0.5);
    border-left-color: var(--red);
    box-shadow: 0 0 30px -10px rgba(220, 20, 60, 0.5);
}
.vip-notify-urgent .vip-notify-icon {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    box-shadow: 0 8px 20px -5px rgba(220, 20, 60, 0.7);
    animation: none;
}
.vip-notify-urgent .vip-notify-title strong { color: #ff6b8a; }
.vip-notify-urgent .vip-notify-status {
    color: var(--red);
    background: rgba(220, 20, 60, 0.15);
    border-color: rgba(220, 20, 60, 0.4);
}
.vip-notify-urgent .vip-notify-info i { color: var(--red); }
.vip-notify-urgent .vip-notify-days strong { color: var(--red); }
.vip-notify-urgent .vip-notify-btn {
    background: linear-gradient(90deg, var(--red-dark), var(--red));
    color: #fff;
    box-shadow: 0 4px 15px -3px rgba(220, 20, 60, 0.6);
}
.vip-notify-urgent .vip-notify-btn:hover {
    box-shadow: 0 0 25px rgba(220, 20, 60, 0.8);
}
@media (max-width: 700px) {
    .vip-notify {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 18px;
    }
    .vip-notify-icon { width: 44px; height: 44px; font-size: 20px; }
    .vip-notify-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   ЗНАЧОК VIP
   ============================================================ */
.badge-vip {
    background: linear-gradient(135deg, #ffb800, #ff8c00) !important;
    color: #000 !important;
    border: none !important;
    box-shadow: 0 0 18px rgba(255,184,0,0.6);
    animation: vipGlow 2s ease-in-out infinite;
    font-weight: 800;
}
.badge-vip i { color: #000; margin-right: 4px; }
@keyframes vipGlow {
    0%, 100% { box-shadow: 0 0 18px rgba(255,184,0,0.6); }
    50%      { box-shadow: 0 0 28px rgba(255,184,0,0.9), 0 0 40px rgba(255,184,0,0.4); }
}

/* ============================================================
   СТРАНИЦА ПОПОЛНЕНИЯ БАЛАНСА
   ============================================================ */
.deposit-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    margin: 30px 0;
}
@media (max-width: 900px) {
    .deposit-layout { grid-template-columns: 1fr; }
}
.deposit-main { min-width: 0; }
.deposit-side { display: flex; flex-direction: column; gap: 16px; }

.deposit-amount-card {
    background: linear-gradient(180deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.deposit-amount-card::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(220,20,60,0.15), transparent 70%);
    pointer-events: none;
}
.deposit-amount-label {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: var(--font-head);
    font-weight: 600;
    margin-bottom: 14px;
}
.deposit-amount-label i { color: var(--red); margin-right: 6px; }
.deposit-amount-input {
    position: relative;
    margin-bottom: 22px;
}
.deposit-amount-input input {
    font-size: 42px;
    font-weight: 900;
    text-align: center;
    padding: 20px 60px 20px 20px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-head);
    letter-spacing: 1px;
    transition: 0.25s;
    margin: 0;
}
.deposit-amount-input input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.15), 0 0 25px rgba(220, 20, 60, 0.3);
    background: var(--bg2);
}
.deposit-amount-input input::-webkit-outer-spin-button,
.deposit-amount-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.deposit-amount-cur {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    font-weight: 900;
    color: var(--gold);
    font-family: var(--font-head);
    pointer-events: none;
}
.deposit-quick-btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.deposit-quick-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    color: #bbb;
    padding: 12px 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-head);
    cursor: pointer;
    transition: 0.25s;
    letter-spacing: 0.3px;
}
.deposit-quick-btn:hover {
    border-color: rgba(220, 20, 60, 0.5);
    color: #fff;
    background: var(--bg2);
}
.deposit-quick-btn.active {
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    border-color: var(--red);
    color: #fff;
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.4);
}
.pay-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}
.pay-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(180deg, var(--bg2), var(--bg3));
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: 0.25s;
    position: relative;
    overflow: hidden;
}
.pay-method input[type="radio"] { display: none; }
.pay-method:hover {
    border-color: rgba(220, 20, 60, 0.4);
    transform: translateY(-2px);
}
.pay-method.active {
    border-color: var(--red);
    background: linear-gradient(180deg, rgba(220,20,60,0.08), var(--bg3));
    box-shadow: 0 0 25px -10px var(--red);
}
/* Логотип платёжки вместо иконки */
.pay-method-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;         /* ← БЕЛАЯ ПОДЛОЖКА */
    border: 1px solid var(--border);
    flex-shrink: 0;
    padding: 8px;
    overflow: hidden;
}

.pay-method-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.pay-method.active .pay-method-logo {
    border-color: var(--red);
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.4);
}
.pay-method-info { flex: 1; min-width: 0; }
.pay-method-name {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    font-family: var(--font-head);
    margin-bottom: 3px;
}
.pay-method-desc { color: var(--muted); font-size: 12px; }
.pay-method-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    flex-shrink: 0;
    transition: 0.25s;
    position: relative;
}
.pay-method.active .pay-method-check {
    background: var(--red);
    border-color: var(--red);
    box-shadow: 0 0 15px var(--red);
}

/* Внутри круга — пусто, галочки нет */
.pay-method-check i {
    display: none;
}
.pay-btn {
    width: 100%;
    padding: 18px;
    font-size: 15px;
    letter-spacing: 2px;
}
.deposit-info-card {
    background: linear-gradient(180deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.deposit-info-card.deposit-help { border-left: 3px solid var(--red); }
.deposit-info-header {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.deposit-info-header i { color: var(--red); filter: drop-shadow(0 0 6px var(--red)); }
.deposit-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.deposit-info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bbb;
    font-size: 13px;
}
.deposit-info-list li i {
    color: var(--green);
    font-size: 12px;
    width: 16px;
    text-align: center;
}
.deposit-info-list li strong { color: #fff; }
.deposit-requisites {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.req-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}
.req-row:last-child { border-bottom: none; }
.req-label { color: var(--muted); }
.req-value { color: #fff; font-weight: 600; }
.req-value.mono {
    font-family: 'Inter', monospace;
    color: var(--gold);
    letter-spacing: 0.5px;
}

/* ============================================================
   ПРЕМИУМ-ОФОРМЛЕНИЕ
   ============================================================ */
.custom-design-card {
    margin-bottom: 25px;
    border-left-color: #9c27b0 !important;
}
.custom-design-card h3 { color: #b47ce0 !important; }

.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
@media (max-width: 700px) {
    .upload-grid { grid-template-columns: 1fr; }
}
.upload-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    transition: 0.25s;
}
.upload-box:hover {
    border-color: #9c27b0;
    box-shadow: 0 0 20px rgba(156, 39, 176, 0.2);
}
.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 10px;
    cursor: pointer;
    border: 2px dashed var(--border);
    border-radius: 8px;
    transition: 0.25s;
    text-align: center;
    margin: 0;
}
.upload-label:hover {
    border-color: #9c27b0;
    background: rgba(156, 39, 176, 0.05);
}
.upload-label i {
    font-size: 32px;
    color: #b47ce0;
    filter: drop-shadow(0 0 8px rgba(156, 39, 176, 0.5));
}
.upload-title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-head);
}
.upload-hint { color: var(--muted); font-size: 11px; }
.upload-label input[type="file"] { display: none; }
.upload-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background: linear-gradient(90deg, #7b1fa2, #9c27b0);
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.25s;
}
.upload-label:hover .upload-btn {
    box-shadow: 0 0 18px rgba(156, 39, 176, 0.5);
}
/* ============================================================
   ЛОГОТИП С КАРТИНКОЙ
   ============================================================ */
.logo-img {
    width: 40px;
    height: 40px;
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 0 12px rgba(220, 20, 60, 0.7));
    transition: 0.3s;
}
.logo:hover .logo-img {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 0 20px rgba(220, 20, 60, 1));
}
@media (max-width: 900px) {
    .logo-img { width: 34px; height: 34px; }
}
/* ============================================================
   БЛОК ЗАДАНИЙ НА ГЛАВНОЙ
   ============================================================ */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.task-card {
    background: linear-gradient(180deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-left: 4px solid var(--red);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}
.task-card::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(220,20,60,0.15), transparent 70%);
    pointer-events: none;
    transition: 0.4s;
}
.task-card:hover {
    transform: translateY(-4px);
    border-color: rgba(220, 20, 60, 0.5);
    box-shadow: 0 15px 35px rgba(220, 20, 60, 0.25);
}
.task-card:hover::before {
    transform: scale(1.3);
    background: radial-gradient(circle, rgba(220,20,60,0.3), transparent 70%);
}

.task-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(220, 20, 60, 0.4);
    position: relative;
    z-index: 1;
}

.task-body {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.task-body h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.task-body p {
    color: #bbb;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
}

.task-reward {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(255,184,0,0.15), rgba(255,140,0,0.08));
    border: 1px solid rgba(255,184,0,0.4);
    border-radius: 20px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    font-family: var(--font-head);
    letter-spacing: 0.5px;
}
.task-reward i {
    color: var(--gold);
    filter: drop-shadow(0 0 6px rgba(255,184,0,0.6));
}

@media (max-width: 600px) {
    .task-card { padding: 18px; gap: 14px; }
    .task-icon { width: 44px; height: 44px; font-size: 18px; }
}
/* ============================================================
   БЫСТРЫЕ ССЫЛКИ НА ГЛАВНОЙ
   ============================================================ */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(180deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}
.quick-link::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--red), transparent);
    opacity: 0;
    transition: 0.3s;
}
.quick-link:hover {
    transform: translateY(-3px);
    border-color: rgba(220, 20, 60, 0.5);
    box-shadow: 0 12px 30px rgba(220, 20, 60, 0.2);
}
.quick-link:hover::before { opacity: 1; }

.ql-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.ql-body {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.ql-body h3 {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.ql-body p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.ql-arrow {
    color: var(--muted);
    font-size: 14px;
    transition: 0.25s;
    flex-shrink: 0;
}
.quick-link:hover .ql-arrow {
    color: var(--red);
    transform: translateX(4px);
    filter: drop-shadow(0 0 8px var(--red));
}

@media (max-width: 600px) {
    .quick-links { grid-template-columns: 1fr; }
    .quick-link { padding: 14px 16px; }
    .ql-icon { width: 42px; height: 42px; font-size: 18px; }
}
/* ============================================================
   🎬 АНИМАЦИИ И МИКРОЭФФЕКТЫ
   ============================================================ */

/* 1. Плавное появление всей страницы */
body {
    animation: bodyFadeIn 0.5s ease-out;
}
@keyframes bodyFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* 2. Прогресс-бар загрузки сверху (как YouTube) */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), #ff4d6d, var(--red));
    background-size: 200% auto;
    animation: loaderFlow 1s linear infinite;
    z-index: 9999;
    width: 0;
    transition: width 0.3s ease;
    box-shadow: 0 0 15px var(--red), 0 0 25px var(--red);
}
.page-loader.active {
    width: 80%;
}
.page-loader.done {
    width: 100%;
    opacity: 0;
    transition: width 0.3s, opacity 0.4s 0.2s;
}
@keyframes loaderFlow {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* 3. Плавное появление при скролле */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fade-in-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* 4. Hover-эффект на карточках — подъём + свечение */
.card,
.server-card,
.mini-stat,
.stat,
.task-card,
.shop-item,
.quick-link,
.friend-card,
.gift-card,
.mission-card,
.member-card {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
}
.card:hover,
.task-card:hover,
.shop-item:hover,
.quick-link:hover,
.friend-card:hover {
    transform: translateY(-6px) scale(1.015);
}

/* 5. Пульсация иконок при hover */
.task-icon,
.ql-icon,
.m-icon,
.shop-item .item-icon,
.gift-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.task-card:hover .task-icon,
.quick-link:hover .ql-icon,
.mission-card:hover .m-icon,
.shop-item:hover .item-icon {
    transform: scale(1.15) rotate(-8deg);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.6);
}

/* 6. Стрелка двигается при hover */
.ql-arrow,
.vip-notify-btn i,
.btn i {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.quick-link:hover .ql-arrow { transform: translateX(6px); }
.btn:hover i { transform: scale(1.2); }

/* 7. Пульсация счётчиков/цифр */
@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}
.mini-stat .value,
.stat .value {
    display: inline-block;
    transition: transform 0.3s ease, text-shadow 0.3s;
}
.mini-stat:hover .value,
.stat:hover .value {
    transform: scale(1.12);
    animation: countPulse 0.8s ease-in-out infinite;
    text-shadow: 0 0 20px currentColor;
}

/* 8. Мерцание online-статуса */
@keyframes glowPulse {
    0%, 100% { 
        box-shadow: 0 0 8px currentColor,
                    0 0 16px currentColor;
    }
    50%      { 
        box-shadow: 0 0 15px currentColor,
                    0 0 30px currentColor,
                    0 0 45px currentColor;
    }
}
.online-dot:not(.offline) {
    animation: glowPulse 2s ease-in-out infinite;
}
.server-pulse {
    animation: glowPulse 1.5s ease-in-out infinite, serverPulseDot 1.5s ease-in-out infinite;
}

/* 9. Танцующие буквы логотипа */
.logo-text b {
    display: inline-block;
    animation: letterDance 2.5s ease-in-out infinite;
}
@keyframes letterDance {
    0%, 100% { transform: translateY(0) rotate(0); }
    25%      { transform: translateY(-2px) rotate(-1deg); }
    50%      { transform: translateY(0) rotate(0); }
    75%      { transform: translateY(2px) rotate(1deg); }
}

/* 10. Рябь на кнопках */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(255,255,255,0.4), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.btn:active::after { opacity: 0.6; transition: none; }

/* 11. Плавное появление модальных окон */
.modal {
    animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* 12. Волны на hero-секции */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.15), transparent 60%);
    transform: translate(-50%, -50%);
    animation: heroPulse 4s ease-out infinite;
    pointer-events: none;
}
@keyframes heroPulse {
    0%   { width: 0; height: 0; opacity: 1; }
    100% { width: 800px; height: 800px; opacity: 0; }
}

/* 13. Подсветка строк таблицы */
tbody tr {
    transition: background 0.3s, transform 0.3s;
}
tbody tr:hover {
    transform: scale(1.005);
}
.rank-1 td {
    position: relative;
    overflow: hidden;
}
.rank-1 td::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.15), transparent);
    animation: goldShine 3s ease-in-out infinite;
}
@keyframes goldShine {
    0%   { left: -100%; }
    50%  { left: 100%; }
    100% { left: 100%; }
}

/* 14. Появление уведомлений */
.alert {
    animation: alertSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes alertSlide {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 15. Пульсация значков VIP */
.badge-vip {
    animation: vipGlow 2s ease-in-out infinite, vipShine 4s ease-in-out infinite;
}
@keyframes vipShine {
    0%, 100% { 
        background: linear-gradient(135deg, #ffb800, #ff8c00);
    }
    50%      { 
        background: linear-gradient(135deg, #ff8c00, #ffb800);
    }
}

/* 16. Плавная прокрутка (уже есть html scroll-behavior) */

/* 17. Анимация на банере профиля */
.profile-banner {
    position: relative;
    overflow: hidden;
}
.profile-banner:not([style*="background-image"])::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.08) 50%, 
        transparent 100%);
    background-size: 200% auto;
    animation: bannerScan 6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes bannerScan {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* 18. Плавное переключение табов */
.tabs a {
    position: relative;
    overflow: hidden;
}
.tabs a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background: var(--red);
    transition: transform 0.3s;
    box-shadow: 0 0 10px var(--red);
}
.tabs a:hover::before,
.tabs a.active::before {
    transform: translateX(-50%) scaleX(1);
}

/* 19. Shake при ошибке */
.alert-error {
    animation: alertShake 0.5s ease-out;
}
@keyframes alertShake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-8px); }
    40%      { transform: translateX(8px); }
    60%      { transform: translateX(-5px); }
    80%      { transform: translateX(5px); }
}

/* 20. Bounce для галочки в success */
.alert-success i {
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes bounceIn {
    0%   { transform: scale(0); opacity: 0; }
    50%  { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Уважаем пользователей, которые отключили анимации */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* ============================================================
   ЮРИДИЧЕСКИЕ СТРАНИЦЫ
   ============================================================ */
.legal-doc {
    padding: 40px 45px;
    line-height: 1.7;
    font-size: 14px;
    color: #ccc;
}
.legal-doc h2 {
    color: #fff;
    font-size: 22px;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--red);
}
.legal-doc h3 {
    color: var(--red);
    font-size: 16px;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 30px 0 15px;
}
.legal-doc p {
    margin-bottom: 12px;
}
.legal-doc ul {
    margin: 12px 0 12px 25px;
    padding-left: 15px;
}
.legal-doc ul li {
    margin-bottom: 8px;
    color: #bbb;
}
.legal-doc ul li::marker {
    color: var(--red);
}
.legal-doc strong {
    color: #fff;
}
@media (max-width: 700px) {
    .legal-doc { padding: 25px 20px; font-size: 13px; }
    .legal-doc h2 { font-size: 18px; }
}
.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--muted);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}
.footer-links a i { color: var(--red); opacity: 0.8; }
.footer-links a:hover {
    color: var(--red);
}
.footer-links a:hover i {
    filter: drop-shadow(0 0 6px var(--red));
}
/* ============================================================
   ЦВЕТНЫЕ НИКИ ПО СТАТУСУ
   ============================================================ */

/* Обычный ник — белый */
.nick {
    color: #fff;
    transition: all 0.3s;
    display: inline-block;
}

/* Админ — красный градиент */
.nick-admin {
    background: linear-gradient(90deg,
        #ff4d6d 0%,
        #DC143C 50%,
        #8B0000 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 4s linear infinite;
    filter: drop-shadow(0 0 12px rgba(220, 20, 60, 0.7));
    font-weight: 900;
}
.nick-admin:hover {
    filter: drop-shadow(0 0 20px rgba(220, 20, 60, 1));
}

/* VIP — золотой градиент */
.nick-vip {
    background: linear-gradient(90deg,
        #ffb800 0%,
        #ffd76e 50%,
        #ff8c00 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 4s linear infinite;
    filter: drop-shadow(0 0 12px rgba(255, 184, 0, 0.7));
    font-weight: 900;
}
.nick-vip:hover {
    filter: drop-shadow(0 0 20px rgba(255, 184, 0, 1));
}
/* ============================================================
   СТРАНИЦА ИГРОКОВ
   ============================================================ */

.players-toolbar {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.players-search {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 500px;
}
.players-search input {
    margin: 0;
    background: var(--bg2);
}
.players-search input:focus { background: var(--bg3); }

.players-sort {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.sort-label {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 6px;
    font-family: var(--font-head);
    font-weight: 600;
}
.sort-btn {
    padding: 7px 14px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: #bbb;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-head);
    transition: 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.sort-btn i { font-size: 11px; }
.sort-btn:hover {
    border-color: rgba(220, 20, 60, 0.5);
    color: #fff;
    background: var(--bg3);
}
.sort-btn.active {
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    border-color: var(--red);
    color: #fff;
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.4);
}

/* Сетка игроков */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.player-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(180deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: 0.25s;
    position: relative;
    overflow: hidden;
}
.player-card:hover {
    transform: translateY(-2px);
    border-color: rgba(220, 20, 60, 0.5);
    box-shadow: 0 8px 20px rgba(220, 20, 60, 0.15);
}

.player-card-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.player-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.player-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--red);
    background: #222;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.25);
    transition: 0.25s;
}
.player-card:hover .player-avatar {
    transform: scale(1.06);
    box-shadow: 0 0 16px rgba(220, 20, 60, 0.5);
}
.player-online {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 11px;
    height: 11px;
    background: var(--green);
    border: 2px solid var(--bg2);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--green);
    animation: pulse 1.5s infinite;
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-nick-row .nick {
    font-size: 14px;
    font-weight: 800;
    font-family: var(--font-head);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    flex-shrink: 1;
    min-width: 0;
}

.player-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    font-size: 10px;
    flex-shrink: 0;
    z-index: 4;
}
.player-badge.badge-admin {
    background: linear-gradient(135deg, #ffb800, #ff8c00);
    color: #000;
    box-shadow: 0 0 8px rgba(255,184,0,0.6);
}
.player-badge.badge-vip {
    background: linear-gradient(135deg, #ffb800, #ff8c00);
    color: #000;
    box-shadow: 0 0 8px rgba(255,184,0,0.6);
}

.player-status {
    color: var(--muted);
    font-size: 11px;
    font-style: italic;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-stats {
    display: flex;
    gap: 10px;
}
.player-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.ps-val {
    color: #fff;
    font-weight: 800;
    font-family: var(--font-head);
    font-size: 12px;
    line-height: 1.1;
}
.ps-lbl {
    color: var(--muted);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1.1;
}

.player-chat-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    width: 28px;
    height: 28px;
    font-size: 11px;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 40px 0;
    flex-wrap: wrap;
}
.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--bg2);
    border: 1px solid var(--border);
    color: #bbb;
    font-weight: 700;
    font-family: var(--font-head);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s;
}
.page-btn:hover {
    border-color: rgba(220, 20, 60, 0.5);
    color: #fff;
    background: var(--bg3);
}
.page-btn.active {
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    border-color: var(--red);
    color: #fff;
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.5);
}

/* Адаптив */
@media (max-width: 700px) {
    .players-toolbar { flex-direction: column; align-items: stretch; }
    .players-search { max-width: none; }
    .players-grid { grid-template-columns: 1fr; }
}
.payment-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.pay-logo {
    padding: 7px 14px;
    background: #1c1c24;
    border: 1px solid #2a2a35;
    border-radius: 8px;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.25s;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.8), 0 0 8px rgba(220, 20, 60, 0.5);
}
.pay-logo:hover {
    border-color: rgba(220, 20, 60, 0.5);
    color: #fff;
    background: var(--bg2);
}
.pay-logo i {
    font-size: 16px;
    color: var(--red);
    transition: 0.25s;
}
.pay-logo:hover i {
    filter: drop-shadow(0 0 6px var(--red));
}
/* ============================================================
   МИНИ-ЧАТ
   ============================================================ */
.chat-container {
    background: linear-gradient(180deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin: 25px 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 600px;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: linear-gradient(90deg, var(--red-dark), var(--red));
    color: #fff;
    border-bottom: 2px solid var(--red);
}
.chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;
}
.chat-title i { font-size: 18px; }
.chat-online {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
}
.chat-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6bff9a;
    box-shadow: 0 0 8px #6bff9a;
    animation: pulse 1.5s infinite;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 300px;
    max-height: 460px;
}

.chat-loading {
    text-align: center;
    color: var(--muted);
    padding: 20px;
}

.chat-message {
    display: flex;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg);
    border-radius: 10px;
    border-left: 3px solid var(--border);
    animation: chatMessageIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.chat-message.admin {
    border-left-color: var(--red);
    background: rgba(220, 20, 60, 0.05);
}
.chat-message.vip {
    border-left-color: var(--gold);
    background: rgba(255, 184, 0, 0.05);
}
.chat-message-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
    font-family: var(--font-head);
}
.chat-message-nick {
    font-weight: 800;
    font-size: 13px;
}
.chat-message-nick.nick-admin {
    background: linear-gradient(90deg, #ff4d6d, #DC143C, #8B0000);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 4s linear infinite;
}
.chat-message-nick.nick-vip {
    background: linear-gradient(90deg, #ffb800, #ffd76e, #ff8c00);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 4s linear infinite;
}
.chat-message-badge {
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
}
.chat-message-badge.admin {
    background: linear-gradient(135deg, #ffb800, #ff8c00);
    color: #000;
}
.chat-message-badge.vip {
    background: linear-gradient(135deg, #ffb800, #ff8c00);
    color: #000;
}
.chat-message-time {
    color: var(--muted);
    font-size: 10px;
    margin-left: auto;
    flex-shrink: 0;
}
.chat-message-text {
    color: #ddd;
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
}

@keyframes chatMessageIn {
    from { opacity: 0; transform: translateY(15px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-form {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--border);
    background: var(--bg2);
}
.chat-form input {
    flex: 1;
    margin: 0;
    border: none;
    border-radius: 0;
    background: var(--bg2);
    padding: 16px 20px;
    font-size: 14px;
}
.chat-form input:focus {
    background: var(--bg3);
    box-shadow: none;
    border: none;
}
.chat-send {
    width: 60px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: 0.25s;
}
.chat-send:hover {
    background: linear-gradient(135deg, #ff4d6d, var(--red));
    box-shadow: 0 0 20px var(--red);
}
.chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-login-notice {
    padding: 16px 20px;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}
.chat-login-notice i { color: var(--red); margin-right: 6px; }
.chat-login-notice a { color: var(--red); font-weight: 700; }

@media (max-width: 600px) {
    .chat-messages { max-height: 400px; }
    .chat-message-time { display: none; }
}
/* Фикс размытия футера */
footer,
footer * {
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    animation: none !important;
}

body {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
}
/* ============================================================
   КУРСОР-КЛЯКСА — полностью скрываем системный курсор
   ============================================================ */

/* Скрываем курсор ВЕЗДЕ, где он может быть */

/* Все интерактивные элементы */
a,
button,
input,
textarea,
select,
label,
[role="button"],
[onclick],
[type="submit"],
[type="button"] {
cursor: pointer !important;
}

/* Отключаем выделение текста по умолчанию (можно опционально) */
/* body { user-select: none; } */

#cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99999;
}
/* Задания */
.subtitle {
    color: #8a95b8;
    margin-bottom: 25px;
    font-size: 14px;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 20px;
    transition: all 0.3s;
}

.task-card:hover {
    border-color: rgba(124,77,255,0.5);
    box-shadow: 0 10px 30px rgba(124,77,255,0.2);
}

.task-card.task-completed {
    border-color: rgba(76,175,80,0.4);
}

.task-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, #4a6cf7, #7c4dff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.task-icon.completed {
    background: linear-gradient(135deg, #4caf50, #00e676);
}

.task-info { flex: 1; }

.task-info h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 5px;
}

.task-info p {
    color: #8a95b8;
    font-size: 13px;
    margin-bottom: 10px;
}

.task-progress { margin-top: 10px; }

.progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a6cf7, #00e5ff);
    border-radius: 3px;
    transition: width 0.5s;
}

.progress-text {
    color: #8a95b8;
    font-size: 12px;
}

.task-reward {
    text-align: right;
    flex-shrink: 0;
}

.reward-value {
    color: #ffcc00;
    font-size: 22px;
    font-weight: bold;
}

.reward-unit {
    font-size: 14px;
    color: #8a95b8;
}

.reward-done {
    color: #4caf50;
    font-size: 12px;
    margin-top: 5px;
    font-weight: bold;
}
/* ============================================================
   ЛИЧНЫЙ КАБИНЕТ В ШАПКЕ — выпадающее меню
   ============================================================ */

.user-menu-wrap {
    position: relative;
}

/* Кнопка-аватар */
.user-menu-toggle {
    background: transparent;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.25s;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
}
.user-menu-toggle:hover {
    border-color: var(--red);
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.5);
}
.user-menu-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(220, 20, 60, 0.4);
}
.user-menu-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: var(--red);
    border-radius: 50%;
    border: 2px solid var(--bg);
    box-shadow: 0 0 8px var(--red);
    animation: pulse 1.5s infinite;
}

/* Выпадающее меню */
.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 300px;
    background: linear-gradient(180deg, #1a1a22, #131318);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.7),
        0 0 30px -10px rgba(220, 20, 60, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.3s;
    z-index: 1000;
    overflow: hidden;
}
.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Шапка меню */
.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(220, 20, 60, 0.05), transparent);
    position: relative;
}
.user-dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--red);
    object-fit: cover;
    flex-shrink: 0;
}
.user-dropdown-info { flex: 1; min-width: 0; }
.user-dropdown-name {
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    font-family: var(--font-head);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-dropdown-role {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}
.user-dropdown-arrow {
    color: var(--muted);
    font-size: 14px;
    transition: 0.2s;
}
.user-dropdown-arrow:hover {
    color: var(--red);
    transform: translateX(3px);
}

/* Блок баланса */
.user-dropdown-balance {
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.08), rgba(220, 20, 60, 0.05));
    border-bottom: 1px solid var(--border);
    position: relative;
}
.balance-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    font-family: var(--font-head);
    margin-bottom: 4px;
}
.balance-label i { color: var(--gold); margin-right: 4px; }
.balance-value {
    color: var(--gold);
    font-size: 22px;
    font-weight: 900;
    font-family: var(--font-head);
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(255, 184, 0, 0.4);
}
.balance-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff !important;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: 0.25s;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4);
}
.balance-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.7);
    color: #fff !important;
}

/* Ссылки меню */
.user-dropdown-links {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.user-dropdown-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    color: #bbb;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    position: relative;
}
.user-dropdown-links a i {
    width: 18px;
    text-align: center;
    color: var(--red);
    font-size: 14px;
    transition: 0.2s;
}
.user-dropdown-links a:hover {
    background: rgba(220, 20, 60, 0.08);
    color: #fff;
    padding-left: 22px;
}
.user-dropdown-links a:hover i {
    filter: drop-shadow(0 0 6px var(--red));
}

.dropdown-badge {
    margin-left: auto;
    background: var(--red);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 900;
    font-family: var(--font-head);
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.6);
}

/* Выход */
.user-dropdown-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: #ff6b8a;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}
.user-dropdown-logout i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}
.user-dropdown-logout:hover {
    background: rgba(220, 20, 60, 0.1);
    color: #ff8ba0;
}

/* Адаптив */
@media (max-width: 700px) {
    .user-dropdown {
        width: 280px;
        right: -10px;
    }
}
/* ============================================================
   ФИКС ИКОНКИ ЛОГОТИПА — возвращаем щит
   ============================================================ */

.logo-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #DC143C, #8B0000) !important;
    box-shadow:
        0 0 20px rgba(220, 20, 60, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
    color: #fff !important;
    font-size: 20px !important;
    flex-shrink: 0 !important;
    transition: 0.3s !important;
    animation: logoIconPulse 3s ease-in-out infinite !important;
}

.logo-icon i {
    color: #fff !important;
    font-size: 20px !important;
    line-height: 1 !important;
    display: inline-block !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
}

.logo:hover .logo-icon {
    transform: scale(1.1) rotate(-5deg) !important;
    box-shadow:
        0 0 30px rgba(220, 20, 60, 1),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset !important;
}

/* Мобильный размер */
@media (max-width: 900px) {
    .logo-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 16px !important;
    }
    .logo-icon i {
        font-size: 16px !important;
    }
}
/* ============================================================
   ШАПКА МЕНЮ — ссылка на профиль
   ============================================================ */

.user-dropdown-header-link {
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
    transition: background 0.25s;
}

.user-dropdown-header-link:hover {
    background: linear-gradient(180deg, rgba(220, 20, 60, 0.15), rgba(220, 20, 60, 0.05)) !important;
}

.user-dropdown-header-link:hover .user-dropdown-name {
    color: var(--red-light) !important;
}

.user-dropdown-header-link:hover .user-dropdown-arrow {
    color: var(--red) !important;
    transform: translateX(4px);
}
/* ============================================================
   КРОВАВЫЙ ЗАГОЛОВОК С ПОДТЁКАМИ
   ============================================================ */

.blood-title {
    position: relative;
    display: inline-block;
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.blood-text {
    position: relative;
    display: inline-block;
    font-family: var(--font-logo, 'Russo One', 'Montserrat', sans-serif);
    font-size: 90px;
    font-weight: 400;
    letter-spacing: 12px;
    background: linear-gradient(90deg, #fff 0%, var(--red) 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    animation: gradientMove 4s linear infinite;
    filter: drop-shadow(0 0 30px rgba(220, 20, 60, 0.6));
    z-index: 2;
    position: relative;
}

/* Контейнер для капель */
.blood-drips {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0;
    pointer-events: none;
    z-index: 1;
}

/* Отдельная капля */
.drip {
    position: absolute;
    top: -10px;
    left: var(--x);
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 80%, transparent 100%);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.8);
    animation: dripFlow var(--dur) ease-in infinite;
    animation-delay: var(--delay);
    opacity: 0.9;
}

/* Капля-шарик внизу */
.drip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, var(--red-light), var(--red-dark));
    border-radius: 50%;
    box-shadow:
        0 0 15px var(--red),
        0 0 25px rgba(220, 20, 60, 0.6);
}

/* Анимация стекания */
@keyframes dripFlow {
    0% {
        height: 0;
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    60% {
        height: 80px;
        opacity: 0.9;
    }
    100% {
        height: 120px;
        opacity: 0;
    }
}

/* Тонкая струйка сверху — усиливает эффект */
.blood-title::before {
    content: '';
    position: absolute;
    top: 95%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--red) 20%,
        var(--red) 80%,
        transparent 100%);
    filter: blur(1px);
    opacity: 0.6;
    z-index: 1;
}

/* Мобильный размер */
@media (max-width: 700px) {
    .blood-text {
        font-size: 42px;
        letter-spacing: 4px;
    }
    .blood-title {
        padding-bottom: 20px;
    }
    .drip {
        width: 3px;
    }
    @keyframes dripFlow {
        0%   { height: 0; opacity: 0; }
        10%  { opacity: 0.9; }
        60%  { height: 40px; opacity: 0.9; }
        100% { height: 60px; opacity: 0; }
    }
}
/* ============================================================
   ГЛАВНЫЙ ЗАГОЛОВОК — чистый, читаемый
   ============================================================ */

.hero-title {
    font-family: 'Russo One', 'Montserrat', sans-serif;
    font-size: 110px;
    font-weight: 400;
    letter-spacing: 16px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #fff 0%, #ff4d6d 50%, #DC143C 100%);
    background-size: 100% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter:
        drop-shadow(0 0 20px rgba(220, 20, 60, 0.8))
        drop-shadow(0 0 40px rgba(220, 20, 60, 0.5))
        drop-shadow(0 0 60px rgba(220, 20, 60, 0.3));
    animation: titleGlow 3s ease-in-out infinite;
    line-height: 1;
}

@keyframes titleGlow {
    0%, 100% {
        filter:
            drop-shadow(0 0 20px rgba(220, 20, 60, 0.8))
            drop-shadow(0 0 40px rgba(220, 20, 60, 0.5))
            drop-shadow(0 0 60px rgba(220, 20, 60, 0.3));
    }
    50% {
        filter:
            drop-shadow(0 0 30px rgba(220, 20, 60, 1))
            drop-shadow(0 0 60px rgba(220, 20, 60, 0.7))
            drop-shadow(0 0 90px rgba(220, 20, 60, 0.4));
    }
}

@media (max-width: 700px) {
    .hero-title {
        font-size: 48px;
        letter-spacing: 6px;
    }
}

/* Мобильный */
@media (max-width: 700px) {
    .meat-text {
        font-size: 46px;
        letter-spacing: 5px;
    }
    .meat-title {
        padding-bottom: 100px;
    }
    .meat-drip {
        --w: 4px;
    }
    .meat-drip::after {
        width: 6px;
        height: 6px;
    }
}
/* ============================================================
   МАГАЗИН — КАРТИНКИ И ПОДРОБНОСТИ
   ============================================================ */

.shop-item .item-image {
    width: 100%;
    height: 140px;
    margin-bottom: 16px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(220,20,60,0.1), rgba(0,0,0,0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.shop-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.35s;
}

.shop-item:hover .item-image img {
    transform: scale(1.05);
}

/* Иконка внутри картинки (если нет картинки) */
.shop-item .item-image .item-icon {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent, #DC143C), color-mix(in srgb, var(--accent, #DC143C) 60%, #000));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    box-shadow: 0 8px 20px -5px var(--accent-glow, rgba(220,20,60,0.5));
}

/* Кнопка «Подробнее» */
.btn-details {
    background: transparent;
    border: 1px solid var(--border);
    color: #bbb;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
    transition: 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-details:hover {
    border-color: var(--red);
    color: var(--red);
    background: rgba(220,20,60,0.05);
}

/* Блок с подробностями */
.item-details {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 14px;
    font-size: 13px;
    animation: fadeInUp 0.3s ease-out;
}

.details-section {
    margin-bottom: 12px;
}
.details-section:last-child { margin-bottom: 0; }

.details-section strong {
    color: var(--red);
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-head);
}

.details-section p {
    color: #bbb;
    line-height: 1.6;
    margin: 0;
    font-size: 13px;
}
/* ============================================================
   ГЛАВНАЯ — ПРЕМИУМ-РАСКЛАДКА 2026
   ============================================================ */

/* HERO — ДВЕ КОЛОНКИ */
.hero-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    text-align: left;
    padding: 80px 20px 60px;
    position: relative;
}
.hero-left { position: relative; z-index: 2; }
.hero-subtitle {
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 15px 0 30px;
}
.hero-subtitle i { color: var(--red); margin-right: 8px; }
.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}
.hero-live {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(40, 200, 80, 0.08);
    border: 1px solid rgba(40, 200, 80, 0.3);
    border-radius: 30px;
    font-size: 13px;
    color: #bbb;
    font-weight: 600;
}
.hero-live strong { color: var(--green-light); }
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
    animation: pulse 1.5s infinite;
}

/* HERO — ПРАВАЯ КОЛОНКА (СТАТИСТИКА) */
.hero-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    position: relative;
    z-index: 2;
}
.hero-stat-card {
    background: linear-gradient(180deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}
.hero-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(180deg, var(--red), transparent);
    opacity: 0;
    transition: 0.3s;
}
.hero-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(220,20,60,0.4);
    box-shadow: 0 12px 30px rgba(220,20,60,0.2);
}
.hero-stat-card:hover::before { opacity: 1; }
.hsc-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.hsc-body { flex: 1; min-width: 0; }
.hsc-label {
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-head);
    font-weight: 600;
    margin-bottom: 4px;
}
.hsc-value {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    font-family: var(--font-head);
    line-height: 1.1;
}
.hsc-sub {
    color: var(--gold);
    font-size: 11px;
    margin-top: 2px;
    font-weight: 600;
}

/* ДВУХКОЛОНОЧНАЯ СЕТКА ДЛЯ БЛОКОВ */
.home-grid {
    display: grid;
    gap: 30px;
    margin: 20px 0;
}
.home-grid-2 {
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) {
    .hero-split { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .hero-buttons { justify-content: center; }
    .hero-live { margin: 0 auto; }
    .home-grid-2 { grid-template-columns: 1fr; }
    .hero-right { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
    .hero-right { grid-template-columns: 1fr; }
}

/* СЕРВЕРЫ — ВЕРТИКАЛЬНЫЙ СПИСОК */
.servers-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ТОП-5 — КОМПАКТНЫЙ СПИСОК */
.top-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.top-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(180deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}
.top-row:hover {
    transform: translateX(4px);
    border-color: rgba(220,20,60,0.4);
    box-shadow: 0 8px 25px rgba(220,20,60,0.15);
}
.top-row.top-1 {
    border-color: rgba(255,184,0,0.5);
    background: linear-gradient(180deg, rgba(255,184,0,0.08), var(--bg3));
    box-shadow: 0 0 25px -10px rgba(255,184,0,0.4);
}
.top-place {
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}
.top-medal { font-size: 24px; line-height: 1; }
.top-num {
    color: #666;
    font-size: 18px;
    font-weight: 900;
    font-family: var(--font-head);
}
.top-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--red);
    background: #222;
    flex-shrink: 0;
}
.top-row.top-1 .top-avatar {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(255,184,0,0.5);
}
.top-info { flex: 1; min-width: 0; }
.top-name {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-head);
}
.top-stats {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
}
.top-stats i { color: var(--red); margin-right: 3px; }
.top-skill {
    text-align: right;
    flex-shrink: 0;
}
.top-skill-val {
    color: var(--gold);
    font-size: 18px;
    font-weight: 900;
    font-family: var(--font-head);
    line-height: 1;
}
.top-skill-lbl {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
}
.top-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: rgba(220,20,60,0.05);
    border: 1px dashed rgba(220,20,60,0.3);
    border-radius: var(--radius-lg);
    color: #bbb;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-head);
    transition: 0.3s;
    text-decoration: none;
    margin-top: 4px;
}
.top-more:hover {
    background: rgba(220,20,60,0.1);
    border-color: var(--red);
    color: #fff;
}
.top-more i:last-child {
    transition: transform 0.25s;
}
.top-more:hover i:last-child {
    transform: translateX(4px);
}

/* РАЗДЕЛЫ — СЕТКА 2x3 */
.quick-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0;
}
.quick-links-grid .quick-link {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}
.quick-links-grid .ql-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
}
.quick-links-grid .ql-body h3 {
    font-size: 13px;
}
.quick-links-grid .ql-body p {
    font-size: 11px;
}
.quick-links-grid .ql-arrow {
    position: absolute;
    top: 16px;
    right: 16px;
}
@media (max-width: 500px) {
    .quick-links-grid { grid-template-columns: 1fr; }
}

/* ЧАТ — КОМПАКТНЕЕ */
.chat-compact {
    max-height: 500px;
}
.chat-compact .chat-messages {
    min-height: 240px;
    max-height: 340px;
}
/* ============================================================
   ФИКС КОРОНЫ — принудительно
   ============================================================ */
.player-nick-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 2px !important;
    min-width: 0 !important;
}

.player-nick-row .nick {
    font-size: 14px !important;
    font-weight: 800 !important;
    font-family: var(--font-head) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 140px !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
}

.player-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 5px !important;
    font-size: 9px !important;
    flex-shrink: 0 !important;
    margin-left: 2px !important;
}

.player-badge.badge-admin {
    background: linear-gradient(135deg, #ffb800, #ff8c00) !important;
    color: #000 !important;
}

.player-badge.badge-vip {
    background: linear-gradient(135deg, #ffb800, #ff8c00) !important;
    color: #000 !important;
}
/* ============================================================
   ЩИТ АДМИНА — маленький, рядом с ником
   ============================================================ */
.player-shield {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    font-size: 8px;
    flex-shrink: 0;
    margin-left: 4px;
    background: linear-gradient(135deg, #ffb800, #ff8c00);
    color: #000;
    box-shadow: 0 0 6px rgba(255,184,0,0.6);
    vertical-align: middle;
}
.player-shield i {
    font-size: 8px;
    color: #000;
    line-height: 1;
}/* ============================================================
   ЩИТ АДМИНА — маленький, рядом с ником
   ============================================================ */
.player-shield {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    font-size: 8px;
    flex-shrink: 0;
    margin-left: 4px;
    background: linear-gradient(135deg, #ffb800, #ff8c00);
    color: #000;
    box-shadow: 0 0 6px rgba(255,184,0,0.6);
    vertical-align: middle;
}
.player-shield i {
    font-size: 8px;
    color: #000;
    line-height: 1;
}
/* ============================================================
   ОСНОВАТЕЛЬ — УНИКАЛЬНАЯ РОЛЬ
   ============================================================ */

/* Ник основателя — фиолетово-золотой градиент */
.nick-founder {
    background: linear-gradient(90deg,
        #9c27b0 0%,
        #e91e63 25%,
        #ffb800 50%,
        #e91e63 75%,
        #9c27b0 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 3s linear infinite;
    filter:
        drop-shadow(0 0 8px rgba(156, 39, 176, 0.8))
        drop-shadow(0 0 15px rgba(255, 184, 0, 0.5));
    font-weight: 900;
}
.nick-founder:hover {
    filter:
        drop-shadow(0 0 15px rgba(156, 39, 176, 1))
        drop-shadow(0 0 25px rgba(255, 184, 0, 0.8));
}

/* Щит основателя — с короной, фиолетово-золотой */
.player-shield.founder-shield {
    background: linear-gradient(135deg, #9c27b0, #ffb800);
    box-shadow:
        0 0 8px rgba(156, 39, 176, 0.8),
        0 0 12px rgba(255, 184, 0, 0.5);
    animation: founderShieldPulse 2s ease-in-out infinite;
}
@keyframes founderShieldPulse {
    0%, 100% {
        box-shadow:
            0 0 8px rgba(156, 39, 176, 0.8),
            0 0 12px rgba(255, 184, 0, 0.5);
    }
    50% {
        box-shadow:
            0 0 15px rgba(156, 39, 176, 1),
            0 0 25px rgba(255, 184, 0, 0.8);
    }
}

/* Бейдж основателя — в профиле */
.badge-founder {
    background: linear-gradient(135deg, #9c27b0, #ffb800) !important;
    color: #fff !important;
    border: none !important;
    box-shadow:
        0 0 15px rgba(156, 39, 176, 0.6),
        0 0 25px rgba(255, 184, 0, 0.4);
    animation: founderBadgePulse 2s ease-in-out infinite;
    font-weight: 800;
}
.badge-founder i {
    color: #fff;
    margin-right: 4px;
    animation: crownRotate 3s ease-in-out infinite;
}
@keyframes founderBadgePulse {
    0%, 100% {
        box-shadow:
            0 0 15px rgba(156, 39, 176, 0.6),
            0 0 25px rgba(255, 184, 0, 0.4);
    }
    50% {
        box-shadow:
            0 0 25px rgba(156, 39, 176, 0.9),
            0 0 40px rgba(255, 184, 0, 0.7);
    }
}
@keyframes crownRotate {
    0%, 100% { transform: rotate(0deg); }
    25%      { transform: rotate(-10deg); }
    75%      { transform: rotate(10deg); }
}/* ============================================================
   ОСНОВАТЕЛЬ — УНИКАЛЬНАЯ РОЛЬ
   ============================================================ */

/* Ник основателя — фиолетово-золотой градиент */
.nick-founder {
    background: linear-gradient(90deg,
        #9c27b0 0%,
        #e91e63 25%,
        #ffb800 50%,
        #e91e63 75%,
        #9c27b0 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 3s linear infinite;
    filter:
        drop-shadow(0 0 8px rgba(156, 39, 176, 0.8))
        drop-shadow(0 0 15px rgba(255, 184, 0, 0.5));
    font-weight: 900;
}
.nick-founder:hover {
    filter:
        drop-shadow(0 0 15px rgba(156, 39, 176, 1))
        drop-shadow(0 0 25px rgba(255, 184, 0, 0.8));
}

/* Щит основателя — с короной, фиолетово-золотой */
.player-shield.founder-shield {
    background: linear-gradient(135deg, #9c27b0, #ffb800);
    box-shadow:
        0 0 8px rgba(156, 39, 176, 0.8),
        0 0 12px rgba(255, 184, 0, 0.5);
    animation: founderShieldPulse 2s ease-in-out infinite;
}
@keyframes founderShieldPulse {
    0%, 100% {
        box-shadow:
            0 0 8px rgba(156, 39, 176, 0.8),
            0 0 12px rgba(255, 184, 0, 0.5);
    }
    50% {
        box-shadow:
            0 0 15px rgba(156, 39, 176, 1),
            0 0 25px rgba(255, 184, 0, 0.8);
    }
}

/* Бейдж основателя — в профиле */
.badge-founder {
    background: linear-gradient(135deg, #9c27b0, #ffb800) !important;
    color: #fff !important;
    border: none !important;
    box-shadow:
        0 0 15px rgba(156, 39, 176, 0.6),
        0 0 25px rgba(255, 184, 0, 0.4);
    animation: founderBadgePulse 2s ease-in-out infinite;
    font-weight: 800;
}
.badge-founder i {
    color: #fff;
    margin-right: 4px;
    animation: crownRotate 3s ease-in-out infinite;
}
@keyframes founderBadgePulse {
    0%, 100% {
        box-shadow:
            0 0 15px rgba(156, 39, 176, 0.6),
            0 0 25px rgba(255, 184, 0, 0.4);
    }
    50% {
        box-shadow:
            0 0 25px rgba(156, 39, 176, 0.9),
            0 0 40px rgba(255, 184, 0, 0.7);
    }
}
@keyframes crownRotate {
    0%, 100% { transform: rotate(0deg); }
    25%      { transform: rotate(-10deg); }
    75%      { transform: rotate(10deg); }
}
/* ============================================================
   DYNAMIC EVENTS — секция фичи проекта
   ============================================================ */
.events-section {
    position: relative;
    margin: 60px 0 40px;
    padding: 50px 30px 40px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 0%, rgba(220, 20, 60, 0.12), transparent 60%),
        linear-gradient(180deg, #15151a 0%, #0d0d0f 100%);
    border: 1px solid var(--border);
    overflow: hidden;
}

.events-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(220, 20, 60, 0.35), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    animation: eventsGlowPulse 5s ease-in-out infinite;
}
@keyframes eventsGlowPulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50%      { opacity: 1;   transform: translateX(-50%) scale(1.15); }
}

.events-header {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 35px;
}

.events-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(220, 20, 60, 0.12);
    border: 1px solid rgba(220, 20, 60, 0.4);
    border-radius: 30px;
    color: var(--red-light);
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.25);
}
.events-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 10px var(--red);
    animation: eventsBadgeDot 1.4s ease-in-out infinite;
}
@keyframes eventsBadgeDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(1.4); }
}

.events-title {
    font-family: var(--font-head);
    font-size: 52px;
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 14px;
    background: linear-gradient(90deg, #fff 0%, var(--red) 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: eventsTitleFlow 5s linear infinite;
    line-height: 1.05;
}
.events-title span {
    display: inline-block;
}
@keyframes eventsTitleFlow {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.events-subtitle {
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.events-subtitle i {
    color: var(--red);
    filter: drop-shadow(0 0 8px var(--red));
}

/* Статистика */
.events-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 30px auto 40px;
    max-width: 900px;
    position: relative;
    z-index: 2;
}
.events-stat {
    background: linear-gradient(180deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 14px;
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}
.events-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    opacity: 0.6;
}
.events-stat:hover {
    border-color: rgba(220, 20, 60, 0.5);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.2);
    transform: translateY(-3px);
}
.events-stat-val {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(220, 20, 60, 0.5);
}
.events-stat-val span {
    color: var(--red);
    font-size: 20px;
    margin-left: 2px;
}
.events-stat-lbl {
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 8px;
    font-weight: 600;
}

/* Сетка карточек событий */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    position: relative;
    z-index: 2;
}

.event-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 16px;
    background: linear-gradient(180deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: 0.35s cubic-bezier(.2,.7,.3,1);
    cursor: default;
    opacity: 0;
    transform: translateY(20px);
}
.event-card.in-view {
    opacity: 1;
    transform: translateY(0);
}
.event-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 3px; height: 100%;
    background: var(--event-color, var(--red));
    box-shadow: 0 0 15px var(--event-color, var(--red));
    transition: 0.3s;
}
.event-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, var(--event-color, var(--red)) 0%, transparent 60%);
    opacity: 0;
    transition: 0.4s;
    pointer-events: none;
    mix-blend-mode: screen;
}
.event-card:hover {
    transform: translateY(-4px);
    border-color: var(--event-color, var(--red));
    box-shadow:
        0 12px 30px rgba(0,0,0,0.5),
        0 0 25px var(--event-color, var(--red));
}
.event-card:hover::after { opacity: 0.12; }
.event-card:hover .event-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 25px var(--event-color, var(--red));
}

.event-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--event-color, var(--red)), rgba(0,0,0,0.4));
    box-shadow: 0 0 15px var(--event-color, var(--red));
    transition: 0.35s;
    position: relative;
    z-index: 2;
}

.event-body {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
}
.event-name {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    transition: 0.3s;
}
.event-card:hover .event-name {
    color: var(--event-color, var(--red));
    text-shadow: 0 0 12px var(--event-color, var(--red));
}
.event-desc {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 500;
}

.event-shine {
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s;
    pointer-events: none;
}
.event-card:hover .event-shine { left: 140%; }

/* CTA */
.events-cta {
    margin-top: 35px;
    padding: 22px 26px;
    background: linear-gradient(90deg, rgba(220,20,60,0.12), rgba(220,20,60,0.04));
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}
.events-cta-text {
    display: flex;
    align-items: center;
    gap: 16px;
}
.events-cta-text > i {
    font-size: 32px;
    color: var(--red);
    filter: drop-shadow(0 0 12px var(--red));
}
.events-cta-title {
    color: #fff;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}
.events-cta-ip {
    color: var(--green);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(40, 200, 80, 0.6);
    user-select: all;
}

/* Адаптив */
@media (max-width: 900px) {
    .events-section { padding: 35px 18px 30px; margin: 40px 0 30px; }
    .events-title { font-size: 36px; letter-spacing: 4px; }
    .events-stats { grid-template-columns: repeat(2, 1fr); }
    .events-stat-val { font-size: 26px; }
}
@media (max-width: 600px) {
    .events-title { font-size: 26px; letter-spacing: 2px; }
    .events-subtitle { font-size: 11px; letter-spacing: 1px; }
    .events-grid { grid-template-columns: 1fr; }
    .events-cta { flex-direction: column; text-align: center; }
    .events-cta-text { flex-direction: column; }
    .events-cta .btn { width: 100%; }
    .events-badge { font-size: 9px; padding: 5px 12px; }
}
/* ============================================================
   EVENTS BADGE В ШАПКЕ
   ============================================================ */
.events-badge-header {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.15), rgba(139, 0, 0, 0.15));
    border: 1px solid rgba(220, 20, 60, 0.45);
    border-radius: 30px;
    color: #fff;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}
.events-badge-header::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}
.events-badge-header:hover::before { left: 100%; }
.events-badge-header:hover {
    color: #fff;
    border-color: var(--red);
    box-shadow:
        0 0 20px rgba(220, 20, 60, 0.6),
        0 0 0 1px rgba(220, 20, 60, 0.3) inset;
    transform: translateY(-2px);
}
.events-badge-header i {
    color: var(--red);
    filter: drop-shadow(0 0 6px var(--red));
    font-size: 13px;
    animation: eventsFireFlicker 2s ease-in-out infinite;
}
@keyframes eventsFireFlicker {
    0%, 100% { transform: scale(1);   opacity: 1;   }
    50%      { transform: scale(1.15); opacity: 0.85; }
}
.events-badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border-radius: 10px;
    font-size: 10px;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.7);
    font-family: var(--font-head);
}

@media (max-width: 1100px) {
    .events-badge-header span:not(.events-badge-count) { display: none; }
}
@media (max-width: 900px) {
    .events-badge-header { padding: 6px 10px; }
}
/* ============================================================
   EVENTS.PHP — HERO
   ============================================================ */
.events-hero {
    position: relative;
    padding: 60px 30px 50px;
    margin: 30px 0 40px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 0%, rgba(220, 20, 60, 0.15), transparent 60%),
        linear-gradient(180deg, #15151a 0%, #0d0d0f 100%);
    border: 1px solid var(--border);
    overflow: hidden;
    text-align: center;
}
.events-hero-glow {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(220, 20, 60, 0.4), transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    animation: eventsGlowPulse 5s ease-in-out infinite;
}
.events-hero-particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(220, 20, 60, 0.6), transparent),
        radial-gradient(1px 1px at 30% 60%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 60% 30%, rgba(220, 20, 60, 0.5), transparent),
        radial-gradient(1px 1px at 80% 70%, rgba(255, 255, 255, 0.25), transparent),
        radial-gradient(1px 1px at 95% 40%, rgba(220, 20, 60, 0.4), transparent);
    background-size: 500px 200px;
    pointer-events: none;
    animation: headerParticles 25s linear infinite;
    opacity: 0.5;
}
.events-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}
.events-back {
    position: absolute;
    left: 0; top: -20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    font-family: var(--font-head);
    transition: 0.25s;
}
.events-back:hover { color: var(--red); transform: translateX(-4px); }
.events-hero-title {
    font-family: var(--font-head);
    font-size: 64px;
    font-weight: 900;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin: 20px 0 14px;
    background: linear-gradient(90deg, #fff 0%, var(--red) 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: eventsTitleFlow 5s linear infinite;
    line-height: 1;
}
.events-hero-title span { display: inline; }
.events-hero-subtitle {
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.events-hero-subtitle i {
    color: var(--red);
    filter: drop-shadow(0 0 8px var(--red));
}
.events-hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 35px 0 30px;
    flex-wrap: wrap;
}
.ehs-item { text-align: center; }
.ehs-val {
    font-family: var(--font-head);
    font-size: 38px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 20px rgba(220, 20, 60, 0.5);
}
.ehs-val span { color: var(--red); font-size: 22px; }
.ehs-lbl {
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
    font-weight: 700;
}
.events-hero-cta {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 25px;
}

/* ============================================================
   EVENTS.PHP — КАК ЭТО РАБОТАЕТ
   ============================================================ */
.events-how { margin: 60px 0 40px; }
.events-how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.how-card {
    background: linear-gradient(180deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 26px 22px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}
.how-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.how-card:hover {
    transform: translateY(-4px);
    border-color: rgba(220, 20, 60, 0.5);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.25);
}
.how-num {
    position: absolute;
    top: 14px; right: 18px;
    font-family: var(--font-head);
    font-size: 42px;
    font-weight: 900;
    color: rgba(220, 20, 60, 0.15);
    letter-spacing: 1px;
    line-height: 1;
    pointer-events: none;
}
.how-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.25), rgba(139, 0, 0, 0.15));
    border: 1px solid rgba(220, 20, 60, 0.4);
    color: var(--red);
    font-size: 22px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 10px rgba(220, 20, 60, 0.5));
}
.how-card h3 {
    color: #fff;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
}
.how-card p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.events-how-note {
    padding: 16px 20px;
    background: rgba(220, 20, 60, 0.06);
    border: 1px solid rgba(220, 20, 60, 0.25);
    border-radius: 10px;
    color: var(--muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.events-how-note i { color: var(--red); font-size: 18px; flex-shrink: 0; }
.events-how-note code {
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 5px;
    color: var(--red-light);
    font-family: monospace;
    font-size: 12px;
}

/* ============================================================
   EVENTS.PHP — ДЕТАЛЬНАЯ КАРТОЧКА СОБЫТИЯ
   ============================================================ */
.events-list-section { margin: 60px 0 40px; }
.event-detail {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 30px;
    background: linear-gradient(180deg, var(--bg2), var(--bg3));
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 30px;
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
    transition: 0.35s;
}
.event-detail::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 4px; height: 100%;
    background: var(--event-color, var(--red));
    box-shadow: 0 0 25px var(--event-color, var(--red));
}
.event-detail:hover {
    border-color: var(--event-color, var(--red));
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 30px var(--event-color, var(--red));
}
.event-detail.reverse { grid-template-columns: 1fr 380px; }
.event-detail.reverse .ed-visual { order: 2; }
.event-detail.reverse .ed-content { order: 1; }

.ed-visual {
    position: relative;
    min-height: 280px;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--bg), rgba(0,0,0,0.6));
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ed-visual-bg {
    position: absolute;
    inset: 0;
    opacity: 0.7;
    animation: edVisualPulse 6s ease-in-out infinite;
}
@keyframes edVisualPulse {
    0%, 100% { transform: scale(1);    opacity: 0.6; }
    50%      { transform: scale(1.15); opacity: 0.9; }
}
.ed-visual-icon {
    position: relative;
    z-index: 2;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--event-color, var(--red)), rgba(0,0,0,0.4));
    border: 2px solid var(--event-color, var(--red));
    color: #fff;
    font-size: 48px;
    box-shadow:
        0 0 40px var(--event-color, var(--red)),
        0 0 80px var(--event-color, var(--red)),
        inset 0 0 30px rgba(255, 255, 255, 0.15);
    animation: edIconFloat 4s ease-in-out infinite;
}
@keyframes edIconFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.ed-visual-tag {
    position: absolute;
    top: 16px; left: 16px;
    z-index: 2;
    padding: 5px 12px;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--event-color, var(--red));
    border-radius: 20px;
    color: #fff;
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 0 15px var(--event-color, var(--red));
}
.ed-visual-num {
    position: absolute;
    bottom: 12px; right: 16px;
    z-index: 2;
    font-family: var(--font-head);
    font-size: 68px;
    font-weight: 900;
    color: rgba(255,255,255,0.08);
    line-height: 1;
    letter-spacing: 1px;
    pointer-events: none;
}
.ed-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.ed-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.ed-icon-badge {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 0 25px var(--event-color, var(--red));
    flex-shrink: 0;
}
.ed-title {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(0,0,0,0.6);
}
.ed-short {
    color: var(--event-color, var(--red));
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    font-style: italic;
    letter-spacing: 0.3px;
    text-shadow: 0 0 15px var(--event-color, var(--red));
    opacity: 0.9;
}
.ed-long {
    color: #ccc;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 20px;
}
.ed-tips {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-left: 3px solid var(--event-color, var(--red));
    border-radius: 10px;
    padding: 16px 20px;
}
.ed-tips-title {
    color: var(--event-color, var(--red));
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ed-tips-title i { filter: drop-shadow(0 0 6px var(--event-color, var(--red))); }
.ed-tips ul { list-style: none; padding: 0; margin: 0; }
.ed-tips li {
    color: #bbb;
    font-size: 13px;
    line-height: 1.55;
    padding: 6px 0 6px 22px;
    position: relative;
}
.ed-tips li i {
    position: absolute;
    left: 0;
    top: 9px;
    font-size: 11px;
    filter: drop-shadow(0 0 5px currentColor);
}
.ed-tips li + li { border-top: 1px dashed rgba(255,255,255,0.06); }

/* ============================================================
   EVENTS.PHP — ФИНАЛЬНЫЙ CTA
   ============================================================ */
.events-final-cta {
    position: relative;
    margin: 60px 0 40px;
    padding: 60px 30px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 100%, rgba(220, 20, 60, 0.2), transparent 60%),
        linear-gradient(180deg, #15151a 0%, #0d0d0f 100%);
    border: 1px solid rgba(220, 20, 60, 0.3);
    overflow: hidden;
    text-align: center;
}
.efc-glow {
    position: absolute;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(220, 20, 60, 0.5), transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    animation: eventsGlowPulse 5s ease-in-out infinite;
}
.efc-inner { position: relative; z-index: 2; }
.efc-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    font-size: 36px;
    box-shadow: 0 0 40px rgba(220, 20, 60, 0.7), inset 0 0 20px rgba(255,255,255,0.15);
    animation: edIconFloat 3s ease-in-out infinite;
}
.events-final-cta h2 {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    text-shadow: 0 0 30px rgba(220,20,60,0.5);
}
.events-final-cta p {
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 24px;
}
.efc-ip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(40, 200, 80, 0.08);
    border: 1px solid rgba(40, 200, 80, 0.3);
    border-radius: 30px;
    color: var(--green-light);
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 28px;
    text-shadow: 0 0 12px rgba(40, 200, 80, 0.6);
    user-select: all;
}
.efc-ip i { color: var(--green); filter: drop-shadow(0 0 8px var(--green)); }
.efc-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ============================================================
   EVENTS.PHP — АДАПТИВ
   ============================================================ */
@media (max-width: 900px) {
    .events-hero { padding: 40px 20px 35px; }
    .events-hero-title { font-size: 40px; letter-spacing: 4px; }
    .events-hero-subtitle { font-size: 12px; letter-spacing: 1px; }
    .events-hero-stats { gap: 24px; }
    .ehs-val { font-size: 28px; }
    .ehs-val span { font-size: 18px; }
    .events-back { position: static; margin-bottom: 20px; display: inline-flex; }

    .event-detail,
    .event-detail.reverse { grid-template-columns: 1fr; padding: 22px; }
    .event-detail.reverse .ed-visual { order: 0; }
    .event-detail.reverse .ed-content { order: 0; }

    .ed-visual { min-height: 200px; }
    .ed-visual-icon { width: 80px; height: 80px; font-size: 34px; }
    .ed-visual-num { font-size: 48px; }
    .ed-title { font-size: 22px; letter-spacing: 1px; }

    .events-final-cta { padding: 40px 20px; }
    .events-final-cta h2 { font-size: 22px; letter-spacing: 1.5px; }
    .efc-ip { font-size: 14px; padding: 10px 18px; }
    .efc-icon { width: 64px; height: 64px; font-size: 28px; }
}
@media (max-width: 600px) {
    .events-hero-title { font-size: 28px; letter-spacing: 2px; }
    .events-hero-stats { gap: 16px; }
    .ehs-val { font-size: 22px; }
    .events-hero-cta { flex-direction: column; }
    .events-hero-cta .btn { width: 100%; }
    .efc-buttons { flex-direction: column; }
    .efc-buttons .btn { width: 100%; }
    .events-how-grid { grid-template-columns: 1fr; }
    .how-num { font-size: 32px; }
}
/* ==================== NAV: BATTLE PASS ==================== */
.nav-bp {
    background: linear-gradient(135deg, rgba(255,184,0,0.12), rgba(220,20,60,0.12));
    border: 1px solid rgba(255,184,0,0.25);
    color: #ffb800 !important;
    position: relative;
    overflow: hidden;
}
.nav-bp::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,184,0,0.15), transparent);
    transform: rotate(45deg);
    transition: 0.6s;
    opacity: 0;
}
.nav-bp:hover::after {
    opacity: 1;
    animation: bpShine 1s ease-in-out;
}
@keyframes bpShine {
    0%   { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%)  rotate(45deg); }
}
.nav-bp:hover {
    background: linear-gradient(135deg, rgba(255,184,0,0.2), rgba(220,20,60,0.2));
    border-color: rgba(255,184,0,0.5);
    color: #fff !important;
    box-shadow: 0 0 20px rgba(255,184,0,0.3);
}
.nav-bp i {
    color: #ffb800 !important;
    filter: drop-shadow(0 0 6px rgba(255,184,0,0.6));
}
.nav-bp:hover i {
    color: #ffd966 !important;
    filter: drop-shadow(0 0 10px rgba(255,184,0,0.9));
    transform: scale(1.15);
}
/* ============================================================
   HERO: КНОПКА СКАЧИВАНИЯ CS
   ============================================================ */
.btn-download {
    background: linear-gradient(135deg, #ffb800 0%, #ff8c00 50%, #b37d00 100%);
    color: #000 !important;
    font-weight: 900;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(255, 184, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    animation: btnDownloadPulse 3s ease-in-out infinite;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: 0.3s;
    margin-top: 6px;
}

.btn-download i {
    font-size: 15px;
    color: #000 !important;
    filter: none !important;
}

.btn-download .btn-download-hint {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    opacity: 0.75;
    letter-spacing: 0.5px;
    text-transform: none;
    margin-left: 4px;
    padding-left: 10px;
    border-left: 1px solid rgba(0,0,0,0.25);
}

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

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

.btn-download:hover {
    transform: translateY(-2px);
    color: #000 !important;
    box-shadow: 
        0 8px 30px rgba(255, 184, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

@keyframes btnDownloadPulse {
    0%, 100% {
        box-shadow: 
            0 4px 20px rgba(255, 184, 0, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    }
    50% {
        box-shadow: 
            0 4px 30px rgba(255, 184, 0, 0.7),
            0 0 0 1px rgba(255, 255, 255, 0.25) inset;
    }
}

@media (max-width: 700px) {
    .btn-download {
        padding: 12px 20px;
        font-size: 11px;
        gap: 8px;
    }
    .btn-download .btn-download-hint {
        display: none;
    }
}
.btn-steam {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    color: #fff !important;
    font-weight: 700;
    font-family: var(--font-head);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(27, 40, 56, 0.5);
    transition: 0.3s;
}
.btn-steam:hover {
    background: linear-gradient(135deg, #2a475e 0%, #1b2838 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 40, 56, 0.7);
}
.btn-steam i {
    font-size: 18px;
    color: #fff;
}
/* ============================================================
   HERO TITLE — выравнивание по центру
   ============================================================ */
.hero-title {
    padding-left: 8px; /* компенсация letter-spacing */
    margin-left: -8px;
}
/* ============================================================
   SHOP PAGE
   ============================================================ */
.shop-page { padding: 30px 0; }

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.shop-title {
    color: #fff;
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.shop-title i {
    color: var(--red);
    filter: drop-shadow(0 0 10px var(--red));
}

.shop-balance {
    padding: 12px 22px;
    background: linear-gradient(135deg, rgba(255,184,0,0.15), rgba(220,20,60,0.15));
    border: 1px solid rgba(255,184,0,0.3);
    border-radius: 30px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
.shop-balance strong {
    color: var(--gold);
    font-size: 16px;
}

/* LAYOUT */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 25px;
}

@media (max-width: 900px) {
    .shop-layout { grid-template-columns: 1fr; }
}

/* КАТЕГОРИИ */
.shop-categories {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(180deg, rgba(21,21,26,0.7), rgba(28,28,36,0.7));
    border: 1px solid rgba(220,20,60,0.15);
    border-radius: 12px;
    padding: 15px;
    height: fit-content;
    position: sticky;
    top: 90px;
}

.shop-cat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #bbb;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.25s;
}
.shop-cat i {
    width: 20px;
    text-align: center;
    color: var(--red);
    filter: drop-shadow(0 0 4px var(--red));
}
.shop-cat:hover {
    background: rgba(220,20,60,0.1);
    color: #fff;
}
.shop-cat.active {
    background: linear-gradient(135deg, rgba(220,20,60,0.2), rgba(139,0,0,0.2));
    color: #fff;
    border-left: 3px solid var(--red);
}
.shop-cat-count {
    margin-left: auto;
    background: rgba(255,255,255,0.08);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #888;
}
.shop-cat.active .shop-cat-count {
    background: var(--red);
    color: #fff;
}

/* TOOLBAR */
.shop-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.shop-search {
    flex: 1;
    min-width: 200px;
    position: relative;
    display: flex;
    align-items: center;
}
.shop-search i {
    position: absolute;
    left: 15px;
    color: #666;
    font-size: 14px;
}
.shop-search input {
    width: 100%;
    padding: 12px 15px 12px 42px;
    background: rgba(21,21,26,0.7);
    border: 1px solid rgba(220,20,60,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}
.shop-search input:focus {
    border-color: var(--red);
    box-shadow: 0 0 15px rgba(220,20,60,0.3);
}

.shop-sort {
    padding: 12px 15px;
    background: rgba(21,21,26,0.7);
    border: 1px solid rgba(220,20,60,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

/* GRID */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.shop-card {
    background: linear-gradient(180deg, rgba(21,21,26,0.7), rgba(28,28,36,0.85));
    border: 1px solid rgba(220,20,60,0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}
.shop-card:hover {
    transform: translateY(-4px);
    border-color: rgba(220,20,60,0.5);
    box-shadow: 0 10px 30px rgba(220,20,60,0.2);
}

.shop-card-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a22;
    position: relative;
}
.shop-card-type {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(220,20,60,0.9);
    color: #fff;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.shop-card-body {
    padding: 15px;
    flex: 1;
}
.shop-card-name {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}
.shop-card-desc {
    color: #888;
    font-size: 12px;
    line-height: 1.5;
}

.shop-card-footer {
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.shop-price-from {
    color: #666;
    font-size: 11px;
    margin-right: 4px;
}
.shop-price-value {
    color: var(--gold);
    font-size: 18px;
    font-weight: 900;
}
.shop-price-duration {
    display: block;
    color: #666;
    font-size: 11px;
}

.shop-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff !important;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220,20,60,0.5);
}
.shop-btn-active {
    background: linear-gradient(135deg, #2a2a35, #15151a);
    color: #4caf50 !important;
    cursor: default;
}

.shop-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}
.shop-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    color: rgba(220,20,60,0.3);
}

/* ============================================================
   VIP PAGE
   ============================================================ */
.vip-page { padding: 30px 0; }

.vip-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 13px;
    margin-bottom: 25px;
}
.vip-breadcrumbs a {
    color: #aaa;
    text-decoration: none;
    transition: 0.2s;
}
.vip-breadcrumbs a:hover { color: var(--red); }
.vip-breadcrumbs i { font-size: 10px; }

.vip-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 25px;
}
@media (max-width: 900px) {
    .vip-layout { grid-template-columns: 1fr; }
}

.vip-features {
    background: linear-gradient(180deg, rgba(21,21,26,0.7), rgba(28,28,36,0.85));
    border: 1px solid rgba(220,20,60,0.15);
    border-radius: 12px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 90px;
}
.vip-features-title {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}
.vip-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.vip-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #bbb;
    font-size: 13px;
    line-height: 1.5;
}
.vip-features-list i {
    color: var(--green);
    margin-top: 2px;
    flex-shrink: 0;
}

.vip-main {
    background: linear-gradient(180deg, rgba(21,21,26,0.7), rgba(28,28,36,0.85));
    border: 1px solid rgba(220,20,60,0.15);
    border-radius: 12px;
    padding: 30px;
}

.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,184,0,0.1);
    border: 1px solid rgba(255,184,0,0.3);
    border-radius: 20px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.vip-title {
    color: #fff;
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.vip-subtitle {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
}

.vip-balance {
    padding: 12px 18px;
    background: rgba(76,175,80,0.1);
    border: 1px solid rgba(76,175,80,0.3);
    border-radius: 8px;
    color: #4caf50;
    font-size: 13px;
    margin-bottom: 20px;
}
.vip-balance strong { color: #fff; }

.vip-section { margin-bottom: 25px; }
.vip-label {
    display: block;
    color: #aaa;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.vip-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}
.vip-tier {
    display: block;
    padding: 15px;
    background: rgba(21,21,26,0.7);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s;
    text-align: center;
}
.vip-tier input { display: none; }
.vip-tier:hover { border-color: rgba(220,20,60,0.4); }
.vip-tier.selected {
    border-color: var(--red);
    background: linear-gradient(135deg, rgba(220,20,60,0.15), rgba(139,0,0,0.15));
    box-shadow: 0 0 20px rgba(220,20,60,0.3);
}
.vip-tier-days {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 6px;
}
.vip-tier-price {
    color: var(--gold);
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 4px;
}
.vip-tier-perday {
    color: #666;
    font-size: 11px;
}

.vip-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(21,21,26,0.7);
    border: 1px solid rgba(220,20,60,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}
.vip-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 15px rgba(220,20,60,0.3);
}

.vip-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}
.vip-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
}
.vip-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--red);
}

.vip-buy-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 20px rgba(220,20,60,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.vip-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(220,20,60,0.7);
}
/* ============================================================
   VIP PAGE — ссылки в галочках
   ============================================================ */
.vip-link {
    color: var(--red) !important;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px dashed rgba(220,20,60,0.4);
    transition: 0.2s;
    padding-bottom: 1px;
}

.vip-link:hover {
    color: var(--red-light) !important;
    border-bottom-color: var(--red-light);
    border-bottom-style: solid;
}

/* Галочка: чекбокс + текст в одну строку */
.vip-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #aaa;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
}

.vip-checkbox input {
    margin-top: 3px;
    flex-shrink: 0;
}

.vip-checkbox span {
    flex: 1;
}
/* ============================================================
   VIP PAGE — улучшенный визуал
   ============================================================ */
.vip-page { padding: 30px 0; }

.vip-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 13px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.vip-breadcrumbs a {
    color: #aaa;
    text-decoration: none;
    transition: 0.2s;
}
.vip-breadcrumbs a:hover { color: var(--red); }
.vip-breadcrumbs i { font-size: 10px; }

.vip-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 25px;
}
@media (max-width: 900px) {
    .vip-layout { grid-template-columns: 1fr; }
}

/* ЛЕВАЯ */
.vip-features {
    background: linear-gradient(180deg, rgba(21,21,26,0.75), rgba(28,28,36,0.9));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(220,20,60,0.15);
    border-radius: 14px;
    padding: 28px;
    height: fit-content;
    position: sticky;
    top: 90px;
    overflow: hidden;
}
.vip-features-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--vip-color, #dc143c), transparent 70%);
    opacity: 0.15;
    pointer-events: none;
    animation: vipGlow 4s ease-in-out infinite;
}
@keyframes vipGlow {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50%      { opacity: 0.25; transform: scale(1.15); }
}

.vip-features-title {
    color: #fff;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}
.vip-features-title i { font-size: 16px; filter: drop-shadow(0 0 8px currentColor); }

.vip-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 1;
}
.vip-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #bbb;
    font-size: 13px;
    line-height: 1.5;
}
.vip-features-list i {
    color: var(--green);
    margin-top: 3px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(76,175,80,0.5));
}

.vip-conditions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    position: relative;
    z-index: 1;
}
.vip-conditions h4 {
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vip-conditions h4 i { color: var(--red); }
.vip-conditions p {
    color: #888;
    font-size: 12px;
    line-height: 1.6;
}

/* ПРАВАЯ */
.vip-main {
    background: linear-gradient(180deg, rgba(21,21,26,0.75), rgba(28,28,36,0.9));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(220,20,60,0.15);
    border-radius: 14px;
    padding: 35px;
    position: relative;
    overflow: hidden;
}

.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,184,0,0.1);
    border: 1px solid var(--badge-color, #ffb800);
    border-radius: 20px;
    color: var(--badge-color, #ffb800);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(255,184,0,0.15);
}
.vip-badge i { font-size: 12px; }

.vip-title {
    color: #fff;
    font-family: var(--font-head);
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #fff 0%, #dc143c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.vip-subtitle {
    color: #888;
    font-size: 14px;
    margin-bottom: 22px;
    line-height: 1.5;
}

.vip-balance {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(76,175,80,0.08);
    border: 1px solid rgba(76,175,80,0.3);
    border-radius: 10px;
    color: #4caf50;
    font-size: 14px;
    margin-bottom: 25px;
}
.vip-balance i { font-size: 16px; }
.vip-balance strong { color: #fff; font-size: 16px; }

.vip-section { margin-bottom: 25px; }
.vip-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
}
.vip-label i { color: var(--red); font-size: 13px; }

/* ТАРИФЫ */
.vip-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}
.vip-tiers-single {
    grid-template-columns: 1fr;
    max-width: 300px;
}
.vip-tier {
    display: block;
    padding: 18px 15px;
    background: rgba(21,21,26,0.7);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: 0.25s;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.vip-tier input { display: none; }
.vip-tier:hover {
    border-color: rgba(220,20,60,0.4);
    transform: translateY(-2px);
}
.vip-tier.selected {
    border-color: var(--red);
    background: linear-gradient(135deg, rgba(220,20,60,0.15), rgba(139,0,0,0.15));
    box-shadow: 0 0 25px rgba(220,20,60,0.3);
}
.vip-tier.selected::before {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 10px;
    color: var(--red);
    font-weight: 900;
    font-size: 14px;
}
.vip-tier-days {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.vip-tier-price {
    color: var(--gold);
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 4px;
    filter: drop-shadow(0 0 8px rgba(255,184,0,0.4));
}
.vip-tier-perday {
    color: #666;
    font-size: 11px;
}

/* ПОЛЯ */
.vip-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(21,21,26,0.7);
    border: 1px solid rgba(220,20,60,0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
    font-family: inherit;
}
.vip-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 20px rgba(220,20,60,0.3);
    background: rgba(21,21,26,0.95);
}
.vip-input[readonly] {
    background: rgba(21,21,26,0.4);
    color: #888;
    cursor: not-allowed;
}

.vip-help {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 8px;
    line-height: 1.5;
}

/* СОГЛАСИЯ */
.vip-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}
.vip-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #aaa;
    font-size: 13px;
    line-height: 1.6;
    cursor: pointer;
}
.vip-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--red);
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}
.vip-checkbox span { flex: 1; }

.vip-link {
    color: var(--red) !important;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px dashed rgba(220,20,60,0.5);
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.vip-link:hover {
    color: var(--red-light) !important;
    border-bottom-style: solid;
    border-bottom-color: var(--red-light);
}

/* КНОПКА */
.vip-buy-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 8px 25px rgba(220,20,60,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}
.vip-buy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.7s;
}
.vip-buy-btn:hover::before { left: 100%; }
.vip-buy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(220,20,60,0.7);
}
.vip-buy-btn span { color: #fff; }

@media (max-width: 600px) {
    .vip-title { font-size: 24px; }
    .vip-main { padding: 22px; }
    .vip-features { padding: 22px; }
}
/* ============================================================
   VIP PAGE — блок описания снизу
   ============================================================ */
.vip-description-block {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.vip-description-block h3 {
    color: #fff;
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}
.vip-desc-server strong {
    color: #fff;
    font-weight: 900;
}
.vip-desc-note {
    color: #aaa;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
}
.vip-desc-warning {
    color: #ddd;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 12px;
    padding: 12px 15px;
    background: rgba(220,20,60,0.08);
    border-left: 3px solid var(--red);
    border-radius: 6px;
}
.vip-desc-warning strong { color: var(--red); }

.vip-desc-info {
    color: #ddd;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
}
.vip-desc-info strong { color: #fff; }

.vip-desc-danger {
    color: var(--red);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
}
.vip-desc-danger strong { color: var(--red); }
/* ============================================================
   Уведомления: команда setinfo_pw
   ============================================================ */
.gift-card .msg {
    white-space: pre-line;
    line-height: 1.7;
}
/* ============================================================
   VIP: Селект способа привязки
   ============================================================ */
.vip-select {
    width: 100%;
    padding: 14px 45px 14px 18px;
    background-color: rgba(21,21,26,0.7);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23dc143c' d='M8 11L3 6h10z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px;
    border: 1px solid rgba(220,20,60,0.25);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: 0.3s;
    font-family: inherit;
}
.vip-select:hover {
    border-color: rgba(220,20,60,0.5);
}
.vip-select:focus {
    border-color: var(--red);
    box-shadow: 0 0 20px rgba(220,20,60,0.3);
}
.vip-select option {
    background: #15151a;
    color: #fff;
    padding: 10px;
    font-size: 14px;
}

.vip-help .accent {
    color: var(--red);
    font-weight: 800;
}

@media (max-width: 768px) {
    .dynasty-bg-watermark {
        width: 380px;
        height: 440px;
        opacity: 0.06;
    }
}