/* ==========================================================================
   Admin — layered on top of shop.css (shares tokens, buttons, cards, share sheet)
   ========================================================================== */
body.admin { background: #F3F1EC; }
.admin .main { min-height: 100vh; padding-bottom: 96px; }
.content { max-width: 1100px; margin: 0 auto; padding: 20px 16px; }

/* Sidebar (desktop) */
.side { display: none; }
@media (min-width: 960px) {
    .side {
        position: fixed; inset: 0 auto 0 0; width: 256px; z-index: 50;
        display: flex; flex-direction: column; gap: 22px; padding: 22px 16px;
        background: var(--ink); color: #fff;
    }
    .side .brand__name { color: #fff; font-size: 17px; }
    .side .brand__mark { background: var(--brand-on-dark); color: var(--brand-on-dark-ink); box-shadow: none; }
    .admin .main { margin-left: 256px; padding-bottom: 40px; }
    .mtop, .bnav { display: none !important; }
    .content { padding: 32px 36px; }
}
.side__nav { display: grid; gap: 4px; }
.side__nav a, .side__foot a, .side__foot button {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 11px 14px; border-radius: 12px; border: 0; background: none;
    color: rgba(255, 255, 255, .7); font-size: 14.5px; font-weight: 500; text-align: left;
    transition: background .15s, color .15s;
}
.side__nav a:hover, .side__foot a:hover, .side__foot button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side__nav a.is-active { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 3px 0 0 var(--brand-on-dark); }
.side__foot { margin-top: auto; display: grid; gap: 2px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 14px; }

/* Mobile top + bottom nav */
.mtop {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 16px;
    background: var(--ink); color: #fff;
}
.mtop .brand__name { color: #fff; }
.mtop .brand__mark { width: 34px; height: 34px; font-size: 18px; background: var(--brand); color: var(--brand-ink); box-shadow: none; }
.mtop .icon-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #fff; }
.mtop form { margin: 0; }
.bnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line);
}
.bnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--muted); }
.bnav a.is-active { color: var(--ink); }
.bnav a.is-active .icon { color: var(--ink); }
.bnav__add {
    justify-self: center; width: 56px; height: 56px; margin-top: -26px; border-radius: 18px;
    display: grid !important; place-items: center;
    background: var(--brand); color: var(--brand-ink) !important;
    box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--brand) 80%, transparent);
}
@media (min-width: 960px) { .hide-desktop { display: none !important; } }
@media (max-width: 959px) { .hide-mobile { display: none !important; } }

