/* ============================================================
   TsepeshLand — единая тема
   Файл: /css/tl-theme.css
   Подключать: <link rel="stylesheet" href="/css/tl-theme.css"> в <head>
   ============================================================ */

/* ---------- Тёплый угольный фон (для страниц без своих секций) ---------- */
body.tl-warm-bg:not(.forum-page):not(.news-bg-list):not(.news-bg-article):not(.download-bg):not(.profile-bg):not(.servers-bg):not(.auth-bg):not(.rules-bg):not(.team-bg):not(.about-bg) {
    background: #140b08;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% 0%,   rgba(220,38,38,0.16), transparent 60%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(249,115,22,0.09), transparent 60%);
    background-attachment: fixed, fixed;
    color: #fff;
}

/* ---------- Градиентный текст ---------- */
.gradient-text {
    background: linear-gradient(to right, #dc2626, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Кнопки primary ---------- */
.btn-primary {
    background: linear-gradient(to right, #dc2626, #f97316);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 24px -10px rgba(249,115,22,0.7);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 34px -10px rgba(249,115,22,0.85);
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ---------- Навигация ---------- */
nav.tl-nav {
    background: rgba(20,11,8,0.78);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(249,115,22,0.18);
    box-shadow: 0 6px 30px -14px rgba(249,115,22,0.35);
    position: sticky;
    top: 0;
    z-index: 50;
}
nav.tl-nav a.tl-nav-link {
    color: #c8c8cf;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s ease;
}
nav.tl-nav a.tl-nav-link:hover,
nav.tl-nav a.tl-nav-link.active {
    color: #f97316;
}

/* ---------- Футер ---------- */
footer.tl-footer {
    background: rgba(20,11,8,0.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(249,115,22,0.14);
}
.tl-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}
.tl-footer-links a {
    color: #b0b0b8;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 4px;
    transition: color 0.15s ease;
}
.tl-footer-links a:hover {
    color: #f97316;
}

/* ---------- Карточки-документы (privacy, cookies и т.п.) ---------- */
.tl-doc-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
    border: 1px solid rgba(249,115,22,0.18);
    border-radius: 0.9rem;
    padding: 1.75rem;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 40px -22px rgba(249,115,22,0.35);
    position: relative;
    overflow: hidden;
}
.tl-doc-card::before {
    content: '';
    position: absolute; left: 0; right: 0; top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249,115,22,0.65), transparent);
}
.tl-doc-card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffb37a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.tl-doc-card p,
.tl-doc-card li {
    color: #c8c8cf;
    line-height: 1.7;
    font-size: 0.95rem;
}
.tl-doc-card ul {
    list-style: none;
    padding-left: 0;
}
.tl-doc-card li {
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.35rem;
}
.tl-doc-card li::before {
    content: '🔥';
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}
.tl-doc-card a {
    color: #f97316;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 4px;
}
.tl-doc-card a:hover {
    color: #ffb37a;
}

/* ---------- Тёплые карточки для логина/регистрации/админки ---------- */
.tl-warm-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
    border: 1px solid rgba(249,115,22,0.20);
    border-radius: 0.9rem;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 40px -22px rgba(249,115,22,0.35);
    position: relative;
}
.tl-warm-card::before {
    content: '';
    position: absolute; left: 0; right: 0; top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249,115,22,0.6), transparent);
}

/* ---------- Тёплые поля ввода ---------- */
.tl-warm-input,
.tl-warm-card input[type="text"],
.tl-warm-card input[type="email"],
.tl-warm-card input[type="password"] {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(249,115,22,0.20);
    color: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.tl-warm-input:focus,
.tl-warm-card input:focus {
    border-color: rgba(249,115,22,0.75);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
    outline: none;
}

/* ---------- Фиксированная навигация (для главной поверх hero) ---------- */
nav.tl-nav.tl-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    position: fixed;
}




/* ================= HALLOWEEN MODE V2 (2026-10-31 -> 2026-11-08) ================= */
/* !important — потому что Tailwind CDN грузится после и перебивает.               */
/* Флаг: <body class="halloween-mode">. Снятие: patch_halloween_off.py.            */

