﻿:root {
    --bg-0: #050308;
    --bg-1: #0c0815;
    --bg-2: #120a20;
    --panel-0: #150f24;
    --panel-1: #211338;
    --panel-2: #2a1650;
    --line-dark: #050505;
    --line-neon: #00f6ff;
    --line-pink: #ff3bbf;
    --text-main: #f4f7ff;
    --text-soft: #b7c5e4;
    --btn-a: #00ebff;
    --btn-b: #ff4ec6;
    --ok: #5dffaf;
    --err: #ff7d9d;
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-main);
    font-family: "Trebuchet MS", "Verdana", sans-serif;
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 59, 191, 0.35), transparent 28%),
        radial-gradient(circle at 82% 20%, rgba(0, 246, 255, 0.28), transparent 30%),
        linear-gradient(140deg, var(--bg-0), var(--bg-1) 45%, var(--bg-2) 100%);
    image-rendering: pixelated;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.25;
    background:
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 2px, transparent 2px 8px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 8px);
}

main {
    flex: 1 0 auto;
}

.container {
    width: min(1140px, 93%);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.row {
    display: flex;
    gap: 10px;
}

.between {
    justify-content: space-between;
}

.center {
    align-items: center;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 4px solid var(--line-dark);
    background:
        linear-gradient(180deg, #191329, #100b1c);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.35),
        inset 0 2px 0 rgba(0, 246, 255, 0.45),
        inset 0 -2px 0 rgba(255, 59, 191, 0.35);
}

.topbar .container {
    padding: 12px 0;
}

.brand {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 #000, 0 0 16px rgba(0, 246, 255, 0.8);
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border: 3px solid var(--line-dark);
    background:
        linear-gradient(180deg, #2f1d4f, #211438);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.14),
        inset 0 -2px 0 rgba(0, 0, 0, 0.4);
    font-weight: 700;
    font-size: 0.92rem;
    transition: transform .12s ease, filter .12s ease;
}

.nav-link:hover,
.nav-link.active {
    transform: translateY(-2px);
    filter: brightness(1.12);
    border-color: var(--line-neon);
}

.auth-panel {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.welcome {
    font-size: 0.9rem;
    padding: 5px 8px;
    border: 2px solid rgba(0, 246, 255, 0.8);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-soft);
}

.btn {
    border: 3px solid var(--line-dark);
    border-radius: 0;
    text-decoration: none;
    color: #0c0720;
    font-weight: 800;
    padding: 8px 13px;
    background: linear-gradient(135deg, var(--btn-a), var(--btn-b));
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.28),
        0 5px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform .12s ease, filter .12s ease;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.btn-ghost {
    color: #fff;
    background: linear-gradient(180deg, #2a2242, #191426);
}

.btn-disabled {
    opacity: 0.8;
    pointer-events: none;
}

.hero {
    margin-top: 20px;
    padding: 26px;
    border: 4px solid var(--line-dark);
    background:
        linear-gradient(180deg, var(--panel-2), var(--panel-1));
    box-shadow:
        0 12px 34px rgba(0, 0, 0, 0.35),
        inset 0 2px 0 rgba(255, 255, 255, 0.15),
        inset 0 -2px 0 rgba(0, 0, 0, 0.5);
}

.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 #000, 0 0 22px rgba(255, 59, 191, 0.75);
}

.hero p {
    max-width: 760px;
    color: var(--text-soft);
}

.cards,
.grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    padding-bottom: 22px;
}

.card {
    border: 4px solid var(--line-dark);
    padding: 14px;
    color: #fff;
    background:
        linear-gradient(180deg, #23143b, #17102a);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.12),
        inset 0 -2px 0 rgba(0, 0, 0, 0.5);
}

.card h2 {
    margin-top: 0;
    text-shadow: 2px 2px 0 #000;
}

.page-header {
    margin-top: 16px;
    border: 4px solid var(--line-dark);
    background:
        linear-gradient(180deg, #1f1537, #140f27);
    box-shadow:
        inset 0 2px 0 rgba(0, 246, 255, 0.4),
        inset 0 -2px 0 rgba(255, 59, 191, 0.4);
    padding: 13px;
}

.page-header h1 {
    margin: 0;
    text-transform: uppercase;
}

.page-header p {
    margin: 8px 0 0;
    color: var(--text-soft);
}

.link-arrow {
    color: var(--line-neon);
    font-weight: 800;
    text-decoration: none;
}

.mock-image {
    height: 150px;
    border: 3px solid var(--line-dark);
    margin-bottom: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 59, 191, 0.45), rgba(0, 246, 255, 0.4));
    text-shadow: 1px 1px 0 #000;
}

.form-wrap {
    max-width: 740px;
    margin: 12px 0 24px;
    padding: 14px;
    border: 4px solid var(--line-dark);
    background: linear-gradient(180deg, #23143c, #171029);
}

.auth-form,
.admin-grid {
    display: grid;
    gap: 10px;
}

.admin-grid {
    margin: 14px 0 22px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.full {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 700;
    color: var(--text-soft);
}

input,
textarea {
    border: 3px solid #000;
    border-radius: 0;
    padding: 8px;
    color: #fff;
    background: linear-gradient(180deg, #130d1f, #0f0a19);
    font-family: "Courier New", monospace;
    box-shadow: inset 0 1px 0 rgba(0, 246, 255, 0.25);
}

textarea {
    resize: vertical;
}

.alert {
    margin: 0 0 12px;
    padding: 9px;
    border: 3px solid #000;
    font-weight: 700;
}

.error {
    background: rgba(255, 125, 157, 0.22);
    color: #ffd4df;
    border-color: #5a0d27;
}

.success {
    background: rgba(93, 255, 175, 0.2);
    color: #cbffe8;
    border-color: #0b4a2d;
}

.admin-actions {
    margin-bottom: 12px;
}

.site-footer {
    margin-top: auto;
    border-top: 4px solid var(--line-dark);
    background: linear-gradient(180deg, #170f2c, #0c0818);
    color: #fff;
    padding: 10px 0;
    box-shadow: inset 0 2px 0 rgba(0, 246, 255, 0.35);
}

.site-footer .container {
    min-height: 42px;
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .5s ease, transform .5s ease;
}

@media (max-width: 960px) {
    .topbar .container {
        flex-wrap: wrap;
    }

    .auth-panel {
        width: 100%;
    }

    .hero {
        padding: 18px;
    }
}
