:root {
    --bg: #000102;
    --card: rgba(255, 255, 255, 0.06);
    --card2: rgba(255, 255, 255, 0.08);
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.65);
    --line: rgba(255, 255, 255, 0.12);
    --primary: #6d6bff;
    --ok: #4ade80;
    --danger: #ff5d5d;
    --warn: #f0b429;
    --radius: 18px;
    --shadow: 0 10px 40px rgba(0, 0, 0, .35);
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--text);
    background: radial-gradient(1200px 800px at 20% 0%, rgba(109, 107, 255, .35), transparent 55%),
        radial-gradient(1200px 800px at 80% 20%, rgba(76, 201, 240, .18), transparent 60%),
        #070539;
}

a {
    color: var(--text);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(7, 10, 20, .6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-link {
    font-weight: 800;
    letter-spacing: .2px;
}

.badge {
    font-size: 12px;
    padding: 3px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    color: var(--text);
    opacity: .9;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.nav-link:hover {
    border-color: var(--line);
    text-decoration: none;
    background: rgba(255, 255, 255, .04);
}

.btn-link {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

main {
    padding: 24px 0 56px;
}

.section {
    margin: 18px 0 28px;
}

.section h1 {
    margin: 0 0 10px;
    font-size: 36px;
}

.section h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.hero {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 18px;
    margin-top: 10px;
}

.hero-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

.hero-card.small {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-content: start;
}

.lead {
    color: var(--muted);
    line-height: 1.55;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.note {
    margin-top: 14px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    padding: 10px 12px;
    color: var(--muted);
}


code,
pre {
    font-family: var(--mono);
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .04);
    box-shadow: var(--shadow);
    padding: 18px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.grid.two {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 980px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        grid-template-columns: 1fr;
    }
}

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

.product-card {
    padding: 0;
    overflow: hidden;
}

.product-thumb {
    display: block;
    height: 140px;
    background: rgba(0, 0, 0, .15);
    border-bottom: 1px solid var(--line);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--muted);
}

.thumb-placeholder.big {
    height: 220px;
}

.product-meta {
    padding: 14px 14px 16px;
}

.product-name {
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.price {
    color: rgba(255, 255, 255, .95);
}

.price.huge {
    font-size: 28px;
    margin: 10px 0 10px;
}

.row {
    display: flex;
    align-items: center;
}

.row.gap {
    gap: 10px;
}

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

.inline {
    display: inline-flex;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 13px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    background: rgba(255, 255, 255, .09);
    text-decoration: none;
}

.btn.primary {
    border-color: rgba(109, 107, 255, .7);
    background: rgba(109, 107, 255, .25);
}

.btn.primary:hover {
    background: rgba(109, 107, 255, .35);
}

.btn.ghost {
    background: transparent;
}

.btn.small {
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 13px;
}

.form {
    display: grid;
    gap: 10px;
}

.form input,
.form textarea,
.filters input,
.filters select,
.qty {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, .2);
    color: var(--text);
    outline: none;
}

.form textarea {
    resize: vertical;
}

.form label {
    color: var(--muted);
    font-size: 14px;
}

.filters {
    display: grid;
    grid-template-columns: 1.2fr .8fr auto auto;
    gap: 10px;
    align-items: center;
    margin: 10px 0 16px;
}

@media (max-width: 700px) {
    .filters {
        grid-template-columns: 1fr;
    }
}

.alert {
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    margin-bottom: 12px;
}

.alert.error {
    border-color: rgba(255, 93, 93, .6);
    background: rgba(255, 93, 93, .10);
}

.alert.warn {
    border-color: rgba(240, 180, 41, .6);
    background: rgba(240, 180, 41, .10);
}

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

.table th,
.table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.table th {
    text-align: left;
    color: var(--muted);
    font-weight: 600;
}

.table td.right,
.table th.right {
    text-align: right;
}

.top-border {
    border-top: 1px solid var(--line);
}

.pad {
    padding-top: 12px;
    margin-top: 12px;
}

.product-detail {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 16px;
}

.product-thumb.big {
    height: 260px;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.desc pre {
    white-space: pre-wrap;
    word-break: break-word;
    background: rgba(0, 0, 0, .15);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    color: rgba(255, 255, 255, .88);
}

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

.list li {
    margin: 10px 0;
}

.narrow {
    width: min(520px, 94vw);
    margin: 0 auto;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(7, 10, 20, .35);
    padding: 18px 0;
}

.muted a {
    color: var(--muted);
    text-decoration: underline;
}

.muted a:hover {
    opacity: .9;
}

.product-video {
    margin-top: 16px;
}

.video-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(0, 0, 0, .25);
}

.video-box iframe,
.video-box video {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===== Home hero with background image (HoneyRO-style vibe) ===== */
.home-hero {
    position: relative;
    min-height: 82vh;
    padding: 96px 0 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    isolation: isolate;
    overflow: hidden;
}

.home-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(255, 190, 0, .18), transparent 45%),
        radial-gradient(circle at 80% 30%, rgba(125, 90, 255, .18), transparent 55%),
        linear-gradient(to bottom, rgba(0, 0, 0, .45), rgba(0, 0, 0, .78)),
        var(--hero-bg);
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
    filter: saturate(1.06) contrast(1.05);
}

.home-hero__inner {
    width: min(980px, calc(100% - 28px));
    padding: 28px 26px 22px;
    border-radius: 22px;
    background: rgba(10, 15, 24, .48);
    border: 1px solid rgba(255, 255, 255, .10);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}

.home-hero__kicker {
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    opacity: .85;
}

.home-hero__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 18px 0 10px;
    flex-wrap: wrap;
}

.home-hero__logo {
    height: 72px;
    width: auto;
    filter: drop-shadow(0 18px 35px rgba(0, 0, 0, .65));
}

.home-hero__title {
    font-size: 58px;
    line-height: 1;
    font-weight: 900;
    text-shadow: 0 16px 40px rgba(0, 0, 0, .55);
}

.home-hero__desc {
    max-width: 760px;
    margin: 10px auto 16px;
    opacity: .92;
}

.home-hero__stats {
    margin: 14px 0 18px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.home-stat {
    min-width: 170px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
}

.home-stat__label {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .8;
}

.home-stat__value {
    font-size: 22px;
    font-weight: 900;
    margin-top: 2px;
}

.home-stat__link {
    text-decoration: underline;
}

.hero-actions {
    justify-content: center;
}

.hero-note {
    margin-top: 14px;
    opacity: .86;
}

.hero-note a {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .home-hero {
        padding: 72px 0 48px;
        min-height: 76vh;
    }

    .home-hero__title {
        font-size: 40px;
    }

    .home-stat {
        min-width: 150px;
    }
}

.hero.home-hero {
    /* break out of the centered container */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    position: relative;
    min-height: 82vh;
    padding: 96px 0 72px;
    overflow: hidden;
    isolation: isolate;
}

/* If your hero uses a separate background div (home-hero__bg), keep it full-bleed */
.hero.home-hero .home-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, .45), rgba(0, 0, 0, .78)),
        var(--hero-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.03);
}

