/* =========================================================
   MELARK FRONTEND
   Futuristic ARK Server Theme
   ========================================================= */

:root {
    --bg-main: #030812;
    --bg-secondary: #071321;
    --bg-card: rgba(8, 24, 40, 0.82);
    --bg-card-solid: #091a2b;

    --cyan: #54e9ff;
    --cyan-dark: #00bfe8;
    --green: #68ffba;
    --purple: #8d6cff;
    --yellow: #ffd36a;
    --red: #ff7189;

    --text-main: #f3fbff;
    --text-soft: #a6bdcc;
    --text-muted: #6f8799;

    --border: rgba(84, 233, 255, 0.14);
    --border-active: rgba(84, 233, 255, 0.45);

    --font-main: "Inter", sans-serif;
    --font-heading: "Orbitron", sans-serif;

    --navbar-height: 86px;

    --shadow-card:
        0 24px 80px rgba(0, 0, 0, 0.38);

    --shadow-glow:
        0 0 40px rgba(84, 233, 255, 0.15);
}

/* =========================================================
   RESET DAN GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;

    min-height: 100vh;
    margin: 0;

    overflow-x: hidden;

    color: var(--text-main);

    background:
        radial-gradient(
            circle at 10% 12%,
            rgba(0, 191, 232, 0.11),
            transparent 28rem
        ),
        radial-gradient(
            circle at 90% 35%,
            rgba(141, 108, 255, 0.11),
            transparent 32rem
        ),
        linear-gradient(
            145deg,
            #02060c 0%,
            #040b15 45%,
            #071321 100%
        );

    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: "";

    position: fixed;
    inset: 0;
    z-index: -10;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.014) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.014) 1px,
            transparent 1px
        );

    background-size: 4px 4px;
}

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

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

::selection {
    color: #021018;
    background: var(--cyan);
}

.main-content {
    position: relative;
    z-index: 2;

    min-height: 100vh;
    padding-top: var(--navbar-height);
}

/* =========================================================
   BACKGROUND
   ========================================================= */

.background-grid {
    position: fixed;
    inset: 0;
    z-index: -8;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(84, 233, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(84, 233, 255, 0.035) 1px,
            transparent 1px
        );

    background-size: 72px 72px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.95),
            transparent 92%
        );

    -webkit-mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.95),
            transparent 92%
        );
}

.background-glow {
    position: fixed;
    z-index: -7;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(18px);
}

.background-glow-left {
    top: 8%;
    left: -260px;

    width: 620px;
    height: 620px;

    background:
        radial-gradient(
            circle,
            rgba(0, 191, 232, 0.2),
            transparent 68%
        );

    animation: floatGlowLeft 11s ease-in-out infinite;
}

.background-glow-right {
    top: 22%;
    right: -300px;

    width: 700px;
    height: 700px;

    background:
        radial-gradient(
            circle,
            rgba(141, 108, 255, 0.19),
            transparent 68%
        );

    animation: floatGlowRight 14s ease-in-out infinite;
}

@keyframes floatGlowLeft {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(50px) scale(1.08);
    }
}

@keyframes floatGlowRight {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-60px) scale(1.06);
    }
}

/* =========================================================
   NAVBAR
   ========================================================= */

.main-navbar {
    min-height: var(--navbar-height);

    padding-top: 14px;
    padding-bottom: 14px;

    background:
        linear-gradient(
            180deg,
            rgba(3, 8, 18, 0.96),
            rgba(3, 8, 18, 0.8)
        );

    border-bottom:
        1px solid rgba(84, 233, 255, 0.09);

    box-shadow:
        0 14px 50px rgba(0, 0, 0, 0.28);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.main-navbar::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(84, 233, 255, 0.5),
            rgba(141, 108, 255, 0.35),
            transparent
        );

    opacity: 0.6;
}

.melark-brand {
    display: inline-flex;
    align-items: center;

    gap: 13px;

    color: var(--text-main) !important;
}

