:root {
    --bg: #030303;
    --bg-2: #090606;
    --panel: rgba(14, 13, 13, .84);
    --panel-solid: #101010;
    --panel-soft: #171212;
    --line: rgba(255, 45, 62, .18);
    --line-strong: rgba(255, 45, 62, .42);
    --red: #ff2638;
    --red-soft: #c91527;
    --green: #24ff75;
    --green-soft: rgba(36, 255, 117, .16);
    --text: #fff5f5;
    --muted: #bca2a2;
    --dim: #6d5555;
    --gold: #f4c85a;
    --shadow: rgba(0, 0, 0, .5);
    --font-head: "Teko", sans-serif;
    --font-body: "Barlow", sans-serif;
    --sidebar: 286px;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--font-body);
    background:
        linear-gradient(115deg, rgba(255, 38, 56, .09), transparent 30%),
        radial-gradient(circle at 82% 12%, rgba(36, 255, 117, .08), transparent 26%),
        linear-gradient(150deg, #020202 0%, #0a0506 56%, #160407 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 38, 56, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 38, 56, .045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, black, transparent 78%);
    opacity: .34;
    animation: gridDrift 24s linear infinite;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(255, 38, 56, .045), transparent);
    transform: translateY(-100%);
    animation: scanLine 8s ease-in-out infinite;
}

@keyframes gridDrift {
    to { background-position: 42px 84px; }
}

@keyframes scanLine {
    0%, 65% { transform: translateY(-100%); opacity: 0; }
    76% { opacity: .55; }
    100% { transform: translateY(100%); opacity: 0; }
}

a {
    color: inherit;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar);
    padding: 22px 18px;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(5, 5, 5, .98), rgba(10, 6, 7, .94));
    border-right: 1px solid var(--line);
    box-shadow: 18px 0 50px rgba(0, 0, 0, .36);
    z-index: 5;
}

.sidebar::after {
    content: "";
    position: absolute;
    inset: 0 0 auto auto;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--red), var(--green), transparent);
    opacity: .32;
}

.brand {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 12px;
    align-items: center;
    padding: 4px 0 22px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.brand:hover strong,
.sidebar nav a:hover,
.contact-grid a:hover strong {
    color: var(--green);
}

.brand-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--red);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(255, 38, 56, .1), rgba(0, 0, 0, .2));
    font-family: var(--font-head);
    font-size: 1.45rem;
    letter-spacing: 1px;
    box-shadow: 0 0 26px rgba(255, 38, 56, .18), inset 0 0 18px rgba(255, 38, 56, .06);
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 6px;
    object-fit: contain;
}

.brand-mark b {
    display: none;
    font: inherit;
    letter-spacing: inherit;
}

.brand strong {
    display: block;
    color: var(--red);
    font-family: var(--font-head);
    font-size: 2.25rem;
    letter-spacing: 1.5px;
    line-height: .9;
    transition: color .2s ease, text-shadow .2s ease;
}

.brand:hover strong {
    text-shadow: 0 0 18px rgba(36, 255, 117, .22);
}

.brand small {
    grid-column: 2;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .68rem;
}

.site-footer {
    margin-left: 280px;
    padding: 22px 32px 28px;
    color: var(--muted);
    font-size: .86rem;
    text-align: center;
    border-top: 1px solid rgba(255, 38, 56, .12);
}

.site-footer span {
    margin: 0 4px;
}

.site-footer a {
    color: var(--red);
    font-weight: 800;
    text-decoration: none;
    transition: color .2s ease, text-shadow .2s ease;
}

.site-footer a:hover {
    color: var(--green);
    text-shadow: 0 0 14px rgba(36, 255, 117, .25);
}

.heart {
    display: inline-block;
    color: var(--red);
    font-size: 1.05rem;
    line-height: 1;
    text-shadow: 0 0 14px rgba(255, 38, 56, .35);
    animation: heartBeat 1.2s ease-in-out infinite;
    transform-origin: center;
}

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

    14% {
        transform: scale(1.22);
    }

    28% {
        transform: scale(.96);
    }

    42% {
        transform: scale(1.16);
    }

    70% {
        transform: scale(1);
    }
}

