:root {
    --bg: #07080c;
    --bg-2: #10131b;
    --panel: #12151d;
    --panel-2: #181c27;
    --gold: #d4af37;
    --gold-2: #f0d78c;
    --gold-dim: rgba(212, 175, 55, 0.18);
    --text: #f4efe4;
    --muted: #9b937f;
    --line: rgba(212, 175, 55, 0.28);
    --discord: #5865f2;
    --danger: #c45c5c;
    --ok: #7dbe7d;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    --font: "Black Ops One", sans-serif;
}

* { box-sizing: border-box; }

html {
    min-height: 100%;
    background: #14110e;
}

body {
    margin: 0;
    min-height: 100%;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
    font-family: var(--font);
    background: #14110e;
}

.site-atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: #16120f;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -8%, rgba(72, 48, 28, 0.28), transparent 62%),
        radial-gradient(ellipse 55% 40% at 0% 100%, rgba(42, 28, 18, 0.35), transparent 70%),
        radial-gradient(ellipse 50% 36% at 100% 90%, rgba(36, 24, 16, 0.3), transparent 68%),
        linear-gradient(180deg, #1a1612 0%, #14110e 48%, #100e0c 100%);
}

.site-atmosphere::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, transparent 42%, rgba(8, 6, 5, 0.42) 100%);
}

.site-atmosphere::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../img/noise.svg?v=3");
    background-size: 180px 180px;
    opacity: 0.07;
    mix-blend-mode: overlay;
}

.site-header,
.site-main,
.site-footer {
    position: relative;
    z-index: 1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(18, 14, 12, 0.94);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 78px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--gold);
    color: var(--gold-2);
    font-family: var(--font);
    font-size: 13px;
    letter-spacing: 0.08em;
    box-shadow: inset 0 0 12px rgba(212,175,55,0.25);
}

.brand-text {
    font-family: var(--font);
    font-size: 20px;
    letter-spacing: 0.08em;
    color: var(--gold-2);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.nav-link, .dropdown-trigger {
    background: none;
    border: 0;
    cursor: pointer;
    padding: 10px 14px;
    color: var(--text);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover, .nav-link.is-active, .dropdown-trigger:hover {
    color: var(--gold-2);
}

.nav-dropdown { position: relative; }

.dropdown-menu, .lang-menu {
    position: absolute;
    top: 100%;
    min-width: 220px;
    display: none;
    z-index: 20;
}

.lang-menu {
    background: #151924;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px;
}

.nav-dropdown .dropdown-menu {
    padding-top: 12px;
}

.dropdown-panel {
    background: #151924;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px;
    display: grid;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu,
.lang-switcher.open .lang-menu {
    display: grid;
}

.dropdown-menu a, .lang-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
}

.dropdown-menu a:hover, .lang-menu a:hover, .lang-menu a.is-active {
    background: var(--gold-dim);
    color: var(--gold-2);
}

.dropdown-empty {
    display: block;
    padding: 12px;
    color: var(--muted);
    font-size: 13px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.lang-switcher { position: relative; }

.lang-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 8px 12px;
    cursor: pointer;
    min-width: 148px;
}

.caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--gold-2);
}

.lang-menu a {
    justify-content: flex-start;
    gap: 10px;
}

.user-chip {
    color: var(--gold-2);
    font-size: 13px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
    font-weight: 600;
}