.brand-logo {
    position: relative;

    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    overflow: hidden;

    color: var(--cyan);

    background:
        linear-gradient(
            145deg,
            rgba(84, 233, 255, 0.17),
            rgba(141, 108, 255, 0.09)
        );

    border:
        1px solid rgba(84, 233, 255, 0.46);

    border-radius: 14px;

    box-shadow:
        inset 0 0 24px rgba(84, 233, 255, 0.08),
        0 0 28px rgba(84, 233, 255, 0.11);

    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.brand-logo::before {
    content: "";

    position: absolute;
    inset: -100%;

    background:
        linear-gradient(
            120deg,
            transparent 42%,
            rgba(255, 255, 255, 0.22) 50%,
            transparent 58%
        );

    transform: translateX(-100%) rotate(25deg);

    animation: brandScan 5s linear infinite;
}

@keyframes brandScan {
    0% {
        transform: translateX(-100%) rotate(25deg);
    }

    65%,
    100% {
        transform: translateX(100%) rotate(25deg);
    }
}

.melark-brand:hover .brand-logo {
    transform: rotate(-4deg) scale(1.05);

    border-color: var(--cyan);

    box-shadow:
        inset 0 0 28px rgba(84, 233, 255, 0.12),
        0 0 38px rgba(84, 233, 255, 0.22);
}

.brand-content {
    display: flex;
    flex-direction: column;

    line-height: 1.1;
}

.brand-content strong {
    color: var(--text-main);

    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.brand-content small {
    margin-top: 5px;

    color: var(--text-muted);

    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.main-navbar .navbar-nav {
    gap: 5px;
}

.main-navbar .nav-link {
    position: relative;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 11px 15px !important;

    color: #9eb4c4;

    border-radius: 11px;

    font-size: 0.88rem;
    font-weight: 600;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.main-navbar .nav-link i {
    color: #617b8e;

    transition:
        color 0.25s ease,
        text-shadow 0.25s ease;
}

.main-navbar .nav-link::after {
    content: "";

    position: absolute;
    right: 14px;
    bottom: 5px;
    left: 14px;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--cyan),
            transparent
        );

    border-radius: 999px;

    opacity: 0;

    transform: scaleX(0);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--text-main);

    background:
        rgba(84, 233, 255, 0.06);

    transform: translateY(-1px);
}

.main-navbar .nav-link:hover i,
.main-navbar .nav-link.active i {
    color: var(--cyan);

    text-shadow:
        0 0 14px rgba(84, 233, 255, 0.7);
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
    opacity: 1;

    transform: scaleX(1);
}

.steam-login-button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 46px;
    padding: 11px 19px;

    overflow: hidden;

    color: #03131d;

    background:
        linear-gradient(
            135deg,
            var(--green),
            var(--cyan)
        );

    border: 0;
    border-radius: 13px;

    box-shadow:
        0 14px 35px rgba(84, 233, 255, 0.2);

    font-size: 0.85rem;
    font-weight: 800;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.steam-login-button::before {
    content: "";

    position: absolute;
    top: -80%;
    left: -60%;

    width: 50%;
    height: 250%;

    background:
        rgba(255, 255, 255, 0.35);

    transform: rotate(25deg);

    transition: left 0.55s ease;
}

.steam-login-button:hover {
    color: #03131d;

    transform: translateY(-3px);

    box-shadow:
        0 20px 45px rgba(84, 233, 255, 0.32);
}

.steam-login-button:hover::before {
    left: 130%;
}

.steam-login-button i,
.steam-login-button span {
    position: relative;
    z-index: 2;
}

.navbar-toggle {
    padding: 8px 10px;

    border:
        1px solid rgba(84, 233, 255, 0.22);

    border-radius: 11px;

    box-shadow: none !important;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.glow-button,
.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 51px;
    padding: 13px 23px;

    border-radius: 14px;

    font-size: 0.9rem;
    font-weight: 800;

    transition:
        transform 0.25s ease,
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.glow-button {
    color: #03131d;

    background:
        linear-gradient(
            135deg,
            var(--green),
            var(--cyan)
        );

    border: 0;

    box-shadow:
        0 16px 38px rgba(84, 233, 255, 0.2);
}

.glow-button:hover {
    color: #03131d;

    transform: translateY(-3px);

    box-shadow:
        0 22px 50px rgba(84, 233, 255, 0.34);
}

.outline-button {
    color: var(--cyan);

    background:
        rgba(84, 233, 255, 0.045);

    border:
        1px solid rgba(84, 233, 255, 0.3);
}

.outline-button:hover {
    color: #03131d;

    background: var(--cyan);

    border-color: var(--cyan);

    transform: translateY(-3px);
}

/* =========================================================
   HERO
   ========================================================= */

.home-hero {
    position: relative;

    min-height:
        calc(100vh - var(--navbar-height));

    overflow: hidden;

    border-bottom:
        1px solid rgba(84, 233, 255, 0.08);
}

.home-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(3, 8, 18, 0.98) 0%,
            rgba(3, 8, 18, 0.88) 46%,
            rgba(3, 8, 18, 0.34) 100%
        ),
        radial-gradient(
            circle at 80% 42%,
            rgba(84, 233, 255, 0.16),
            transparent 28rem
        );
}

