/* ==========================================================================
   M4D Gaming Network - Masterclass Masterpiece Theme (From Scratch Redesign)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Obsidian Dark Theme Palette (Sleek Sci-Fi Gaming) */
    --bg-dark-obsidian: #050508;
    --bg-dark-panel: rgba(10, 10, 16, 0.7);
    --bg-dark-card: rgba(16, 16, 24, 0.65);
    --bg-dark-border: rgba(255, 255, 255, 0.07);
    --bg-dark-hover: rgba(99, 102, 241, 0.1);
    
    /* Elegant Light Theme Palette (Premium Clean Space) */
    --bg-light-master: #fafafa;
    --bg-light-panel: rgba(255, 255, 255, 0.75);
    --bg-light-card: rgba(255, 255, 255, 0.85);
    --bg-light-border: rgba(0, 0, 0, 0.06);
    --bg-light-hover: rgba(99, 102, 241, 0.05);

    /* Dynamic Neon Color Systems */
    --color-primary: #818cf8; /* Light Indigo */
    --color-secondary: #c084fc; /* Light Purple */
    --color-cyan: #22d3ee;
    --color-orange: #f59e0b;
    --color-emerald: #10b981;
    --color-rose: #f43f5e;
    
    /* Core Gradient Definitions */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-hover: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    --gradient-glow: rgba(99, 102, 241, 0.35);
    
    /* Native Overrides mapping */
    --bs-primary: #6366f1 !important;
    --bs-primary-rgb: 99, 102, 241 !important;
}

/* Base Body Styles */
body {
    font-family: var(--font-body);
    font-size: 0.94rem;
    line-height: 1.6;
    letter-spacing: -0.15px;
    background-color: var(--bs-body-bg) !important;
    color: var(--bs-body-color);
    transition: background-color 0.2s ease, color 0.2s ease;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.03) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.03) 0%, transparent 45%);
    overflow-x: hidden;
    /* Hardware GPU acceleration hint */
    transform: translate3d(0,0,0);
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
    letter-spacing: -0.6px;
    font-weight: 700;
}

/* Dark Mode Native Overrides */
[data-bs-theme="dark"] {
    --bs-body-bg: var(--bg-dark-obsidian) !important;
    --bs-body-color: #f4f4f7 !important;
    --bs-card-bg: #0d0d12 !important; /* Solid premium graphite dark card */
    --bs-border-color: var(--bg-dark-border) !important;
    --bs-body-tertiary: rgba(8, 8, 12, 0.9) !important;
    --bs-body-secondary: #14141b !important;
    --bs-secondary-color: #94a3b8 !important;
    
    --glass-navbar: rgba(5, 5, 8, 0.8);
    --glass-card: #0d0d12;
    --card-shadow: rgba(0, 0, 0, 0.5);
    --neon-shadow: rgba(99, 102, 241, 0.12);
    --text-glow: 0 0 12px rgba(255,255,255,0.08);
}

/* Light Mode Native Overrides */
[data-bs-theme="light"] {
    --bs-body-bg: var(--bg-light-master) !important;
    --bs-body-color: #0f172a !important;
    --bs-card-bg: #ffffff !important; /* Solid premium white card */
    --bs-border-color: var(--bs-border-color) !important;
    --bs-body-tertiary: #ffffff !important;
    --bs-body-secondary: #f1f5f9 !important;
    --bs-secondary-color: #64748b !important;
    
    --glass-navbar: rgba(255, 255, 255, 0.85);
    --glass-card: #ffffff;
    --card-shadow: rgba(99, 102, 241, 0.02);
    --neon-shadow: rgba(99, 102, 241, 0.04);
    --text-glow: none;
}

/* Custom Minimalist Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.15);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-primary);
}

/* Perfect Corner Curvatures */
.card, .btn, .form-control, .form-select, .list-group-item, .alert, .dropdown-menu, .progress {
    border-radius: 16px !important;
}

/* Profile Avatars Custom Glows */
.avatar-nav {
    width: 32px;
    height: 32px;
    border-radius: 50% !important;
    object-fit: cover;
    border: 1.5px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.15);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.avatar-nav:hover {
    transform: scale(1.1) rotate(3deg);
}

