/* ========================================
   GAMEBAITERSCREW — Vaporwave Style
   Matches gamebaiters.net exactly
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Sen:wght@400;700&family=Permanent+Marker&display=swap');

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---------- Body — Single Viewport ---------- */
body {
    font-family: 'Sen', sans-serif;
    color: #e0e0e0;
    background-color: #0a001a;
    height: 100vh;
    overflow: hidden;
    margin: 0;
}

/* ---------- Intro Active State ---------- */
.site-wrapper.intro-active #site-header,
.site-wrapper.intro-active .portal,
.site-wrapper.intro-active .paper,
.site-wrapper.intro-active #vaporwave-bg,
.site-wrapper.intro-active #site-footer {
    opacity: 0;
    pointer-events: none;
}

#site-header,
.portal,
.paper,
#vaporwave-bg,
#site-footer {
    /* Base opacity transition for the intro fade-in */
    transition: opacity 1.5s ease;
}

/* ---------- Site Wrapper ---------- */
.site-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
}

.site-wrapper.visible {
    opacity: 1;
}

/* Animated Canvas Background */
#vaporwave-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------- Header ---------- */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    height: 90px;
    background: linear-gradient(330deg, #800080, #0f4a8b);
    box-shadow: 0 0 10px #c850d3, 0 0 40px #c850d3, 0 0 80px #c850d3;
    position: relative;
    z-index: 100;
    flex-shrink: 0;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 18px;
}

.btn-header {
    font-family: 'Sen', sans-serif;
    font-weight: 700;
    font-size: 1em;
    padding: 12px 28px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: opacity 1.5s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease, color 0.4s ease, text-shadow 0.4s ease, background 0.4s ease;
    cursor: pointer;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 5px rgba(200, 80, 211, 0.3);
}

.btn-header:hover {
    border-color: #ff00ff;
    color: #ff00ff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4), 0 0 30px rgba(255, 0, 255, 0.1);
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.5);
    transform: scale(1.05);
}

/* Donate Button — Golden */
.donate-header {
    background: linear-gradient(330deg, #fea900, #fb9900);
    color: #2c1b00;
    border: none;
    box-shadow: 0 2px 10px rgba(254, 169, 0, 0.4);
}

.donate-header:hover {
    color: gold;
    background: linear-gradient(330deg, #ffbc30, #ffa500);
    box-shadow: 0 5px 25px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 169, 0, 0.3);
    transform: scale(1.08) rotateX(8deg);
}

/* News Button — Green Glow */
#btn-news,
#btn-news-mobile {
    border-color: #00ff64 !important;
    color: #00ff64 !important;
    box-shadow: 0 0 10px rgba(0, 255, 100, 0.35), 0 0 25px rgba(0, 255, 100, 0.15) !important;
    text-shadow: 0 0 6px rgba(0, 255, 100, 0.4) !important;
}

#btn-news:hover,
#btn-news-mobile:hover {
    border-color: #00ff64 !important;
    color: #00ff64 !important;
    box-shadow: 0 0 20px rgba(0, 255, 100, 0.5), 0 0 40px rgba(0, 255, 100, 0.2) !important;
    text-shadow: 0 0 10px rgba(0, 255, 100, 0.6) !important;
}

/* ---------- Hamburger ---------- */
.hamburger {
    display: none;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 10;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* When mobile nav is open, raise header above the overlay (z-index 2000) */
.header.nav-open {
    z-index: 2100;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Nav */
.mobile-nav-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 0, 20, 0.97);
    z-index: 2000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav-link {
    font-family: 'Sen', sans-serif;
    font-weight: 700;
    font-size: 1.5em;
    color: #fff;
    letter-spacing: 3px;
    padding: 12px 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    display: block;
    text-align: center;
}

.donate-mobile {
    background: linear-gradient(330deg, #fea900, #fb9900);
    color: #2c1b00;
    border: none;
    font-weight: 700;
}

.donate-mobile:hover {
    background: linear-gradient(330deg, #ffbc30, #ffa500);
    color: gold;
    box-shadow: 0 5px 25px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 169, 0, 0.3);
    transform: scale(1.05);
}

.mobile-nav-link:hover {
    border-color: #ff00ff;
    color: #ff00ff;
}

/* ---------- Main — Fill remaining height ---------- */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 3vh;
}

/* ---------- Hero Text ---------- */
.hero-text {
    text-align: center;
    position: relative;
    z-index: 10;
}

.welcome-text {
    font-family: 'Sen', sans-serif;
    font-weight: 700;
    font-size: 3.5em;
    color: #ffffff;
    letter-spacing: 18px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.welcome-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

.brand-box {
    display: inline-block;
    padding: 14px 45px;
    background: rgba(10, 0, 30, 0.55);
    border: 2px solid rgba(255, 0, 255, 0.5);
    border-radius: 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.brand-box.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4), inset 0 0 15px rgba(255, 0, 255, 0.1);
}

.brand-text {
    font-family: 'Permanent Marker', cursive;
    font-size: 2.8em;
    letter-spacing: 4px;
    background: linear-gradient(90deg,
        #ffcc00 0%, #ffcc00 5%, #ff8800 12%, #ff8800 17%,
        #ff5500 24%, #ff5500 29%, #cc33ff 38%, #cc33ff 43%,
        #9b30ff 50%, #9b30ff 57%, #cc33ff 64%, #cc33ff 69%,
        #ff5500 76%, #ff5500 81%, #ff8800 88%, #ff8800 93%,
        #ffcc00 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(255, 136, 0, 0.6)) drop-shadow(0 0 25px rgba(200, 80, 211, 0.5));
    animation: brandWave 20s linear infinite;
}

@keyframes brandWave {
    0% { background-position: 0% 50%; }
    100% { background-position: -200% 50%; }
}

/* TS Panel Connect Button */
.ts-connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(0,180,255,0.18), rgba(0,120,255,0.12));
    border: 1px solid rgba(0,180,255,0.35);
    border-radius: 10px;
    color: #fff;
    font-family: 'Sen', sans-serif;
    font-size: 0.95em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 0 15px rgba(0,180,255,0.1);
}
.ts-connect-btn:hover {
    background: linear-gradient(135deg, rgba(0,180,255,0.3), rgba(0,120,255,0.2));
    border-color: rgba(0,180,255,0.5);
    box-shadow: 0 0 25px rgba(0,180,255,0.25);
    transform: translateY(-1px);
}
.ts-connect-btn i { font-size: 0.9em; }

