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

:root {
    --bg-dark: #050608;
    --bg-panel: #0d1117;
    --bg-card: rgba(255, 255, 255, 0.03);
    --accent: #00ff88;
    --accent-glow: rgba(0, 255, 136, 0.4);
    --sidebar-width: 280px;
    --text-main: #b1b1b1;
    --text-bright: #ffffff;
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #0b0e14 0%, #0d1018 100%);
    border-right: 1px solid rgba(255,255,255,0.04);
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 28px 16px;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
}
.sidebar::-webkit-scrollbar { width: 0; }

.rp-logo{
    display:flex;
    align-items:center;
    gap:14px;
    cursor:pointer;
    width:max-content;
    user-select:none;
    font-family:'Inter',sans-serif;
    text-decoration:none;
    margin: 0 auto 16px auto;
}

.rp-icon{
    width:38px;
    height:38px;
    border-radius:12px;
    background:linear-gradient(145deg,var(--accent),#00b96a);
    position:relative;
    box-shadow:
        0 0 18px rgba(0,255,136,.45),
        inset 0 -4px 8px rgba(0,0,0,.25);
    animation:floatLogo 3s ease-in-out infinite;
    transition:.35s ease;
}

/* ghost shape */
.rp-icon::before{
    content:'';
    position:absolute;
    inset:0;
    clip-path:polygon(
        15% 8%,
        85% 8%,
        85% 72%,
        68% 62%,
        50% 76%,
        32% 62%,
        15% 72%
    );
    background:linear-gradient(
        180deg,
        rgba(255,255,255,.18),
        rgba(255,255,255,0)
    );
    border-radius:12px;
}

/* eyes */
.rp-eye{
    position:absolute;
    width:5px;
    height:8px;
    background:#07110d;
    border-radius:50px;
    top:13px;
    z-index:2;
    animation:blink 5s infinite;
}

.rp-eye.left{
    left:12px;
}

.rp-eye.right{
    right:12px;
}

.rp-text{
    font-size:26px;
    font-weight:800;
    letter-spacing:.5px;
    color:#fff;
    position:relative;
    transition:.35s ease;
    font-family: 'Outfit', sans-serif;
}

/* glow line */
.rp-text::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-4px;
    width:0%;
    height:3px;
    border-radius:50px;
    background:var(--accent);
    transition:.45s ease;
    box-shadow:0 0 12px var(--accent);
}

.rp-logo:hover .rp-text{
    color:var(--accent);
    text-shadow:0 0 14px rgba(0,255,136,.65);
}

.rp-logo:hover .rp-text::after{
    width:100%;
}

.rp-logo:hover .rp-icon{
    transform:rotate(-6deg) scale(1.08);
    box-shadow:
        0 0 28px rgba(0,255,136,.75),
        inset 0 -4px 8px rgba(0,0,0,.25);
}

/* animations */
@keyframes floatLogo{
    0%,100%{
        transform:translateY(0px);
    }
    50%{
        transform:translateY(-4px);
    }
}

@keyframes blink{
    0%,45%,47%,100%{
        transform:scaleY(1);
    }
    46%{
        transform:scaleY(.1);
    }
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}

.nav-links a {
    position: relative;
    color: rgba(255,255,255,0.42);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 9px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: 0.1px;
    overflow: hidden;
}

/* Sliding left accent indicator */
.nav-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 55%;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 8px var(--accent);
    transition: transform 0.2s ease;
}

.nav-links a:hover {
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.04);
}

.nav-links a:hover::before {
    transform: translateY(-50%) scaleY(1);
}

.nav-links a.active {
    color: var(--accent);
    background: rgba(0,255,136,0.07);
}

.nav-links a.active::before {
    transform: translateY(-50%) scaleY(1);
}

.nav-links i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.nav-links a:hover i,
.nav-links a.active i {
    color: var(--accent);
    filter: drop-shadow(0 0 6px rgba(0,255,136,0.5));
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 2px 0;
}

.support-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.support-title {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(255,255,255,0.18);
    margin-bottom: 6px;
    padding-left: 10px;
}
.support-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 8px;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    letter-spacing: 0.1px;
}
.support-btn i {
    font-size: 13px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}
.support-btn:hover {
    color: #fff;
    transform: translateX(3px);
}

.btn-repacks i { color: rgba(0,255,136,0.6); }
.btn-repacks:hover { background: rgba(0,255,136,0.06); border-color: rgba(0,255,136,0.12); }
.btn-repacks:hover i { color: #00ff88; filter: drop-shadow(0 0 6px rgba(0,255,136,0.5)); }

.btn-chat i { color: rgba(51,204,255,0.6); }
.btn-chat:hover { background: rgba(51,204,255,0.06); border-color: rgba(51,204,255,0.12); }
.btn-chat:hover i { color: #33ccff; filter: drop-shadow(0 0 6px rgba(51,204,255,0.5)); }

.sidebar-search {
    margin: 10px 0 4px 0;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 0 12px;
    transition: all 0.2s ease;
}

.search-input-wrapper:focus-within {
    border-color: rgba(0,255,136,0.25);
    background: rgba(0,0,0,0.25);
    box-shadow: 0 0 0 3px rgba(0,255,136,0.04);
}

.search-icon {
    color: rgba(255,255,255,0.2);
    font-size: 12px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}
.search-input-wrapper:focus-within .search-icon { color: var(--accent); }

.search-input-wrapper input {
    width: 100%;
    background: transparent !important;
    border: none !important;
    padding: 10px 0;
    color: #fff !important;
    font-size: 12.5px;
    outline: none;
    letter-spacing: 0.1px;
}
.search-input-wrapper input::placeholder { color: rgba(255,255,255,0.2); }

.search-input-wrapper input:focus { outline: none; }

/* Fast Search Results */
#searchsuggestions {
    background: rgba(15, 18, 23, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    overflow: hidden;
    z-index: 9999 !important;
    width: 300px !important;
    margin-top: 10px;
}

#searchsuggestions a, #searchsuggestions span {
    text-decoration: none !important;
}

.search-result-item {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
#searchsuggestions a:hover {
    background: rgba(0, 255, 136, 0.1) !important;
    padding-left: 25px;
    text-decoration: none !important;
}

#searchsuggestions a:hover .sr-title {
    color: #fff !important;
}