body.halloween-mode:not(.forum-page):not(.news-bg-list):not(.news-bg-article):not(.download-bg):not(.profile-bg):not(.servers-bg):not(.auth-bg):not(.rules-bg):not(.team-bg):not(.about-bg) {
    background:
        radial-gradient(1200px 600px at 15% 0%, rgba(168,85,247,0.10) 0%, transparent 60%),
        radial-gradient(1000px 500px at 85% 20%, rgba(255,140,26,0.12) 0%, transparent 55%),
        #1a0d0a !important;
    background-color: #1a0d0a !important;
    color: #f5e9dc !important;
}

body.halloween-mode .tl-warm-card,
body.halloween-mode .hero-card,
body.halloween-mode .tl-side-card,
body.halloween-mode .tl-doc-card,
body.halloween-mode .tl-stat-card {
    background: linear-gradient(180deg, rgba(60,20,40,0.75) 0%, rgba(25,10,15,0.75) 100%) !important;
    border-color: rgba(255,140,26,0.45) !important;
    box-shadow: 0 10px 40px -22px rgba(168,85,247,0.55) !important;
}

body.halloween-mode nav.tl-nav {
    background: rgba(26,13,10,0.85) !important;
    border-bottom: 1px solid rgba(168,85,247,0.35) !important;
}
body.halloween-mode footer.tl-footer {
    background: #120806 !important;
    border-top: 1px solid rgba(168,85,247,0.25) !important;
}