.btn-gold {
    background: linear-gradient(180deg, #f0d78c, #c49a2c);
    color: #1b1406;
    -webkit-text-fill-color: #1b1406;
}

.btn-ghost {
    border-color: var(--line);
    background: transparent;
    color: var(--gold-2);
}

.btn-order {
    width: 100%;
    min-height: 48px;
    background: linear-gradient(180deg, #f0d78c, #c49a2c);
    color: #1b1406;
    -webkit-text-fill-color: #1b1406;
}

.btn-order svg {
    width: 20px;
    height: 20px;
    fill: #5865f2;
    flex: 0 0 20px;
}

.order-hint {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
    letter-spacing: 0.03em;
}

.btn-danger {
    background: transparent;
    border-color: var(--danger);
    color: #f0b4b4;
}

.site-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 72px;
    min-height: calc(100vh - 160px);
}

.flash {
    margin-bottom: 20px;
    padding: 12px 16px;
    border: 1px solid var(--line);
}

.flash-success { border-color: var(--ok); color: #c8ecc8; }
.flash-error { border-color: var(--danger); color: #f0b4b4; }
.flash-info { border-color: var(--gold); color: var(--gold-2); }

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 28px;
}

.page-head h1, .product-title, .auth-card h1, .admin-form h1 {
    font-family: var(--font);
    margin: 0 0 8px;
    font-size: 34px;
    font-weight: 700;
}

.muted { color: var(--muted); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #16120f;
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 12px 30px rgba(212,175,55,0.12);
}

.product-card-media {
    display: block;
}

.product-card img {
    width: 100%;
    height: 188px;
    object-fit: cover;
    background: #0b0d13;
}

.product-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 16px 18px;
    flex: 1;
}

.product-card h2,
.product-card h2 a {
    margin: 0;
    font-size: 20px;
    font-family: var(--font);
    color: var(--gold);
    -webkit-text-fill-color: var(--gold);
    line-height: 1.25;
}

.product-title {
    color: var(--gold);
    -webkit-text-fill-color: var(--gold);
}

.card-new {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 12px;
    overflow: hidden;
    border: 1px solid rgba(158, 214, 186, 0.42);
    background: linear-gradient(180deg, rgba(24, 52, 40, 0.96), rgba(10, 26, 20, 0.96));
    color: #b7e8cc;
    -webkit-text-fill-color: #b7e8cc;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(88, 168, 128, 0.22);
    animation: new-glow 2.8s ease-in-out infinite;
}

.card-new-label {
    position: relative;
    z-index: 1;
}

.card-new::before {
    content: "";
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
    transform: skewX(-18deg);
    animation: new-shine 3.4s ease-in-out infinite;
}

.card-new-spark,
.card-new-spark-2 {
    position: absolute;
    z-index: 2;
    width: 4px;
    height: 4px;
    pointer-events: none;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.85);
    animation: new-spark 1.8s ease-in-out infinite;
}

.card-new-spark {
    top: 4px;
    right: 7px;
}

.card-new-spark-2 {
    left: 8px;
    bottom: 5px;
    width: 3px;
    height: 3px;
    animation-delay: 0.7s;
}

@keyframes new-shine {
    0%, 58% { transform: translateX(0) skewX(-18deg); opacity: 0; }
    62% { opacity: 1; }
    82% { transform: translateX(320%) skewX(-18deg); opacity: 0.15; }
    100% { transform: translateX(320%) skewX(-18deg); opacity: 0; }
}

@keyframes new-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(88, 168, 128, 0.18); }
    50% { box-shadow: 0 0 16px rgba(140, 214, 176, 0.42); }
}

@keyframes new-spark {
    0%, 100% { opacity: 0.15; transform: scale(0.6); }
    40% { opacity: 1; transform: scale(1); }
    70% { opacity: 0.35; transform: scale(0.8); }
}

@media (prefers-reduced-motion: reduce) {
    .card-new,
    .card-new::before,
    .card-new-spark,
    .card-new-spark-2 {
        animation: none;
    }
}

.card-desc {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #cfc6b4;
    -webkit-text-fill-color: #cfc6b4;
    font-size: 13px;
    line-height: 1.55;
}

.card-desc li::before {
    content: "- ";
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    color: var(--gold-2);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: auto;
}

.card-meta strong {
    color: var(--gold-2);
    -webkit-text-fill-color: var(--gold-2);
    font-size: 18px;
    letter-spacing: 0.04em;
}

.btn-see-more {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    -webkit-text-fill-color: var(--gold);
}