.products-quickcats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.products-quickcats .qc {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
}

.products-quickcats .qc:hover {
    background: rgba(255, 255, 255, .07);
}

.products-quickcats .qc.active {
    background: rgba(120, 100, 255, .18);
    border-color: rgba(120, 100, 255, .35);
}

/* On smaller screens, remove left margin so it wraps nicely */
@media (max-width: 720px) {
    .products-quickcats {
        margin-left: 0;
    }
}

.designs-banner {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #000;
}

.designs-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 18px;
}

.designs-banner h1 {
    margin: 0;
    color: #fff;
    font-weight: 900;
    letter-spacing: .02em;
}

.designs-surface {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #ffffff;
    color: #111;
    padding: 26px 0 60px;
}

.designs-surface__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
}

.designs-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 10px 0 22px;
}

.designs-toolbar input {
    flex: 1;
    min-width: 220px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    outline: none;
}

.designs-toolbar input:focus {
    border-color: #c7c9d1;
}

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

@media (max-width: 1050px) {
    .designs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .designs-grid {
        grid-template-columns: 1fr;
    }

    .designs-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}

.design-card {
    background: transparent;
}

.design-thumb {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.design-thumb a {
    display: block;
    aspect-ratio: 16 / 10;
}

.design-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.design-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #6b7280;
    font-weight: 700;
}

