:root {
    --market-bg: #f4f6fa;
    --market-panel: #ffffff;
    --market-ink: #1b2638;
    --market-muted: #758197;
    --market-line: #e5e9f0;
    --market-accent: #df428d;
    --market-accent-soft: #fff0f6;
    --market-green: #13855e;
    --lime: #df428d;
    --ink: #1b2638;
    --muted: #758197;
    --panel: #ffffff;
    --line: #e5e9f0;
    --sidebar: 250px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--market-bg) !important;
    color: var(--market-ink) !important;
    font-family: "Segoe UI Variable", "Trebuchet MS", sans-serif;
}

body:before, body:after { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }

.app-shell, .design-stage { background: var(--market-bg); }
.design-stage { min-width: 0; }

.sidebar {
    z-index: 40;
    padding: 12px 13px 18px;
    gap: 0;
    background: #fff;
    border-right: 1px solid var(--market-line);
    box-shadow: 8px 0 28px rgba(24, 39, 62, .035);
}

.design-brand--side {
    height: 92px;
    min-height: 92px;
    justify-content: flex-start;
    padding: 8px 11px 17px;
}

.design-brand img { width: 70px; height: 70px; max-width: 100%; object-fit: contain; }
.sidebar .side-nav { display: grid; gap: 5px; margin: 2px 0 0; }
.sidebar .side-item {
    width: 100%;
    min-height: 43px;
    height: 43px;
    justify-content: flex-start;
    gap: 11px;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: #68758b;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.sidebar .side-item:hover { background: #f7f8fb; color: var(--market-ink); }
.sidebar .side-item.active { border-color: #f5dce8; background: var(--market-accent-soft); color: #b92d70; }
.sidebar .side-item small { margin-left: auto; color: #98a3b5; font-size: 11px; }
.group-emoji { width: 22px; height: 22px; object-fit: contain; }

.side-pages {
    display: grid;
    gap: 4px;
    margin: 17px 0 0;
    padding-top: 13px;
    border-top: 1px solid var(--market-line);
}

.sidebar .support-card {
    min-height: 132px;
    margin: auto 0 0;
    padding: 16px 14px;
    border: 1px solid #e5eaf2;
    border-radius: 15px;
    background: linear-gradient(150deg, #f7f9fd, #fff 72%);
    box-shadow: none;
    color: var(--market-ink);
}

.sidebar .support-card strong { color: #253148; font-size: 13px; }
.sidebar .support-card small { color: #7a879c; font-size: 10px; }
.sidebar .support-card em { border: 1px solid #e4e8ef; background: #fff; color: #526078; font-size: 11px; }
.sidebar .support-icon { background: #e8f4ff; color: #3275a8; box-shadow: none; }
.sidebar .support-card:before, .sidebar .support-card:after { color: #e6a2c0; opacity: .5; }

.sidebar-backdrop {
    z-index: 39;
    border: 0;
    background: rgba(22, 31, 46, .37);
    backdrop-filter: blur(4px);
}

.topbar {
    height: 72px;
    min-height: 72px;
    padding: 0 28px;
    border-bottom: 1px solid var(--market-line);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 5px 22px rgba(24, 39, 62, .035);
    color: var(--market-ink);
    backdrop-filter: blur(16px);
}

.topbar:after { display: none; }
.header-identity { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.header-identity > img { display: block; width: 35px; height: 35px; object-fit: contain; }
.header-identity > div { display: grid; gap: 3px; }
.header-wordmark { color: #28344a; font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.header-caption { color: #8994a7; font-size: 11px; }
.top-actions { margin-left: auto; gap: 9px; }
.topbar .outline, .outline {
    min-height: 41px;
    border: 1px solid #dfe4ed;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(27, 38, 56, .035);
    color: #39465c;
    font-size: 12px;
    font-weight: 650;
}

.topbar .outline:hover, .outline:hover { border-color: #e4a2bf; background: #fff8fb; color: #a82b67; }
.balance-btn { min-width: 125px; color: #243149; }
.balance-btn .balance-art { color: #d9428d; }
.balance-copy small { color: #8a95a7; }
.balance-value { color: #243149; }
.balance-plus { color: var(--market-accent); }
.mobile-menu { color: #41506a; }

.purchase-ribbon {
    min-height: 48px;
    border-block: 1px solid #edf0f5;
    background: #fff;
}

.purchase-ribbon-label { color: #6c7890; font-size: 10px; font-weight: 700; }
.purchase-ribbon-item { border: 1px solid #e8ebf1; border-radius: 9px; background: #fff; color: #56637a; }
.purchase-ribbon-item i { color: #28a477; }
.purchase-ribbon-item small { color: #26334a; }

.samurai-hero {
    position: relative;
    height: 300px;
    min-height: 0;
    margin: 17px 22px 0;
    overflow: hidden;
    border: 1px solid rgba(30, 46, 72, .08);
    border-radius: 22px;
    background: #14243d;
    box-shadow: 0 14px 36px rgba(30, 46, 72, .11);
}

.samurai-hero-bg {
    inset: -12px -3% -12px 16%;
    background-position: 68% 53%;
    animation-duration: 20s;
}

.samurai-hero-vignette {
    background:
        linear-gradient(90deg, #14243d 0%, #14243df5 29%, #14243dbb 52%, #14243d20 100%),
        linear-gradient(0deg, rgba(8, 15, 29, .46), transparent 50%);
}

.samurai-hero-streak { height: 2px; opacity: .28; }

.market-hero-copy {
    position: absolute;
    z-index: 4;
    inset: 0 auto 0 0;
    display: flex;
    width: min(650px, 66%);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 25px clamp(25px, 4vw, 58px);
    color: #fff;
}

.market-hero-kicker { color: #f7a9ca; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.market-hero-copy h1 { max-width: 640px; margin: 10px 0 9px; color: #fff; font-size: clamp(27px, 3vw, 39px); font-weight: 760; line-height: 1.12; letter-spacing: -.045em; }
.market-hero-copy h1 span { color: #ff9dc2; }
.market-hero-description { max-width: 485px; margin: 0; color: #d2d9e5; font-size: 12px; line-height: 1.6; }
.market-hero-action {
    min-height: 39px;
    margin-top: 15px;
    padding: 9px 15px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(4, 12, 25, .2);
    color: #26324a;
    cursor: pointer;
    font-size: 11px;
    font-weight: 750;
    transition: transform .16s ease, background .16s ease;
}

.market-hero-action:hover { transform: translateY(-1px); background: #fff3f8; }
.market-hero-proof { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.market-hero-proof span { color: #c4d0df; font-size: 9px; }
.market-hero-proof span + span:before { content: "·"; margin-right: 7px; color: #f18bb5; }

.market-hero-card {
    position: absolute;
    z-index: 4;
    right: clamp(20px, 5vw, 66px);
    bottom: 22px;
    display: grid;
    width: 218px;
    gap: 6px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .54);
    border-radius: 16px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 15px 35px rgba(7, 15, 29, .23);
    color: #26334a;
    backdrop-filter: blur(12px);
}

.market-hero-mark { position: absolute; top: 13px; right: 14px; color: #d9408a; font-size: 20px; }
.market-hero-card small { color: #a3366a; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.market-hero-card strong { font-size: 16px; letter-spacing: -.025em; }
.market-hero-card > span:not(.market-hero-mark) { color: #718097; font-size: 9px; line-height: 1.4; }
.market-hero-card b { margin-top: 3px; color: #16845f; font-size: 9px; }

#catalog {
    max-width: 1600px;
    margin: 0 auto;
    padding: 27px 28px 60px;
    scroll-margin-top: 82px;
}

#catalog > .section-title { align-items: center; margin-bottom: 13px; }
#catalog > .section-title h2 { margin: 0; color: #253149; font-size: 20px; font-weight: 750; letter-spacing: -.03em; }
#catalog > .section-title h2 span { margin-left: 7px; padding: 4px 8px; border: 1px solid #e7eaf0; border-radius: 999px; background: #fff; color: #8290a5; font-size: 10px; }
#catalog > .section-title .muted { color: #8591a4; font-size: 11px; }

.design-toolbar { display: flex; max-width: none; align-items: stretch; gap: 10px; }
.search {
    min-width: 0;
    flex: 1;
    border: 1px solid #dfe4ed;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(34, 49, 73, .04);
}

.search:focus-within { border-color: #df8db3; box-shadow: 0 0 0 3px rgba(223, 66, 141, .08); }
.search input { width: 100%; height: 48px; padding: 13px 15px; color: #29364d; font-size: 12px; }
.search input::placeholder { color: #929db0; }
.toolbar select, .sort-select {
    min-width: 165px;
    width: 190px;
    height: 48px;
    padding: 0 34px 0 13px;
    border: 1px solid #dfe4ed;
    border-radius: 13px;
    outline: 0;
    background: #fff;
    color: #4e5b71;
    font-size: 11px;
}

.toolbar select:focus, .sort-select:focus { border-color: #df8db3; box-shadow: 0 0 0 3px rgba(223, 66, 141, .08); }
.filter-row { align-items: center; gap: 8px; margin: 12px 0 17px; }
.categories { gap: 7px; }
.categories button {
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid #e3e7ee;
    border-radius: 999px;
    background: #fff;
    color: #66738a;
    font-size: 10px;
    font-weight: 650;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.categories button:hover { border-color: #e7a4c2; color: #ad2e6c; }
.categories button.active { border-color: #df428d; background: #df428d; box-shadow: 0 5px 12px rgba(223, 66, 141, .15); color: #fff; }
.stock-filter { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: #67748a; font-size: 10px; }
.stock-filter input { width: 15px; height: 15px; accent-color: var(--market-accent); }

#products.product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-top: 0;
}

#products .product-card {
    position: relative;
    isolation: isolate;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e4e8ef;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(30, 45, 70, .045);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

#products .product-card:hover { transform: translateY(-3px); border-color: #e3a3bf; box-shadow: 0 13px 28px rgba(30, 45, 70, .11); }
#products .product-card:before {
    position: absolute;
    z-index: 3;
    top: 10px;
    right: 10px;
    max-width: calc(100% - 20px);
    overflow: hidden;
    padding: 5px 8px;
    border: 1px solid rgba(226, 231, 239, .92);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #66738a;
    content: attr(data-category);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    backdrop-filter: blur(7px);
}

#products .design-media {
    display: block;
    width: 100%;
    aspect-ratio: 1.42;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid #eef0f4;
    background: #f0f3f8;
    color: #27334a;
}

#products .design-media > img { width: 100%; height: 100%; object-fit: contain; }
#products .design-media.brand-poster { background: linear-gradient(135deg, #f1f4f8, #e9edf4); }
#products .brand-poster .poster-logo { box-shadow: 0 7px 22px rgba(30, 45, 70, .12); }
#products .poster-name { color: #24334c; }
#products .poster-caption { color: #9f3e6e; }
#products .design-card-body { display: flex; min-height: 203px; flex-direction: column; padding: 12px 13px 11px; }
.product-seller { display: block; margin-bottom: 6px; color: #8591a3; font-size: 8px; font-weight: 750; letter-spacing: .07em; line-height: 1.3; text-transform: uppercase; }
#products .product-name { min-height: 40px; margin: 0 0 7px; color: #26344b; font-size: 12px; font-weight: 720; line-height: 1.45; -webkit-line-clamp: 2; }
#products .card-status { display: inline-flex; align-items: center; align-self: flex-start; min-height: 24px; margin: 0 0 6px; padding: 4px 8px; border: 1px solid #d5eee4; border-radius: 999px; background: #f0faf5; color: #16815b; font-size: 9px; line-height: 1.25; }
#products .card-status:before { color: #29a977; font-size: 7px; }
#products .card-status.unavailable { border-color: #e8ebf0; background: #f6f7f9; color: #8490a2; }
#products .card-status.unavailable:before { color: #98a2b2; }
#products .product-rating { min-height: 15px; margin: 0 0 8px; color: #77849a; font-size: 9px; }
#products .card-footer { min-height: 42px; margin-top: auto; padding-top: 8px; border-top: 1px solid #eef0f4; }
#products .card-footer .price { color: #202d43; font-size: 17px; font-weight: 790; letter-spacing: -.035em; }
#products .design-buy { display: inline-grid; width: 39px; min-width: 39px; height: 37px; min-height: 37px; padding: 0; place-items: center; border: 1px solid #df428d; border-radius: 11px; background: #df428d; color: #fff; transition: background .15s ease, transform .15s ease; }
#products .design-buy:hover { transform: translateY(-1px); border-color: #c63179; background: #c63179; color: #fff; }
#products .design-buy svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
#products .empty { grid-column: 1 / -1; border: 1px dashed #d8dee8; border-radius: 15px; background: #fff; color: #718097; }

.design-footer { max-width: none; padding: 22px 28px; border-top: 1px solid #e6eaf1; background: #fff; color: #78859a; font-size: 10px; }
.design-footer a { color: #5c6b83; }
.design-footer a:hover { color: #b92d70; }

.primary, .market-hero-action {
    border-color: var(--market-accent);
}

.primary {
    min-height: 41px;
    border: 1px solid #df428d;
    border-radius: 11px;
    background: #df428d;
    box-shadow: 0 5px 12px rgba(223, 66, 141, .14);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.primary:hover { transform: translateY(-1px); border-color: #c63179; background: #c63179; box-shadow: 0 8px 18px rgba(223, 66, 141, .18); }
.primary:active, .outline:active { transform: translateY(1px); }

input, textarea, select {
    border-color: #dfe4ec;
    border-radius: 10px;
    background: #fff;
    color: #26344b;
}

input::placeholder, textarea::placeholder { color: #9aa5b5; }
input:focus, textarea:focus, select:focus { border-color: #dc91b5; outline: 0; box-shadow: 0 0 0 3px rgba(223, 66, 141, .08); }
input:focus-visible, button:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #dc70a2; outline-offset: 2px; }

dialog, .product-modal, .crypto-payment-dialog {
    border: 1px solid #e0e5ed;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(22, 35, 54, .2);
    color: #26344b;
}

dialog::backdrop, .product-modal::backdrop { background: rgba(20, 31, 48, .48); backdrop-filter: blur(5px); }
dialog h2, .product-modal h2 { color: #233149; }
dialog p, .product-modal p { color: #748197; }
.close { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #e7eaf0; border-radius: 10px; background: #fff; color: #66738a; font-size: 22px; }
.close:hover { background: #fff3f8; color: #ab2d69; }
.detail-meta { border-color: #e8ebf0; }
.detail-meta span, .status { color: #14825b; }
.detail-description { color: #56637a; line-height: 1.65; }
.payment-options { display: grid; gap: 9px; }
.payment-options .payment-note, .payment-note { color: #7b879a; font-size: 10px; line-height: 1.5; }
.product-balance, .provider-option, .crypto-copy-row, .crypto-network-card { border-color: #e4e8ef; background: #f8f9fb; color: #2a3750; }
.provider-copy small, .crypto-network-card small { color: #7c899e; }
.crypto-payment-dialog { background: #fff; color: #26344b; }
.crypto-network-warning { border-color: #f0dfbd; background: #fff9eb; color: #775a25; }
.crypto-copy-row code { color: #30415b; }
.crypto-copy-row strong { color: #24334c; }
.crypto-tx-form label > span, .crypto-copy-row small { color: #718097; }
.crypto-claim-state { background: #f5f7fa; color: #45536a; }
.crypto-claim-state span { color: #6f7c90; }
.admin-crypto-claim { border-color: #e2e7ee; background: #fff; }
.admin-crypto-identity code { background: #f2f4f8; color: #34435c; }
.admin-crypto-facts > div { background: #f3f5f8; }
.admin-crypto-facts small, .admin-crypto-note { color: #77849a; }

#account-view, #requests-view, #support-view, #stores-view, #categories-view, #admin-view {
    color: #26344b;
}

.design-main > .workspace { max-width: 1580px; margin: 0 auto; padding: 30px 28px 62px; }
.workspace h1, .workspace h2, .workspace h3 { color: #26344b; }
.workspace .muted { color: #79869a; }
.workspace .empty { border: 1px dashed #d9dfe8; border-radius: 14px; background: #fff; color: #7c899d; }
.account-hero-v2, .account-summary { border: 1px solid #e4e8ef; border-radius: 18px; background: #fff; box-shadow: 0 6px 20px rgba(30, 45, 70, .045); color: #26344b; }
.account-hero-v2 .account-avatar { border: 1px solid #f0d7e3; background: #fff1f7; color: #c6397c; }
.account-identity h2, .account-wallet-copy > strong { color: #27354d; }
.account-meta, .account-meta > span, .account-email, .account-panel-head p { color: #768398; }
.account-online { color: #14835d !important; }
.account-wallet-v2, .account-command-center, .account-panel { border: 1px solid #e4e8ef; border-radius: 17px; background: #fff; box-shadow: 0 6px 20px rgba(30, 45, 70, .045); color: #26344b; }
.account-wallet-copy > span, .account-stats-v2 small, .account-action-copy > small, .account-utility { color: #748197; }
.account-stats-v2 article, .account-action-v2, .account-utility { border: 1px solid #e7eaf0; border-radius: 13px; background: #fafbfd; color: #34425a; }
.account-stats-v2 strong, .account-action-copy > strong, .account-panel-head h2 { color: #293750; }
.account-stat-icon, .account-action-icon { background: #fff0f6; color: #c9397e; }
.account-alert { border: 1px solid #f1d9e5; border-radius: 14px; background: #fff7fa; color: #704356; }
.account-alert span, .account-alert small { color: #855a6c; }
.purchase-panel .purchase-row, .history-row, .license-row { border-color: #e6eaf0; background: #fff; color: #2d3a52; }
.purchase-row h3, .history-row h3, .license-row h3 { color: #293750; }
.purchase-row small, .history-row small, .license-info { color: #768398; }
.license-panel { border-color: #eed9e4; background: #fff; }
.license-row { border-color: #e8ebf1; background: #fbfcfd; }
.license-product-mark { border-color: #f0d3e1; background: #fff1f7; color: #bf3678; }
.license-key-line code { color: #ba3475; }
.license-copy, .license-reset:not(:disabled) { border-color: #edc9da; background: #fff1f7; color: #a82c68; }
.license-info { color: #5d6b81; }
.referral-stats > div, .referral-share { border-color: #e5e9f0; background: #fafbfd; }
.referral-stats small { color: #7a879a; }
.referral-stats strong { color: #293750; }

#admin-view { max-width: 1600px; }
#admin-view > .eyebrow, #account-view > .eyebrow { color: #bb3978; }
#admin-view > .section-title h1, #account-view > .section-title h1 { color: #233149; }
.admin-shell-v4 { gap: 16px; }
.admin-navigation-v4 { border: 1px solid #e5e9f0; border-radius: 15px; background: #fff; box-shadow: 0 4px 14px rgba(30, 45, 70, .035); }
.admin-nav-v4 { color: #6e7a90; }
.admin-nav-v4:hover { background: #f7f8fb; color: #2e3b53; }
.admin-nav-v4.active { border-color: #f0d4e1; background: #fff2f7; color: #ad2e6a; }
.admin-nav-v4 > span { background: #f2f4f8; color: #627189; }
.admin-nav-v4.active > span { background: #f9dfeb; color: #b53071; }
.admin-content-v4, .admin-panel { border: 1px solid #e4e8ef; border-radius: 17px; background: #fff; box-shadow: 0 6px 20px rgba(30, 45, 70, .045); color: #34425a; }
.admin-content-v4 h2, .admin-panel h2, .admin-content-v4 h3, .admin-panel h3 { color: #293750; }
.admin-context-head { border: 1px solid #e7eaf0; border-radius: 15px; background: linear-gradient(110deg, #fff, #fafbfd); color: #2b3951; }
.admin-context-head p, .admin-context-head small, .admin-context-head span { color: #78859a; }
.admin-content-v4 .stats-grid article, .stats-grid article { border: 1px solid #e5e9f0; border-radius: 13px; background: #fafbfd; color: #3b4961; box-shadow: none; }
.admin-content-v4 .stats-grid small, .stats-grid small { color: #7a879a; }
.admin-content-v4 .stats-grid strong, .stats-grid strong { color: #26344b; }
.admin-content-v4 .admin-row, .admin-content-v4 .order-admin, .admin-content-v4 .financial-row, .admin-content-v4 .audit-row,
.admin-user-row, .admin-license-row, .admin-crypto-claim { border-color: #e5e9f0; background: #fff; color: #35435b; }
.admin-content-v4 .admin-row small, .admin-content-v4 .order-admin p, .admin-content-v4 .order-admin small,
.admin-content-v4 .financial-row span, .admin-content-v4 .financial-row small, .admin-content-v4 .audit-row small { color: #78859a; }
.admin-content-v4 .admin-row h3, .admin-content-v4 .order-admin h3 { color: #293750; }
.admin-product-card, .admin-user-row, .admin-license-row { border: 1px solid #e5e9f0; border-radius: 14px; background: #fff; }
.admin-content-v4 input, .admin-content-v4 textarea, .admin-content-v4 select, .license-control input, .license-control select { border-color: #dfe4ec; background: #fff; color: #2b3951; }
.admin-content-v4 .admin-tabs, .admin-tabs { border-color: #e6eaf0; background: #f5f7fa; }
.admin-content-v4 .admin-tabs button, .admin-tabs button { color: #66748a; }
.admin-content-v4 .admin-tabs button.active, .admin-tabs button.active { background: #fff0f6; color: #ad2e6a; box-shadow: none; }
.admin-content-v4 .license-issuer-v2 { border-color: #f0d5e2; background: linear-gradient(135deg, #fff8fb, #fff 70%); box-shadow: none; }
.license-issuer-heading h3, .license-issuer-preview strong { color: #2b3951; }
.license-issuer-heading p, .license-mode-note, .license-control, .license-control small { color: #768398; }
.license-control, .license-issuer-preview { border-color: #e7eaf0; background: #fff; }
.license-created-v2 { border-color: #bfe5d5; background: #f4fbf7; }
.license-created-v2 > strong { color: #283950; }
.license-created-v2 > p { color: #6b7d74; }
.license-result-kicker { color: #14835d; }
.admin-license-details > div, .admin-user-stats > div { border-color: #e7eaf0; background: #f8f9fb; }
.admin-license-details small, .admin-user-stats small { color: #7b879b; }
.admin-license-details span, .admin-user-stats strong { color: #34425a; }
.admin-content-v4 pre, .order-admin pre, .delivery-box pre { border-color: #e5e9ef; background: #f6f8fa; color: #3a4962; }
.admin-content-v4 .empty { border-color: #dde3ec; background: #fbfcfd; color: #7b879a; }

.category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.category-tile { padding: 17px; border: 1px solid #e4e8ef; border-radius: 15px; background: #fff; box-shadow: 0 5px 18px rgba(30, 45, 70, .045); color: #2d3a52; }
.category-tile:hover { transform: translateY(-2px); border-color: #e2a1bd; }
.category-tile img { width: 46px; height: 46px; border-radius: 12px; background: #fff1f7; object-fit: contain; }
.category-tile h2 { padding: 0; color: #2b3951; font-size: 14px; }
.category-tile p { padding: 0; color: #7b879a; font-size: 10px; }
.store-profile { border: 1px solid #e4e8ef; border-radius: 17px; background: #fff; color: #2c3a53; box-shadow: 0 5px 18px rgba(30, 45, 70, .045); }
.store-profile p { color: #748197; }
#support-view > form, .request-card, .request-form, .ticket-thread article { border-color: #e3e8ef; border-radius: 15px; background: #fff; color: #2d3b53; box-shadow: 0 5px 17px rgba(30, 45, 70, .04); }
.request-card p, .request-card small, .request-status { color: #748197; }
.ticket-thread article { background: #f8f9fb; }
.ticket-thread article.staff-message { border-color: #dce8f8; background: #f2f7fd; }
.ticket-thread p { color: #394860; }
.ticket-thread small { color: #7a879a; }
.ticket-dialog { border: 1px solid #e1e6ee; background: #fff; color: #293750; }
.delivery-box { color: #394860; }
.download-file { border-color: #d9e3f2; background: #f3f7fc; color: #365d8a; }
#toast { border: 1px solid #e8d2de; border-radius: 12px; background: #27354a; color: #fff; box-shadow: 0 12px 34px rgba(21, 34, 53, .2); }
.text-button, .footer-link { color: #b63171; }

@media (max-width: 1250px) {
    #products.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    :root { --sidebar: 0px; }
    .sidebar { width: 250px; transform: translateX(-102%); box-shadow: 22px 0 55px rgba(24, 39, 62, .18); }
    .sidebar.open { transform: none; }
    .design-stage { width: 100%; margin-left: 0; }
    .topbar { padding: 0 18px; }
    .samurai-hero { height: 275px; margin: 12px 14px 0; }
    .market-hero-copy { width: 72%; padding-inline: 26px; }
    .market-hero-card { right: 18px; width: 190px; }
    #catalog { padding: 23px 18px 50px; }
    .admin-content-v4 .stats-grid, .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .topbar { height: 64px; min-height: 64px; gap: 8px; padding-inline: 12px; }
    .header-identity { gap: 7px; }
    .header-identity > img { width: 31px; height: 31px; }
    .header-wordmark { font-size: 10px; letter-spacing: .09em; }
    .header-caption { font-size: 9px; }
    .top-actions { gap: 5px; }
    .topbar .outline { min-height: 37px; padding: 8px 11px; font-size: 10px; }
    .balance-btn { display: none !important; }
    .mobile-menu { width: 36px; min-width: 36px; height: 38px; border-radius: 10px; background: #f3f5f8; font-size: 19px; }
    .market-hero-card { display: none; }
    .samurai-hero { height: 255px; margin: 10px 10px 0; border-radius: 17px; }
    .samurai-hero-bg { inset: -5px -16% -5px 12%; background-position: 68% center; }
    .samurai-hero-vignette { background: linear-gradient(90deg, #14243d 0%, #14243df2 39%, #14243da8 77%, #14243d65); }
    .market-hero-copy { width: 88%; padding: 20px 19px; }
    .market-hero-kicker { font-size: 8px; }
    .market-hero-copy h1 { max-width: 440px; font-size: clamp(26px, 7vw, 34px); }
    .market-hero-description { max-width: 390px; font-size: 11px; }
    .market-hero-proof { gap: 4px; }
    .market-hero-proof span { font-size: 8px; }
    .market-hero-proof span + span:before { margin-right: 4px; }
    #catalog { padding: 20px 12px 42px; scroll-margin-top: 68px; }
    #catalog > .section-title h2 { font-size: 17px; }
    #catalog > .section-title .muted { display: none; }
    .design-toolbar { flex-wrap: wrap; gap: 8px; }
    .search { flex-basis: 100%; }
    .search input { height: 45px; font-size: 12px; }
    .toolbar select { width: 100%; height: 42px; min-width: 0; }
    .filter-row { flex-direction: column; align-items: stretch; gap: 8px; }
    .categories { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding: 2px 0 6px; scrollbar-width: none; }
    .categories::-webkit-scrollbar { display: none; }
    .categories button { flex: 0 0 auto; min-height: 33px; }
    .stock-filter { align-self: flex-start; margin-left: 2px; }
    #products.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    #products .design-media { aspect-ratio: 1.12; }
    #products .design-card-body { min-height: 197px; padding: 10px; }
    .product-seller { font-size: 7px; letter-spacing: .04em; }
    #products .product-name { min-height: 38px; font-size: 11px; }
    #products .card-status { min-height: 22px; max-width: 100%; padding: 3px 6px; font-size: 8px; }
    #products .product-rating { font-size: 8px; }
    #products .card-footer .price { font-size: 15px; }
    #products .design-buy { width: 35px; min-width: 35px; height: 34px; min-height: 34px; }
    .design-footer { gap: 9px; padding: 18px 14px; font-size: 9px; }
    .design-main > .workspace { padding: 23px 13px 45px; }
    .workspace h1 { font-size: 27px; }
    .account-hero-v2, .account-wallet-v2, .account-command-center, .account-panel, .admin-content-v4 { border-radius: 15px; }
    .admin-navigation-v4 { display: flex !important; overflow-x: auto; gap: 5px; padding: 6px; scrollbar-width: none; }
    .admin-navigation-v4::-webkit-scrollbar { display: none; }
    .admin-nav-v4 { min-width: max-content; min-height: 42px; }
    .admin-content-v4 { padding: 13px; }
    .admin-content-v4 .admin-user-row, .admin-content-v4 .admin-license-row { grid-template-columns: 1fr; }
    .admin-content-v4 .admin-user-actions, .admin-content-v4 .admin-license-actions { grid-template-columns: 1fr 1fr; }
    .admin-content-v4 .financial-row { grid-template-columns: 1fr 1fr; }
    .crypto-tx-form { grid-template-columns: 1fr; }
    .crypto-tx-form button { width: 100%; }
    .category-grid { grid-template-columns: 1fr; gap: 8px; }
    .category-tile { display: flex; align-items: center; gap: 12px; padding: 12px; }
    .category-tile h2 { margin: 0 0 4px; }
    .category-tile p { margin: 0; }
    .store-profile { padding: 22px; }
    #support-view > form { padding: 17px; }
}

@media (max-width: 420px) {
    .header-caption { display: none; }
    .header-wordmark { max-width: 122px; }
    #products.product-grid { grid-template-columns: 1fr; gap: 10px; }
    #products .design-media { aspect-ratio: 1.7; }
    #products .design-card-body { min-height: 184px; padding: 11px 12px; }
    #products .product-name { min-height: 0; font-size: 12px; }
    #products .card-footer .price { font-size: 17px; }
    .market-hero-proof { max-width: 300px; }
    .topbar .outline { padding-inline: 9px; }
    .admin-content-v4 .stats-grid, .stats-grid { grid-template-columns: 1fr 1fr; }
    .admin-content-v4 .admin-user-actions, .admin-content-v4 .admin-license-actions { grid-template-columns: 1fr; }
    .referral-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    dialog { padding: 25px 17px; }
    .product-modal[open] { grid-template-columns: 1fr; }
    .modal-media { min-height: 190px; max-height: 31vh; }
    .modal-content { padding: 23px 18px 19px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *:before, *:after { animation: none !important; transition: none !important; }
}

/* A fresh marketplace shell: no dashboard sidebar, legacy artwork or neon catalog grid. */
:root {
    --market-bg: #f3f6fb;
    --market-panel: #fff;
    --market-ink: #172540;
    --market-muted: #71809a;
    --market-line: #e2e8f1;
    --market-accent: #345df5;
    --market-accent-soft: #edf1ff;
    --market-green: #16846a;
    --lime: #345df5;
    --ink: #172540;
    --muted: #71809a;
    --panel: #fff;
    --line: #e2e8f1;
    --sidebar: 0px;
}

body { background: #f3f6fb !important; color: #172540 !important; }
.app-shell, .design-stage, .design-main { width: 100%; max-width: none; margin: 0; background: #f3f6fb; }
.sidebar, .sidebar-backdrop, .mobile-menu { display: none !important; }
.design-stage { min-width: 0; margin-left: 0 !important; }

.announcement {
    display: flex !important;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 6px 18px;
    border: 0;
    background: #172540;
    color: #fff;
    font-size: 10px;
}
.announcement > .telegram-icon { color: #87b5ff; font-size: 13px; }
.announcement > div { display: flex; align-items: center; gap: 7px; }
.announcement strong { color: #fff; font-size: 10px; }
.announcement span { color: #c5d0e2; font-size: 9px; }
.announcement a { color: #a9c4ff; font-size: 9px; font-weight: 700; }

.topbar {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    height: 76px;
    min-height: 76px;
    align-items: center;
    gap: 27px;
    overflow: visible !important;
    padding: 0 clamp(20px, 5vw, 76px);
    border: 0;
    border-bottom: 1px solid #e8edf4;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 4px 20px rgba(28, 47, 78, .035);
    color: #172540;
    backdrop-filter: blur(16px);
}
.topbar:after { display: none; }
.header-identity { flex: 0 0 auto; gap: 10px; margin: 0; }
.header-identity > img { width: 39px; height: 39px; filter: none; }
.header-wordmark { color: #172540; font-size: 12px; letter-spacing: .12em; }
.header-caption { color: #8090a9; font-size: 10px; }
.market-nav { display: flex; align-items: center; justify-content: center; gap: 6px; margin-left: auto; }
.market-nav-link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 0 13px;
    border-radius: 10px;
    color: #64728b;
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.market-nav-link:hover, .market-nav-link.active { background: #edf1ff; color: #2d53db; }
.top-actions { flex: 0 0 auto; gap: 8px; margin-left: 2px; }
.topbar .outline, .outline {
    min-height: 40px;
    padding-inline: 16px;
    border: 1px solid #dce4f0;
    border-radius: 10px;
    background: #fff;
    color: #263650;
    box-shadow: none;
    font-size: 11px;
}
.topbar .outline:hover, .outline:hover { border-color: #b8c8ff; background: #f6f8ff; color: #2d53db; }
.balance-btn { min-width: 120px; border-color: #dce4f0; border-radius: 10px; background: #f7f9fc; }
.balance-value { color: #172540; }
.balance-art, .balance-plus { color: #345df5; }

.samurai-hero {
    position: relative;
    isolation: isolate;
    display: block;
    width: min(1260px, calc(100% - 52px));
    height: 300px;
    min-height: 0;
    margin: 26px auto 0;
    overflow: hidden;
    border: 1px solid #dfe7f2;
    border-radius: 26px;
    background: linear-gradient(112deg, #eaf0ff 0%, #eef4ff 46%, #e4f4ee 100%);
    box-shadow: 0 16px 42px rgba(36, 60, 102, .08);
}
.samurai-hero:before {
    position: absolute;
    z-index: -1;
    top: -185px;
    right: 75px;
    width: 505px;
    height: 505px;
    border: 1px solid rgba(74, 108, 227, .13);
    border-radius: 50%;
    background: radial-gradient(circle at 37% 40%, rgba(255, 255, 255, .96), rgba(208, 224, 255, .55) 35%, rgba(206, 239, 225, .12) 68%, transparent 69%);
    content: "";
}
.samurai-hero:after {
    position: absolute;
    z-index: -1;
    right: 29%;
    bottom: -172px;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(51, 93, 245, .11);
    border-radius: 50%;
    content: "";
}
.samurai-hero-bg, .samurai-hero-vignette, .samurai-hero-streak { display: none !important; }
.market-hero-copy {
    position: absolute;
    z-index: 2;
    inset: 0 auto 0 0;
    display: flex;
    width: min(700px, 62%);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 35px clamp(28px, 5.5vw, 78px);
    color: #172540;
}
.market-hero-kicker { color: #3557d1; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.market-hero-copy h1 { max-width: 620px; margin: 13px 0 10px; color: #172540; font-size: clamp(37px, 4vw, 52px); font-weight: 760; line-height: 1.03; letter-spacing: -.055em; }
.market-hero-copy h1 span { color: #345df5; }
.market-hero-description { max-width: 450px; margin: 0; color: #63728b; font-size: 13px; line-height: 1.65; }
.market-hero-action {
    min-height: 44px;
    margin-top: 19px;
    padding: 0 18px;
    border: 0;
    border-radius: 11px;
    background: #345df5;
    box-shadow: 0 8px 18px rgba(52, 93, 245, .22);
    color: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 750;
}
.market-hero-action:hover { transform: translateY(-1px); background: #284ddf; }
.market-hero-proof { gap: 8px; margin-top: 14px; }
.market-hero-proof span { color: #64728b; font-size: 9px; }
.market-hero-proof span + span:before { color: #345df5; }
.market-hero-card {
    top: 50%;
    right: clamp(26px, 7vw, 90px);
    bottom: auto;
    width: 274px;
    gap: 9px;
    padding: 22px;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 20px;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 22px 55px rgba(33, 58, 105, .14);
    color: #172540;
    backdrop-filter: blur(18px);
}
.market-hero-mark { top: 16px; right: 17px; color: #345df5; font-size: 22px; }
.market-hero-card small { color: #536a9f; font-size: 8px; letter-spacing: .12em; }
.market-hero-card strong { max-width: 190px; color: #172540; font-size: 20px; line-height: 1.1; }
.market-hero-card > span:not(.market-hero-mark) { color: #71809a; font-size: 10px; line-height: 1.5; }
.market-hero-card b { margin-top: 4px; color: #16846a; font-size: 10px; }

#catalog {
    width: min(1260px, 100%);
    max-width: 1260px;
    margin: 0 auto;
    padding: 35px 0 76px;
    scroll-margin-top: 94px;
}
#catalog > .section-title { margin-bottom: 16px; }
#catalog > .section-title h2 { color: #172540; font-size: 22px; font-weight: 760; letter-spacing: -.035em; }
#catalog > .section-title h2 span { border-color: #dce4ef; background: #fff; color: #6b7b94; }
#catalog > .section-title .muted { color: #8290a6; font-size: 11px; }
.design-toolbar { gap: 10px; }
.search { border-color: #dce4ef; border-radius: 12px; background: #fff; box-shadow: 0 3px 10px rgba(28, 47, 78, .035); }
.search:focus-within { border-color: #9cafef; box-shadow: 0 0 0 3px rgba(52, 93, 245, .09); }
.search input { height: 48px; color: #172540; font-size: 12px; }
.search input::placeholder { color: #96a2b5; }
.toolbar select, .sort-select { border-color: #dce4ef; border-radius: 12px; background: #fff; color: #465672; }
.toolbar select:focus, .sort-select:focus { border-color: #9cafef; box-shadow: 0 0 0 3px rgba(52, 93, 245, .09); }
.filter-row { margin: 15px 0 20px; }
.categories { gap: 8px; }
.categories button { min-height: 37px; padding: 7px 13px; border-color: #e0e6ef; border-radius: 10px; background: #fff; color: #66758e; font-size: 10px; }
.categories button:hover { border-color: #bac9ff; background: #f7f8ff; }
.categories button.active { border-color: #345df5; background: #345df5; color: #fff; box-shadow: 0 5px 13px rgba(52, 93, 245, .16); }
.stock-filter { color: #66758e; font-size: 10px; }
.stock-filter input { accent-color: #345df5; }
#products.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.product-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e0e6ef;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 5px 17px rgba(29, 48, 80, .045);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.product-card:before {
    position: absolute;
    z-index: 2;
    top: 11px;
    left: 11px;
    max-width: calc(100% - 22px);
    overflow: hidden;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 7px;
    background: rgba(255, 255, 255, .92);
    color: #566886;
    content: attr(data-category);
    font-size: 8px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}
.product-card:hover { transform: translateY(-3px); border-color: #cbd6ef; box-shadow: 0 14px 27px rgba(29, 48, 80, .09); }
.product-card .design-media {
    display: flex;
    width: 100%;
    aspect-ratio: 1.23;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #e9edf4;
    border-radius: 0;
    background: #edf1f7;
}
.product-card .design-media > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .24s ease; }
.product-card:hover .design-media > img { transform: scale(1.025); }
.product-card .design-media.brand-poster { align-items: center; gap: 8px; background: linear-gradient(145deg, #eef2ff, #e4f4ed); color: #172540; }
.product-card .brand-poster .poster-logo { width: 60px; height: 60px; padding: 9px; border: 1px solid #e9edf5; border-radius: 17px; background: #fff; box-shadow: 0 8px 18px rgba(30, 52, 91, .08); }
.product-card .brand-poster .poster-name { max-width: 90%; color: #172540; font-size: 18px; font-weight: 750; }
.product-card .brand-poster .poster-caption { color: #70809a; font-size: 8px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.design-card-body { display: flex; min-height: 188px; flex-direction: column; padding: 14px; }
.product-seller { margin: 0 0 7px; color: #18836b; font-size: 8px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.product-seller:before { content: "✓"; display: inline-grid; width: 13px; height: 13px; place-items: center; margin-right: 5px; border-radius: 50%; background: #e7f6f0; color: #16846a; font-size: 9px; }
.product-name { min-height: 42px; margin: 0 0 8px; color: #1d2c47; font-size: 14px; font-weight: 700; line-height: 1.35; }
.card-status { width: max-content; max-width: 100%; min-height: 25px; padding: 4px 8px; border: 1px solid #d8eee4; border-radius: 999px; background: #f1faf6; color: #17785f; font-size: 9px; }
.card-status.unavailable { border-color: #f0e2c8; background: #fff9ee; color: #a36b15; }
.product-rating { margin: 8px 0 11px; padding: 0; border: 0; background: transparent; color: #8592a7; font-size: 9px; }
.card-footer { gap: 9px; margin-top: auto; padding-top: 11px; border-top: 1px solid #edf0f5; }
.card-footer .price { color: #172540; font-size: 17px; font-weight: 780; letter-spacing: -.03em; }
.design-buy { width: 39px; min-width: 39px; height: 38px; min-height: 38px; border-radius: 11px; background: #345df5; color: #fff; box-shadow: none; }
.design-buy:hover { background: #284ddf; box-shadow: 0 6px 13px rgba(52, 93, 245, .2); }
.design-buy svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.product-card .product-seller + .product-name { margin-top: 0; }
.purchase-ribbon { border-color: #e3e9f1; background: #fff; }

.design-footer { min-height: 66px; justify-content: space-between; padding: 17px max(22px, calc((100% - 1260px) / 2)); border-top: 1px solid #e5eaf2; background: #fff; color: #71809a; font-size: 10px; }
.footer-link { color: #345df5; }
.workspace { width: min(1260px, calc(100% - 48px)); max-width: 1260px; margin: 0 auto; padding: 34px 0 66px; }
.workspace > .eyebrow { color: #677896; font-size: 9px; letter-spacing: .14em; }
.workspace > .section-title { align-items: center; padding-bottom: 17px; border-bottom: 1px solid #e2e8f1; }
.workspace > .section-title h1 { color: #172540; font-size: 30px; letter-spacing: -.045em; }
.account-hero-v2, .account-wallet-v2, .account-command-center, .account-panel, .admin-context-head, .admin-content-v4, .license-issuer-v2, .license-created-v2 {
    border-color: #e1e7f0 !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 5px 18px rgba(29, 48, 80, .045) !important;
    color: #172540 !important;
}
.account-hero-v2 h2, .account-command-head h2, .account-panel-head h2, .admin-context-head h2 { color: #172540 !important; }
.account-hero-v2 p, .account-panel-head p, .admin-context-head p { color: #71809a !important; }
.account-stats-v2 article, .admin-content-v4 .stats-grid article, .admin-license-details > div, .admin-user-stats > div { border-color: #e5eaf2 !important; background: #f8faff !important; }
.account-stats-v2 strong, .admin-content-v4 .stats-grid strong { color: #172540 !important; }
.account-action-v2, .account-utility, .admin-nav-v4 { border-color: #e0e6ef !important; background: #fff !important; color: #4e5e78 !important; }
.account-action-v2:hover, .account-utility:hover, .admin-nav-v4:hover { border-color: #aebfff !important; background: #f5f7ff !important; color: #2d53db !important; }
.account-action-v2 strong, .account-utility strong { color: inherit !important; }
.admin-navigation-v4 { border: 1px solid #e1e7f0 !important; border-radius: 15px !important; background: #fff !important; }
.admin-nav-v4.active, .admin-content-v4 .admin-tabs button.active, .admin-tabs button.active { border-color: #d8e0ff !important; background: #edf1ff !important; color: #2d53db !important; }
.admin-content-v4 .admin-license-row, .admin-content-v4 .admin-user-row, .admin-content-v4 .order-admin, .admin-content-v4 .financial-row, .request-card { border-color: #e3e8f1 !important; background: #fff !important; color: #263650 !important; }
.admin-content-v4 input, .admin-content-v4 select, .admin-content-v4 textarea, .license-control input, .license-control select, .license-control textarea, .workspace input, .workspace select, .workspace textarea { border-color: #dfe6f0 !important; border-radius: 9px !important; background: #fff !important; color: #172540 !important; }
.admin-content-v4 button, .workspace button, .account-command-center button { border-radius: 10px; }

dialog { border: 1px solid #e1e7f0; border-radius: 20px; background: #fff; color: #172540; box-shadow: 0 24px 80px rgba(17, 34, 64, .24); }
dialog::backdrop { background: rgba(19, 31, 51, .48); backdrop-filter: blur(5px); }
dialog h2, dialog h3 { color: #172540; }
dialog p, dialog small { color: #687892; }
dialog label { color: #455570; }
dialog input, dialog textarea, dialog select { border-color: #dfe6f0; border-radius: 9px; background: #fff; color: #172540; }
dialog .close, #detail .product-close { border: 1px solid #dfe6f0; border-radius: 10px; background: #fff; color: #52627d; box-shadow: none; }
#detail .product-close:after { color: #52627d; }
#detail-content .detail-rating { border-color: #e4eaf2; background: #f5f7fa; color: #77859a; }
#detail-content .detail-meta { border-color: #e7ebf1; }
#detail-content .detail-meta span { color: #16846a; }
#detail-content .detail-description { color: #5c6b84; }
.primary, .design-buy, .market-hero-action { background: #345df5; }
.primary:hover, .design-buy:hover { background: #284ddf; }
.admin-content-v4 .empty, .request-empty { border-color: #e1e7f0; background: #f8faff; color: #71809a; }
.toast, #toast { border-color: #253b65; background: #172540; color: #fff; }

@media (min-width: 1400px) {
    #products.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1300px) {
    #catalog { width: calc(100% - 48px); }
}
@media (max-width: 980px) {
    .topbar { gap: 12px; padding-inline: 22px; }
    .market-nav { gap: 1px; }
    .market-nav-link { padding-inline: 9px; font-size: 10px; }
    .samurai-hero { width: calc(100% - 36px); height: 285px; }
    .market-hero-copy { width: 65%; padding-inline: 34px; }
    .market-hero-card { right: 25px; width: 235px; padding: 18px; }
    #catalog { width: calc(100% - 40px); }
    #products.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .announcement { min-height: 30px; gap: 7px; padding: 5px 10px; }
    .announcement > div { gap: 0; }
    .announcement strong { font-size: 9px; }
    .announcement > div span { display: none; }
    .announcement a { font-size: 8px; }
    .topbar { position: sticky; height: auto; min-height: 0; flex-wrap: wrap; gap: 8px; padding: 10px 14px 8px; }
    .header-identity { order: 1; gap: 7px; margin-right: auto; }
    .header-identity > img { width: 31px; height: 31px; }
    .header-wordmark { font-size: 10px; }
    .header-caption { display: none; }
    .top-actions { order: 2; gap: 5px; margin-left: auto; }
    .topbar .outline { min-height: 36px; padding-inline: 12px; font-size: 10px; }
    .balance-btn { display: inline-flex !important; min-width: 92px; padding: 5px 8px; }
    .balance-copy small { display: none; }
    .market-nav { order: 3; flex: 0 0 100%; justify-content: center; gap: 4px; margin: 0; padding-top: 5px; border-top: 1px solid #edf0f5; }
    .market-nav-link { min-height: 32px; padding-inline: 10px; font-size: 9px; }
    .samurai-hero { width: calc(100% - 24px); height: 260px; margin-top: 14px; border-radius: 21px; }
    .samurai-hero:before { top: -170px; right: -135px; width: 430px; height: 430px; }
    .samurai-hero:after { right: -70px; bottom: -170px; }
    .market-hero-copy { width: 100%; padding: 25px 23px; }
    .market-hero-copy h1 { max-width: 420px; font-size: clamp(33px, 9vw, 43px); }
    .market-hero-description { max-width: 390px; font-size: 11px; }
    .market-hero-card { display: none; }
    .market-hero-proof { max-width: 300px; gap: 5px; }
    .market-hero-proof span { font-size: 8px; }
    #catalog { width: calc(100% - 28px); padding: 26px 0 50px; scroll-margin-top: 112px; }
    #catalog > .section-title { margin-bottom: 12px; }
    #catalog > .section-title h2 { font-size: 19px; }
    #catalog > .section-title .muted { display: none; }
    .design-toolbar { display: flex; flex-wrap: nowrap; gap: 7px; }
    .search { min-width: 0; flex: 1; }
    .search input { height: 43px; padding-inline: 11px; font-size: 10px; }
    .toolbar select { width: 124px; min-width: 124px; height: 43px; padding-left: 9px; font-size: 9px; }
    .filter-row { flex-direction: row; align-items: center; gap: 7px; margin: 12px 0 15px; }
    .categories { min-width: 0; flex: 1; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
    .categories::-webkit-scrollbar { display: none; }
    .categories button { min-height: 33px; flex: 0 0 auto; padding-inline: 9px; font-size: 9px; }
    .stock-filter { flex: 0 0 auto; margin: 0; font-size: 9px; }
    #products.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .product-card { border-radius: 13px; }
    .product-card:before { top: 7px; left: 7px; padding: 4px 6px; font-size: 7px; }
    .product-card .design-media { aspect-ratio: 1.04; }
    .design-card-body { min-height: 172px; padding: 10px; }
    .product-seller { margin-bottom: 5px; font-size: 7px; letter-spacing: .03em; }
    .product-seller:before { width: 11px; height: 11px; margin-right: 3px; font-size: 7px; }
    .product-name { min-height: 36px; font-size: 11px; }
    .card-status { min-height: 22px; padding: 3px 6px; font-size: 7px; }
    .product-rating { margin: 6px 0 8px; font-size: 7px; }
    .card-footer { gap: 5px; padding-top: 8px; }
    .card-footer .price { font-size: 14px; }
    .design-buy { width: 33px; min-width: 33px; height: 32px; min-height: 32px; border-radius: 9px; }
    .product-card .brand-poster .poster-logo { width: 48px; height: 48px; border-radius: 14px; }
    .product-card .brand-poster .poster-name { font-size: 13px; }
    .product-card .brand-poster .poster-caption { font-size: 7px; }
    .workspace { width: calc(100% - 28px); padding-top: 25px; }
    .workspace > .section-title h1 { font-size: 26px; }
    .design-footer { min-height: 58px; padding-inline: 15px; }
    dialog { width: min(540px, calc(100% - 20px)); max-height: calc(100% - 24px); padding: 24px 18px; }
}
@media (max-width: 380px) {
    .announcement a { display: none; }
    .header-wordmark { letter-spacing: .07em; }
    .market-nav-link { padding-inline: 8px; }
    #catalog { width: calc(100% - 22px); }
    #products.product-grid { grid-template-columns: 1fr; gap: 11px; }
    .product-card { display: grid; grid-template-columns: 116px minmax(0, 1fr); min-height: 142px; }
    .product-card .design-media { height: 100%; min-height: 142px; aspect-ratio: auto; border-right: 1px solid #e9edf4; border-bottom: 0; }
    .product-card:before { top: 6px; left: 6px; max-width: 103px; font-size: 6px; }
    .design-card-body { min-height: 142px; padding: 11px 9px; }
    .product-seller { font-size: 6px; }
    .product-name { min-height: 0; margin-bottom: 6px; font-size: 10px; }
    .card-status { font-size: 7px; }
    .product-rating { margin: 5px 0 6px; }
    .card-footer .price { font-size: 13px; }
}

.market-header-search {
    width: min(400px, 30vw);
    max-width: 400px;
    min-height: 42px;
    flex: 1 1 260px;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 0 13px;
    border-color: #dce4ef;
    border-radius: 11px;
    background: #f7f9fc;
    box-shadow: none;
}
.market-search-icon { color: #7f8da4; font-size: 21px; line-height: 1; }
.market-header-search input { height: 40px; padding: 8px 0; background: transparent; }
.market-nav { flex: 0 0 auto; }
.design-toolbar { justify-content: flex-end; margin: 0 0 12px; }
.design-toolbar select { width: 170px; min-width: 150px; }
.categories {
    display: grid;
    grid-auto-columns: 94px;
    grid-auto-flow: column;
    overflow-x: auto;
    padding: 2px 0 5px;
    scrollbar-width: none;
}
.categories::-webkit-scrollbar { display: none; }
.categories button {
    display: flex;
    min-height: 88px;
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 5px;
    border-radius: 13px;
}
.categories button .group-emoji { width: 36px; height: 36px; padding: 5px; border-radius: 11px; background: #f0f4fa; }
.categories button.active .group-emoji { background: rgba(255, 255, 255, .18); }
.categories button .group-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.samurai-hero:before, .samurai-hero:after { z-index: 0; inset: auto; pointer-events: none; background-image: none; box-shadow: none; filter: none; opacity: 1; }
.samurai-hero:before { top: -185px; right: 75px; bottom: auto; left: auto; width: 505px; height: 505px; background: radial-gradient(circle at 37% 40%, rgba(255, 255, 255, .96), rgba(208, 224, 255, .55) 35%, rgba(206, 239, 225, .12) 68%, transparent 69%); }
.samurai-hero:after { top: auto; right: 29%; bottom: -172px; left: auto; width: 350px; height: 350px; background: transparent; }
.market-hero-copy, .market-hero-card { z-index: 2; }
.market-hero-copy h1 span { display: block; }
.product-card:before { display: inline-flex; width: max-content; right: auto; bottom: auto; }
.product-card .design-buy, #products .design-buy { background: #345df5 !important; color: #fff !important; }
.product-card .design-buy:hover, #products .design-buy:hover { background: #284ddf !important; }
.product-rating { width: max-content; padding: 4px 7px; border: 1px solid #e5eaf2; border-radius: 999px; background: #f8faff; color: #77859a; }
.product-card .design-media.brand-poster:before { display: none; }
.product-card .poster-mark {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 1px solid #d7e1ff;
    border-radius: 17px;
    background: linear-gradient(145deg, #fff, #e9efff);
    color: #345df5;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 9px 20px rgba(37, 68, 157, .09);
}
.how {
    width: min(1260px, calc(100% - 48px));
    margin: 0 auto 72px;
    padding: 28px;
    border: 1px solid #e2e8f1;
    border-radius: 20px;
    background: #fff;
}
.how > .eyebrow { color: #3557d1; }
.how > h2 { margin: 7px 0 18px; color: #172540; font-size: 23px; letter-spacing: -.04em; }
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.steps article { min-height: 148px; padding: 17px; border: 1px solid #e5eaf2; border-radius: 13px; background: #f8faff; }
.steps article > span { color: #345df5; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.steps h3 { margin: 12px 0 6px; color: #1d2c47; font-size: 13px; }
.steps p { color: #71809a; font-size: 10px; line-height: 1.6; }
.market-detail-seller { width: max-content; margin: 7px 0 13px; padding: 6px 9px; border: 1px solid #dceee5; border-radius: 8px; background: #f1faf5; color: #16846a; font-size: 10px; font-weight: 700; }
.market-footer-grid { display: flex; width: min(1260px, 100%); align-items: center; justify-content: space-between; gap: 28px; margin: 0 auto; }
.market-footer-brand { display: grid; grid-template-columns: 34px auto; align-items: center; column-gap: 10px; }
.market-footer-brand img { grid-row: span 2; width: 34px; height: 34px; object-fit: contain; }
.market-footer-brand strong { color: #263650; font-size: 11px; }
.market-footer-brand p { grid-column: 2; max-width: 420px; margin: 2px 0 0; color: #8591a4; font-size: 9px; }
.market-footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.market-footer-nav a { color: #62728b; font-size: 10px; text-decoration: none; }
.market-footer-nav a:hover { color: #345df5; }
.market-footer-bottom { display: block; width: min(1260px, 100%); margin: 15px auto 0; padding-top: 13px; border-top: 1px solid #edf0f5; color: #97a2b4; font-size: 9px; }

@media (max-width: 980px) {
    .market-header-search { width: min(300px, 28vw); flex-basis: 200px; }
    .topbar { gap: 12px; }
    .market-nav { gap: 0; }
    .market-nav-link { padding-inline: 8px; }
    .market-hero-copy { width: 68%; }
    .market-hero-card { right: 22px; width: 220px; }
}
@media (max-width: 700px) {
    .topbar { gap: 8px; }
    .header-identity { order: 1; }
    .top-actions { order: 2; }
    .market-header-search { order: 3; width: 100%; max-width: none; min-height: 40px; flex: 0 0 100%; }
    .market-nav { order: 4; flex: 0 0 100%; }
    .market-nav-link { min-height: 31px; }
    .market-hero-copy { width: 100%; }
    .categories { grid-auto-columns: 82px; }
    .categories button { min-height: 78px; }
    .categories button .group-emoji { width: 31px; height: 31px; }
    .stock-filter { margin-left: 0; }
    .how { width: calc(100% - 28px); margin-bottom: 42px; padding: 17px; }
    .how > h2 { font-size: 19px; }
    .steps { grid-template-columns: 1fr; gap: 8px; }
    .steps article { min-height: 0; padding: 13px; }
    .steps h3 { margin: 7px 0 4px; }
    .market-footer-grid { align-items: flex-start; flex-direction: column; gap: 16px; }
    .market-footer-nav { gap: 14px; }
    .market-footer-bottom { margin-top: 12px; }
}

#detail { width: min(960px, calc(100% - 32px)); max-width: 960px; max-height: calc(100dvh - 36px); padding: 25px; overflow: auto; }
#detail .product-close { position: sticky; top: 0; z-index: 5; float: right; min-width: 39px; width: 39px; height: 39px; min-height: 39px; padding: 0; font-size: 21px; }
#detail .product-close:after { content: none; }
#detail-content { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(300px, .94fr); align-items: start; gap: 26px; clear: both; }
.market-detail-media-column { min-width: 0; }
.market-detail-info-column { min-width: 0; padding: 8px 3px; }
.market-detail-category { margin: 0 0 8px; color: #63728b; font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
#detail-content h2 { margin: 0 0 0; color: #172540; font-size: 25px; font-weight: 760; line-height: 1.2; letter-spacing: -.04em; }
.design-detail-poster { width: 100%; max-width: none; min-height: 0; aspect-ratio: 1.15; margin: 0; border: 1px solid #e1e7f0; border-radius: 16px; }
.design-detail-poster > img { width: 100%; height: 100%; object-fit: cover; }
.design-detail-poster.brand-poster { min-height: 0; aspect-ratio: 1.15; background: linear-gradient(145deg, #eef2ff, #e4f4ed); }
.design-detail-poster .poster-name { color: #172540; font-size: 26px; }
.design-detail-poster .poster-caption { color: #70809a; }
.design-detail-poster .poster-logo { object-fit: contain; }
.market-detail-media-column .detail-rating { display: inline-flex; margin: 10px 0 0; }
.market-detail-seller { margin: 9px 0 17px; }
#detail-content .detail-meta { align-items: center; margin: 15px 0; padding: 14px 0; border-top: 1px solid #e8edf4; border-bottom: 1px solid #e8edf4; }
#detail-content .detail-meta .price { color: #172540; font-size: 25px; font-weight: 780; }
#detail-content .detail-description { margin: 0 0 13px; color: #5e6d86; font-size: 12px; line-height: 1.7; }
#detail-content .payment-options { display: grid; gap: 9px; margin-top: 17px; }
#detail-content .payment-options > p { margin: 0; color: #71809a; font-size: 10px; line-height: 1.5; }
#detail-content .payment-options > button { width: 100%; min-height: 46px; }
.how[hidden] { display: none; }

@media (max-width: 700px) {
    #detail { width: calc(100% - 18px); max-height: calc(100dvh - 18px); padding: 17px; border-radius: 17px; }
    #detail-content { grid-template-columns: 1fr; gap: 13px; }
    .design-detail-poster, .design-detail-poster.brand-poster { max-height: 31vh; aspect-ratio: 1.65; }
    .market-detail-info-column { padding: 0 1px 5px; }
    #detail-content h2 { font-size: 21px; }
}

/* Playerok-inspired storefront: one seller, one clear path from search to purchase. */
:root {
    --market-bg: #f5f6f7;
    --market-panel: #fff;
    --market-ink: #192533;
    --market-muted: #778391;
    --market-line: #e4e8eb;
    --market-accent: #ed593b;
    --market-accent-soft: #fff0eb;
    --market-green: #16836a;
}

html { scroll-padding-top: 92px; }
body {
    background: radial-gradient(ellipse at 8% 28%, rgba(247, 225, 208, .35), transparent 34%), #f5f6f7 !important;
    color: var(--market-ink) !important;
    font-family: "Segoe UI Variable", "Segoe UI", "Trebuchet MS", sans-serif;
}
body:before, body:after { display: none !important; }
.announcement { display: none !important; }
.app-shell, .design-stage, .design-main { width: 100%; max-width: none; margin: 0; background: transparent; }
.sidebar, .sidebar-backdrop, .mobile-menu { display: none !important; }
.design-stage { min-width: 0; margin-left: 0 !important; }

.topbar {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    width: 100%;
    height: 72px;
    min-height: 72px;
    align-items: center;
    gap: 22px;
    padding: 0 max(24px, calc((100% - 1320px) / 2));
    overflow: visible !important;
    border-bottom: 1px solid rgba(226, 231, 235, .9);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 3px 16px rgba(25, 37, 51, .035);
    color: var(--market-ink);
    backdrop-filter: blur(18px);
}
.topbar:after { display: none; }
.header-identity { flex: 0 0 185px; gap: 10px; margin: 0; }
.header-identity > img { width: 39px; height: 39px; filter: none; }
.header-wordmark { color: #1b2835; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.header-caption { margin-top: 3px; color: #8a95a0; font-size: 10px; }
.market-header-search {
    width: auto;
    max-width: 520px;
    min-width: 180px;
    min-height: 43px;
    flex: 1 1 310px;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #e0e5e9;
    border-radius: 12px;
    background: #f6f8f9;
    box-shadow: none;
}
.market-header-search:focus-within { border-color: #e9a18e; background: #fff; box-shadow: 0 0 0 3px rgba(237, 89, 59, .08); }
.market-search-icon { color: #7e8994; font-size: 21px; line-height: 1; }
.market-header-search input { width: 100%; height: 41px; padding: 8px 0; background: transparent; color: #24313e; font-size: 12px; }
.market-header-search input::placeholder { color: #939da7; }
.market-nav { display: flex; flex: 0 0 auto; align-items: center; gap: 3px; margin-left: auto; }
.market-nav-link {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    padding: 0 11px;
    border-radius: 9px;
    color: #62707d;
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    transition: color .16s ease, background .16s ease;
}
.market-nav-link:hover, .market-nav-link.active { background: #f0f2f4; color: #1f2c39; }
.top-actions { flex: 0 0 auto; gap: 8px; margin: 0; }
.topbar .outline, .outline {
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid #dfe4e8;
    border-radius: 10px;
    background: #fff;
    color: #293644;
    box-shadow: none;
    font-size: 11px;
    font-weight: 700;
}
.topbar .outline:hover, .outline:hover { border-color: #e9a18e; background: #fff9f6; color: #b8462c; }
.topbar .lang-switch { min-width: 40px; min-height: 39px; padding: 0 10px; border-color: #e4e8eb; border-radius: 10px; background: #f4f6f7; color: #5f6c77; font-size: 9px; font-weight: 800; }
.topbar .lang-switch:hover { border-color: #d8dee2; background: #edf0f2; color: #273541; }
.balance-btn { min-width: 118px; border-color: #e3e7ea; background: #f8f9fa; }
.balance-btn[hidden] { display: none !important; }
.balance-value { color: #1c2936; }
.balance-art, .balance-plus { color: var(--market-accent); }

.samurai-hero {
    position: relative;
    isolation: isolate;
    display: block;
    width: min(1320px, calc(100% - 48px));
    height: 222px;
    min-height: 0;
    margin: 22px auto 0;
    overflow: hidden;
    border: 1px solid #273343;
    border-radius: 18px;
    background: linear-gradient(108deg, #182432 0%, #202d3b 57%, #3a2e35 100%);
    box-shadow: 0 12px 28px rgba(28, 39, 52, .12);
}
.samurai-hero:before {
    position: absolute;
    z-index: 0;
    top: -174px;
    right: 18%;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 48%, rgba(237, 89, 59, .21), rgba(237, 89, 59, .05) 44%, transparent 70%);
    content: "";
}
.samurai-hero:after {
    position: absolute;
    z-index: 0;
    top: 25px;
    right: 33%;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
}
.samurai-hero-bg, .samurai-hero-vignette, .samurai-hero-streak { display: none !important; }
.market-hero-copy {
    position: absolute;
    z-index: 2;
    inset: 0 auto 0 0;
    display: flex;
    width: min(760px, 70%);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 28px clamp(24px, 5vw, 64px);
    color: #fff;
}
.market-hero-kicker { color: #ffae96; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.market-hero-copy h1 { max-width: 630px; margin: 9px 0 8px; color: #fff; font-size: clamp(31px, 3.25vw, 42px); font-weight: 760; line-height: 1.04; letter-spacing: -.055em; }
.market-hero-copy h1 span { color: #ff9478; }
.market-hero-description { max-width: 530px; margin: 0; color: #c3cbd2; font-size: 11px; line-height: 1.55; }
.market-hero-action {
    min-height: 38px;
    margin-top: 13px;
    padding: 0 15px;
    border: 0;
    border-radius: 9px;
    background: #f26a4b;
    box-shadow: 0 5px 14px rgba(237, 89, 59, .2);
    color: #fff;
    cursor: pointer;
    font-size: 10px;
    font-weight: 750;
    transition: transform .16s ease, background .16s ease;
}
.market-hero-action:hover { transform: translateY(-1px); background: #ff7959; }
.market-hero-proof { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 10px; }
.market-hero-proof span { color: #c4ccd3; font-size: 8px; }
.market-hero-proof span + span:before { color: #ff9277; }
.market-hero-card {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: clamp(26px, 6vw, 82px);
    bottom: auto;
    display: flex;
    width: 242px;
    min-height: 135px;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    background: rgba(255, 255, 255, .09);
    box-shadow: 0 15px 34px rgba(0, 0, 0, .12);
    color: #fff;
    backdrop-filter: blur(12px);
}
.market-hero-mark { top: 15px; right: 16px; color: #ff9277; font-size: 22px; }
.market-hero-card small { color: #ffae96; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.market-hero-card strong { max-width: 190px; color: #fff; font-size: 18px; letter-spacing: -.035em; }
.market-hero-card > span:not(.market-hero-mark) { color: #c4ccd3; font-size: 9px; line-height: 1.45; }
.market-hero-card b { margin-top: 2px; color: #a9e4ce; font-size: 9px; }

.market-category-rail {
    width: min(1320px, calc(100% - 48px));
    margin: 19px auto 0;
    padding: 0;
}
.market-category-title { margin: 0 0 8px; color: #77838e; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
#categories.categories {
    display: flex;
    grid-auto-columns: initial;
    grid-auto-flow: initial;
    gap: 9px;
    overflow-x: auto;
    padding: 1px 0 5px;
    scrollbar-width: none;
}
#categories.categories::-webkit-scrollbar { display: none; }
#categories.categories > button {
    display: flex;
    min-width: 104px;
    min-height: 70px;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid #e1e6e9;
    border-radius: 11px;
    background: rgba(255, 255, 255, .83);
    color: #52606c;
    font-size: 9px;
    font-weight: 700;
    text-align: left;
    transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}
#categories.categories > button:hover { transform: translateY(-1px); border-color: #efb1a2; background: #fff; color: #293643; }
#categories.categories > button.active { border-color: #ed593b; background: #fff4ef; color: #ad462f; box-shadow: inset 0 0 0 1px rgba(237, 89, 59, .08); }
.market-category-icon { display: grid; width: 34px !important; height: 34px !important; flex: 0 0 34px; place-items: center; padding: 6px !important; overflow: hidden; border: 1px solid #edf0f2; border-radius: 9px !important; background: #fff !important; }
.market-category-art { display: block; width: 22px; height: 22px; object-fit: contain; }
#categories.categories .group-label { min-width: 0; max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#catalog {
    width: min(1320px, calc(100% - 48px));
    max-width: 1320px;
    margin: 0 auto;
    padding: 32px 0 62px;
    scroll-margin-top: 90px;
}
.market-catalog-heading {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 11px;
    margin: 0 0 15px;
}
.market-catalog-heading h2 { margin: 0; color: #1c2936; font-size: 20px; font-weight: 760; letter-spacing: -.045em; }
.market-catalog-count { margin-right: auto; padding: 4px 8px; border: 1px solid #e4e8eb; border-radius: 999px; background: #fff; color: #798590; font-size: 9px; font-weight: 700; }
.market-catalog-count #total { display: none !important; }
.market-catalog-heading .stock-filter { display: inline-flex; align-items: center; gap: 6px; margin: 0 2px 0 auto; color: #66737f; font-size: 10px; white-space: nowrap; }
.market-catalog-heading .stock-filter input { width: 15px; height: 15px; margin: 0; accent-color: var(--market-accent); }
.market-catalog-heading select { width: auto; min-width: 150px; height: 37px; padding: 0 11px; border: 1px solid #e1e6e9; border-radius: 9px; background: #fff; color: #596673; font-size: 10px; }
.market-catalog-heading select:focus { border-color: #e9a18e; box-shadow: 0 0 0 3px rgba(237, 89, 59, .08); }
.design-toolbar, .filter-row { display: none !important; }
#products.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; }
#products .product-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e1e6e9;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(31, 44, 57, .035);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
#products .product-card:hover { transform: translateY(-2px); border-color: #d5dcdf; box-shadow: 0 11px 24px rgba(31, 44, 57, .09); }
#products .product-card:before {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    overflow: hidden;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 6px;
    background: rgba(255, 255, 255, .94);
    color: #596673;
    content: attr(data-category);
    font-size: 8px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(7px);
}
#products .design-media {
    display: flex;
    width: 100%;
    aspect-ratio: 1.58;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #e9edef;
    border-radius: 0;
    background: #edf0f1;
    cursor: pointer;
}
#products .design-media > img:not(.poster-logo) { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
#products .product-card:hover .design-media > img:not(.poster-logo) { transform: scale(1.025); }
#products .design-media.brand-poster { flex-direction: column; gap: 8px; background: radial-gradient(circle at 78% 18%, #fff, transparent 34%), linear-gradient(135deg, #e8efef, #f4e8e2); color: #1b2834; }
#products .design-media.brand-poster:before { display: none; }
#products .design-media.brand-poster > img.poster-logo { display: block; width: 52px !important; height: 52px !important; padding: 8px; border: 1px solid #e6eaec; border-radius: 15px; background: #fff; box-shadow: 0 7px 17px rgba(37, 49, 61, .09); object-fit: contain !important; }
#products .poster-mark { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid #f1b3a3; border-radius: 14px; background: #fff; color: var(--market-accent); font-size: 21px; font-weight: 800; }
#products .poster-name { max-width: 90%; color: #263541; font-size: 15px; font-weight: 760; letter-spacing: -.03em; }
#products .poster-caption { color: #8c969d; font-size: 8px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
#products .design-card-body { display: flex; min-height: 148px; flex: 1; flex-direction: column; padding: 11px 12px 10px; }
#products .product-seller { display: flex; align-items: center; gap: 4px; margin: 0 0 6px; color: #74818c; font-size: 8px; font-weight: 700; letter-spacing: .01em; text-transform: none; }
#products .product-seller:before { display: inline-grid; width: 13px; height: 13px; place-items: center; margin: 0; border-radius: 50%; background: #e8f6f1; color: #16836a; content: "✓"; font-size: 8px; }
#products .product-name { min-height: 36px; margin: 0 0 7px; color: #1f2d39; font-size: 12px; font-weight: 720; line-height: 1.4; -webkit-line-clamp: 2; }
#products .card-status { width: max-content; max-width: 100%; min-height: 21px; margin: 0 0 4px; padding: 3px 7px; border: 1px solid #d9eee6; border-radius: 999px; background: #f2faf6; color: #18775f; font-size: 8px; line-height: 1.25; }
#products .card-status:before { color: #209b78; font-size: 7px; }
#products .card-status.unavailable { border-color: #e8e9eb; background: #f6f7f8; color: #7c8790; }
#products .product-rating { width: auto; min-height: 13px; margin: 2px 0 7px; padding: 0; border: 0; background: transparent; color: #929ca5; font-size: 8px; }
#products .card-footer { display: flex; min-height: 40px; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px solid #edf0f1; }
#products .card-footer .price { color: #1d2935; font-size: 16px; font-weight: 790; letter-spacing: -.045em; white-space: nowrap; }
#products .design-buy { display: inline-flex; width: auto; min-width: 76px; height: 32px; min-height: 32px; align-items: center; justify-content: center; padding: 0 11px; border: 0; border-radius: 8px; background: #ed593b; color: #fff; box-shadow: none; font-size: 9px; font-weight: 750; transition: background .15s ease, transform .15s ease; }
#products .design-buy:hover { transform: translateY(-1px); background: #d64d33; }
#products .design-buy, .product-card .design-buy { background: var(--market-accent) !important; color: #fff !important; }
#products .design-buy:hover, .product-card .design-buy:hover { background: #d64d33 !important; }
#products .design-buy svg { display: none; }
#products .empty { grid-column: 1 / -1; padding: 36px; border: 1px dashed #d9dfe2; border-radius: 13px; background: #fff; color: #76828d; text-align: center; }

.how { width: min(1320px, calc(100% - 48px)); margin: 0 auto 56px; padding: 22px; border: 1px solid #e1e6e9; border-radius: 14px; background: #fff; }
.how > .eyebrow { margin-bottom: 7px; color: #b84a32; font-size: 8px; }
.how > h2 { margin: 0 0 14px; color: #202d39; font-size: 18px; letter-spacing: -.035em; }
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.steps article { min-height: 108px; padding: 13px; border: 1px solid #edf0f1; border-radius: 10px; background: #f8f9f9; }
.steps article > span { color: var(--market-accent); font-size: 9px; font-weight: 800; }
.steps h3 { margin: 8px 0 4px; color: #273440; font-size: 11px; }
.steps p { margin: 0; color: #76828d; font-size: 9px; line-height: 1.55; }
.design-footer { min-height: 60px; padding: 15px max(24px, calc((100% - 1320px) / 2)); border-top: 1px solid #e3e7ea; background: #fff; color: #89939c; font-size: 9px; }
.footer-link { color: #b94a32; font-size: 10px; }

.primary, .market-hero-action { border-color: var(--market-accent); background: var(--market-accent); color: #fff; }
.primary:hover, .market-hero-action:hover { border-color: #d64d33; background: #d64d33; color: #fff; }
.account-action-v2:hover, .account-utility:hover, .admin-nav-v4:hover { border-color: #efb1a2 !important; background: #fff6f2 !important; color: #b8462c !important; }
.admin-nav-v4.active, .admin-content-v4 .admin-tabs button.active, .admin-tabs button.active { border-color: #f3c2b6 !important; background: #fff1ec !important; color: #b8462c !important; }
.workspace { width: min(1320px, calc(100% - 48px)); max-width: 1320px; }

@media (max-width: 1100px) {
    .topbar { gap: 12px; padding-inline: 22px; }
    .header-identity { flex-basis: 155px; }
    .market-nav-link { padding-inline: 8px; font-size: 10px; }
    .market-hero-card { right: 30px; width: 218px; }
    #products.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .topbar { height: auto; min-height: 0; flex-wrap: wrap; gap: 7px; padding: 6px 15px; }
    .header-identity { order: 1; flex: 0 0 35px; gap: 0; margin-right: auto; }
    .header-identity > img { width: 35px; height: 35px; }
    .header-identity > div { display: none; }
    .top-actions { order: 2; gap: 6px; }
    .topbar .outline { min-height: 35px; padding-inline: 11px; font-size: 10px; }
    .balance-btn { min-width: 104px; }
    .balance-copy small { display: none; }
    .market-header-search { order: 3; width: 100%; max-width: none; min-height: 39px; flex: 0 0 100%; padding-inline: 12px; }
    .market-header-search input { height: 37px; font-size: 11px; }
    .market-nav { display: none; }
    .samurai-hero { width: calc(100% - 24px); height: 206px; margin-top: 12px; border-radius: 15px; }
    .samurai-hero:before { top: -145px; right: -135px; width: 360px; height: 360px; }
    .samurai-hero:after { display: none; }
    .market-hero-copy { width: 100%; padding: 22px 20px; }
    .market-hero-copy h1 { max-width: 410px; margin: 9px 0 7px; font-size: clamp(30px, 8vw, 37px); }
    .market-hero-description { max-width: 390px; font-size: 10px; }
    .market-hero-action { min-height: 35px; margin-top: 11px; }
    .market-hero-proof { max-width: 310px; gap: 5px 9px; margin-top: 9px; }
    .market-hero-proof span { font-size: 7px; }
    .market-hero-card { display: none; }
    .market-category-rail { width: calc(100% - 24px); margin-top: 15px; }
    .market-category-title { margin-bottom: 7px; font-size: 8px; }
    #categories.categories { gap: 7px; }
    #categories.categories > button { min-width: 100px; min-height: 54px; gap: 7px; padding-inline: 8px; font-size: 8px; }
    .market-category-icon { width: 30px !important; height: 30px !important; flex-basis: 30px; padding: 5px !important; }
    .market-category-art { width: 20px; height: 20px; }
    #catalog { width: calc(100% - 24px); padding: 22px 0 42px; scroll-margin-top: 104px; }
    .market-catalog-heading { flex-wrap: wrap; gap: 7px; margin-bottom: 11px; }
    .market-catalog-heading h2 { font-size: 18px; }
    .market-catalog-count { margin-right: auto; }
    .market-catalog-heading .stock-filter { order: 3; margin-left: auto; font-size: 9px; }
    .market-catalog-heading select { order: 4; min-width: 128px; height: 34px; font-size: 9px; }
    #products.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    #products .product-card { border-radius: 11px; }
    #products .product-card:before { top: 7px; left: 7px; max-width: calc(100% - 14px); padding: 4px 6px; font-size: 7px; }
    #products .design-media { aspect-ratio: 1.2; }
    #products .design-card-body { min-height: 151px; padding: 9px; }
    #products .product-seller { gap: 3px; margin-bottom: 5px; font-size: 7px; }
    #products .product-name { min-height: 33px; margin-bottom: 5px; font-size: 10px; }
    #products .card-status { min-height: 19px; padding: 2px 6px; font-size: 7px; }
    #products .product-rating { min-height: 12px; margin: 2px 0 5px; font-size: 7px; }
    #products .card-footer { min-height: 34px; gap: 4px; padding-top: 6px; }
    #products .card-footer .price { font-size: 13px; }
    #products .design-buy { min-width: 58px; height: 29px; min-height: 29px; padding-inline: 8px; border-radius: 7px; font-size: 8px; }
    #products .design-media.brand-poster > img.poster-logo { width: 43px !important; height: 43px !important; padding: 6px; border-radius: 12px; }
    #products .poster-name { font-size: 12px; }
    #products .poster-caption { font-size: 7px; }
    .how { width: calc(100% - 24px); margin-bottom: 36px; padding: 15px; }
    .how > h2 { font-size: 17px; }
    .steps { grid-template-columns: 1fr; gap: 7px; }
    .steps article { min-height: 0; padding: 11px; }
    .steps h3 { margin: 6px 0 3px; }
    .design-footer { min-height: 52px; padding-inline: 15px; }
    .market-detail-seller { width: auto; }
}
@media (max-width: 370px) {
    .topbar { padding-inline: 11px; }
    .market-nav-link { padding-inline: 8px; }
    #products.product-grid { grid-template-columns: 1fr; }
    #products .product-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); min-height: 128px; }
    #products .design-media { height: 100%; min-height: 128px; aspect-ratio: auto; border-right: 1px solid #e9edef; border-bottom: 0; }
    #products .design-card-body { min-height: 128px; padding: 9px; }
    #products .product-card:before { top: 6px; left: 6px; max-width: 100px; font-size: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Headerless storefront: the product carousel is the first visual anchor. */
#storefront-controls.market-controls {
    position: static;
    display: flex;
    width: min(1320px, calc(100% - 48px));
    min-height: 58px;
    align-items: center;
    gap: 12px;
    margin: 10px auto 0;
    padding: 8px 12px;
    border: 1px solid #e5e8eb;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(25, 40, 51, .035);
}
#storefront-controls .mobile-menu { display: none; }
#storefront-controls .market-header-search {
    display: flex;
    width: auto;
    max-width: none;
    min-width: 0;
    min-height: 40px;
    flex: 1 1 auto;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #e9edef;
    border-radius: 10px;
    background: #f8f9f9;
}
#storefront-controls .market-header-search input {
    width: 100%;
    height: 38px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #26333b;
    font-size: 12px;
}
.market-search-icon { color: #9aa4a8; font-size: 20px; line-height: 1; }
#storefront-controls .top-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
#storefront-controls #account-button { min-height: 40px; padding: 8px 15px; border: 1px solid #e4e8e9; border-radius: 10px; background: #fff; color: #35434a; font-size: 11px; }
#storefront-controls #account-button:hover { border-color: #efb3a3; background: #fff8f5; color: #ba4b34; }
#storefront-controls .balance-btn:not([hidden]) { min-height: 40px; min-width: 130px; grid-template-columns: 27px minmax(60px, auto) 20px; gap: 6px; padding: 4px 7px !important; border: 1px solid #f0c9be !important; border-radius: 10px !important; background: #fff7f3 !important; box-shadow: none !important; }
#storefront-controls .balance-btn .balance-art { width: 27px; height: 27px; }
#storefront-controls .balance-copy small { color: #958982; }
#storefront-controls .balance-btn .balance-value { color: #25323a; font-size: 12px; }
#storefront-controls .balance-plus { width: 20px; height: 20px; background: #e75a3c; color: #fff; font-size: 16px; box-shadow: none; }

.samurai-hero {
    position: relative;
    display: grid;
    width: min(1320px, calc(100% - 48px));
    height: auto;
    min-height: 340px;
    grid-template-columns: minmax(0, 1.2fr) minmax(230px, .8fr);
    align-items: center;
    gap: clamp(20px, 4vw, 52px);
    overflow: hidden;
    isolation: isolate;
    margin: 20px auto 0;
    padding: clamp(23px, 4vw, 48px) clamp(23px, 5vw, 62px);
    border: 1px solid #e8e2dc;
    border-radius: 24px;
    background: radial-gradient(ellipse at 91% 6%, rgba(239, 155, 124, .19), transparent 32%), linear-gradient(112deg, #fff 0%, #fffaf7 54%, #f8ece6 100%);
    box-shadow: 0 18px 45px rgba(48, 43, 39, .07);
}
.samurai-hero:before {
    position: absolute;
    z-index: -1;
    right: 10%;
    bottom: -220px;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(216, 79, 54, .09);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(216, 79, 54, .025), 0 0 0 78px rgba(216, 79, 54, .018);
    content: "";
    pointer-events: none;
}
.samurai-hero:after { display: none; }
.market-slider-copy { display: flex; min-width: 0; flex-direction: column; align-self: stretch; justify-content: space-between; gap: 18px; }
.market-slider-brand { display: flex; min-height: 43px; align-items: center; justify-content: flex-start; gap: 16px; }
.market-slider-logo { display: block; width: clamp(140px, 17vw, 190px); height: auto; object-fit: contain; }
.market-slider-brand > span { color: #a1a6a5; font-size: 9px; font-weight: 750; letter-spacing: .11em; text-align: right; text-transform: uppercase; }
.market-slider-product-copy { display: grid; max-width: 590px; gap: 10px; animation: marketSlideIn .24s ease-out both; }
.market-slider-kicker { color: #c2543d; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.market-slider-product-copy h1 { max-width: 590px; margin: 0; color: #1c2a30; font-size: clamp(28px, 3.5vw, 45px); font-weight: 760; line-height: 1.07; letter-spacing: -.045em; overflow-wrap: anywhere; }
.market-slider-description { display: -webkit-box; max-width: 500px; overflow: hidden; margin: 0; color: #778186; font-size: 13px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.market-slider-price { margin-top: 2px; color: #1d2c32; font-size: clamp(23px, 2.4vw, 31px); font-weight: 800; letter-spacing: -.045em; }
.market-slider-action { width: max-content; min-height: 42px; margin-top: 2px; padding: 0 18px; border: 0; border-radius: 10px; background: #e65a3c; color: #fff; font-size: 12px; font-weight: 750; box-shadow: 0 8px 18px rgba(211, 76, 50, .17); }
.market-slider-action:hover { transform: translateY(-1px); background: #cc4c33; color: #fff; }
.market-slider-proof { display: flex; min-height: 14px; flex-wrap: wrap; gap: 8px 16px; color: #8a9496; font-size: 10px; }
.market-slider-art { display: grid; min-width: 0; place-items: center; }
.market-slider-poster { display: flex; width: min(100%, 320px); aspect-ratio: 1.05; flex-direction: column; align-items: center; justify-content: center; gap: 12px; overflow: hidden; padding: 24px; border: 1px solid rgba(255, 255, 255, .86); border-radius: 25px; background: radial-gradient(circle at 76% 18%, #fff 0, transparent 38%), linear-gradient(145deg, #e5eeeb, #f3ddd3); box-shadow: 0 24px 48px rgba(50, 43, 39, .13); transform: rotate(2deg); }
.market-slider-poster > img:not(.poster-logo) { display: block; width: 100%; height: 100%; object-fit: contain; }
.market-slider-poster.brand-poster { background: radial-gradient(circle at 82% 14%, rgba(255, 255, 255, .95), transparent 33%), linear-gradient(145deg, #e7eeeb, #f4e2d9); color: #26343a; }
.market-slider-poster.brand-poster .poster-logo { width: 86px !important; height: 86px !important; padding: 12px; border: 1px solid #e7eaeb; border-radius: 23px; background: #fff; object-fit: contain !important; }
.market-slider-poster .poster-name { color: #26343a; font-size: 22px; }
.market-slider-poster .poster-caption { color: #8d999c; font-size: 9px; }
.market-slider-controls { display: flex; min-height: 34px; align-items: center; gap: 8px; }
.market-slider-arrow { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid #e2e5e3; border-radius: 50%; background: #fff; color: #39484e; font-size: 17px; line-height: 1; }
.market-slider-arrow:hover:not(:disabled) { border-color: #df7057; color: #c65037; }
.market-slider-arrow:disabled { opacity: .4; cursor: default; }
.market-slider-page { min-width: 38px; color: #7d898e; font-size: 10px; font-variant-numeric: tabular-nums; text-align: center; }
.market-slider-dots { display: flex; align-items: center; gap: 5px; margin-left: 4px; }
.market-slider-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 9px; background: #d5dbd9; transition: width .18s ease, background .18s ease; }
.market-slider-dot.active { width: 21px; background: #e65a3c; }
@keyframes marketSlideIn { from { opacity: .35; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.market-category-rail { width: min(1320px, calc(100% - 48px)); margin: 21px auto 0; }
.market-category-title { margin: 0 0 8px; color: #929c9e; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.market-category-rail #categories { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 5px; }
.market-category-rail #categories > button { display: inline-flex; min-height: 43px; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid #e5e9e9; border-radius: 11px; background: #fff; color: #5e6b70; font-size: 10px; white-space: nowrap; }
.market-category-rail #categories > button.active { border-color: #edb6a8; background: #fff7f3; color: #b84932; }
.market-category-rail .market-category-icon { display: grid; width: 24px !important; height: 24px !important; flex: 0 0 24px; place-items: center; padding: 4px !important; border: 0 !important; border-radius: 7px !important; background: #f5f6f5 !important; }
.market-category-art { width: 16px; height: 16px; object-fit: contain; }
.market-catalog-heading { width: min(1320px, calc(100% - 48px)); margin: 25px auto 12px; }
#catalog { width: 100%; padding: 0 0 50px; }
#catalog .design-toolbar { width: min(1320px, calc(100% - 48px)); margin: 0 auto; }
#products.product-grid { width: min(1320px, calc(100% - 48px)); margin: 14px auto 0; }
#products .card-status[hidden] { display: none !important; }
.purchase-ribbon { width: min(1320px, calc(100% - 48px)); margin: 12px auto 0; }
.design-footer { width: 100%; }
.market-footer-grid { width: min(1320px, 100%); }
.market-footer-brand img { width: 155px; height: auto; }

@media (max-width: 980px) {
    #storefront-controls.market-controls { width: calc(100% - 36px); }
    #storefront-controls .mobile-menu { display: inline-flex; width: 40px; min-width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid #e6e9e9; border-radius: 10px; background: #fff; color: #455158; font-size: 20px; }
    .samurai-hero, .market-category-rail, .market-catalog-heading, #catalog .design-toolbar, #products.product-grid, .purchase-ribbon { width: calc(100% - 36px); }
    .samurai-hero { min-height: 310px; grid-template-columns: minmax(0, 1.1fr) minmax(190px, .8fr); }
    .market-slider-poster { max-width: 260px; }
}
@media (max-width: 700px) {
    #storefront-controls.market-controls { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; min-height: 0; margin-top: 9px; padding: 8px; }
    #storefront-controls .top-actions { grid-column: 2; grid-row: 1; justify-content: flex-end; }
    #storefront-controls .mobile-menu { grid-column: 1; grid-row: 1; }
    #storefront-controls .market-header-search { grid-column: 1 / -1; grid-row: 2; width: 100%; }
    #storefront-controls #account-button { min-height: 36px; padding-inline: 11px; }
    #storefront-controls .balance-btn:not([hidden]) { min-width: 116px; min-height: 36px; grid-template-columns: 24px minmax(55px, auto) 19px; }
    #storefront-controls .balance-btn .balance-art { width: 24px; height: 24px; }
    .samurai-hero { min-height: 280px; grid-template-columns: minmax(0, 1fr) 128px; gap: 10px; margin-top: 12px; padding: 18px 16px; border-radius: 18px; }
    .market-slider-copy { gap: 13px; }
    .market-slider-brand { min-height: 31px; gap: 6px; }
    .market-slider-logo { width: min(145px, 42vw); }
    .market-slider-product-copy { gap: 7px; }
    .market-slider-product-copy h1 { font-size: clamp(21px, 6vw, 30px); }
    .market-slider-description { font-size: 10px; -webkit-line-clamp: 2; }
    .market-slider-price { font-size: 21px; }
    .market-slider-action { min-height: 35px; padding-inline: 12px; font-size: 10px; }
    .market-slider-proof { gap: 4px 8px; font-size: 8px; }
    .market-slider-poster { width: 100%; max-width: 138px; aspect-ratio: .88; gap: 8px; padding: 9px; border-radius: 16px; }
    .market-slider-poster.brand-poster .poster-logo { width: 44px !important; height: 44px !important; padding: 6px; border-radius: 13px; }
    .market-slider-poster .poster-name { font-size: 13px; }
    .market-slider-poster .poster-caption { font-size: 6px; }
    .market-slider-controls { gap: 5px; }
    .market-slider-arrow { width: 27px; height: 27px; }
    .market-slider-dot { width: 6px; height: 6px; }
    .market-slider-dot.active { width: 15px; }
    .market-category-rail { margin-top: 16px; }
    .market-catalog-heading { margin-top: 21px; }
    #catalog .design-toolbar { display: none; }
    #products.product-grid { margin-top: 0; }
    .purchase-ribbon { margin-top: 10px; }
}
@media (max-width: 430px) {
    .samurai-hero, .market-category-rail, .market-catalog-heading, #catalog .design-toolbar, #products.product-grid, .purchase-ribbon { width: calc(100% - 24px); }
    #storefront-controls.market-controls { width: calc(100% - 24px); }
    .samurai-hero { min-height: 265px; grid-template-columns: minmax(0, 1fr) 104px; gap: 6px; padding: 15px 12px; }
    .market-slider-logo { width: min(130px, 38vw); }
    .market-slider-product-copy h1 { font-size: clamp(19px, 5.8vw, 25px); }
    .market-slider-description { font-size: 9px; }
    .market-slider-poster { max-width: 112px; min-height: 126px; padding: 7px; }
    .market-slider-controls { gap: 3px; }
    .market-slider-page { min-width: 31px; font-size: 8px; }
    .market-slider-dots { gap: 4px; margin-left: 1px; }
}
@media (max-width: 360px) {
    .samurai-hero { min-height: 250px; grid-template-columns: minmax(0, 1fr) 88px; }
    .market-slider-poster { max-width: 96px; }
    .market-slider-product-copy h1 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
    .market-slider-product-copy { animation: none; }
    .market-slider-dot { transition: none; }
}
