/* CoreBlocks — glass liquid design system */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@800;900&family=TikTok+Sans:wght@400;700&family=Audiowide&display=swap');

@font-face {
    font-family: 'FE-Schrift XP';
    src: url('fonts/FE-SchriftXP-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --orange: #FF7B00;
    --blue: #0057B3;
    --purple: #7c3aed;
    --violet: #8b5cf6;
    --green: #10b981;
    --red: #ef4444;
    --amber: #f59e0b;

    --bg: #080613;
    --surface: rgba(255, 255, 255, 0.04);
    --card: rgba(255, 255, 255, 0.05);
    --elevated: rgba(255, 255, 255, 0.08);

    --text: #f3f4f6;
    --muted: #9ca3af;
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow: 0 8px 32px rgba(0,0,0,0.35);
    --shadow-glow: 0 0 28px rgba(124,58,237,0.18);

    --btn-gradient: linear-gradient(90deg, rgba(53, 56, 242, 0.9) 0%, rgba(115, 80, 234, 0.9) 55%, rgba(200, 169, 255, 0.9) 100%);
    --btn-glow: 0 6px 22px rgba(115, 80, 234, 0.35);

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --glass: blur(18px) saturate(170%);
    --glass-soft: blur(12px) saturate(150%);
}

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

.ui-click-aura {
    --ui-aura-rgb: 124, 92, 255;
    --ui-aura-peak-scale: 1.04;
    --ui-aura-end-scale: 1.28;
    --ui-aura-glow: 34px;
    position: fixed;
    z-index: 10000;
    display: block;
    pointer-events: none;
    border: 1px solid rgba(var(--ui-aura-rgb), 0.9);
    background: radial-gradient(circle at 50% 50%, rgba(var(--ui-aura-rgb), 0.2), transparent 68%);
    box-shadow:
        0 0 14px rgba(var(--ui-aura-rgb), 0.7),
        0 0 var(--ui-aura-glow) rgba(var(--ui-aura-rgb), 0.44),
        inset 0 0 16px rgba(var(--ui-aura-rgb), 0.2);
    transform: scale(0.84);
    transform-origin: center;
    will-change: transform, opacity;
    animation: uiClickAuraBurst 0.62s cubic-bezier(0.16, 0.75, 0.3, 1) forwards;
}

.ui-click-aura.is-green { --ui-aura-rgb: 16, 185, 129; }
.ui-click-aura.is-gold { --ui-aura-rgb: 245, 158, 11; }
.ui-click-aura.is-red { --ui-aura-rgb: 239, 68, 68; }
.ui-click-aura.is-blue { --ui-aura-rgb: 59, 130, 246; }

@keyframes uiClickAuraBurst {
    0% {
        opacity: 0;
        transform: scale(0.82);
        filter: brightness(1.7);
    }
    24% {
        opacity: 1;
        transform: scale(var(--ui-aura-peak-scale));
    }
    100% {
        opacity: 0;
        transform: scale(var(--ui-aura-end-scale));
        filter: brightness(1);
    }
}

.ui-click-aura.is-edge-bound {
    box-shadow:
        0 0 10px rgba(var(--ui-aura-rgb), 0.62),
        0 0 var(--ui-aura-glow) rgba(var(--ui-aura-rgb), 0.32),
        inset 0 0 12px rgba(var(--ui-aura-rgb), 0.2);
}

@media (max-width: 600px) {
    .ui-click-aura {
        border-width: 1px;
        background: radial-gradient(circle at 50% 50%, rgba(var(--ui-aura-rgb), 0.15), transparent 72%);
    }
}

img, video, iframe, svg {
    max-width: 100%;
    height: auto;
}

html, body {
    min-height: 100vh;
}

html {
    background: #080613;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: rgba(8, 6, 19, 0.78);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    z-index: 0;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
        url('Icon2.png') no-repeat center / cover;
    background:
        linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
        image-set(url('Icon2.webp') type('image/webp'), url('Icon2.png') type('image/png'))
        no-repeat center / cover;
}

body::after {
    content: '';
    position: fixed;
    inset: -10%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 30%, rgba(53, 56, 242, 0.20) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(115, 80, 234, 0.18) 0%, transparent 48%),
        radial-gradient(circle at 55% 15%, rgba(200, 169, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 20%, rgba(115, 80, 234, 0.12) 0%, transparent 38%),
        radial-gradient(circle at 25% 80%, rgba(53, 56, 242, 0.12) 0%, transparent 40%);
    filter: blur(80px);
    animation: liquidMove 24s ease-in-out infinite alternate;
    opacity: 0.7;
}

@keyframes liquidMove {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.12) translate(-2%, 2%); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    padding: 40px 20px;
    margin: 0 auto 30px;
    max-width: 1200px;
    border-bottom: 1px solid var(--border);
}

.header-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
    max-width: 100%;
    position: relative;
}

.header-title::before {
    content: '';
    position: absolute;
    inset: -22%;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 40%, rgba(255, 123, 0, 0.45) 0%, transparent 55%),
        radial-gradient(circle at 70% 60%, rgba(0, 87, 179, 0.45) 0%, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(115, 80, 234, 0.32) 0%, transparent 60%);
    filter: blur(26px);
    opacity: 0.55;
    animation: brandAura 9s ease-in-out infinite alternate;
    transition: opacity 0.5s ease;
}

@keyframes brandAura {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.45;
    }
    50% {
        transform: scale(1.14) translate(2%, -2%);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.06) translate(-1%, 1%);
        opacity: 0.5;
    }
}

.header h1 {
    font-size: 2.6em;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--btn-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header h1.brand {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin: 0;
    padding: clamp(8px, 1.5vw, 10px) clamp(12px, 3vw, 22px);
    border-radius: 13px;
    background:
        linear-gradient(145deg, rgba(22, 20, 43, 0.92), rgba(9, 8, 22, 0.88)) padding-box,
        linear-gradient(115deg, rgba(93, 141, 255, 0.72), rgba(200, 169, 255, 0.3), rgba(124, 92, 255, 0.75), rgba(93, 141, 255, 0.5)) border-box;
    background-size: 100% 100%, 240% 240%;
    border: 1px solid transparent;
    box-shadow:
        0 14px 38px rgba(0, 0, 0, 0.35),
        0 0 32px rgba(93, 141, 255, 0.16),
        0 0 60px rgba(124, 92, 255, 0.1),
        inset 0 1px rgba(255, 255, 255, 0.07);
    overflow: hidden;
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    font-family: 'TikTok Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    font-size: clamp(0.95rem, 4.2vw, 1.35rem);
    letter-spacing: 0.06em;
    animation: brandFrameFlow 8s ease-in-out infinite alternate;
    transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.3, 1), box-shadow 0.35s ease;
    cursor: default;
}

.header h1.brand::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.075) 45%, transparent 70%);
    transform: translateX(-115%);
    animation: brandFrameSweep 6s ease-in-out infinite;
    pointer-events: none;
}

.header h1.brand::after {
    content: '';
    position: absolute;
    inset: 3px;
    z-index: 0;
    border: 1px solid rgba(255, 255, 255, 0.035);
    border-radius: 10px;
    pointer-events: none;
}

@keyframes brandFrameFlow {
    0% { background-position: 0 0, 0% 50%; }
    100% { background-position: 0 0, 100% 50%; }
}

@keyframes brandFrameSweep {
    0%, 58% { transform: translateX(-115%); opacity: 0; }
    68% { opacity: 1; }
    86%, 100% { transform: translateX(115%); opacity: 0; }
}

.header h1.brand:hover {
    transform: scale(1.045) translateY(-3px);
    box-shadow:
        0 18px 46px rgba(0, 0, 0, 0.4),
        0 0 38px rgba(93, 141, 255, 0.3),
        0 0 75px rgba(124, 92, 255, 0.2),
        inset 0 1px rgba(255, 255, 255, 0.11);
}

.header h1.brand:hover .brand-text {
    animation-duration: 1.2s;
    filter: brightness(1.15);
}

.header h1.brand:hover .brand-text .spider-emoji {
    animation-duration: 1.5s;
}

.header h1.brand.brand-pressed {
    animation: brandClickPress 0.52s cubic-bezier(0.2, 0.85, 0.3, 1);
}

.header h1.brand.brand-pressed::after {
    animation: brandClickBorder 0.52s ease-out;
}

.header h1.brand.brand-pressed .brand-text {
    animation: brandTextClick 0.52s ease-out, y2kShine 4s linear infinite 0.52s;
}

@keyframes brandClickPress {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    18% {
        transform: translateY(2px) scale(0.95);
        filter: brightness(1.12);
    }
    48% {
        transform: translateY(-4px) scale(1.065);
        filter: brightness(1.25);
        box-shadow:
            0 18px 46px rgba(0, 0, 0, 0.4),
            0 0 42px rgba(93, 141, 255, 0.45),
            0 0 80px rgba(124, 92, 255, 0.28);
    }
    72% {
        transform: translateY(-1px) scale(0.99);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

@keyframes brandClickBorder {
    0% {
        opacity: 0.3;
        border-color: rgba(255, 255, 255, 0.04);
        box-shadow: inset 0 0 0 rgba(93, 141, 255, 0);
    }
    45% {
        opacity: 1;
        border-color: rgba(180, 211, 255, 0.9);
        box-shadow: inset 0 0 18px rgba(93, 141, 255, 0.25), 0 0 18px rgba(124, 92, 255, 0.5);
    }
    100% {
        opacity: 1;
        border-color: rgba(255, 255, 255, 0.035);
        box-shadow: inset 0 0 0 rgba(93, 141, 255, 0);
    }
}

@keyframes brandTextClick {
    0%, 100% { letter-spacing: -0.025em; filter: brightness(1); }
    42% { letter-spacing: 0.01em; filter: brightness(1.45) drop-shadow(0 0 8px rgba(145, 185, 255, 0.7)); }
}

.brand-text {
    background:
        linear-gradient(120deg, rgba(255,255,255,0) 20%, #fff 42%, rgba(255,255,255,0) 62%),
        linear-gradient(110deg, #ffffff 5%, #ded7ff 42%, #91b9ff 72%, #c8a9ff 100%);
    background-size: 200% 100%, 100% 100%;
    background-position: 150% 0, 0 0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-transform: uppercase;
    vertical-align: middle;
    position: relative;
    z-index: 1;
    font-family: 'Futura Extra Bold', 'Futura PT Extra Bold', Futura, 'Montserrat', 'Arial Black', sans-serif;
    font-weight: 900;
    letter-spacing: -0.025em;
    font-stretch: expanded;
    animation: y2kShine 4s linear infinite;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.72)) drop-shadow(0 0 8px rgba(145, 185, 255, 0.18));
}

.brand-text .spider-emoji {
    display: inline-block;
    transform-origin: 50% 80%;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    color: initial;
    text-shadow: none;
    animation: spiderIdle 3.2s ease-in-out infinite;
    will-change: transform;
}

@keyframes spiderIdle {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-5deg) scale(1); }
    20% { transform: translate3d(1px, -2px, 0) rotate(4deg) scale(1.04); }
    38% { transform: translate3d(-1px, 0, 0) rotate(-3deg) scale(0.98); }
    58% { transform: translate3d(2px, -1px, 0) rotate(6deg) scale(1.03); }
    78% { transform: translate3d(0, 1px, 0) rotate(-4deg) scale(1); }
}

.walk-spider {
    position: absolute;
    font-size: 0.85em;
    line-height: 1;
    pointer-events: none;
    opacity: 0;
    z-index: 3;
    top: 0.75em;
    left: 0.75em;
    transform: translate(-50%, -50%);
    transition: opacity 0.35s ease;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.4));
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.walk-spider .spider-body {
    display: inline-block;
    position: relative;
    line-height: 1;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.walk-spider .web-shot {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 0.85em;
    line-height: 1;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.brand.music-active .brand-text .spider-emoji {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brand.music-active .walk-spider {
    opacity: 1;
    animation: spiderWalk 8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    filter:
        drop-shadow(2px 0 3px rgba(255, 123, 0, 0.75))
        drop-shadow(-2px 0 3px rgba(0, 87, 179, 0.75))
        drop-shadow(3px 0 4px rgba(115, 80, 234, 0.55))
        drop-shadow(-3px 0 4px rgba(255, 123, 0, 0.55))
        drop-shadow(0 0 8px rgba(0, 87, 179, 0.8));
}

.brand.music-active .walk-spider .spider-body {
    animation: spiderPulse 0.72s ease-in-out infinite;
}

.brand.music-active .walk-spider .web-shot {
    animation: spiderWebShoot 8s ease-out infinite;
    animation-delay: calc(var(--i) * 1s);
}

@keyframes spiderWalk {
    0% { top: 0.75em; left: 0.75em; transform: translate(-50%, -50%) rotate(-10deg) scale(1); }
    7% { top: 0.75em; left: 45%; transform: translate(-50%, -50%) rotate(8deg) scale(1.1); }
    14% { top: 0.75em; left: calc(100% - 0.75em); transform: translate(-50%, -50%) rotate(-6deg) scale(1); }
    21% { top: 30%; left: calc(100% - 0.75em); transform: translate(-50%, -50%) rotate(12deg) scale(1.1); }
    28% { top: calc(100% - 0.75em); left: calc(100% - 0.75em); transform: translate(-50%, -50%) rotate(-8deg) scale(1); }
    35% { top: calc(100% - 0.75em); left: 55%; transform: translate(-50%, -50%) rotate(5deg) scale(1.1); }
    42% { top: calc(100% - 0.75em); left: 0.75em; transform: translate(-50%, -50%) rotate(-12deg) scale(1); }
    49% { top: 65%; left: 0.75em; transform: translate(-50%, -50%) rotate(10deg) scale(1.1); }
    56% { top: 35%; left: 0.75em; transform: translate(-50%, -50%) rotate(-5deg) scale(1); }
    63% { top: 0.75em; left: 25%; transform: translate(-50%, -50%) rotate(7deg) scale(1.1); }
    70% { top: 25%; left: 50%; transform: translate(-50%, -50%) rotate(-10deg) scale(1); }
    77% { top: 60%; left: 70%; transform: translate(-50%, -50%) rotate(6deg) scale(1.1); }
    84% { top: calc(100% - 0.75em); left: 40%; transform: translate(-50%, -50%) rotate(-8deg) scale(1); }
    91% { top: 50%; left: 30%; transform: translate(-50%, -50%) rotate(9deg) scale(1.1); }
    100% { top: 0.75em; left: 0.75em; transform: translate(-50%, -50%) rotate(-10deg) scale(1); }
}

@keyframes spiderPulse {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1) rotate(-3deg); }
    35% { transform: translate3d(1px, -1px, 0) scale(1.06) rotate(4deg); }
    70% { transform: translate3d(-1px, 1px, 0) scale(0.98) rotate(-2deg); }
}

@keyframes spiderWebShoot {
    0%, 4% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
    5% { opacity: 0.85; transform: translate(-50%, -50%) scale(0.85); }
    11% { opacity: 0; transform: translate(-50%, -50%) rotate(calc(var(--i) * 45deg)) translateX(0.9em) rotate(calc(var(--i) * -45deg)) scale(0.55); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
}

.fire-particle {
    position: absolute;
    bottom: -25%;
    left: calc(var(--i) * 14% - 7%);
    font-size: 0.8em;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 0 4px #ff5e00);
    animation: flyFire 3.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.6s);
}

@keyframes flyFire {
    0% {
        transform: translateY(0) translateX(0) scale(0.6);
        opacity: 0;
    }
    15% {
        opacity: 0.85;
    }
    50% {
        transform: translateY(-120%) translateX(12px) scale(1);
        opacity: 0.9;
    }
    85% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-240%) translateX(-8px) scale(0.7);
        opacity: 0;
    }
}

