/* ShopAccount 2026 — Secure Merchant Ledger
   This layer intentionally overrides the legacy visual experiments in site.css
   while preserving existing page structure and behavior. */

:root {
    --brand: #3156c8;
    --brand-strong: #2445ae;
    --brand-soft: #edf1ff;
    --brand-2: #087f70;
    --accent: #e7a13a;
    --accent-soft: #fff6e8;
    --success: #087f70;
    --success-soft: #e9f6f2;
    --warning: #b86a08;
    --warning-soft: #fff4df;
    --danger: #c43d4f;
    --danger-soft: #fff0f2;
    --ink: #18201d;
    --muted: #64706b;
    --line: #dce2dd;
    --line-strong: #c8d0ca;
    --cream: #f3f5f2;
    --paper: #ffffff;
    --rail-surface: #153b35;
    --rail-surface-deep: #0f302b;
    --rail-text: #d9ebe5;
    --rail-muted: #9ab9b0;
    --focus: #3156c8;
    --shadow: 0 1px 2px rgba(24, 32, 29, .04);
    --shadow-raised: 0 12px 30px rgba(24, 32, 29, .09);
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --rail: 248px;
    --topbar: 72px;
    color-scheme: light;
}

html {
    background: var(--cream);
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--cream);
    color: var(--ink);
    font-family: "Segoe UI Variable Text", "Aptos", "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

body,
button,
input,
select,
textarea {
    font-family: "Segoe UI Variable Text", "Aptos", "Segoe UI", sans-serif;
}

h1,
h2,
h3,
.brand b,
.mock-kpi strong,
.metric-grid strong {
    font-family: "Segoe UI Variable Display", "Aptos Display", "Segoe UI", sans-serif;
}

code,
kbd,
pre,
.metric-grid strong,
.mock-kpi strong,
.data-row > span:nth-last-child(-n+2),
.mock-tr > span:has(b) {
    font-family: "Cascadia Mono", "IBM Plex Mono", Consolas, monospace;
    font-variant-numeric: tabular-nums;
}

h1,
h2,
h3 {
    color: var(--ink);
    font-weight: 720;
    letter-spacing: -.025em;
    text-wrap: balance;
    scroll-margin-top: calc(var(--topbar) + var(--space-4));
}

p {
    text-wrap: pretty;
}

img {
    max-width: 100%;
}

::selection {
    background: #cbd7ff;
    color: #12225a;
}

.skip-link {
    position: fixed;
    top: var(--space-3);
    left: var(--space-3);
    z-index: 1000;
    translate: 0 -160%;
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink);
    padding: var(--space-3) var(--space-4);
    box-shadow: var(--shadow-raised);
    font-weight: 700;
    transition: translate .16s ease;
}

.skip-link:focus {
    translate: 0;
}

a,
button,
input,
select,
textarea,
summary,
[role="button"] {
    -webkit-tap-highlight-color: rgba(49, 86, 200, .14);
    touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent);
    outline-offset: 2px;
}