.home-hero::after {
    content: "";

    position: absolute;
    right: -8%;
    bottom: -35%;

    width: 58%;
    height: 85%;

    opacity: 0.18;

    pointer-events: none;

    background:
        linear-gradient(
            135deg,
            transparent 18%,
            rgba(84, 233, 255, 0.2) 18% 19%,
            transparent 19% 28%,
            rgba(141, 108, 255, 0.24) 28% 29%,
            transparent 29% 42%,
            rgba(84, 233, 255, 0.13) 42% 43%,
            transparent 43%
        );

    transform: rotate(-8deg);
}

.home-hero .container {
    position: relative;
    z-index: 2;
}

.home-hero .min-vh-100 {
    min-height:
        calc(100vh - var(--navbar-height)) !important;

    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;

    gap: 11px;

    padding: 9px 13px;

    color: var(--cyan);

    background:
        rgba(84, 233, 255, 0.06);

    border:
        1px solid rgba(84, 233, 255, 0.15);

    border-radius: 999px;

    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.hero-status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 0 0 rgba(104, 255, 186, 0.45);

    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        box-shadow:
            0 0 0 0 rgba(104, 255, 186, 0.45);
    }

    70% {
        box-shadow:
            0 0 0 11px rgba(104, 255, 186, 0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(104, 255, 186, 0);
    }
}

.hero-title {
    max-width: 780px;

    margin-top: 25px;
    margin-bottom: 23px;

    color: var(--text-main);

    font-family: var(--font-heading);
    font-size:
        clamp(3.4rem, 6.8vw, 6.8rem);
    font-weight: 800;
    line-height: 0.93;
    letter-spacing: -0.055em;
}

.hero-title span {
    display: block;

    color: transparent;

    -webkit-text-stroke:
        1px var(--cyan);

    text-shadow:
        0 0 35px rgba(84, 233, 255, 0.2);
}

.hero-description {
    max-width: 690px;
    margin-bottom: 0;

    color: var(--text-soft);

    font-size: 1.04rem;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;

    margin-top: 32px;
}

.hero-statistics {
    display: flex;
    flex-wrap: wrap;

    gap: 0;

    margin-top: 46px;

    border-top:
        1px solid rgba(84, 233, 255, 0.1);

    border-bottom:
        1px solid rgba(84, 233, 255, 0.1);
}

.hero-stat-item {
    min-width: 160px;
    padding: 20px 28px 20px 0;
}

.hero-stat-item:not(:last-child) {
    margin-right: 28px;

    border-right:
        1px solid rgba(84, 233, 255, 0.1);
}

.hero-stat-item strong {
    display: block;

    color: var(--text-main);

    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
}

.hero-stat-item span {
    display: block;

    margin-top: 4px;

    color: var(--text-muted);

    font-size: 0.76rem;
}