.avatar-md {
    width: 64px;
    height: 64px;
    border-radius: 50% !important;
    object-fit: cover;
    border: 2.5px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.avatar-md:hover {
    transform: scale(1.06) rotate(3deg);
}

.avatar-lg {
    width: 96px;
    height: 96px;
    border-radius: 50% !important;
    object-fit: cover;
    border: 3px solid rgba(99, 102, 241, 0.3);
}

/* Masterpiece Floating Glass Navbar */
.navbar {
    background-color: var(--glass-navbar) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--bs-border-color) !important;
    padding: 0.9rem 0 !important;
    position: sticky;
    top: 15px;
    margin: 15px auto 40px auto;
    width: 95%;
    max-width: 1250px;
    border-radius: 20px !important;
    z-index: 1030;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    transform: translate3d(0,0,0);
}

/* Elegant Navbar Link Animations */
.navbar-nav .nav-link {
    position: relative;
    padding: 0.5rem 1.1rem !important;
    color: var(--bs-body-color) !important;
    opacity: 0.8;
    font-weight: 500;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px;
    left: 50%;
    border-radius: 99px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    transition: width 0.2s ease;
}

.navbar-nav .nav-link:hover {
    opacity: 1;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.navbar-nav .nav-link.active {
    opacity: 1;
    font-weight: 700;
    text-shadow: var(--text-glow);
}

/* Obsidian Premium Solid High-Performance Cards */
.card {
    border: 1px solid var(--bs-border-color) !important;
    background-color: var(--bs-card-bg) !important;
    box-shadow: 0 6px 20px var(--card-shadow) !important;
    position: relative;
    overflow: hidden;
    /* Hardware acceleration attributes */
    transform: translate3d(0,0,0);
    backface-visibility: hidden;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.35) !important;
    box-shadow: 
        0 12px 28px var(--card-shadow), 
        0 0 20px var(--neon-shadow) !important;
}

.card-header {
    background: rgba(255, 255, 255, 0.01) !important;
    border-bottom: 1px solid var(--bs-border-color) !important;
    font-weight: 700;
    font-size: 0.98rem;
    font-family: var(--font-heading);
    padding: 1.2rem 1.6rem !important;
    letter-spacing: -0.3px;
}

/* Beautiful Interactive Buttons with Glowing Shadows */
.btn {
    font-weight: 700;
    padding: 0.75rem 1.6rem;
    font-size: 0.88rem;
    letter-spacing: -0.1px;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background: var(--gradient-primary) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.3) !important;
}

.btn-primary:hover {
    background: var(--gradient-hover) !important;
    box-shadow: 
        0 6px 24px rgba(99, 102, 241, 0.55),
        0 0 15px rgba(168, 85, 247, 0.3) !important;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border: 1px solid var(--bs-border-color) !important;
    color: var(--bs-body-color) !important;
    background-color: rgba(255, 255, 255, 0.01) !important;
}

.btn-outline-secondary:hover {
    background-color: rgba(99, 102, 241, 0.06) !important;
    border-color: rgba(99, 102, 241, 0.25) !important;
    color: var(--bs-body-color) !important;
    transform: translateY(-1.5px);
}

/* Premium News Jumbotron Hero Panel */
.p-5.rounded-4.border.position-relative {
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.p-5.rounded-4.border.position-relative:hover {
    border-color: rgba(99, 102, 241, 0.3) !important;
    box-shadow: 
        0 25px 60px rgba(0,0,0,0.5),
        0 0 30px rgba(99, 102, 241, 0.1) !important;
}

/* Modern Input Fields */
.form-control, .form-select {
    padding: 0.8rem 1.3rem;
    font-size: 0.92rem;
    background-color: rgba(0, 0, 0, 0.12) !important;
    border: 1px solid var(--bs-border-color) !important;
    color: var(--bs-body-color) !important;
    border-radius: 12px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus, .form-select:focus {
    border-color: rgba(99, 102, 241, 0.45) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
    background-color: rgba(0, 0, 0, 0.2) !important;
}

/* Circular Sci-Fi Theme Toggle Button */
#theme-toggle {
    width: 40px;
    height: 40px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    border: 1px solid var(--bs-border-color) !important;
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--bs-body-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#theme-toggle:hover {
    border-color: var(--color-primary) !important;
    background-color: var(--bg-dark-hover) !important;
    transform: rotate(35deg) scale(1.08);
}

/* Dropdown Custom Sci-Fi Glass */
.dropdown-menu {
    padding: 0.6rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid var(--bs-border-color) !important;
    background-color: var(--glass-card) !important;
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px !important;
}

.dropdown-item {
    border-radius: 12px !important;
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--bg-dark-hover) !important;
    transform: translateX(4px);
    color: var(--color-primary) !important;
}