button,
.button,
.mock-primary,
.mock-secondary,
.table-action,
.danger-action,
.topup-button,
.plain-action {
    min-height: 40px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

button:not(:disabled),
.button,
.mock-primary,
.mock-secondary,
.table-action,
.danger-action,
.topup-button {
    cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.mock-primary,
.button,
.topup-button,
.buy-form button,
.product-card-actions a.buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    border: 1px solid var(--brand);
    background: var(--brand);
    color: #fff;
    box-shadow: none;
}

.mock-primary:hover,
.button:hover,
.topup-button:hover,
.buy-form button:hover,
.product-card-actions a.buy:hover {
    border-color: var(--brand-strong);
    background: var(--brand-strong);
    box-shadow: 0 6px 16px rgba(49, 86, 200, .18);
    transform: translateY(-1px);
}

.mock-secondary,
.table-action,
.welcome-secondary,
.plain-action {
    border: 1px solid var(--line-strong);
    background: var(--paper);
    color: var(--ink);
}

.mock-secondary:hover,
.table-action:hover,
.welcome-secondary:hover,
.plain-action:hover {
    border-color: #aebbd8;
    background: #f7f9ff;
    color: var(--brand-strong);
    transform: none;
}

.danger-action {
    border: 1px solid #ebc9cf;
    background: var(--danger-soft);
    color: var(--danger);
}

.danger-action:hover {
    border-color: #ddaab2;
    background: #ffe7eb;
}

body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body select,
body textarea {
    min-height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink);
    padding: 9px 12px;
    font-size: 14px;
    line-height: 1.35;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

body textarea {
    min-height: 96px;
    resize: vertical;
}

body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
body select:focus,
body textarea:focus {
    outline: 0;
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgba(49, 86, 200, .13);
}

body input::placeholder,
body textarea::placeholder {
    color: #8b9691;
    opacity: 1;
}

body label {
    color: #39433f;
    font-size: 13px;
    font-weight: 650;
}

body .check {
    font-size: 13px;
    font-weight: 500 !important;
}

body input[type="checkbox"],
body input[type="radio"] {
    width: 17px;
    height: 17px;
    accent-color: var(--brand);
}

.validation,
.field-validation-error {
    display: block;
    color: var(--danger);
    font-size: 13px;
    line-height: 1.45;
}

/* App shell */
.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
}

.side-rail {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 0 var(--space-3) var(--space-5);
    border: 0;
    background: linear-gradient(180deg, var(--rail-surface), var(--rail-surface-deep));
    color: var(--rail-text);
    box-shadow: none;
    scrollbar-width: thin;
    scrollbar-color: #4a7067 transparent;
}

.brand {
    height: 76px;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: 0;
    padding: 0 var(--space-2);
    color: #fff;
    font-size: 20px;
}

.brand span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: var(--radius-md);
    background: #f8fbfa;
    color: var(--rail-surface);
    box-shadow: none;
    font-size: 20px;
    transform: none;
}

.brand b {
    letter-spacing: -.025em;
}

.brand i {
    margin-left: auto;
    color: var(--rail-muted);
}

.rail-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.rail-nav small {
    margin: var(--space-5) var(--space-3) var(--space-2);
    color: var(--rail-muted);
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .08em;
}

.rail-nav a {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    color: var(--rail-text);
    font-size: 13px;
    font-weight: 600;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.rail-nav a .ui-icon,
.rail-nav a i {
    width: 18px;
    color: #b8d2ca;
    transition: color .16s ease;
}

.rail-nav a:hover,
.rail-nav a:focus-visible {
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    transform: none;
}

.rail-nav a.active {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .13);
    color: #fff;
    box-shadow: inset 3px 0 0 #8ed7c5;
}

.rail-nav a.active .ui-icon,
.rail-nav a:hover .ui-icon {
    color: #fff;
    transform: none;
}

.vip-card,
.rail-support {
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .06);
    color: var(--rail-text);
    box-shadow: none;
}

.vip-card b,
.rail-support b {
    color: #fff;
    font-size: 13px;
}

.vip-card small,
.rail-support p {
    color: var(--rail-muted);
    font-size: 11px;
}

.vip-card progress {
    accent-color: #7fd5be;
}

.vip-card > a,
.rail-support > a {
    min-height: 36px;
    display: grid;
    place-items: center;
    border-color: rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 11px;
}

.rail-support {
    margin-top: auto;
}

.rail-support > span {
    background: rgba(112, 220, 178, .14);
    color: #93e7c7;
    animation: none;
}