.sr-title {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.sr-title i {
    color: var(--accent);
    margin-right: 5px;
}

#searchsuggestions > a:not(.search-result-item),
#searchsuggestions span a {
    display: block;
    text-align: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--accent) !important;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

#searchsuggestions > a:not(.search-result-item):hover,
#searchsuggestions span a:hover {
    background: rgba(0, 255, 136, 0.1);
}

.category-grid li {
    list-style: none;
}

.category-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.1px;
    transition: all 0.18s ease;
    white-space: nowrap;
    overflow: hidden;
}

.category-tile span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-tile:hover {
    color: var(--accent);
    background: rgba(255,255,255,0.05);
}

/* Main Content Wrapper */
.main-wrapper {
    margin-left: var(--sidebar-width);
    padding: 40px;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Hero Slider */
.hero-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}
.hero-slider::-webkit-scrollbar { display: none; }

.hero-wrapper {
    position: relative;
    margin-bottom: 40px;
}
.hero-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.hero-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.hero-dot:hover {
    border-color: var(--accent);
}
.hero-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0,255,136,0.5);
    transform: scale(1.2);
}

.hero-slide {
    flex: 0 0 100%;
    height: 420px;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    font-size: 0;
    color: transparent;
}
.hero-bg * {
    width: 100%; height: 100%; display: block;
}
.hero-bg img {
    width: 100% !important; height: 100% !important; object-fit: cover !important;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background:
        linear-gradient(to right, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 40%, transparent 70%),
        linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 40%);
    z-index: 2;
}

.hero-inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 50px 60px;
    height: 100%;
    max-width: 900px;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-poster {
    flex-shrink: 0;
    width: 200px;
    height: 280px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .hero-poster {
        display: none;
    }
    .hero-inner {
        padding: 40px;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,255,136,0.12);
    color: var(--accent);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(0,255,136,0.25);
    margin-bottom: 16px;
    width: fit-content;
}

.hero-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 44px;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    line-height: 1.1;
}

.hero-desc {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    max-width: 450px;
    margin-bottom: 20px;
    line-height: 1.6;
}
.hero-desc:empty { display: none; }

.hero-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,255,136,0.08);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    color: #fff;
    font-weight: 700;
    border: 1px solid rgba(0,255,136,0.15);
    transition: all 0.3s ease;
}
.hero-tag:hover { border-color: rgba(0,255,136,0.4); }
.hero-tag i { color: var(--accent); font-size: 14px; }

/* Fix DLE category links running together */
.hero-tag-cat {
    display: inline-flex;
    flex-wrap: wrap;
    font-size: 0 !important; /* Hide commas output by DLE */
}
.hero-tag-cat i {
    font-size: 14px;
    margin-right: 8px;
}
.hero-tag-cat a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 13px; /* Restore font size for links */
}
.hero-tag-cat a:hover {
    color: var(--accent);
}
.hero-tag-cat a + a {
    margin-left: 6px;
}
.hero-tag-cat a + a::before {
    content: "/ ";
    color: rgba(255,255,255,0.25);
    margin-right: 2px;
}

.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #000 !important;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(0,255,136,0.3);
}
.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,255,136,0.5);
    filter: brightness(1.1);
}
.btn-premium i { font-size: 16px; }

/* Game Grid */
#dle-content {
    display: contents;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

/* Cards */
.game-card {
    background: linear-gradient(180deg, rgba(20,24,30,0) 0%, rgba(10,13,18,1) 100%);
    background-color: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.03);
    transition: all 0.3s ease;
    position: relative;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 20px rgba(0, 255, 136, 0.1);
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
}

.card-badge {
    position: absolute;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
}
.card-badge a { color: inherit; text-decoration: none; }
.card-badge.repacker { top: 10px; left: 10px; color: #a200ff; border: 1px solid rgba(162, 0, 255, 0.3); }
.card-badge.size { bottom: 10px; right: 10px; color: var(--accent); border: 1px solid rgba(0, 255, 136, 0.3); }

.card-hover-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    text-decoration: none;
}

.game-card:hover .card-hover-overlay { opacity: 1; }

.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 12px;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(8px);
}
.game-card:hover .btn-view { transform: translateY(0); }
.btn-view:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px rgba(0,255,136,0.3);
}

.card-info {
    padding: 16px 18px;
}

.card-title {
    font-weight: 700;
    color: #fff;
    font-size: 15px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.5px;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.game-card:hover .card-title a {
    color: var(--accent) !important;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-item i {
    color: var(--accent);
    font-size: 13px;
    opacity: 0.9;
}

/* Year Specific Styling */
.meta-item:first-child {
    background: rgba(255,255,255,0.03);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--text-main);
}

.meta-item a {
    color: inherit !important;
    text-decoration: none !important;
}

.meta-item:hover {
    color: #fff;
    background: rgba(0, 255, 136, 0.08);
    border-color: rgba(0, 255, 136, 0.2);
}

.sidebar-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.sidebar-title {
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.2);
    margin-bottom: 8px;
    padding-left: 8px;
    font-weight: 800;
}