.water-particle {
    position: absolute;
    top: -25%;
    left: calc(var(--i) * 14% - 7%);
    font-size: 0.8em;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 0 4px #00c3ff);
    animation: flyWater 3.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.6s + 1.2s);
}

@keyframes flyWater {
    0% {
        transform: translateY(0) translateX(0) scale(0.6);
        opacity: 0;
    }
    15% {
        opacity: 0.85;
    }
    50% {
        transform: translateY(120%) translateX(-12px) scale(1);
        opacity: 0.9;
    }
    85% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(240%) translateX(8px) scale(0.7);
        opacity: 0;
    }
}

.web-particle {
    position: absolute;
    top: -25%;
    left: calc(var(--i) * 14% - 0%);
    font-size: 0.75em;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 0 3px rgba(200, 200, 220, 0.75));
    animation: flyWeb 4.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.55s + 0.4s);
}

@keyframes flyWeb {
    0% {
        transform: translateY(0) translateX(0) scale(0.5) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 0.7;
    }
    50% {
        transform: translateY(160%) translateX(10px) scale(1) rotate(45deg);
        opacity: 0.8;
    }
    80% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(260%) translateX(-10px) scale(0.6) rotate(90deg);
        opacity: 0;
    }
}

.lightning-particle {
    position: absolute;
    bottom: -25%;
    left: calc(var(--i) * 14% - 14%);
    font-size: 0.85em;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 0 4px #ffd700);
    animation: flyLightning 2.8s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.45s + 0.8s);
}

@keyframes flyLightning {
    0% {
        transform: translateY(0) translateX(0) scale(0.6) rotate(-10deg);
        opacity: 0;
    }
    10% {
        opacity: 0.95;
    }
    40% {
        transform: translateY(-120%) translateX(-10px) scale(1) rotate(5deg);
        opacity: 0.9;
    }
    70% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-220%) translateX(12px) scale(0.7) rotate(-5deg);
        opacity: 0;
    }
}

.fire-particle,
.water-particle,
.web-particle,
.lightning-particle {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.fire-particle {
    --drift: calc((var(--i) - 3.5) * 2px);
    bottom: -30%;
    font-size: 0.78em;
    animation: flyFire 4.1s cubic-bezier(0.25, 0.65, 0.45, 1) infinite;
    animation-delay: calc(var(--i) * -0.68s);
}

@keyframes flyFire {
    0% { transform: translate3d(0, 0, 0) rotate(-8deg) scale(0.45); opacity: 0; }
    12% { opacity: 0.75; }
    30% { transform: translate3d(var(--drift), -75%, 0) rotate(7deg) scale(0.92); opacity: 0.85; }
    52% { transform: translate3d(calc(var(--drift) * -1), -145%, 0) rotate(-5deg) scale(1.05); opacity: 0.72; }
    74% { transform: translate3d(var(--drift), -215%, 0) rotate(8deg) scale(0.82); opacity: 0.48; }
    100% { transform: translate3d(calc(var(--drift) * -0.5), -300%, 0) rotate(-6deg) scale(0.42); opacity: 0; }
}

.water-particle {
    --drift: calc((var(--i) - 3.5) * 2.5px);
    top: -30%;
    font-size: 0.78em;
    animation: flyWater 4.4s cubic-bezier(0.35, 0, 0.65, 1) infinite;
    animation-delay: calc(var(--i) * -0.72s - 1.1s);
}

@keyframes flyWater {
    0% { transform: translate3d(0, 0, 0) rotate(-18deg) scale(0.45); opacity: 0; }
    14% { opacity: 0.68; }
    34% { transform: translate3d(calc(var(--drift) * -1), 85%, 0) rotate(8deg) scale(0.9); opacity: 0.82; }
    58% { transform: translate3d(var(--drift), 165%, 0) rotate(-10deg) scale(1); opacity: 0.7; }
    80% { transform: translate3d(calc(var(--drift) * -0.7), 235%, 0) rotate(10deg) scale(0.72); opacity: 0.4; }
    100% { transform: translate3d(var(--drift), 310%, 0) rotate(18deg) scale(0.4); opacity: 0; }
}

.web-particle {
    --drift: calc((var(--i) - 3.5) * 2px);
    top: -28%;
    left: calc(var(--i) * 14%);
    font-size: 0.7em;
    animation: flyWeb 6.2s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    animation-delay: calc(var(--i) * -0.93s - 0.4s);
}

@keyframes flyWeb {
    0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(0.35); opacity: 0; }
    18% { opacity: 0.5; }
    40% { transform: translate3d(var(--drift), 105%, 0) rotate(55deg) scale(0.85); opacity: 0.65; }
    68% { transform: translate3d(calc(var(--drift) * -1), 195%, 0) rotate(125deg) scale(0.72); opacity: 0.48; }
    100% { transform: translate3d(calc(var(--drift) * 0.5), 310%, 0) rotate(210deg) scale(0.38); opacity: 0; }
}

.lightning-particle {
    --drift: calc((var(--i) - 3.5) * 1.5px);
    bottom: -30%;
    font-size: 0.82em;
    filter: drop-shadow(0 0 5px #ffd700);
    animation: flyLightning 4.8s linear infinite;
    animation-delay: calc(var(--i) * -0.76s - 0.8s);
}

@keyframes flyLightning {
    0%, 57% { transform: translate3d(0, 0, 0) rotate(-12deg) scale(0.4); opacity: 0; }
    60% { transform: translate3d(var(--drift), -55%, 0) rotate(6deg) scale(1.12); opacity: 1; }
    63% { opacity: 0.25; }
    66% { transform: translate3d(calc(var(--drift) * -1), -120%, 0) rotate(-5deg) scale(0.96); opacity: 0.95; }
    73% { transform: translate3d(var(--drift), -205%, 0) rotate(8deg) scale(0.7); opacity: 0.42; }
    82%, 100% { transform: translate3d(0, -285%, 0) rotate(-4deg) scale(0.35); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .ui-click-aura {
        display: none;
    }

    .header h1.brand,
    .header h1.brand::before,
    .header h1.brand.brand-pressed,
    .header h1.brand.brand-pressed::after,
    .header h1.brand.brand-pressed .brand-text,
    .brand-text,
    .brand-text .spider-emoji,
    .brand.music-active .walk-spider,
    .brand.music-active .walk-spider .spider-body,
    .brand.music-active .walk-spider .web-shot {
        animation: none;
    }

    .fire-particle,
    .water-particle,
    .web-particle,
    .lightning-particle {
        display: none;
    }
}

.icon-wrap {
    display: inline-flex;
    position: relative;
    vertical-align: middle;
}

.icon-frame {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    padding: 4px;
    border-radius: 17px;
    background:
        linear-gradient(145deg, rgba(18, 16, 36, 0.94), rgba(8, 8, 20, 0.9)) padding-box,
        linear-gradient(125deg, #5d8dff, rgba(200, 169, 255, 0.48), #7c5cff, #91b9ff) border-box;
    background-size: 100% 100%, 220% 220%;
    border: 1px solid transparent;
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.36),
        0 0 26px rgba(93, 141, 255, 0.16),
        inset 0 1px rgba(255, 255, 255, 0.09);
    animation: iconFrameFlow 7s ease-in-out infinite alternate;
    transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.3, 1), box-shadow 0.3s ease;
}

.icon-frame::after {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 13px;
    pointer-events: none;
}

@keyframes iconFrameFlow {
    from { background-position: 0 0, 0% 50%; }
    to { background-position: 0 0, 100% 50%; }
}

.site-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
    object-fit: cover;
    display: block;
    background: var(--surface);
    position: relative;
    z-index: 1;
    transition: box-shadow 0.45s ease, filter 0.45s ease;
    will-change: transform;
}

.icon-wrap.pulsing .site-icon {
    filter:
        drop-shadow(0 0 16px rgba(53, 56, 242, 0.8))
        drop-shadow(0 0 28px rgba(115, 80, 234, 0.65))
        saturate(1.24)
        contrast(1.05);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.28),
        0 0 22px rgba(53, 56, 242, 0.42),
        0 0 44px rgba(115, 80, 234, 0.38);
}

.icon-wrap.pulsing .icon-frame {
    animation:
        speedMirage 0.08s linear infinite,
        iconFrameFlow 7s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes speedMirage {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    18% { transform: translate(-5px, 2px) scale(1.04) rotate(-2deg); }
    36% { transform: translate(5px, -2px) scale(1.04) rotate(2deg); }
    54% { transform: translate(-4px, -3px) scale(1.03) rotate(-1deg); }
    72% { transform: translate(4px, 3px) scale(1.03) rotate(1deg); }
    90% { transform: translate(-2px, 0) scale(1.01) rotate(0deg); }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

.icon-wrap::before,
.icon-wrap::after {
    content: '';
    position: absolute;
    inset: -22%;
    border-radius: 28px;
    z-index: -1;
    pointer-events: none;
    will-change: transform, opacity, filter;
    transition: inset 0.55s ease, opacity 0.55s ease, filter 0.55s ease;
}

.icon-wrap::before {
    background: conic-gradient(from 0deg,
        rgba(93, 141, 255, 0.95),
        rgba(53, 56, 242, 0.65),
        rgba(124, 92, 255, 0.95),
        rgba(200, 169, 255, 0.72),
        rgba(56, 189, 248, 0.72),
        rgba(93, 141, 255, 0.95));
    filter: blur(17px) brightness(1.18) saturate(1.25);
    opacity: 0.72;
    animation: auraFire 5.5s linear infinite;
}

.icon-wrap::after {
    background: radial-gradient(circle at 50% 50%,
        rgba(255, 255, 255, 0.16) 0%,
        rgba(93, 141, 255, 0.42) 28%,
        rgba(124, 92, 255, 0.32) 48%,
        transparent 72%);
    filter: blur(12px);
    opacity: 0.62;
    animation: iconAuraPulse 2.2s ease-in-out infinite alternate;
}

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

@keyframes iconAuraPulse {
    0% { transform: scale(0.92); opacity: 0.45; }
    100% { transform: scale(1.18); opacity: 0.7; }
}

.icon-wrap:hover .site-icon {
    box-shadow: 0 0 20px rgba(93, 141, 255, 0.28), 0 0 38px rgba(124, 92, 255, 0.24);
}

.icon-wrap:hover .icon-frame {
    transform: translateY(-3px) scale(1.035);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.42),
        0 0 34px rgba(93, 141, 255, 0.3),
        0 0 58px rgba(124, 92, 255, 0.16),
        inset 0 1px rgba(255, 255, 255, 0.12);
}

.icon-wrap.pulsing:not(.icon-clicked):hover .icon-frame {
    transform: none;
}

.icon-wrap.icon-clicked .icon-frame {
    animation: iconClickBounce 0.6s cubic-bezier(0.2, 0.82, 0.3, 1);
}

.icon-wrap.icon-clicked .icon-frame::after {
    animation: iconClickBorder 0.6s ease-out;
}

.icon-wrap.icon-clicked::before {
    animation: iconClickAura 0.62s ease-out;
}

@keyframes iconClickBounce {
    0% { transform: scale(1) rotate(0deg); filter: brightness(1); }
    18% { transform: translateY(2px) scale(0.9) rotate(-4deg); filter: brightness(1.08); }
    46% { transform: translateY(-5px) scale(1.12) rotate(7deg); filter: brightness(1.35); }
    68% { transform: translateY(-1px) scale(0.98) rotate(-3deg); }
    84% { transform: scale(1.035) rotate(1deg); }
    100% { transform: scale(1) rotate(0deg); filter: brightness(1); }
}

@keyframes iconClickBorder {
    0%, 100% { border-color: rgba(255, 255, 255, 0.06); box-shadow: none; }
    42% {
        border-color: rgba(210, 226, 255, 0.9);
        box-shadow: inset 0 0 18px rgba(93, 141, 255, 0.28), 0 0 20px rgba(124, 92, 255, 0.55);
    }
}

@keyframes iconClickAura {
    0% { transform: scale(0.72) rotate(0deg); opacity: 0.9; }
    55% { transform: scale(1.45) rotate(95deg); opacity: 1; filter: blur(19px) brightness(1.7) saturate(1.4); }
    100% { transform: scale(1.85) rotate(150deg); opacity: 0; }
}

.icon-wrap.pulsing:hover .site-icon {
    box-shadow: 0 0 22px rgba(53, 56, 242, 0.48), 0 0 44px rgba(115, 80, 234, 0.4);
}

.icon-wrap:hover::before {
    filter: blur(20px) brightness(1.35) saturate(1.35);
    opacity: 1;
}

.icon-wrap:hover::after {
    opacity: 0.85;
}

.icon-wrap.pulsing::before {
    inset: -64%;
    border-radius: 50%;
    background: conic-gradient(from 20deg,
        rgba(93, 141, 255, 0.96) 0deg,
        rgba(56, 189, 248, 0.18) 42deg,
        transparent 70deg,
        rgba(53, 56, 242, 0.92) 112deg,
        rgba(124, 92, 255, 0.2) 158deg,
        transparent 194deg,
        rgba(200, 169, 255, 0.94) 238deg,
        rgba(124, 92, 255, 0.22) 286deg,
        transparent 320deg,
        rgba(93, 141, 255, 0.96) 360deg
    );
    filter:
        blur(var(--music-aura-blur, 26px))
        brightness(var(--music-aura-brightness, 1.42))
        saturate(1.5);
    opacity: var(--music-aura-opacity, 0.88);
    animation: musicAuraOrbit 4.8s linear infinite;
    transition: filter 0.045s linear, opacity 0.045s linear;
}

.icon-wrap.pulsing::after {
    inset: -54%;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 50%,
        rgba(255, 255, 255, 0.24) 0%,
        rgba(93, 141, 255, 0.56) 22%,
        rgba(53, 56, 242, 0.48) 42%,
        rgba(124, 92, 255, 0.32) 60%,
        rgba(56, 189, 248, 0.1) 70%,
        transparent 79%
    );
    filter: blur(var(--music-wave-blur, 21px)) brightness(1.42) saturate(1.38);
    opacity: var(--music-wave-opacity, 0.72);
    transform: scale(var(--music-wave-scale, 1));
    animation: none;
    transition: transform 0.045s linear, filter 0.045s linear, opacity 0.045s linear;
}