.badge-row { display: flex; gap: 8px; margin-bottom: 2px; flex-wrap: wrap; }

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid var(--gold);
    color: var(--gold-2);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pill-soft { color: #d7c398; border-color: rgba(212,175,55,0.4); }

.pill-category {
    color: #c45a10;
    -webkit-text-fill-color: #c45a10;
    border-color: #c45a10;
    background: transparent;
}

.gold-frame {
    position: relative;
    border: 1px solid var(--gold);
    background: linear-gradient(180deg, #141821, #0d1016);
    padding: 22px;
}

.frame-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid var(--gold-2);
    pointer-events: none;
}

.frame-corner-tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.frame-corner-tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
.frame-corner-bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
.frame-corner-br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

.product-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: start;
}

.product-image {
    border: 8px solid #1a140c;
    box-shadow: inset 0 0 0 1px #6f5a2c, 0 0 0 1px var(--gold);
    background: #000;
}

.product-image img {
    width: 100%;
    min-height: 360px;
    object-fit: contain;
    background: #050505;
}

.product-title {
    font-size: 40px;
}

.product-desc {
    color: #d7d0c1;
    line-height: 1.7;
    white-space: pre-wrap;
    margin: 18px 0 28px;
}

.showcase-label {
    color: var(--gold-2);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 10px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #000;
    margin-bottom: 28px;
}

.video-frame iframe, .video-frame img {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    border: 0;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: end;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,.55));
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
}

.price-row span { letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.price-row strong { color: var(--gold-2); font-size: 32px; font-family: var(--font); }

.auth-wrap {
    min-height: 60vh;
    display: grid;
    place-items: center;
}

.install-card {
    width: min(760px, 100%);
}

.install-checks {
    display: grid;
    gap: 8px;
}

.install-check {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(0, 0, 0, 0.22);
    font-size: 13px;
}

.install-check.is-ok {
    border-color: rgba(125, 190, 125, 0.45);
    color: #c8ecc8;
}

.install-check.is-bad {
    border-color: rgba(196, 92, 92, 0.55);
    color: #f0b4b4;
    white-space: pre-wrap;
}

.install-error {
    white-space: pre-wrap;
}

.auth-card, .admin-form, .table-card {
    width: min(520px, 100%);
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 28px;
    box-shadow: var(--shadow);
}

.admin-form, .table-card { width: 100%; }

.form-grid { display: grid; gap: 14px; }

label { display: grid; gap: 6px; font-size: 13px; color: var(--gold-2); }

input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], input[type="file"], textarea, select {
    width: 100%;
    background: #120f0c;
    border: 1px solid var(--line);
    padding: 11px 12px;
    outline: none;
}

textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); }

.help { color: var(--muted); font-size: 12px; font-weight: 400; }

.lang-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(212, 175, 55, 0.16);
}

.lang-tab {
    border: 1px solid transparent;
    background: transparent;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

.lang-tab.is-active {
    border-color: var(--gold);
    background: var(--gold-dim);
    color: var(--gold-2);
}

.lang-panel { display: none; }
.lang-panel.is-active { display: grid; gap: 14px; }

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 12px;
}

.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(212,175,55,0.14);
    vertical-align: middle;
}

th { color: var(--gold-2); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

.thumb {
    width: 72px;
    height: 48px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.row-actions { display: flex; gap: 8px; }

.admin-shell {
    display: grid;
    gap: 28px;
}

.admin-kicker {
    margin: 0 0 6px;
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.admin-hero,
.admin-form-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
}

.admin-hero h1,
.admin-form-head h1 {
    margin: 0 0 6px;
    color: var(--gold);
}

.admin-hero p,
.admin-form-head p {
    margin: 0;
}

.admin-hero-actions,
.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.admin-stat {
    position: relative;
    padding: 18px 20px;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(42, 32, 20, 0.55), rgba(16, 13, 10, 0.8)),
        rgba(18, 14, 11, 0.85);
    box-shadow: inset 0 1px 0 rgba(240, 215, 140, 0.08);
}

.admin-stat strong {
    display: block;
    color: var(--gold-2);
    font-size: 32px;
    line-height: 1;
    margin-bottom: 8px;
}

.admin-stat span {
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}

.admin-section {
    display: grid;
    gap: 14px;
}

.admin-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.admin-section-head h2,
.admin-block h2 {
    margin: 0;
    color: var(--gold);
    font-size: 22px;
}

.admin-section-link {
    color: var(--gold-2);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-section-link:hover {
    color: var(--gold);
}

.admin-list {
    display: grid;
    gap: 10px;
}

.admin-item {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: linear-gradient(180deg, rgba(28, 22, 16, 0.88), rgba(14, 12, 10, 0.92));
}

.admin-item:hover {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.12);
}

.admin-item-media {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: #090807;
}

.admin-item-media img {
    width: 100%;
    height: 84px;
    object-fit: cover;
}

.admin-item-main h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: var(--gold);
}