/* Gradient Texts & Title taglines */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Pulsating online status dots */
@keyframes pulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.45; }
    100% { transform: scale(0.9); opacity: 1; }
}

.pulse-dot {
    width: 9px;
    height: 9px;
    background-color: var(--color-emerald);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--color-emerald);
    animation: pulse 2s infinite;
}

.pulse-dot-danger {
    width: 9px;
    height: 9px;
    background-color: var(--color-rose);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--color-rose);
    animation: pulse 2s infinite;
}

.rank-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 7px;
}

/* ==========================================================================
   GAMECORE CMS - OBSIDIAN DEEP DARK SKIN (demo2.html Integration)
   ========================================================================== */

:root {
    --container: 1200px;
    --bg-cms: #0f1217;
    --surface-cms: #171b22;
    --surface-2-cms: #1d222b;
    --surface-3-cms: #242a35;
    --line-cms: #2d3440;
    --line-soft-cms: #252b35;
    --text-cms: #e4e8ee;
    --muted-cms: #8f9aaa;
    --soft-cms: #b9c1cd;
    --brand-cms: #d94b3d;
    --brand-2-cms: #a8322a;
    --success-cms: #4f9f5d;
    --warning-cms: #d2a34c;
}

.bg-grid-overlay {
    background-color: #0b0d12 !important;
    background-image: 
        radial-gradient(at 0% 0%, rgba(217, 75, 61, 0.08) 0px, transparent 50%),
        radial-gradient(at 50% 0%, rgba(59, 130, 246, 0.04) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(217, 75, 61, 0.06) 0px, transparent 50%),
        linear-gradient(rgba(11, 13, 18, 0.94), rgba(11, 13, 18, 0.97)),
        url("https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=1800&auto=format&fit=crop") !important;
    background-size: cover;
    background-position: center top;
    background-attachment: fixed !important;
}

.topline-custom {
    background: #07090c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.4);
    font-size: 11.5px;
    letter-spacing: 0.2px;
}

.topline-custom .wrap-custom {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topline-custom strong {
    color: #fff;
}

.topline-custom nav a {
    color: rgba(255, 255, 255, 0.45);
    margin-left: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.topline-custom nav a:hover {
    color: var(--brand-cms);
}

.header-custom {
    background: rgba(18, 22, 29, 0.85);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border-bottom: 1.5px solid rgba(217, 75, 61, 0.18);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
    position: relative;
    z-index: 1000;
}

.header-main-custom {
    height: 94px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.logo-custom {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 250px;
    text-decoration: none;
}

.logo-mark-custom {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-cms), var(--brand-2-cms));
    border: 1px solid rgba(255, 255, 255, .2);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    box-shadow: inset 0 1px rgba(255, 255, 255, .2), 0 4px 15px rgba(217, 75, 61, 0.35);
}

.logo-custom h1 {
    margin: 0;
    color: #fff;
    font-size: 28px;
    letter-spacing: -0.8px;
    line-height: 1.1;
    font-weight: 900;
}

.logo-custom p {
    margin: 2px 0 0;
    color: var(--muted-cms);
    font-size: 11.5px;
    font-weight: 500;
}

.server-strip-custom {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 560px;
}

.server-mini-custom {
    background: rgba(13, 16, 21, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 12px;
}

.server-mini-custom b {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 12px;
    margin-bottom: 7px;
}

.dot-custom {
    width: 8px;
    height: 8px;
    background: var(--success-cms);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px var(--success-cms);
}

.server-mini-custom span {
    color: #9aa4b3;
    font-size: 11px;
}

.actions-custom {
    display: flex;
    gap: 10px;
}

.btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border-radius: 8px;
    padding: 11px 18px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-custom:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-1.5px);
}

.btn-custom:active {
    transform: scale(0.97);
}

.btn-custom.primary {
    border-color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, var(--brand-cms), var(--brand-2-cms));
    box-shadow: 0 4px 14px rgba(217, 75, 61, 0.35);
}

.btn-custom.primary:hover {
    background: linear-gradient(135deg, #eb6257, #bd4037);
    box-shadow: 0 6px 20px rgba(217, 75, 61, 0.55);
}

.btn-custom.small {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 6px;
}

.nav-custom {
    background: #0f1217;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-custom .wrap-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.menu-custom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.menu-custom a {
    padding: 16px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    position: relative;
    transition: all 0.25s ease;
}

.menu-custom a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--brand-cms);
    transform: translateX(-50%);
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 99px;
}