.workspace {
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--topbar);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    padding: 0 var(--space-8);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.global-search {
    width: min(620px, 52vw);
    height: 42px;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fbfcfb;
    padding: 0 var(--space-3);
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.global-search:focus-within {
    border-color: var(--focus);
    background: var(--paper);
    box-shadow: 0 0 0 3px rgba(49, 86, 200, .12);
}

.global-search input[type="search"] {
    min-height: 38px;
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.global-search input[type="search"]:focus {
    border: 0;
    box-shadow: none;
}

.global-search kbd {
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    background: var(--paper);
    color: var(--muted);
    padding: 2px 6px;
    font-size: 10px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.topup-button {
    padding-inline: var(--space-4);
}

.admin-access-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    border: 1px solid #b9ded2;
    border-radius: var(--radius-sm);
    background: var(--success-soft);
    color: #075e52;
    padding: 9px var(--space-4);
    font-size: 13px;
    font-weight: 750;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.admin-access-button:hover {
    border-color: #8ec8b7;
    background: #dff1eb;
    color: #064b43;
}

.admin-access-button .ui-icon {
    width: 16px;
    height: 16px;
}

.top-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: #4d5a55;
}

.top-icon:hover {
    border-color: var(--line);
    background: var(--cream);
    color: var(--brand);
    transform: none;
}

.top-icon b {
    border: 2px solid #fff;
    background: var(--danger);
    font-size: 8px;
}

.account-chip {
    min-width: 170px;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    border-left: 1px solid var(--line);
    padding-left: var(--space-4);
}

.account-chip > span {
    background: var(--rail-surface);
    color: #fff;
    box-shadow: none;
}

.account-chip small {
    font-size: 11px;
}

.mobile-nav-toggle,
.nav-scrim {
    display: none;
}

.workspace-main {
    min-width: 0;
    flex: 1;
}

/* Shared surface language */
.mock-page,
.admin-page,
.section-shell,
.table-shell,
.api-layout,
.blog-grid {
    padding: var(--space-8);
}

.mock-page-title,
.admin-title,
.catalog-heading {
    margin-bottom: var(--space-6);
}

.mock-page-title h1,
.admin-title h1,
.catalog-heading h1,
.catalog-heading h2,
.page-hero h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(28px, 2.3vw, 36px);
    line-height: 1.12;
}

.mock-page-title > p:last-child,
.admin-title p:not(.eyebrow),
.catalog-subtitle {
    max-width: 720px;
    margin: var(--space-2) 0 0;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb {
    margin: 0 0 var(--space-2);
    color: var(--muted);
    font-size: 12px;
}

.admin-title .eyebrow,
.mock-page-title .eyebrow,
.hero .eyebrow,
.dashboard-welcome .welcome-kicker {
    display: none;
}

.mock-panel,
.admin-panel,
.mock-kpi,
.shop-product-card,
.metric-grid > div,
.admin-form,
.order-card,
.faq-list details,
.contact-grid > div,
.blog-grid article,
.login-form-panel,
.login-shell-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.mock-panel,
.admin-panel,
.mock-kpi,
.shop-product-card {
    animation: none;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.mock-panel:hover,
.admin-panel:hover {
    border-color: var(--line-strong);
}

.panel-heading,
.admin-panel > header {
    min-height: 64px;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--line);
}

.panel-heading h2,
.admin-panel h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}

.panel-heading p,
.panel-heading small,
.admin-panel header small {
    margin: var(--space-1) 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.panel-heading > a,
.panel-bottom-link,
.admin-panel header > a {
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
}

.notice {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: var(--space-3) var(--space-4);
    font-size: 14px;
    font-weight: 600;
}

.notice-success {
    border-color: #b9ded2;
    background: var(--success-soft);
    color: #075e52;
}

.notice-error,
.notice-danger {
    border-color: #ecc7ce;
    background: var(--danger-soft);
    color: #9a2e3d;
}

.empty-inline,
.empty-state {
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fafbfa;
    color: var(--muted);
    padding: var(--space-6);
    font-size: 14px;
    text-align: center;
}

.status-pill {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: 3px 8px;
    background: transparent;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.status-pill.success {
    border-color: #b9ded2;
    background: var(--success-soft);
    color: #076c5f;
}

.status-pill.warning {
    border-color: #efd1a6;
    background: var(--warning-soft);
    color: #9b5907;
}

.status-pill.danger {
    border-color: #ecc7ce;
    background: var(--danger-soft);
    color: #aa3141;
}

.status-pill.purple,
.status-pill.blue {
    border-color: #cbd4f2;
    background: var(--brand-soft);
    color: var(--brand-strong);
}

/* Receipt-edge signature for primary transactional surfaces */
.dashboard-welcome,
.mock-panel.span-2,
.payment-method-card,
.deposit-reconcile-panel,
.admin-grid > .admin-panel:first-child {
    position: relative;
    overflow: hidden;
}

.dashboard-welcome::before,
.mock-panel.span-2::before,
.payment-method-card::before,
.deposit-reconcile-panel::before,
.admin-grid > .admin-panel:first-child::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    width: 7px;
    background: radial-gradient(circle at 0 8px, var(--cream) 4px, transparent 4.5px) 0 0 / 8px 16px repeat-y;
    pointer-events: none;
}

/* Customer dashboard */
.dashboard-welcome {
    min-height: 190px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-bottom: var(--space-4);
    padding: var(--space-8) var(--space-10);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow);
    animation: none;
}

.dashboard-welcome > div:first-child {
    max-width: 760px;
}

.dashboard-welcome h1 {
    margin: 0 0 var(--space-3);
    color: var(--ink);
    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.04;
}

.dashboard-welcome h1 em {
    color: var(--success);
    font-style: normal;
}

.dashboard-welcome p {
    max-width: 650px;
    color: var(--muted);
    font-size: 15px;
}

.welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-5);
}