@keyframes musicAuraOrbit {
    from { transform: rotate(0deg) scale(var(--music-aura-scale, 1)); }
    to { transform: rotate(360deg) scale(var(--music-aura-scale, 1)); }
}

@keyframes musicAuraBreath {
    0%, 100% { opacity: 0.72; filter: blur(25px) brightness(1.25) saturate(1.45); }
    12% { opacity: 1; filter: blur(19px) brightness(1.65) saturate(1.75); }
    28% { opacity: 0.82; filter: blur(23px) brightness(1.4) saturate(1.55); }
    42% { opacity: 0.94; filter: blur(21px) brightness(1.52) saturate(1.65); }
    68% { opacity: 0.74; filter: blur(26px) brightness(1.25) saturate(1.42); }
}

@keyframes musicAuraEcho {
    0%, 100% { transform: scale(0.82); opacity: 0.42; }
    14% { transform: scale(1.08); opacity: 0.92; }
    32% { transform: scale(0.96); opacity: 0.62; }
    46% { transform: scale(1.03); opacity: 0.78; }
    72% { transform: scale(1.2); opacity: 0.28; }
}

@media (prefers-reduced-motion: reduce) {
    .icon-frame,
    .icon-wrap.pulsing .icon-frame,
    .icon-wrap.icon-clicked .icon-frame,
    .icon-wrap.icon-clicked .icon-frame::after,
    .icon-wrap.icon-clicked::before,
    .icon-wrap.pulsing .site-icon,
    .icon-wrap.pulsing::before,
    .icon-wrap.pulsing::after {
        animation: none;
    }
}

@keyframes auraFlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Site-icon-style animation/aura for top donator avatars */
.donator-podium-avatar-wrap {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.donator-podium-place.pulsing .donator-podium-avatar {
    animation: speedMirage 0.08s linear infinite;
    filter:
        drop-shadow(2px 0 3px rgba(255, 123, 0, 0.75))
        drop-shadow(-2px 0 3px rgba(0, 87, 179, 0.75))
        drop-shadow(3px 0 4px rgba(115, 80, 234, 0.55))
        drop-shadow(-3px 0 4px rgba(255, 123, 0, 0.55))
        drop-shadow(0 0 10px rgba(0, 87, 179, 0.8))
        drop-shadow(0 0 20px rgba(115, 80, 234, 0.6))
        saturate(1.2);
}

.donator-podium-place.pulsing .donator-podium-avatar-wrap::before {
    content: '';
    position: absolute;
    inset: -55%;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    background: conic-gradient(from 0deg,
        #ff7b00 0deg 50deg,
        #ff5e00 50deg 100deg,
        #7350ea 100deg 150deg,
        #3538f2 150deg 200deg,
        #c8a9ff 200deg 250deg,
        #ff7b00 250deg 300deg,
        #ff5e00 300deg 360deg
    );
    filter: blur(28px) brightness(1.5) saturate(1.6);
    opacity: 1;
    animation: auraFlow 2s linear infinite;
}

.donator-podium-place.pulsing .donator-podium-avatar-wrap::after {
    content: '';
    position: absolute;
    inset: -40%;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%,
        rgba(255, 123, 0, 0.65) 0%,
        rgba(53, 56, 242, 0.55) 30%,
        rgba(115, 80, 234, 0.45) 55%,
        transparent 75%
    );
    filter: blur(22px) brightness(1.5) saturate(1.5);
    opacity: 0.95;
    animation: iconAuraPulse 0.55s ease-in-out infinite alternate, auraFlow 2.5s linear infinite reverse;
}

.header p {
    color: var(--muted);
    margin-top: 10px;
    font-size: 1.05em;
}

.header {
    position: relative;
}

.header-title {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.header h1.brand {
    cursor: pointer;
}

.founder {
    text-align: right;
    margin-top: 14px;
}

.founder-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 0.7em;
    color: #fff;
    font-family: 'TikTok Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    background: var(--btn-gradient);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    box-shadow: var(--btn-glow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px) saturate(160%);
    transition: transform 0.12s ease, box-shadow 0.15s ease;
}

.founder-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 28px rgba(115, 80, 234, 0.45);
}

.founder-btn:active {
    transform: scale(0.96);
}

/* Brand menu popup */
.brand-menu {
    position: absolute;
    top: calc(100% - 12px);
    left: 50%;
    z-index: 100;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 0%, rgba(53, 88, 242, 0.18), transparent 38%),
        linear-gradient(145deg, rgba(22, 19, 43, 0.96), rgba(9, 8, 22, 0.94));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.56), inset 0 1px rgba(255, 255, 255, 0.05);
    width: auto;
    min-width: 310px;
    max-width: calc(100vw - 40px);
    text-align: center;
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-30px) perspective(600px) rotateX(-45deg) scale(0.95);
    transform-origin: top center;
    transition:
        opacity 0.25s ease,
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        visibility 0.45s ease;
}

.brand-menu-intro {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
    padding: 3px 2px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.brand-menu-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    color: #fff;
    font-size: 0.75em;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--btn-gradient);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 11px;
    box-shadow: 0 7px 20px rgba(115, 80, 234, 0.28);
}

.brand-menu-intro strong,
.brand-menu-intro small {
    display: block;
}

.brand-menu-intro strong {
    color: #fff;
    font-size: 0.92em;
}

.brand-menu-intro small {
    margin-top: 1px;
    color: var(--muted);
    font-size: 0.69em;
}

.brand-menu.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(8px) perspective(600px) rotateX(0deg) scale(1);
}

.brand-menu .brand-menu-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.85em;
}

.brand-menu-links {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.brand-menu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-size: 0.82em;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.16s ease, box-shadow 0.2s ease;
}

.brand-menu-link:hover {
    background: linear-gradient(90deg, rgba(115, 80, 234, 0.14), rgba(255, 255, 255, 0.055));
    border-color: rgba(124, 92, 255, 0.42);
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

.brand-menu-link:active {
    transform: scale(0.98);
}

.music-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
    cursor: default;
    white-space: normal;
    min-width: 0;
    width: 100%;
    border-color: rgba(115, 80, 234, 0.2);
    background:
        radial-gradient(circle at 10% 0%, rgba(53, 56, 242, 0.1), transparent 38%),
        rgba(255, 255, 255, 0.035);
}

.music-toggle {
    background: transparent;
    border: none;
    color: var(--text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    width: 100%;
    justify-content: center;
}

.music-artists {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-content: flex-start;
    width: 100%;
    min-width: 0;
}

.music-artist {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.72em;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.music-artist:hover {
    background: rgba(115, 80, 234, 0.14);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(53, 56, 242, 0.14);
}

.music-artist.active {
    background: linear-gradient(135deg, rgba(53, 56, 242, 0.32), rgba(115, 80, 234, 0.32));
    border-color: rgba(139, 92, 246, 0.72);
    box-shadow: 0 0 14px rgba(115, 80, 234, 0.18);
}

.yt-player {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 200px;
    height: 200px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Compact music player */
.music-player {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
        "play info volume"
        "play progress progress";
    gap: 10px;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(53, 56, 242, 0.12), transparent 46%),
        var(--surface);
    border: 1px solid rgba(115, 80, 234, 0.3);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin-bottom: 10px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    backdrop-filter: var(--glass-soft);
    -webkit-backdrop-filter: var(--glass-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 26px rgba(0, 0, 0, 0.2);
    isolation: isolate;
}

.music-player::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.09) 46%, transparent 72%);
    transform: translateX(-120%);
    opacity: 0;
}

.music-section.is-playing .music-player {
    border-color: rgba(139, 92, 246, 0.58);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        0 10px 30px rgba(0, 0, 0, 0.24),
        0 0 22px rgba(53, 56, 242, 0.13);
}

.music-section.is-playing .music-player::before {
    opacity: 1;
    animation: musicPanelShine 4.2s ease-in-out infinite;
}

@keyframes musicPanelShine {
    0%, 18% { transform: translateX(-120%); opacity: 0; }
    32% { opacity: 0.75; }
    58% { transform: translateX(120%); opacity: 0; }
    100% { transform: translateX(120%); opacity: 0; }
}

.music-controls {
    grid-area: play;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.music-play-pause {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--btn-gradient);
    color: #fff;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: var(--btn-glow);
    transition: var(--transition);
}

.music-section.is-playing .music-play-pause {
    animation: musicPlayPulse 1.3s ease-in-out infinite;
}

@keyframes musicPlayPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(53, 56, 242, 0.35); transform: scale(1); }
    50% { box-shadow: 0 0 20px rgba(115, 80, 234, 0.62); transform: scale(1.045); }
}

.music-play-pause:hover,
.music-prev:hover,
.music-next:hover,
.music-repeat:hover {
    filter: brightness(1.15);
    transform: scale(1.08);
}