.admin-item-main h3 a:hover {
    color: var(--gold-2);
}

.admin-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.admin-item-meta strong {
    color: var(--gold-2);
}

.admin-item-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.admin-item-actions .btn {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
}

.admin-empty {
    padding: 42px 18px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed rgba(212, 175, 55, 0.28);
    background: rgba(0, 0, 0, 0.18);
}

.admin-back {
    width: max-content;
    color: var(--gold-2);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}

.admin-back:hover { color: var(--gold); }

.admin-form.gold-frame {
    width: 100%;
    display: grid;
    gap: 22px;
    padding: 28px;
    background: linear-gradient(180deg, rgba(28, 22, 16, 0.96), rgba(12, 10, 8, 0.98));
}

.admin-form-head {
    display: grid;
    justify-content: start;
    align-items: start;
}

.admin-block {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(0, 0, 0, 0.22);
}

.admin-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.admin-image-field,
.admin-fields > label:last-child {
    grid-column: 1 / -1;
}

.admin-form-actions {
    padding-top: 4px;
}

.is-admin .nav-link.is-active {
    color: var(--gold-2);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 22px 0 28px;
    color: var(--muted);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.gold-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 0;
    width: 42px;
    height: 42px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--gold);
    margin: 6px 0;
}

.empty-state {
    border: 1px dashed var(--line);
    padding: 48px 20px;
    text-align: center;
    color: var(--muted);
}

.flag {
    width: 22px;
    height: 15px;
    display: block;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
    flex: 0 0 22px;
}

.flag-hu { background-image: url("../img/flags/hu.svg"); }
.flag-gb { background-image: url("../img/flags/gb.svg"); }
.flag-tr { background-image: url("../img/flags/tr.svg"); }
.flag-pl { background-image: url("../img/flags/pl.svg"); }
.flag-ro { background-image: url("../img/flags/ro.svg"); }
.flag-pt { background-image: url("../img/flags/pt.svg"); }

.current-image {
    width: min(280px, 100%);
    max-height: 180px;
    object-fit: cover;
    border: 1px solid var(--gold);
    box-shadow: inset 0 0 0 1px #6f5a2c;
    margin-top: 8px;
    background: #090807;
}

.serverfile-grid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
}

.serverfile-card img {
    height: 260px;
}

.serverfile-price {
    max-width: 480px;
    margin-bottom: 16px;
}

.sf-stack {
    display: grid;
    gap: 28px;
    margin-top: 40px;
}

.sf-block {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    align-items: center;
    opacity: 0;
}

.sf-block.from-right { transform: translateX(80px); }
.sf-block.from-left { transform: translateX(-80px); }
.sf-block.from-left .sf-media { order: 2; }

.sf-block.is-in {
    opacity: 1;
    transform: translateX(0);
    transition: transform .75s cubic-bezier(.22, .8, .3, 1), opacity .7s ease;
}

.sf-media {
    border: 8px solid #1a140c;
    box-shadow: inset 0 0 0 1px #6f5a2c, 0 0 0 1px var(--gold);
    background: #000;
}

.sf-carousel {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #050505;
}

.sf-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    border: 0;
    padding: 0;
    margin: 0;
    background: #050505;
    cursor: zoom-in;
    transition: opacity .45s ease;
}