.nav-links.secondary a {
    padding: 10px 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.nav-links.secondary a:hover {
    color: #fff;
}

.nav-links.secondary a i {
    font-size: 14px;
    width: 18px;
    color: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent-glow));
    opacity: 0.8;
}

/* Login Panel Refinement */
.login-panel {
    padding: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.03);
    margin: 0 10px;
}

.login-inputs input {
    width: 100%;
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
    padding: 12px 15px !important;
    margin-bottom: 12px !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 13px !important;
    transition: var(--transition);
}

.login-inputs input:focus {
    border-color: var(--accent) !important;
    background: rgba(255,255,255,0.05) !important;
    outline: none;
}

.btn-premium {
    background: var(--accent);
    color: #000;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    width: fit-content;
    box-shadow: 0 0 20px var(--accent-glow);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

.btn-premium:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.login-panel .btn-premium {
    width: 100%;
    margin-top: 5px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.15);
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding: 0 5px;
}

.login-links a {
    color: #777;
    font-size: 11px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    transition: var(--transition);
}

.login-links a:hover {
    color: #fff;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Mobile topbar is desktop-hidden by default; media queries reveal it */
.mobile-topbar { display: none; }

/* ── Sidebar collapsed mode (applied via JS using outerWidth, zoom-independent) ── */
.sidebar--sm {
    width: 72px !important;
    padding: 20px 8px !important;
    overflow: hidden !important;
    z-index: 400;
    cursor: pointer;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s ease !important;
}
.sidebar--sm.sidebar--expanded {
    width: var(--sidebar-width) !important;
    padding: 30px 20px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-shadow: 6px 0 40px rgba(0, 0, 0, 0.7);
    cursor: default;
}

/* Inline text — fade out when collapsed */
.sidebar--sm .rp-text,
.sidebar--sm .nav-links a span,
.sidebar--sm .sidebar-title,
.sidebar--sm .sidebar-section > h4 {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.25s ease 0.05s, max-width 0.3s ease;
}
.sidebar--sm.sidebar--expanded .rp-text,
.sidebar--sm.sidebar--expanded .nav-links a span,
.sidebar--sm.sidebar--expanded .sidebar-title,
.sidebar--sm.sidebar--expanded .sidebar-section > h4 {
    opacity: 1;
    max-width: 220px;
}

/* Block items — hidden until expanded */
.sidebar--sm .category-grid,
.sidebar--sm .support-block,
.sidebar--sm .login-panel,
.sidebar--sm .user-profile-small span { display: none; }
.sidebar--sm.sidebar--expanded .category-grid  { display: grid; }
.sidebar--sm.sidebar--expanded .support-block  { display: flex; flex-direction: column; gap: 8px; }
.sidebar--sm.sidebar--expanded .login-panel    { display: block; }
.sidebar--sm.sidebar--expanded .user-profile-small span { display: inline; }

/* Nav alignment */
.sidebar--sm .rp-logo { gap: 0; }
.sidebar--sm .nav-links a { padding: 14px; justify-content: center; transition: padding 0.3s ease; }
.sidebar--sm .nav-links i { width: auto; margin: 0; }
.sidebar--sm.sidebar--expanded .nav-links a { padding: 10px 14px; justify-content: flex-start; }
.sidebar--sm.sidebar--expanded .rp-logo { gap: 12px; }

/* Main wrapper offset when sidebar is collapsed */
.main-wrapper--sm { margin-left: 72px !important; padding: 20px !important; }

/* Mobile topbar visible when sidebar is collapsed */
.sidebar--sm ~ * .mobile-topbar,
body.sidebar-sm-active .mobile-topbar { display: flex; }

/* ── Hero size adjustments still use media query (zoom-appropriate) ── */
@media (max-width: 1366px) {
    .mobile-topbar { display: flex; }
    .hero-slide { height: 340px; }
    .hero-inner { padding: 36px; }
    .hero-content h1 { font-size: 34px; }
}

/* --- Mobile (≤768px): full-width, sidebar becomes drawer --- */
@media (max-width: 768px) {

    /* Top bar */
    .mobile-topbar {
        display: flex;
        position: fixed;
        top: 0; left: 0; right: 0;
        height: 58px;
        background: var(--bg-panel);
        border-bottom: 1px solid rgba(255,255,255,0.06);
        z-index: 200;
        align-items: center;
        justify-content: space-between;
        padding: 0 18px;
    }
    .mobile-logo {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
    }
    .mobile-logo .rp-icon {
        width: 30px; height: 30px; border-radius: 8px;
        animation: none;
    }
    .mobile-logo-text {
        font-family: 'Outfit', sans-serif;
        font-size: 18px;
        font-weight: 800;
        color: #fff;
    }
    .hamburger-btn {
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.08);
        color: #fff;
        width: 40px; height: 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 18px;
        transition: all 0.25s ease;
        flex-shrink: 0;
    }
    .hamburger-btn:hover, .hamburger-btn:active {
        background: rgba(0,255,136,0.1);
        border-color: rgba(0,255,136,0.3);
        color: var(--accent);
    }

    /* Sidebar becomes a full-height drawer */
    .sidebar {
        width: 280px;
        height: 100vh;
        top: 0; left: 0;
        padding: 20px 16px;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
        z-index: 300;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    /* Restore hidden sidebar items inside the drawer */
    .sidebar .rp-text,
    .sidebar .nav-links a span,
    .sidebar .sidebar-title,
    .sidebar .category-grid,
    .sidebar .support-block,
    .sidebar .sidebar-section > h4,
    .sidebar .login-panel,
    .sidebar .user-profile-small span {
        display: revert !important;
    }
    .sidebar .rp-logo { margin-bottom: 30px; gap: 14px; }
    .sidebar .nav-links a { padding: 14px 18px; justify-content: flex-start; }
    .sidebar .nav-links i { width: 24px; }

    /* Overlay backdrop */
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.65);
        backdrop-filter: blur(4px);
        z-index: 250;
    }
    .sidebar-overlay.visible { display: block; }

    /* Main content — full width, push down from top bar */
    .main-wrapper {
        margin-left: 0 !important;
        padding: 78px 14px 20px;
        max-width: 100vw;
    }

    /* Hero slider */
    .hero-wrapper { margin-bottom: 24px; }
    .hero-slider { border-radius: 14px; }
    .hero-slide { height: 240px; }
    .hero-inner { padding: 20px; gap: 0; max-width: 100%; }
    .hero-poster { display: none !important; }
    .hero-badge { font-size: 9px; padding: 4px 10px; margin-bottom: 10px; }
    .hero-content h1 { font-size: 22px; letter-spacing: -0.5px; margin-bottom: 8px; }
    .hero-desc { display: none; }
    .hero-meta { gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
    .hero-tag { padding: 5px 10px; font-size: 11px; gap: 5px; }
    .btn-premium { padding: 10px 20px; font-size: 12px; }
    .hero-dots { bottom: 10px; gap: 6px; }
    .hero-dot { width: 8px; height: 8px; }

    /* Game grid — 2 columns */
    .content-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .card-title { font-size: 13px; }
    .card-info { padding: 12px 14px; }
    .meta-item { font-size: 10px; }

    /* Content header */
    .content-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px;
        margin-bottom: 18px !important;
    }

    /* Footer */
    footer.footer {
        flex-direction: column !important;
        gap: 10px !important;
        font-size: 12px !important;
    }

    /* Search suggestions width */
    #searchsuggestions { width: 260px !important; }
}

