* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --gold: #f6c945;
    --gold-soft: #ffe7a3;
    --ink: #08090b;
    --panel: rgba(18, 20, 24, 0.88);
    --panel-strong: rgba(12, 13, 16, 0.96);
    --line: rgba(246, 201, 69, 0.22);
    --text: #f8f6ee;
    --muted: #aeb4bd;
    --green: #58d68d;
    --red: #ff6b6b;
    --blue: #7db7ff;
    --shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        linear-gradient(rgba(246, 201, 69, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(246, 201, 69, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 12% 4%, rgba(246, 201, 69, 0.16), transparent 28rem),
        radial-gradient(circle at 85% 18%, rgba(125, 183, 255, 0.12), transparent 24rem),
        linear-gradient(145deg, #050608 0%, #101116 52%, #07080a 100%);
    background-size: 42px 42px, 42px 42px, auto, auto, auto;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 0 45%, rgba(246, 201, 69, 0.05) 45% 46%, transparent 46% 100%);
    z-index: 0;
}

.stars {
    display: none;
}

main,
.navbar,
footer {
    position: relative;
    z-index: 1;
}

.navbar {
    width: min(1180px, calc(100% - 32px));
    margin: 16px auto 0;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    background: rgba(8, 9, 11, 0.78);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 12px;
    z-index: 10;
}

.navbar-brand a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-size: 1.02rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.navbar-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.navbar-links a:hover {
    color: var(--ink);
    background: var(--gold);
}

.hero {
    width: min(1180px, calc(100% - 32px));
    min-height: 340px;
    margin: 24px auto 0;
    padding: clamp(44px, 7vw, 92px) clamp(22px, 6vw, 72px);
    display: flex;
    align-items: end;
    background:
        linear-gradient(135deg, rgba(246, 201, 69, 0.18), rgba(125, 183, 255, 0.08) 45%, rgba(8, 9, 11, 0.96)),
        linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.46));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: auto -10% -42% 36%;
    height: 220px;
    background: repeating-linear-gradient(90deg, rgba(246, 201, 69, 0.18) 0 2px, transparent 2px 18px);
    transform: rotate(-8deg);
}

.hero-content {
    max-width: 760px;
    position: relative;
}

