::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0a0d14;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00f3ff;
}
.glass-panel {
    background: rgba(18, 24, 36, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.neon-glow-purple {
    box-shadow: 0 0 25px -5px rgba(157, 78, 223, 0.4), inset 0 0 15px -5px rgba(157, 78, 223, 0.2);
    border: 1px solid rgba(157, 78, 223, 0.5);
}

body.theme-home { background: radial-gradient(circle at 50% 0%, #111a2e 0%, #080c14 100%); }
body.theme-socials { background: radial-gradient(circle at 50% 0%, #0a2540 0%, #06101e 100%); }
body.theme-gaming { background: radial-gradient(circle at 50% 0%, #220a38 0%, #0d0517 100%); }
body.theme-accounts { background: radial-gradient(circle at 50% 0%, #3a0022 0%, #12000a 100%); }
body.theme-affiliate { background: radial-gradient(circle at 50% 0%, #2e2100 0%, #0e0a00 100%); }
body.theme-banking { background: radial-gradient(circle at 50% 0%, #00281b 0%, #000d08 100%); }
body.theme-wishlist { background: radial-gradient(circle at 50% 0%, #3a0a24 0%, #12030b 100%); }
body.theme-accessories { background: radial-gradient(circle at 50% 0%, #06303a 0%, #020e12 100%); }
body.theme-cat { background: radial-gradient(circle at 20% 0%, #0b2a52 0%, #2a1608 70%, #120a04 100%); }

/* ===== Video background (tinted per page) ===== */
body.theme-home      { --tint: #2f6bff; }
body.theme-socials   { --tint: #0ea5e9; }
body.theme-gaming    { --tint: #9d4edf; }
body.theme-accounts  { --tint: #ff007f; }
body.theme-affiliate { --tint: #ffaa00; }
body.theme-banking   { --tint: #00ff88; }
body.theme-wishlist  { --tint: #ff4d8d; }
body.theme-accessories { --tint: #22d3ee; }
body.theme-cat { --tint: #b8743a; }

#bgVideoWrap {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    isolation: isolate;
    opacity: 0.75;              /* lower = more of the page gradient shows through */
}
#bgVideo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(2.6) contrast(1.3);   /* raise brightness for a stronger effect */
}
#bgTint {                       /* recolors the video to the page color */
    position: absolute;
    inset: 0;
    background-color: var(--tint);
    mix-blend-mode: color;
    transition: background-color 0.7s ease;
}
#bgShade {                      /* darkens so text stays readable */
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
}

/* ===== Smoother feel ===== */
html { -webkit-tap-highlight-color: transparent; }
.tab-content:not(.hidden) { animation: tabIn .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes tabIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
a, button { transition: transform .15s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease; touch-action: manipulation; }
a:active, button:active { transform: scale(.97); }
nav.fixed.bottom-0 { padding-bottom: calc(.5rem + env(safe-area-inset-bottom)); }
.nav-btn { position: relative; }
.nav-btn.is-active::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 18px; height: 3px; margin-left: -9px; border-radius: 3px; background: currentColor; }
#wishlistGamesGrid:empty { min-height: 220px; border-radius: 1rem; background: linear-gradient(100deg, rgba(30,41,59,.5) 30%, rgba(51,65,85,.6) 50%, rgba(30,41,59,.5) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
    .tab-content:not(.hidden) { animation: none; }
    a:active, button:active { transform: none; }
    #wishlistGamesGrid:empty { animation: none; }
}

/* ===== Picture behind a card (Gaming Status = the game, Community = the server) ===== */
.card-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.card-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,26,.88), rgba(10,14,26,.62)); }
.card-bg.on { opacity: .9; }
#communityBg.on { opacity: .3; }          /* server picture stays soft so the text is easy to read */

/* ===== Language dropdown ===== */
.lang-flag { display: inline-block; width: 22px; height: 15px; border-radius: 3px; overflow: hidden; border: 1px solid rgba(148,163,184,.45); flex-shrink: 0; }
.lang-flag svg { display: block; width: 100%; height: 100%; }
.lang-opt.active { background: rgba(0,243,255,.12); color: #fff; }

/* ===== Longer languages (Hungarian, Romanian): text wraps instead of pushing buttons off the screen ===== */
header, nav, .tab-content { overflow-wrap: anywhere; }
.nav-btn span { max-width: 100%; text-align: center; }
html[lang="hu"] .nav-btn span, html[lang="ro"] .nav-btn span { font-size: 9px; }
.tab-content a.flex, .tab-content button.flex { text-align: center; }
.tab-content a.flex > i, .tab-content button.flex > i { flex-shrink: 0; }
.tab-content a.flex-1, .tab-content button.flex-1 { padding-left: .75rem; padding-right: .75rem; min-width: 0; }