.online-text {
    color: var(--green) !important;
}

/* =========================================================
   HERO CORE
   ========================================================= */

.hero-core {
    position: relative;

    display: grid;
    place-items: center;

    width: min(430px, 100%);
    aspect-ratio: 1;

    margin-left: auto;
}

.core-ring {
    position: absolute;

    border-radius: 50%;

    border:
        1px solid rgba(84, 233, 255, 0.25);
}

.core-ring-one {
    inset: 10px;

    animation:
        rotateClockwise 18s linear infinite;
}

.core-ring-two {
    inset: 58px;

    border-style: dashed;

    border-color:
        rgba(141, 108, 255, 0.43);

    animation:
        rotateCounterClockwise 13s linear infinite;
}

.core-ring-three {
    inset: 112px;

    border-color:
        rgba(104, 255, 186, 0.35);

    box-shadow:
        0 0 80px rgba(84, 233, 255, 0.14);

    animation:
        coreBreathe 3.7s ease-in-out infinite;
}

.core-ring-one::before,
.core-ring-one::after,
.core-ring-two::before,
.core-ring-two::after {
    content: "";

    position: absolute;

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: var(--cyan);

    box-shadow:
        0 0 22px var(--cyan);
}

.core-ring-one::before {
    top: 3%;
    left: 18%;
}

.core-ring-one::after {
    right: 5%;
    bottom: 25%;
}

.core-ring-two::before {
    top: 8%;
    right: 18%;

    background: var(--purple);

    box-shadow:
        0 0 22px var(--purple);
}

.core-ring-two::after {
    bottom: 26%;
    left: 1%;

    background: var(--purple);

    box-shadow:
        0 0 22px var(--purple);
}

.core-center {
    position: relative;

    display: grid;
    place-items: center;

    width: 150px;
    height: 150px;

    overflow: hidden;

    border:
        1px solid rgba(84, 233, 255, 0.55);

    border-radius: 38px;

    background:
        linear-gradient(
            145deg,
            rgba(84, 233, 255, 0.2),
            rgba(8, 24, 40, 0.88)
        );

    box-shadow:
        inset 0 0 45px rgba(84, 233, 255, 0.1),
        0 0 90px rgba(84, 233, 255, 0.19);

    transform: rotate(45deg);
}

.core-center::before {
    content: "";

    position: absolute;
    inset: -80%;

    background:
        conic-gradient(
            transparent,
            rgba(84, 233, 255, 0.22),
            transparent 30%
        );

    animation:
        rotateClockwise 5s linear infinite;
}

.core-center span {
    position: relative;
    z-index: 2;

    color: var(--cyan);

    font-family: var(--font-heading);
    font-size: 4.4rem;
    font-weight: 800;

    text-shadow:
        0 0 30px rgba(84, 233, 255, 0.75);

    transform: rotate(-45deg);
}

.core-status {
    position: absolute;
    bottom: 17px;

    min-width: 180px;
    padding: 12px 18px;

    text-align: center;

    background:
        rgba(3, 8, 18, 0.72);

    border:
        1px solid rgba(84, 233, 255, 0.17);

    border-radius: 14px;

    box-shadow:
        0 16px 50px rgba(0, 0, 0, 0.3);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.core-status small {
    display: block;

    color: var(--text-muted);

    font-size: 0.57rem;
    letter-spacing: 0.2em;
}

.core-status strong {
    display: block;

    margin-top: 3px;

    color: var(--green);

    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.16em;
}

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

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

@keyframes coreBreathe {
    0%,
    100% {
        transform: scale(1);

        box-shadow:
            0 0 70px rgba(84, 233, 255, 0.11);
    }

    50% {
        transform: scale(1.07);

        box-shadow:
            0 0 100px rgba(84, 233, 255, 0.21);
    }
}

/* =========================================================
   SERVER OVERVIEW
   ========================================================= */

.server-overview-section {
    position: relative;

    padding: 110px 0 120px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(84, 233, 255, 0.06),
            transparent 34rem
        );
}