.menu-custom a:hover,
.menu-custom a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.015);
}

.menu-custom a:hover::after,
.menu-custom a.active::after {
    width: 70%;
}

.search-custom {
    height: 36px;
    width: 245px;
    display: flex;
    border: 1px solid #303844;
    background: #0d1015;
    border-radius: 7px;
    overflow: hidden;
}

.search-custom input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #dbe0e8;
    padding: 0 12px;
    font-size: 12px;
}

.search-custom button {
    width: 42px;
    border: 0;
    border-left: 1px solid #303844;
    background: #222934;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.layout-custom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    align-items: start;
    padding: 26px 0 38px;
}

.wrap-custom {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.hero-custom {
    position: relative;
    overflow: hidden;
    min-height: 390px;
    background:
        linear-gradient(90deg, rgba(14, 17, 22, .95) 0%, rgba(14, 17, 22, .83) 45%, rgba(14, 17, 22, .30) 100%),
        url("https://images.unsplash.com/photo-1542751371-adc38448a05e?q=80&w=1600&auto=format&fit=crop") center / cover no-repeat;
    border: 1px solid var(--line-cms);
    border-radius: 12px;
    box-shadow: 0 16px 35px rgba(0, 0, 0, .34);
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.hero-content {
    max-width: 610px;
    padding: 44px;
}

.badge-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #241b1c;
    border: 1px solid #773a35;
    color: #ffb0a9;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 16px;
}

.hero-custom h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(32px, 5vw, 52px);
    line-height: .98;
    letter-spacing: -2px;
}

.hero-custom p {
    margin: 0 0 24px;
    color: #c3cad5;
    font-size: 15px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-meta {
    position: absolute;
    right: 22px;
    bottom: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: min(390px, calc(100% - 44px));
}

.hero-stat {
    background: rgba(15, 18, 23, .92);
    border: 1px solid #343d4a;
    border-radius: 10px;
    padding: 14px;
}

.hero-stat strong {
    display: block;
    color: #fff;
    font-size: 22px;
}

.hero-stat span {
    color: #929dab;
    font-size: 11px;
    font-weight: 700;
}

.section-custom {
    background: var(--surface-cms);
    border: 1px solid var(--line-cms);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .24);
    margin-bottom: 18px;
}

.section-head-custom {
    height: 48px;
    padding: 0 16px;
    background: #1d232d;
    border-bottom: 1px solid #303844;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-head-custom h3 {
    margin: 0;
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .4px;
    font-weight: 800;
}

.section-head-custom a {
    color: #98a3b2;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.section-head-custom a:hover {
    color: #fff;
}

.news-grid-custom {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 12px;
    padding: 14px;
}

.featured-news-custom,
.news-card-custom,
.module-card-custom,
.side-card-custom {
    background: #12161d;
    border: 1px solid #2a323d;
    border-radius: 10px;
}

.featured-news-custom {
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.featured-news-custom:hover {
    transform: translateY(-2px);
    border-color: rgba(217, 75, 61, 0.4);
}

.news-image {
    min-height: 170px;
    background:
        linear-gradient(rgba(0, 0, 0, .12), rgba(0, 0, 0, .45)),
        url("https://images.unsplash.com/photo-1550745165-9bc0b252726f?q=80&w=1200&auto=format&fit=crop") center / cover no-repeat;
}

.news-content {
    padding: 16px;
}

.label-custom {
    display: inline-block;
    color: #fff;
    background: var(--brand-cms);
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.news-content h4 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 21px;
    letter-spacing: -.3px;
    line-height: 1.2;
}

.news-content p {
    margin: 0 0 14px;
    color: #aeb8c6;
    font-size: 13px;
    line-height: 1.55;
}

.meta-custom {
    color: #7f8998;
    font-size: 11px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.news-stack-custom {
    display: grid;
    gap: 12px;
}

.news-card-custom {
    padding: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.news-card-custom:hover {
    transform: translateY(-2px);
    border-color: rgba(217, 75, 61, 0.4);
}

.news-card-custom h4 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
}

.news-card-custom p {
    margin: 0 0 11px;
    color: #aab4c2;
    font-size: 12px;
    line-height: 1.5;
}

.modules-custom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 14px;
}

.module-card-custom {
    padding: 16px;
    min-height: 150px;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
    text-decoration: none;
}

.module-card-custom:hover {
    transform: translateY(-2px);
    background: #161b23;
    border-color: #3b4553;
}

.module-icon {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    background: #232a34;
    border: 1px solid #384250;
    display: grid;
    place-items: center;
    margin-bottom: 13px;
    font-size: 20px;
}

.module-card-custom h4 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
}