/* Page */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-head h1 { font-size: clamp(28px, 6vw, 36px); font-weight: 800; margin-top: 4px; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--dark:disabled { opacity: .35; cursor: not-allowed; }
.icon-btn--danger:hover { background: #FDECEC; color: var(--danger); border-color: #F5C2C2; }

.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 14px; margin-bottom: 16px; font-size: 14px; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }
.alert--ok { background: #E8F8EE; color: #116B37; }
.alert--err { background: #FDECEC; color: #9B2C2C; display: block; }
.alert--warn { background: color-mix(in srgb, var(--brand) 18%, #fff); color: var(--ink); border: 1px solid color-mix(in srgb, var(--brand) 50%, #fff); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
@media (min-width: 720px) { .panel { padding: 22px 24px; } }
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.panel__head h2, .panel__title { font-size: 18px; font-weight: 700; }
.panel__title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.panel__title .icon { color: var(--muted); }

.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: color-mix(in srgb, var(--brand) 22%, #fff); white-space: nowrap; }
.tag--muted { background: #EFECE6; color: var(--muted); }
.tag--wa { background: #E3F7EA; color: var(--wa-deep); }

/* Dashboard */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 599px) { .kpi:not(.kpi--dark) { padding: 14px 12px; } .kpi:not(.kpi--dark) span { font-size: 11.5px; align-items: flex-start; } .kpi:not(.kpi--dark) strong { font-size: 24px; } }
@media (min-width: 900px) { .kpis { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.kpi { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.kpi span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi strong { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.kpi small { font-size: 12px; color: var(--muted); }
.kpi--dark { grid-column: 1 / -1; background: var(--ink); color: #fff; border-color: var(--ink); position: relative; overflow: hidden; }
@media (min-width: 900px) { .kpi--dark { grid-column: auto; } }
.kpi--dark::after { content: ""; position: absolute; right: -10px; bottom: -10px; width: 120px; height: 18px; transform: rotate(-30deg); background: repeating-linear-gradient(-45deg, var(--brand-on-dark) 0 10px, transparent 10px 20px); opacity: .9; }
.kpi--dark span, .kpi--dark small { color: rgba(255, 255, 255, .6); }
.kpi--dark strong { color: var(--brand-on-dark); font-size: 44px; }

.share-hero {
    display: grid; gap: 16px; align-items: center; margin-bottom: 16px;
    padding: 20px; border-radius: var(--radius);
    background: var(--brand); color: var(--brand-ink); position: relative; overflow: hidden;
}
@media (min-width: 720px) { .share-hero { grid-template-columns: 1fr auto; padding: 24px 28px; } }
.share-hero h2 { font-size: 22px; font-weight: 800; }
.share-hero p { margin: 6px 0 10px; opacity: .8; font-size: 14px; }
.share-hero__url { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, .1); font-size: 13px; }
.share-hero__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.share-hero .btn--brand { background: var(--brand-ink); color: var(--brand); } /* always contrasts with the brand panel */

.cols { display: grid; gap: 16px; }
@media (min-width: 900px) { .cols { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row__thumb { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; background: #F1EEE7; flex-shrink: 0; }
.row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.row__rank { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--ink); color: var(--brand-on-dark); font-family: var(--display); font-weight: 800; flex-shrink: 0; }
.row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row__main strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__main small { color: var(--muted); font-size: 12.5px; }
.empty--sm { padding: 24px; border: 0; }

/* Product list */
.filters { display: flex; gap: 8px; margin-bottom: 12px; }
.filters__search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 44px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.filters__search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; background: transparent; }
.filters select, .field select { height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; }
.filters select { width: 40%; max-width: 220px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; scrollbar-width: none; }
.tabs a { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.tabs a.is-active { background: var(--ink); color: #fff; }

.plist { display: grid; gap: 10px; }
.pitem {
    display: grid; grid-template-columns: 76px 1fr; gap: 12px 14px;
    padding: 12px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
    transition: opacity .2s, background .2s;
}
.pitem.is-hidden { background: #FAF9F6; }
.pitem.is-hidden .pitem__thumb, .pitem.is-hidden .pitem__main { opacity: .5; }
.pitem__thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: #F1EEE7; display: grid; place-items: center; color: #C9C3B6; }
.pitem__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pitem__main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pitem__name { font-weight: 700; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pitem__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.pitem__meta .is-struck { text-decoration: line-through; opacity: .7; }
.pitem__stats { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.pitem__stats span { display: inline-flex; align-items: center; gap: 4px; }
.pitem__toggles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 12px; padding: 10px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.pitem__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.pitem__actions .btn { flex: 1; }
.pitem__actions form { margin: 0; }
@media (min-width: 1100px) {
    .pitem { grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; }
    .pitem__thumb { width: 64px; height: 64px; }
    .pitem__toggles { grid-column: auto; grid-template-columns: repeat(4, auto); border: 0; padding: 0; gap: 14px; }
    .pitem__actions { grid-column: auto; }
    .pitem__actions .btn { flex: none; }
    .switch__label { font-size: 12.5px; }
}

/* Switch */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__ui { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #D8D3C9; flex-shrink: 0; transition: background .2s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + .switch__ui { background: var(--wa); }
.switch input:checked + .switch__ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--ink); outline-offset: 2px; }
.switch input:disabled + .switch__ui { opacity: .5; }
.switch__label { font-size: 13px; font-weight: 600; }
.switch--row { display: flex; padding: 12px 0; border-top: 1px solid var(--line); }
.switch--row:first-child { border-top: 0; padding-top: 0; }
.switch--row .switch__label { display: flex; flex-direction: column; }
.switch--row small { font-weight: 400; color: var(--muted); font-size: 12.5px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; flex: 1; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.field > span em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
    width: 100%; max-width: none; font: inherit; font-size: 15px; color: var(--ink);
    padding: 0 14px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #FCFBF9;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 30%, transparent); }
.field-row { display: flex; flex-wrap: wrap; gap: 0 12px; }
.field-row > .field { flex: 1 1 200px; }
.field--short { flex: 0 0 120px !important; }
.field--prefix { flex-direction: row; align-items: center; gap: 0; position: relative; }
.field--prefix .icon { position: absolute; left: 14px; color: var(--muted); }
.field--prefix input { padding-left: 42px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 0; }
.hint code, .field code { background: #EFECE6; padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }

/* Product form */
.pform { display: grid; gap: 0 24px; }
@media (min-width: 1000px) {
    .pform { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
    .pform__side { position: sticky; top: 24px; }
    .savebar:not(.savebar--always) { display: none; }
}
.pform__side { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 999px) { .pform__side { display: none; } }
.preview-card { padding: 16px; border-radius: var(--radius); background: repeating-linear-gradient(45deg, #ECE8E0 0 1px, transparent 1px 12px), #F3F1EC; border: 1px solid var(--line); }
.preview-card .pcard { max-width: 240px; margin: 0 auto; transition: opacity .2s; }
.preview-card .pcard:hover { transform: none; }
.preview-card__note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }

.drop {
    position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; max-height: 360px; width: 100%;
    border-radius: 16px; border: 2px dashed #D3CDC1; background: #FAF8F4; overflow: hidden; cursor: pointer;
    transition: border-color .15s, background .15s;
}
.drop:hover { border-color: var(--ink); background: #fff; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.drop__hint { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--muted); padding: 16px; pointer-events: none; }
.drop__hint strong { color: var(--ink); }
.drop__hint small { font-size: 12.5px; }
.drop__change { position: absolute; bottom: 12px; right: 12px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; display: none; pointer-events: none; }
.drop.has-image { border-style: solid; border-color: var(--line); }
.drop.has-image .drop__hint { display: none; }
.drop.has-image .drop__change { display: block; }

.gallery-edit { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.gallery-edit:empty { display: none; }
.gallery-edit__item, .gallery-edit__add { position: relative; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.gallery-edit__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-edit__item input { position: absolute; opacity: 0; }
.gallery-edit__x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 22, 26, .75); color: #fff; cursor: pointer; }
.gallery-edit__item:has(input:checked) img { opacity: .3; filter: grayscale(1); }
.gallery-edit__item:has(input:checked) .gallery-edit__x { background: var(--danger); }
.gallery-edit__add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 2px dashed #D3CDC1; color: var(--muted); cursor: pointer; font-size: 11px; }
.gallery-edit__add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.gallery-edit--new .gallery-edit__item { outline: 2px solid var(--wa); outline-offset: -2px; }

.toggles { display: grid; }

.savebar {
    position: sticky; bottom: 72px; z-index: 20; margin: 0 -16px; padding: 12px 16px;
    background: linear-gradient(transparent, #F3F1EC 30%);
}
@media (min-width: 960px) { .savebar { bottom: 0; margin: 0; padding: 16px 0; } }
.savebar--always { display: flex; justify-content: flex-end; }
@media (max-width: 959px) { .savebar--always .btn { width: 100%; } }

/* Settings */
.settings { max-width: 760px; }
.logo-field { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.logo-field__box { position: relative; width: 84px; height: 84px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: #FAF8F4; border: 2px dashed #D3CDC1; cursor: pointer; flex-shrink: 0; }
.logo-field__box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.logo-field__box img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.logo-field__box .brand__mark { width: 60px; height: 60px; font-size: 30px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch { position: relative; cursor: pointer; }
.swatch input[type="radio"] { position: absolute; opacity: 0; }
.swatch span { display: block; width: 36px; height: 36px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); transition: transform .15s; }
.swatch input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.swatch:hover span { transform: scale(1.08); }
.swatch--custom input { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); cursor: pointer; }
.swatch--custom input::-webkit-color-swatch-wrapper { padding: 6px; }
.swatch--custom input::-webkit-color-swatch { border: 2px solid #fff; border-radius: 50%; }

/* Categories */
.cat-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 10px; }
.cat-row .btn { margin-bottom: 14px; }
.field--icon { flex: 0 0 auto; }

/* Category icon picker */
.ipick { position: relative; }
.ipick__btn { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 10px 0 6px; border-radius: 12px; border: 1px solid var(--line); background: #FCFBF9; cursor: pointer; list-style: none; }
.ipick__btn::-webkit-details-marker { display: none; }
.ipick__btn:hover, .ipick[open] .ipick__btn { border-color: var(--ink); background: #fff; }
.ipick__current { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: color-mix(in srgb, var(--brand) 20%, #fff); color: var(--ink); }
.ipick__chev { color: var(--muted); transform: rotate(90deg); transition: transform .15s; }
.ipick[open] .ipick__chev { transform: rotate(-90deg); }
.ipick__panel {
    position: absolute; z-index: 40; top: calc(100% + 6px); left: 0;
    width: min(440px, calc(100vw - 48px)); max-height: 360px; overflow-y: auto;
    padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.ipick__group { display: block; margin: 8px 4px 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ipick__group:first-child { margin-top: 0; }
.ipick__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 4px; }
.ipick__opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 10px; cursor: pointer; text-align: center; }
.ipick__opt input { position: absolute; opacity: 0; }
.ipick__opt small { font-size: 10.5px; line-height: 1.2; color: var(--muted); }
.ipick__glyph { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #F5F3EE; color: var(--ink-3); transition: background .15s, color .15s; }
.ipick__opt:hover .ipick__glyph { background: #ECE8E0; color: var(--ink); }
.ipick__opt:has(input:checked) .ipick__glyph { background: var(--ink); color: var(--brand-on-dark); }
.ipick__opt:has(input:checked) small { color: var(--ink); font-weight: 600; }
.ipick__opt:has(input:focus-visible) { outline: 2px solid var(--ink); }
.field--order { flex: 0 0 84px; }
.cat-row--edit { align-items: center; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: nowrap; }
.cat-row--edit:first-child { border-top: 0; }
.cat-row--edit .field { margin: 0; }
@media (max-width: 600px) {
    .cat-row--edit { flex-wrap: wrap; gap: 8px; }
    .cat-row--edit .field:nth-child(2) { flex: 1 1 calc(100% - 82px); }
    .cat-row--edit .field--order { flex: 0 0 72px; }
}
.cat-row--edit .tag { flex-shrink: 0; }

/* Login */
body.login { display: grid; min-height: 100vh; background: var(--paper); }
@media (min-width: 900px) { body.login { grid-template-columns: 1.1fr 1fr; } }
.login__art {
    position: relative; display: none; overflow: hidden; color: #fff;
    background:
        radial-gradient(500px 300px at 80% 10%, color-mix(in srgb, var(--brand) 40%, transparent), transparent 70%),
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 28px 28px,
        var(--ink);
}
@media (min-width: 900px) { .login__art { display: flex; align-items: flex-end; padding: 56px; } }
.login__pitch h1 { font-size: 64px; font-weight: 800; letter-spacing: -.045em; margin: 14px 0 12px; line-height: .95; }
.login__pitch p { max-width: 420px; color: rgba(255, 255, 255, .7); font-size: 17px; margin: 0; }
.tape--vertical { position: absolute; top: -40px; right: 80px; width: 64px; height: 140%; padding: 0; transform: rotate(14deg); background: repeating-linear-gradient(-45deg, var(--brand) 0 22px, var(--ink) 22px 44px); }
.tape--vertical::before, .tape--vertical::after { display: none; }
.login__panel { display: grid; place-items: center; padding: 32px 20px; }
.login__form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 6px; }
.login__form h2 { font-size: 30px; font-weight: 800; margin-top: 14px; }
.login__form > p { margin: 0 0 18px; }
.login__form .check { margin: 2px 0 16px; }
.login__form .link { align-self: center; margin-top: 14px; }
.login__form .brand { margin-bottom: 4px; }
.login__help { margin-top: 16px; text-align: center; }
.login .brand__mark, .platform { --brand: #F5A524; --brand-ink: #14161A; }
body.login { --brand: #F5A524; --brand-ink: #14161A; }

/* ==========================================================================
   Multi-shop additions
   ========================================================================== */
.mb { margin-bottom: 12px !important; }
.center { text-align: center; }
.subhead { font-size: 14px; font-weight: 700; margin: 20px 0 10px; font-family: var(--body); letter-spacing: 0; }

/* Platform admin acting inside a shop */
.acting {
    position: sticky; top: 0; z-index: 60;
    display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    padding: 8px 16px; background: var(--brand); color: var(--brand-ink); font-size: 13px;
}
.acting span { display: inline-flex; align-items: center; gap: 8px; }
.acting form { margin: 0; }
.acting button { display: inline-flex; align-items: center; gap: 4px; border: 0; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; }
@media (min-width: 960px) { .is-acting .acting { margin-left: 256px; } }

/* Sidebar identity & me */
.side__brand { align-items: center; }
.side__shop { display: flex; flex-direction: column; min-width: 0; }
.side__shop small { font-size: 11.5px; color: rgba(255, 255, 255, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side__brand .logo:not(.logo--clear) { box-shadow: none; }
.side__brand .logo--clear { --max: 120px; }
.side__me { display: flex !important; align-items: center; gap: 10px !important; }
.side__me span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.side__me strong { color: #fff; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side__me small { font-size: 11.5px; color: rgba(255, 255, 255, .5); }
.side__me.is-active { background: rgba(255, 255, 255, .1); }
.mtop .logo { --h: 36px; --pad: 4px; --r: 10px; --max: 120px; box-shadow: none; }
.mtop__me { display: block; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .2); }

.avatar { display: block; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar--initials { display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-family: var(--display); font-weight: 800; }

/* Setup checklist */
.setup__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.setup__head h2 { font-size: 19px; }
.setup__head p { margin: 4px 0 0; }
.setup__ring {
    display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0;
    background: radial-gradient(closest-side, #fff 76%, transparent 78% 100%), conic-gradient(var(--wa) calc(var(--p) * 1%), #ECE8E0 0);
    font-family: var(--display); font-weight: 800; font-size: 15px;
}
.setup__list { display: grid; gap: 8px; }
@media (min-width: 720px) { .setup__list { grid-template-columns: repeat(2, 1fr); } }
.setup__item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #FAF9F6; border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.setup__item .icon:last-child { margin-left: auto; color: var(--muted); }
.setup__item:hover { border-color: var(--ink); }
.setup__item.is-done { color: var(--muted); text-decoration: line-through; background: transparent; }
.setup__check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #D3CDC1; flex-shrink: 0; }
.is-done .setup__check { background: var(--wa); border-color: var(--wa); color: #fff; }

/* Settings tabs */
.stabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; scrollbar-width: none; }
.stabs::-webkit-scrollbar { display: none; }
.stabs__btn { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 10px 14px; border: 0; border-radius: 10px; background: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.stabs__btn:hover { color: var(--ink); }
.stabs__btn.is-active { background: var(--ink); color: #fff; }

.shopform { display: grid; gap: 0 24px; }
@media (min-width: 1100px) { .shopform { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } .shopform__side { position: sticky; top: 24px; } }
.shopform__side { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
@media (max-width: 1099px) { .shopform__side { order: -1; max-width: 340px; width: 100%; margin: 0 auto 16px; } }

/* Visual choice cards (hero style / fonts) */
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .choice-grid { grid-template-columns: repeat(4, 1fr); } .choice-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 14px; border: 2px solid var(--line); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.choice input { position: absolute; opacity: 0; }
.choice:hover { border-color: #C9C3B6; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 40%, transparent); }
.choice:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.choice__label { display: flex; flex-direction: column; padding: 0 4px 4px; }
.choice__label strong { font-size: 13.5px; }
.choice__label small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.choice__art { position: relative; display: block; height: 72px; border-radius: 10px; overflow: hidden; background-size: cover; background-position: center; }
.choice__art i { position: absolute; left: 10px; height: 7px; border-radius: 4px; background: currentColor; }
.choice__art i:first-child { top: 20px; width: 55%; height: 11px; }
.choice__art i:last-child { top: 38px; width: 35%; opacity: .6; }
.choice__art--midnight { color: #fff; background: radial-gradient(80px 50px at 85% 0%, color-mix(in srgb, var(--brand) 60%, transparent), transparent), #14161A; }
.choice__art--light { color: #14161A; background: radial-gradient(80px 50px at 85% 0%, color-mix(in srgb, var(--brand) 45%, transparent), transparent), #F7F5F0; border: 1px solid var(--line); }
.choice__art--brand { color: var(--brand-ink); background: var(--brand); }
.choice__art--photo { color: #fff; background-color: #4A4F57; background-image: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.55)), repeating-linear-gradient(45deg, #5A6069 0 12px, #4A4F57 12px 24px); }
.choice--font { align-items: center; text-align: center; }
.choice__sample { display: block; font-size: 40px; font-weight: 800; line-height: 1.3; padding-top: 6px; }

.tone-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tone { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 2px solid var(--line); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.tone input { position: absolute; opacity: 0; }
.tone:has(input:checked) { border-color: var(--ink); }
.tone__chip { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }

.cover-field { margin-top: 14px; padding: 12px; border-radius: 14px; background: #FAF9F6; border: 1px dashed var(--line); transition: border-color .2s, background .2s; }
.cover-field.is-wanted { border-color: var(--ink); border-style: solid; background: #fff; }
.cover-field__box { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 5; min-height: 140px; border: 2px dashed #D3CDC1; border-radius: 10px; overflow: hidden; background: #EFECE6; cursor: pointer; margin-bottom: 8px; }
.cover-field__box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.cover-field__box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-field__hint { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; text-align: center; padding: 12px; }
.cover-field__hint strong { color: var(--ink); font-size: 15px; }
.cover-field__change { position: absolute; right: 10px; bottom: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; pointer-events: none; }
.cover-field__status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; }
.cover-field__status .icon { color: var(--wa-deep); }
.cover-field__box:hover { outline: 2px solid var(--ink); outline-offset: 2px; }
.cover-field .check { margin-left: 8px; font-size: 13px; }

/* Mini storefront preview */
.mini { border-radius: 20px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); font-family: var(--body); }
.mini .hero { margin: 0; padding: 12px 14px 16px; }
.mini .hero { position: relative; overflow: hidden; }
.mini.hero-photo .hero { background: #3A3E46; isolation: isolate; }
.mini.hero-photo .hero::before { /* same layers as the storefront, blur scaled to the small preview */
    content: ""; position: absolute; z-index: -2; inset: calc(var(--hero-blur, 0px) * -1);
    background: var(--hero-photo, none) center / cover no-repeat; filter: blur(calc(var(--hero-blur, 0px) / 2.5));
}
.mini.hero-photo .hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--hero-tint, #0C0D10) min(100%, calc(var(--hero-tint-alpha, 60%) + 10%)), transparent),
        color-mix(in srgb, var(--hero-tint, #0C0D10) var(--hero-tint-alpha, 60%), transparent) 55%,
        color-mix(in srgb, var(--hero-tint, #0C0D10) min(100%, calc(var(--hero-tint-alpha, 60%) + 20%)), transparent));
}
.mini.hero-photo .mini__title { text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }

/* Background picture effects */
.logo-up .fx { margin-top: 12px; }
.fx { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 720px) { .fx { grid-template-columns: 1fr 1fr; } .fx__wide { grid-column: 1 / -1; } }
.fx__label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: #EFECE6; gap: 2px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 7px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); }
.range { display: flex; align-items: center; gap: 12px; }
.range input { flex: 1; accent-color: var(--ink); }
.range output { min-width: 44px; text-align: right; font-weight: 700; font-size: 13px; }
.cover-field__box img.is-fx { filter: blur(calc(var(--hero-blur, 0px) / 2)); }
.cover-field__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--hero-tint, #0C0D10) min(100%, calc(var(--hero-tint-alpha, 60%) + 18%)), transparent), color-mix(in srgb, var(--hero-tint, #0C0D10) max(0%, calc(var(--hero-tint-alpha, 60%) - 30%)), transparent)); }
.cover-field__sample { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #fff; font-family: var(--display); font-weight: 800; font-size: clamp(20px, 4vw, 32px); letter-spacing: -.03em; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); pointer-events: none; }
.mini__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mini__logo.brand__mark { width: 26px; height: 26px; font-size: 13px; border-radius: 8px; }
.mini__logo.logo { --h: 28px; --pad: 3px; --r: 8px; --max: 110px; box-shadow: none; }

/* Logo upload with dark + light previews */
.logo-up__drop { position: relative; display: block; border-radius: 14px; border: 2px dashed #D3CDC1; background: #FAF8F4; cursor: pointer; overflow: hidden; transition: border-color .15s; }
.logo-up__drop:hover { border-color: var(--ink); }
.logo-up__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.logo-up__empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 32px 16px; color: var(--muted); font-size: 13px; text-align: center; }
.logo-up__empty strong { color: var(--ink); font-size: 15px; }
.has-logo .logo-up__drop { border-style: solid; border-color: var(--line); }
.logo-up__stage { display: grid; grid-template-columns: 1.4fr 1fr; min-height: 170px; }
@media (max-width: 600px) { .logo-up__stage { grid-template-columns: 1fr; } }
.logo-up__bg { display: grid; place-items: center; padding: 24px 16px; }
.logo-up__bg--dark { background: radial-gradient(220px 120px at 85% 0%, color-mix(in srgb, var(--brand) 40%, transparent), transparent), #14161A; }
.logo-up__bg--dark .logo:not(.logo--clear) { box-shadow: 0 0 0 6px rgba(255, 255, 255, .1), 0 18px 40px -12px rgba(0, 0, 0, .6); }
.logo-up__bg--light { background: #F7F5F0; }
.logo-up__frame { --max: 100%; }
[data-style="clear"] .logo-up__frame { background: transparent; box-shadow: none !important; padding: 0; min-width: 0; }
.mini__wa { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--wa); color: #fff; }
.mini__title { display: block; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.03em; line-height: 1; }
.mini__tag { display: block; margin-top: 6px; font-size: 11px; color: var(--hero-muted); }
.mini__search { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 4px 4px 4px 10px; border-radius: 999px; background: #fff; color: var(--muted); font-size: 10px; }
.mini__search i { font-style: normal; padding: 3px 8px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-weight: 700; }
.mini.hero-brand .mini__search i { background: var(--ink); color: #fff; }
.mini__tape { height: 12px; background: repeating-linear-gradient(-45deg, var(--ink) 0 6px, var(--brand) 6px 12px); }
.mini__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
.mini__card { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.mini__img { aspect-ratio: 1; border-radius: 6px; background: linear-gradient(135deg, #EFECE6, #E2DDD3); }
.mini__card b { height: 6px; width: 70%; border-radius: 3px; background: #D9D4CA; }
.mini__card em { font-style: normal; font-family: var(--display); font-weight: 800; font-size: 12px; }
.mini__card em small { font-size: 8px; color: var(--muted); }
.mini__btn { padding: 3px; border-radius: 999px; background: var(--wa); color: #fff; font-size: 9px; font-weight: 700; text-align: center; }

/* Team */
@media (min-width: 900px) { .cols--team { grid-template-columns: 1.4fr 1fr; } }
.member { border-top: 1px solid var(--line); }
.member:first-of-type { border-top: 0; }
.member summary { display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; list-style: none; }
.member summary::-webkit-details-marker { display: none; }
.member__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.member__main strong { display: flex; align-items: center; gap: 6px; font-size: 14.5px; }
.member__main em { font-style: normal; }
.member__main small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member__chev { color: var(--muted); transition: transform .2s; }
.member[open] .member__chev { transform: rotate(90deg); }
.member.is-off summary { opacity: .6; }
.member__body { padding: 0 0 14px 54px; }
@media (max-width: 600px) { .member__body { padding-left: 0; } .member summary .tag { display: none; } }
.member__actions { display: flex; gap: 8px; margin-top: 12px; }
.btn--danger-text { color: var(--danger); }
.btn--danger { background: var(--danger); color: #fff; }
.tag--danger { background: #FDECEC; color: #9B2C2C; }
.tag--live { background: #E3F7EA; color: var(--wa-deep); }
.panel--danger { border-color: #F5C2C2; }

/* Profile */
.profile-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.profile-head__name { font-family: var(--display); font-size: 22px; }
.profile-head p { margin: 2px 0 0; }
.avatar-field { position: relative; cursor: pointer; flex-shrink: 0; }
.avatar-field input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.avatar-field__edit { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; border: 3px solid #fff; }

/* Platform: shop cards */
.shop-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.shop-card { display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: box-shadow .2s; }
.shop-card:hover { box-shadow: var(--shadow); }
.shop-card.is-suspended { opacity: .7; }
.shop-card__band { position: relative; height: 72px; background-size: cover; background-position: center; display: flex; justify-content: flex-end; align-items: flex-start; padding: 10px; }
.shop-card__band--midnight { background: radial-gradient(160px 70px at 85% 0%, color-mix(in srgb, var(--c) 60%, transparent), transparent), #14161A; }
.shop-card__band--light { background: radial-gradient(160px 70px at 85% 0%, color-mix(in srgb, var(--c) 45%, transparent), transparent), #F7F5F0; border-bottom: 1px solid var(--line); }
.shop-card__band--brand { background: repeating-linear-gradient(-45deg, rgba(0,0,0,.07) 0 10px, transparent 10px 20px), var(--c); }
.shop-card__band--photo { background-color: #3A3E46; }
.shop-card__body { padding: 0 18px 14px; flex: 1; }
.shop-card__logo { margin-top: -28px; position: relative; box-shadow: 0 0 0 3px #fff, var(--shadow) !important; }
.shop-card__logo.logo--clear { background: #fff; padding: 7px; }
.shop-card__logo.brand__mark { background: var(--c); color: var(--ci); }
.shop-card h3 { font-size: 18px; margin-top: 10px; }
.shop-card__url { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); }
.shop-card__url:hover { color: var(--ink); }
.shop-card__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 12px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.shop-card__stats strong { color: var(--ink); font-weight: 700; }
.shop-card__actions { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: #FAF9F6; }
.shop-card__actions form { margin: 0; }
.shop-card__actions form:first-child { flex: 1; }
.shop-card__actions form:first-child .btn { width: 100%; }

.slug-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #FCFBF9; overflow: hidden; }
.slug-input em { font-style: normal; padding: 0 4px 0 14px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.field .slug-input input { border: 0; padding-left: 0; background: transparent; box-shadow: none; }
.row__main a:hover strong { text-decoration: underline; }

/* Brand-coloured controls placed on the dark sidebar use the variant that stays visible there */
.side .btn--brand { background: var(--brand-on-dark); color: var(--brand-on-dark-ink); }
.side .avatar--initials, .mtop .avatar--initials { background: var(--brand-on-dark); color: var(--brand-on-dark-ink); }