/* ---------- Portal / CTA Cards ---------- */
.portal {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    width: 100%;
    max-width: 1300px;
    padding: 0 40px;
    position: relative;
    z-index: 10;
}

.paper {
    flex: 1;
    background: rgba(30, 15, 50, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 0, 255, 0.15);
    border-radius: 12px;
    padding: 35px 28px;
    text-align: center;
    transition: opacity 1.5s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease-out forwards;
}

.paper:nth-child(1) {
    animation-delay: 2.2s;
}

.paper:nth-child(2) {
    animation-delay: 2.5s;
}

.paper:nth-child(3) {
    animation-delay: 2.8s;
}

.paper:hover {
    transform: translateY(-10px);
    background: rgba(60, 30, 90, 0.75);
    border-color: rgba(255, 0, 255, 0.5);
    box-shadow: 0 10px 40px rgba(255, 0, 255, 0.3), 0 0 80px rgba(255, 0, 255, 0.12), inset 0 0 30px rgba(255, 0, 255, 0.05);
}

.paper-icon-wrap {
    display: flex;
    width: 72px;
    height: 72px;
    margin: 0 auto 15px;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2), 0 0 30px rgba(255, 0, 255, 0.1);
    transition: all 0.3s ease;
}

.paper:hover .paper-icon-wrap {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 40px rgba(255, 0, 255, 0.25);
    transform: scale(1.1);
}

.paper-icon {
    font-size: 1.9em;
    color: #fff;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.paper-icon-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.paper-icon-ts {
    width: 42px;
    height: 42px;
    filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.paper-title {
    font-family: 'Sen', sans-serif;
    font-weight: 700;
    font-size: 1.25em;
    color: #fff;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.paper-desc {
    font-family: 'Sen', sans-serif;
    font-size: 0.95em;
    line-height: 1.6;
    color: #b0b0b0;
}

.paper-desc strong {
    color: #e0e0e0;
}

.paper-link {
    color: #ff00ff;
    font-weight: 700;
    transition: all 0.3s ease;
}

.paper-link:hover {
    color: #ff66ff;
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.5);
}

/* ---------- Footer ---------- */
.footer {
    text-align: center;
    padding: 22px 20px;
    background: linear-gradient(330deg, rgba(128, 0, 128, 0.7), rgba(15, 74, 139, 0.7));
    box-shadow: 0 0 10px rgba(200, 80, 211, 0.4), 0 0 40px rgba(200, 80, 211, 0.2), 0 0 80px rgba(200, 80, 211, 0.1);
    color: #ccc;
    font-family: 'Sen', sans-serif;
    font-size: 1em;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 100;
    flex-shrink: 0;
}

/* Language flag button — bottom-right, subtle */
.lang-flag-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    cursor: pointer;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.6);
    font-family: 'Sen', sans-serif;
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0.6;
    transition: opacity 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.lang-flag-btn:hover {
    opacity: 1;
    border-color: rgba(255,255,255,0.35);
    background: rgba(0,0,0,0.4);
}

.lang-flag-btn img {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    display: block;
}

/* ---------- Keyframes ---------- */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes letterAssemble {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.5);
        filter: blur(6px);
    }

    60% {
        opacity: 1;
        transform: translateY(5px) scale(1.05);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes brandReveal {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 15px rgba(255, 0, 255, 0.4), inset 0 0 15px rgba(255, 0, 255, 0.1);
    }
}

@keyframes brandTextReveal {
    0% {
        opacity: 0;
        filter: blur(8px) drop-shadow(0 0 0 transparent);
    }

    100% {
        opacity: 1;
        filter: blur(0) drop-shadow(0 0 8px rgba(255, 136, 0, 0.6)) drop-shadow(0 0 25px rgba(200, 80, 211, 0.5));
    }
}

@keyframes neonPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(255, 136, 0, 0.6)) drop-shadow(0 0 25px rgba(200, 80, 211, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(255, 136, 0, 0.9)) drop-shadow(0 0 45px rgba(200, 80, 211, 0.7)) drop-shadow(0 0 70px rgba(255, 85, 0, 0.3));
    }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0014;
}

::-webkit-scrollbar-thumb {
    background: #ff00ff;
    border-radius: 4px;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #ff00ff #0a0014;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    .nav-center {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .header {
        padding: 0 20px;
        height: 55px;
        justify-content: flex-end;
        position: sticky;
        top: 0;
    }

    .main-wrapper {
        padding-bottom: 20px;
    }

    .hero-text {
        padding-top: 30px;
    }

    .welcome-text {
        font-size: 1.8em;
        letter-spacing: 8px;
    }

    .brand-text {
        font-size: 1.4em;
        letter-spacing: 2px;
    }

    .brand-box {
        padding: 6px 18px;
    }

    .portal {
        flex-direction: column;
        padding: 0 20px;
        gap: 15px;
        margin-bottom: 20px;
    }

    .paper {
        padding: 20px 18px;
    }
}

@media (max-width: 480px) {
    .welcome-text {
        font-size: 1.3em;
        letter-spacing: 5px;
    }

    .brand-text {
        font-size: 1.1em;
    }

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

    .paper-desc {
        font-size: 0.85em;
    }
}

/* ========================================
   PLUGINS PANEL — Liquid Glass
   ======================================== */
.plugins-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 0, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.plugins-overlay.active {
    opacity: 1;
    visibility: visible;
}