.music-prev,
.music-next,
.music-repeat {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 0.75em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.music-repeat.active {
    background: var(--btn-gradient);
    color: #fff;
    box-shadow: var(--btn-glow);
}

.music-track-info {
    grid-area: info;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    min-width: 0;
    overflow: hidden;
}

.music-cover-shell {
    position: relative;
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(53, 56, 242, 0.28), rgba(115, 80, 234, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.28);
}

.music-track-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.music-artist-name {
    font-size: 0.7em;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-track-title {
    font-size: 0.82em;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-track-thumb {
    width: 100%;
    height: 100%;
    border-radius: 11px;
    object-fit: cover;
    border: 0;
    background: transparent;
}

.music-equalizer {
    position: absolute;
    right: 4px;
    bottom: 4px;
    height: 15px;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    padding: 3px;
    border-radius: 5px;
    background: rgba(5, 7, 16, 0.72);
    backdrop-filter: blur(4px);
}

.music-equalizer i {
    display: block;
    width: 2px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, #38bdf8, #a855f7);
    transform-origin: bottom;
}

.music-section.is-playing .music-equalizer i {
    animation: musicEqualizer 0.72s ease-in-out infinite alternate;
}

.music-section.is-playing .music-equalizer i:nth-child(2) { animation-delay: -0.38s; }
.music-section.is-playing .music-equalizer i:nth-child(3) { animation-delay: -0.57s; }
.music-section.is-playing .music-equalizer i:nth-child(4) { animation-delay: -0.2s; }

@keyframes musicEqualizer {
    0% { height: 3px; }
    35% { height: 11px; }
    65% { height: 6px; }
    100% { height: 14px; }
}

.music-progress {
    grid-area: progress;
    width: 100%;
    min-width: 0;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    cursor: pointer;
    overflow: visible;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.28);
}

.music-progress-bar {
    position: relative;
    height: 100%;
    width: 0%;
    background: var(--btn-gradient);
    border-radius: 3px;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(115, 80, 234, 0.42);
}

.music-progress-bar::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    transform: translateY(-50%) scale(0.7);
    box-shadow: 0 0 9px rgba(139, 92, 246, 0.85);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.music-progress:hover .music-progress-bar::after,
.music-section.is-playing .music-progress-bar::after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.music-volume-control {
    grid-area: volume;
    display: grid;
    grid-template-columns: 28px minmax(70px, 1fr) 34px;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 142px;
    max-width: 180px;
    justify-self: end;
    padding: 4px 7px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
}

.music-mute {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 0.85em;
    transition: transform 0.2s ease, background 0.2s ease;
}

.music-mute:hover {
    transform: scale(1.12);
    background: rgba(115, 80, 234, 0.18);
}

.music-mute.muted {
    background: rgba(239, 68, 68, 0.13);
}

.music-volume-value {
    color: rgba(226, 232, 240, 0.68);
    font-family: 'SF Mono', ui-monospace, monospace;
    font-size: 0.65em;
    text-align: right;
}

.music-volume {
    width: 100%;
    min-width: 70px;
    max-width: none;
    height: 18px;
    padding: 6px 0;
    align-self: center;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.music-volume::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #6366f1 var(--music-volume,20%), rgba(255,255,255,0.12) var(--music-volume,20%));
    border-radius: 3px;
}

.music-volume::-moz-range-track {
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #6366f1 var(--music-volume,20%), rgba(255,255,255,0.12) var(--music-volume,20%));
    border-radius: 3px;
    border: none;
}

.music-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    margin-top: -4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.music-volume::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.music-volume:hover::-webkit-slider-thumb,
.music-volume:active::-webkit-slider-thumb {
    transform: scale(1.15);
}

.music-volume:hover::-moz-range-thumb,
.music-volume:active::-moz-range-thumb {
    transform: scale(1.15);
}

/* Tracklist dropdown */
.music-tracklist {
    display: none;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr);
    max-height: 220px;
    overflow-y: auto;
    padding: 10px;
    margin-top: 8px;
    background: rgba(8, 11, 24, 0.92);
    border: 1px solid rgba(115, 80, 234, 0.28);
    border-radius: var(--radius-md);
    backdrop-filter: var(--glass-soft);
    -webkit-backdrop-filter: var(--glass-soft);
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.music-tracklist::-webkit-scrollbar {
    width: 6px;
}

.music-tracklist::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.music-track {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.78em;
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.music-track:hover {
    background: rgba(115, 80, 234, 0.14);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateX(3px);
}

.music-track.active {
    background: linear-gradient(90deg, rgba(53, 56, 242, 0.26), rgba(115, 80, 234, 0.16));
    border-color: rgba(139, 92, 246, 0.72);
    box-shadow: inset 3px 0 0 #818cf8;
}

.music-artist.selected {
    background: rgba(115, 80, 234, 0.22);
    border-color: rgba(139, 92, 246, 0.75);
}

.music-artist.active {
    background: linear-gradient(135deg, rgba(53, 56, 242, 0.32), rgba(115, 80, 234, 0.32));
    border-color: rgba(139, 92, 246, 0.75);
}

@media (prefers-reduced-motion: reduce) {
    .music-section.is-playing .music-player::before,
    .music-section.is-playing .music-play-pause,
    .music-section.is-playing .music-equalizer i {
        animation: none;
    }
}

/* Navigation / tab buttons */
.nav-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-btn {
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    background: var(--btn-gradient);
    font-size: 0.95rem;
    box-shadow: var(--btn-glow);
    backdrop-filter: var(--glass-soft);
    -webkit-backdrop-filter: var(--glass-soft);
}

.nav-btn:hover {
    filter: brightness(1.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 28px rgba(115, 80, 234, 0.45);
}

.nav-btn.primary {
    background: var(--btn-gradient);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: var(--btn-glow);
}

.nav-btn.primary:hover {
    filter: brightness(1.15);
    box-shadow: 0 10px 32px rgba(115, 80, 234, 0.55);
}

.nav-btn.outline {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--muted);
    box-shadow: none;
}

.nav-btn.outline:hover {
    color: #fff;
    background: linear-gradient(90deg, rgba(53, 56, 242, 0.18), rgba(115, 80, 234, 0.18) 55%, rgba(200, 169, 255, 0.18));
    border-color: rgba(115, 80, 234, 0.5);
    box-shadow: var(--btn-glow);
}

.nav-btn.back {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text);
    box-shadow: none;
}

.nav-btn.back:hover {
    color: #fff;
    background: linear-gradient(90deg, rgba(53, 56, 242, 0.18), rgba(115, 80, 234, 0.18) 55%, rgba(200, 169, 255, 0.18));
    border-color: rgba(115, 80, 234, 0.5);
    box-shadow: var(--btn-glow);
}

.nav-btn .arrow {
    color: var(--muted);
    font-size: 1.1em;
    transition: var(--transition);
}

.nav-btn:hover .arrow {
    color: var(--text);
    transform: translateX(4px);
}

.nav-btn .badge {
    background: var(--btn-gradient);
    color: #fff;
    font-size: 0.72em;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.nav-btn .badge.green {
    background: var(--green);
}

/* Status bar */
.status-bar {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 14px 18px;
    margin-top: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: var(--shadow);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    position: relative;
    overflow: hidden;
}

.chat-logs-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: auto;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1.05em;
    line-height: 1;
    text-decoration: none;
    backdrop-filter: var(--glass-soft);
    -webkit-backdrop-filter: var(--glass-soft);
    box-shadow: var(--shadow);
    z-index: 2;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.chat-logs-btn:hover {
    transform: scale(1.08) translateY(-2px);
    border-color: rgba(255, 123, 0, 0.5);
    background: var(--card);
    box-shadow: 0 0 14px rgba(255, 123, 0, 0.25);
}

.status-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2s infinite;
    position: relative;
    z-index: 1;
}

.status-dot.online {
    background: var(--green);
    box-shadow: 0 0 18px rgba(16,185,129,0.5);
}

.status-dot.offline {
    background: var(--red);
    box-shadow: 0 0 18px rgba(239,68,68,0.45);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-info {
    flex: 1;
    min-width: 200px;
    position: relative;
    z-index: 1;
}

.status-particle {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    font-size: 0.85em;
    line-height: 1;
    opacity: 0;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.status-particle.web {
    --drift: calc((var(--i) - 2) * 12px);
    top: -1.25em;
    left: calc(var(--i) * 30% - 15%);
    filter: drop-shadow(0 0 3px rgba(200, 200, 220, 0.75));
    animation: statusFlyWeb 6.4s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    animation-delay: calc(var(--i) * -2.05s);
}

.status-particle.spider {
    --drift: calc((var(--i) - 2) * 10px);
    bottom: -1.25em;
    left: calc(var(--i) * 30% - 10%);
    filter: drop-shadow(0 0 3px #8b5cf6);
    animation: statusCrawlSpider 7s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    animation-delay: calc(var(--i) * -2.2s - 0.5s);
}

.status-particle.flower {
    --drift: calc((var(--i) - 2) * 14px);
    top: -1.25em;
    left: calc(var(--i) * 30% - 5%);
    filter: drop-shadow(0 0 3px #f472b6);
    animation: statusFlyFlower 6.8s cubic-bezier(0.3, 0.1, 0.6, 1) infinite;
    animation-delay: calc(var(--i) * -2.15s - 1s);
}

.status-particle.bio {
    --drift: calc((var(--i) - 2) * 11px);
    bottom: -1.25em;
    left: calc(var(--i) * 30% - 0%);
    filter: drop-shadow(0 0 4px #84cc16);
    animation: statusPulseBio 5.8s ease-in-out infinite;
    animation-delay: calc(var(--i) * -1.85s - 0.3s);
}

@keyframes statusFlyWeb {
    0% { transform: translate3d(0, 0, 0) scale(0.4) rotate(0deg); opacity: 0; }
    16% { opacity: 0.45; }
    38% { transform: translate3d(var(--drift), 3rem, 0) scale(0.9) rotate(55deg); opacity: 0.68; }
    67% { transform: translate3d(calc(var(--drift) * -0.7), 6.2rem, 0) scale(0.72) rotate(130deg); opacity: 0.48; }
    100% { transform: translate3d(var(--drift), 10rem, 0) scale(0.35) rotate(220deg); opacity: 0; }
}

@keyframes statusCrawlSpider {
    0% { transform: translate3d(0, 0, 0) scale(0.45) rotate(-8deg); opacity: 0; }
    12% { opacity: 0.68; }
    26% { transform: translate3d(var(--drift), -2.3rem, 0) scale(0.88) rotate(7deg); opacity: 0.78; }
    42% { transform: translate3d(calc(var(--drift) * -0.6), -4.1rem, 0) scale(1) rotate(-6deg); opacity: 0.82; }
    58% { transform: translate3d(var(--drift), -6rem, 0) scale(0.92) rotate(8deg); opacity: 0.7; }
    76% { transform: translate3d(calc(var(--drift) * -0.8), -8rem, 0) scale(0.72) rotate(-5deg); opacity: 0.42; }
    100% { transform: translate3d(var(--drift), -10.5rem, 0) scale(0.4) rotate(6deg); opacity: 0; }
}

@keyframes statusFlyFlower {
    0% { transform: translate3d(0, 0, 0) scale(0.42) rotate(0deg); opacity: 0; }
    14% { opacity: 0.55; }
    32% { transform: translate3d(calc(var(--drift) * -0.7), 2.5rem, 0) scale(0.88) rotate(45deg); opacity: 0.75; }
    54% { transform: translate3d(var(--drift), 5.2rem, 0) scale(1) rotate(105deg); opacity: 0.72; }
    76% { transform: translate3d(calc(var(--drift) * -1), 7.7rem, 0) scale(0.7) rotate(175deg); opacity: 0.4; }
    100% { transform: translate3d(var(--drift), 10.5rem, 0) scale(0.38) rotate(260deg); opacity: 0; }
}

@keyframes statusPulseBio {
    0% { transform: translate3d(0, 0, 0) scale(0.35) rotate(0deg); opacity: 0; }
    12% { opacity: 0.75; }
    28% { transform: translate3d(var(--drift), -2.7rem, 0) scale(1.12) rotate(18deg); opacity: 0.82; }
    42% { transform: translate3d(calc(var(--drift) * -0.5), -4.5rem, 0) scale(0.78) rotate(-12deg); opacity: 0.52; }
    57% { transform: translate3d(var(--drift), -6.2rem, 0) scale(1.05) rotate(12deg); opacity: 0.68; }
    74% { transform: translate3d(calc(var(--drift) * -0.8), -8rem, 0) scale(0.65) rotate(-8deg); opacity: 0.35; }
    100% { transform: translate3d(var(--drift), -10.5rem, 0) scale(0.3) rotate(8deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .status-particle {
        display: none;
    }
}

.status-info h3 {
    font-size: 1.25em;
    font-family: 'Futura Extra Bold', 'Futura PT Extra Bold', Futura, 'Montserrat', 'Arial Black', sans-serif;
    font-weight: 900;
    letter-spacing: -0.025em;
    margin-bottom: 4px;
}

.status-info .ip {
    font-family: 'SF Mono', ui-monospace, monospace;
    background: var(--surface);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    color: var(--muted);
    display: inline-block;
    border: 1px solid var(--border);
}

.status-info .players-count {
    font-size: 1.5em;
    font-weight: 800;
    background: var(--btn-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.server-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 12px;
}

.server-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 0.9em;
    color: var(--text);
    backdrop-filter: var(--glass-soft);
    -webkit-backdrop-filter: var(--glass-soft);
}

.server-pill.offline {
    border-color: rgba(239,68,68,0.25);
    background: rgba(239,68,68,0.08);
}

.server-pill-name {
    color: var(--muted);
}

.server-pill-count {
    color: #fff;
    font-family: 'Futura Extra Bold', 'Futura PT Extra Bold', Futura, 'Montserrat', 'Arial Black', sans-serif;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.server-pill.total-pill {
    background: var(--btn-gradient);
    border: none;
    box-shadow: var(--btn-glow);
}

.server-pill.total-pill .server-pill-name,
.server-pill.total-pill .server-pill-count {
    color: #fff;
}

/* Product sections */
.products-section {
    margin-bottom: 36px;
}

details.products-section {
    --category-accent: 124, 92, 255;
    position: relative;
    overflow: hidden;
    padding: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--category-accent), 0.1), transparent 34%),
        linear-gradient(145deg, rgba(20, 17, 40, 0.72), rgba(10, 9, 25, 0.62));
    border: 1px solid rgba(var(--category-accent), 0.18);
    border-radius: var(--radius-xl);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.035);
    backdrop-filter: var(--glass-soft);
    -webkit-backdrop-filter: var(--glass-soft);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

details.products-section[open] {
    border-color: rgba(var(--category-accent), 0.28);
    box-shadow: 0 20px 58px rgba(0, 0, 0, 0.3), 0 0 30px rgba(var(--category-accent), 0.055);
}

details.category-cases { --category-accent: 115, 80, 234; }
details.category-currency { --category-accent: 255, 123, 0; }
details.category-privileges { --category-accent: 115, 80, 234; }
details.category-unban { --category-accent: 16, 185, 129; }
details.category-unmute { --category-accent: 59, 130, 246; }
details.category-other { --category-accent: 168, 85, 247; }

.section-title,
.section-title.blue,
.section-title.purple,
.section-title.case {
    font-size: 1.45em;
    margin-bottom: 22px;
    padding-left: 16px;
    border-left: 4px solid rgba(var(--category-accent, 115, 80, 234), 0.85);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

summary.section-title {
    cursor: pointer;
    list-style: none;
    margin-bottom: 0;
    padding: 5px 8px 5px 14px;
    border-radius: 0 11px 11px 0;
    transition: background 0.2s ease;
}

details[open] > summary.section-title {
    margin-bottom: 20px;
}

summary.section-title:hover {
    background: rgba(var(--category-accent, 115, 80, 234), 0.07);
}

summary.section-title::-webkit-details-marker {
    display: none;
}

summary.section-title::marker {
    display: none;
}

summary.section-title::after {
    content: '▶';
    margin-left: auto;
    font-size: 0.6em;
    opacity: 0.75;
    transition: transform 0.2s ease;
}

details[open] > summary.section-title::after {
    content: '▼';
}

.section-badge,
.section-badge.blue-badge,
.section-badge.purple-badge,
.section-badge.case-badge {
    font-size: 0.55em;
    background: linear-gradient(135deg, rgba(var(--category-accent, 115, 80, 234), 0.92), rgba(115, 80, 234, 0.88));
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 5px 16px rgba(var(--category-accent, 115, 80, 234), 0.2);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Product cards */
.product-card {
    --product-accent: 124, 92, 255;
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--product-accent), 0.13), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(var(--product-accent), 0.18);
    border-radius: var(--radius-xl);
    padding: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 13px 35px rgba(0, 0, 0, 0.26), inset 0 1px rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
}

.product-card.case-product { --product-accent: 115, 80, 234; }
.product-card.currency-product { --product-accent: 255, 123, 0; }
.product-card.privilege-product { --product-accent: 115, 80, 234; }
.product-card.unban-product { --product-accent: 16, 185, 129; }
.product-card.unmute-product { --product-accent: 59, 130, 246; }
.product-card.other-product { --product-accent: 168, 85, 247; }

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--product-accent), 0.48);
    box-shadow: 0 20px 48px rgba(0,0,0,0.4), 0 0 28px rgba(var(--product-accent), 0.1);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(var(--product-accent), 1), transparent);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card::after {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 150px;
    height: 150px;
    background: rgba(var(--product-accent), 0.09);
    border-radius: 50%;
    filter: blur(25px);
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.product-card:hover::after {
    opacity: 0.9;
    transform: scale(1.25);
}

.product-card > * {
    position: relative;
    z-index: 1;
}

.product-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.product-icon,
.product-icon.case,
.product-icon.currency,
.product-icon.privilege,
.product-icon.unban,
.product-icon.unmute,
.product-icon.other {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(var(--product-accent), 0.95), rgba(115, 80, 234, 0.9));
    color: #fff;
    border: 1px solid rgba(var(--product-accent), 0.35);
    box-shadow: 0 8px 22px rgba(var(--product-accent), 0.2);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.product-card h4 {
    font-size: 1.15em;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.68em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 1px solid currentColor;
    box-shadow: inset 0 0 12px rgba(var(--product-accent), 0.055);
}

.tag.currency {
    background: rgba(255,123,0,0.12);
    color: #FFA347;
}

.tag.case {
    background: rgba(115, 80, 234, 0.14);
    color: #c8a9ff;
    border-color: rgba(200, 169, 255, 0.24);
}

.tag.privilege {
    background: rgba(115, 80, 234, 0.14);
    color: #c8a9ff;
    border-color: rgba(200, 169, 255, 0.24);
}

.tag.unban {
    background: rgba(16,185,129,0.12);
    color: #34d399;
}

.tag.unmute {
    background: rgba(37,99,235,0.12);
    color: #60a5fa;
}

.tag.other {
    background: rgba(124,58,237,0.12);
    color: #c084fc;
}

.price-block {
    width: fit-content;
    padding: 7px 11px;
    font-size: 1.55em;
    font-weight: 800;
    background: var(--btn-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border: 1px solid rgba(var(--product-accent), 0.16);
    border-radius: 11px;
    box-shadow: inset 0 0 20px rgba(var(--product-accent), 0.055);
}

.price-block .per-unit {
    font-size: 0.55em;
    -webkit-text-fill-color: var(--muted);
    color: var(--muted);
    font-weight: 600;
    margin-left: 6px;
}

.product-desc {
    font-size: 0.88em;
    color: var(--muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: auto;
}

.qty-input {
    width: 68px;
    padding: 11px 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    text-align: center;
    font-weight: 600;
    font-size: 0.95em;
    transition: var(--transition);
    font-family: inherit;
}

.qty-input:focus {
    outline: none;
    border-color: rgba(115, 80, 234, 0.8);
    box-shadow: 0 0 0 3px rgba(115, 80, 234, 0.18);
    background: var(--elevated);
}

.buy-button {
    flex: 1;
    padding: 13px 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 11px;
    cursor: pointer;
    font-weight: 700;
    color: #fff;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95em;
    background: var(--btn-gradient);
    box-shadow: var(--btn-glow);
    font-family: inherit;
    backdrop-filter: var(--glass-soft);
    -webkit-backdrop-filter: var(--glass-soft);
}

.buy-button:hover {
    filter: brightness(1.13);
    transform: translateY(-3px) scale(1.025);
}

.buy-button.orange-btn,
.buy-button.currency-btn,
.buy-button.donate-btn,
.buy-button.case-btn,
.buy-button.green-btn,
.buy-button.blue-btn,
.buy-button.purple-btn {
    background: var(--btn-gradient);
    box-shadow: var(--btn-glow);
}

.buy-button.case-btn {
    background: linear-gradient(
        90deg,
        #3538F2 0%,
        #7350EA 55%,
        #C8A9FF 100%
    );
    box-shadow: 0 8px 24px rgba(115, 80, 234, 0.34);
}

.buy-button.currency-btn {
    background: linear-gradient(115deg, #c2410c, #ff7b00, #f59e0b);
    box-shadow: 0 8px 24px rgba(255, 123, 0, 0.26);
}

.buy-button.donate-btn {
    background: linear-gradient(
        90deg,
        #3538F2 0%,
        #7350EA 55%,
        #C8A9FF 100%
    );
    box-shadow: 0 8px 24px rgba(115, 80, 234, 0.34);
}

.buy-button.green-btn {
    background: linear-gradient(115deg, #047857, #10b981, #2563eb);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.24);
}

.buy-button.blue-btn {
    background: linear-gradient(115deg, #1d4ed8, #3b82f6, #7c3aed);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}

.buy-button.purple-btn {
    background: linear-gradient(115deg, #6d28d9, #a855f7, #3558f2);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.25);
}

.buy-button.orange-btn:hover,
.buy-button.currency-btn:hover,
.buy-button.donate-btn:hover,
.buy-button.case-btn:hover,
.buy-button.green-btn:hover,
.buy-button.blue-btn:hover,
.buy-button.purple-btn:hover {
    box-shadow: 0 12px 34px rgba(var(--product-accent, 115, 80, 234), 0.42);
}

/* Generic card */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 34px;
    margin-top: 34px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--btn-gradient);
}

h1, h2 {
    font-size: 1.8em;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--btn-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-panel {
    position: relative;
    overflow: hidden;
    margin: 4px 0 22px;
    padding: clamp(24px, 5vw, 42px);
    text-align: center;
    background:
        radial-gradient(circle at 12% 18%, rgba(53, 88, 242, 0.22), transparent 36%),
        radial-gradient(circle at 88% 82%, rgba(124, 58, 237, 0.2), transparent 38%),
        linear-gradient(145deg, rgba(22, 19, 43, 0.78), rgba(10, 9, 25, 0.7));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.04);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
}

.welcome-panel::before {
    content: '';
    position: absolute;
    top: -130px;
    left: 50%;
    width: 420px;
    height: 260px;
    border: 1px solid rgba(200, 169, 255, 0.12);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 75px rgba(115, 80, 234, 0.12);
    pointer-events: none;
}

.welcome-eyebrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    color: #c9c2f8;
    font-size: 0.72em;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(115, 80, 234, 0.1);
    border: 1px solid rgba(124, 92, 255, 0.22);
    border-radius: 999px;
}

.welcome-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 9px rgba(16, 185, 129, 0.7);
}

.welcome-text {
    position: relative;
    max-width: 720px;
    margin: 13px auto 8px;
    font-family: 'Russo One', 'Inter', sans-serif;
    font-size: clamp(1.75em, 5vw, 2.65em);
    font-weight: 400;
    letter-spacing: 0;
    background: linear-gradient(108deg, #fff 8%, #d4c7ff 50%, #70a5ff 82%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 9px 24px rgba(115, 80, 234, 0.2));
}

.welcome-lead {
    position: relative;
    max-width: 660px;
    margin: 0 auto;
    font-size: 0.96em;
    color: var(--muted);
    line-height: 1.65;
}

.welcome-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 25px 0 14px;
}

.welcome-stat {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 14px;
    text-align: left;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.welcome-stat:hover {
    transform: translateY(-3px);
    border-color: rgba(124, 92, 255, 0.32);
    background: rgba(124, 92, 255, 0.075);
}

.welcome-stat-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    font-size: 1.05em;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--border);
    border-radius: 11px;
}

.welcome-stat-copy {
    min-width: 0;
}

.welcome-stat-copy strong,
.welcome-stat-copy small {
    display: block;
}

.welcome-stat-copy strong {
    overflow: hidden;
    color: #fff;
    font-size: 1em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.welcome-stat-copy small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.68em;
    line-height: 1.3;
}

.server-connect-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px;
    text-align: left;
    background: rgba(4, 4, 14, 0.25);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.server-connect-copy {
    flex: 1;
    min-width: 0;
}

.server-connect-label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.server-ips {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    margin: 0;
    font-size: 0.78em;
    line-height: 1.45;
}

.server-ips .ip-list,
.server-ips .port {
    color: var(--text);
    font-weight: 600;
}

.server-ips .ip-list {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-ips .port {
    flex: 0 0 auto;
    padding: 3px 7px;
    color: #a9c5ff;
    background: rgba(53, 88, 242, 0.1);
    border: 1px solid rgba(93, 141, 255, 0.18);
    border-radius: 999px;
}

.play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: max-content;
    flex: 0 0 auto;
    margin: 0;
    padding: 13px 22px;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: var(--btn-gradient);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--btn-glow);
    backdrop-filter: var(--glass-soft);
    -webkit-backdrop-filter: var(--glass-soft);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

@media (max-width: 760px) {
    .welcome-stats {
        grid-template-columns: 1fr;
    }

    .server-connect-card {
        align-items: stretch;
        flex-direction: column;
    }

    .play-button {
        width: 100%;
    }
}

@media (max-width: 460px) {
    .server-ips {
        align-items: flex-start;
        flex-direction: column;
    }

    .server-ips .ip-list {
        white-space: normal;
    }
}

.play-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 70%);
    background-size: 200% 100%;
    background-position: 150% 0;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.play-button:hover::before {
    opacity: 1;
    animation: playShine 1.2s ease-in-out infinite;
}

.play-button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 32px rgba(115, 80, 234, 0.55);
    border-color: rgba(255, 255, 255, 0.3);
}

.play-button:active {
    transform: scale(0.97);
}

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.75em;
    padding-left: 2px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.play-text {
    letter-spacing: 0.02em;
}

@keyframes playShine {
    0% { background-position: 150% 0; }
    100% { background-position: -50% 0; }
}

.row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.row:last-child {
    border-bottom: none;
}

.label {
    color: var(--muted);
    font-weight: 500;
}

.value {
    font-weight: 700;
    text-align: right;
    color: var(--text);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85em;
    font-weight: 700;
    backdrop-filter: var(--glass-soft);
    -webkit-backdrop-filter: var(--glass-soft);
}

.badge.success {
    background: rgba(16,185,129,0.12);
    color: #34d399;
}

.badge.warning {
    background: rgba(245,158,11,0.12);
    color: #fbbf24;
}

.badge.error {
    background: rgba(239,68,68,0.12);
    color: #fca5a5;
}

.badge.info {
    background: rgba(37,99,235,0.12);
    color: #60a5fa;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    padding: 13px 26px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    color: #fff;
    background: var(--btn-gradient);
    box-shadow: var(--btn-glow);
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95em;
    font-family: inherit;
    backdrop-filter: var(--glass-soft);
    -webkit-backdrop-filter: var(--glass-soft);
}

.btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 32px rgba(115, 80, 234, 0.5);
}

.error {
    color: #fca5a5;
}

.mono {
    font-family: 'SF Mono', ui-monospace, monospace;
    font-size: 0.9em;
    word-break: break-all;
    color: var(--text);
}

.hint {
    color: var(--muted);
    margin-top: 18px;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Privilege page */
.privilege-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 30px;
    margin-bottom: 26px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
}

.privilege-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--btn-gradient);
}

.privilege-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}

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

.privilege-name {
    font-size: 1.65em;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.privilege-price {
    font-size: 1.35em;
    font-weight: 800;
    color: #fff;
    background: var(--btn-gradient);
    padding: 9px 22px;
    border-radius: var(--radius-sm);
    box-shadow: var(--btn-glow);
}

.privilege-desc {
    color: #d1d5db;
    font-size: 1.02em;
    line-height: 1.7;
    white-space: pre-wrap;
}

.privilege-desc ul {
    margin-top: 12px;
    padding-left: 22px;
}

.privilege-desc li {
    margin-bottom: 8px;
}

/* Empty / error states */
.empty-state, .error-state {
    text-align: center;
    padding: 54px 24px;
    color: var(--muted);
    background: var(--card);
    border-radius: var(--radius-xl);
    border: 1px dashed var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
}

.error-state {
    color: #fca5a5;
    background: rgba(239,68,68,0.06);
    border: 1px solid rgba(239,68,68,0.15);
}

/* SweetAlert2 dark rounded modal */
.swal2-popup {
    background: rgba(15, 17, 23, 0.92) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-xl) !important;
    color: var(--text) !important;
    box-shadow: var(--shadow) !important;
    padding: 30px !important;
    backdrop-filter: var(--glass) !important;
    -webkit-backdrop-filter: var(--glass) !important;
}

.swal2-title {
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 1.4em !important;
}

.swal2-html-container {
    color: var(--text) !important;
    font-size: 1em !important;
    text-align: left !important;
}

.swal2-confirm.swal2-styled {
    background: var(--btn-gradient) !important;
    color: #fff !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 700 !important;
    padding: 12px 28px !important;
    box-shadow: var(--btn-glow) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: var(--glass-soft) !important;
    -webkit-backdrop-filter: var(--glass-soft) !important;
}

.swal2-confirm.swal2-styled:hover {
    filter: brightness(1.1) !important;
    transform: scale(1.04) !important;
    box-shadow: 0 10px 32px rgba(115, 80, 234, 0.5) !important;
}

.swal2-cancel.swal2-styled {
    background: var(--surface) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    backdrop-filter: var(--glass-soft) !important;
    -webkit-backdrop-filter: var(--glass-soft) !important;
}

.swal2-cancel.swal2-styled:hover {
    background: linear-gradient(90deg, rgba(53, 56, 242, 0.18), rgba(115, 80, 234, 0.18) 55%, rgba(200, 169, 255, 0.18)) !important;
    border-color: rgba(115, 80, 234, 0.5) !important;
    color: #fff !important;
    transform: scale(1.04) !important;
}

.swal2-input,
.swal2-textarea,
.swal2-select {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text) !important;
    box-shadow: none !important;
    font-size: 1em !important;
    padding: 12px 14px !important;
    font-family: inherit !important;
}

