/* ==========================================================================
   1. БАЗОВЫЕ СТИЛИ
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #030408;
    --card-bg: rgba(13, 15, 23, 0.65);
    --card-border: rgba(255, 255, 255, 0.12);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --avatar-glow: rgba(169, 112, 255, 0.85);
    --hover-bg: 0.20;
    --hover-glow: 0.40;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
    position: relative;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

#particle-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.aurora-bg {
    position: fixed;
    inset: -50%;
    width: 200%;
    height: 200%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 20% 20%, rgba(169, 112, 255, 0.18) 0%, transparent 40%), radial-gradient(circle at 80% 80%, rgba(0, 119, 255, 0.15) 0%, transparent 40%), radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.12) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(83, 252, 24, 0.08) 0%, transparent 35%);
    filter: blur(80px);
    animation: auroraMove 180s ease-in-out infinite alternate;
}

@keyframes auroraMove {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.15); }
    100% { transform: rotate(360deg) scale(1); }
}

.card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 32px 20px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   2. АВАТАРКА
   ========================================================================== */
.avatar-container {
    position: relative;
    width: 104px;
    height: 104px;
    margin: 0 auto 16px;
    overflow: visible;
    isolation: isolate;
}

.avatar-container::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: var(--avatar-glow);
    opacity: 0.85;
    filter: blur(14px);
    z-index: -1;
    transition: background 0.8s ease;
    animation: avatarPulse 3.5s ease-in-out infinite alternate;
}

@keyframes avatarPulse {
    0% { opacity: 0.6; transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1.06); }
}

.avatar {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.avatar-heart-fx {
    position: absolute;
    inset: -32px;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

.avatar-heart {
    position: absolute;
    bottom: 12px;
    display: block;
    font-family: Arial, sans-serif;
    line-height: 1;
    color: var(--heart-color);
    opacity: 0;
    filter: blur(0.8px);
    text-shadow: 0 0 10px currentColor;
    pointer-events: none;
    user-select: none;
    will-change: transform, opacity;
    animation: avatarHeartFloat linear infinite;
}

@keyframes avatarHeartFloat {
    0% { transform: translate3d(0, 15px, 0) rotate(-10deg) scale(0.75); opacity: 0; }
    15% { opacity: var(--heart-opacity); }
    45% { transform: translate3d(var(--heart-drift1), -35px, 0) rotate(5deg) scale(1); opacity: var(--heart-opacity); }
    80% { transform: translate3d(var(--heart-drift2), -72px, 0) rotate(-4deg) scale(1.03); opacity: var(--heart-opacity); }
    100% { transform: translate3d(var(--heart-drift3), -105px, 0) rotate(8deg) scale(0.85); opacity: 0; }
}

.username {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 500;
}

.section-title {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 22px 0 10px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.85;
}

.section-title::before,
.section-title::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--card-border);
}

.section-title::before {
    margin-right: 12px;
}

.section-title::after {
    margin-left: 12px;
}

.links {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stream-ticker {
    position: absolute;
    top: -24px;
    left: 0;
    width: 100%;
    overflow: hidden;
    padding: 9px 0;
    color: #e3c36e;
    white-space: nowrap;
}

.stream-ticker-track {
    display: inline-block;
    padding-left: 100%;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-shadow: 0 0 8px rgba(227, 195, 110, 0.3);
    animation: streamTicker 18s linear infinite;
}

.stream-ticker + .section-title {
    margin-top: 12px;
}

@keyframes streamTicker {
    to { transform: translateX(-100%); }
}

.stream-now {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 0;
    padding: 12px 18px;
    overflow: hidden;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    box-shadow: none;
}

.stream-star-fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
    z-index: 0;
}

.stream-now-label {
    position: relative;
    z-index: 1;
    color: #fde68a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.stream-now-title {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

#stream-now .section-title {
    color: #fde68a;
}

.stream-star {
    position: absolute;
    bottom: -20px;
    color: #facc15;
    font-family: Arial, sans-serif;
    font-weight: 800;
    line-height: 1;
    opacity: 0;
    filter: blur(1px);
    text-shadow: 0 0 12px currentColor;
    animation: buttonSymbolFloat linear infinite;
}

/* ==========================================================================
   3. КНОПКИ И ЦВЕТА
   ========================================================================== */
.btn {
    --live-accent: var(--accent);
    --live-rgb: var(--accent-rgb);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    isolation: isolate;
}

.btn-twitch {
    --accent: #a970ff;
    --accent-rgb: 169, 112, 255;
}

.btn-youtube {
    --accent: #ff2a2a;
    --accent-rgb: 255, 42, 42;
}

.btn-vk {
    --accent: #0077ff;
    --accent-rgb: 0, 119, 255;
}

.btn-kick {
    --accent: #53fc18;
    --accent-rgb: 83, 252, 24;
}

