:root {
    --bg: #070912;
    --panel: #101522;
    --panel-2: #151b2d;
    --text: #f4f7fb;
    --muted: #9aa7b8;
    --green: #6cff8d;
    --purple: #8b5cff;
    --line: rgba(255,255,255,.09);
    --shadow: 0 24px 70px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at 20% 10%, rgba(139,92,255,.22), transparent 35%),
        radial-gradient(circle at 80% 20%, rgba(108,255,141,.13), transparent 30%),
        var(--bg);
    color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 6vw;
    background: rgba(7,9,18,.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}
.logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #08100b;
    background: linear-gradient(135deg, var(--green), var(--purple));
}
.nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-weight: 700;
}
.nav a:hover { color: var(--green); }
.cart-count {
    color: #08100b;
    background: var(--green);
    border-radius: 999px;
    padding: 2px 7px;
    margin-left: 4px;
}
.burger {
    display: none;
    border: 0;
    background: transparent;
}
.burger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text);
    margin: 5px;
}

.hero {
    min-height: 76vh;
    padding: 80px 6vw;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 34px;
    align-items: center;
}
.eyebrow {
    color: var(--green);
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}
h1 {
    font-size: clamp(42px, 7vw, 86px);
    line-height: .95;
    margin: 10px 0 22px;
}
h2 {
    font-size: clamp(28px, 4vw, 46px);
    margin: 0;
}
.hero-text {
    color: var(--muted);
    font-size: 20px;
    max-width: 640px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.btn {
    border: 1px solid var(--line);
    padding: 14px 20px;
    border-radius: 16px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn.primary {
    color: #08100b;
    background: linear-gradient(135deg, var(--green), #d7ff65);
}
.btn.ghost {
    background: rgba(255,255,255,.04);
}
.btn.small {
    padding: 10px 14px;
    border-radius: 12px;
    color: #08100b;
    background: var(--green);
}
.link { color: var(--green); font-weight: 900; }

.hero-card {
    min-height: 440px;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(139,92,255,.18), rgba(108,255,141,.08)), var(--panel);
    border-radius: 36px;
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.hero-card:after {
    content: "";
    position: absolute;
    inset: 30px;
    border: 1px dashed rgba(255,255,255,.16);
    border-radius: 28px;
}
.rank {
    position: absolute;
    right: 30px;
    top: 30px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #08100b;
    background: var(--green);
    font-weight: 900;
}
.crosshair {
    width: 170px;
    height: 170px;
    border: 2px solid var(--green);
    border-radius: 50%;
    margin: 90px auto 60px;
    position: relative;
    box-shadow: 0 0 40px rgba(108,255,141,.25);
}
.crosshair:before, .crosshair:after {
    content: "";
    position: absolute;
    background: var(--green);
}
.crosshair:before {
    width: 220px;
    height: 2px;
    left: -25px;
    top: 84px;
}
.crosshair:after {
    height: 220px;
    width: 2px;
    top: -25px;
    left: 84px;
}
.hero-card h3, .hero-card p {
    position: relative;
    z-index: 1;
    text-align: center;
}
.hero-card h3 {
    font-size: 30px;
    margin-bottom: 6px;
}
.hero-card p { color: var(--muted); }

.section, .page-hero, .catalog-layout, .checkout, .product-page {
    padding: 56px 6vw;
}
.section-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 26px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.product-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(16,21,34,.86);
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0,0,0,.24);
}
.product-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    background: #0d1220;
}
.badge {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 16px;
    padding: 8px 11px;
    border-radius: 999px;
    color: #08100b;
    background: var(--green);
    font-weight: 900;
    font-size: 12px;
}
.product-body {
    padding: 22px;
}
.category {
    color: var(--purple);
    font-weight: 900;
}
.product-body p {
    color: var(--muted);
}
.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}
.banner {
    margin: 40px 6vw 70px;
    padding: 46px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(108,255,141,.14), rgba(139,92,255,.18));
    border: 1px solid var(--line);
}
.banner p { color: var(--muted); }