.swal2-input:focus,
.swal2-textarea:focus {
    border-color: rgba(115, 80, 234, 0.8) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(115, 80, 234, 0.18) !important;
    background: var(--elevated) !important;
}

.swal2-validation-message {
    background: rgba(239,68,68,0.1) !important;
    color: #fca5a5 !important;
    border-radius: var(--radius-sm) !important;
}

.swal2-timer-progress-bar {
    background: var(--btn-gradient) !important;
}

/* Site rating */
.site-rating {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: min(100%, 760px);
    text-align: center;
    padding: clamp(22px, 4vw, 34px);
    margin: 40px auto 0;
    background:
        radial-gradient(circle at 14% 0%, rgba(239, 68, 68, 0.13), transparent 38%),
        radial-gradient(circle at 86% 100%, rgba(124, 92, 255, 0.18), transparent 42%),
        linear-gradient(145deg, rgba(22, 18, 47, 0.88), rgba(10, 8, 25, 0.84));
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 24px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.07);
    backdrop-filter: var(--glass-soft);
    -webkit-backdrop-filter: var(--glass-soft);
}

.site-rating::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -90% 22%;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 34%, rgba(255, 255, 255, 0.08) 50%, transparent 66%);
    transform: rotate(16deg);
    animation: ratingPanelShine 7s ease-in-out infinite;
}

.site-rating-copy {
    margin-bottom: 20px;
}

.site-rating-eyebrow {
    display: inline-flex;
    padding: 5px 10px;
    margin-bottom: 9px;
    color: #c8bfff;
    font-size: 0.68em;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(124, 92, 255, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.18);
    border-radius: 999px;
}

.site-rating-title {
    margin: 0;
    color: #fff;
    font-family: 'Futura Extra Bold', 'Montserrat', 'Arial Black', sans-serif;
    font-size: clamp(1.25em, 3vw, 1.65em);
    font-weight: 900;
}

.site-rating-subtitle {
    margin: 7px auto 0;
    color: #a8a2ba;
    font-size: 0.85em;
}

.rating-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: center;
}

.rating-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 13px 16px;
    text-align: left;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rating-btn:hover {
    transform: translateY(-4px);
}

.rating-btn.like:hover,
.rating-btn.like.selected {
    background: rgba(239, 68, 68, 0.11);
    border-color: rgba(248, 113, 113, 0.48);
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.15);
}

.rating-btn.dislike:hover,
.rating-btn.dislike.selected {
    background: rgba(124, 92, 255, 0.12);
    border-color: rgba(167, 139, 250, 0.48);
    box-shadow: 0 12px 30px rgba(124, 92, 255, 0.16);
}

.rating-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    font-size: 1.35em;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    transition: transform 0.2s ease;
}

.rating-btn:hover .rating-icon,
.rating-btn.selected .rating-icon {
    transform: scale(1.1) rotate(-5deg);
}

.rating-btn-copy {
    min-width: 0;
}

.rating-btn-copy strong,
.rating-btn-copy small {
    display: block;
}

.rating-btn-copy strong {
    color: #f5f3ff;
    font-size: 0.88em;
    font-weight: 800;
}

.rating-btn-copy small {
    margin-top: 3px;
    color: #9992ad;
    font-size: 0.68em;
}

.rating-btn:disabled,
.rating-btn.voted {
    cursor: default;
    pointer-events: none;
}

.rating-btn.voted:not(.selected) {
    opacity: 0.42;
}

.rating-btn.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 9px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: #fff;
    font-size: 0.68em;
    font-weight: 900;
    background: var(--violet);
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(124, 92, 255, 0.55);
}

.rating-count {
    color: #ded9ef;
    font-weight: 800;
}

.rating-result {
    display: flex;
    overflow: hidden;
    height: 7px;
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.055);
    border-radius: 999px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.rating-result-like,