.design-add {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.design-add button {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    background: #66c26a;
    color: #0b1020;
    font-size: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.design-add button:hover {
    filter: brightness(1.03);
}

.design-meta {
    padding-top: 12px;
}

.design-title a {
    color: #111;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
}

.design-sub {
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
}

.design-points {
    margin-top: 10px;
    font-weight: 900;
    color: #111;
}

.designs-empty {
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #374151;
    background: #f9fafb;
}

/* ===== FIX: Lightbox preview (Products + Graphic design) ===== */
.img-lightbox[hidden] {
    display: none !important;
}

.img-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.78);
}

.img-lightbox__inner {
    max-width: min(1200px, 96vw);
    max-height: 90vh;
}

.img-lightbox__inner img {
    max-width: 96vw;
    max-height: 90vh;
    border-radius: 14px;
    display: block;
    background: #000;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .65);
}

.img-lightbox__close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 28px;
    line-height: 40px;
    cursor: pointer;
    z-index: 10000;
    pointer-events: auto;
}

.img-lightbox__close:hover {
    background: rgba(0, 0, 0, .55);
}

/* =========================================================
   v2 additions
   ========================================================= */
:focus-visible { outline: 2px solid rgba(120, 100, 255, .8); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 34px; width: 34px; object-fit: contain; border-radius: 8px; }
.brand-name { font-weight: 800; letter-spacing: .2px; }

.nav-link.active { border-color: var(--line); background: rgba(255, 255, 255, .06); }
.nav-cta { border-color: rgba(109, 107, 255, .7); background: rgba(109, 107, 255, .25); }
.admin-link { border-color: rgba(240, 180, 41, .5); color: #ffd36a; }
.points-badge { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(109, 107, 255, .6); background: rgba(109, 107, 255, .18); }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); line-height: 1.5; vertical-align: middle; }
.pill-ok { background: rgba(74, 222, 128, .18); color: #9ff0b8; }
.pill-bad { background: rgba(255, 93, 93, .2); color: #ffb1b1; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); font-size: 20px; border-radius: 10px; padding: 6px 12px; cursor: pointer; }
@media (max-width: 760px) {
    .header-row { padding: 12px 0; flex-wrap: wrap; }
    .nav-toggle { display: inline-flex; }
    .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 10px; }
    .nav .inline { display: flex; }
    .nav .btn-link { width: 100%; text-align: left; }
    body.nav-open .nav { display: flex; }
    .points-badge { align-self: flex-start; }
}

.flash { margin: 8px 0 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); }
.flash-ok { border-color: rgba(74, 222, 128, .5); background: rgba(74, 222, 128, .10); }
.flash-err { border-color: rgba(255, 93, 93, .6); background: rgba(255, 93, 93, .10); }
.flash-info { border-color: rgba(109, 107, 255, .6); background: rgba(109, 107, 255, .12); }
.alert.ok { border-color: rgba(74, 222, 128, .5); background: rgba(74, 222, 128, .10); }
.alert a { text-decoration: underline; }

.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid.three, .grid.two { grid-template-columns: 1fr; } }
.grid + .grid, .card + .card, .card + .grid, .grid + .card { margin-top: 14px; }
.mt { margin-top: 18px; }
.wrap { flex-wrap: wrap; }
.nowrap { white-space: nowrap; }
.center { text-align: center; justify-content: center; }
.narrow-ish { width: min(720px, 94vw); margin-left: auto; margin-right: auto; }
.empty { padding: 28px; text-align: center; }
.empty a { text-decoration: underline; }