.dashboard-welcome .mock-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: none;
}

.welcome-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 40px;
    padding: 9px var(--space-4);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: none;
}

.welcome-orbit {
    display: none;
}

.mock-kpi-grid {
    display: grid;
    gap: 0;
    margin-bottom: var(--space-4);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--paper);
}

.mock-kpi-grid.five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mock-kpi {
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    padding: var(--space-4);
    box-shadow: none;
}

.mock-kpi:last-child {
    border-right: 0;
}

.mock-kpi:hover {
    z-index: 1;
    background: #fafbfa;
    box-shadow: none;
    transform: none;
}

.kpi-icon,
.metric-icon,
.quick-action-grid i {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #f7f9f7;
    color: var(--ink);
}

.kpi-icon.blue,
.metric-icon.blue,
.quick-action-grid i.blue {
    border-color: #ccd6f5;
    background: var(--brand-soft);
    color: var(--brand);
}

.kpi-icon.green,
.metric-icon.green,
.quick-action-grid i.green {
    border-color: #b9ded2;
    background: var(--success-soft);
    color: var(--success);
}

.kpi-icon.purple,
.metric-icon.purple,
.quick-action-grid i.purple {
    border-color: #efd4aa;
    background: var(--accent-soft);
    color: #9f620e;
}

.kpi-icon.orange,
.metric-icon.orange,
.quick-action-grid i.orange {
    border-color: #efd4aa;
    background: var(--warning-soft);
    color: var(--warning);
}

.mock-kpi small {
    color: var(--muted);
    font-size: 12px;
}

.mock-kpi strong {
    display: block;
    margin: var(--space-1) 0;
    color: var(--ink);
    font-size: clamp(17px, 1.4vw, 22px);
    letter-spacing: -.035em;
}

.mock-kpi em {
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
}

.dashboard-main-grid {
    gap: var(--space-4);
}

.quick-action-grid {
    gap: var(--space-2);
    padding: var(--space-4);
}

.quick-action-grid a {
    min-height: 112px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: var(--space-3) var(--space-2);
}

.quick-action-grid a:hover {
    border-color: var(--line);
    background: #fafbfa;
    transform: none;
}

.quick-action-grid b {
    font-size: 12px;
}