.rating-result-dislike {
    width: 0;
    transition: width 0.55s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.rating-result-like {
    background: linear-gradient(90deg, #ef4444, #fb7185);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.55);
}

.rating-result-dislike {
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
    box-shadow: 0 0 14px rgba(124, 92, 255, 0.55);
}

.rating-summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 7px;
    color: #918aa6;
    font-size: 0.67em;
}

.rating-summary strong {
    color: #dcd7eb;
}

.site-rating-message {
    margin: 10px 0 0;
    font-size: 0.78em;
    color: var(--muted);
    min-height: 1.4em;
}

.site-rating-message.vote-aura {
    display: block;
    color: #ddd6fe;
    font-size: 0.84em;
    font-weight: 800;
    animation: voteAuraPulse 1.6s ease-in-out infinite;
}

@keyframes voteAuraPulse {
    0%, 100% { opacity: 0.72; text-shadow: 0 0 7px rgba(124, 92, 255, 0.25); }
    50% { opacity: 1; text-shadow: 0 0 15px rgba(124, 92, 255, 0.7); }
}

@keyframes ratingPanelShine {
    0%, 62% { transform: translateX(-85%) rotate(16deg); opacity: 0; }
    72% { opacity: 1; }
    92%, 100% { transform: translateX(85%) rotate(16deg); opacity: 0; }
}

@media (max-width: 520px) {
    .site-rating {
        padding: 20px 12px;
        border-radius: 19px;
    }

    .rating-buttons {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .rating-btn {
        min-height: 62px;
        padding: 10px 12px;
    }

    .rating-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-rating::before,
    .site-rating-message.vote-aura {
        animation: none;
    }
}

/* Footer */
.site-footer {
    width: min(100%, 1040px);
    padding: 18px 20px;
    margin-right: auto;
    margin-left: auto;
    margin-top: 40px;
    text-align: center;
    color: var(--muted);
    background: rgba(10, 9, 25, 0.45);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: var(--glass-soft);
    -webkit-backdrop-filter: var(--glass-soft);
}

.site-footer p {
    line-height: 1.55;
}

.site-footer strong {
    color: #e9e7f5;
}

.footer-founder {
    font-size: 0.86em;
}

.footer-founders {
    margin-top: 5px;
    color: #b9b2d8;
    font-size: 0.88em;
}

.footer-founders span {
    margin: 0 6px;
    color: var(--violet);
}

.footer-payment {
    margin-top: 9px;
    padding-top: 9px;
    font-size: 0.72em;
    border-top: 1px solid var(--border);
}

.footer-payment span {
    margin-left: 5px;
    color: #a9c5ff;
    font-family: 'SF Mono', ui-monospace, monospace;
}

@media (max-width: 520px) {
    .site-footer {
        padding: 14px 10px;
        margin-top: 28px;
    }

    .footer-payment span {
        display: block;
        margin-top: 3px;
        margin-left: 0;
    }
}

/* Button shine & press animations */
.nav-btn,
.buy-button,
.btn,
.swal2-confirm.swal2-styled,
.swal2-cancel.swal2-styled {
    position: relative;
    overflow: hidden;
}

.nav-btn::after,
.buy-button::after,
.btn::after,
.swal2-confirm.swal2-styled::after,
.swal2-cancel.swal2-styled::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: skewX(-22deg);
    transition: left 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.nav-btn:hover::after,
.buy-button:hover::after,
.btn:hover::after,
.swal2-confirm.swal2-styled:hover::after,
.swal2-cancel.swal2-styled:hover::after {
    left: 150%;
}

.nav-btn:active,
.buy-button:active,
.btn:active,
.swal2-confirm.swal2-styled:active,
.swal2-cancel.swal2-styled:active {
    transform: translateY(0) scale(0.96);
}

.swal2-confirm.swal2-styled:active,
.swal2-cancel.swal2-styled:active {
    transform: scale(0.96) !important;
}

/* Payment form inside modal */
.cb-form-label {
    display: block;
    margin-top: 18px;
    margin-bottom: 6px;
    font-weight: 700;
    color: #fff;
    font-size: 0.92em;
}

.cb-form-summary {
    margin-bottom: 18px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95em;
    line-height: 1.6;
}

@keyframes y2kShine {
    0% {
        background-position: 150% 0, 0 0;
    }
    100% {
        background-position: -150% 0, 0 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 14px;
    }

    .header {
        padding: 28px 14px;
    }

    .header-title {
        flex-wrap: wrap;
    }

    .header h1 {
        font-size: 1.9em;
    }

    .founder {
        text-align: center;
        margin-top: 18px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 18px;
    }

    .nav-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .nav-btn {
        justify-content: center;
        width: 100%;
    }

    .status-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 14px;
        margin-bottom: 16px;
    }

    .server-list {
        justify-content: center;
    }

    .welcome-text {
        font-size: 1.15em;
    }

    .welcome-subtitle {
        font-size: 0.85em;
    }

    .server-ips {
        word-break: break-word;
    }

    .play-button {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .product-controls {
        flex-wrap: wrap;
    }

    .buy-button {
        width: 100%;
    }

    .card {
        padding: 22px 16px;
    }

    .privilege-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .privilege-name {
        font-size: 1.25em;
    }

    .site-rating {
        padding: 22px 14px;
    }

    .footer-founders {
        font-size: 0.82em;
    }

    .music-player {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "play info"
            "play volume"
            "progress progress";
    }

    .music-volume {
        max-width: 100%;
    }

    .music-volume-control {
        max-width: 100%;
        justify-self: stretch;
    }
}

/* Recent purchases section */
.recent-purchases-section {
    margin-top: 44px;
    margin-bottom: 30px;
    padding: 20px clamp(10px, 3vw, 24px) 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 8% 0%, rgba(53, 56, 242, 0.13), transparent 30%),
        radial-gradient(circle at 92% 100%, rgba(115, 80, 234, 0.11), transparent 34%),
        var(--card);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.recent-purchases-section > .section-title {
    margin-bottom: 18px;
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse 1.5s infinite;
    flex-shrink: 0;
}

.refresh-purchases {
    --refresh-charge: 0%;
    margin-left: auto;
    overflow: visible;
    isolation: isolate;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    color: var(--text);
    padding: 8px 13px 8px 10px;
    gap: 7px;
    font-size: 0.78em;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 108px;
    min-height: 38px;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.055), 0 6px 18px rgba(0, 0, 0, 0.16);
}

.refresh-purchases:hover {
    background: linear-gradient(135deg, rgba(53, 88, 242, 0.3), rgba(115, 80, 234, 0.3));
    color: #fff;
    border-color: rgba(124, 92, 255, 0.5);
    box-shadow: 0 10px 28px rgba(53, 56, 242, 0.25), inset 0 1px rgba(255, 255, 255, 0.09);
}

.refresh-purchases:active {
    background: var(--btn-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--btn-glow);
}

.refresh-purchases .refresh-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.25s ease;
    will-change: transform;
    line-height: 1;
    font-size: 1.35em;
    font-weight: 400;
}

.refresh-purchases .refresh-label {
    position: relative;
    z-index: 2;
    min-width: 56px;
    text-align: left;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.refresh-purchases .refresh-charge {
    position: absolute;
    inset: -1px;
    z-index: -1;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}

.refresh-purchases .refresh-charge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(53, 88, 242, 0.34), rgba(139, 92, 246, 0.42)) no-repeat;
    background-size: var(--refresh-charge) 100%;
    transition: background-size 0.12s linear;
}

.refresh-purchases .refresh-charge::after {
    content: '';
    position: absolute;
    inset: 1px;
    border: 1px solid rgba(255, 255, 255, 0.035);
    border-radius: 11px;
}

.refresh-purchases.spinning {
    transform: translateY(-2px) scale(1.025);
}

.refresh-purchases.spinning .refresh-icon {
    filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 7px var(--blue));
}

.refresh-purchases .bolt {
    position: absolute;
    width: 10px;
    height: 18px;
    background: url('bolt.svg') center / contain no-repeat;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px var(--violet));
    transform: scale(0.6);
    transition: none;
    will-change: opacity, transform, filter;
}

.refresh-purchases.frenzy {
    color: #fff;
    background: linear-gradient(135deg, rgba(53, 88, 242, 0.55), rgba(139, 92, 246, 0.55));
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow:
        0 0 10px 2px rgba(56, 189, 248, 0.5),
        0 0 26px 8px rgba(139, 92, 246, 0.4);
    animation: refreshAuraPulse 0.55s ease-in-out infinite alternate;
}

@keyframes refreshAuraPulse {
    from { box-shadow: 0 0 10px 2px rgba(56, 189, 248, 0.5), 0 0 26px 8px rgba(139, 92, 246, 0.4); }
    to { box-shadow: 0 0 18px 4px rgba(56, 189, 248, 0.75), 0 0 42px 12px rgba(139, 92, 246, 0.6); }
}

.refresh-purchases.frenzy .refresh-icon {
    filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 12px var(--blue));
}

.refresh-purchases.frenzy .refresh-label {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.65);
}

.bolt.bolt-1 { top: -12px; left: 5px; }
.bolt.bolt-2 { top: -12px; right: 5px; }
.bolt.bolt-3 { bottom: -13px; left: calc(50% - 5px); }

.refresh-purchases.refreshing {
    pointer-events: none;
    border-color: rgba(93, 141, 255, 0.55);
}

.refresh-purchases.refreshing .refresh-icon {
    animation: refreshLoadingSpin 0.55s linear infinite;
}

.refresh-purchases.refreshed {
    color: #d1fae5;
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.2);
}

.refresh-purchases.refresh-error {
    color: #fee2e2;
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.5);
    animation: refreshErrorShake 0.32s ease;
}

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

@keyframes refreshErrorShake {
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

.purchase-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 14px;
}

.purchase-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(53, 56, 242, 0.09), transparent 46%),
        linear-gradient(325deg, rgba(115, 80, 234, 0.08), transparent 42%),
        var(--surface);
    border: 1px solid rgba(115, 80, 234, 0.24);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.purchase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    width: 76%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #38bdf8, #8b5cf6, transparent);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.55);
    opacity: 0.72;
}

.purchase-card::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    right: -48px;
    bottom: -58px;
    border-radius: 50%;
    background: rgba(115, 80, 234, 0.15);
    filter: blur(24px);
    pointer-events: none;
}

.purchase-card:hover {
    transform: translateY(-5px) scale(1.012);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32), 0 0 24px rgba(115, 80, 234, 0.13);
}

.purchase-main {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.purchase-avatar {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    border: 2px solid rgba(56, 189, 248, 0.42);
    background: var(--surface);
    flex-shrink: 0;
    object-fit: contain;
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.32), 0 0 14px rgba(53, 56, 242, 0.16);
    transition: transform 0.28s ease, border-color 0.28s ease;
}

.purchase-card:hover .purchase-avatar {
    transform: scale(1.06) rotate(-2deg);
    border-color: rgba(56, 189, 248, 0.75);
}

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

.purchase-name {
    font-weight: 800;
    color: #fff;
    word-break: break-word;
    font-size: 1.02em;
    letter-spacing: 0.01em;
}

.purchase-privilege {
    font-size: 0.82em;
    color: rgba(226, 232, 240, 0.72);
    margin-top: 3px;
    line-height: 1.35;
}

.purchase-payment {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 7px;
    padding: 4px 9px;
    font-size: 0.7em;
    font-weight: 700;
    color: #c4b5fd;
    background: rgba(115, 80, 234, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.28);
    border-radius: 999px;
    width: fit-content;
    max-width: 100%;
}

.purchase-price {
    font-size: 1.02em;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, rgba(53, 56, 242, 0.82), rgba(115, 80, 234, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 8px 11px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 5px 16px rgba(53, 56, 242, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.purchase-date {
    position: relative;
    z-index: 1;
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72em;
    color: rgba(148, 163, 184, 0.86);
    text-align: right;
    padding-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    justify-content: flex-end;
}

.purchase-date::before {
    content: '◷';
    color: #818cf8;
    font-size: 1.05em;
}

/* Top donators */
.top-donators-section {
    position: relative;
    padding: 20px clamp(10px, 3vw, 28px) 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 50% 100%, rgba(255, 123, 0, 0.12), transparent 38%),
        radial-gradient(circle at 15% 25%, rgba(0, 87, 179, 0.1), transparent 32%),
        radial-gradient(circle at 85% 30%, rgba(115, 80, 234, 0.1), transparent 32%),
        var(--card);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    isolation: isolate;
}

.top-donators-section::before {
    content: '';
    position: absolute;
    z-index: 0;
    inset: 12% 8% -42%;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 36%, rgba(255, 157, 59, 0.28), transparent 27%),
        radial-gradient(circle at 18% 58%, rgba(56, 189, 248, 0.2), transparent 31%),
        radial-gradient(circle at 82% 60%, rgba(168, 85, 247, 0.2), transparent 31%);
    filter: blur(32px) saturate(1.25);
    opacity: 0.78;
    animation: donorStageAura 7s ease-in-out infinite alternate;
}

.top-donators-section .section-title {
    position: relative;
    z-index: 2;
    justify-content: center;
    margin-bottom: 4px;
}

.donator-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(8px, 2vw, 18px);
    padding: 42px 0 4px;
    position: relative;
    z-index: 1;
}

.donator-podium-place {
    --accent-rgb: 115, 80, 234;
    position: relative;
    width: 33%;
    max-width: 230px;
    min-width: 100px;
    min-height: 184px;
    background:
        linear-gradient(180deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-rgb), 0.03) 50%, rgba(7, 10, 22, 0.72)),
        var(--card);
    border: 1px solid rgba(var(--accent-rgb), 0.55);
    border-radius: 24px 24px 12px 12px;
    padding: 48px 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.28),
        0 0 24px rgba(var(--accent-rgb), 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    isolation: isolate;
}

.donator-podium-place.first {
    --accent-rgb: 255, 157, 59;
    order: 2;
    min-height: 232px;
    padding-top: 54px;
    background:
        linear-gradient(180deg, rgba(255, 157, 59, 0.23), rgba(255, 123, 0, 0.05) 52%, rgba(7, 10, 22, 0.76)),
        var(--card);
    box-shadow:
        0 20px 44px rgba(0, 0, 0, 0.32),
        0 0 34px rgba(255, 123, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    z-index: 2;
}

.donator-podium-place.second {
    --accent-rgb: 56, 189, 248;
    order: 1;
    min-height: 192px;
}

.donator-podium-place.third {
    --accent-rgb: 168, 85, 247;
    order: 3;
    min-height: 180px;
}

.donator-podium-place.second .donator-podium-avatar,
.donator-podium-place.third .donator-podium-avatar {
    width: 52px;
    height: 52px;
}

.donator-podium-place.second .donator-podium-name,
.donator-podium-place.third .donator-podium-name {
    font-size: 0.95em;
    min-height: 1.3em;
}

.donator-podium-place.second .donator-podium-total,
.donator-podium-place.third .donator-podium-total {
    font-size: 0.88em;
    white-space: nowrap;
    word-break: normal;
    min-height: 0;
}

.donator-podium-place.third .donator-podium-total {
    font-size: 0.84em;
}

.donator-podium-place::before,
.donator-podium-place::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 40px;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.55;
    pointer-events: none;
    animation: donatorAura 3s ease-in-out infinite;
}