.plugins-panel {
    width: 90%;
    max-width: 850px;
    max-height: 85vh;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    backdrop-filter: blur(40px) saturate(1.5);
    -webkit-backdrop-filter: blur(40px) saturate(1.5);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 80px rgba(200, 80, 211, 0.08);
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.plugins-overlay.active .plugins-panel {
    transform: scale(1) translateY(0);
}

.plugins-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.2em;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.plugins-close:hover {
    background: rgba(255, 0, 255, 0.2);
    border-color: rgba(255, 0, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

.plugins-title {
    font-family: 'Sen', sans-serif;
    font-weight: 700;
    font-size: 1.8em;
    color: #fff;
    text-align: center;
    margin-bottom: 4px;
}

.plugins-subtitle {
    font-family: 'Sen', sans-serif;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-bottom: 30px;
}

.plugins-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.plugin-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.plugin-card:hover {
    border-color: rgba(255, 0, 255, 0.3);
    box-shadow: 0 4px 20px rgba(200, 80, 211, 0.1), inset 0 0 20px rgba(255, 0, 255, 0.03);
}

.plugin-card .plugin-icon-wrap {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(200, 80, 211, 0.25), rgba(100, 0, 200, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.plugin-icon {
    font-size: 1.5em;
    color: #fff;
}

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

.plugin-name {
    font-family: 'Sen', sans-serif;
    font-weight: 700;
    font-size: 1.15em;
    color: #fff;
    margin-bottom: 2px;
}

.plugin-developer {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 6px;
}

.plugin-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 8px;
}

.plugin-rating i {
    font-size: 0.75em;
    color: #ffcc00;
}

.plugin-rating-text {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 6px;
}

.plugin-desc {
    font-size: 0.85em;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

.plugin-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.plugin-tag {
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(200, 80, 211, 0.15);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(200, 80, 211, 0.2);
}

.plugin-download {
    align-self: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6b30ff, #c850d3);
    color: #fff;
    font-family: 'Sen', sans-serif;
    font-weight: 700;
    font-size: 0.85em;
    padding: 10px 22px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.plugin-download:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(200, 80, 211, 0.4);
}

.plugins-footer-note {
    text-align: center;
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 20px;
}

/* Plugins panel responsive */
@media (max-width: 768px) {
    .plugins-panel {
        padding: 25px 18px;
    }

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

    .plugin-download {
        align-self: stretch;
        text-align: center;
    }
}

/* ========================================
   DONATE PANEL — Liquid Glass
   ======================================== */

.donate-panel {
    max-width: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.donate-panel .plugins-title,
.donate-panel .plugins-subtitle,
.donate-panel .server-status,
.donate-panel .owner-donations,
.donate-panel .donate-action-wrap {
    flex-shrink: 0;
}

.donate-panel .plugins-close {
    flex-shrink: 0;
}

@keyframes rainbow-glow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.donator-list-container {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #FF00FF rgba(0, 0, 0, 0.2);
    padding-right: 8px;
    margin-bottom: 15px;
    flex-shrink: 1;
    min-height: 0;
}

.donator-list-container::-webkit-scrollbar {
    width: 6px;
}

.donator-list-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.donator-list-container::-webkit-scrollbar-thumb {
    background-color: #FF00FF;
    border-radius: 4px;
}

.server-status {
    background-color: rgba(0, 0, 0, 0.25);
    border-left: 4px solid #00FF64;
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 20px;
    text-align: left;
    font-size: 0.9em;
    color: #e0e0e0;
}

.status-date {
    font-weight: 700;
    color: #00FF64;
    text-shadow: 0 0 5px rgba(0, 255, 100, 0.5);
}

.owner-donations {
    background-color: rgba(20, 30, 60, 0.4);
    border-left: 4px solid #007BFF;
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 25px;
    text-align: left;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
    font-size: 0.85em;
    color: #c0c0c0;
}

.owner-name {
    font-weight: 700;
    color: #87CEEB;
}

.owner-amount {
    font-weight: 700;
    color: #ADD8E6;
    text-shadow: 0 0 5px rgba(173, 216, 230, 0.5);
}

.donator-row {
    padding: 12px 20px !important;
    justify-content: space-between;
    align-items: center;
}

.donator-row .plugin-name {
    margin-bottom: 0;
    font-size: 1.05em;
}

.donator-row .plugin-tag {
    font-size: 0.95em;
    padding: 4px 12px;
}

/* Ranking styles */
.top-donator {
    border: none !important;
    background-image: linear-gradient(90deg, #ff00ff, #00ffff, #ffff00, #ff00ff) !important;
    background-color: transparent !important;
    background-size: 200% 200% !important;
    animation: rainbow-glow 3s linear infinite !important;
    transition: none !important;
}

.top-donator .donator-name {
    color: #000;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.top-donator .donator-amount {
    color: #000;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.5);
}

.second-donator {
    background-image: linear-gradient(90deg, #f5f5f5, #c0c0c0, #f5f5f5) !important;
    background-color: transparent !important;
    background-size: 200% 200% !important;
    animation: rainbow-glow 4s linear infinite !important;
    transition: none !important;
    border: 2px solid #f5f5f5 !important;
}

.second-donator .donator-name {
    color: #222;
}

.second-donator .donator-amount {
    color: #111;
    background: transparent;
    border: 1px solid rgba(17, 17, 17, 0.5);
}

.third-donator {
    background-image: linear-gradient(90deg, #e08f4a, #a05a2c, #e08f4a) !important;
    background-color: transparent !important;
    background-size: 200% 200% !important;
    animation: rainbow-glow 4s linear infinite !important;
    transition: none !important;
    border: 2px solid #e08f4a !important;
}

.third-donator .donator-name {
    color: #f0f0f0;
}

.third-donator .donator-amount {
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.donate-action-wrap {
    text-align: center;
}

.donate-continue-btn {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(145deg, #ffd700, #fecb00, #ffac00);
    color: #2c1b00;
    font-family: 'Sen', sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
}

.donate-continue-btn:hover {
    color: #000;
    transform: scale(1.05) rotateX(10deg);
    background: linear-gradient(145deg, #fff79a, #ffe869, #ffc430);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.4), 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* ========================================
   RULES PANEL
   ======================================== */
.rules-panel {
    max-width: 750px;
}

.rules-content {
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: #ff00ff rgba(0, 0, 0, 0.2);
}

.rules-content::-webkit-scrollbar {
    width: 6px;
}

.rules-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.rules-content::-webkit-scrollbar-thumb {
    background-color: #ff00ff;
    border-radius: 4px;
}

.rules-intro {
    font-size: 0.88em;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 14px;
}

.rule-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 16px;
}

.rule-section-title {
    font-family: 'Sen', sans-serif;
    font-weight: 700;
    font-size: 1.05em;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rule-section-title i {
    color: #c850d3;
    font-size: 0.95em;
}

.rule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rule-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    font-size: 0.85em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

.rule-list li:last-child {
    margin-bottom: 0;
}

.rule-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #c850d3;
    font-weight: 700;
}

.rule-list li strong {
    color: rgba(255, 255, 255, 0.85);
}

/* ========================================
   TEAMSPEAK PANEL
   ======================================== */
.ts-panel {
    max-width: 900px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ts-panel .plugins-title,
.ts-panel .plugins-subtitle,
.ts-panel .ts-status-bar,
.ts-panel .ts-tabs {
    flex-shrink: 0;
}

.ts-tab-content.active {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex !important;
    flex-direction: column;
}

.ts-tab-content.active .ts-viewer-container,
.ts-tab-content.active .ts-staff-container {
    flex: 1;
    min-height: 0;
    max-height: none;
}

/* Status Bar */
.ts-status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 18px;
    margin-bottom: 16px;
    font-size: 0.88em;
    color: rgba(255, 255, 255, 0.7);
}

.ts-status-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.ts-status-item i {
    color: #c850d3;
    font-size: 0.9em;
}

.ts-status-item .ts-count {
    color: #fff;
    font-weight: 700;
}

/* Tabs */
.ts-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.ts-tab {
    flex: 1;
    font-family: 'Sen', sans-serif;
    font-weight: 700;
    font-size: 0.9em;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.ts-tab:hover {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 0, 255, 0.3);
    background: rgba(255, 0, 255, 0.06);
}

.ts-tab.active {
    color: #fff;
    border-color: rgba(255, 0, 255, 0.5);
    background: rgba(200, 80, 211, 0.15);
    box-shadow: 0 0 12px rgba(255, 0, 255, 0.15);
}

.ts-tab i {
    margin-right: 6px;
}

/* Tab Content */
.ts-tab-content {
    display: none;
}

.ts-tab-content.active {
    display: block;
}

.ts-loading {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9em;
}

.ts-loading i {
    margin-right: 8px;
}

.ts-error {
    text-align: center;
    padding: 20px;
    color: #ff6b6b;
    font-size: 0.9em;
}

/* ---- Viewer Container ---- */
.ts-viewer-container {
    max-height: 50vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
    scrollbar-width: thin;
    scrollbar-color: #ff00ff rgba(0, 0, 0, 0.2);
    font-size: 14px;
    line-height: 1.5;
}

.ts-viewer-container::-webkit-scrollbar {
    width: 6px;
}

.ts-viewer-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.ts-viewer-container::-webkit-scrollbar-thumb {
    background-color: #ff00ff;
    border-radius: 4px;
}

/* Viewer Tree Structure */
.ts-viewer-container .channel-container:not(.is-server),
.ts-viewer-container .client-container {
    margin-left: 1.2em;
}

.ts-viewer-container .channel-container:not(.is-spacer) .channel,
.ts-viewer-container .client-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.ts-viewer-container .channel-container:not(.is-spacer) .channel:hover,
.ts-viewer-container .client-container:hover {
    background: rgba(200, 80, 211, 0.1);
}

.ts-viewer-container .channel-container:not(.is-spacer) > .channel > .channel-name,
.ts-viewer-container .channel-container:not(.is-spacer) > .channel > .channel-icons,
.ts-viewer-container .client-name,
.ts-viewer-container .client-icons {
    display: flex;
    align-items: center;
}

.ts-viewer-container .channel-container:not(.is-spacer) > .channel > .channel-name,
.ts-viewer-container .client-name {
    word-break: break-word;
}

.ts-viewer-container .client-icons {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ts-viewer-container .client-icons .icon,
.ts-viewer-container .channel-icons .icon {
    margin-left: 4px;
}

/* Channel names */
.ts-viewer-container .channel-name {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    font-size: 0.92em;
}

/* Server name (top level) */
.ts-viewer-container .is-server .channel-name {
    color: #fff;
    font-size: 1em;
}

/* Client names */
.ts-viewer-container .client-name {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88em;
}

/* Icons */
.ts-viewer-container .icon {
    height: 16px;
    max-width: 16px;
}

.ts-viewer-container .channel-name .icon,
.ts-viewer-container .client-name .icon {
    margin-right: 5px;
}

/* Spacer channels */
.ts-viewer-container .channel-container.is-spacer .channel {
    color: #c850d3;
    font-size: 0.85em;
    pointer-events: none;
}

.ts-viewer-container .channel-container.spacer-center > .channel {
    text-align: center;
    justify-content: center;
}

.ts-viewer-container .channel-container.spacer-right > .channel {
    text-align: right;
    justify-content: flex-end;
}

.ts-viewer-container .channel-container.spacer-repeat > .channel {
    overflow: hidden;
    white-space: nowrap;
}

/* Empty channels — slightly dimmed */
.ts-viewer-container .channel-container.not-occupied > .channel > .channel-name {
    opacity: 0.5;
}

/* Query clients */
.ts-viewer-container .client-container.is-query {
    opacity: 0.35;
}

/* Country flags (if present) */
.ts-viewer-container .icon-flag {
    display: inline-block;
    width: 16px;
    height: 11px;
    margin-left: 4px;
}

/* ---- Staff Container ---- */
.ts-staff-container {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: #ff00ff rgba(0, 0, 0, 0.2);
}

.ts-staff-container::-webkit-scrollbar {
    width: 6px;
}

.ts-staff-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.ts-staff-container::-webkit-scrollbar-thumb {
    background-color: #ff00ff;
    border-radius: 4px;
}

.ts-staff-group {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 12px;
}

.ts-staff-group-name {
    font-family: 'Sen', sans-serif;
    font-weight: 700;
    font-size: 0.95em;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ts-staff-group-name img {
    height: 16px;
    max-width: 16px;
}

.ts-staff-member {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 4px;
    transition: background 0.2s ease;
}

.ts-staff-member:hover {
    background: rgba(255, 255, 255, 0.04);
}

.ts-staff-member:last-child {
    margin-bottom: 0;
}

.ts-staff-name {
    font-size: 0.88em;
    color: rgba(255, 255, 255, 0.7);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ts-badge {
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 8px;
}

.ts-badge-online {
    background: rgba(0, 255, 100, 0.12);
    color: #00ff64;
    border: 1px solid rgba(0, 255, 100, 0.25);
}

.ts-badge-away {
    background: rgba(255, 169, 0, 0.12);
    color: #fea900;
    border: 1px solid rgba(255, 169, 0, 0.25);
}

.ts-badge-offline {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ts-staff-empty {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9em;
    font-style: italic;
}

/* TS Panel responsive */
@media (max-width: 768px) {
    .ts-panel {
        padding: 20px 14px;
    }

    .ts-status-bar {
        flex-direction: column;
        gap: 6px;
        padding: 8px 14px;
    }

    .ts-tabs {
        gap: 6px;
    }

    .ts-tab {
        font-size: 0.82em;
        padding: 8px 10px;
    }
}

/* ========================================
   MAIN CARD — TeamSpeak Hub Highlight
   ======================================== */
@keyframes mainCardPulse {
    0%, 100% {
        box-shadow: 0 0 25px rgba(255, 0, 255, 0.2), 0 0 60px rgba(200, 80, 211, 0.1);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 0, 255, 0.4), 0 0 80px rgba(200, 80, 211, 0.25);
    }
}

.paper-main {
    border: 1px solid rgba(255, 0, 255, 0.4) !important;
    background: rgba(40, 15, 65, 0.65);
    position: relative;
    /* Static glow highlight, no animation for performance */
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.2), 0 0 60px rgba(200, 80, 211, 0.1);
}

.paper-main:hover {
    border-color: rgba(255, 0, 255, 0.7) !important;
    box-shadow: 0 10px 40px rgba(255, 0, 255, 0.4), 0 0 80px rgba(255, 0, 255, 0.15), inset 0 0 30px rgba(255, 0, 255, 0.08);
}

.paper-icon-main {
    background: linear-gradient(135deg, rgba(200, 80, 211, 0.3), rgba(255, 0, 255, 0.15)) !important;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3), 0 0 40px rgba(200, 80, 211, 0.15) !important;
}

/* TS panel title icon */
.ts-title-icon {
    height: 28px;
    width: 28px;
    margin-right: 10px;
    vertical-align: middle;
    display: inline-block;
    filter: brightness(0) invert(1);
}

/* Server online status on card */
.ts-card-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.8em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
}

.ts-card-status.online {
    color: #00ff64;
}

.ts-card-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.ts-card-status.online .ts-card-status-dot {
    background: #00ff64;
    box-shadow: 0 0 6px rgba(0, 255, 100, 0.6);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ========================================
   GROUPS TAB — Login & Assigner
   ======================================== */
.ts-groups-container {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ff00ff rgba(0, 0, 0, 0.2);
}

.ts-groups-container::-webkit-scrollbar { width: 6px; }
.ts-groups-container::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 4px; }
.ts-groups-container::-webkit-scrollbar-thumb { background: #ff00ff; border-radius: 4px; }

/* Tab section descriptions */
.ts-tab-desc {
    font-size: 0.82em;
    color: rgba(255, 255, 255, 0.35);
    margin: 0 0 12px 0;
    padding: 0;
    text-align: center;
}

.ts-groups-assigner {
    display: flex;
    flex-direction: column;
}


/* Login UI */
.ts-groups-login {
    padding: 10px 0;
}

.ts-groups-login-header {
    font-family: 'Sen', sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    color: #fff;
    margin-bottom: 6px;
}

.ts-groups-login-header i {
    color: #c850d3;
    margin-right: 6px;
}

.ts-groups-login-desc {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

.ts-login-users {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.ts-login-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Sen', sans-serif;
    font-size: 0.92em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ts-login-user:hover {
    border-color: rgba(255, 0, 255, 0.4);
    background: rgba(200, 80, 211, 0.1);
    color: #fff;
}

.ts-login-user.selected {
    border-color: rgba(255, 0, 255, 0.6);
    background: rgba(200, 80, 211, 0.15);
    color: #ff66ff;
    box-shadow: 0 0 12px rgba(255, 0, 255, 0.15);
}

.ts-login-user:disabled {
    opacity: 0.5;
    cursor: default;
}

.ts-login-user i {
    color: #c850d3;
}

/* Code input */
.ts-login-code-wrap {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
}

.ts-login-code-msg {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.ts-login-code-input-wrap {
    display: flex;
    gap: 10px;
}

.ts-login-code-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-family: 'Sen', sans-serif;
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: 6px;
    text-align: center;
    outline: none;
    transition: border-color 0.3s ease;
}

.ts-login-code-input:focus {
    border-color: rgba(255, 0, 255, 0.5);
}

.ts-login-code-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 6px;
}

/* Buttons */
.ts-groups-btn {
    font-family: 'Sen', sans-serif;
    font-weight: 700;
    font-size: 0.88em;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
}

.ts-btn-verify {
    background: linear-gradient(135deg, #6b30ff, #c850d3);
    flex-shrink: 0;
}

.ts-btn-verify:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(200, 80, 211, 0.4);
}

.ts-btn-verify:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none;
}

.ts-btn-save {
    background: linear-gradient(135deg, #6b30ff, #c850d3);
    width: 100%;
    padding: 12px 20px;
    font-size: 0.95em;
}

.ts-btn-save:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(200, 80, 211, 0.4);
}

.ts-btn-save:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none;
}

.ts-btn-success {
    background: linear-gradient(135deg, #00c853, #00e676) !important;
}

.ts-btn-small {
    font-family: 'Sen', sans-serif;
    font-size: 0.78em;
    padding: 6px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s ease;
}

.ts-btn-logout {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.ts-btn-logout:hover {
    background: rgba(255, 100, 100, 0.15);
    border-color: rgba(255, 100, 100, 0.3) !important;
    color: #ff6b6b;
}


/* Assigner UI */
.ts-groups-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.ts-groups-welcome {
    font-size: 0.88em;
    color: rgba(255, 255, 255, 0.6);
}

.ts-groups-welcome i {
    color: #00ff64;
    margin-right: 6px;
}

.ts-groups-welcome strong {
    color: #fff;
}

.ts-groups-category {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 12px;
}

.ts-groups-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ts-groups-cat-name {
    font-family: 'Sen', sans-serif;
    font-weight: 700;
    font-size: 0.95em;
    color: #fff;
}

.ts-groups-cat-count {
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(200, 80, 211, 0.15);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(200, 80, 211, 0.2);
}

.ts-groups-cat-count.ts-count-over {
    background: rgba(255, 80, 80, 0.15);
    color: #ff6b6b;
    border-color: rgba(255, 80, 80, 0.3);
}

.ts-groups-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 0.88em;
    color: rgba(255, 255, 255, 0.7);
}

.ts-groups-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.ts-groups-item:last-child {
    margin-bottom: 0;
}

.ts-group-cb {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.ts-group-cb:checked {
    background: rgba(200, 80, 211, 0.3);
    border-color: #c850d3;
}

.ts-group-cb:checked::after {
    content: '\2713';
    position: absolute;
    top: -1px;
    left: 2px;
    font-size: 13px;
    color: #ff66ff;
    font-weight: 700;
}

.ts-group-icon {
    height: 16px;
    max-width: 16px;
}

.ts-group-name {
    word-break: break-word;
}

.ts-groups-actions {
    margin-top: 16px;
}

/* Save button in header (next to refresh) */
.ts-btn-save-header {
    background: linear-gradient(135deg, #6b30ff, #c850d3) !important;
    border: none !important;
    font-family: 'Sen', sans-serif;
    font-size: 0.78em;
    font-weight: 700;
}

.ts-btn-save-header:hover {
    box-shadow: 0 2px 12px rgba(200, 80, 211, 0.4);
    transform: scale(1.05);
}

.ts-btn-save-header:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.ts-btn-save-header.ts-btn-success {
    background: linear-gradient(135deg, #00c853, #00e676) !important;
}

.ts-groups-message {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
}

.ts-groups-message i {
    display: block;
    font-size: 2em;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 12px;
}

.ts-groups-message p {
    margin-bottom: 16px;
}

/* Refresh button */
.ts-btn-refresh {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.ts-btn-refresh:hover {
    background: rgba(200, 80, 211, 0.15);
    border-color: rgba(200, 80, 211, 0.3) !important;
    color: #c850d3;
}

.ts-groups-header-btns {
    display: flex;
    gap: 6px;
}

/* Groups tab responsive */
@media (max-width: 768px) {
    .ts-groups-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .ts-login-code-input-wrap {
        flex-direction: column;
    }
}

/* ========================================
   RANKSYSTEM PANEL
   ======================================== */
.ranksystem-panel {
    max-width: 900px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Tabs */
.rs-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 15px;
    flex-shrink: 0;
    overflow-x: auto;
}
.rs-tab {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-family: 'Sen', sans-serif;
    font-weight: 700;
    font-size: 0.82em;
    padding: 8px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}
.rs-tab:hover { color: rgba(255,255,255,0.7); }
.rs-tab.active { color: #ff00ff; border-bottom-color: #ff00ff; }

.rs-tab-content { display: none; flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px;
    scrollbar-width: thin; scrollbar-color: #ff00ff rgba(0,0,0,0.2); }
.rs-tab-content::-webkit-scrollbar { width: 6px; }
.rs-tab-content::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 4px; }
.rs-tab-content::-webkit-scrollbar-thumb { background: #ff00ff; border-radius: 4px; }
.rs-tab-content.active { display: block; }

/* Stats Grid */
.rs-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}
.rs-stat-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
}
.rs-stat-icon { font-size: 1.4em; margin-bottom: 4px; }
.rs-stat-value { font-family: 'Sen', sans-serif; font-weight: 700; font-size: 1.4em; color: #fff; }
.rs-stat-label { font-size: 0.7em; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

/* Activity grid (today/week/month/quarter) */
.rs-activity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}
.rs-activity-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
}
.rs-activity-card .rs-stat-value { font-size: 1.2em; color: #00ff64; }
.rs-activity-card .rs-stat-label { font-size: 0.65em; }

/* Section title */
.rs-section-title {
    font-family: 'Sen', sans-serif;
    font-weight: 700;
    font-size: 0.95em;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rs-section-title i { color: #ffc800; }

/* Chart section */
.rs-chart-section { margin-bottom: 15px; }
.rs-chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.rs-usage-chart-wrap { position: relative; height: 180px; width: 100%; }
.rs-period-select, .rs-sort-select {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: #fff;
    font-size: 0.78em;
    padding: 5px 10px;
    font-family: 'Sen', sans-serif;
}
.rs-period-select option, .rs-sort-select option { background: #1a0a2e; }

/* Charts grid */
.rs-charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.rs-chart-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 15px;
}
.rs-chart-card h4 {
    font-family: 'Sen', sans-serif;
    font-size: 0.85em;
    color: rgba(255,255,255,0.7);
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.rs-chart-card h4 i { color: #ff00ff; }

/* Leaderboard */
.rs-lb-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-shrink: 0; gap: 10px; flex-wrap: wrap; }
.rs-period-tabs { display: flex; gap: 4px; }
.rs-period-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    padding: 5px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: 600;
    font-family: 'Sen', sans-serif;
    transition: all 0.2s;
}
.rs-period-btn:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); }
.rs-period-btn.active { background: rgba(255,0,255,0.15); border-color: rgba(255,0,255,0.3); color: #ff80ff; }
.rs-leaderboard { padding-right: 4px; overflow-x: auto; }
.rs-lb-header, .rs-lb-row {
    display: grid;
    grid-template-columns: 36px 1fr 70px 70px 80px 110px 80px;
    gap: 4px;
    align-items: center;
    padding: 7px 8px;
    border-radius: 6px;
    font-size: 0.82em;
    min-width: 580px;
}
.rs-lb-header {
    color: rgba(255,255,255,0.35);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.68em;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 2px;
}
.rs-lb-row { color: rgba(255,255,255,0.7); cursor: pointer; transition: background 0.2s; }
.rs-lb-row:hover { background: rgba(255,255,255,0.05); }
.rs-lb-rank { font-weight: 700; color: rgba(255,255,255,0.35); text-align: center; }
.rs-lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.rs-lb-col { text-align: right; font-size: 0.9em; color: rgba(255,255,255,0.45); }
.rs-lb-col-online { font-weight: 600; }
.rs-lb-col-active { font-weight: 700; color: rgba(255,255,255,0.55); }
.rs-lb-col-seen { font-size: 0.85em; color: rgba(255,255,255,0.35); }
.rs-lb-col-next { font-size: 0.82em; }
.rs-lb-group { text-align: right; font-size: 0.82em; color: rgba(200,80,211,0.7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.rs-lb-group img { width: 16px; height: 16px; flex-shrink: 0; }
.rs-lb-online-now { color: #00ff64; font-weight: 600; font-size: 0.9em; }

.rs-lb-top1 { background: rgba(255,215,0,0.08); }
.rs-lb-top1 .rs-lb-rank { color: #ffd700; }
.rs-lb-top2 { background: rgba(192,192,192,0.06); }
.rs-lb-top2 .rs-lb-rank { color: #c0c0c0; }
.rs-lb-top3 { background: rgba(205,127,50,0.06); }
.rs-lb-top3 .rs-lb-rank { color: #cd7f32; }

.rs-lb-online-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #00ff64; box-shadow: 0 0 4px rgba(0,255,100,0.5); flex-shrink: 0; }
.rs-lb-nation { font-size: 0.9em; flex-shrink: 0; }

/* Legacy & Next Rank badges */
.rs-legacy-badge {
    display: inline-block;
    background: rgba(255,165,0,0.15);
    color: #ffb347;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.82em;
    font-weight: 600;
    border: 1px solid rgba(255,165,0,0.2);
}
.rs-next-rank { color: rgba(0,255,255,0.5); font-weight: 600; }
.rs-max-rank { color: #ffd700; font-weight: 700; font-size: 0.85em; text-shadow: 0 0 6px rgba(255,215,0,0.3); }
.rs-group-legacy { opacity: 0.5; border-style: dashed !important; }

/* Donor badges */
.rs-donor-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(255,215,0,0.5));
}
.rs-donor-badge img { border-radius: 2px; }
.rs-donor-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,215,0,0.1);
    color: #ffd700;
    padding: 2px 9px;
    border-radius: 6px;
    font-size: 0.65em;
    font-weight: 700;
    border: 1px solid rgba(255,215,0,0.25);
    vertical-align: middle;
    text-shadow: 0 0 6px rgba(255,215,0,0.3);
}
.rs-donor-badge-large img { border-radius: 2px; }

/* Pagination */
.rs-lb-pagination { display: flex; justify-content: center; gap: 4px; margin-top: 10px; flex-shrink: 0; }
.rs-lb-pagination button {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.78em;
    cursor: pointer;
    font-family: 'Sen', sans-serif;
}
.rs-lb-pagination button.active { background: rgba(255,0,255,0.2); border-color: #ff00ff; color: #ff00ff; }
.rs-lb-pagination button:hover { background: rgba(255,255,255,0.08); }

/* Server info */
.rs-server-info { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.rs-server-table { width: 100%; }
.rs-server-table h3 {
    font-family: 'Sen', sans-serif;
    font-size: 0.9em;
    color: #fff;
    margin: 0 0 10px;
}
.rs-server-table table { width: 100%; border-collapse: collapse; }
.rs-server-table td {
    padding: 6px 10px;
    font-size: 0.8em;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.rs-server-table td:first-child { color: rgba(255,255,255,0.4); width: 40%; }
.rs-server-table td:last-child { color: rgba(255,255,255,0.8); }

/* Search */
.rs-search-wrap { margin-bottom: 12px; }
.rs-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 14px;
}
.rs-search-box i { color: rgba(255,255,255,0.3); font-size: 0.85em; }
.rs-search-box input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Sen', sans-serif;
    font-size: 0.85em;
    width: 100%;
}
.rs-search-box input::placeholder { color: rgba(255,255,255,0.25); }
.rs-search-results {
    margin-top: 6px;
    background: rgba(10,0,20,0.95);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
}
.rs-search-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 0.82em;
    color: rgba(255,255,255,0.7);
}
.rs-search-item:hover { background: rgba(255,255,255,0.06); }
.rs-search-item img { width: 16px; height: 16px; }
.rs-search-item .rs-search-rank { color: rgba(200,80,211,0.7); margin-left: auto; font-size: 0.9em; }

/* Improved user detail */
.rs-user-modal {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,0,20,0.99) 0%, rgba(20,5,40,0.98) 100%);
    z-index: 10;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: #ff00ff rgba(0,0,0,0.2);
}
.rs-user-modal-close {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: rgba(255,255,255,0.6);
    font-size: 0.82em;
    cursor: pointer;
    padding: 6px 14px;
    margin-bottom: 20px;
    font-family: 'Sen', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.rs-user-modal-close:hover { color: #fff; background: rgba(255,255,255,0.08); }

.rs-user-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
}
.rs-user-header h3 { margin: 0; font-size: 1.3em; color: #fff; display: flex; align-items: center; gap: 8px; }
.rs-user-header .rs-user-rank {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(200,80,211,0.9);
    font-size: 0.85em;
    margin-top: 4px;
    font-weight: 600;
}
.rs-user-header .rs-user-rank img { width: 22px; height: 22px; }

.rs-user-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 0 4px;
}
.rs-user-meta span {
    font-size: 0.78em;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.03);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.04);
}
.rs-user-meta span i { color: #ff00ff; font-size: 0.9em; }

.rs-user-next-rank {
    padding: 8px 14px;
    margin-bottom: 14px;
    border-radius: 8px;
    font-size: 0.85em;
    color: rgba(0,255,255,0.7);
    background: rgba(0,255,255,0.06);
    border: 1px solid rgba(0,255,255,0.12);
}
.rs-user-next-rank i { margin-right: 6px; }
.rs-user-max-rank {
    color: #ffd700 !important;
    background: rgba(255,215,0,0.08) !important;
    border-color: rgba(255,215,0,0.15) !important;
}
.rs-user-section-title {
    font-size: 0.85em;
    color: rgba(255,255,255,0.4);
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.rs-user-section-title i { color: #ff00ff; margin-right: 6px; }

.rs-user-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.rs-user-period {
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 12px;
}
.rs-user-period h4 {
    margin: 0 0 8px;
    font-size: 0.72em;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.rs-user-period .stat-row { display: flex; justify-content: space-between; font-size: 0.8em; color: rgba(255,255,255,0.55); padding: 3px 0; }
.rs-user-period .stat-row strong { color: #fff; }

.rs-user-groups { margin-top: 5px; }
.rs-user-groups h4 {
    font-size: 0.8em;
    color: rgba(255,255,255,0.4);
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.rs-user-groups-list { display: flex; flex-wrap: wrap; gap: 6px; }
.rs-user-group-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.75em;
    color: rgba(255,255,255,0.65);
    transition: background 0.15s;
}
.rs-user-group-badge:hover { background: rgba(255,255,255,0.07); }
.rs-user-group-badge img { width: 16px; height: 16px; }

@media (max-width: 768px) {
    .ranksystem-panel { overflow-y: auto; }
    .rs-tab-content.active { overflow-y: visible; overflow-x: hidden; }
    .rs-stats-grid, .rs-activity-grid { grid-template-columns: repeat(2, 1fr); }
    .rs-stat-card { padding: 10px 6px; }
    .rs-stat-value { font-size: 1.1em; }
    .rs-stat-label { font-size: 0.62em; }
    .rs-stat-icon { font-size: 1.2em; }
    .rs-user-stats-grid { grid-template-columns: 1fr; }
    .rs-charts-grid { grid-template-columns: 1fr; }
    .rs-server-info { grid-template-columns: 1fr; }
    .rs-lb-header, .rs-lb-row { grid-template-columns: 30px 1fr 60px 60px; min-width: 0; }
    .rs-lb-col-seen, .rs-lb-group, .rs-lb-col-next { display: none; }
    .rs-lb-controls { flex-direction: column; align-items: stretch; }
    .rs-tabs { gap: 0; flex-wrap: nowrap; }
    .rs-tab { padding: 8px 10px; font-size: 0.75em; flex-shrink: 0; }
    .rs-chart-section { overflow: hidden; }
    .rs-usage-chart-wrap { min-height: 180px; }
}
@media (max-width: 400px) {
    .rs-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .rs-stat-value { font-size: 1em; }
    .rs-stat-icon { font-size: 1em; }
    .rs-activity-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .rs-tab { padding: 6px 8px; font-size: 0.68em; }
}

/* ========================================
   RANKSYSTEM — MY STATS TAB
   ======================================== */
.rs-mystats-search {
    margin-bottom: 16px;
}
.rs-mystats-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px 14px;
}
.rs-mystats-search-box i { color: rgba(255,255,255,0.3); font-size: 0.9em; }
.rs-mystats-search-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Sen', sans-serif;
    font-size: 0.95em;
}
.rs-mystats-search-box input::placeholder { color: rgba(255,255,255,0.25); }
.rs-mystats-results {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-top: 6px;
    max-height: 200px;
    overflow-y: auto;
}
.rs-mystats-prompt {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.3);
    font-size: 0.9em;
}
.rs-mystats-prompt i {
    display: block;
    font-size: 2.5em;
    margin-bottom: 12px;
    color: rgba(255,0,255,0.25);
}
.rs-mystats-detail {
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.rs-mystats-multi {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 10px 10px;
}
.rs-mystats-pick {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: rgba(255,255,255,0.8);
    font-family: 'Sen', sans-serif;
    font-size: 0.92em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}
.rs-mystats-pick:hover {
    border-color: rgba(255,0,255,0.4);
    background: rgba(200,80,211,0.1);
    color: #fff;
}
.rs-mystats-pick img { width: 16px; height: 16px; }

/* ========================================
   NEWS PANEL
   ======================================== */
.news-panel {
    max-width: 700px;
}

.news-content {
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: #ff00ff rgba(0, 0, 0, 0.2);
}

.news-content::-webkit-scrollbar {
    width: 6px;
}

.news-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.news-content::-webkit-scrollbar-thumb {
    background-color: #ff00ff;
    border-radius: 4px;
}

/* Info banners (support/help) */
.news-info {
    background: rgba(79, 195, 247, 0.08);
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-left: 4px solid #4fc3f7;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 18px;
}
.news-info-title {
    font-family: 'Sen', sans-serif;
    font-weight: 700;
    font-size: 1.05em;
    color: #4fc3f7;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.news-info-title i { font-size: 1em; }
.news-info-msg {
    font-size: 0.92em;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.75);
}

/* Persistent (warning) news */
.news-persistent {
    background: rgba(255, 200, 0, 0.1);
    border: 1px solid rgba(255, 200, 0, 0.3);
    border-left: 4px solid #ffc800;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 18px;
}

.news-persistent-title {
    font-family: 'Sen', sans-serif;
    font-weight: 700;
    font-size: 1.05em;
    color: #ffd740;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-persistent-title i {
    font-size: 1em;
}

.news-persistent-msg {
    font-size: 0.92em;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.75);
}

.news-persistent-date {
    font-size: 0.78em;
    color: rgba(255, 200, 0, 0.45);
    margin-top: 10px;
}

/* Regular news items */
.news-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.news-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.news-item-title {
    font-family: 'Sen', sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    color: #fff;
}

.news-item-date {
    font-size: 0.78em;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    margin-left: 12px;
}

.news-item-msg {
    font-size: 0.92em;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
}

.news-item-author {
    font-size: 0.8em;
    color: rgba(200, 80, 211, 0.65);
    margin-top: 12px;
    font-style: italic;
}

.news-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95em;
    font-style: italic;
}

/* ========================================
   COOKIE CONSENT BANNER
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9000;
    padding: 0 20px 20px;
}

.cookie-banner-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(20, 10, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px 22px;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4), 0 0 60px rgba(200, 80, 211, 0.08);
}

.cookie-banner-inner p {
    flex: 1;
    font-size: 0.82em;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
}

.cookie-banner-inner p i {
    color: #ffc800;
    margin-right: 6px;
}

.cookie-accept {
    font-family: 'Sen', sans-serif;
    font-weight: 700;
    font-size: 0.85em;
    padding: 10px 24px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #6b30ff, #c850d3);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.cookie-accept:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(200, 80, 211, 0.4);
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .cookie-accept {
        width: 100%;
    }

    .footer {
        padding-right: 70px;
    }

    .lang-flag-btn {
        right: 8px;
        font-size: 0.65em;
        padding: 3px 6px;
    }

    .lang-flag-btn img {
        width: 16px;
        height: 11px;
    }
}