.quick-action-grid small {
    font-size: 11px;
}

/* Tables and data density */
.mock-table,
.data-table,
.mini-check-table,
.deposit-reconcile-table,
.admin-order-table,
.users-management-table,
.warehouse-modern-table {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    overscroll-behavior-block: auto;
    scrollbar-width: thin;
}

.mock-tr,
.data-row,
.compact-order,
.history-row,
.favorite-row {
    min-height: 48px;
    color: var(--ink);
    font-size: 13px;
}

.mock-tr,
.data-row {
    border-bottom: 1px solid #e9edea;
    padding: 11px var(--space-4);
}

.mock-tr:not(.mock-th):hover,
.data-row:not(.data-head):hover {
    background: #f8faf8;
}

.mock-th,
.data-head {
    min-height: 42px;
    background: #f7f9f7;
    color: #59655f;
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .01em;
    text-transform: none;
}

.product-cell b,
.user-cell b {
    font-size: 13px;
}

.product-cell small,
.user-cell small,
.mock-tr small,
.data-row small {
    color: var(--muted);
    font-size: 11px;
}

/* Catalog */
.catalog-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 var(--space-5);
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.catalog-heading-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid #b9ded2;
    border-radius: var(--radius-md);
    background: var(--success-soft);
    color: var(--success);
    box-shadow: none;
}

.category-carousel {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    margin: var(--space-4) 0;
    padding-bottom: var(--space-1);
}

.category-carousel a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--paper);
    padding: 8px var(--space-4);
    box-shadow: none;
    font-size: 13px;
}

.category-carousel a:hover {
    border-color: #aebbd8;
    background: #f7f9ff;
    box-shadow: none;
    transform: none;
}

.category-carousel a.active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    box-shadow: none;
}

.catalog-filter {
    gap: var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--paper);
    padding: var(--space-4);
    box-shadow: none;
}

.catalog-filter label {
    font-size: 12px;
}

.catalog-toolbar {
    color: var(--muted);
    font-size: 13px;
}

.shop-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
}

.shop-product-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: none;
}

.shop-product-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-raised);
    transform: translateY(-2px);
}

.shop-product-art {
    height: 184px;
    margin: 0;
    border-radius: 0;
    background: #eef2ee;
}

.shop-product-art::after,
.product-hot {
    display: none;
}

.shop-product-art > small {
    left: var(--space-3);
    bottom: var(--space-3);
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: var(--radius-xs);
    background: rgba(255, 255, 255, .9);
    color: var(--ink);
    font-size: 11px;
    backdrop-filter: blur(6px);
}

.shop-product-copy {
    padding: var(--space-4);
}

.product-rating span,
.product-rating small,
.shop-product-copy > p,
.stock-rating > span,
.shop-price div > small {
    font-size: 11px;
}

.shop-product-copy h3 {
    min-height: 44px;
    margin: var(--space-2) 0;
    font-size: 16px;
}

.shop-price strong {
    color: var(--ink);
    font-size: 20px;
}

.product-card-actions a {
    min-height: 40px;
    border-radius: var(--radius-sm);
    font-size: 12px;
}

/* Admin */
.admin-title {
    align-items: flex-end;
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--line);
}

.admin-title > span {
    color: var(--muted);
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 12px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--paper);
}

.metric-grid > div {
    min-height: 120px;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    padding: var(--space-5);
    box-shadow: none;
}

.metric-grid > div:last-child {
    border-right: 0;
}

.metric-grid small {
    margin-left: 52px;
    color: var(--muted);
    font-size: 11px;
}

.metric-grid strong {
    margin: var(--space-2) 0 var(--space-1) 52px;
    color: var(--ink);
    font-size: clamp(21px, 2vw, 28px);
}

.metric-grid em {
    margin-left: 52px;
    color: var(--muted);
    font-size: 11px;
}