.donator-podium-place::before {
    animation-delay: 0s;
}

.donator-podium-place::after {
    top: 0;
    bottom: auto;
    width: 68%;
    height: 2px;
    border-radius: 999px;
    filter: drop-shadow(0 0 7px rgba(var(--accent-rgb), 0.8));
    opacity: 0.9;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 1), transparent);
    animation: donatorTopShine 3.2s ease-in-out infinite;
}

.donator-podium-place.first::before {
    background: radial-gradient(ellipse at center, rgba(255, 123, 0, 0.85) 0%, rgba(255, 123, 0, 0) 70%);
}

.donator-podium-place.second::before {
    background: radial-gradient(ellipse at center, rgba(0, 87, 179, 0.85) 0%, rgba(0, 87, 179, 0) 70%);
}

.donator-podium-place.third::before {
    background: radial-gradient(ellipse at center, rgba(115, 80, 234, 0.85) 0%, rgba(115, 80, 234, 0) 70%);
}

@keyframes donatorTopShine {
    0%, 100% { transform: translateX(-50%) scaleX(0.55); opacity: 0.5; }
    50% { transform: translateX(-50%) scaleX(1.15); opacity: 1; }
}

@keyframes donatorAura {
    0% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 0.45;
    }
    50% {
        transform: translateX(-50%) translateY(-12px) scale(1.15);
        opacity: 0.75;
    }
    100% {
        transform: translateX(-50%) translateY(-24px) scale(1.3);
        opacity: 0;
    }
}