.eyebrow {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .72rem;
}

.server-box {
    position: relative;
    margin: 18px 0;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.server-box::before,
.hero-copy::before,
.panel::before,
.price-card::before,
.stats article::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .045), transparent);
    transform: translateX(-115%);
    transition: transform .7s ease;
    pointer-events: none;
}

.server-box:hover::before,
.hero-copy:hover::before,
.panel:hover::before,
.price-card:hover::before,
.stats article:hover::before {
    transform: translateX(115%);
}

.status-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-line span:last-child {
    margin-left: auto;
    color: var(--red);
    font-weight: 800;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 99px;
    background: var(--dim);
}

.dot.online {
    background: var(--green);
    box-shadow: 0 0 14px rgba(36, 255, 117, .55);
    animation: pulseDot 1.8s ease-in-out infinite;
}

.dot.offline {
    background: var(--red);
}

@keyframes pulseDot {
    50% { opacity: .42; transform: scale(.82); }
}

.server-box p {
    margin: 12px 0 4px;
    color: var(--muted);
}

code {
    color: var(--red);
}

.connect {
    display: flex;
    justify-content: center;
    margin-top: 14px;
    padding: 10px;
    color: var(--red);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 1.08rem;
    letter-spacing: 2px;
    transition: all .22s ease;
}

.connect:hover,
.btn.green:hover,
.ip-pill:hover {
    color: #020202;
    background: var(--green);
    border-color: var(--green);
    box-shadow: 0 0 28px rgba(36, 255, 117, .24);
}

.sidebar nav {
    display: grid;
    gap: 7px;
}

.sidebar nav a {
    position: relative;
    padding: 12px 13px;
    color: var(--red);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all .2s ease;
}

.sidebar nav a::before {
    content: "";
    position: absolute;
    inset: 10px auto 10px 0;
    width: 2px;
    background: var(--green);
    opacity: 0;
    transition: opacity .2s ease;
}

.sidebar nav a:hover {
    background: rgba(255, 38, 56, .05);
    transform: translateX(3px);
}

.sidebar nav a.active {
    color: var(--green);
    background: var(--green-soft);
    border-color: rgba(36, 255, 117, .26);
}

.sidebar nav a.active::before {
    opacity: 1;
}

.main {
    position: relative;
    margin-left: var(--sidebar);
    padding: 30px;
    z-index: 1;
    animation: pageIn .42s ease-out both;
}

@keyframes pageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 4px 0 24px;
    border-bottom: 1px solid var(--line);
}