.page-hero {
    background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
}
.page-hero h1 {
    font-size: clamp(38px, 5vw, 68px);
}
.page-hero p { color: var(--muted); }

.catalog-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
}
.filters {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 18px;
    height: fit-content;
}
.filters a {
    display: block;
    color: var(--muted);
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 800;
}
.filters a.active, .filters a:hover {
    color: #08100b;
    background: var(--green);
}

.product-page {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 36px;
    align-items: start;
}
.product-image-big {
    position: relative;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 32px;
    overflow: hidden;
}
.product-image-big img {
    width: 100%;
    min-height: 520px;
    object-fit: cover;
}
.product-info {
    border: 1px solid var(--line);
    background: rgba(16,21,34,.82);
    border-radius: 32px;
    padding: 32px;
}
.product-info h1 {
    font-size: clamp(34px, 5vw, 58px);
}
.price {
    color: var(--green);
    font-size: 34px;
    font-weight: 900;
}
label {
    display: block;
    margin: 18px 0 8px;
    color: var(--muted);
    font-weight: 800;
}
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #090d17;
    color: var(--text);
    border-radius: 14px;
    padding: 14px;
    outline: none;
}
textarea { min-height: 110px; resize: vertical; }
.product-info .btn { margin-top: 18px; width: 100%; }
.info-box, .debug-box {
    margin-top: 22px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--line);
    color: var(--muted);
}

.checkout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.cart-panel, .order-form {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 24px;
}
.cart-item {
    display: grid;
    grid-template-columns: 78px 1fr 38px;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.cart-item img {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: 16px;
}
.cart-item p { color: var(--muted); margin: 4px 0; }
.remove-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.1);
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    padding-top: 18px;
    font-size: 22px;
}
.empty { color: var(--muted); }

.footer {
    padding: 32px 6vw;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
}
.footer strong { color: var(--text); }
.footer-links { display: flex; gap: 18px; }

@media (max-width: 900px) {
    .burger { display: block; }
    .nav {
        display: none;
        position: absolute;
        top: 78px;
        left: 16px;
        right: 16px;
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 20px;
        padding: 18px;
        flex-direction: column;
        align-items: stretch;
    }
    .nav.open { display: flex; }
    .hero, .product-page, .checkout, .catalog-layout {
        grid-template-columns: 1fr;
    }
    .hero { padding-top: 42px; }
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .section-head {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .site-header { padding: 14px 18px; }
    .hero, .section, .page-hero, .catalog-layout, .checkout, .product-page {
        padding-left: 18px;
        padding-right: 18px;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .hero-card { min-height: 330px; }
    .crosshair {
        width: 120px;
        height: 120px;
        margin-top: 80px;
    }
    .crosshair:before {
        width: 160px;
        left: -20px;
        top: 59px;
    }
    .crosshair:after {
        height: 160px;
        top: -20px;
        left: 59px;
    }
    .footer {
        flex-direction: column;
    }
}
.admin-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.admin-box {
    width: 100%;
    max-width: 460px;
}

.admin-page {
    padding: 48px 6vw;
}

.admin-page h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.admin-error {
    background: rgba(255, 80, 80, .12);
    border: 1px solid rgba(255, 80, 80, .28);
    color: #ffb4b4;
    padding: 12px 14px;
    border-radius: 14px;
}

.admin-table-wrap {
    overflow-x: auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 14px;
}

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

.admin-table th,
.admin-table td {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.admin-table th {
    color: var(--muted);
}

.admin-table img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 14px;
}

.admin-table small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.delete-link {
    color: #ff8b8b;
    font-weight: 800;
    margin-left: 12px;
}

.admin-edit-form {
    max-width: 760px;
}

.admin-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    margin-bottom: 12px;
    background: rgba(255,255,255,.04);
}

.admin-preview img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 14px;
}

.admin-preview span {
    color: var(--muted);
}