.donator-podium-place:hover {
    transform: translateY(-7px) scale(1.025);
    border-color: rgba(var(--accent-rgb), 0.9);
    box-shadow:
        0 22px 44px rgba(0, 0, 0, 0.34),
        0 0 34px rgba(var(--accent-rgb), 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.donator-podium-rank {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 900;
    font-size: 1.1em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.35), 0 0 18px rgba(var(--accent-rgb), 0.45);
    z-index: 3;
}

.donator-podium-place.first .donator-podium-rank {
    background: linear-gradient(135deg, #ff9d3b, #ff7b00);
    border-color: rgba(255, 123, 0, 0.8);
    color: #1a1a1a;
}

.donator-podium-place.first .donator-podium-rank::before {
    content: '♛';
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffd166;
    font-size: 1.15em;
    text-shadow: 0 0 10px rgba(255, 177, 45, 0.75);
}

.donator-podium-place.second .donator-podium-rank {
    background: linear-gradient(135deg, #0078ff, #0057b3);
    border-color: rgba(0, 87, 179, 0.8);
    color: #fff;
}

.donator-podium-place.third .donator-podium-rank {
    background: linear-gradient(135deg, #8b5cf6, #7350ea);
    border-color: rgba(115, 80, 234, 0.8);
    color: #fff;
}

.donator-podium-avatar {
    width: 64px;
    height: 64px;
    border-radius: 15px;
    border: 2px solid rgba(var(--accent-rgb), 0.72);
    background: var(--surface);
    object-fit: contain;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.36), 0 0 16px rgba(var(--accent-rgb), 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.donator-podium-avatar-wrap::before,
.donator-podium-avatar-wrap::after {
    content: '';
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 22px;
}

.donator-podium-avatar-wrap::before {
    inset: -14px;
    background: conic-gradient(
        from 0deg,
        transparent 0 16%,
        rgba(var(--accent-rgb), 0.85) 25%,
        transparent 36% 58%,
        rgba(var(--accent-rgb), 0.55) 70%,
        transparent 82% 100%
    );
    filter: blur(7px);
    opacity: 0.72;
    animation: donorHaloSpin 8s linear infinite;
}

.donator-podium-avatar-wrap::after {
    inset: -8px;
    border: 1px solid rgba(var(--accent-rgb), 0.42);
    box-shadow:
        0 0 12px rgba(var(--accent-rgb), 0.38),
        0 0 28px rgba(var(--accent-rgb), 0.22),
        inset 0 0 12px rgba(var(--accent-rgb), 0.16);
    opacity: 0.76;
    animation: donorHaloBreath 2.8s ease-in-out infinite;
}

.donator-podium-place.first .donator-podium-avatar-wrap::before {
    inset: -19px;
    filter: blur(9px);
    opacity: 0.94;
    animation-duration: 5.5s;
}

.donator-podium-place.first .donator-podium-avatar-wrap::after {
    inset: -11px;
    box-shadow:
        0 0 15px rgba(var(--accent-rgb), 0.52),
        0 0 38px rgba(var(--accent-rgb), 0.32),
        inset 0 0 15px rgba(var(--accent-rgb), 0.2);
}

@keyframes donorStageAura {
    0% {
        transform: translate3d(-2%, 2%, 0) scale(0.96);
        opacity: 0.62;
    }
    100% {
        transform: translate3d(2%, -3%, 0) scale(1.08);
        opacity: 0.9;
    }
}

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

@keyframes donorHaloBreath {
    0%, 100% {
        transform: scale(0.92);
        opacity: 0.52;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

.donator-podium-place.first .donator-podium-avatar {
    width: 72px;
    height: 72px;
    border-color: rgba(255, 157, 59, 0.82);
}

.donator-podium-place:hover .donator-podium-avatar {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4), 0 0 24px rgba(var(--accent-rgb), 0.34);
}

.donator-podium-name {
    font-family: 'TikTok Sans', 'Inter', sans-serif;
    font-weight: 800;
    color: #fff;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: center;
    font-size: 1.05em;
    letter-spacing: 0.02em;
    line-height: 1.2;
    max-width: 100%;
    min-height: 1.3em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donator-podium-place.second .donator-podium-name,
.donator-podium-place.third .donator-podium-name {
    font-size: 0.95em;
}

.donator-podium-total {
    font-size: 1.02em;
    font-weight: 800;
    color: #fff;
    background: rgba(var(--accent-rgb), 0.14);
    border: 1px solid rgba(var(--accent-rgb), 0.34);
    border-radius: 999px;
    padding: 7px 12px;
    -webkit-text-fill-color: #fff;
    white-space: nowrap;
    word-break: normal;
    text-align: center;
    line-height: 1;
    min-height: 0;
    max-width: 100%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.section-title.gold {
    color: #ffd700;
}

@media (max-width: 768px) {
    .purchase-list {
        grid-template-columns: 1fr;
    }

    .purchase-main {
        flex-wrap: wrap;
    }

    .purchase-info {
        min-width: 120px;
    }

    .purchase-price {
        margin-left: auto;
    }

    .donator-podium {
        gap: 8px;
    }

    .donator-podium-place {
        min-width: 90px;
        min-height: 150px;
        padding: 40px 6px 10px;
        border-radius: var(--radius-lg) var(--radius-lg) var(--radius-sm) var(--radius-sm);
    }

    .donator-podium-place.first {
        min-height: 196px;
    }

    .donator-podium-place.second {
        min-height: 162px;
    }

    .donator-podium-place.third {
        min-height: 152px;
    }

    .donator-podium-avatar {
        width: 44px;
        height: 44px;
    }

    .donator-podium-avatar-wrap::before {
        inset: -10px;
        filter: blur(5px);
    }

    .donator-podium-avatar-wrap::after {
        inset: -6px;
    }

    .donator-podium-place.first .donator-podium-avatar-wrap::before {
        inset: -13px;
        filter: blur(6px);
    }

    .donator-podium-place.first .donator-podium-avatar-wrap::after {
        inset: -8px;
    }

    .donator-podium-place.first .donator-podium-avatar {
        width: 48px;
        height: 48px;
    }

    .donator-podium-rank {
        width: 32px;
        height: 32px;
        font-size: 0.9em;
        top: -14px;
    }

    .donator-podium-name {
        font-size: 0.85em;
        min-height: 2.2em;
    }

    .donator-podium-place.second .donator-podium-name,
    .donator-podium-place.third .donator-podium-name {
        font-size: 0.78em;
    }

    .donator-podium-total {
        font-size: 0.95em;
    }

    .donator-podium-place.second .donator-podium-total,
    .donator-podium-place.third .donator-podium-total {
        font-size: 0.74em;
        padding: 6px 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .top-donators-section::before,
    .donator-podium-place::before,
    .donator-podium-place::after,
    .donator-podium-avatar-wrap::before,
    .donator-podium-avatar-wrap::after,
    .donator-podium-place.pulsing .donator-podium-avatar {
        animation: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .header {
        padding: 20px 10px;
    }

    .header h1 {
        font-size: 1.5em;
    }

    .brand-menu {
        min-width: unset;
        width: calc(100vw - 20px);
    }

    .nav-buttons {
        gap: 8px;
    }

    .nav-btn {
        padding: 10px 12px;
        font-size: 0.85em;
    }

    .server-pill {
        padding: 5px 10px;
        font-size: 0.8em;
    }

    .welcome-text {
        font-size: 1em;
    }

    .welcome-subtitle {
        font-size: 0.8em;
    }

    .play-button {
        padding: 12px 18px;
        font-size: 0.95em;
    }

    .product-card {
        padding: 14px;
    }

    .product-name {
        font-size: 1em;
    }

    .price-block {
        font-size: 1.15em;
    }

    .buy-button {
        padding: 10px 14px;
        font-size: 0.9em;
    }

    .card {
        padding: 18px 12px;
    }

    .section-title {
        font-size: 1.1em;
    }

    .donator-podium {
        gap: 5px;
    }

    .donator-podium-place {
        min-width: 80px;
        min-height: 130px;
        padding: 34px 4px 8px;
    }

    .donator-podium-place.first {
        min-height: 166px;
    }

    .donator-podium-place.second {
        min-height: 138px;
    }

    .donator-podium-place.third {
        min-height: 132px;
        padding: 34px 3px 8px;
    }

    .donator-podium-avatar,
    .donator-podium-place.first .donator-podium-avatar {
        width: 36px;
        height: 36px;
    }

    .donator-podium-rank {
        width: 26px;
        height: 26px;
        font-size: 0.75em;
        top: -10px;
    }

    .donator-podium-name {
        font-size: 0.75em;
        min-height: 2.2em;
    }

    .donator-podium-place.second .donator-podium-name,
    .donator-podium-place.third .donator-podium-name {
        font-size: 0.7em;
    }

    .donator-podium-total {
        font-size: 0.85em;
    }

    .donator-podium-place.second .donator-podium-total,
    .donator-podium-place.third .donator-podium-total {
        font-size: 0.68em;
        padding: 5px 6px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 8px;
    }
}

/* Resolution-aware layout and fluid typography. */
html {
    font-size: clamp(14px, calc(13.25px + 0.18vw), 16px);
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

.container,
.header {
    width: 100%;
}

h1,
h2,
h3,
h4,
p,
span,
a,
button,
label,
.section-title,
.product-name,
.privilege-name {
    overflow-wrap: break-word;
}

h1,
h2,
h3,
.section-title {
    text-wrap: balance;
}

p,
.product-desc,
.welcome-lead,
.subtitle {
    text-wrap: pretty;
}

input,
select,
textarea,
button {
    max-width: 100%;
    font-size: max(16px, 1em);
}

.brand-menu {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 92, 255, 0.45) transparent;
}

@media (min-width: 1600px) {
    .container,
    .header {
        max-width: 1400px;
    }

    .products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .welcome-panel {
        padding-right: 52px;
        padding-left: 52px;
    }

    .purchase-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 16px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .welcome-panel {
        padding: 32px;
    }
}

@media (max-width: 680px) {
    .container {
        padding: max(10px, env(safe-area-inset-left));
    }

    .header {
        padding: 26px max(8px, env(safe-area-inset-left));
        margin-bottom: 18px;
    }

    .header-title {
        gap: 8px;
    }

    .icon-frame {
        width: 74px;
        height: 74px;
        padding: 3px;
        border-radius: 15px;
    }

    .site-icon {
        width: 68px;
        height: 68px;
        border-radius: 11px;
    }

    .header h1.brand {
        padding: 8px 12px;
        font-size: clamp(0.82rem, 4.3vw, 1.05rem);
        border-radius: 11px;
    }

    .welcome-panel {
        padding: 24px 14px;
        border-radius: 17px;
    }

    .welcome-lead {
        font-size: clamp(0.86rem, 3.7vw, 1rem);
        line-height: 1.55;
    }

    details.products-section {
        padding: 14px;
        border-radius: 17px;
    }

    .products-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    summary.section-title {
        gap: 8px;
        padding-left: 11px;
        font-size: clamp(1rem, 4.8vw, 1.25rem);
        line-height: 1.25;
    }

    .section-badge {
        padding: 3px 8px;
    }

    .product-card {
        width: 100%;
    }

    .status-info {
        width: 100%;
        min-width: 0;
    }

    .server-list {
        width: 100%;
        justify-content: stretch;
    }

    .server-pill {
        min-width: 0;
        flex: 1 1 135px;
        justify-content: space-between;
    }

    .music-section {
        padding: 9px;
    }

    .music-player {
        width: 100%;
        min-width: 0;
    }

    .footer-team-card {
        min-width: 0;
    }

    .nav-btn,
    .buy-button,
    .play-button,
    .brand-menu-link {
        min-height: 44px;
    }
}

@media (max-width: 430px) {
    .header-title {
        width: 100%;
    }

    .icon-frame {
        width: 64px;
        height: 64px;
    }

    .site-icon {
        width: 58px;
        height: 58px;
    }

    .header h1.brand {
        max-width: calc(100% - 72px);
        font-size: clamp(0.72rem, 4vw, 0.9rem);
        letter-spacing: 0.025em;
    }

    .brand-text {
        white-space: nowrap;
    }

    .welcome-text {
        font-size: clamp(1.45em, 8vw, 1.8em);
    }

    .welcome-stat {
        padding: 11px;
    }

    .product-controls {
        gap: 8px;
    }

    .qty-input {
        width: 56px;
    }

    .buy-button {
        min-width: 0;
        padding-right: 10px;
        padding-left: 10px;
    }

    .refresh-purchases {
        min-width: 40px;
        width: 40px;
        padding: 7px;
    }

    .refresh-purchases .refresh-label {
        display: none;
    }

    .refresh-purchases .refresh-icon {
        margin: auto;
    }
}

@media (max-width: 340px) {
    .container {
        padding: 7px;
    }

    .header {
        padding-right: 3px;
        padding-left: 3px;
    }

    .icon-frame {
        width: 56px;
        height: 56px;
    }

    .site-icon {
        width: 50px;
        height: 50px;
    }

    .header h1.brand {
        max-width: calc(100% - 62px);
        padding-right: 8px;
        padding-left: 8px;
        font-size: 0.68rem;
    }

    .welcome-panel,
    details.products-section,
    .product-card {
        padding-right: 10px;
        padding-left: 10px;
    }
}

@media (max-width: 360px) {
    .header h1 {
        font-size: 1.25em;
    }

    .welcome-text {
        font-size: 0.9em;
    }

    .nav-btn {
        padding: 8px 10px;
        font-size: 0.78em;
    }

    .server-pill {
        padding: 4px 8px;
        font-size: 0.75em;
    }

    .product-name {
        font-size: 0.9em;
    }

    .buy-button {
        padding: 8px 12px;
        font-size: 0.85em;
    }

    .section-title {
        font-size: 1em;
    }
}

/* Avoid expensive GPU compositing on mobile and constrained hardware. */
html.low-performance body::after,
html.low-performance .header-title::before {
    display: none;
}

html.low-performance body * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html.low-performance .header h1.brand,
html.low-performance .header h1.brand::before,
html.low-performance .brand-text,
html.low-performance .brand-text .spider-emoji,
html.low-performance .status-dot,
html.low-performance .top-donators-section::before,
html.low-performance .donator-podium-place::before,
html.low-performance .donator-podium-place::after,
html.low-performance .donator-podium-avatar-wrap::before,
html.low-performance .donator-podium-avatar-wrap::after {
    animation: none !important;
}

@media (max-width: 768px), (prefers-reduced-motion: reduce) {
    body::after,
    .header-title::before {
        display: none;
    }

    body * {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .header h1.brand,
    .header h1.brand::before,
    .brand-text,
    .brand-text .spider-emoji,
    .status-dot,
    .top-donators-section::before,
    .donator-podium-place::before,
    .donator-podium-place::after,
    .donator-podium-avatar-wrap::before,
    .donator-podium-avatar-wrap::after {
        animation: none !important;
    }

}

/* The compact brand frame is cheap enough to retain on all devices. */
html.low-performance .header h1.brand {
    backdrop-filter: var(--glass) !important;
    -webkit-backdrop-filter: var(--glass) !important;
}

@media (max-width: 768px) {
    .header h1.brand {
        backdrop-filter: var(--glass) !important;
        -webkit-backdrop-filter: var(--glass) !important;
    }
}
/* Store editor — follows the CoreBlocks glass-liquid design system */
.product-card {
    position: relative;
}

.store-product-edit {
    position: absolute;
    top: 13px;
    right: 13px;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid rgba(var(--product-accent, 115, 80, 234), 0.42);
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.16), transparent 45%),
        rgba(18, 14, 39, 0.88);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.34),
        inset 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--glass-soft);
    -webkit-backdrop-filter: var(--glass-soft);
    cursor: pointer;
    transition: var(--transition);
}

.store-product-edit::before {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(var(--product-accent, 115, 80, 234), 0.6),
        transparent 55%
    );
    opacity: 0;
    transition: opacity 0.2s ease;
}

.store-product-edit:hover {
    color: #fff;
    border-color: rgba(var(--product-accent, 115, 80, 234), 0.85);
    background: rgba(var(--product-accent, 115, 80, 234), 0.2);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.42),
        0 0 24px rgba(var(--product-accent, 115, 80, 234), 0.25);
    transform: translateY(-3px) scale(1.05);
}

.store-product-edit:hover::before {
    opacity: 1;
}

.store-product-edit:active {
    transform: translateY(0) scale(0.94);
}

.store-product-edit:focus-visible,
.store-edit-form button:focus-visible,
.store-edit-form input:focus-visible,
.store-edit-form textarea:focus-visible,
.store-edit-form select:focus-visible {
    outline: 2px solid #c8a9ff;
    outline-offset: 3px;
}

.store-editor-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    padding: 14px 18px;
    color: #ddd6fe;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid rgba(124, 92, 255, 0.22);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 0 50%, rgba(255, 123, 0, 0.12), transparent 30%),
        linear-gradient(120deg, rgba(53, 56, 242, 0.1), rgba(124, 92, 255, 0.08));
    box-shadow: var(--shadow-sm), inset 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--glass-soft);
    -webkit-backdrop-filter: var(--glass-soft);
}

.store-editor-badge > span {
    flex: 1;
}

.store-product-create {
    flex: 0 0 auto;
    padding: 9px 14px;
    color: #fff;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    background: var(--btn-gradient);
    box-shadow: var(--btn-glow);
    cursor: pointer;
    transition: var(--transition);
}

.store-product-create:hover {
    filter: brightness(1.14);
    transform: translateY(-2px);
}

.store-allowlist-open {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.24);
}

.store-allowlist-note {
    margin: 10px 0 4px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.store-section-create {
    display: block;
    margin: -6px 0 14px auto;
    padding: 8px 13px;
    color: #c4b5fd;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 750;
    border: 1px solid rgba(124, 92, 255, 0.25);
    border-radius: var(--radius-sm);
    background: rgba(124, 92, 255, 0.08);
    cursor: pointer;
    transition: var(--transition);
}

.store-section-create:hover {
    color: #fff;
    border-color: rgba(200, 169, 255, 0.55);
    background: rgba(124, 92, 255, 0.18);
    transform: translateY(-1px);
}

.store-product-drag {
    position: absolute;
    top: 13px;
    left: 13px;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #c4b5fd;
    font-size: 1.55rem;
    line-height: 1;
    border: 1px solid rgba(124, 92, 255, 0.28);
    border-radius: var(--radius-md);
    background: rgba(18, 14, 39, 0.88);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
    cursor: grab;
    touch-action: none;
    transition: var(--transition);
}

.store-product-drag:hover {
    color: #fff;
    border-color: rgba(200, 169, 255, 0.65);
    background: rgba(124, 92, 255, 0.2);
}

.store-product-drag:active {
    cursor: grabbing;
}

.store-product-hidden {
    opacity: 0.62;
    border-style: dashed;
}

.store-product-hidden:hover {
    opacity: 0.9;
}

.store-product-hidden-label {
    position: absolute;
    top: 58px;
    right: 13px;
    z-index: 3;
    padding: 4px 8px;
    color: #fca5a5;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    border: 1px solid rgba(239, 68, 68, 0.26);
    border-radius: 999px;
    background: rgba(127, 29, 29, 0.3);
}

.store-sort-ghost {
    opacity: 0.28;
    border: 1px dashed #c4b5fd;
}

.store-sort-chosen {
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.55), 0 0 30px rgba(124, 92, 255, 0.3);
}

.store-sortable-grid.is-empty {
    min-height: 88px;
    padding: 18px;
    border: 1px dashed rgba(124, 92, 255, 0.28);
    border-radius: var(--radius-lg);
}

.store-sortable-grid.is-empty::after {
    content: 'В этом разделе пока нет товаров';
    grid-column: 1 / -1;
    place-self: center;
    color: var(--muted);
    font-size: 0.85rem;
}

.store-edit-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(circle at 18% 10%, rgba(255, 123, 0, 0.12), transparent 30%),
        radial-gradient(circle at 82% 90%, rgba(115, 80, 234, 0.2), transparent 36%),
        rgba(5, 4, 15, 0.84);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.store-edit-modal.active {
    display: flex;
    animation: storeBackdropIn 0.2s ease-out;
}

.store-edit-form {
    position: relative;
    width: min(680px, 100%);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    color: var(--text);
    border: 1px solid rgba(181, 164, 255, 0.2);
    border-radius: 26px;
    background:
        radial-gradient(circle at 50% -10%, rgba(124, 92, 255, 0.24), transparent 38%),
        linear-gradient(145deg, rgba(25, 21, 51, 0.98), rgba(9, 8, 23, 0.99));
    box-shadow:
        0 36px 110px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(103, 80, 234, 0.16);
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 92, 255, 0.5) transparent;
    animation: storeEditorIn 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes storeBackdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes storeEditorIn {
    from { opacity: 0; transform: translateY(18px) scale(0.975); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.store-edit-header {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(110deg, rgba(53, 56, 242, 0.15), rgba(115, 80, 234, 0.1)),
        rgba(14, 11, 31, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.store-edit-header-icon {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    height: 48px;
    color: #fff;
    font-size: 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    background: var(--btn-gradient);
    box-shadow: var(--btn-glow);
}

.store-edit-header > div {
    min-width: 0;
}

.store-edit-header h3 {
    margin: 0 0 4px;
    color: #fff;
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.store-edit-header p {
    margin: 0;
    color: #a29bb9;
    font-size: 0.8rem;
    line-height: 1.4;
}

.store-edit-close {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    margin-left: auto;
    padding: 0;
    color: #c8c2dc;
    font-size: 1.55rem;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.045);
    cursor: pointer;
    transition: var(--transition);
}

.store-edit-close:hover {
    color: #fff;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.12);
    transform: rotate(90deg);
}

.store-edit-body {
    padding: 23px 26px 8px;
}

.store-edit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 14px;
}

.store-edit-form label {
    display: block;
    margin: 15px 0 7px;
    color: #d7d2e7;
    font-size: 0.82rem;
    font-weight: 800;
}

.store-edit-form input,
.store-edit-form textarea,
.store-edit-form select {
    width: 100%;
    padding: 13px 14px;
    color: #f3f4f6;
    font: inherit;
    border: 1px solid rgba(181, 164, 255, 0.14);
    border-radius: var(--radius-md);
    outline: none;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.18);
    transition: var(--transition);
}

.store-edit-form input:hover,
.store-edit-form textarea:hover,
.store-edit-form select:hover {
    border-color: rgba(181, 164, 255, 0.28);
    background: rgba(255, 255, 255, 0.055);
}

.store-edit-form input:focus,
.store-edit-form textarea:focus,
.store-edit-form select:focus {
    border-color: rgba(124, 92, 255, 0.8);
    background: rgba(124, 92, 255, 0.055);
    box-shadow:
        0 0 0 3px rgba(124, 92, 255, 0.13),
        inset 0 1px 5px rgba(0, 0, 0, 0.18);
}

.store-edit-form textarea {
    min-height: 112px;
    line-height: 1.55;
    resize: vertical;
}

.store-edit-form select {
    appearance: auto;
    color-scheme: dark;
}

.store-edit-command-wrap {
    position: relative;
}

.store-edit-command-wrap textarea {
    min-height: 125px;
    padding-top: 42px;
    color: #a7f3d0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88rem;
    background:
        linear-gradient(rgba(16, 185, 129, 0.035), rgba(16, 185, 129, 0.02)),
        rgba(3, 9, 20, 0.58);
    border-color: rgba(16, 185, 129, 0.18);
}

.store-edit-command-wrap textarea:focus {
    border-color: rgba(16, 185, 129, 0.58);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.store-edit-command-tag {
    position: absolute;
    top: 10px;
    left: 11px;
    z-index: 1;
    padding: 4px 8px;
    color: #86efac;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.08);
}

.store-edit-command-tag::before {
    content: '●';
    margin-right: 6px;
    color: #22c55e;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

.store-edit-help {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    color: #8e87a5;
    font-size: 0.75rem;
}

.store-edit-help button {
    padding: 4px 8px;
    color: #c4b5fd;
    font: 700 0.74rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    border: 1px solid rgba(124, 92, 255, 0.22);
    border-radius: var(--radius-sm);
    background: rgba(124, 92, 255, 0.08);
    cursor: pointer;
    transition: var(--transition);
}

.store-edit-help button:hover {
    color: #fff;
    border-color: rgba(200, 169, 255, 0.55);
    background: rgba(124, 92, 255, 0.18);
    transform: translateY(-1px);
}

.store-edit-hidden {
    display: flex !important;
    align-items: center;
    gap: 11px;
    margin-top: 18px !important;
    padding: 12px 14px;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.16);
    border-radius: var(--radius-md);
    background: rgba(239, 68, 68, 0.055);
    cursor: pointer;
    transition: var(--transition);
}

.store-edit-hidden:hover {
    border-color: rgba(239, 68, 68, 0.32);
    background: rgba(239, 68, 68, 0.08);
}

.store-edit-hidden input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--red);
}

.store-edit-actions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    gap: 11px;
    padding: 18px 26px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(12, 9, 27, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.store-edit-actions button {
    min-width: 120px;
    padding: 12px 19px;
    color: #fff;
    font-family: inherit;
    font-weight: 800;
    border-radius: 11px;
    cursor: pointer;
    transition: var(--transition);
}

.store-edit-cancel {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.055);
}

.store-edit-delete {
    margin-right: auto;
    color: #fecaca !important;
    border: 1px solid rgba(239, 68, 68, 0.24);
    background: rgba(127, 29, 29, 0.22);
}

.store-edit-delete:hover {
    color: #fff !important;
    border-color: rgba(239, 68, 68, 0.55);
    background: rgba(220, 38, 38, 0.38);
    transform: translateY(-2px);
}

.store-edit-delete:disabled {
    opacity: 0.55;
    cursor: wait;
}

.store-edit-cancel:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.store-edit-save {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: var(--btn-gradient);
    box-shadow: var(--btn-glow);
}

.store-edit-save::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-22deg);
    transition: left 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-edit-save:hover {
    filter: brightness(1.13);
    box-shadow: 0 10px 30px rgba(115, 80, 234, 0.44);
    transform: translateY(-2px) scale(1.015);
}

.store-edit-save:hover::after {
    left: 150%;
}

@media (max-width: 620px) {
    .store-editor-badge {
        align-items: stretch;
        flex-direction: column;
    }

    .store-edit-modal {
        align-items: flex-end;
        padding: 0;
    }

    .store-edit-form {
        width: 100%;
        max-height: 94dvh;
        border-radius: 24px 24px 0 0;
        animation-name: storeEditorMobileIn;
    }

    @keyframes storeEditorMobileIn {
        from { opacity: 0; transform: translateY(100%); }
        to { opacity: 1; transform: translateY(0); }
    }

    .store-edit-header,
    .store-edit-body,
    .store-edit-actions {
        padding-left: 18px;
        padding-right: 18px;
    }

    .store-edit-header-icon {
        flex-basis: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .store-edit-header p {
        display: none;
    }

    .store-edit-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .store-edit-actions button {
        flex: 1;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .store-edit-modal,
    .store-edit-form,
    .store-product-edit,
    .store-edit-form button {
        animation: none;
        transition: none;
    }
}