.topbar h1 {
    margin: 4px 0 0;
    color: var(--red);
    font-family: var(--font-head);
    font-size: clamp(2.45rem, 5vw, 4.8rem);
    line-height: .85;
    letter-spacing: 1px;
    text-shadow: 0 0 28px rgba(255, 38, 56, .22);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-name {
    color: var(--green);
    font-weight: 800;
}

.ip-pill {
    padding: 10px 14px;
    color: var(--red);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: rgba(255, 38, 56, .035);
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s ease;
    cursor: pointer;
}

.alert {
    margin: 18px 0 0;
    padding: 14px 16px;
    border: 1px solid;
    border-radius: var(--radius);
    animation: panelIn .28s ease-out both;
}

.alert.success {
    color: var(--green);
    background: rgba(36, 255, 117, .075);
    border-color: rgba(36, 255, 117, .3);
}

.alert.error {
    color: var(--red);
    background: rgba(255, 38, 56, .08);
    border-color: var(--line-strong);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
    gap: 24px;
    align-items: stretch;
    padding: 28px 0;
}

.hero-copy,
.panel,
.price-card,
.stats article {
    position: relative;
    background: linear-gradient(180deg, rgba(19, 16, 16, .9), rgba(8, 7, 7, .92));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 50px var(--shadow);
    overflow: hidden;
}

.hero-copy {
    padding: clamp(26px, 5vw, 56px);
}

.hero-copy h2 {
    margin: 10px 0 14px;
    color: var(--text);
    font-family: var(--font-head);
    font-size: clamp(3.4rem, 10vw, 7.4rem);
    line-height: .82;
    text-shadow: 0 0 34px rgba(255, 38, 56, .16);
}

.hero-copy p {
    max-width: 650px;
    color: var(--muted);
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    padding: 11px 16px;
    color: var(--red);
    background: rgba(255, 38, 56, .035);
    text-decoration: none;
    cursor: pointer;
    font: 800 1rem var(--font-body);
    transition: all .22s ease;
}

.btn.mini {
    min-height: 34px;
    padding: 7px 10px;
    font-size: .82rem;
}

.btn.danger {
    color: #ff7a86;
    border-color: rgba(255, 38, 56, .52);
}

.btn.danger:hover {
    color: #fff;
    background: rgba(255, 38, 56, .16);
    border-color: var(--red);
}

.btn.ghost:hover {
    color: var(--green);
    border-color: var(--green);
    box-shadow: 0 0 24px rgba(36, 255, 117, .12);
}

.info-image,
.image-panel {
    min-height: 340px;
    background: #080808;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 18px 50px var(--shadow);
}

.info-image img,
.image-panel img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
    transition: transform .55s ease, filter .55s ease;
}

.js-lightbox-image {
    cursor: zoom-in;
}

.info-image:hover img,
.image-panel:hover img {
    transform: scale(1.035);
    filter: saturate(1.18) contrast(1.08);
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vw, 44px);
    background: rgba(0, 0, 0, .88);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.image-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.image-lightbox img {
    display: block;
    max-width: min(1180px, 96vw);
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .78);
    cursor: zoom-out;
}

.image-lightbox-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--text);
    background: rgba(8, 8, 8, .82);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    font: 900 1.2rem var(--font-body);
    cursor: pointer;
}

.image-lightbox-close:hover {
    color: #020202;
    background: var(--green);
    border-color: var(--green);
}

body.lightbox-open {
    overflow: hidden;
}

.image-placeholder {
    min-height: 340px;
    display: grid;
    place-items: center;
    color: var(--dim);
    border: 1px dashed var(--line-strong);
    text-align: center;
    padding: 22px;
}

.image-fallback {
    display: none;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.stats article,
.panel,
.price-card {
    padding: 23px;
    animation: panelIn .42s ease-out both;
}

.stats article:nth-child(2) { animation-delay: .06s; }
.stats article:nth-child(3) { animation-delay: .12s; }

@keyframes panelIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.stats strong {
    display: block;
    color: var(--red);
    font-family: var(--font-head);
    font-size: 2.2rem;
    line-height: 1;
    transition: color .2s ease;
}

.stats article:hover {
    border-color: rgba(36, 255, 117, .25);
    transform: translateY(-2px);
}

.stats article:hover strong,
.price-card:hover h2 {
    color: var(--green);
}

.stats span,
.muted {
    color: var(--muted);
}

.grid.two,
.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding-top: 28px;
}

.panel {
    margin-top: 28px;
}

.grid.two .panel {
    margin-top: 0;
}

.panel h2,
.price-card h2 {
    margin: 0 0 14px;
    color: var(--red);
    font-family: var(--font-head);
    font-size: 2.2rem;
    line-height: .95;
    transition: color .2s ease;
}

.rules-list,
.price-card ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.rules-list li,
.price-card li {
    margin: 9px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.section-head h2 {
    margin: 0;
}

.section-head span {
    color: var(--green);
    font-weight: 800;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 38, 56, .12);
    text-align: left;
}

th {
    color: var(--red);
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: 1px;
}

tbody tr {
    transition: background .2s ease;
}