/* --- Small phones (≤420px) --- */
@media (max-width: 420px) {
    .hero-slide { height: 210px; }
    .hero-content h1 { font-size: 18px; }
    .content-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .main-wrapper { padding: 72px 10px 16px; }
}

/* DLE System Dialogs Overhaul */
.ui-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 99999 !important;
    width: 400px !important;
    max-width: 90% !important;
    background: rgba(10, 13, 18, 0.95) !important;
    border: 1px solid rgba(0, 255, 136, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 20px rgba(0,255,136,0.1) !important;
    backdrop-filter: blur(15px);
    color: #fff !important;
    padding: 0 !important;
}

.ui-dialog-titlebar {
    background: rgba(0, 255, 136, 0.05) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    padding: 15px 20px !important;
    border-radius: 16px 16px 0 0 !important;
}

.ui-dialog-title {
    color: var(--accent) !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 18px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ui-dialog-content {
    padding: 25px 20px !important;
    color: #ccc !important;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ui-dialog .ui-dialog-buttonpane {
    border-top: 1px solid rgba(255,255,255,0.05) !important;
    background: transparent !important;
    padding: 15px 20px !important;
}

.ui-dialog .ui-dialog-buttonpane button {
    background: var(--accent) !important;
    color: #000 !important;
    border: none !important;
    padding: 10px 25px !important;
    border-radius: 8px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease !important;
}

.ui-dialog .ui-dialog-buttonpane button:hover {
    box-shadow: 0 5px 15px rgba(0,255,136,0.3) !important;
    transform: translateY(-2px);
}

.ui-dialog-titlebar-close {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    cursor: pointer;
    right: 15px !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.ui-dialog-titlebar-close:hover {
    color: #ff3366 !important;
}

/* Fix missing icons in dialog */
.ui-icon-closethick {
    background-image: none !important;
    text-indent: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.ui-icon-closethick::before {
    content: '\f00d';
    font-family: 'Font Awesome 5 Pro';
    font-weight: 900;
    font-size: 18px;
}

/* Hide broken images in dialogs and replace with FA icon */
.ui-dialog-content img[src*='dleimages'] {
    display: none !important;
}

.ui-dialog-content[id^="dle_"]::before {
    content: '\f06a';
    font-family: 'Font Awesome 5 Pro';
    font-weight: 900;
    font-size: 30px;
    color: var(--accent);
}

/* Fallback for DLE alert if UI Dialog completely fails to initialize */
#dle_info {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 999999 !important;
    background: rgba(10, 13, 18, 0.95) !important;
    border: 1px solid rgba(0, 255, 136, 0.2) !important;
    border-radius: 16px !important;
    padding: 25px !important;
    color: #fff !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 20px rgba(0,255,136,0.1) !important;
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-width: 300px;
}

#dle_info img[src*='dleimages'] {
    display: none !important;
}

#dle_info::before {
    content: '\f06a';
    font-family: 'Font Awesome 5 Pro';
    font-weight: 900;
    font-size: 30px;
    color: var(--accent);
}

/* DLEPush Container (Outer) - Keep it transparent to avoid ghost boxes */
#dlepush, .dle-push-container {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 999999 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    pointer-events: none;
}

/* DLEPush Modern Toast Notifications Styling (The actual content) */
.dlepush-message, .dle-push-message, .dlepush-content {
    background: #0a0d12 !important;
    border: 1px solid rgba(0, 255, 136, 0.2) !important;
    border-radius: 16px !important;
    padding: 20px 40px 20px 20px !important;
    color: #fff !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 20px rgba(0,255,136,0.1) !important;
    backdrop-filter: blur(15px);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    display: flex !important;
    align-items: center;
    margin-bottom: 10px;
}