.btn-goodgame {
    --accent: #5b8fc9;
    --accent-rgb: 91, 143, 201;
    --hover-glow-local: 0.80;
    --live-accent: #4371a5;
    --live-rgb: 67, 113, 165;
}

.btn-order {
    --accent: #00f2fe;
    --accent-rgb: 0, 242, 254;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-telegram {
    --accent: #24a1de;
    --accent-rgb: 36, 161, 222;
}

.btn-discord {
    --accent: #5865f2;
    --accent-rgb: 88, 101, 242;
}

.btn-donatty {
    --accent: #a855f7;
    --accent-rgb: 168, 85, 247;
}

.btn-donationalerts {
    --accent: #f59e0b;
    --accent-rgb: 245, 158, 11;
}

.btn-fetta {
    --accent: #ec4899;
    --accent-rgb: 236, 72, 153;
}

.btn-boosty {
    --accent: #f15f2c;
    --accent-rgb: 241, 95, 44;
}

.btn-memes {
    --accent: #facc15;
    --accent-rgb: 250, 204, 21;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), var(--hover-bg));
    box-shadow: 0 0 20px rgba(var(--accent-rgb), var(--hover-glow-local, var(--hover-glow)));
}

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

.btn-order:hover {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.20), rgba(79, 172, 254, 0.20));
}

.btn .icon-box {
    position: absolute;
    left: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #ffffff;
    opacity: 0.85;
    z-index: 2;
    transition: transform 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.btn:hover .icon-box {
    transform: scale(1.15);
    color: var(--accent);
    opacity: 1;
}

.btn .icon-box .icon-img,
.btn .icon-box svg {
    width: 100%;
    height: 100%;
    display: block;
}

.btn .icon-box .icon-img {
    object-fit: contain;
}

.btn-text-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 35px;
    position: relative;
    z-index: 2;
}

.btn-title {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: #ffffff;
}

.btn-subtitle {
    font-weight: 500;
    font-size: 11.5px;
    margin-top: 3px;
    color: var(--text-secondary);
    opacity: 0.8;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.btn:hover .btn-subtitle {
    color: var(--accent);
    opacity: 1;
}

/* ==========================================================================
   4. ЛЕТАЮЩИЕ СИМВОЛЫ
   ========================================================================== */
.button-symbol-fx {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.button-fx-symbol {
    position: absolute;
    bottom: -20px;
    display: block;
    line-height: 1;
    font-weight: 800;
    opacity: 0;
    user-select: none;
    pointer-events: none;
    color: var(--accent);
    filter: blur(1px);
    text-shadow: 0 0 12px currentColor;
    will-change: transform, opacity;
    animation: buttonSymbolFloat linear infinite;
}

.button-fx-symbol.like {
    width: 17px;
    height: 17px;
}

.button-fx-symbol.like svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.button-fx-symbol.heart,
.button-fx-symbol.dollar {
    font-family: Arial, sans-serif;
}

@keyframes buttonSymbolFloat {
    0% { transform: translate3d(0, 24px, 0) rotate(-8deg) scale(0.82); opacity: 0; }
    12% { opacity: var(--fx-opacity); }
    45% { transform: translate3d(var(--drift1), -18px, 0) rotate(3deg) scale(1); opacity: var(--fx-opacity); }
    80% { transform: translate3d(var(--drift2), -47px, 0) rotate(-3deg) scale(1.03); opacity: var(--fx-opacity); }
    92% { opacity: var(--fx-opacity); }
    100% { transform: translate3d(var(--drift3), -74px, 0) rotate(7deg) scale(0.9); opacity: 0; }
}

/* ==========================================================================
   5. LIVE
   ========================================================================== */
.live-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 19px;
    position: absolute;
    right: 14px;
    color: #ffffff;
    font-size: 0;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 3;
}

/* Пока сервер не ответил: вместо текста показываем индикатор ожидания. */
.live-badge::before {
    content: '';
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: statusSpin 0.75s linear infinite;
}

.btn-status-ready .live-badge::before {
    display: none;
}

@keyframes statusSpin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 var(--badge-glow); }
    70% { box-shadow: 0 0 0 7px rgba(0, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

.btn.btn-live {
    border-color: rgba(var(--live-rgb), 0.6) !important;
    background: rgba(var(--live-rgb), 0.12) !important;
    box-shadow: 0 0 20px rgba(var(--live-rgb), 0.3);
}

.btn.btn-live .live-badge {
    display: inline-block;
    background: var(--live-accent);
    --badge-glow: rgba(var(--live-rgb), 0.8);
    animation: pulse 2s infinite;
    font-size: 9px;
}

.btn.btn-offline .live-badge {
    display: inline-block;
    background: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.35);
    font-size: 9px;
}

.btn.btn-live .icon-box {
    color: var(--live-accent);
    opacity: 1;
}

.btn-kick.btn-live .live-badge {
    color: #000000;
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.footer {
    margin-top: 28px;
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.6;
}