.how-it-works h2 { margin-bottom: 14px; }
.step { position: relative; padding-top: 22px; }
.step h3 { margin: 6px 0 4px; }
.step p { margin: 0; }
.step-num { position: absolute; top: -12px; left: 16px; width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; font-weight: 900; font-size: 13px; background: var(--primary); color: #fff; }

.products-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 4px; }
.products-head h1 { margin: 0; }
.results-count { margin: -6px 0 12px; }
.filters { grid-template-columns: 1.4fr .8fr .8fr auto auto; }
@media (max-width: 760px) { .filters { grid-template-columns: 1fr 1fr; } .filters input[type=search] { grid-column: 1 / -1; } }
.product-thumb { transition: opacity .15s; }
.product-thumb:hover { opacity: .9; }
.product-card .btn[disabled] { opacity: .5; cursor: default; }
.crumbs { margin-bottom: 10px; }
.crumbs a { text-decoration: underline; }
.product-thumb.big img { width: 100%; height: 100%; object-fit: contain; background: rgba(0,0,0,.25); }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } .product-thumb.big { height: 220px; } }

.cart-thumb { width: 44px; height: 32px; object-fit: cover; border-radius: 6px; margin-right: 8px; vertical-align: middle; border: 1px solid var(--line); }
.cell-product a { font-weight: 600; }
.dl-list { list-style: none; padding: 0; margin: 10px 0 18px; }
.dl-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table.compact td { padding: 6px 6px; font-size: 14px; }
.pos { color: #9ff0b8; }
.neg { color: #ffb1b1; }

.btn.danger { border-color: rgba(255, 93, 93, .5); color: #ffb1b1; background: rgba(255, 93, 93, .08); }
.btn.danger:hover { background: rgba(255, 93, 93, .18); }
.btn.dark { background: #111; color: #fff; border-color: #111; }
.btn.dark:hover { background: #222; }
.btn:disabled { cursor: default; }

.auth-card { padding: 26px; }
.auth-card h1 { font-size: 30px; }
.form .check { display: flex; align-items: center; gap: 8px; color: var(--text); padding: 10px 0; }
.form .check input { width: auto; }
.form-preview { margin-top: 8px; max-height: 120px; border-radius: 10px; border: 1px solid var(--line); }
.form select { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .2); color: var(--text); }
.form input[type=file] { padding: 8px; }
select { color-scheme: dark; }

.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 12px 0 4px; padding: 8px; border-radius: 14px; border: 1px solid rgba(240, 180, 41, .35); background: rgba(240, 180, 41, .06); }
.admin-nav a { padding: 7px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; border: 1px solid transparent; }
.admin-nav a:hover { text-decoration: none; background: rgba(255, 255, 255, .06); }
.admin-nav a.active { background: rgba(240, 180, 41, .18); border-color: rgba(240, 180, 41, .4); }
.admin-nav .push { margin-left: auto; background: rgba(109, 107, 255, .25); border-color: rgba(109, 107, 255, .7); }
.admin-search { grid-template-columns: 1fr auto auto; margin-top: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 1000px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 14px 16px; }
.stat-label { font-size: 12px; color: var(--muted); }
.stat-value { font-size: 26px; font-weight: 900; margin-top: 2px; }
.points-form { flex-wrap: wrap; }
.points-form select, .points-form .qty { width: auto; min-width: 90px; padding: 6px 8px; border-radius: 10px; }
.points-form .reason { min-width: 160px; }
.points-form select { border: 1px solid var(--line); background: rgba(0, 0, 0, .2); color: var(--text); }

.footer-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---- product gallery (multiple previews / GIFs) ---- */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 10px;
}
.product-gallery__item {
    display: block;
    height: 200px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0, 0, 0, .25);
    transition: transform .15s, opacity .15s;
}
.product-gallery__item:hover { transform: translateY(-2px); opacity: .92; }
.product-gallery__item img { width: 100%; height: 100%; object-fit: contain; display: block; image-rendering: auto; }
@media (max-width: 760px) {
    .product-gallery { grid-template-columns: repeat(2, 1fr); }
    .product-gallery__item { height: 150px; }
}
.gallery-admin { margin: 14px 0; }
.gallery-admin .mt { margin-top: 10px; display: block; }
.gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 8px;
}
.gallery-admin-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px;
    text-align: center;
    background: rgba(0, 0, 0, .15);
}
.gallery-admin-item img { width: 100%; height: 110px; object-fit: contain; display: block; background: rgba(0,0,0,.25); border-radius: 8px; }
.gallery-admin-item .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 6px 0; }