.dlepush-close, .dle-push-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    cursor: pointer !important;
    color: var(--text-muted) !important;
    font-weight: bold !important;
    transition: color 0.3s ease !important;
    background: transparent !important;
    border: none !important;
    z-index: 10 !important;
}

.dlepush-close:hover, .dle-push-close:hover {
    color: var(--accent) !important;
}

.dlepush-message img, .dle-push-message img, .dlepush-content img {
    display: none !important;
}

/* Prepend FontAwesome icon */
.dlepush-message::before, .dle-push-message::before, .dlepush-content::before {
    content: '\f06a' !important;
    font-family: 'Font Awesome 5 Pro' !important;
    font-weight: 900 !important;
    font-size: 24px !important;
    color: var(--accent) !important;
    margin-right: 15px !important;
    vertical-align: middle !important;
}

/* === Poster Centering === */
.poster-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    overflow: hidden;
    background: rgba(0,0,0,0.2) !important;
}

.poster-wrapper img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    transition: var(--transition);
}

.poster-wrapper:hover img {
    transform: scale(1.02);
}

/* === Interaction Mini (Left Sidebar) === */
.interaction-mini {
    margin-top: 15px !important;
    padding: 20px !important;
}

.interaction-mini .interaction-top {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.interaction-mini .rating-box-custom {
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.interaction-mini .rating-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.interaction-mini .favorites-box {
    width: 100%;
}

.interaction-mini .fav-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 14px;
}

/* === Modernized DLE Quotes (Warnings) === */
.quote, blockquote {
    background: rgba(0, 255, 136, 0.03) !important;
    border-left: 4px solid var(--accent) !important;
    padding: 25px 35px 25px 50px !important;
    margin: 30px 0 !important;
    border-radius: 0 16px 16px 0 !important;
    position: relative !important;
    font-style: normal !important;
    line-height: 1.7 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    text-align: left !important;
}

.quote::before, blockquote::before {
    content: "\f12a" !important;
    font-family: "Font Awesome 5 Pro" !important;
    font-weight: 900 !important;
    position: absolute !important;
    top: 25px !important;
    left: -18px !important;
    background: var(--accent) !important;
    color: #000 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    box-shadow: 0 0 15px var(--accent-glow) !important;
    border: 4px solid var(--bg-dark) !important;
    z-index: 5 !important;
}

.quote b, blockquote strong {
    color: var(--accent) !important;
    font-family: "Outfit", sans-serif !important;
    font-size: 18px !important;
    display: block !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-weight: 800 !important;
}

/* === Rating Fixes (Like/Dislike & Stars) === */
.rating-stars-wrapper {
    background: transparent !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

/* Fix DLE default white/grey boxes on rating numbers */
.ratingtypeplusminus, .ratingplus, .ratingminus, .ignore-select {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    display: inline-block !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    text-shadow: none !important;
}

.ratingplus {
    color: var(--accent) !important;
    border-color: rgba(0, 255, 136, 0.2) !important;
    background: rgba(0, 255, 136, 0.05) !important;
}

.ratingminus {
    color: #ff3366 !important;
    border-color: rgba(255, 51, 102, 0.2) !important;
    background: rgba(255, 51, 102, 0.05) !important;
}

/* Style for Thumbs icons if they appear */
.rate-like, .rate-dislike, .rate-dislike-button, .rate-like-button {
    cursor: pointer;
    transition: var(--transition);
    padding: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rate-like:hover, .rate-like-button:hover { transform: scale(1.2); filter: brightness(1.2); }
.rate-dislike:hover, .rate-dislike-button:hover { transform: scale(1.2); filter: brightness(1.2); }

/* Positioning in Sidebar */
.interaction-mini .rating-box-custom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 15px !important;
}

.interaction-mini .rating-label {
    margin-bottom: 5px;
}

.unit-rating, .unit-rating li, .unit-rating li a {
    background-color: transparent !important;
}

.unit-rating li a:hover, .unit-rating li.current-rating {
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAACKBAMAAAAnGmX8AAAALVBMVEX///+RkZH+12L/w0//7cP/5aj+24X/+u7/9d2tra3Jycne3t7/zGn5+fnx8fHkdmbhAAACEUlEQVRIx+2UuUsDQRTGF+8bp4yiyKDRUhiNFikW73LxwsIiRETL4F2KilpYmFYQklIE0VYbIQQsY2kjWkbwfzDjzvhm3rzCJiCSr1p+SfY7HsT7w2rYp3ltQPO6HpqPDdA8GSUxPeckr+HcJ205T1D8gHPSeJbzPopz7hrvnk4sSL4wcboLdIpb6v0ZxuY+LGB/HRY2ubn2MeB1a5ukxtEUGkEp4bSVchtvhLvfORaE/NV7VCDnlFzJPSKPJmEcczpffhg4x13zvB2nVxXvDdP2oKNHU+FOAyi+r/xRgWn9sOVVRKv8/ycJmlc/0nx8iOYrMRLXC5EibYUIKN4iBGl8KMQoaSsEaZwTIo7Z3tHkoihpdX7mBOiysJSHhJYCWMDExho1JjfXPgP8ZG2T0zhub7SjecJpK+U23gz5iHMsHRJpLuTDzmoqjnNEJRXTbByTv/Gd48YD+WHgHHddtsMnrhb5MO0gih/b/7ZfQQWWA+WPCizph22vojKr7Y3mTec0L7bT/K6T5ukIbctYgbRlLEPxRsbOSVvGuimeZYw0ZiVh9vpwfyX5xfXDJ1CJDHVAQlOQtvXOxMYazSa/9UDvGqIOrWmNI/ZxXjS/xCOrjHjSZ3g7Wg1CmsZZ6Eq9P1LAR1RCXDaOpKGtOV2mGUaD48pGRXliFL8jTNuF4odB2tKoQDaj/FGBG/3w4f0LfQHtX5JXyZBVcwAAAABJRU5ErkJggg==) !important;
    filter: hue-rotate(90deg) brightness(1.5) !important;
}

/* Favorites Button (Remove) Glow Fix */
.fav-btn.del {
    background: rgba(255, 51, 102, 0.08) !important;
    border: 1px solid rgba(255, 51, 102, 0.2) !important;
    color: #ff3366 !important;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.1) !important;
}

.fav-btn.del:hover {
    background: rgba(255, 51, 102, 0.15) !important;
    border-color: #ff3366 !important;
    box-shadow: 0 0 25px rgba(255, 51, 102, 0.3) !important;
    transform: translateY(-2px) !important;
}


/* === Minimalist Interaction Bar === */
.interaction-minimal {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 15px 10px !important;
    margin-top: 15px !important;
    gap: 10px !important;
}

.interact-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.interact-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
}

.interact-value {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.interact-divider {
    width: 1px;
    height: 30px;
    background: rgba(255,255,255,0.05);
}

.minimal-fav-btn {
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    color: rgba(255,255,255,0.2);
}

.minimal-fav-btn.add:hover {
    color: #ff5050;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 80, 80, 0.4));
}

.minimal-fav-btn.active {
    color: #ff5050;
    filter: drop-shadow(0 0 10px rgba(255, 80, 80, 0.3));
}

.minimal-fav-btn.active:hover {
    transform: scale(0.9);
    opacity: 0.8;
}

/* === Dynamic Info Value Styling === */
.info-value {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    display: block !important;
}

/* === Info Row Layout Fix === */
.info-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 15px !important;
    overflow: hidden !important;
}

.info-value {
    flex: 1 !important;
    text-align: right !important;
    min-width: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !impor/* === Registration Rules Page (DLE agreement form) === */
[available=register] .main-wrapper > form {
    max-width: 780px !important;
    margin: 20px auto 60px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-family: 'Outfit', sans-serif !important;
}

/* Rules title (<b>Rules</b>) */
[available=register] .main-wrapper > form > b {
    display: block !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: var(--accent) !important;
    margin-bottom: 16px !important;
}

/* Rules text container */
[available=register] .main-wrapper > form > div {
    background: rgba(255,255,255,0.02) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 20px !important;
    padding: 32px !important;
    color: rgba(255,255,255,0.55) !important;
    font-size: 14px !important;
    line-height: 1.9 !important;
    margin-bottom: 28px !important;
    max-height: 320px !important;
    overflow-y: auto !important;
    font-family: 'Inter', sans-serif !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(0,255,136,0.3) transparent !important;
}

[available=register] .main-wrapper > form > div::-webkit-scrollbar { width: 4px !important; }
[available=register] .main-wrapper > form > div::-webkit-scrollbar-track { background: transparent !important; }
[available=register] .main-wrapper > form > div::-webkit-scrollbar-thumb { background: rgba(0,255,136,0.3) !important; border-radius: 4px !important; }

/* Accept button */
[available=register] .main-wrapper > form button[name='submit'] {
    background: linear-gradient(135deg, #00ff88, #00cc6a) !important;
    color: #000 !important;
    padding: 14px 40px !important;
    border-radius: 12px !important;
    border: none !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    margin-right: 12px !important;
    box-shadow: 0 8px 25px rgba(0,255,136,0.25) !important;
}

/* Decline button */
[available=register] .main-wrapper > form button[type='button'] {
    background: rgba(255,255,255,0.04) !important;
    color: rgba(255,255,255,0.45) !important;
    padding: 14px 40px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
}

[available=register] .main-wrapper > form button[name='submit']:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 35px rgba(0,255,136,0.4) !important;
    filter: brightness(1.08) !important;
}

[available=register] .main-wrapper > form button[type='button']:hover {
    background: rgba(255,50,50,0.08) !important;
    border-color: rgba(255,50,50,0.2) !important;
    color: rgba(255,100,100,0.8) !important;
    transform: translateY(-2px) !important;
}

/* Suppress the duplicate content selectors below */
#dle-content > form[name='registration'],
#dle-content > form {
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    margin: 0 !important;
}

#dle-content > form b,
#dle-content > form div {
    all: unset !important;
}portant;
}