.admin-grid {
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.admin-panel {
    border-radius: var(--radius-md);
    box-shadow: none;
}

.admin-form-grid label,
.bank-settings-fields label,
.bank-editor-fields label,
.gateway-form-grid label,
.readonly-settings,
.compact-form label {
    color: #39433f;
    font-size: 13px;
}

.admin-form-grid small,
.bank-settings-fields small,
.bank-editor-fields small,
.gateway-form-grid small {
    color: var(--muted);
    font-size: 11px;
}

/* Wallet and purchase flows */
.payment-tabs {
    gap: 0;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--paper);
}

.payment-tabs button {
    min-width: 170px;
    border-right: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
}

.payment-tabs button:last-child {
    border-right: 0;
}

.payment-tabs button.active {
    background: var(--brand-soft);
    color: var(--brand-strong);
    box-shadow: inset 0 -2px 0 var(--brand);
}

.deposit-step {
    padding: var(--space-5);
}

.deposit-step h2 {
    font-size: 16px;
}

.amount-selector button,
.gateway-selector label {
    min-height: 44px;
    border-color: var(--line-strong);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.gateway-selector b,
.gateway-selector small,
.deposit-totals,
.bank-transfer-box,
.transaction-state,
.vertical-process b,
.vertical-process small,
.promo-item b,
.promo-item small,
.wallet-help a,
.safety-card p {
    font-size: 12px;
}

.bank-transfer-box {
    border-radius: var(--radius-sm);
}

.wallet-page-grid {
    gap: var(--space-4);
}

.product-showcase,
.purchase-card,
.verification-card,
.total-card {
    border-radius: var(--radius-md);
    box-shadow: none;
}

.product-thumbs button[data-gallery-thumb],
.product-thumbs > span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--muted);
    padding: 0;
}

.product-thumbs button[data-gallery-thumb].active,
.product-thumbs > span.active {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(49, 86, 200, .12);
}

.product-thumbs button[data-gallery-thumb] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-intro h1 {
    font-size: clamp(28px, 3vw, 42px);
}

.detail-price,
.grand-total strong {
    color: var(--success);
}

.checkout-steps {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--paper);
}

.checkout-steps span {
    min-height: 74px;
}

/* Authentication */
.login-shell-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow-raised);
}

.login-promo {
    background: var(--rail-surface);
    color: #fff;
}

.login-promo h1,
.promo-brand {
    color: #fff;
}

.login-promo h1 em {
    color: #93e7c7;
}

.login-promo > p,
.login-benefits small {
    color: var(--rail-muted);
}

.login-illustration {
    opacity: .15;
    filter: grayscale(1);
}

.trust-strip {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
}

.trust-strip b {
    color: #fff;
}

.trust-strip small {
    color: var(--rail-muted);
}

.login-form-panel {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.input-with-icon {
    min-height: 44px;
    border-color: var(--line-strong);
    border-radius: var(--radius-sm);
}

.input-with-icon:focus-within {
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgba(49, 86, 200, .12);
}

.input-with-icon input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
    border: 0;
    box-shadow: none;
}

/* Marketing surfaces stay subordinate to the product workflow */
.storefront-marketing-banner,
.storefront-flash-strip a,
.storefront-popup {
    border-color: var(--line);
    border-radius: var(--radius-md);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.storefront-marketing-banner {
    margin: var(--space-4) var(--space-8) 0;
}

.storefront-marketing-banner strong {
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: #9b5c07;
}

.storefront-popup {
    box-shadow: var(--shadow-raised);
}

.site-footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-6);
    margin-top: auto;
    border-top: 1px solid var(--line);
    background: var(--paper);
    padding: var(--space-8);
    color: var(--muted);
    font-size: 13px;
}

.site-footer strong {
    color: var(--ink);
}