.sf-carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.sf-carousel-slide img,
.sf-media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    background: #050505;
}

.sf-carousel-nav,
.sf-lightbox-nav,
.sf-lightbox-close {
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 1px solid var(--gold);
    background: rgba(0, 0, 0, 0.62);
    color: var(--gold);
    -webkit-text-fill-color: var(--gold);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.sf-carousel-nav {
    position: absolute;
}

.sf-carousel-nav.prev {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.sf-carousel-nav.next {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.sf-carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}

.sf-carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.sf-carousel-dot.is-active {
    background: var(--gold);
}

.sf-lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 72px 24px 24px;
    background: rgba(0, 0, 0, 0.92);
}

.sf-lightbox[hidden] {
    display: none !important;
}

.sf-lightbox img {
    max-width: min(78vw, 1100px);
    max-height: 78vh;
    object-fit: contain;
    box-shadow: 0 0 0 1px var(--gold);
}

.sf-lightbox-nav {
    position: static;
    transform: none;
    flex: 0 0 auto;
}

.sf-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
}

body.lightbox-open {
    overflow: hidden;
}

.sf-item-images {
    margin-top: 14px;
}

.sf-item-images-label {
    display: block;
}

.sf-item-images-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.sf-item-thumbs,
.sf-item-thumbs-new {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.sf-add-images {
    width: 68px;
    min-width: 68px;
    height: 68px;
    padding: 0;
    font-size: 32px;
    line-height: 1;
}

.sf-item-thumb {
    position: relative;
    width: 92px;
    height: 68px;
    border: 1px solid var(--line);
    background: #050505;
}

.sf-item-thumb img,
.sf-item-thumbs-new img {
    width: 92px;
    height: 68px;
    object-fit: cover;
    border: 1px solid var(--line);
    display: block;
}

.sf-item-thumb-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid var(--gold);
    background: rgba(0, 0, 0, 0.75);
    color: var(--gold);
    -webkit-text-fill-color: var(--gold);
    cursor: pointer;
    line-height: 1;
}

.sf-copy h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.sf-block-text {
    grid-template-columns: 1fr;
}

.sf-item-list {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.sf-item-editor {
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: rgba(10, 8, 6, 0.45);
    padding: 16px;
}

.sf-item-editor-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.sf-add-item {
    width: 48px;
    min-width: 48px;
    height: 48px;
    margin-top: 14px;
    padding: 0;
    font-size: 28px;
    line-height: 1;
}

.system-pick {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.system-pick-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    padding: 8px 10px;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
}

.system-pick-item img {
    width: 56px;
    height: 40px;
    object-fit: cover;
    border: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
    .sf-block,
    .sf-block.from-right,
    .sf-block.from-left {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 900px) {
    .product-layout { grid-template-columns: 1fr; }
    .product-title { font-size: 28px; }
    .nav-toggle { display: block; }
    .site-nav, .header-actions {
        display: none;
    }
    .site-header.is-open .site-nav,
    .site-header.is-open .header-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding-bottom: 16px;
    }
    .header-inner {
        flex-wrap: wrap;
    }
    .dropdown-menu, .lang-menu {
        position: static;
        box-shadow: none;
        margin-top: 6px;
        padding-top: 0;
    }
    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown.open .dropdown-menu,
    .lang-switcher.open .lang-menu {
        display: grid;
    }
    .sf-block,
    .sf-block.from-left,
    .sf-block.from-right {
        grid-template-columns: 1fr;
        transform: translateY(36px);
    }
    .sf-block.from-left .sf-media { order: 0; }
    .sf-block.is-in { transform: translateY(0); }
    .serverfile-grid {
        grid-template-columns: 1fr;
    }
    .admin-hero,
    .admin-item {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .admin-stats,
    .admin-fields {
        grid-template-columns: 1fr;
    }
    .admin-item-actions {
        justify-content: flex-start;
    }
    .admin-item-media img {
        height: 160px;
    }
}