/* Sidebar Spacing Overrides */
.sidebar-search { margin-top: 15px !important; margin-bottom: 0 !important; }
.sidebar-section { margin-top: 10px !important; border-top: 1px solid rgba(255,255,255,0.03) !important; padding-top: 15px !important; }
.sidebar-title { margin-top: 0 !important; margin-bottom: 12px !important; color: rgba(255,255,255,0.3) !important; font-size: 10px !important; font-weight: 800 !important; text-transform: uppercase !important; letter-spacing: 1.5px !important; padding-left: 12px !important; }

/* ============================================================
   DARK / LIGHT MODE TOGGLE BUTTON
   ============================================================ */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 9px 14px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    transition: all 0.25s ease;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}
.theme-toggle-btn:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
}
.theme-toggle-btn .toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
}
.theme-toggle-btn i {
    font-size: 14px;
    color: var(--accent);
    filter: drop-shadow(0 0 5px rgba(0,255,136,0.4));
}
.toggle-track {
    width: 36px;
    height: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    position: relative;
    transition: background 0.25s ease;
    flex-shrink: 0;
}
.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    transition: all 0.25s ease;
}

/* Active (light mode) state of the track */
body.light-mode .toggle-track {
    background: var(--accent);
}
body.light-mode .toggle-thumb {
    left: 19px;
    background: #fff;
    box-shadow: 0 0 8px rgba(0,255,136,0.6);
}
body.light-mode .theme-toggle-btn {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.1);
    color: #555;
}
body.light-mode .theme-toggle-btn i {
    color: #008844;
    filter: none;
}
body.light-mode .theme-toggle-btn:hover {
    background: rgba(0,0,0,0.1);
    color: #222;
}