.module-card-custom p {
    margin: 0;
    color: #9faaba;
    font-size: 12px;
    line-height: 1.5;
}

.store-list-custom {
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.product-custom {
    background: #12161d;
    border: 1px solid #2a323d;
    border-radius: 10px;
    padding: 16px;
}

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

.product-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #242b36;
    border: 1px solid #3a4452;
    display: grid;
    place-items: center;
    font-size: 22px;
}

.product-custom h4 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

.product-custom span {
    color: #8f9aaa;
    font-size: 12px;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.price-custom {
    color: var(--warning-cms);
    font-weight: 900;
    font-size: 20px;
}

.side-card-custom {
    background: rgba(18, 22, 29, 0.6) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 14px !important;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.side-card-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35), 0 0 15px rgba(217, 75, 61, 0.1);
    border-color: rgba(217, 75, 61, 0.2) !important;
}

.side-title {
    height: 48px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.015) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.side-body {
    padding: 18px;
}

.login-custom input {
    width: 100%;
    height: 42px;
    margin-bottom: 9px;
    padding: 0 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    outline: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.login-custom input:focus {
    border-color: rgba(217, 75, 61, 0.4) !important;
    box-shadow: 0 0 10px rgba(217, 75, 61, 0.15) !important;
}

.login-custom .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.server-row-custom {
    padding: 14px;
    background: rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-radius: 10px !important;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.server-row-custom:hover {
    background: rgba(0, 0, 0, 0.25) !important;
    border-color: rgba(217, 75, 61, 0.2) !important;
}

.server-row-custom:last-child {
    margin-bottom: 0;
}

.server-title-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.server-title-custom b {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.online-custom {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.1) !important;
    border: 1px solid rgba(46, 204, 113, 0.25) !important;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.offline-custom {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1) !important;
    border: 1px solid rgba(231, 76, 60, 0.25) !important;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.bar-custom {
    height: 6px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 999px !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.bar-custom i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--brand-cms), var(--brand-2-cms)) !important;
    box-shadow: 0 0 8px rgba(217, 75, 61, 0.4) !important;
}

.server-info-custom {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    color: #8f9aaa;
    font-size: 11px;
}

.rank-row-custom,
.link-row-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid #252c36;
    color: #c7cfda;
    font-size: 13px;
    text-decoration: none;
}

.rank-row-custom:last-child,
.link-row-custom:last-child {
    border-bottom: 0;
}

.rank-row-custom b {
    color: #fff;
}

.rank-row-custom small {
    color: #8f9aaa;
    font-weight: bold;
}

.link-row-custom:hover {
    color: #fff;
}

.footer-custom {
    background: #090b0f;
    border-top: 1px solid #2b323d;
    padding: 24px 0;
    color: #7f8998;
    font-size: 12px;
}

.footer-custom .wrap-custom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 1050px) {
    .server-strip-custom {
        display: none;
    }

    .layout-custom {
        grid-template-columns: 1fr;
    }

    aside {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 780px) {
    .topline-custom nav {
        display: none;
    }

    .header-main-custom {
        height: auto;
        padding: 18px 0;
        flex-direction: column;
        align-items: stretch;
    }

    .logo-custom {
        min-width: 0;
        margin-bottom: 12px;
    }

    .actions-custom {
        width: 100%;
    }

    .actions-custom .btn-custom {
        flex: 1;
    }

    .nav-custom .wrap-custom {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0;
    }

    .menu-custom a {
        flex: 1;
        text-align: center;
        border: 0;
        padding: 12px 9px;
    }

    .search-custom {
        width: 100%;
        margin-top: 10px;
    }

    .hero-custom {
        min-height: 520px;
        align-items: start;
    }

    .hero-content {
        padding: 28px;
    }

    .hero-meta {
        grid-template-columns: 1fr;
        position: absolute;
        left: 22px;
        right: 22px;
        width: auto;
    }

    .news-grid-custom,
    .modules-custom,
    .store-list-custom,
    aside {
        grid-template-columns: 1fr;
    }

    .footer-custom .wrap-custom {
        flex-direction: column;
        gap: 10px;
    }
}