body.halloween-mode .gradient-text {
    background: linear-gradient(90deg, #ff8c1a 0%, #a855f7 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

body.halloween-mode .btn-primary {
    background: linear-gradient(180deg, #ff8c1a 0%, #d96a0f 100%) !important;
    box-shadow: 0 8px 30px -12px rgba(255,140,26,0.9) !important;
}

body.halloween-mode .halloween-pumpkin-logo::after {
    content: " \1F383";
    font-size: 0.9em;
    margin-left: 0.15em;
    filter: drop-shadow(0 0 6px rgba(255,140,26,0.8));
    animation: halloween-pumpkin-pulse 2.4s ease-in-out infinite;
}
@keyframes halloween-pumpkin-pulse {
    0%,100% { transform: scale(1); opacity: 0.9; }
    50%     { transform: scale(1.15); opacity: 1; }
}

body.halloween-mode .halloween-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.6rem;
    margin-left: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1a0d0a;
    background: linear-gradient(90deg, #ff8c1a, #a855f7);
    border-radius: 999px;
    box-shadow: 0 0 18px -4px rgba(255,140,26,0.8);
    animation: halloween-badge-glow 2.8s ease-in-out infinite;
}
@keyframes halloween-badge-glow {
    0%,100% { box-shadow: 0 0 18px -4px rgba(255,140,26,0.8); }
    50%     { box-shadow: 0 0 26px -2px rgba(168,85,247,0.9); }
}

body.halloween-mode .halloween-countdown {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffd9b0;
    background: rgba(26,13,10,0.75);
    border: 1px solid rgba(255,140,26,0.45);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}
body.halloween-mode .halloween-countdown b { color: #ff8c1a; }

body.halloween-mode .halloween-sparks {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
body.halloween-mode .halloween-sparks span {
    position: absolute;
    bottom: -10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: radial-gradient(circle, #ff8c1a 0%, #a855f7 70%, transparent 100%);
    opacity: 0;
    animation: halloween-spark-rise linear infinite;
    filter: blur(0.3px) drop-shadow(0 0 4px rgba(255,140,26,0.8));
}
body.halloween-mode .halloween-sparks span:nth-child(1) { left: 8%;  animation-duration: 9s;  animation-delay: 0s;   }
body.halloween-mode .halloween-sparks span:nth-child(2) { left: 22%; animation-duration: 11s; animation-delay: 2s;   }
body.halloween-mode .halloween-sparks span:nth-child(3) { left: 40%; animation-duration: 8s;  animation-delay: 4s;   }
body.halloween-mode .halloween-sparks span:nth-child(4) { left: 58%; animation-duration: 12s; animation-delay: 1s;   }
body.halloween-mode .halloween-sparks span:nth-child(5) { left: 74%; animation-duration: 10s; animation-delay: 5s;   }
body.halloween-mode .halloween-sparks span:nth-child(6) { left: 90%; animation-duration: 13s; animation-delay: 3s;   }
@keyframes halloween-spark-rise {
    0%   { transform: translateY(0)     scale(0.8); opacity: 0; }
    10%  { opacity: 0.9; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(-110vh) scale(1.1); opacity: 0; }
}

body.halloween-mode .halloween-bat {
    position: fixed;
    top: 40vh;
    left: 50vw;
    font-size: 2rem;
    pointer-events: none;
    z-index: 9999;
    animation: halloween-bat-fly 1.6s ease-out forwards;
    filter: drop-shadow(0 0 6px rgba(168,85,247,0.9));
}
@keyframes halloween-bat-fly {
    0%   { transform: translate(0,0) rotate(0deg) scale(0.6); opacity: 0; }
    15%  { opacity: 1; transform: translate(-4vw,-6vh) rotate(-15deg) scale(1); }
    60%  { opacity: 1; transform: translate(20vw,-30vh) rotate(15deg) scale(1.1); }
    100% { opacity: 0; transform: translate(45vw,-55vh) rotate(-10deg) scale(1.2); }
}

body.halloween-mode .halloween-hero-pumpkin {
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    filter: drop-shadow(0 0 12px rgba(255,140,26,0.7));
}
body.halloween-mode .halloween-hero-pumpkin:hover {
    transform: scale(1.08) rotate(-4deg);
    filter: drop-shadow(0 0 22px rgba(168,85,247,0.9));
}

@media (prefers-reduced-motion: reduce) {
    body.halloween-mode .halloween-sparks,
    body.halloween-mode .halloween-pumpkin-logo::after,
    body.halloween-mode .halloween-badge {
        animation: none !important;
    }
}

/* ================= /HALLOWEEN MODE V2 ================= */

/* ============================================================
   ФОНЫ СТРАНИЦ (2026-10-21)
   ============================================================ */

/* news.html — фон списка */
body.news-bg-list {
    background-image: linear-gradient(rgba(15,15,19,0.65), rgba(15,15,19,0.85)), url('/images/news-bg-list.webp') !important;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* news.html — фон статьи */
body.news-bg-article {
    background-image: linear-gradient(rgba(15,15,19,0.7), rgba(15,15,19,0.88)), url('/images/news-bg-article.webp') !important;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* download.html */
body.download-bg {
    background-image: linear-gradient(rgba(15,15,19,0.6), rgba(15,15,19,0.85)), url('/images/download-bg.webp') !important;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* profile.html */
body.profile-bg {
    background-image: linear-gradient(rgba(15,15,19,0.6), rgba(15,15,19,0.85)), url('/images/profile-bg.webp') !important;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* --- Хэллоуин-версии --- */
body.halloween-mode.news-bg-list {
    background-image: linear-gradient(rgba(26,13,10,0.88), rgba(26,13,10,0.95)), url('/images/news-bg-list-halloween.webp') !important;
}
body.halloween-mode.news-bg-article {
    background-image: linear-gradient(rgba(26,13,10,0.92), rgba(26,13,10,0.96)), url('/images/news-bg-article-halloween.webp') !important;
}
body.halloween-mode.download-bg {
    background-image: linear-gradient(rgba(26,13,10,0.85), rgba(26,13,10,0.95)), url('/images/download-bg-halloween.webp') !important;
}
body.halloween-mode.profile-bg {
    background-image: linear-gradient(rgba(26,13,10,0.85), rgba(26,13,10,0.95)), url('/images/profile-bg-halloween.webp') !important;
}

/* Мобильные: отключаем fixed (на iOS багается) */
@media (max-width: 768px) {
    body.news-bg-list,
    body.news-bg-article,
    body.download-bg,
    body.profile-bg {
        background-attachment: scroll;
    }
}


/* ============================================================
   ФИНАЛЬНЫЕ ФОНЫ (2026-10-21, maximum specificity)
   ============================================================ */
html body.tl-warm-bg.news-bg-list,
html body.news-bg-list {
    background-color: transparent !important;
    background-image: linear-gradient(rgba(15,15,19,0.55), rgba(15,15,19,0.75)), url('/images/news-bg-list.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}

html body.halloween-mode.news-bg-list,
html body.tl-warm-bg.halloween-mode.news-bg-list {
    background-color: transparent !important;
    background-image: linear-gradient(rgba(26,13,10,0.6), rgba(26,13,10,0.8)), url('/images/news-bg-list-halloween.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}

html body.tl-warm-bg.news-bg-article,
html body.news-bg-article {
    background-color: transparent !important;
    background-image: linear-gradient(rgba(15,15,19,0.6), rgba(15,15,19,0.8)), url('/images/news-bg-article.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}

html body.halloween-mode.news-bg-article {
    background-color: transparent !important;
    background-image: linear-gradient(rgba(26,13,10,0.6), rgba(26,13,10,0.8)), url('/images/news-bg-article-halloween.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}

html body.tl-warm-bg.download-bg,
html body.download-bg {
    background-color: transparent !important;
    background-image: linear-gradient(rgba(15,15,19,0.55), rgba(15,15,19,0.75)), url('/images/download-bg.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}

html body.halloween-mode.download-bg {
    background-color: transparent !important;
    background-image: linear-gradient(rgba(26,13,10,0.6), rgba(26,13,10,0.8)), url('/images/download-bg-halloween.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}

html body.tl-warm-bg.profile-bg,
html body.profile-bg {
    background-color: transparent !important;
    background-image: linear-gradient(rgba(15,15,19,0.2), rgba(15,15,19,0.4)), url('/images/profile-bg.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}

html body.halloween-mode.profile-bg {
    background-color: transparent !important;
    background-image: linear-gradient(rgba(26,13,10,0.25), rgba(26,13,10,0.45)), url('/images/profile-bg-halloween.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}


/* ============================================================
   ФИКС АВАТАРКИ В ШАПКЕ (2026-10-22)
   ============================================================ */
#auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
}
#auth-buttons img,
#auth-buttons .avatar-wrap,
#auth-buttons .avatar-circle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    object-fit: cover;
}
#auth-buttons a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}


/* ==========================================================
   ФОНЫ НОВЫХ СТРАНИЦ (servers / auth / rules / team / about)
   ========================================================== */

/* --- SERVERS --- */
body.servers-bg {
    background-image: linear-gradient(rgba(15,15,19,0.55), rgba(15,15,19,0.80)), url('/images/servers_bg.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}
body.halloween-mode.servers-bg {
    background-image: linear-gradient(rgba(26,13,10,0.60), rgba(26,13,10,0.85)), url('/images/servers_bg_halloween.webp') !important;
}

/* --- AUTH (login + register) --- */
body.auth-bg {
    background-image: linear-gradient(rgba(15,15,19,0.55), rgba(15,15,19,0.80)), url('/images/auth_bg.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}
body.halloween-mode.auth-bg {
    background-image: linear-gradient(rgba(26,13,10,0.60), rgba(26,13,10,0.85)), url('/images/auth_bg_halloween.webp') !important;
}

/* --- RULES --- */
body.rules-bg {
    background-image: linear-gradient(rgba(15,15,19,0.60), rgba(15,15,19,0.85)), url('/images/rules_bg.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}
body.halloween-mode.rules-bg {
    background-image: linear-gradient(rgba(26,13,10,0.65), rgba(26,13,10,0.88)), url('/images/rules_bg_halloween.webp') !important;
}

/* --- TEAM --- */
body.team-bg {
    background-image: linear-gradient(rgba(15,15,19,0.60), rgba(15,15,19,0.85)), url('/images/team_bg.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}
body.halloween-mode.team-bg {
    background-image: linear-gradient(rgba(26,13,10,0.65), rgba(26,13,10,0.88)), url('/images/team_bg_halloween.webp') !important;
}

/* --- ABOUT --- */
body.about-bg {
    background-image: linear-gradient(rgba(15,15,19,0.55), rgba(15,15,19,0.85)), url('/images/about_bg.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}
body.halloween-mode.about-bg {
    background-image: linear-gradient(rgba(26,13,10,0.60), rgba(26,13,10,0.88)), url('/images/about_bg_halloween.webp') !important;
}

/* === ФОН ФОРУМА === */
html body.forum-page {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.15), transparent 40%),
        linear-gradient(rgba(20, 11, 8, 0.55), rgba(20, 11, 8, 0.75)),
        url('/images/forum_bg.webp') !important;
    background-size: cover, cover, cover !important;
    background-position: center, center, center !important;
    background-attachment: fixed, fixed, fixed !important;
}
html body.forum-page.halloween-mode {
    background-image:
        radial-gradient(circle at 80% 30%, rgba(168, 85, 247, 0.2), transparent 45%),
        linear-gradient(rgba(20, 11, 8, 0.6), rgba(20, 11, 8, 0.8)),
        url('/images/forum_bg_halloween.webp') !important;
}

/* Усиленный селектор: перебиваем Tailwind bg-brand-dark */
html body.forum-page.bg-brand-dark {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.15), transparent 40%),
        linear-gradient(rgba(20, 11, 8, 0.55), rgba(20, 11, 8, 0.75)),
        url('/images/forum_bg.webp') !important;
    background-size: cover, cover, cover !important;
    background-position: center, center, center !important;
    background-attachment: fixed, fixed, fixed !important;
    background-color: #140b08 !important;
}
html body.forum-page.bg-brand-dark.halloween-mode {
    background-image:
        radial-gradient(circle at 80% 30%, rgba(168, 85, 247, 0.2), transparent 45%),
        linear-gradient(rgba(20, 11, 8, 0.6), rgba(20, 11, 8, 0.8)),
        url('/images/forum_bg_halloween.webp') !important;
}


/* === Кнопка «Магазин привилегий» в ЛК === */
.tl-menu-btn-shop {
    background: linear-gradient(135deg, rgba(249,115,22,0.25), rgba(249,115,22,0.08)) !important;
    border: 1px solid rgba(249,115,22,0.4) !important;
    color: #fff !important;
    font-weight: 600;
}
.tl-menu-btn-shop:hover {
    background: linear-gradient(135deg, rgba(249,115,22,0.4), rgba(249,115,22,0.15)) !important;
    border-color: rgba(249,115,22,0.7) !important;
    box-shadow: 0 0 16px rgba(249,115,22,0.35);
    transform: translateY(-1px);
}
.tl-menu-btn-shop .tl-menu-arrow {
    margin-left: auto;
    opacity: 0.7;
    transition: transform 0.2s;
}
.tl-menu-btn-shop:hover .tl-menu-arrow {
    transform: translateX(3px);
    opacity: 1;
}


/* === ЛК: layout профиля (аватарка слева, привилегия справа) === */
.tl-profile-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.tl-profile-hero .tl-avatar-col,
.tl-profile-hero .tl-privilege-col {
    flex: 0 0 auto;
}
.tl-profile-center {
    flex: 1 1 auto;
    text-align: center;
    min-width: 180px;
}
.tl-privilege-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 16px;
    filter: drop-shadow(0 4px 16px var(--priv-glow, rgba(249,115,22,0.45)));
    transition: transform 0.3s;
}
.tl-privilege-img:hover { transform: scale(1.05) rotate(-2deg); }

/* === Красивый бейдж привилегии === */
.tl-priv-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--badge-c1, #f97316), var(--badge-c2, #dc2626));
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 0 18px var(--badge-glow, rgba(249,115,22,0.55));
    animation: tl-badge-pulse 2.4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}
.tl-priv-badge::after {
    content: "";
    position: absolute;
    top: 0; left: -60%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
    animation: tl-badge-shine 3s ease-in-out infinite;
}
@keyframes tl-badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}
@keyframes tl-badge-shine {
    0% { left: -60%; }
    50%, 100% { left: 130%; }
}
.tl-priv-badge.tl-priv-default {
    --badge-c1: #7c2d12;
    --badge-c2: #1a1a20;
    --badge-glow: rgba(120,60,20,0.4);
    animation: none;
}