tbody tr:hover {
    background: rgba(255, 38, 56, .035);
}

.player-link {
    color: var(--text);
    font-weight: 900;
    text-decoration: none;
    transition: color .2s ease, text-shadow .2s ease;
}

.player-link:hover {
    color: var(--green);
    text-shadow: 0 0 14px rgba(36, 255, 117, .22);
}

.badge {
    display: inline-flex;
    padding: 5px 9px;
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
}

.badge.vip {
    color: var(--green);
    border-color: rgba(36, 255, 117, .32);
}

.badge.admin {
    color: var(--red);
    border-color: rgba(255, 38, 56, .42);
}

.badge.gold {
    color: var(--gold);
    border-color: rgba(244, 200, 90, .42);
}

.form-panel {
    max-width: 780px;
}

.admin-tools {
    max-width: 1320px;
    grid-template-columns: repeat(2, minmax(360px, 1fr));
    gap: 22px;
    align-items: stretch;
}

.admin-tools .form-panel {
    max-width: none;
    width: 100%;
    margin-top: 0;
    display: grid;
    align-content: start;
}

.admin-tools h2 {
    margin-bottom: 18px;
}

.admin-tools form {
    gap: 16px;
}

.admin-tools .btn {
    width: 100%;
    margin-top: 2px;
}

.profile-panel {
    max-width: 1180px;
}

.profile-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.profile-head h2 {
    margin-bottom: 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.profile-grid article {
    min-height: 96px;
    padding: 15px;
    background: rgba(20, 16, 16, .82);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.profile-grid span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .72rem;
    font-weight: 800;
}

.profile-grid strong {
    color: var(--green);
    font-size: 1.18rem;
    word-break: break-word;
}

form {
    display: grid;
    gap: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.inline-form select {
    min-width: 96px;
    padding: 8px;
}

.compact-form input[type="number"] {
    width: 76px;
    padding: 8px;
}

.compact-form select {
    min-width: 92px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 13px;
    color: var(--text);
    background: rgba(5, 5, 5, .86);
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(36, 255, 117, .09);
}

.price-card strong {
    display: block;
    margin-bottom: 12px;
    color: var(--green);
    font-size: 1.35rem;
}

.price-card p {
    margin: -4px 0 14px;
    color: var(--gold);
    font-weight: 800;
}

.vip-buy-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .85fr);
    gap: 20px;
    align-items: center;
}

.vip-buy-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.vip-steps {
    display: grid;
    gap: 10px;
}

.vip-steps span {
    padding: 12px 14px;
    color: var(--text);
    background: rgba(36, 255, 117, .06);
    border: 1px solid rgba(36, 255, 117, .16);
    border-radius: var(--radius);
    font-weight: 800;
}

.contact-grid {
    display: grid;
    gap: 12px;
}

.contact-grid a {
    display: grid;
    gap: 4px;
    padding: 16px;
    color: var(--muted);
    background: rgba(20, 16, 16, .82);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all .22s ease;
}

.contact-grid a:hover {
    border-color: rgba(36, 255, 117, .25);
    transform: translateY(-2px);
}

.contact-grid span {
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .78rem;
}

.contact-grid strong {
    color: var(--text);
    word-break: break-word;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 900px) {
    .sidebar {
        position: static;
        width: auto;
        min-height: auto;
    }

    .main {
        margin-left: 0;
        padding: 18px;
    }

    .site-footer {
        margin-left: 0;
        padding: 18px;
    }

    .hero,
    .grid.two,
    .cards,
    .vip-buy-panel,
    .form-row,
    .profile-grid,
    .stats {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .top-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .brand {
        grid-template-columns: 46px 1fr;
    }

    .brand-mark {
        width: 46px;
        height: 46px;
    }

    .hero-copy {
        padding: 24px;
    }

    .hero-actions,
    .btn,
    .ip-pill {
        width: 100%;
    }

    .top-actions {
        width: 100%;
    }
}