/* ============================================================
   LIGHT MODE — Full Override
   ============================================================ */
body.light-mode {
    background: #f0f2f5;
    color: #333;
}

/* --- Sidebar --- */
body.light-mode .sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
    border-right: 1px solid rgba(0,0,0,0.08);
}
body.light-mode .rp-text { color: #111; }
body.light-mode .nav-links a { color: rgba(0,0,0,0.45); }
body.light-mode .nav-links a:hover { color: rgba(0,0,0,0.8); background: rgba(0,0,0,0.04); }
body.light-mode .nav-links a.active { color: #008844; background: rgba(0,136,68,0.07); }
body.light-mode .nav-links a:hover i,
body.light-mode .nav-links a.active i { color: #008844; filter: none; }
body.light-mode .nav-links a::before { background: #008844; box-shadow: none; }
body.light-mode .sidebar-title { color: rgba(0,0,0,0.3) !important; border-top-color: rgba(0,0,0,0.07) !important; }
body.light-mode .sidebar-section { border-top-color: rgba(0,0,0,0.07) !important; }
body.light-mode .support-block { border-top-color: rgba(0,0,0,0.07); }
body.light-mode .support-title { color: rgba(0,0,0,0.3); }
body.light-mode .support-btn { color: rgba(0,0,0,0.45); }
body.light-mode .support-btn:hover { color: #111; }
body.light-mode .btn-repacks i { color: #008844; }
body.light-mode .btn-repacks:hover { background: rgba(0,136,68,0.06); border-color: rgba(0,136,68,0.2); }
body.light-mode .btn-chat i { color: #0099cc; }
body.light-mode .btn-chat:hover { background: rgba(0,153,204,0.06); border-color: rgba(0,153,204,0.2); }
body.light-mode .category-tile { color: rgba(0,0,0,0.4); }
body.light-mode .category-tile:hover { color: #008844; background: rgba(0,0,0,0.04); }

/* --- Search --- */
body.light-mode .search-input-wrapper { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); }
body.light-mode .search-input-wrapper:focus-within { background: #fff; border-color: rgba(0,136,68,0.4); box-shadow: 0 0 0 3px rgba(0,136,68,0.06); }
body.light-mode .search-icon { color: rgba(0,0,0,0.25); }
body.light-mode .search-input-wrapper input { color: #111 !important; }
body.light-mode .search-input-wrapper input::placeholder { color: rgba(0,0,0,0.25); }
body.light-mode #searchsuggestions { background: #fff; border-color: rgba(0,0,0,0.1); box-shadow: 0 10px 40px rgba(0,0,0,0.12); }
body.light-mode .sr-title { color: #111; }
body.light-mode .search-result-item { border-bottom-color: rgba(0,0,0,0.06); }
body.light-mode .search-result-item:hover,
body.light-mode #searchsuggestions a:hover { background: rgba(0,136,68,0.06) !important; }
body.light-mode #searchsuggestions a:hover .sr-title { color: #008844 !important; }
body.light-mode #searchsuggestions > a:not(.search-result-item),
body.light-mode #searchsuggestions span a { background: rgba(0,0,0,0.03); border-top-color: rgba(0,0,0,0.06); }

/* --- Hero Slider --- */
body.light-mode .hero-slider { border-color: rgba(0,0,0,0.08); }
body.light-mode .hero-dot { border-color: rgba(0,0,0,0.3); }
body.light-mode .hero-dot.active { background: #008844; border-color: #008844; box-shadow: 0 0 10px rgba(0,136,68,0.4); }
body.light-mode .hero-dot:hover { border-color: #008844; }

/* --- Content Cards & Panels --- */
body.light-mode .news-card,
body.light-mode .game-card,
body.light-mode .card {
    background: #fff;
    border-color: rgba(0,0,0,0.07);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
body.light-mode .news-card:hover,
body.light-mode .game-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-color: rgba(0,136,68,0.2);
}
/* --- Cards: fix hardcoded white title & meta colors --- */
body.light-mode .game-card {
    background: #fff;
    background-color: #fff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
body.light-mode .game-card:hover {
    border-color: rgba(0,136,68,0.3);
    box-shadow: 0 8px 30px rgba(0,0,0,0.14), 0 0 20px rgba(0,136,68,0.08);
}
body.light-mode .card-info {
    background: #fff;
}
body.light-mode .card-title {
    color: #111 !important;
}
body.light-mode .card-title a {
    color: #111 !important;
}
body.light-mode .game-card:hover .card-title a {
    color: #008844 !important;
}
body.light-mode .card-meta { color: #666; }
/* meta-item: year badge + view counter */
body.light-mode .meta-item {
    color: rgba(0,0,0,0.55) !important;
}
body.light-mode .meta-item:first-child {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.08);
    color: #555 !important;
}
body.light-mode .meta-item:hover {
    background: rgba(0,136,68,0.07);
    border-color: rgba(0,136,68,0.2);
    color: #008844 !important;
}
/* view counter icon stays green but readable */
body.light-mode .meta-item i {
    color: #008844;
    filter: none;
    opacity: 1;
}

/* --- Info bar / section headers --- */
body.light-mode .section-header h2,
body.light-mode .section-title { color: #111; }
body.light-mode .section-header .see-all { color: #008844; }

/* --- Category/tag badges --- */
body.light-mode .tag-badge,
body.light-mode .genre-badge { background: rgba(0,0,0,0.05); color: #555; border-color: rgba(0,0,0,0.1); }

/* --- Torrent / Info boxes --- */
body.light-mode .info-box,
body.light-mode .torrent-box,
body.light-mode .sidebar-widget {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
}

/* --- Footer --- */
body.light-mode .site-footer,
body.light-mode footer {
    background: #f7f8fa;
    border-top-color: rgba(0,0,0,0.08);
    color: #888;
}
body.light-mode footer a { color: #555; }
body.light-mode footer a:hover { color: #111; }

/* --- Login panel --- */
body.light-mode .login-panel { background: rgba(0,0,0,0.03); }
body.light-mode .login-inputs input {
    background: #fff !important;
    border-color: rgba(0,0,0,0.12) !important;
    color: #111 !important;
}
body.light-mode .login-inputs input::placeholder { color: #aaa; }
body.light-mode .login-inputs input:focus { border-color: #008844 !important; }
body.light-mode .login-links a { color: #888; }
body.light-mode .login-links a:hover { color: #111; }

/* --- Main content text --- */
/* Hero text must stay WHITE in light mode (sits on dark image overlay) */
body.light-mode .hero-content h1,
body.light-mode .hero-content h2,
body.light-mode .hero-content p,
body.light-mode .hero-desc,
body.light-mode .hero-badge,
body.light-mode .hero-inner * { color: inherit; }
body.light-mode .hero-content h1 { color: #fff !important; text-shadow: 0 4px 20px rgba(0,0,0,0.8) !important; }
body.light-mode .hero-desc { color: rgba(255,255,255,0.75) !important; }

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4 { color: #111; }
body.light-mode p,
body.light-mode li { color: #444; }
body.light-mode a { color: #008844; }

/* --- Scrollbar light mode --- */
body.light-mode ::-webkit-scrollbar-track { background: #f0f2f5; }
body.light-mode ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); }
body.light-mode ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

/* --- Accent override for light mode so it stays readable --- */
body.light-mode { --accent: #008844; --accent-glow: rgba(0,136,68,0.3); }

/* ============================================================
   NO-TRANSITION UTILITY — kills all transitions during theme switch
   Prevents "stuck white" glitch when toggling back to dark
   ============================================================ */
body.no-transition *,
body.no-transition *::before,
body.no-transition *::after {
    transition: none !important;
    animation: none !important;
}

/* ============================================================
   LIGHT MODE — FULLSTORY PAGE (glass panels, game page)
   ============================================================ */

/* Glass panels */
body.light-mode .glass-panel {
    background: #fff !important;
    border: 1px solid rgba(0,0,0,0.07) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07) !important;
}

/* Info rows */
body.light-mode .info-row {
    border-bottom-color: rgba(0,0,0,0.06) !important;
    color: #555 !important;
}
body.light-mode .info-label { color: #888 !important; }
body.light-mode .info-value { color: #111 !important; }

/* Game title on fullstory */
body.light-mode .compact-title { color: #111 !important; }
body.light-mode .scrollable-desc { color: #444 !important; }
body.light-mode .scrollable-desc::-webkit-scrollbar-thumb { background: rgba(0,136,68,0.2); }

/* Interaction minimal panel */
body.light-mode .interact-label { color: #888 !important; }
body.light-mode .interact-value { color: #111 !important; }
body.light-mode .interact-divider { background: rgba(0,0,0,0.08) !important; }
body.light-mode .rate-btn { background: rgba(0,0,0,0.04) !important; border-color: rgba(0,0,0,0.08) !important; }
body.light-mode .rate-btn:hover { background: rgba(0,0,0,0.08) !important; }
body.light-mode .minimal-fav-btn.add { color: rgba(0,0,0,0.2) !important; }
body.light-mode .minimal-fav-btn.guest { color: rgba(0,0,0,0.1) !important; }

/* Size display */
body.light-mode .size-badge { color: #111 !important; }

/* System requirements */
body.light-mode .req-tab { background: rgba(0,0,0,0.06) !important; color: #777 !important; }
body.light-mode .req-tab.active { background: var(--accent) !important; color: #fff !important; }
body.light-mode .sys-req-tabs { background: rgba(0,0,0,0.04) !important; }
body.light-mode .req-item { border-bottom-color: rgba(0,0,0,0.05) !important; }
body.light-mode .req-value { color: #333 !important; }

/* Rating */
body.light-mode .rating-label { color: #888 !important; }
body.light-mode .rating-stars-wrapper { background: rgba(0,0,0,0.05) !important; }
body.light-mode .rating-stars-wrapper span { color: #111 !important; }

/* Fav button */
body.light-mode .fav-btn {
    background: rgba(0,0,0,0.04) !important;
    border-color: rgba(0,0,0,0.07) !important;
    color: #333 !important;
}
body.light-mode .fav-btn:hover { background: rgba(0,0,0,0.08) !important; }

/* Screenshot border */
body.light-mode .screenshot-gallery img { border-color: rgba(0,0,0,0.08) !important; }

/* Description tabs */
body.light-mode .desc-tab,
body.light-mode .desc-tabs button {
    background: rgba(0,0,0,0.05) !important;
    color: #666 !important;
    border-color: rgba(0,0,0,0.08) !important;
}
body.light-mode .desc-tab.active,
body.light-mode .desc-tabs button.active {
    background: var(--accent) !important;
    color: #fff !important;
}

/* Edit info block */
body.light-mode .edit-info-block { color: #777 !important; }

/* Full story page body bg fix */
body.light-mode .full-game-page { background: transparent; }