/* Responsive */
@media (max-width: 1400px) {
    :root {
        --rail: 224px;
    }

    .mock-kpi-grid.five {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mock-kpi:nth-child(3) {
        border-right: 0;
    }

    .mock-kpi:nth-child(n + 4) {
        border-top: 1px solid var(--line);
    }

    .shop-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .mock-page,
    .admin-page,
    .section-shell,
    .table-shell,
    .api-layout,
    .blog-grid {
        padding: var(--space-6);
    }

    .dashboard-main-grid,
    .wallet-page-grid,
    .admin-grid,
    .product-builder-grid,
    .order-summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wallet-aside {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .metric-grid > div:nth-child(2) {
        border-right: 0;
    }

    .metric-grid > div:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 850px) {
    :root {
        --topbar: 64px;
    }

    .app-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .side-rail {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(292px, 86vw);
        height: 100dvh;
        transform: translateX(-102%);
        transition: transform .2s ease;
    }

    body.nav-open {
        overflow: hidden;
    }

    body.nav-open .side-rail {
        transform: translateX(0);
    }

    .nav-scrim {
        position: fixed;
        inset: 0;
        z-index: 45;
        width: 100%;
        height: 100%;
        border: 0;
        border-radius: 0;
        background: rgba(13, 31, 27, .48);
    }

    body.nav-open .nav-scrim {
        display: block;
    }

    .mobile-nav-toggle {
        width: 42px;
        height: 42px;
        display: grid;
        flex: 0 0 42px;
        place-items: center;
        border: 1px solid var(--line);
        background: var(--paper);
        color: var(--ink);
    }

    .topbar {
        gap: var(--space-3);
        padding: 0 var(--space-4);
    }

    .global-search {
        width: auto;
        flex: 1;
    }

    .global-search kbd,
    .top-icon,
    .account-chip small,
    .plain-action {
        display: none;
    }

    .account-chip {
        min-width: auto;
        border-left: 0;
        padding-left: 0;
    }

    .dashboard-welcome {
        min-height: 0;
        padding: var(--space-6);
    }

    .dashboard-welcome > div:first-child {
        max-width: none;
    }

    .mock-kpi-grid.five {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mock-kpi,
    .mock-kpi:nth-child(3) {
        border-right: 1px solid var(--line);
    }

    .mock-kpi:nth-child(even) {
        border-right: 0;
    }

    .mock-kpi:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .shop-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wallet-aside {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-footer {
        grid-template-columns: 1fr;
        padding: var(--space-6);
    }

    .storefront-marketing-banner {
        margin-inline: var(--space-4);
    }
}

@media (max-width: 640px) {
    .mock-page,
    .admin-page,
    .section-shell,
    .table-shell,
    .api-layout,
    .blog-grid {
        padding: var(--space-4);
    }

    .topup-button {
        min-width: 40px;
        padding: 9px var(--space-3);
    }

    .account-chip {
        display: none;
    }

    .admin-access-button {
        width: 40px;
        flex: 0 0 40px;
        padding: 0;
    }

    .admin-access-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .mock-page-title h1,
    .admin-title h1,
    .catalog-heading h1,
    .catalog-heading h2 {
        font-size: 26px;
    }

    .dashboard-welcome h1 {
        font-size: 30px;
    }

    .mock-kpi-grid.five,
    .metric-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mock-kpi,
    .mock-kpi:nth-child(3),
    .mock-kpi:nth-child(even),
    .metric-grid > div,
    .metric-grid > div:nth-child(2) {
        border-right: 0;
    }

    .mock-kpi:nth-child(n + 2),
    .metric-grid > div:nth-child(n + 2) {
        border-top: 1px solid var(--line);
    }

    .shop-product-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .shop-product-art {
        height: 220px;
    }

    .catalog-heading-icon {
        display: none;
    }

    .catalog-filter {
        grid-template-columns: minmax(0, 1fr);
    }

    .amount-selector {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gateway-selector,
    .crypto-methods,
    .bank-transfer-box {
        grid-template-columns: minmax(0, 1fr);
    }

    .login-shell-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .login-promo {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