.title {
    max-width: 11ch;
    color: var(--text);
    font-size: clamp(2.4rem, 8vw, 6.2rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 0;
}

.subtitle {
    margin-top: 18px;
    max-width: 680px;
    color: var(--gold-soft);
    font-size: clamp(1rem, 2vw, 1.24rem);
    line-height: 1.6;
}

.status-section,
.servers-section,
.stats-section,
.shop-section {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 0;
    padding: clamp(22px, 4vw, 34px);
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
}

.section-title {
    margin-bottom: 18px;
    color: var(--gold);
    font-size: clamp(1.35rem, 3vw, 2rem);
    letter-spacing: 0;
}

.section-subtitle {
    max-width: 720px;
    margin-bottom: 24px;
    color: var(--muted);
    line-height: 1.7;
}

.status-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.status-indicator,
.last-update {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 700;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
    background: var(--red);
    box-shadow: 0 0 0 5px rgba(255, 107, 107, 0.12);
}

.status-dot.online {
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(88, 214, 141, 0.12);
}

.servers-grid,
.shop-grid,
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.server-card,
.shop-card,
.stat-card {
    min-height: 100%;
    padding: 22px;
    background: var(--panel-strong);
    border: 1px solid rgba(246, 201, 69, 0.18);
    border-radius: 8px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.server-card:hover,
.shop-card:hover,
.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(246, 201, 69, 0.55);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.server-card {
    cursor: pointer;
}

.server-icon,
.stat-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    color: var(--ink);
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
    border-radius: 8px;
    font-weight: 900;
    font-size: 1.35rem;
}

.server-name {
    margin-bottom: 16px;
    color: var(--text);
    font-size: 1.22rem;
    font-weight: 900;
}

.server-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.server-stat {
    padding: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
}

.server-stat-label,
.stat-info h3 {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.server-stat-value,
.stat-value {
    margin-top: 6px;
    color: var(--gold);
    font-size: 1.7rem;
    font-weight: 900;
}

.server-status {
    margin-bottom: 12px;
    color: var(--green);
    font-weight: 800;
}

.view-details,
.shop-button,
.login-form button {
    min-height: 46px;
    border: 0;
    border-radius: 6px;
    background: var(--gold);
    color: var(--ink);
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.view-details,
.shop-button {
    width: 100%;
    padding: 12px 16px;
}

.view-details:hover,
.shop-button:hover,
.login-form button:hover {
    transform: translateY(-2px);
    background: var(--gold-soft);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
}

.stat-icon {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.shop-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.shop-card-badge {
    width: fit-content;
    padding: 7px 10px;
    color: var(--ink);
    background: var(--gold);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 900;
}

.shop-card h3 {
    font-size: 1.25rem;
}

.shop-card p {
    color: var(--muted);
    line-height: 1.65;
}

.shop-card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.price {
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 900;
}

.price::before {
    content: "$";
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20;
    padding: 18px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
}

.modal.active {
    display: grid;
    place-items: center;
}

.modal-content {
    width: min(620px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 26px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: 8px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    color: var(--muted);
    font-size: 1.6rem;
    cursor: pointer;
}

.modal-title {
    margin-bottom: 18px;
    color: var(--gold);
}

.modal-stat-group {
    margin-top: 18px;
}

.modal-stat-group h4 {
    margin-bottom: 8px;
    color: var(--gold-soft);
}

.modal-stat-item {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

.loading {
    grid-column: 1 / -1;
    padding: 42px;
    text-align: center;
    color: var(--muted);
}

.spinner {
    width: 38px;
    height: 38px;
    margin: 0 auto 14px;
    border: 4px solid rgba(246, 201, 69, 0.18);
    border-top-color: var(--gold);
    border-radius: 999px;
    animation: spin 1s linear infinite;
}

footer {
    width: min(1180px, calc(100% - 32px));
    margin: 26px auto 34px;
    color: var(--muted);
    text-align: center;
}

.login-page {
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-shell {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 18px;
}

.login-panel,
.login-aside {
    padding: clamp(24px, 5vw, 42px);
    background: rgba(10, 11, 13, 0.9);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.brand-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: var(--gold);
    border-radius: 8px;
    font-size: 1.8rem;
    font-weight: 900;
}

.eyebrow {
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.login-brand h1,
.login-aside h2 {
    margin-top: 6px;
    font-size: clamp(1.8rem, 4vw, 3.4rem);
    line-height: 0.98;
}

.login-copy,
.login-aside p {
    margin: 18px 0;
    color: var(--muted);
    line-height: 1.7;
}

.access-steps,
.security-stack {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 18px 0 26px;
}

.access-step,
.security-stack span {
    padding: 8px 10px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 800;
}

.access-step.active {
    color: var(--ink);
    background: var(--gold);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.login-form {
    display: grid;
    gap: 12px;
}

.login-form label {
    color: var(--gold-soft);
    font-size: 0.86rem;
    font-weight: 900;
}

.login-form input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font: inherit;
}

.login-form input:focus {
    outline: 2px solid rgba(246, 201, 69, 0.38);
    border-color: var(--gold);
}

.otp-single-input {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.captcha-slot {
    min-height: 68px;
    display: flex;
    align-items: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.text-button {
    margin-bottom: 12px;
    padding: 0;
    color: var(--gold);
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.message {
    min-height: 24px;
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.5;
}

.message.success {
    color: var(--green);
}

.message.error {
    color: var(--red);
}

code {
    padding: 2px 6px;
    color: var(--gold-soft);
    background: rgba(255, 255, 255, 0.07);
    border-radius: 4px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 820px) {
    .navbar,
    .status-container,
    .stat-card,
    .login-shell {
        grid-template-columns: 1fr;
    }

    .navbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .navbar-links {
        width: 100%;
    }

    .navbar-links a {
        flex: 1 1 auto;
        text-align: center;
    }

    .hero {
        min-height: 280px;
    }

    .server-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    body {
        background-size: 30px 30px, 30px 30px, auto, auto, auto;
    }

    .login-page {
        padding: 14px;
    }

    .status-section,
    .servers-section,
    .stats-section,
    .shop-section,
    .hero,
    .navbar,
    footer {
        width: min(100% - 20px, 1180px);
    }

    .shop-card-meta {
        align-items: stretch;
        flex-direction: column;
    }
}