.section-heading {
    max-width: 700px;
    margin-right: auto;
    margin-bottom: 48px;
    margin-left: auto;
}

.section-label {
    display: inline-block;

    color: var(--cyan);

    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.22em;
}

.section-heading h2 {
    margin-top: 12px;
    margin-bottom: 12px;

    color: var(--text-main);

    font-family: var(--font-heading);
    font-size:
        clamp(2rem, 4vw, 3.3rem);
    font-weight: 700;
    letter-spacing: -0.035em;
}

.section-heading p {
    margin-bottom: 0;

    color: var(--text-muted);

    line-height: 1.75;
}

.server-stat-card {
    position: relative;

    min-height: 205px;
    padding: 27px;

    overflow: hidden;

    background:
        linear-gradient(
            155deg,
            rgba(13, 33, 53, 0.9),
            rgba(5, 16, 29, 0.82)
        );

    border:
        1px solid var(--border);

    border-radius: 21px;

    box-shadow:
        var(--shadow-card);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

.server-stat-card::before {
    content: "";

    position: absolute;
    top: 0;
    right: 0;

    width: 110px;
    height: 110px;

    background:
        radial-gradient(
            circle at top right,
            rgba(84, 233, 255, 0.12),
            transparent 70%
        );
}

.server-stat-card::after {
    content: "";

    position: absolute;
    right: 26px;
    bottom: 24px;

    width: 46px;
    height: 46px;

    border-right:
        1px solid rgba(84, 233, 255, 0.14);

    border-bottom:
        1px solid rgba(84, 233, 255, 0.14);
}

.server-stat-card:hover {
    transform: translateY(-8px);

    border-color:
        var(--border-active);

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.46),
        0 0 38px rgba(84, 233, 255, 0.08);
}

.server-stat-label {
    position: relative;
    z-index: 2;

    display: block;

    color: var(--text-muted);

    font-size: 0.71rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.server-stat-card strong {
    position: relative;
    z-index: 2;

    display: block;

    margin-top: 22px;
    margin-bottom: 7px;

    color: var(--text-main);

    font-family: var(--font-heading);
    font-size:
        clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 800;
}

.server-stat-card small {
    position: relative;
    z-index: 2;

    color: var(--text-muted);

    font-size: 0.76rem;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    position: relative;

    padding: 0 0 28px;

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(3, 8, 18, 0.72)
        );
}

.site-footer::before {
    content: "";

    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(84, 233, 255, 0.35),
            rgba(141, 108, 255, 0.25),
            transparent
        );
}

.footer-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 35px;

    padding: 42px 0 34px;

    border-bottom:
        1px solid rgba(84, 233, 255, 0.1);
}

.footer-brand {
    display: flex;
    align-items: center;

    gap: 14px;
}

.footer-logo {
    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;

    color: var(--cyan);

    background:
        rgba(84, 233, 255, 0.07);

    border:
        1px solid rgba(84, 233, 255, 0.26);

    border-radius: 13px;

    font-family: var(--font-heading);
    font-weight: 800;
}

.footer-brand strong {
    display: block;

    color: var(--text-main);

    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.18em;
}

.footer-brand p {
    margin: 4px 0 0;

    color: var(--text-muted);

    font-size: 0.76rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;

    gap: 25px;
}

.footer-links a {
    position: relative;

    color: var(--text-muted);

    font-size: 0.82rem;
    font-weight: 600;

    transition:
        color 0.25s ease;
}

.footer-links a::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: -6px;
    left: 0;

    height: 1px;

    background: var(--cyan);

    transform: scaleX(0);

    transition:
        transform 0.25s ease;
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-links a:hover::after {
    transform: scaleX(1);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding-top: 24px;

    color: #597183;

    font-size: 0.72rem;
}

/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            var(--cyan-dark),
            var(--purple)
        );

    border:
        3px solid var(--bg-main);

    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(
            var(--cyan),
            var(--purple)
        );
}

/* =========================================================
   RESPONSIVE TABLET
   ========================================================= */

@media (max-width: 991.98px) {
    :root {
        --navbar-height: 78px;
    }

    .main-navbar {
        min-height: var(--navbar-height);
    }

    .main-navbar .navbar-collapse {
        margin-top: 15px;
        padding: 16px;

        background:
            rgba(4, 13, 24, 0.97);

        border:
            1px solid rgba(84, 233, 255, 0.14);

        border-radius: 17px;

        box-shadow:
            0 24px 60px rgba(0, 0, 0, 0.42);

        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
    }

    .main-navbar .navbar-nav {
        gap: 5px;
    }

    .main-navbar .nav-link {
        padding: 12px 14px !important;
    }

    .steam-login-button {
        width: 100%;
        margin-top: 8px;
    }

    .home-hero .min-vh-100 {
        min-height: auto !important;

        padding-top: 105px;
        padding-bottom: 105px;
    }

    .hero-title {
        max-width: 700px;

        font-size:
            clamp(3.4rem, 10vw, 5.4rem);
    }

    .server-overview-section {
        padding-top: 90px;
        padding-bottom: 95px;
    }
}

/* =========================================================
   RESPONSIVE MOBILE
   ========================================================= */

@media (max-width: 575.98px) {
    :root {
        --navbar-height: 72px;
    }

    .main-navbar {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .brand-logo {
        width: 43px;
        height: 43px;

        border-radius: 12px;

        font-size: 1.15rem;
    }

    .brand-content strong {
        font-size: 0.88rem;
    }

    .brand-content small {
        font-size: 0.47rem;
    }

    .home-hero .min-vh-100 {
        padding-top: 85px;
        padding-bottom: 85px;
    }

    .hero-badge {
        font-size: 0.58rem;
        letter-spacing: 0.12em;
    }

    .hero-title {
        margin-top: 20px;

        font-size: 3.2rem;
        line-height: 0.96;
    }

    .hero-description {
        font-size: 0.92rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .glow-button,
    .outline-button {
        width: 100%;
    }

    .hero-statistics {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stat-item {
        min-width: 0;
        padding: 18px 10px 18px 0;
    }

    .hero-stat-item:not(:last-child) {
        margin-right: 0;

        border-right: 0;
    }

    .hero-stat-item:first-child {
        border-right:
            1px solid rgba(84, 233, 255, 0.1);
    }

    .hero-stat-item:last-child {
        grid-column: 1 / -1;

        border-top:
            1px solid rgba(84, 233, 255, 0.1);
    }

    .server-overview-section {
        padding-top: 75px;
        padding-bottom: 80px;
    }

    .section-heading {
        margin-bottom: 34px;
    }

    .server-stat-card {
        min-height: 180px;
        padding: 21px;
    }

    .server-stat-card strong {
        font-size: 1.65rem;
    }

    .footer-wrapper,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-links {
        gap: 17px;
    }

    .background-grid {
        background-size: 46px 46px;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   STEAM USER NAVBAR
   ========================================================= */

.user-dropdown-button {
    display: flex;
    align-items: center;

    gap: 10px;

    min-height: 48px;
    padding: 6px 14px 6px 7px;

    color: var(--text-main);

    background:
        linear-gradient(
            145deg,
            rgba(84, 233, 255, 0.1),
            rgba(141, 108, 255, 0.06)
        );

    border:
        1px solid rgba(84, 233, 255, 0.2);

    border-radius: 14px;

    box-shadow:
        0 13px 35px rgba(0, 0, 0, 0.24);

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.user-dropdown-button:hover,
.user-dropdown-button:focus,
.user-dropdown-button.show {
    color: var(--text-main);

    background:
        rgba(84, 233, 255, 0.12);

    border-color:
        rgba(84, 233, 255, 0.45);

    transform: translateY(-2px);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.35),
        0 0 28px rgba(84, 233, 255, 0.08);
}

.user-navbar-avatar,
.user-navbar-avatar-fallback {
    width: 36px;
    height: 36px;

    flex-shrink: 0;

    border:
        1px solid rgba(84, 233, 255, 0.35);

    border-radius: 10px;
}

.user-navbar-avatar {
    display: block;

    object-fit: cover;

    background: var(--bg-secondary);
}

.user-navbar-avatar-fallback {
    display: grid;
    place-items: center;

    color: var(--cyan);

    background:
        rgba(84, 233, 255, 0.08);
}

.user-navbar-information {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 90px;
    max-width: 150px;

    line-height: 1.2;
}

.user-navbar-information strong {
    display: block;

    width: 100%;

    overflow: hidden;

    color: var(--text-main);

    font-size: 0.77rem;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-navbar-information small {
    display: block;

    width: 100%;
    margin-top: 4px;

    overflow: hidden;

    color: var(--cyan);

    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-button.dropdown-toggle::after {
    margin-left: 4px;

    color: var(--text-muted);

    border-top-color: currentColor;
}

.user-dropdown-menu {
    min-width: 270px;
    margin-top: 13px !important;
    padding: 10px;

    color: var(--text-main);

    background:
        rgba(5, 17, 30, 0.98);

    border:
        1px solid rgba(84, 233, 255, 0.17);

    border-radius: 16px;

    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.5);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.user-dropdown-header {
    padding: 11px 13px;
}

.user-dropdown-header span {
    display: block;

    color: var(--text-muted);

    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.user-dropdown-header strong {
    display: block;

    margin-top: 5px;

    color: var(--text-main);

    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}

.user-dropdown-menu .dropdown-divider {
    border-color:
        rgba(84, 233, 255, 0.1);
}

.user-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;

    gap: 11px;

    padding: 11px 13px;

    color: var(--text-soft);

    border-radius: 10px;

    font-size: 0.78rem;
    font-weight: 600;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.user-dropdown-menu .dropdown-item i {
    width: 18px;

    color: var(--cyan);

    text-align: center;
}

.user-dropdown-menu .dropdown-item:hover,
.user-dropdown-menu .dropdown-item:focus {
    color: var(--text-main);

    background:
        rgba(84, 233, 255, 0.08);
}

.user-dropdown-menu .logout-item {
    color: #ff98aa;
}

.user-dropdown-menu .logout-item i {
    color: #ff7189;
}

.user-dropdown-menu .logout-item:hover {
    color: #ffd2da;

    background:
        rgba(255, 113, 137, 0.08);
}

/* =========================================================
   AUTH NOTIFICATION
   ========================================================= */

.auth-notification-wrapper {
    position: fixed;
    top: calc(var(--navbar-height) + 18px);
    right: 20px;
    z-index: 1080;

    width: min(390px, calc(100% - 40px));
}

.auth-notification {
    display: flex;
    align-items: center;

    gap: 11px;

    margin: 0;
    padding: 15px 48px 15px 17px;

    color: var(--text-main);

    background:
        rgba(5, 17, 30, 0.97);

    border-radius: 15px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.45);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.auth-notification.success {
    border:
        1px solid rgba(104, 255, 186, 0.25);
}

.auth-notification.success > i {
    color: var(--green);
}

.auth-notification.error {
    border:
        1px solid rgba(255, 113, 137, 0.28);
}

.auth-notification.error > i {
    color: var(--red);
}

.auth-notification span {
    color: var(--text-soft);

    font-size: 0.78rem;
    line-height: 1.55;
}

@media (max-width: 991.98px) {
    .user-dropdown-button {
        width: 100%;
        margin-top: 8px;
    }

    .user-navbar-information {
        max-width: none;
    }

    .user-dropdown-menu {
        width: 100%;
    }
}

.brand-logo,
.footer-logo {
    overflow: hidden;
}

.brand-logo img,
.footer-logo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.core-center {
    overflow: hidden;
}

.core-center img {
    display: block;

    width: 78%;
    height: 78%;

    object-fit: contain;
}