:root {
    color-scheme: light;
    --ink: #061f52;
    --muted: #52627a;
    --soft: #eef4ff;
    --line: #ffe0bc;
    --paper: #f6f8ff;
    --panel: #ffffff;
    --accent: #08329e;
    --accent-dark: #062679;
    --gold: #ffc500;
    --gold-soft: #fff3d6;
    --blue: #2563eb;
    --danger: #b42318;
    --shadow: 0 14px 32px rgba(26, 18, 7, .09);
    --radius: 10px;
    --ps-screen-gutter: 20px;
    --ps-section-gap: 18px;
    --ps-block-gap: 12px;
    --ps-app-max-width: 520px;
    --ps-tabbar-float-gap: 6px;
    --ps-tabbar-shell-height: 54px;
    --ps-tabbar-offset: calc(var(--ps-tabbar-shell-height) + var(--ps-tabbar-float-gap) + 10px);
    --ps-tabbar-sticky-base: calc(max(var(--ps-tabbar-float-gap), env(safe-area-inset-bottom)) + var(--ps-tabbar-shell-height));
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Nunito, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--paper);
    color: var(--ink);
    min-height: 100vh;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.ps-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 18px 120px;
}

.ps-topbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    padding: 12px max(var(--ps-screen-gutter), env(safe-area-inset-right)) 12px max(var(--ps-screen-gutter), env(safe-area-inset-left));
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 40;
}

.ps-brand { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); font-weight: 800; }
.ps-brand-mark {
    width: 38px; height: 38px; border-radius: 10px;
    display: grid; place-items: center;
    background: #061f52; color: #fff; font-weight: 900;
    overflow: hidden;
}
.ps-brand-mark img, .ps-brand-mark svg { width: 38px; height: 38px; display: block; }
.ps-brand-name { display: block; font-size: 18px; line-height: 1; color: #061f52; }
.ps-brand-name strong { color: var(--accent); }
.ps-brand-sub { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; font-weight: 500; }

.ps-brand-wordmark {
    display: none;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .06em;
    color: #061f52;
    white-space: nowrap;
    line-height: 1;
}
.ps-brand-wordmark strong { color: var(--accent); }

.ps-topbar-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.ps-topbar-nav a {
    color: var(--ink);
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 8px;
}
.ps-topbar-nav a:hover { background: var(--soft); text-decoration: none; }

.ps-topbar-actions { display: flex; gap: 10px; align-items: center; }
.ps-user-pill {
    background: var(--soft);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--accent-dark);
    font-weight: 700;
}
.ps-user-pill small { color: var(--muted); font-weight: 600; }

.ps-coins-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff4d6;
    border: 1px solid #ffc500;
    border-radius: 999px;
    padding: 4px 10px 4px 6px;
    font-size: 12px;
    font-weight: 900;
    color: #061f52;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}
.ps-coins-pill:hover { background: #ffe9a0; }

.ps-btn {
    background: var(--accent);
    color: #fff;
    border: 0;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    min-height: 40px;
}
.ps-btn:hover { background: var(--accent-dark); }
.ps-btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.ps-btn-ghost:hover { background: var(--soft); }
.ps-btn-warn { background: var(--danger); }
.ps-btn-gold { background: var(--gold); color: #1f2933; }
.ps-btn-block { width: 100%; }
.ps-btn-sm { padding: 6px 10px; min-height: 32px; font-size: 13px; }
.ps-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Native-app loading feedback (iOS/Material-inspired) */
.page-transition[hidden] {
    display: none;
}

/* After-sales customer and operator surfaces */
.after-sales-shell {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.journey-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 2px 8px;
}

.journey-page-head--compact {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
}

.journey-page-head h1 {
    margin: 1px 0 0;
    color: #092867;
    font-size: 21px;
    line-height: 1.15;
}

.journey-page-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.journey-kicker {
    color: #5d6b87;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.journey-back {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #dce5f5;
    border-radius: 50%;
    color: #08329e;
    background: #fff;
}

.journey-back svg {
    width: 22px;
    height: 22px;
}

.support-case-card,
.support-order-strip,
.order-attention-strip,
.order-help-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 68px;
    padding: 12px;
    border: 1px solid #dce5f5;
    border-radius: 8px;
    color: #11254d;
    background: #fff;
    text-decoration: none;
}

.support-case-card:hover,
.support-order-strip:hover,
.order-attention-strip:hover,
.order-help-strip:hover {
    border-color: #9bb4e5;
    text-decoration: none;
}

.support-case-icon,
.order-help-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    color: #08329e;
    background: #fff1b8;
}

.support-case-icon svg,
.order-help-icon svg {
    width: 23px;
    height: 23px;
}

.support-case-main {
    display: grid;
    min-width: 0;
    flex: 1;
    gap: 3px;
    color: #5b6880;
    font-size: 11px;
}

.support-case-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.support-case-line strong {
    color: #102856;
    font-size: 13px;
}

.support-case-main small {
    color: #8a94a8;
}

.support-case-chevron,
.support-order-strip > svg,
.notification-row > svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: #7d8baa;
}

.case-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #244274;
    background: #eaf0fb;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.case-status--open { color: #713b00; background: #fff0ba; }
.case-status--in_review { color: #07399d; background: #e3ecff; }
.case-status--action_required { color: #9d241d; background: #fee5e2; }
.case-status--resolved,
.case-status--closed { color: #17633c; background: #dcf5e7; }

.support-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-height: 240px;
    padding: 34px 22px;
    border: 1px solid #e1e8f5;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.support-empty > span {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    color: #08329e;
    background: #fff0af;
}

.support-empty svg { width: 32px; height: 32px; }
.support-empty h2 { margin: 2px 0 0; color: #092867; font-size: 18px; }
.support-empty p { max-width: 290px; margin: 0 0 8px; color: var(--muted); font-size: 12px; }

.support-create-form,
.support-topic-fieldset {
    display: grid;
    gap: 10px;
}

.support-topic-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.support-topic-fieldset legend {
    margin-bottom: 8px;
    color: #263d67;
    font-size: 12px;
    font-weight: 900;
}

.support-topic-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.support-topic-option {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 9px;
    border: 1px solid #dce5f5;
    border-radius: 8px;
    color: #283c61;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.support-topic-option input {
    position: absolute;
    opacity: 0;
}

.support-topic-check {
    width: 17px;
    height: 17px;
    border: 2px solid #9aa9c2;
    border-radius: 50%;
}

.support-topic-option:has(input:checked) {
    border-color: #164fc8;
    color: #08329e;
    background: #f4f7ff;
    box-shadow: inset 0 0 0 1px #164fc8;
}

.support-topic-option input:checked + .support-topic-check {
    border: 5px solid #164fc8;
}

.support-topic-option:has(input:focus-visible) {
    outline: 3px solid rgba(22, 79, 200, .24);
    outline-offset: 2px;
}

.support-form-card,
.support-reply-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #dce5f5;
    border-radius: 8px;
    background: #fff;
}

.form-help {
    color: #75829a;
    font-size: 10px;
    line-height: 1.4;
}

.support-submit-bar {
    position: sticky;
    bottom: calc(70px + env(safe-area-inset-bottom));
    z-index: 8;
    padding: 8px;
    border: 1px solid #e0e7f3;
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -8px 20px rgba(20, 38, 76, .08);
}

.support-submit-bar .ps-btn { width: 100%; min-height: 48px; }

.support-order-strip {
    min-height: 58px;
    color: #334b73;
}

.support-order-strip > span:first-child {
    display: grid;
    flex: 1;
}

.support-order-strip small { color: #79859a; font-size: 10px; }
.support-order-strip strong { color: #0b347d; font-size: 13px; }
.support-order-strip > span:nth-child(2) { font-size: 10px; font-weight: 800; text-transform: capitalize; }

.support-timeline,
.admin-case-timeline {
    display: grid;
    gap: 8px;
}

.support-message {
    width: min(88%, 560px);
    padding: 11px 12px;
    border: 1px solid #dfe6f2;
    border-radius: 8px;
    background: #fff;
}

.support-message--customer {
    justify-self: end;
    border-color: #b9caec;
    background: #edf3ff;
}

.support-message-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #6f7c92;
    font-size: 10px;
}

.support-message-meta strong { color: #18396f; }
.support-message p { margin: 7px 0 0; color: #283a59; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.support-event-state { display: block; margin-top: 7px; color: #17479e; font-size: 10px; font-weight: 900; }

.support-attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.support-attachment-list a {
    max-width: 100%;
    padding: 5px 7px;
    border: 1px solid #cdd9ed;
    border-radius: 5px;
    overflow: hidden;
    color: #17479e;
    background: #fff;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-reply-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.support-file-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 44px;
    color: #164fc8;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.support-file-button svg { width: 19px; height: 19px; }
.support-resolved-note { padding: 14px; border-radius: 8px; color: #285c41; background: #e6f5ec; font-size: 12px; text-align: center; }

.notification-list { display: grid; gap: 6px; }
.notification-list form { margin: 0; }
.notification-row {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 70px;
    padding: 11px;
    border: 1px solid #dfe7f3;
    border-radius: 8px;
    color: #24395c;
    background: #fff;
    text-align: left;
}

.notification-row.is-unread { border-color: #9bb6eb; background: #f2f6ff; }
.notification-dot { width: 7px; height: 7px; border-radius: 50%; background: #b5bfd0; }
.notification-row.is-unread .notification-dot { background: #ef9f00; }
.notification-row > span:nth-child(2) { display: grid; gap: 3px; }
.notification-row strong { color: #0f3376; font-size: 12px; }
.notification-row small { color: #4f5f78; font-size: 11px; line-height: 1.35; }
.notification-row time { color: #8b95a6; font-size: 9px; }

.order-delivery-window {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 8px;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, .35);
    font-size: 10px;
}

.order-delivery-window strong { font-size: 11px; }
.order-delivery-window small { grid-column: 1 / -1; opacity: .82; }
.order-attention-strip { border-color: #efc453; background: #fff9df; }
.order-help-strip { min-height: 62px; }
.order-help-strip > span:nth-child(2),
.order-attention-strip > span:first-child { display: grid; flex: 1; gap: 2px; }
.order-help-strip strong,
.order-attention-strip strong { color: #0b337b; font-size: 12px; }
.order-help-strip small,
.order-attention-strip small { color: #66738a; font-size: 10px; }

.refund-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-top: 1px solid #edf0f5;
}

.refund-status-row:first-of-type { border-top: 0; }
.refund-status-row > span:first-child { display: grid; gap: 2px; }
.refund-status-row strong { color: #18366c; font-size: 12px; }
.refund-status-row small { color: #69768d; font-size: 10px; }

.account-service-links {
    display: grid;
    border: 1px solid #e0e7f3;
    border-radius: 8px;
    background: #fff;
}

.account-service-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 56px;
    padding: 9px 12px;
    border-top: 1px solid #edf0f5;
    color: #17386f;
}

.account-service-links a:first-child { border-top: 0; }
.account-service-links a:hover { text-decoration: none; }
.account-service-links a > span:first-child { display: grid; gap: 2px; }
.account-service-links strong { font-size: 12px; }
.account-service-links small { color: #778399; font-size: 10px; }

.admin-case-list { display: grid; }
.admin-case-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto 86px;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 11px 2px;
    border-top: 1px solid #e8edf5;
    color: #24395c;
}

.admin-case-row:hover { text-decoration: none; background: #f8faff; }
.admin-case-priority { color: #52627d; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.admin-case-priority--high { color: #b32a22; }
.admin-case-main { display: grid; min-width: 0; gap: 3px; }
.admin-case-main strong { color: #0c3070; font-size: 13px; }
.admin-case-main small { color: #748198; font-size: 10px; }
.admin-case-main > span { overflow: hidden; color: #4c5c75; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.admin-case-row time { color: #7e899b; font-size: 10px; text-align: right; }

.admin-support-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
    gap: 12px;
    align-items: start;
}

.admin-case-timeline article { padding: 12px; border: 1px solid #e0e7f1; border-radius: 8px; background: #fff; }
.admin-case-timeline article > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.admin-case-timeline strong { color: #17376d; font-size: 12px; }
.admin-case-timeline time { color: #7e899d; font-size: 10px; }
.admin-case-timeline p { margin: 8px 0; color: #35445e; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.admin-case-context dl { display: grid; gap: 0; margin: 0; }
.admin-case-context dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #e9edf3; }
.admin-case-context dt { color: #758198; font-size: 11px; }
.admin-case-context dd { margin: 0; color: #243e6c; font-size: 11px; font-weight: 800; text-transform: capitalize; }

@media (max-width: 720px) {
    .journey-page-head--compact .case-status { max-width: 105px; white-space: normal; text-align: center; }
    .support-topic-list { grid-template-columns: 1fr; }
    .support-message { width: 94%; }
    .ps-notification-btn { display: grid; }
}

@media (max-width: 980px) {
    .admin-support-grid { grid-template-columns: 1fr; }
    .admin-case-row { grid-template-columns: 48px minmax(0, 1fr) auto; }
    .admin-case-row time { display: none; }
}

/* E-Loading: dense mobile transaction flow with explicit wallet impact. */
.ps-body--eload .ps-topbar { display: none; }
.ps-body--eload .ps-main { padding-top: 0; }
.eload-shell {
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 8px 12px calc(var(--ps-tabbar-offset) + 18px);
}

.eload-topbar {
    position: sticky;
    top: 0;
    z-index: 12;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 56px;
    margin: -8px -12px 10px;
    padding: 8px 12px;
    background: rgba(255, 250, 245, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.eload-topbar h1,
.eload-topbar p { margin: 0; }
.eload-topbar h1 { font-size: 17px; line-height: 1.2; }
.eload-topbar p { margin-top: 2px; color: var(--muted); font-size: 11px; }

.eload-back {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--ink);
    font-size: 31px;
    line-height: 1;
}

.eload-balance {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: var(--ink);
}
.eload-balance span { color: var(--muted); font-size: 10px; }
.eload-balance strong { color: var(--accent-dark); font-size: 14px; }

.eload-purchase { display: grid; gap: 10px; }
.eload-recipient,
.eload-confirm,
.eload-recent,
.eload-receipt,
.eload-empty {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.eload-recipient { padding: 12px; }
.eload-recipient > label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 800; }
.eload-recipient > small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }
.eload-phone-input {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-height: 46px;
    overflow: hidden;
    background: #f6f8ff;
    border: 1.5px solid #efb174;
    border-radius: 7px;
}
.eload-phone-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(8, 50, 158, .12); }
.eload-phone-input span { padding: 0 10px; color: var(--muted); border-right: 1px solid var(--line); font-size: 14px; font-weight: 800; }
.eload-phone-input input { width: 100%; min-width: 0; padding: 10px; background: transparent; border: 0; outline: 0; font-size: 18px; font-weight: 800; letter-spacing: 0; }

.eload-service-tabs,
.eload-network-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 1px 0 3px;
    scrollbar-width: none;
}
.eload-service-tabs::-webkit-scrollbar,
.eload-network-tabs::-webkit-scrollbar { display: none; }
.eload-service-tabs button,
.eload-network-tabs button {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 5px 12px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    font-size: 11px;
    font-weight: 900;
}
.eload-service-tabs button.active,
.eload-network-tabs button.active { color: #fff; background: var(--accent); border-color: var(--accent); }

.eload-service-tabs { padding-bottom: 0; }
.eload-service-tabs button { flex: 1 0 auto; min-height: 38px; border-radius: 7px; }
.eload-recipient[hidden] { display: none; }

.eload-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}
.eload-product {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 124px;
    padding: 9px;
    background: #fff;
    border: 1.5px solid #f0d5b7;
    border-radius: 7px;
    cursor: pointer;
}
.eload-product:has(input:checked) { background: #fff8ef; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.eload-product input { position: absolute; opacity: 0; pointer-events: none; }
.eload-product-network { align-self: flex-start; padding: 2px 5px; color: var(--accent-dark); background: #fff0df; border-radius: 3px; font-size: 9px; font-weight: 900; }
.eload-product > strong { margin-top: 6px; font-size: 13px; line-height: 1.25; }
.eload-product-meta { color: var(--muted); font-size: 10px; line-height: 1.3; }
.eload-product-price { margin-top: auto; color: var(--accent-dark); font-size: 17px; font-weight: 900; }
.eload-product > small { color: #16814b; font-size: 9px; font-weight: 800; }

.eload-confirm { display: grid; gap: 7px; padding: 12px; }
.eload-confirm[hidden] { display: none; }
.eload-confirm > div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.eload-confirm > div strong { max-width: 65%; color: var(--ink); text-align: right; }
.eload-confirm .eload-confirm-total { padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; }
.eload-confirm-total strong { color: var(--accent-dark) !important; font-size: 19px; }
.eload-check { display: flex; gap: 8px; align-items: center; padding: 7px 0; font-size: 11px; font-weight: 700; }
.eload-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.eload-submit { width: 100%; min-height: 44px; }
.eload-mode-note { color: var(--muted); font-size: 9px; line-height: 1.4; text-align: center; }
.eload-balance-warning { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 10px; color: #7a4c00; background: #fff3d6; border: 1px solid #f4cd77; border-radius: 7px; font-size: 10px; font-weight: 800; }
.eload-balance-warning a { flex: 0 0 auto; color: var(--accent-dark); text-decoration: underline; }

.eload-recent { margin-top: 12px; padding: 10px; }
.eload-recent > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.eload-recent h2 { margin: 0; font-size: 14px; }
.eload-recent header span { color: var(--muted); font-size: 10px; }
.eload-order-row { display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 9px 0; color: var(--ink); border-top: 1px solid #f8e7d5; }
.eload-order-row:first-of-type { border-top: 0; }
.eload-order-row:hover { text-decoration: none; }
.eload-order-network { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: var(--accent); border-radius: 6px; font-size: 8px; font-weight: 900; }
.eload-order-row > span { min-width: 0; }
.eload-order-row > span:nth-child(2) strong,
.eload-order-row > span:nth-child(2) small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eload-order-row strong { font-size: 11px; }
.eload-order-row small { color: var(--muted); font-size: 9px; }
.eload-order-row > span:last-child { text-align: right; }
.eload-status { display: block; margin-top: 2px; color: #987000; font-size: 9px; font-style: normal; font-weight: 900; }
.eload-status--completed { color: #16814b; }
.eload-status--reversed { color: var(--danger); }

.eload-empty { padding: 28px 18px; text-align: center; }
.eload-empty strong { display: block; font-size: 16px; }
.eload-empty p { color: var(--muted); font-size: 12px; }
.eload-receipt-shell { padding-top: 8px; }
.eload-receipt { padding: 24px 15px 14px; text-align: center; }
.eload-receipt-mark { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 10px; color: #fff; background: #e8a31a; border-radius: 50%; font-size: 25px; font-weight: 900; }
.eload-receipt--completed .eload-receipt-mark { background: #16814b; }
.eload-receipt--reversed .eload-receipt-mark { background: var(--danger); }
.eload-receipt h2 { margin: 0; font-size: 19px; }
.eload-receipt > p { margin: 5px auto 15px; max-width: 350px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.eload-receipt-details { margin: 0; text-align: left; }
.eload-receipt-details div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-top: 1px solid #f6e2ca; font-size: 11px; }
.eload-receipt-details dt { color: var(--muted); }
.eload-receipt-details dd { margin: 0; max-width: 65%; overflow-wrap: anywhere; font-weight: 800; text-align: right; }
.eload-failure-note { padding: 8px; color: var(--danger) !important; background: #fff0ee; border-radius: 5px; }
.eload-secure-code { display: grid; gap: 8px; margin-top: 12px; padding: 12px; text-align: left; background: #eef4ff; border: 1px solid #cddcff; border-radius: 8px; }
.eload-secure-code > span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.eload-secure-code > strong { overflow-wrap: anywhere; color: var(--accent-dark); font-size: 20px; letter-spacing: 0; }
.eload-secure-code > small { color: var(--muted); font-size: 10px; }
.eload-secure-code > p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.eload-code-reveal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.eload-code-reveal label { grid-column: 1 / -1; font-size: 10px; font-weight: 800; }
.eload-code-reveal input { min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 16px; }
.eload-receipt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }

.eload-admin-provider { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; }
.eload-admin-provider span { display: flex; flex-direction: column; }
.eload-admin-provider small { color: var(--muted); }
.eload-admin-inline { display: flex; gap: 6px; align-items: center; margin: 3px 0; }
.eload-admin-inline input { min-width: 0; max-width: 210px; }
.eload-product-editor { margin-top: 6px; }
.eload-product-editor summary { color: var(--accent-dark); cursor: pointer; font-size: 11px; font-weight: 800; }
.eload-product-editor form { display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 6px; min-width: 360px; margin-top: 8px; padding: 8px; background: #f6f8ff; border: 1px solid var(--line); border-radius: 6px; }
.eload-product-editor label { display: grid; gap: 3px; color: var(--muted); font-size: 10px; font-weight: 700; }
.eload-product-editor input,
.eload-product-editor select { min-width: 0; padding: 6px; border: 1px solid var(--line); border-radius: 4px; }

.eload-admin-jumps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.eload-admin-jumps a { display: flex; justify-content: space-between; gap: 8px; min-height: 44px; padding: 11px 13px; color: var(--ink); border-right: 1px solid var(--line); font-size: 12px; font-weight: 900; text-decoration: none; }
.eload-admin-jumps a:last-child { border-right: 0; }
.eload-admin-jumps strong { color: var(--accent-dark); font-size: 10px; }
.eload-catalog-filters { display: grid; grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(120px, 1fr)) auto auto; gap: 8px; align-items: end; }
.eload-catalog-filters label { display: grid; gap: 4px; min-width: 0; }
.eload-catalog-filters label > span { color: var(--muted); font-size: 10px; font-weight: 800; }
.eload-catalog-filters input,
.eload-catalog-filters select,
.eload-order-filters input,
.eload-order-filters select { width: 100%; min-height: 38px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
.eload-catalog-table td { vertical-align: top; }
.eload-catalog-table td > small,
#transactions .table td > small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.eload-product-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.eload-product-tags span,
.eload-locks span { padding: 2px 5px; border-radius: 3px; background: #eef4ff; color: #08329e; font-size: 9px; font-weight: 900; }
.eload-locks { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }
.eload-catalog-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.eload-catalog-actions form { margin: 0; }
.operator-pager { display: flex; justify-content: flex-end; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; font-weight: 800; }
.operator-pager a { min-height: 36px; display: inline-flex; align-items: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--accent-dark); text-decoration: none; }
.eload-order-filters { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px) auto; gap: 8px; }
.eload-product-form-page { max-width: 1040px; }
.eload-product-form-page .form-row textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; resize: vertical; }
.eload-product-form-page .form-row small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.eload-admin-check { display: flex; align-items: flex-start; gap: 9px; min-height: 44px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; background: #f8faff; cursor: pointer; }
.eload-admin-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); }
.eload-admin-check span { display: grid; gap: 2px; }
.eload-admin-check strong { font-size: 12px; }
.eload-admin-check small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.eload-economics-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #cddcff; border-radius: 8px; overflow: hidden; background: #eef4ff; }
.eload-economics-preview span { display: grid; gap: 3px; padding: 10px 12px; color: var(--muted); border-right: 1px solid #cddcff; font-size: 10px; }
.eload-economics-preview span:last-child { border-right: 0; }
.eload-economics-preview strong { color: #08329e; font-size: 15px; }
.eload-economics-preview strong.is-negative { color: var(--danger); }
.eload-product-form-actions { position: sticky; bottom: 10px; z-index: 5; display: flex; justify-content: flex-end; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(8,50,158,.12); }

@media (max-width: 720px) {
    .eload-admin-provider { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eload-admin-inline { align-items: stretch; flex-direction: column; }
    .eload-admin-inline input { max-width: none; }
    .eload-product-editor form { grid-template-columns: 1fr; min-width: 0; }
    .eload-admin-jumps { grid-template-columns: 1fr; }
    .eload-admin-jumps a { border-right: 0; border-bottom: 1px solid var(--line); }
    .eload-admin-jumps a:last-child { border-bottom: 0; }
    .eload-catalog-filters,
    .eload-order-filters { grid-template-columns: 1fr; }
    .eload-economics-preview { grid-template-columns: 1fr; }
    .eload-economics-preview span { border-right: 0; border-bottom: 1px solid #cddcff; }
    .eload-economics-preview span:last-child { border-bottom: 0; }
    .eload-product-form-actions .ps-btn { flex: 1; }
}

@media (max-width: 360px) {
    .eload-shell { padding-inline: 8px; }
    .eload-topbar { margin-inline: -8px; padding-inline: 8px; }
    .eload-products { gap: 5px; }
    .eload-product { min-height: 120px; padding: 7px; }
}

.page-transition {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(255, 255, 255, .34);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s ease;
}

.page-transition.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.page-transition__panel {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid rgba(23, 48, 42, .1);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    color: #17302a;
    box-shadow: 0 12px 32px rgba(23, 48, 42, .2);
    font-size: 13px;
    font-weight: 800;
}

.page-transition__spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(8, 50, 158, .22);
    border-top-color: var(--accent, #08329e);
    border-radius: 50%;
    animation: ps-native-spin .72s linear infinite;
}

body.is-page-transitioning {
    cursor: progress;
}

.network-guard[hidden] {
    display: none;
}

.network-guard {
    position: fixed;
    inset: 0;
    z-index: 10100;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(245, 247, 246, .96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.network-guard__panel {
    width: min(100%, 340px);
    padding: 24px 20px 20px;
    border: 1px solid rgba(23, 48, 42, .1);
    border-radius: 8px;
    background: #fff;
    color: #17302a;
    box-shadow: 0 18px 48px rgba(23, 48, 42, .16);
    text-align: center;
}

.network-guard__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #fff1e8;
    color: var(--accent, #08329e);
}

.network-guard__icon svg {
    width: 28px;
    height: 28px;
}

.network-guard__panel h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.network-guard__panel p {
    margin: 8px 0 20px;
    color: #61706c;
    font-size: 14px;
    line-height: 1.5;
}

.network-guard__retry.is-checking {
    pointer-events: none;
    opacity: .72;
}

body.is-network-offline {
    overflow: hidden;
}

.store-location-picker {
    min-width: 0;
}

.store-location-picker__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.store-location-picker__head > div {
    min-width: 0;
}

.store-location-map {
    width: 100%;
    height: 280px;
    margin-top: 10px;
    overflow: hidden;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: #edf1ef;
}

.store-location-map.has-store-pin {
    border-color: #15926f;
}

.store-location-map .leaflet-control-attribution {
    font-size: 9px;
}

.store-location-status {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.bnpl-customer {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.bnpl-customer-hero {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    padding: 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0d746d, #15926f);
    color: #fff;
}

.bnpl-customer-hero .journey-back {
    color: #fff;
}

.bnpl-customer-hero span,
.bnpl-customer-hero p {
    font-size: 12px;
}

.bnpl-customer-hero h1 {
    margin: 3px 0;
    font-size: 21px;
    line-height: 1.2;
}

.bnpl-customer-hero p {
    margin: 0;
    opacity: .86;
}

.bnpl-policy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.bnpl-policy-grid > div,
.bnpl-schedule > div {
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8faf9;
}

.bnpl-policy-grid span,
.bnpl-policy-grid strong,
.bnpl-schedule span,
.bnpl-schedule strong,
.bnpl-schedule small {
    display: block;
}

.bnpl-policy-grid span,
.bnpl-schedule span,
.bnpl-schedule small {
    color: var(--muted);
    font-size: 11px;
}

.bnpl-policy-grid strong {
    margin-top: 3px;
    font-size: 15px;
}

.bnpl-terms-check {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 9px;
    align-items: start;
    font-size: 12px;
    line-height: 1.45;
}

.bnpl-terms-check input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
}

.bnpl-balance {
    padding: 15px;
    border-radius: 8px;
    background: #123f3b;
    color: #fff;
}

.bnpl-balance span,
.bnpl-balance strong,
.bnpl-balance small {
    display: block;
}

.bnpl-balance span,
.bnpl-balance small {
    font-size: 11px;
    opacity: .82;
}

.bnpl-balance strong {
    margin: 4px 0;
    font-size: 27px;
}

.bnpl-schedule {
    display: grid;
    gap: 7px;
}

.bnpl-schedule > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 8px;
}

.bnpl-schedule small {
    grid-column: 1 / -1;
}

@media (max-width: 520px) {
    .auth-form .form-grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .store-location-picker__head {
        display: grid;
    }

    .store-location-picker__head .ps-btn {
        justify-self: start;
    }

    .store-location-map {
        height: 240px;
    }
}

.is-loading,
.is-loading-pending {
    pointer-events: none;
    touch-action: none;
}

.is-loading-pending {
    transition: transform .14s cubic-bezier(.4, 0, .2, 1), opacity .14s ease;
}

.is-loading-pending:not(.store-app-stat):not(.store-app-action):not(.store-app-cat) {
    transform: scale(.985);
    opacity: .9;
}

.button-spinner {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 2.5px solid currentColor;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    opacity: 0;
    animation:
        ps-native-spin .72s linear infinite,
        ps-spinner-in .18s ease forwards;
}

@keyframes ps-native-spin {
    to { transform: rotate(360deg); }
}

@keyframes ps-spinner-in {
    from { opacity: 0; transform: scale(.82); }
    to { opacity: 1; transform: scale(1); }
}

button.is-pressed:not(:disabled):not(.is-loading),
a.is-pressed:not(.is-loading) {
    transform: scale(.97);
    transition: transform .12s cubic-bezier(.4, 0, .2, 1);
}

.store-app-action.is-pressed:not(.is-loading) .store-app-action-icon,
.store-app-cat.is-pressed:not(.is-loading) .store-app-cat-icon {
    transform: scale(.94);
    transition: transform .12s cubic-bezier(.4, 0, .2, 1);
}

.ps-btn .button-spinner,
.ps-btn-ghost .button-spinner {
    border-color: rgba(255, 255, 255, .35);
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-top-color: #fff;
    border-left-color: rgba(255, 255, 255, .75);
}

.ps-btn-ghost .button-spinner,
.ps-btn.ps-btn-ghost .button-spinner {
    border-color: rgba(15, 118, 110, .18);
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-top-color: var(--accent-dark);
    border-left-color: rgba(15, 118, 110, .45);
}

.qty-button .button-spinner,
.add-button .button-spinner,
.cart-qty-btn .button-spinner,
.cart-remove-btn .button-spinner,
.pdp-icon-btn .button-spinner,
.store-restock-add .button-spinner,
.flash-card-cta .button-spinner {
    border-color: rgba(8, 50, 158, .2);
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-top-color: var(--accent);
    border-left-color: rgba(8, 50, 158, .55);
}

.ps-btn.is-loading,
.ps-btn-ghost.is-loading,
button.is-loading,
a.is-loading,
.qty-button.is-loading,
.add-button.is-loading,
.flash-card-cta.is-loading {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ps-btn.is-loading > :not(.button-spinner),
.ps-btn-ghost.is-loading > :not(.button-spinner),
.flash-card-cta.is-loading > :not(.button-spinner) {
    opacity: 0;
}

.ps-btn.is-loading .button-spinner,
.ps-btn-ghost.is-loading .button-spinner,
.flash-card-cta.is-loading .button-spinner {
    position: absolute;
    margin: 0;
}

.qty-button.is-loading,
.store-restock-add.is-loading,
.pdp-icon-btn.is-loading,
.cart-qty-btn.is-loading,
.cart-remove-btn.is-loading,
.add-button.is-loading {
    color: transparent;
}

.qty-button.is-loading .button-spinner,
.store-restock-add.is-loading .button-spinner,
.pdp-icon-btn.is-loading .button-spinner,
.cart-qty-btn.is-loading .button-spinner,
.cart-remove-btn.is-loading .button-spinner,
.add-button.is-loading .button-spinner {
    position: absolute;
    inset: 0;
    margin: auto;
}

.add-button.is-loading svg,
.pdp-icon-btn.is-loading svg,
.cart-qty-btn.is-loading svg,
.cart-remove-btn.is-loading svg {
    opacity: 0;
}

.store-app-action,
.store-app-cat,
.store-app-stat,
.ps-icon-btn {
    transition: transform .14s cubic-bezier(.4, 0, .2, 1), opacity .14s ease;
}

.store-app-action.is-loading .store-app-action-icon,
.store-app-cat.is-loading .store-app-cat-icon,
.ps-icon-btn.is-loading svg {
    opacity: 0;
    transition: opacity .12s ease;
}

.store-app-action-icon,
.store-app-cat-icon {
    transition: transform .12s cubic-bezier(.4, 0, .2, 1), opacity .12s ease;
}

.store-app-action-icon,
.store-app-cat-icon,
.ps-icon-btn {
    position: relative;
}

.store-app-action-icon .button-spinner,
.store-app-cat-icon .button-spinner,
.ps-icon-btn .button-spinner {
    position: absolute;
    inset: 0;
    margin: auto;
}

.store-app-action-icon .button-spinner {
    border-top-color: #0057d9;
    border-left-color: rgba(0, 87, 217, .45);
    border-color: rgba(0, 87, 217, .16);
    border-right-color: transparent;
    border-bottom-color: transparent;
}

.store-app-cat-icon .button-spinner {
    border-top-color: #fff;
    border-left-color: rgba(255, 255, 255, .65);
    border-color: rgba(255, 255, 255, .28);
    border-right-color: transparent;
    border-bottom-color: transparent;
}

.ps-icon-btn .button-spinner {
    border-top-color: var(--accent);
    border-left-color: rgba(8, 50, 158, .5);
    border-color: rgba(8, 50, 158, .18);
    border-right-color: transparent;
    border-bottom-color: transparent;
}

.ps-tabs a.is-loading svg,
.ps-tabs .ps-tabs-cart.is-loading .ps-tabs-cart-ring svg {
    opacity: 0;
    transition: opacity .12s ease;
}

.ps-tabs a .button-spinner,
.ps-tabs .ps-tabs-cart .button-spinner {
    position: absolute;
    top: 6px;
    left: 50%;
    margin-left: -9px;
}

.ps-tabs .ps-tabs-cart.is-loading .ps-tabs-cart-ring .button-spinner {
    top: 50%;
    left: 50%;
    margin: -9px 0 0 -9px;
}

.ps-tabs a.is-loading span:last-child,
.ps-tabs .ps-tabs-cart.is-loading span:last-child {
    opacity: .45;
}

.ps-tabs a .button-spinner {
    border-top-color: var(--accent);
    border-left-color: rgba(8, 50, 158, .5);
    border-color: rgba(8, 50, 158, .18);
    border-right-color: transparent;
    border-bottom-color: transparent;
}

.ps-tabs .ps-tabs-cart .button-spinner {
    border-top-color: #fff;
    border-left-color: rgba(255, 255, 255, .65);
    border-color: rgba(255, 255, 255, .28);
    border-right-color: transparent;
    border-bottom-color: transparent;
}

.store-app-stat.is-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(2px);
    border-radius: inherit;
    animation: ps-spinner-in .16s ease forwards;
}

.store-app-stat.is-loading .button-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -9px 0 0 -9px;
    z-index: 1;
}

.store-app-stat.is-loading > *:not(.button-spinner) {
    opacity: .35;
}

.flash {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-weight: 700;
}
.flash-success { background: var(--soft); color: var(--accent-dark); }
.flash-error { background: #fdecea; color: var(--danger); }
.flash ul { margin: 6px 0 0; padding-left: 18px; font-weight: 500; }

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 14px; }
.panel-soft {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    background: #f8fafc;
}
.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}
.panel h2, .panel h3 { margin: 0; font-size: 18px; }
.muted { color: var(--muted); }

.stack-12 > * + * { margin-top: 12px; }
.stack-8 > * + * { margin-top: 8px; }

.grid {
    display: grid;
    gap: 14px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.form-row { display: grid; gap: 8px; margin-bottom: 12px; }
.form-row label { font-weight: 700; font-size: 13px; }
.form-row input, .form-row select, .form-row textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
}
.form-row textarea { min-height: 70px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(8, 50, 158, .14);
}
.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}
.form-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.table th, .table td {
    border-bottom: 1px solid var(--line);
    padding: 8px 6px;
    text-align: left;
    vertical-align: top;
}
.table th { color: var(--muted); font-weight: 700; }
.table tbody tr:hover { background: var(--paper); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: var(--soft);
    color: var(--accent-dark);
}
.chip-warn { background: #fdecea; color: var(--danger); }
.chip-gold { background: var(--gold-soft); color: #6c4a00; }
.chip-info { background: #dbeafe; color: #1d4ed8; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.kpi span { color: var(--muted); font-size: 12px; font-weight: 700; }
.kpi strong { display: block; font-size: 22px; margin-top: 6px; }

.layout-2col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.layout-2col .side { position: sticky; top: 96px; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.product {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 320px;
}
.product-media {
    position: relative;
    height: 112px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15,118,110,.12), rgba(242,183,5,.18));
    color: var(--accent-dark);
    font-size: 34px;
    font-weight: 900;
}
.product-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 12px; }
.product-name { font-size: 15px; font-weight: 800; line-height: 1.25; min-height: 36px; }
.price-row { display: flex; justify-content: space-between; align-items: end; }
.price { color: var(--accent-dark); font-size: 22px; font-weight: 900; line-height: 1; }
.stock { color: var(--accent-dark); background: var(--soft); border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 850; }
.margin {
    background: var(--gold-soft); color: #6c4a00; border-radius: 8px; padding: 8px; font-size: 12px;
    font-weight: 600; line-height: 1.35;
}
.add-row {
    display: grid; grid-template-columns: 36px 1fr 36px; gap: 6px; margin-top: auto;
}
.add-row .qty {
    border: 1px solid var(--line); border-radius: 8px; min-height: 36px; display: grid; place-items: center;
    font-weight: 800;
}
.qty-button { background: var(--soft); color: var(--accent-dark); border-radius: 8px; min-height: 36px; border: 0; font-weight: 800; }

.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.cart-line:last-child { border-bottom: 0; }
.cart-line strong { display: block; }
.cart-line .meta { color: var(--muted); font-size: 12px; margin-top: 2px; }

.totals { display: grid; gap: 6px; margin-top: 12px; font-size: 13px; }
.total-row { display: flex; justify-content: space-between; gap: 12px; }
.total-row.grand { border-top: 1px solid var(--line); padding-top: 8px; font-size: 17px; font-weight: 900; }

.notice {
    background: var(--soft); color: var(--accent-dark); padding: 10px;
    border-radius: 8px; font-size: 12px; font-weight: 700;
}
.notice-warn { background: #fef3c7; color: #92400e; }

.delivery-band {
    background: var(--accent-dark);
    color: #fff;
    border-radius: var(--radius);
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}
.delivery-band small { display: block; opacity: .8; font-weight: 700; }
.delivery-band strong { display: block; font-size: 20px; margin-top: 2px; }
.delivery-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.delivery-meta .chip { background: rgba(255,255,255,.15); color: #fff; }

.track { display: grid; gap: 10px; }
.track-row { display: grid; grid-template-columns: 16px 1fr; gap: 10px; }
.track-dot { width: 12px; height: 12px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 4px var(--soft); margin-top: 4px; }
.track-row strong { display: block; font-size: 13px; }
.track-row span { display: block; color: var(--muted); font-size: 12px; }

.ps-tabs {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-top: 1px solid var(--line);
}
.ps-tabs a {
    text-align: center;
    padding: 8px 4px 7px;
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
}
.ps-tabs b { display: block; font-size: 18px; line-height: 1; margin-bottom: 3px; }

.auth-shell { max-width: 460px; margin: 0 auto; padding-inline: 0; }
.auth-card { background: #fff; border-radius: 14px; padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.auth-card h1 { margin: 0 0 6px; font-size: 24px; }
.auth-card p { margin: 0 0 18px; color: var(--muted); }

.status-pill {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: var(--soft);
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.status-pill.warn { background: #fef3c7; color: #92400e; }
.status-pill.danger { background: #fdecea; color: var(--danger); }
.status-pill.success { background: #dcfce7; color: #166534; }

/* Hero + promo banners */
.hero-banner {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 28px 28px 24px;
    color: #fff;
    background:
        radial-gradient(circle at 88% -10%, rgba(242, 183, 5, .55), transparent 55%),
        radial-gradient(circle at 8% 120%, rgba(8, 50, 158, .85), transparent 60%),
        linear-gradient(135deg, #062679 0%, #08329e 55%, #ffc500 100%);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}
.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .12), transparent 30%),
        radial-gradient(circle at 92% 70%, rgba(255, 255, 255, .08), transparent 35%);
    pointer-events: none;
}
.hero-banner .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hero-banner h1 {
    font-size: 38px;
    margin: 12px 0 8px;
    line-height: 1.1;
    font-weight: 900;
}
.hero-banner p { margin: 0 0 18px; opacity: .92; font-size: 15px; max-width: 56ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-actions .ps-btn { box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.hero-actions .ps-btn-gold { color: #1f2933; }
.hero-actions .ps-btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255,255,255,.4); }
.hero-actions .ps-btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    position: relative;
    z-index: 1;
}
.hero-stat {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 14px;
    padding: 14px;
    backdrop-filter: blur(2px);
}
.hero-stat span { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; opacity: .8; }
.hero-stat strong { display: block; font-size: 22px; margin-top: 4px; }

.promo-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.promo-card {
    border-radius: 14px;
    padding: 16px;
    color: #fff;
    box-shadow: var(--shadow);
    min-height: 100px;
    display: grid;
    align-content: space-between;
    gap: 6px;
    position: relative;
    overflow: hidden;
}
.promo-card::after {
    content: "";
    position: absolute;
    inset: auto -20px -30px auto;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
}
.promo-card small { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; opacity: .9; }
.promo-card strong { font-size: 18px; font-weight: 800; line-height: 1.2; }
.promo-card p { margin: 0; font-size: 13px; opacity: .9; }
.promo-emerald { background: linear-gradient(135deg, #062679, #ffc500); }
.promo-gold { background: linear-gradient(135deg, #b45309, #f2b705); color: #1f2933; }
.promo-gold small, .promo-gold p { color: #2a1f00; opacity: 1; }
.promo-gold::after { background: rgba(255, 255, 255, .35); }
.promo-blue { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }

.verify-banner {
    border-radius: 14px;
    padding: 16px;
    background: linear-gradient(135deg, #fff6d7, #fde68a);
    border: 1px solid #f5c451;
    color: #5b3d00;
    display: flex;
    gap: 16px;
    align-items: center;
}
.verify-banner.success { background: linear-gradient(135deg, #dcfce7, #bbf7d0); border-color: #4ade80; color: #14532d; }
.verify-banner .verify-icon {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .55); font-size: 22px; flex: none;
}
.verify-banner strong { display: block; font-size: 15px; }
.verify-banner small { display: block; font-size: 12px; opacity: .9; margin-top: 2px; }

.public-cta {
    border: 1px dashed var(--accent);
    border-radius: 14px;
    padding: 14px 16px;
    background: var(--soft);
    color: var(--accent-dark);
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}
.public-cta strong { display: block; font-size: 15px; }
.public-cta small { color: var(--muted); display: block; font-size: 12px; margin-top: 2px; }

.category-pill-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.category-pill-row button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    white-space: nowrap;
    font-weight: 700;
    color: var(--ink);
}
.category-pill-row button.active,
.category-pill-row button:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.price.with-compare { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-compare {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 13px;
    font-weight: 700;
}
.price-locked {
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 800;
    background: var(--soft);
    border-radius: 8px;
    padding: 6px 8px;
}
.badge-promo {
    background: var(--gold);
    color: #1f2933;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-left: 6px;
}

.filter-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.filter-tabs a {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 13px;
}
.filter-tabs a.active { background: var(--accent); color: #fff; }

@media (max-width: 980px) {
    .ps-topbar { grid-template-columns: auto auto; }
    .ps-topbar-nav { grid-column: 1 / -1; order: 3; overflow-x: auto; }
    .layout-2col { grid-template-columns: 1fr; }
    .layout-2col .side { position: static; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3, .grid-4, .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ps-body[data-role="customer"] .ps-tabs { display: grid; }
    .hero-banner { grid-template-columns: 1fr; padding: 22px; }
    .promo-strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
    .product-grid { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .delivery-band { grid-template-columns: 1fr; }
    .promo-strip { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .public-cta { flex-direction: column; align-items: flex-start; }
}

/* Tindao storefront v2: mobile-first commerce shell */
.ps-body {
    background:
        radial-gradient(circle at 18% 0%, rgba(8, 50, 158, .08), transparent 34%),
        linear-gradient(180deg, #fff6ed 0%, #f6f8ff 42%, #f6f8ff 100%);
}

.ps-main-mobile {
    max-width: 1120px;
    margin-inline: auto;
    padding-top: var(--ps-block-gap);
    padding-bottom: calc(var(--ps-tabbar-offset) + env(safe-area-inset-bottom));
    padding-left: max(var(--ps-screen-gutter), env(safe-area-inset-left));
    padding-right: max(var(--ps-screen-gutter), env(safe-area-inset-right));
}

.ps-topbar {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 10px max(var(--ps-screen-gutter), env(safe-area-inset-right)) 10px max(var(--ps-screen-gutter), env(safe-area-inset-left));
    box-shadow: 0 10px 24px rgba(15, 118, 110, .07);
}

.ps-brand-mark {
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-dark), #12a594);
    box-shadow: 0 8px 18px rgba(15, 118, 110, .22);
}

.ps-search {
    min-width: 0;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    height: 42px;
    border: 1px solid rgba(15, 118, 110, .18);
    border-radius: 999px;
    background: #f9fdfb;
    padding: 0 12px;
}

.ps-search-icon {
    width: 19px;
    height: 19px;
    color: var(--accent);
}

.ps-search input {
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 14px;
}

.ps-search-hot {
    display: none;
    color: #9a3412;
    background: #ffedd5;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
}

.ps-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--accent-dark);
}

.ps-icon-btn svg,
.ps-tabs svg,
.quick-cat svg,
.product-letter svg,
.verify-icon svg,
.shop-hero-blob svg {
    width: 22px;
    height: 22px;
}

.ps-icon-badge,
.ps-tabs-cart-bubble em {
    position: absolute;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    border: 2px solid #fff;
}

.ps-icon-badge {
    top: -5px;
    right: -4px;
}

.ps-user-menu {
    position: relative;
}

.ps-user-menu summary {
    list-style: none;
    cursor: pointer;
}

.ps-user-menu summary::-webkit-details-marker { display: none; }

.ps-user-pop {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 180px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    z-index: 60;
}

.ps-user-pop a,
.ps-user-pop button {
    width: 100%;
    display: block;
    border: 0;
    background: transparent;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--ink);
    text-align: left;
    font-weight: 750;
}

.ps-user-pop a:hover,
.ps-user-pop button:hover {
    background: var(--soft);
    text-decoration: none;
}

.ps-btn-shop {
    background: linear-gradient(135deg, #ee4d2d 0%, #f97316 50%, #fb923c 100%);
    color: #fff;
    box-shadow: 0 10px 22px rgba(238, 77, 45, .28);
    letter-spacing: .01em;
}

.ps-btn-shop:hover {
    background: linear-gradient(135deg, #d63b1d 0%, #ea580c 50%, #f97316 100%);
    color: #fff;
}

.ps-btn-ghost-on-dark {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
}

.ps-btn-ghost-on-dark:hover {
    background: rgba(255, 255, 255, .23);
}

.shop-hero {
    position: relative;
    margin: 4px 0 6px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 18px 38px rgba(8, 50, 158, .14);
}

.shop-hero-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.shop-hero-track::-webkit-scrollbar,
.flash-scroll::-webkit-scrollbar,
.quick-cats-grid::-webkit-scrollbar,
.proof-scroll::-webkit-scrollbar,
.catalog-tabs::-webkit-scrollbar {
    display: none;
}

.shop-hero-slide {
    position: relative;
    isolation: isolate;
    min-width: 100%;
    min-height: 244px;
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 116px;
    align-items: center;
    gap: 12px;
    padding: 22px 16px;
    color: #fff;
    overflow: hidden;
}

.shop-hero-slide--linked {
    color: #fff;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.shop-hero-slide--linked:hover {
    color: #fff;
    text-decoration: none;
}

.shop-hero-slide--linked:focus-visible {
    outline: 3px solid var(--brand-yellow, #ffc500);
    outline-offset: -3px;
}

.shop-hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(6, 78, 59, .92), rgba(6, 78, 59, .54), rgba(6, 78, 59, .12)),
        radial-gradient(circle at 90% 8%, rgba(255, 255, 255, .22), transparent 30%),
        radial-gradient(circle at 12% 108%, rgba(255, 255, 255, .16), transparent 36%);
}

.shop-hero-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-emerald,
.hero-orange,
.hero-blue {
    background-color: #08329e;
}

.hero-orange {
    background-color: #9a3412;
}

.hero-blue {
    background-color: #1e3a8a;
}

.hero-orange::before {
    background:
        linear-gradient(90deg, rgba(154, 52, 18, .92), rgba(154, 52, 18, .50), rgba(154, 52, 18, .10)),
        radial-gradient(circle at 90% 8%, rgba(255, 255, 255, .20), transparent 30%);
}

.hero-blue::before {
    background:
        linear-gradient(90deg, rgba(30, 58, 138, .92), rgba(30, 58, 138, .50), rgba(30, 58, 138, .10)),
        radial-gradient(circle at 90% 8%, rgba(255, 255, 255, .20), transparent 30%);
}

.shop-hero-eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .20);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.shop-hero-flash {
    background: rgba(255, 255, 255, .92);
    color: #9a3412;
}

.shop-hero h1 {
    margin: 10px 0 8px;
    max-width: 12ch;
    font-size: 34px;
    line-height: .98;
    letter-spacing: 0;
    font-weight: 950;
}

.shop-hero p {
    margin: 0 0 14px;
    max-width: 34ch;
    color: rgba(255, 255, 255, .9);
    font-size: 13px;
    line-height: 1.45;
}

.shop-hero-cta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.shop-hero-blob {
    display: grid;
    place-items: center;
    transform: translateX(8px);
}

.shop-hero-blob svg {
    width: min(42vw, 158px);
    height: min(42vw, 158px);
    filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .18));
}

.shop-hero-dots {
    position: absolute;
    right: 0;
    bottom: -6px;
    left: 0;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 0;
    z-index: 2;
}

.shop-hero-dots button {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
}

.shop-hero-dots button::before {
    content: '';
    position: absolute;
    top: 19px;
    left: 19px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 1px 4px rgba(6, 31, 82, .45);
}

.shop-hero-dots button.active::before {
    left: 15px;
    width: 14px;
    border-radius: 4px;
    background: var(--brand-yellow, #ffc500);
}

.shop-hero-dots button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

.quick-cats,
.quick-shop-strip,
.voucher-strip,
.flash-section,
.trust-strip,
.catalog-section,
.proof-strip,
.latest-order,
.shop-footer-cta {
    margin-top: 12px;
}

.quick-cats-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 74px;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 1px 8px;
    scroll-snap-type: x proximity;
}

.quick-cat {
    min-height: 92px;
    padding: 9px 6px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(220, 230, 225, .92);
    display: grid;
    place-items: center;
    align-content: start;
    gap: 6px;
    text-align: center;
    color: var(--ink);
    box-shadow: 0 8px 18px rgba(20, 33, 29, .05);
    scroll-snap-align: start;
}

.quick-cat:hover {
    text-decoration: none;
    border-color: rgba(15, 118, 110, .34);
}

.quick-cat.active {
    outline: 2px solid rgba(15, 118, 110, .22);
    background: #f4fffb;
}

.quick-cat-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: 0 8px 14px rgba(20, 33, 29, .14);
}

.quick-cat-label {
    display: block;
    font-size: 11px;
    line-height: 1.12;
    font-weight: 850;
}

.quick-cat-count {
    margin-top: -2px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.voucher-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(232px, 86%);
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
}

.voucher {
    position: relative;
    min-height: 84px;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    color: #fff;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 12px 24px rgba(20, 33, 29, .08);
}

.voucher::after {
    content: "";
    position: absolute;
    inset: 10px auto 10px 83px;
    border-left: 1px dashed rgba(255, 255, 255, .48);
}

.voucher-side {
    min-height: 58px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .18);
    text-align: center;
}

.voucher-side strong,
.voucher-side small {
    display: block;
    line-height: 1;
}

.voucher-side strong { font-size: 19px; font-weight: 950; }
.voucher-side small { margin-top: -8px; font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.voucher > div:last-child strong { display: block; font-size: 14px; }
.voucher > div:last-child small { display: block; margin-top: 3px; opacity: .87; font-size: 11px; line-height: 1.35; }
.voucher-red { background: linear-gradient(135deg, #b42318, #f97316); }
.voucher-amber { background: linear-gradient(135deg, #92400e, #f2b705); color: #2c1b00; }
.voucher-amber::after { border-left-color: rgba(44, 27, 0, .24); }
.voucher-amber .voucher-side { background: rgba(255, 255, 255, .36); }
.voucher-emerald { background: linear-gradient(135deg, #062679, #ffc500); }

.verify-banner.store-cta {
    background: linear-gradient(135deg, #eef4ff, #ffe0bc);
    border-color: #ffc97a;
    color: #062679;
}

.flash-section,
.catalog-section,
.proof-strip,
.latest-order,
.shop-footer-cta {
    border: 1px solid rgba(220, 230, 225, .82);
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 30px rgba(20, 33, 29, .06);
}

.flash-section,
.catalog-section,
.proof-strip,
.latest-order {
    padding: 14px;
}

.flash-head,
.catalog-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.flash-head h2,
.catalog-head h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.1;
    font-weight: 950;
}

.catalog-head small,
.flash-head small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.flash-head > div {
    min-width: 0;
}

.flash-timer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 7px;
}

.flash-timer em {
    color: #9a3412;
    font-size: 11px;
    font-style: normal;
    font-weight: 850;
}

.flash-timer b {
    min-width: 22px;
    padding: 3px 4px;
    border-radius: 5px;
    background: #111827;
    color: #fff;
    text-align: center;
    font-size: 11px;
}

.flash-more,
.catalog-count {
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.flash-scroll,
.proof-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(138px, 42%);
    gap: 10px;
    overflow-x: auto;
    padding: 1px 1px 5px;
    scroll-snap-type: x proximity;
}

.flash-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    scroll-snap-align: start;
}

.flash-card-art {
    position: relative;
    height: 96px;
    display: grid;
    place-items: center;
    color: #fff;
}

.flash-badge,
.product-discount,
.product-hot {
    position: absolute;
    top: 8px;
    border-radius: 999px;
    padding: 4px 7px;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
}

.flash-badge,
.product-discount {
    right: 8px;
    background: #facc15;
    color: #3f2700;
}

.product-hot {
    left: 8px;
    background: rgba(239, 68, 68, .96);
    color: #fff;
}

.flash-letter {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .24);
    font-size: 28px;
    font-weight: 950;
}

.flash-card-body {
    display: grid;
    gap: 6px;
    padding: 10px;
}

.flash-card-name {
    min-height: 34px;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 850;
}

.flash-card-price {
    display: flex;
    gap: 6px;
    align-items: baseline;
    flex-wrap: wrap;
}

.flash-card-price strong {
    color: #dc2626;
    font-size: 16px;
    font-weight: 950;
}

.flash-card-price span {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 11px;
    font-weight: 700;
}

.flash-card-meta {
    color: #9a3412;
    font-size: 11px;
    font-weight: 850;
}

.flash-card-cta {
    min-height: 32px;
    border: 0;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.flash-card-cta:hover {
    background: var(--accent-dark);
    text-decoration: none;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--line);
}

.trust-strip div {
    min-width: 0;
    padding: 12px 7px;
    background: #fff;
    text-align: center;
}

.trust-strip strong,
.trust-strip small {
    display: block;
}

.trust-strip strong {
    color: var(--accent-dark);
    font-size: 16px;
    font-weight: 950;
}

.trust-strip small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
}

/* old horizontal tabs — replaced by sidebar, kept hidden for fallback */
.catalog-tabs { display: none; }

/* ── Catalog browser: sidebar + product pane ──────────────── */
.catalog-browser {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

/* LEFT sidebar */
.cat-sidebar {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 72vh;
    scrollbar-width: none;
    background: #f5f5f5;
    border-right: 1px solid var(--line);
    position: sticky;
    top: 62px;
    align-self: start;
}
.cat-sidebar::-webkit-scrollbar { display: none; }

.cat-sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-bottom: 1px solid var(--line);
    transition: background .12s;
    position: relative;
    text-align: center;
    width: 100%;
}
.cat-sidebar-item:last-child { border-bottom: none; }
.cat-sidebar-item:hover { background: rgba(232,96,26,.07); }

.cat-sidebar-item.active {
    background: #fff;
}
.cat-sidebar-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
    border-radius: 0 2px 2px 0;
}

.cat-sidebar-icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform .15s;
}
.cat-sidebar-icon svg {
    width: 17px; height: 17px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}
.cat-sidebar-item.active .cat-sidebar-icon,
.cat-sidebar-item:hover  .cat-sidebar-icon { transform: scale(1.08); }

.cat-sidebar-label {
    font-size: 9px;
    font-weight: 800;
    color: var(--muted);
    line-height: 1.2;
    word-break: break-word;
    max-width: 62px;
}
.cat-sidebar-item.active .cat-sidebar-label { color: var(--accent); }

.cat-sidebar-count {
    font-size: 8px;
    font-weight: 700;
    color: var(--muted);
    background: var(--line);
    border-radius: 999px;
    padding: 1px 5px;
    min-width: 16px;
    text-align: center;
}
.cat-sidebar-item.active .cat-sidebar-count {
    background: rgba(232,96,26,.12);
    color: var(--accent);
}

/* RIGHT products pane */
.cat-products {
    overflow-y: auto;
    max-height: 72vh;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
    padding: 8px;
    background: #fff;
}
.cat-products::-webkit-scrollbar { width: 3px; }
.cat-products::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

/* product grid inside the right pane */
.catalog-browser .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    display: grid;
}

@media (min-width: 480px) {
    .catalog-browser .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
    .catalog-browser { grid-template-columns: 88px 1fr; }
    .catalog-browser .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.catalog-section .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.catalog-section .product {
    position: relative;
    min-height: 0;
    border-radius: 12px;
    box-shadow: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.catalog-section .product:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(20, 33, 29, .10);
    border-color: rgba(15, 118, 110, .22);
}

.catalog-section .product-media {
    position: relative;
    height: 118px;
    color: #fff;
    overflow: hidden;
}

.catalog-section .product-media::after {
    content: "";
    position: absolute;
    inset: auto -28px -46px auto;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
}

.product-letter {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 21px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(2px);
}

.product-letter svg {
    width: 34px;
    height: 34px;
}

.catalog-section .product-body {
    padding: 8px;
    gap: 5px;
}

.catalog-section .product-name {
    min-height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.32;
    font-weight: 900;
}

.product-meta {
    min-height: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
}

.product-info-line {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    color: #062679;
    font-size: 10.5px;
    font-weight: 900;
    line-height: 1.2;
}

.product-chip-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    min-height: 18px;
    overflow: hidden;
}

.product-chip-row span {
    display: inline-flex;
    align-items: center;
    min-height: 17px;
    padding: 2px 5px;
    border-radius: 5px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 9.5px;
    line-height: 1;
    font-weight: 950;
    white-space: nowrap;
}

.dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--muted);
    opacity: .6;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
}

.product-price {
    color: #dc2626;
    font-size: 15px;
    line-height: 1;
    font-weight: 950;
}

.product-compare {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 10px;
    font-weight: 800;
}

.product-margin,
.product-lock {
    border-radius: 10px;
    padding: 6px 8px;
    font-size: 10.5px;
    line-height: 1.35;
    font-weight: 850;
    word-break: break-word;
    white-space: normal;
}

.product-margin {
    background: var(--gold-soft);
    color: #6c4a00;
}

.product-lock {
    display: block;
    background: var(--soft);
    color: var(--accent-dark);
}

a.product-lock:hover {
    text-decoration: none;
    background: #ffe0bc;
}

.product-signal {
    display: block;
    border-radius: 4px;
    padding: 3px 5px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: .85;
}

.product-signal.good {
    background: #f0fdf4;
    color: #166534;
}

/* subtle guest pricing note — sits below catalog header */
.pricing-hint-bar {
    font-size: 11px;
    color: var(--muted);
    margin: 0 0 6px;
    padding: 6px 10px;
    background: var(--soft);
    border-radius: 8px;
    border-left: 3px solid var(--line);
}
.pricing-hint-bar a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}
.pricing-hint-bar a:hover { text-decoration: underline; }

.product-media-link,
.product-name-link {
    color: inherit;
    text-decoration: none;
}

.product-media-link:hover,
.product-name-link:hover {
    text-decoration: none;
}

.product-thumb,
.flash-thumb {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-thumb {
    position: absolute;
    inset: 0;
    transform: scale(1.02);
}

.guest-price-ticket {
    min-height: 42px;
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 5px 6px;
    border: 1px solid #f5d547;
    border-radius: 6px;
    background: #fff8c9;
    color: var(--brand-ink);
}

.guest-price-ticket__label {
    color: #735900;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.guest-price-ticket__value {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}

.guest-price-ticket .product-price {
    color: var(--brand);
    font-size: 19px;
}

.guest-price-ticket--deal {
    border-color: #fecaca;
    background: #fff1f2;
}

.guest-price-ticket--deal .guest-price-ticket__label,
.guest-price-ticket--deal .product-price {
    color: #c51f30;
}

.guest-price-ticket__value strong {
    padding: 2px 4px;
    border-radius: 3px;
    background: #c51f30;
    color: #fff;
    font-size: 7.5px;
    line-height: 1;
    white-space: nowrap;
}

.admin-banner-summary {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.admin-banner-summary img {
    width: 112px;
    aspect-ratio: 3 / 1;
    border-radius: 6px;
    object-fit: cover;
}

.admin-banner-summary > div {
    min-width: 0;
    display: grid;
    justify-items: start;
    gap: 5px;
}

.chip-success { background: #dcfce7; color: #166534; }
.chip-warning { background: #fef3c7; color: #92400e; }
.chip-neutral { background: #e5e7eb; color: #475569; }

.ps-main-categories .guest-price-ticket {
    min-height: 42px;
    padding: 4px 5px;
}

.ps-main-categories .guest-price-ticket .product-price {
    font-size: 18px;
}

.ps-main-categories .guest-price-ticket__value {
    gap: 3px;
}

.ps-main-categories .guest-price-ticket__value strong {
    font-size: 7px;
}

.flash-thumb {
    border-radius: inherit;
}

.catalog-section .product-media:has(.product-thumb) {
    background: #f8fafc !important;
}

.catalog-section .product-media:has(.product-thumb)::after {
    content: none;
}

.product-detail {
    display: grid;
    gap: 12px;
}

.product-back {
    width: fit-content;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 850;
}

.product-detail-card {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(20, 33, 29, .08);
}

.product-detail-art {
    min-height: 340px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 82% 10%, rgba(255, 184, 0, .34), transparent 36%),
        linear-gradient(135deg, #062679, #08329e);
    color: #fff;
}

.product-detail-art span {
    width: 128px;
    height: 128px;
    border-radius: 36px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .18);
    font-size: 70px;
    font-weight: 950;
}

.product-detail-info {
    display: grid;
    align-content: start;
    gap: 12px;
}

.product-detail-kicker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.product-detail-kicker span {
    color: var(--accent-dark);
    background: var(--soft);
    border-radius: 999px;
    padding: 3px 8px;
}

.product-detail h1 {
    margin: 0;
    font-size: 36px;
    line-height: 1.04;
    font-weight: 950;
}

.product-detail-price {
    display: flex;
    gap: 10px;
    align-items: baseline;
    flex-wrap: wrap;
}

.product-detail-price strong {
    color: #dc2626;
    font-size: 34px;
    line-height: 1;
    font-weight: 950;
}

.product-detail-price span {
    color: var(--muted);
    text-decoration: line-through;
    font-weight: 850;
}

.product-detail-margin {
    max-width: 460px;
}

.product-detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.product-detail-actions .add-row {
    width: min(220px, 100%);
}

.product-detail-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 4px;
}

.product-detail-notes div {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    background: #fbfdfb;
}

.product-detail-notes strong,
.product-detail-notes span {
    display: block;
}

.product-detail-notes strong {
    font-size: 12px;
}

.product-detail-notes span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
}

@media (max-width: 760px) {
    .product-detail-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
        border-radius: 16px;
    }

    .product-detail-art {
        min-height: 210px;
    }

    .product-detail-art span {
        width: 88px;
        height: 88px;
        border-radius: 28px;
        font-size: 48px;
    }

    .product-detail h1 {
        font-size: 26px;
    }

    .product-detail-price strong {
        font-size: 28px;
    }

    .product-detail-notes {
        grid-template-columns: 1fr;
    }
}

.add-button,
.add-button-link {
    width: 100%;
    height: 30px;
    min-height: 30px;
    margin-left: auto;
    border: 0;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 16px rgba(15, 118, 110, .18);
}

.add-button svg,
.add-button-link svg {
    width: 18px;
    height: 18px;
}

.add-row {
    grid-template-columns: 36px minmax(30px, 1fr) 36px;
    gap: 6px;
}

.add-row .qty {
    min-height: 36px;
    border-radius: 999px;
    background: #fff;
}

.proof-scroll {
    grid-auto-columns: minmax(240px, 82%);
}

.proof-card {
    min-height: 150px;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 14px;
    background: linear-gradient(180deg, #fff, #fbfdfb);
    scroll-snap-align: start;
}

.proof-stars {
    color: #f59e0b;
    letter-spacing: 1px;
    font-size: 13px;
}

.proof-card p {
    margin: 9px 0 12px;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.45;
}

.proof-card footer {
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 900;
}

.proof-card footer span {
    color: var(--muted);
    font-weight: 750;
}

.latest-card {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--soft);
}

.latest-pulse {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(15, 118, 110, .12);
}

.latest-card strong,
.latest-card small {
    display: block;
}

.latest-card small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.shop-footer-cta {
    padding: 18px;
    text-align: center;
    background:
        radial-gradient(circle at 80% 0%, rgba(242, 183, 5, .18), transparent 34%),
        linear-gradient(135deg, #fff, #eefaf5);
}

.shop-footer-cta h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 950;
}

.shop-footer-cta p {
    margin: 6px auto 12px;
    max-width: 46ch;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.shop-footer-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.checkout-bar {
    position: fixed;
    left: max(var(--ps-screen-gutter), env(safe-area-inset-left));
    right: max(var(--ps-screen-gutter), env(safe-area-inset-right));
    bottom: calc(var(--ps-tabbar-sticky-base) + 8px);
    z-index: 35;
    min-height: 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    border-radius: 18px;
    background: rgba(11, 94, 88, .96);
    color: #fff;
    box-shadow: 0 18px 38px rgba(11, 94, 88, .28);
    backdrop-filter: blur(8px);
}

.checkout-bar strong,
.checkout-bar small {
    display: block;
}

.checkout-bar strong {
    font-size: 18px;
    font-weight: 950;
}

.checkout-bar small {
    margin-top: 2px;
    color: rgba(255, 255, 255, .78);
    font-size: 11px;
    font-weight: 800;
}

.checkout-bar-btn {
    min-height: 42px;
    display: grid;
    place-items: center;
    white-space: nowrap;
}

.checkout-bar-btn.is-locked {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.ps-tabs {
    grid-template-columns: repeat(5, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -10px 24px rgba(20, 33, 29, .08);
}

.ps-body[data-role="customer"] .ps-tabs,
.ps-body[data-role="guest"] .ps-tabs {
    display: grid;
}

.ps-tabs a {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 8px 3px 7px;
    color: #6b7280;
    font-size: 10.5px;
    line-height: 1;
}

.ps-tabs a:hover {
    text-decoration: none;
}

.ps-tabs a.active {
    color: var(--accent);
}

.ps-tabs svg {
    width: 22px;
    height: 22px;
}

.ps-tabs-cart-bubble {
    position: relative;
    width: 22px;
    height: 22px;
}

.ps-tabs-cart-bubble em {
    top: -8px;
    right: -12px;
}

@media (max-width: 720px) {
    .ps-topbar {
        grid-template-columns: auto minmax(0, 160px) auto;
        gap: 7px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .ps-search {
        grid-column: auto;
        order: 0;
        height: 38px;
        padding: 0 9px;
        gap: 6px;
    }

    .ps-search input {
        font-size: 13px;
    }

    .ps-search input::placeholder {
        color: transparent;
    }

    .ps-brand-sub,
    .ps-user-pill small {
        display: none;
    }

    .ps-brand {
        min-width: 0;
        gap: 7px;
    }

    .ps-brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 11px;
        font-size: 13px;
    }

    .ps-brand-text {
        display: none;
    }

    .ps-brand-wordmark {
        display: inline;
    }

    .ps-brand-name {
        font-size: 17px;
    }

    .ps-topbar-actions {
        justify-self: end;
        gap: 5px;
    }

    .ps-btn-sm {
        min-height: 34px;
        padding: 6px 8px;
        font-size: 12px;
        border-radius: 999px;
        white-space: nowrap;
    }

    .ps-icon-btn {
        width: 36px;
        height: 36px;
    }

    .ps-user-pill {
        min-height: 34px;
        display: grid;
        place-items: center;
        padding: 6px 9px;
        font-size: 12px;
    }
}

@media (min-width: 560px) {
    :root {
        --ps-screen-gutter: 22px;
    }

    .shop-hero-slide {
        grid-template-columns: minmax(0, 1fr) 180px;
        padding: 26px 24px;
    }

    .quick-cats-grid {
        grid-auto-columns: 92px;
    }

    .voucher-strip {
        grid-auto-columns: minmax(250px, 1fr);
    }

    .flash-scroll {
        grid-auto-columns: 172px;
    }

    .catalog-section .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .ps-main-mobile {
        padding-top: 16px;
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .ps-search-hot {
        display: inline-flex;
    }

    .shop-hero {
        border-radius: 24px;
    }

    .shop-hero-slide {
        min-height: 312px;
        grid-template-columns: minmax(0, 1fr) 260px;
        padding: 36px;
    }

    .shop-hero h1 {
        max-width: 15ch;
        font-size: 56px;
    }

    .shop-hero p {
        font-size: 16px;
    }

    .shop-hero-blob svg {
        width: 244px;
        height: 244px;
    }

    .quick-cats-grid {
        grid-auto-flow: initial;
        grid-template-columns: repeat(8, minmax(0, 1fr));
        overflow: visible;
    }

    .quick-cat {
        min-height: 106px;
    }

    .voucher-strip {
        grid-auto-flow: initial;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
    }

    .flash-scroll {
        grid-auto-columns: 184px;
    }

    .catalog-section .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .catalog-section .product-media {
        height: 152px;
    }

    .catalog-section .product-name {
        font-size: 14px;
    }

    .proof-scroll {
        grid-auto-flow: initial;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
    }

    .checkout-bar {
        left: 50%;
        right: auto;
        width: min(560px, calc(100vw - 36px));
        transform: translateX(-50%);
        bottom: 22px;
    }
}

@media (min-width: 1160px) {
    .catalog-section .product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* Product-first storefront compression */
.ps-main-mobile {
    display: flex;
    flex-direction: column;
}

.shop-hero { order: 1; }
.public-store-hub { order: 0; }
.rewards-row { order: 2; }
.quick-shop-strip { order: 3; }
.discount-section { order: 4; }
.quick-cats { order: 5; }
.brand-strip-section { order: 6; }
.top-picks-section { order: 7; }
.checkin-section { order: 8; }
.verify-banner { order: 9; }
.catalog-section { order: 10; }
.latest-order { order: 10; }
.proof-strip { order: 11; }
.shop-footer-cta { order: 12; }

.discount-section {
    padding: 9px;
}

.discount-section .flash-head {
    margin-bottom: 7px;
}

.discount-section .flash-head h2 {
    font-size: 16px;
}

.discount-section .flash-timer {
    display: none;
}

.discount-section .flash-scroll {
    grid-auto-columns: minmax(118px, 31%);
    gap: 7px;
}

.discount-section .flash-card-art {
    height: 70px;
}

.discount-section .flash-card-body {
    gap: 4px;
    padding: 7px;
}

.discount-section .flash-card-name {
    min-height: 27px;
    font-size: 10.5px;
}

.discount-section .flash-card-cta {
    min-height: 28px;
    font-size: 11px;
}

.discount-section .flash-card-price strong {
    font-size: 14px;
}

.discount-section .flash-card-price span,
.discount-section .flash-card-meta {
    font-size: 9.5px;
}
.flash-section { order: 4; }
.voucher-strip,
.trust-strip { display: none; }
.checkout-bar { order: 99; }

.shop-hero {
    margin: 0 0 6px;
    border-radius: 12px;
}

.shop-hero-slide {
    min-height: 92px;
    grid-template-columns: minmax(0, 1fr);
    padding: 10px;
}

.shop-hero h1 {
    max-width: 18ch;
    margin: 5px 0 2px;
    font-size: 18px;
    line-height: 1.02;
}

.shop-hero p {
    max-width: 30ch;
    margin-bottom: 6px;
    font-size: 10px;
    line-height: 1.32;
}

.shop-hero-eyebrow {
    padding: 4px 8px;
    font-size: 9.5px;
}

.shop-hero-cta .ps-btn {
    min-height: 28px;
    padding: 6px 9px;
    font-size: 11px;
}

.shop-hero-dots {
    bottom: -6px;
    margin: 0;
    padding: 0;
}

.quick-cats,
.voucher-strip,
.flash-section,
.trust-strip,
.catalog-section,
.proof-strip,
.latest-order,
.shop-footer-cta {
    margin-top: 8px;
}

.quick-shop-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.quick-shop-strip a {
    min-height: 44px;
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 7px 5px;
    border: 1px solid rgba(15, 118, 110, .13);
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
}

.quick-shop-strip strong {
    color: #dc2626;
    font-size: 15px;
    line-height: 1;
}

.quick-shop-strip span {
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 850;
    line-height: 1.1;
}

.quick-cats-grid {
    grid-auto-columns: 62px;
    gap: 7px;
    padding-bottom: 5px;
}

.quick-cat {
    min-height: 74px;
    padding: 7px 4px;
    border-radius: 12px;
}

.quick-cat-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
}

.quick-cat svg {
    width: 19px;
    height: 19px;
}

.quick-cat-label {
    font-size: 10px;
}

.quick-cat-count {
    display: none;
}

.verify-banner {
    padding: 10px 12px;
    gap: 10px;
    border-radius: 13px;
}

.verify-banner .verify-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.verify-icon svg {
    width: 18px;
    height: 18px;
}

.verify-banner strong {
    font-size: 13px;
}

.verify-banner small {
    font-size: 11px;
    line-height: 1.25;
}

.catalog-section {
    padding: 8px;
}

.catalog-head {
    margin-bottom: 8px;
}

.catalog-head h2 {
    font-size: 16px;
}

.catalog-tabs {
    padding-bottom: 8px;
}

.catalog-tabs button {
    padding: 6px 10px;
    font-size: 10.5px;
}

@media (max-width: 559px) {
    .ps-topbar {
        gap: 7px;
    }

    .ps-search {
        min-height: 34px;
    }

    .ps-search input {
        height: 34px;
        font-size: 12px;
    }

    .shop-hero-blob {
        opacity: .82;
        transform: translateX(4px);
    }

    .discount-section {
        margin-top: 7px;
    }

    .proof-strip,
    .shop-footer-cta {
        display: none;
    }
}

@media (min-width: 900px) {
    .shop-hero {
        border-radius: 18px;
    }

    .shop-hero-slide {
        min-height: 120px;
        grid-template-columns: minmax(0, 1fr);
        padding: 16px;
    }

    .shop-hero h1 {
        max-width: 20ch;
        font-size: 32px;
    }

    .shop-hero p {
        font-size: 14px;
    }

}

/* =========================================================================
   Marketplace UI refresh - section headers, rewards, brand strip, top picks,
   product card chips. Additive only; existing classes left untouched so other
   pages (admin/operator surfaces) keep their teal identity.
   ========================================================================= */

.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin: 14px 4px 8px;
}

.section-title-bar h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 950;
    line-height: 1;
}

.section-mark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-left: 10px;
    position: relative;
    color: #061f52;
    text-transform: none;
}

.section-mark::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, #ee4d2d, #f97316);
}

.section-mark.teal::before { background: linear-gradient(180deg, #08329e, #ffc500); }
.section-mark.navy::before { background: linear-gradient(180deg, #1d4ed8, #38bdf8); }
.section-mark.coral::before { background: linear-gradient(180deg, #ee4d2d, #f97316); }

/* ---------- Rewards row + free-shipping progress ---------- */
.rewards-row {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 8px;
    margin: 4px 0 6px;
}

.rewards-card {
    border-radius: 14px;
    padding: 12px;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 255, 255, .25), transparent 40%),
        linear-gradient(135deg, #ee4d2d 0%, #f97316 70%, #fbbf24 100%);
    box-shadow: 0 12px 24px rgba(234, 88, 12, .28);
    display: grid;
    gap: 8px;
}

.rewards-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.rewards-eyebrow {
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: .12em;
    font-weight: 950;
    background: rgba(255, 255, 255, .22);
    padding: 3px 7px;
    border-radius: 999px;
}

.rewards-card-head strong {
    font-size: 22px;
    font-weight: 950;
    letter-spacing: 0;
}

.rewards-card-head strong em {
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
    margin-left: 2px;
    opacity: .9;
}

.rewards-streak {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    background: rgba(255, 255, 255, .14);
    padding: 5px;
    border-radius: 10px;
}

.rewards-streak span {
    text-align: center;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 0;
    border-radius: 7px;
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .85);
}

.rewards-streak span.active {
    background: #fff;
    color: #ea580c;
}

.rewards-streak span.today {
    background: linear-gradient(135deg, #fde68a, #fbbf24);
    color: #92400e;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
}

.rewards-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.rewards-card-foot small {
    font-size: 11px;
    line-height: 1.3;
    opacity: .92;
    flex: 1;
}

.rewards-card-foot .ps-btn {
    background: #fff;
    color: #ea580c;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
}

.rewards-card-foot .ps-btn:disabled {
    opacity: .82;
    cursor: default;
}

.ship-progress {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    display: grid;
    gap: 8px;
    box-shadow: 0 6px 14px rgba(20, 33, 29, .06);
}

.ship-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
}

.ship-progress-head strong { font-size: 13px; font-weight: 950; color: #062679; }
.ship-progress-head small { font-size: 11px; color: var(--muted); font-weight: 700; }

.ship-bar {
    position: relative;
    height: 8px;
    background: #ffe0bc;
    border-radius: 999px;
    overflow: visible;
}

.ship-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #08329e, #ffc500, #ffc500);
    transition: width .4s ease;
}

.ship-bar-pin {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #08329e;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
}

.ship-progress-foot {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
}

.ship-progress-foot span:first-child { color: var(--muted); }
.ship-progress-foot span:last-child { color: #062679; }

/* ---------- Brand strip ---------- */
.brand-strip-section { margin: 6px 0 4px; }

.brand-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 148px;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 4px 8px;
}

.brand-strip::-webkit-scrollbar { display: none; }

.brand-chip {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
    scroll-snap-align: start;
    transition: transform .15s ease, box-shadow .15s ease;
}

.brand-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(20, 33, 29, .08);
    text-decoration: none;
}

.brand-chip-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    display: grid;
    place-items: center;
    letter-spacing: .02em;
    box-shadow: 0 4px 10px rgba(20, 33, 29, .14);
}

.brand-chip-meta { display: grid; min-width: 0; }
.brand-chip-meta strong {
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
}
.brand-chip-meta small {
    font-size: 10px;
    color: var(--muted);
    font-weight: 800;
    margin-top: 2px;
}

/* ---------- Top picks horizontal shelf ---------- */
.top-picks-section { margin: 6px 0 4px; }

.top-picks-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 188px;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 4px 8px;
}

.top-picks-scroll::-webkit-scrollbar { display: none; }

.top-picks-scroll .product { scroll-snap-align: start; }

.top-picks-scroll .product--pick .product-media { height: 140px; }

/* ---------- Product card upgrades (chips, ratings, vouchers) ---------- */
.product-tag-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    min-height: 16px;
}

.product-mall {
    display: inline-flex;
    align-items: center;
    height: 16px;
    padding: 0 5px;
    border-radius: 4px;
    background: linear-gradient(135deg, #ee4d2d, #f97316);
    color: #fff;
    font-size: 9.5px;
    font-weight: 950;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}

.product-fship {
    display: inline-flex;
    align-items: center;
    height: 16px;
    padding: 0 5px;
    border-radius: 4px;
    background: #eef4ff;
    color: #062679;
    font-size: 9.5px;
    font-weight: 950;
    letter-spacing: .02em;
    line-height: 1;
    text-transform: uppercase;
    border: 1px solid #ffc97a;
}

.product-voucher {
    display: inline-flex;
    align-items: center;
    height: 16px;
    padding: 0 5px;
    border-radius: 4px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 9.5px;
    font-weight: 950;
    letter-spacing: .02em;
    line-height: 1;
    border: 1px dashed #fb923c;
}

.product-flag {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 2;
    background: #fff;
    color: #ea580c;
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 9.5px;
    font-weight: 950;
    letter-spacing: .04em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.product-rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ea580c;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.product-stars {
    display: inline-flex;
    gap: 1px;
}

.product-stars .star {
    width: 10px;
    height: 10px;
    color: #f59e0b;
}

.product-stars .star.empty {
    color: #d1d5db;
}

.product-rating-num {
    color: #ea580c;
    font-size: 10px;
    font-weight: 950;
}

.product-rating-sold {
    color: var(--muted);
    font-weight: 800;
}

.product-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1.2;
    min-height: 13px;
}

.product-meta-line .dot {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--muted);
    opacity: .55;
}

/* ---------- Flash sale stock progress bar ---------- */
.flash-stock-bar {
    height: 6px;
    border-radius: 999px;
    background: #fed7aa;
    overflow: hidden;
    margin-top: 4px;
}

.flash-stock-bar > div {
    height: 100%;
    background: linear-gradient(90deg, #ee4d2d, #f97316);
    transition: width .3s ease;
}

/* ---------- Mobile tightening ---------- */
@media (max-width: 559px) {
    .rewards-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .section-title-bar {
        margin: 10px 2px 6px;
    }

    .section-title-bar h2 {
        font-size: 13px;
    }

    .brand-strip {
        grid-auto-columns: 110px;
    }

    .top-picks-scroll {
        grid-auto-columns: 158px;
    }

    .top-picks-scroll .product--pick .product-media { height: 116px; }

    .product-mall,
    .product-fship,
    .product-voucher {
        font-size: 8.5px;
        height: 14px;
        padding: 0 4px;
    }

    .product-stars .star { width: 9px; height: 9px; }
}

@media (min-width: 900px) {
    .top-picks-scroll { grid-auto-columns: 210px; }
    .brand-strip { grid-auto-columns: 168px; }
    .top-picks-scroll .product--pick .product-media { height: 184px; }
}

/* =========================================================================
   UI Refresh — June 2026
   Secondary nav, auth shell, cart cards, orders list, admin KPIs,
   improved flash messages, status pills, animated skeletons, and polish.
   ========================================================================= */

/* ---- Secondary / role nav (topbar sub-row) ---- */
.ps-secondary-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 6px 18px 8px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
}

.ps-secondary-nav::-webkit-scrollbar { display: none; }

.ps-secondary-nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    transition: background .14s ease, color .14s ease;
    text-decoration: none;
}

.ps-secondary-nav a:hover {
    background: var(--soft);
    color: var(--accent-dark);
    text-decoration: none;
}

.ps-secondary-nav a.active,
.ps-secondary-nav a[aria-current="page"] {
    background: var(--soft);
    color: var(--accent-dark);
}

/* ---- Topbar polish ---- */
.ps-topbar {
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 var(--line), 0 4px 16px rgba(20,33,29,.04);
}

.ps-secondary-nav {
    grid-column: 1 / -1;
    margin: 0 -18px -12px;
    padding: 4px 14px 6px;
}

/* ---- Flash message upgrade ---- */
.flash {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-weight: 700;
    border: 1px solid transparent;
    animation: flashIn .22s ease;
}

@keyframes flashIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.flash-success {
    background: #eef4ff;
    color: #062679;
    border-color: #ffc97a;
}

.flash-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.flash::before {
    content: "";
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-top: 1px;
}

.flash-success::before { background: #08329e; }
.flash-error::before { background: #ef4444; }

/* ---- Status pill upgrades ---- */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
}

.status-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .65;
    flex: 0 0 auto;
}

.status-pill.warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.status-pill.danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.status-pill.success { background: #eef4ff; color: #062679; border: 1px solid #ffc97a; }
.status-pill.info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* Auto-color status pills by keyword */
.status-pill[data-status*="pending"],
.status-pill[data-status*="review"] { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.status-pill[data-status*="complete"],
.status-pill[data-status*="delivered"],
.status-pill[data-status*="paid"] { background: #eef4ff; color: #062679; border-color: #ffc97a; }
.status-pill[data-status*="cancel"],
.status-pill[data-status*="fail"],
.status-pill[data-status*="reject"] { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

/* ---- KPI grid upgrade ---- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.kpi {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    display: grid;
    gap: 8px;
    transition: transform .16s ease, box-shadow .16s ease;
    position: relative;
    overflow: hidden;
}

.kpi::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(90deg, var(--accent), #ffc500);
}

.kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20,33,29,.09);
}

.kpi span {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.kpi strong {
    display: block;
    font-size: 26px;
    font-weight: 950;
    line-height: 1;
    color: var(--ink);
    margin-top: 2px;
}

.kpi.kpi-warn::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.kpi.kpi-danger::before { background: linear-gradient(90deg, #ef4444, #f97316); }
.kpi.kpi-success::before { background: linear-gradient(90deg, #08329e, #ffc500); }
.kpi.kpi-blue::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }

/* ---- Panel upgrades ---- */
.panel {
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(20,33,29,.06);
}

.panel-head h2, .panel-head h3 {
    font-size: 16px;
    font-weight: 900;
}

/* ---- Table upgrade ---- */
.table thead tr {
    background: var(--paper);
}

.table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 10px 8px;
    color: var(--muted);
}

.table td { padding: 10px 8px; vertical-align: middle; }

.table tbody tr {
    transition: background .12s ease;
}

.table tbody tr:hover { background: var(--soft); }

/* ---- Auth page upgrades ---- */
.auth-shell {
    max-width: 460px;
    margin: 0 auto;
    padding-block: 16px 0;
    padding-inline: 0;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.auth-brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #061f52;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(8, 50, 158, .30);
}
.auth-brand-mark svg { width: 56px; height: 56px; display: block; }

.auth-brand-name {
    font-size: 22px;
    font-weight: 900;
    color: var(--ink);
}
.auth-brand-name strong {
    color: var(--accent);
    line-height: 1;
}

.auth-brand-sub {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    margin-top: 2px;
}

.auth-card {
    background: #fff;
    border-radius: 22px;
    padding: 24px 20px;
    border: 1px solid var(--line);
    box-shadow: 0 8px 32px rgba(20,33,29,.08), 0 1px 3px rgba(20,33,29,.05);
}

.auth-card h1 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 900;
}

.auth-card > p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.auth-footer-link {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.auth-footer-link a { font-weight: 700; color: var(--accent-dark); }

.auth-card--pin {
    text-align: center;
}

.auth-device-mark {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--accent);
}

.auth-device-mark svg {
    width: 24px;
    height: 24px;
}

.auth-device-mark .auth-input-icon {
    position: static;
    display: grid;
    width: 24px;
    height: 24px;
    color: #fff;
    opacity: 1;
    place-items: center;
    pointer-events: none;
}

.auth-card--pin .form-row {
    text-align: left;
}

.auth-pin-input {
    width: 100%;
    min-height: 58px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0;
    text-align: center;
}

.auth-pin-input:focus {
    border-color: var(--accent);
    outline: 3px solid rgba(8, 50, 158, .15);
}

.auth-step-label {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e9f8ef;
    color: #166534;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.auth-otp-fallback {
    margin-top: 18px;
}

.auth-security-note {
    margin: 16px 0 0 !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
}

.auth-password-panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    background: #fffaf4;
    margin-bottom: 12px;
}

.auth-password-panel summary {
    cursor: pointer;
    list-style: none;
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-dark);
}

.auth-password-panel summary::-webkit-details-marker { display: none; }

.auth-password-panel[open] summary { margin-bottom: 12px; }

.auth-portal-link {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    color: var(--ink);
    background: #fff;
}

.auth-portal-link strong,
.auth-portal-link small {
    display: block;
}

.auth-portal-link strong {
    font-size: 13px;
}

.auth-portal-link small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.auth-portal-link > span:last-child {
    color: var(--accent);
    font-size: 24px;
    line-height: 1;
}

.auth-portal-roles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 18px;
    padding: 12px 0;
    border-block: 1px solid #e4e7ec;
    list-style: none;
}

.auth-portal-roles li {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 2px 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.auth-portal-roles li + li {
    border-left: 1px solid #e4e7ec;
}

.auth-portal-roles .auth-input-icon {
    position: static;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: var(--accent-dark);
    pointer-events: none;
}

.auth-portal-roles .auth-input-icon svg {
    width: 21px;
    height: 21px;
}

.auth-card--portal .auth-security-note {
    margin: 14px 0 0 !important;
    text-align: center;
}

/* ---- Cart page: mobile card layout ---- */
.cart-shell {
    display: grid;
    gap: 14px;
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 16px 120px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.cart-header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 950;
}

.cart-items-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(20,33,29,.06);
}

.cart-item {
    display: grid;
    grid-template-columns: 56px minmax(0,1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    transition: background .12s ease;
}

.cart-item:last-child { border-bottom: 0; }
.cart-item:hover { background: var(--paper); }

.cart-item-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    overflow: hidden;
    flex: 0 0 auto;
}

.cart-item-info { min-width: 0; }

.cart-item-name {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-meta {
    color: var(--muted);
    font-size: 11.5px;
    margin-top: 3px;
    font-weight: 600;
}

.cart-item-price {
    color: #dc2626;
    font-size: 15px;
    font-weight: 950;
    margin-top: 5px;
}

.cart-qty-row {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
}

.cart-qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    transition: background .12s ease;
}

.cart-qty-btn:hover { background: var(--soft); }

.cart-qty-num {
    width: 36px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 4px 2px;
    font-size: 13px;
    font-weight: 800;
    background: #fff;
}

.cart-remove-btn {
    background: transparent;
    border: 0;
    color: var(--muted);
    padding: 4px;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
    font-size: 18px;
    transition: color .12s ease, background .12s ease;
}

.cart-remove-btn:hover { color: var(--danger); background: #fef2f2; }

.cart-summary-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 2px 12px rgba(20,33,29,.06);
}

.cart-summary-title {
    font-size: 16px;
    font-weight: 900;
    margin: 0 0 14px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
}

.cart-total-row:last-of-type { border-bottom: 0; }

.cart-total-row.grand {
    padding-top: 12px;
    margin-top: 4px;
    font-size: 18px;
    font-weight: 950;
    border-top: 2px solid var(--line);
    border-bottom: 0;
}

.cart-total-row .label { color: var(--muted); font-weight: 600; }
.cart-total-row .value { font-weight: 800; }
.cart-total-row.grand .value { color: #dc2626; }

.cart-notice {
    margin: 12px 0;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.cart-notice-info { background: #eef4ff; color: #062679; border: 1px solid #ffc97a; }
.cart-notice-warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.cart-notice-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.cart-empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--muted);
}

.cart-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 24px;
    background: var(--soft);
    display: grid;
    place-items: center;
    font-size: 36px;
}

.cart-empty h2 { font-size: 18px; color: var(--ink); margin: 0 0 8px; }
.cart-empty p { font-size: 14px; margin: 0 0 18px; line-height: 1.5; }

@media (min-width: 640px) {
    .cart-shell {
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: start;
        padding-bottom: 40px;
    }
    .cart-header { grid-column: 1 / -1; }
    .cart-summary-card { position: sticky; top: 80px; }
}

/* ---- Orders list: card layout ---- */
.orders-shell {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 16px 100px;
    display: grid;
    gap: 10px;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 4px;
}

.orders-header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 950;
}

.order-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 8px 16px;
    align-items: start;
    box-shadow: 0 2px 8px rgba(20,33,29,.05);
    transition: transform .14s ease, box-shadow .14s ease;
    text-decoration: none;
    color: var(--ink);
}

.order-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(20,33,29,.1);
    text-decoration: none;
}

.order-number {
    font-size: 14px;
    font-weight: 900;
    color: var(--ink);
}

.order-msg {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
    line-height: 1.4;
}

.order-items-count {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 5px;
}

.order-card-right {
    text-align: right;
    display: grid;
    gap: 6px;
    justify-items: end;
}

.order-total {
    font-size: 16px;
    font-weight: 950;
    color: var(--ink);
}

.order-eta {
    font-size: 11px;
    color: var(--muted);
    font-weight: 700;
}

.order-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
    margin-top: 4px;
}

/* ---- Admin page chrome upgrade ---- */
.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.admin-page-header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 950;
}

.admin-page-header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

/* ---- Improved btn transitions ---- */
.ps-btn {
    transition: background .14s ease, box-shadow .14s ease, transform .1s ease;
}

.ps-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15,118,110,.22);
}

.ps-btn-warn:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(180,35,24,.22);
}

.ps-btn-ghost:hover:not(:disabled) {
    box-shadow: none;
    transform: none;
}

/* ---- Skeleton loader ---- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s infinite;
    border-radius: 8px;
}

@keyframes skeletonShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- Chip row upgrade ---- */
.chip { transition: background .12s ease; }

/* ---- Page padding adjustments ---- */
.ps-main { padding-top: 16px; }

/* Hide topbar Sign in / Register / user pill on mobile — bottom nav Account tab covers them */
@media (max-width: 720px) {
    .ps-topbar-auth {
        display: none !important;
    }
}

/* ---- Vendor/Rider/Sales portal header ---- */
.portal-hero {
    background:
        radial-gradient(circle at 90% 0%, rgba(15,118,110,.14), transparent 42%),
        linear-gradient(135deg, #fff 0%, #f1f9f5 100%);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 18px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.portal-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-dark), #12a594);
    color: #fff;
    font-size: 24px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    box-shadow: 0 8px 18px rgba(15,118,110,.22);
}

.portal-hero-text h1 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 950;
}

.portal-hero-text p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* ---- Improved topbar nav link active states ---- */
.ps-topbar-nav a.active { background: var(--soft); color: var(--accent-dark); }

/* ---- Checkout form improvements ---- */
.checkout-section-title {
    font-size: 15px;
    font-weight: 900;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-section-title span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

/* ---- Payment method selector ---- */
.pay-method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.pay-method-option {
    display: none;
}

.pay-method-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    transition: border-color .14s ease, background .14s ease;
}

.pay-method-label:hover { border-color: var(--accent); background: var(--soft); }

.pay-method-option:checked + .pay-method-label {
    border-color: var(--accent);
    background: var(--soft);
    color: var(--accent-dark);
}

.pay-method-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--soft);
    display: grid;
    place-items: center;
    font-size: 18px;
}

/* ---- Tracking timeline upgrade ---- */
.track { display: grid; gap: 0; }

.track-row {
    display: grid;
    grid-template-columns: 28px minmax(0,1fr);
    gap: 10px;
    position: relative;
    padding-bottom: 16px;
}

.track-row:last-child { padding-bottom: 0; }

.track-row::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background: var(--line);
}

.track-row:last-child::before { display: none; }

.track-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(15,118,110,.14);
    margin-top: 3px;
    z-index: 1;
    position: relative;
}

.track-row:first-child .track-dot {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(15,118,110,.2), 0 0 0 8px rgba(15,118,110,.06);
}

.track-row strong { font-size: 13px; font-weight: 800; line-height: 1.3; }
.track-row span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.35; }

/* ---- Account page ---- */
.account-section-header {
    font-size: 14px;
    font-weight: 900;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 20px 0 10px;
}

/* ---- Responsive tightening ---- */
@media (max-width: 640px) {
    .admin-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kpi strong { font-size: 22px; }

    .cart-item {
        grid-template-columns: 48px minmax(0,1fr) auto;
        gap: 8px;
        padding: 12px 12px;
    }

    .cart-item-thumb {
        width: 48px;
        height: 48px;
        border-radius: 10px;
        font-size: 18px;
    }

    .order-card { padding: 12px 14px; }
    .portal-hero { padding: 14px 16px; }
    .portal-hero-icon { width: 44px; height: 44px; font-size: 20px; border-radius: 13px; }
}

/* ============================================================
   SCROLL ANNOUNCEMENT BANNER
   ============================================================ */
.ps-scroll-banner {
    background: #061f52;
    color: #fff;
    overflow: hidden;
    height: 34px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 62px;
    z-index: 39;
    border-bottom: 2px solid #08329e;
}

.ps-scroll-banner--promo {
    background: linear-gradient(90deg, #062679 0%, #08329e 40%, #ffc500 100%);
    border-bottom-color: #ffc500;
}

.ps-scroll-banner--urgent {
    background: #b42318;
    border-bottom-color: #ff4d4d;
    animation: urgentPulse 2s ease-in-out infinite;
}

@keyframes urgentPulse {
    0%, 100% { background: #b42318; }
    50%       { background: #dc2626; }
}

.ps-scroll-track {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    animation: scrollTicker 30s linear infinite;
    will-change: transform;
    padding-left: 100%;
}

.ps-scroll-track:hover { animation-play-state: paused; }

@keyframes scrollTicker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.ps-scroll-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    flex: 0 0 4px;
}

.ps-scroll-link {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.35);
}
.ps-scroll-link:hover {
    border-bottom-color: #fff;
    text-decoration: none;
}

/* Admin announcements page */
.announce-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.announce-type-info    { background: #eff6ff; color: #1e40af; }
.announce-type-promo   { background: #eef4ff; color: #062679; }
.announce-type-urgent  { background: #fef2f2; color: #b42318; }

/* ── Spotlight ────────────────────────────────────────────── */
.spotlight-section { margin: 6px 0 4px; }

.spotlight-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    color: #062679;
}

.spotlight-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #08329e;
    animation: spotPulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes spotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(.7); }
}

.spotlight-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    box-shadow: 0 4px 14px rgba(232,96,26,.08);
    transition: box-shadow .18s;
}
.spotlight-card:hover { box-shadow: 0 8px 24px rgba(232,96,26,.16); }

.spotlight-art {
    position: relative;
    min-height: 96px;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.spotlight-art img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.spotlight-badge {
    position: absolute;
    top: 6px; left: 6px;
    background: rgba(26,18,7,.72);
    color: #ffc500;
    font-size: 9px;
    font-weight: 900;
    padding: 3px 7px;
    border-radius: 999px;
    letter-spacing: .04em;
    backdrop-filter: blur(4px);
}
.spotlight-letter {
    font-size: 32px;
    font-weight: 950;
    color: rgba(255,255,255,.85);
    z-index: 1;
}

.spotlight-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 12px 12px 12px 0;
}
.spotlight-brand {
    font-size: 10px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.spotlight-name {
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
    color: var(--ink);
}
.spotlight-price {
    font-size: 17px;
    font-weight: 950;
    color: #08329e;
}
.spotlight-social {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}

/* ── Activity feed ────────────────────────────────────────── */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 4px 0 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.activity-item {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    animation: actFadeIn .4s ease both;
}
.activity-item:last-child { border-bottom: none; }

@keyframes actFadeIn {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: none; }
}

.activity-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #08329e, #ffc500);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.activity-text {
    font-size: 11.5px;
    color: var(--ink);
    line-height: 1.35;
}
.activity-text strong { font-weight: 800; }
.activity-text em { font-style: normal; color: #062679; font-weight: 700; }

.activity-time {
    font-size: 10px;
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
}

/* ── Ship progress solo (replaces ship-progress in rewards-row) ── */
.ship-progress-solo {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 14px;
    margin: 4px 0 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(20,33,29,.05);
}

/* ── Check-in section (moved below top picks) ─────────────── */
.checkin-section { margin: 6px 0 4px; }

.checkin-card {
    border-radius: 14px;
    padding: 14px;
    background:
        radial-gradient(circle at 100% 0, rgba(255,255,255,.22), transparent 40%),
        linear-gradient(135deg, #ee4d2d 0%, #f97316 65%, #fbbf24 100%);
    box-shadow: 0 10px 24px rgba(234,88,12,.22);
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #fff;
}

.checkin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.checkin-eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: 2px;
}

.checkin-coins {
    font-size: 22px;
    font-weight: 950;
    letter-spacing: 0;
}
.checkin-coins em {
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.checkin-btn {
    background: #fff;
    color: #ea580c;
    box-shadow: 0 4px 10px rgba(0,0,0,.12);
    white-space: nowrap;
    flex-shrink: 0;
}
.checkin-btn:disabled { opacity: .82; cursor: default; }

.checkin-streak {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.checkin-streak span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: rgba(255,255,255,.18);
    border-radius: 8px;
    padding: 5px 2px;
    font-size: 9px;
    font-weight: 800;
    transition: background .15s;
}

.checkin-streak span.active {
    background: rgba(255,255,255,.35);
    box-shadow: 0 0 0 1.5px rgba(255,255,255,.7);
}
.checkin-streak span.today {
    background: rgba(255,255,255,.55);
    box-shadow: 0 0 0 2px #fff;
}

.checkin-day-label { opacity: .9; }
.checkin-day-check { font-size: 10px; opacity: .95; }

.checkin-hint {
    font-size: 11px;
    opacity: .88;
    line-height: 1.35;
}

/* ── Order for new sections on mobile ────────────────────── */
.spotlight-section  { order: 2; }
.activity-feed      { order: 3; }
.ship-progress-solo { order: 4; }
.fin-strip          { order: 6; }
.ps-main-store-home .store-app-hub { order: 1; }
.ps-main-store-home .store-restock-shelf { order: 2; }
.ps-main-store-home .verify-banner { order: 3; }
.ps-main-store-home .flash-section { order: 4; }
.ps-main-store-home .top-picks-section { order: 5; }
.ps-main-store-home .brand-strip-section { order: 6; }
.ps-main-store-home .voucher-strip,
.ps-main-store-home .checkin-section,
.ps-main-store-home .proof-strip,
.ps-main-store-home .categories-cta,
.ps-main-store-home .ship-progress-solo,
.ps-main-store-home .store-quick-strip,
.ps-main-store-home .store-control-center,
.ps-main-store-home .spotlight-section,
.ps-main-store-home .activity-feed,
.ps-main-store-home .fin-strip,
.ps-main-store-home .verify-banner.success {
    display: none;
}

.ps-main-store-home {
    display: flex;
    flex-direction: column;
    gap: var(--ps-section-gap);
    width: 100%;
    max-width: var(--ps-app-max-width);
    margin-inline: auto;
    padding-top: var(--ps-block-gap);
    padding-bottom: calc(var(--ps-tabbar-offset) + env(safe-area-inset-bottom));
    padding-left: max(var(--ps-screen-gutter), env(safe-area-inset-left));
    padding-right: max(var(--ps-screen-gutter), env(safe-area-inset-right));
}

.ps-main-store-home .section-title-bar {
    padding-inline: 0;
    margin-bottom: 0;
}

.ps-main-store-home .flash-section,
.ps-main-store-home .top-picks-section,
.ps-main-store-home .brand-strip-section,
.ps-main-store-home .store-restock-shelf {
    padding-inline: 0;
    margin-top: 0;
}

/* ══════════════════════════════════════════════════════════
   FINANCIAL SERVICES STRIP  (homepage quick-access)
   ══════════════════════════════════════════════════════════ */
.fin-strip { margin: 6px 0 4px; }

.fin-strip-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

@media (max-width: 440px) {
    .fin-strip-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.fin-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 6px 10px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    text-decoration: none;
    color: var(--ink);
    text-align: center;
    cursor: pointer;
    transition: box-shadow .15s, transform .12s;
    position: relative;
}
.fin-card:hover { box-shadow: 0 6px 18px rgba(232,96,26,.12); transform: translateY(-2px); }

.fin-card--wallet  { border-color: #ffc500; background: #fffbf0; }
.fin-card--cashin  { border-color: #22c55e; background: #f0fdf4; }
.fin-card--locked  { opacity: .72; }
.fin-card--locked:hover { transform: none; box-shadow: none; }

.fin-card-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--soft);
    flex-shrink: 0;
}
.fin-card--wallet  .fin-card-icon { background: #fff3cd; color: #b45309; }
.fin-card--cashin  .fin-card-icon { background: #dcfce7; color: #15803d; }
.fin-card--transfer .fin-card-icon { background: #dbeafe; color: #1d4ed8; }
.fin-card--bnpl    .fin-card-icon { background: #eef4ff; color: #062679; }
.fin-card--eload   .fin-card-icon { background: #f3e8ff; color: #7e22ce; }

.fin-card-label {
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--ink);
}
.fin-card-value {
    font-size: 13px;
    font-weight: 950;
    color: #08329e;
    line-height: 1;
}
.fin-card-value--sm {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--muted);
}
.fin-card-hint {
    font-size: 9px;
    color: var(--muted);
    font-weight: 700;
}
.fin-card-badge {
    position: absolute;
    top: 5px; right: 5px;
    font-size: 8px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 999px;
    letter-spacing: .04em;
}
.fin-card-badge--live { background: #dcfce7; color: #15803d; }
.fin-card-badge--soon { background: #eef4ff; color: #062679; }

/* ══════════════════════════════════════════════════════════
   WALLET PAGE
   ══════════════════════════════════════════════════════════ */
.wallet-shell {
    max-width: 520px;
    margin: 0 auto;
    padding: 0 0 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Hero balance card */
.wallet-hero {
    background:
        radial-gradient(circle at 110% -10%, rgba(255,255,255,.18), transparent 45%),
        linear-gradient(140deg, #061f52 0%, #2d1f08 60%, #4a3010 100%);
    border-radius: 20px;
    padding: 20px 18px 16px;
    color: #fff;
    margin: 8px 0 0;
}

.wallet-hero-eyebrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    opacity: .7;
    margin-bottom: 14px;
}
.wallet-hero-account {
    color: #ffc500;
    text-decoration: none;
    font-weight: 800;
}

.wallet-balance-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
}
.wallet-balance-label {
    display: block;
    font-size: 11px;
    opacity: .65;
    font-weight: 700;
    margin-bottom: 3px;
}
.wallet-balance-amount {
    font-size: 34px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
}

.wallet-coins-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(245,166,35,.18);
    border: 1px solid rgba(245,166,35,.4);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
    color: #ffc500;
}

/* Wallet quick actions row */
.wallet-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.wallet-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    padding: 10px 6px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s;
}
.wallet-action:hover { background: rgba(255,255,255,.18); }
.wallet-action--active { background: rgba(232,96,26,.55); border-color: #08329e; }
.wallet-action--locked { opacity: .55; cursor: default; }
.wallet-action--locked:hover { background: rgba(255,255,255,.1); }

.wallet-action-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,.15);
    display: grid;
    place-items: center;
}

/* Section title */
.wallet-section-title {
    font-size: 14px;
    font-weight: 900;
    color: var(--ink);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Service cards */
.wservice-card {
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 10px;
}
.wservice-card--locked { opacity: .85; }

.wservice-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}
.wservice-card--locked .wservice-head { border-bottom: none; }

.wservice-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.wservice-icon--green  { background: #dcfce7; color: #15803d; }
.wservice-icon--blue   { background: #dbeafe; color: #1d4ed8; }
.wservice-icon--orange { background: #eef4ff; color: #062679; }
.wservice-icon--purple { background: #f3e8ff; color: #7e22ce; }

.wservice-head > div { flex: 1; }
.wservice-head strong { display: block; font-size: 14px; font-weight: 900; }
.wservice-sub { font-size: 11px; color: var(--muted); font-weight: 600; }

.wservice-badge {
    font-size: 10px;
    font-weight: 900;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}
.wservice-badge--live { background: #dcfce7; color: #15803d; }
.wservice-badge--soon { background: #eef4ff; color: #062679; }

.wservice-body { padding: 14px 16px; }
.wservice-body p { font-size: 13px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }

.wservice-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.wservice-method {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    color: var(--ink);
}

.wservice-form { display: flex; flex-direction: column; gap: 10px; }
.wservice-form-row { display: flex; flex-direction: column; gap: 4px; }
.wservice-form-row label { font-size: 12px; font-weight: 800; color: var(--muted); }
.wservice-form-row input,
.wservice-form-row select {
    border: 1.5px solid var(--line);
    border-radius: 9px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fafafa;
}
.wservice-form-row input:focus,
.wservice-form-row select:focus {
    outline: none;
    border-color: #08329e;
}

.wservice-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 8px 0 4px;
    color: var(--muted);
}
.wservice-coming-soon svg { opacity: .35; }
.wservice-coming-soon strong { font-size: 14px; font-weight: 900; color: var(--ink); }
.wservice-coming-soon p { font-size: 12px; margin: 0; line-height: 1.5; }

.wservice-feature-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

/* Transaction history */
.wallet-history { display: flex; flex-direction: column; gap: 0; }

.wtx-row {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}
.wtx-row:last-child { border-bottom: none; }

.wtx-icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}
.wtx-icon--in  { background: #dcfce7; color: #15803d; }
.wtx-icon--out { background: #fef2f2; color: #b91c1c; }

.wtx-meta strong { display: block; font-size: 13px; font-weight: 800; }
.wtx-meta small  { font-size: 11px; color: var(--muted); font-weight: 600; }

.wtx-amount { font-size: 14px; font-weight: 900; white-space: nowrap; }
.wtx-amount--in  { color: #15803d; }
.wtx-amount--out { color: #b91c1c; }

.wallet-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px 0;
    color: var(--muted);
    text-align: center;
}
.wallet-empty svg { opacity: .3; }
.wallet-empty p { font-size: 13px; margin: 0; line-height: 1.5; }

/* Wallet beta rails: compact, native-feeling transfer and service states. */
.wallet-hero {
    position: relative;
    overflow: hidden;
    background: #08329e;
    border-radius: 14px;
}
.wallet-hero::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 18px;
    right: -32px;
    top: 24px;
    background: #ffc500;
    transform: rotate(35deg);
    pointer-events: none;
}
.wallet-hero > * { position: relative; z-index: 1; }
.wallet-balance-history {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.6);
}
.wallet-action { border-radius: 8px; min-height: 68px; padding: 9px 4px; }
.wallet-action--active { background: rgba(255,197,0,.19); border-color: rgba(255,197,0,.62); }
.wservice-card { border-radius: 8px; }
.wservice-icon { border-radius: 8px; }
.wservice-form-row input,
.wservice-form-row select,
.wservice-form-row textarea {
    border-radius: 8px;
    min-height: 46px;
    padding: 10px 12px;
    width: 100%;
}
.wservice-form-row input:focus,
.wservice-form-row select:focus,
.wservice-form-row textarea:focus { box-shadow: 0 0 0 3px rgba(8,50,158,.1); }
.wservice-form-row label span { font-weight: 600; color: var(--muted); }
.wservice-body--action { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.wservice-body--action > div { min-width: 0; }
.wservice-body--action strong { display: block; font-size: 13px; font-weight: 900; margin-bottom: 3px; }
.wservice-body--action p { margin: 0; font-size: 11px; }
.wservice-body--action .ps-btn { min-height: 42px; white-space: nowrap; }
.wservice-state { display: grid; gap: 8px; text-align: left; }
.wservice-state strong { font-size: 14px; font-weight: 900; }
.wservice-state p { margin: 0; }
.wallet-money-input { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; border: 1.5px solid var(--line); border-radius: 8px; background: #fafafa; overflow: hidden; }
.wallet-money-input:focus-within { border-color: #08329e; box-shadow: 0 0 0 3px rgba(8,50,158,.1); }
.wallet-money-input > span { display: grid; place-items: center; height: 100%; color: #08329e; font-size: 16px; font-weight: 900; border-right: 1px solid var(--line); background: #eef4ff; }
.wallet-money-input input { border: 0; border-radius: 0; box-shadow: none !important; }
.wallet-transfer-limits { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 800; }
.wallet-transfer-review { display: grid; gap: 12px; }
.wallet-transfer-review-head { display: grid; gap: 2px; text-align: center; padding: 12px; background: #eef4ff; border: 1px solid #cddcff; border-radius: 8px; }
.wallet-transfer-review-head span { color: #08329e; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.wallet-transfer-review-head strong { font-size: 16px; font-weight: 950; color: var(--ink); }
.wallet-transfer-review-head small { color: var(--muted); font-weight: 700; }
.wallet-transfer-review dl { margin: 0; display: grid; gap: 7px; }
.wallet-transfer-review dl > div { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.wallet-transfer-review dt { color: var(--muted); }
.wallet-transfer-review dd { margin: 0; color: var(--ink); font-weight: 900; }
.wallet-transfer-note { padding: 9px 10px; background: var(--soft); border-left: 3px solid #08329e; color: var(--ink) !important; font-size: 12px !important; margin: 0 !important; }
.wallet-transfer-warning { padding: 9px 10px; background: #fff8df; border: 1px solid #f3d772; border-radius: 8px; color: #6e4a00 !important; font-size: 11px !important; margin: 0 !important; }
.wallet-mpin-input { text-align: center; font-size: 22px !important; letter-spacing: 8px; font-weight: 900; }
.wallet-transfer-cancel { text-align: center; }
.wallet-transfer-cancel button { border: 0; background: transparent; color: var(--muted); min-height: 40px; padding: 8px 16px; font-size: 12px; font-weight: 800; cursor: pointer; }
.wallet-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wallet-section-head > span { color: var(--muted); font-size: 10px; font-weight: 800; }
.wtx-meta { min-width: 0; }
.wtx-meta small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.wtx-amount--pending { color: var(--muted); }
.wtx-icon--pending { background: #eef4ff; color: #08329e; }

@media (max-width: 360px) {
    .wallet-hero { padding-inline: 12px; }
    .wallet-actions { gap: 5px; }
    .wallet-action { font-size: 10px; }
    .wservice-head, .wservice-body { padding-inline: 12px; }
    .wservice-body--action { grid-template-columns: 1fr; }
    .wservice-body--action .ps-btn { width: 100%; }
}

/* ── 5-tab bottom nav override ─────────────────────────── */
.ps-tabs--5 { grid-template-columns: repeat(5, 1fr); }
.ps-tabs--5 a,
.ps-tabs--5 .ps-tabs-cart { font-size: 9px; }
.ps-tabs--5 svg { width: 20px; height: 20px; }

.ps-tabs--4 { grid-template-columns: repeat(4, 1fr); }
.ps-tabs--4 a,
.ps-tabs--4 .ps-tabs-cart { font-size: 10px; }

.ps-tabs--cart-center {
    align-items: end;
    padding-top: 4px;
}

.ps-tabs--cart-center .ps-tabs-cart {
    margin-top: -22px;
    gap: 4px;
}

.ps-tabs-cart-ring {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--accent-dark), var(--accent));
    box-shadow: 0 10px 22px rgba(8, 50, 158, .38);
    border: 3px solid #fff;
}

.ps-tabs--cart-center .ps-tabs-cart.active .ps-tabs-cart-ring {
    box-shadow: 0 10px 22px rgba(8, 50, 158, .5), 0 0 0 2px rgba(8, 50, 158, .25);
}

.ps-tabs-cart-ring svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.ps-tabs-cart-ring em {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    font-style: normal;
    line-height: 18px;
    text-align: center;
    border: 2px solid #fff;
}

.ps-tabs--cart-center .ps-tabs-cart span:last-child {
    font-weight: 800;
    color: var(--ink);
}

.ps-tabs--cart-center .ps-tabs-cart.active span:last-child {
    color: var(--accent);
}

/* ── Coming-soon toast ─────────────────────────────────── */
.coming-soon-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26,18,7,.88);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    z-index: 9999;
    white-space: nowrap;
    box-shadow: 0 6px 24px rgba(0,0,0,.22);
    animation: toastIn .2s ease;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.categories-page-head {
    padding: 12px 14px 4px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.categories-page-head h1 {
    margin: 4px 0 2px;
    font-size: 20px;
    font-weight: 900;
}
.categories-page-head p {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.categories-cta {
    margin: 8px 12px 0;
}
.categories-cta-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fff7ed, #fff);
    border: 1.5px solid var(--line);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--card-shadow);
}
.categories-cta-card:hover { text-decoration: none; color: var(--accent-dark); }
.categories-cta-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    display: grid;
    place-items: center;
    color: #fff;
}
.categories-cta-icon svg { width: 22px; height: 22px; }
.categories-cta-copy strong { display: block; font-size: 14px; font-weight: 900; }
.categories-cta-copy small { font-size: 11px; color: var(--muted); font-weight: 700; }
.categories-cta-arrow { font-size: 22px; color: var(--accent); font-weight: 900; }

.quick-cat.active {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════
   Customer Journey UI Refresh — marketplace components
   ═══════════════════════════════════════════════════════════ */
:root {
    --marketplace-red: #ee4d2d;
    --marketplace-red-soft: #fff1ed;
    --marketplace-green: #26aa99;
    --marketplace-green-soft: #e8f8f5;
    --mall-bg: #f5f5f5;
    --card-shadow: 0 2px 12px rgba(26, 18, 7, .06);
    --sticky-bar-h: 64px;
}

.ps-main-journey {
    max-width: min(var(--ps-app-max-width), 640px);
    margin-inline: auto;
    padding-top: var(--ps-block-gap);
    padding-bottom: calc(var(--sticky-bar-h) + 88px);
    padding-left: max(var(--ps-screen-gutter), env(safe-area-inset-left));
    padding-right: max(var(--ps-screen-gutter), env(safe-area-inset-right));
    background: var(--mall-bg);
}

.journey-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px 4px;
    font-size: 13px;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
}
.journey-back:hover { text-decoration: none; color: var(--accent); }

.pdp-gallery {
    background: #fff;
    position: relative;
    overflow: hidden;
}
.pdp-gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.pdp-gallery-track::-webkit-scrollbar { display: none; }
.pdp-gallery-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    position: relative;
}
.pdp-gallery-slide img,
.pdp-gallery-letter {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pdp-gallery-letter {
    display: grid;
    place-items: center;
    font-size: 72px;
    font-weight: 900;
    color: rgba(255,255,255,.92);
}
.pdp-gallery-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--marketplace-red);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 4px;
}
.pdp-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0 12px;
    background: #fff;
}
.pdp-gallery-dots span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #ddd;
}
.pdp-gallery-dots span.active { background: var(--accent); width: 16px; }

.pdp-info-card,
.pdp-block {
    background: #fff;
    padding: 14px 16px;
    margin-top: 8px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}
.pdp-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.pdp-price {
    font-size: 26px;
    font-weight: 900;
    color: var(--marketplace-red);
}
.pdp-compare {
    font-size: 14px;
    color: var(--muted);
    text-decoration: line-through;
}
.pdp-discount-tag {
    background: var(--marketplace-red-soft);
    color: var(--marketplace-red);
    font-size: 11px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 4px;
}
.pdp-title {
    margin: 8px 0 6px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}
.pdp-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}
.pdp-stars { color: #ffc500; letter-spacing: 0; }
.pdp-stars em { color: var(--ink); font-style: normal; font-weight: 800; }
.pdp-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.pdp-chip {
    font-size: 10px;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--line);
    background: #f6f8ff;
    color: var(--accent-dark);
}
.pdp-chip--green {
    background: var(--marketplace-green-soft);
    border-color: #b8e8df;
    color: #0f766e;
}
.pdp-chip--red {
    background: var(--marketplace-red-soft);
    border-color: #ffc9bb;
    color: var(--marketplace-red);
}

.pdp-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.pdp-spec-item {
    background: #fafafa;
    border-radius: 8px;
    padding: 10px 12px;
}
.pdp-spec-item strong {
    display: block;
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}
.pdp-spec-item span { font-size: 13px; font-weight: 800; }

.pdp-accordion summary {
    cursor: pointer;
    font-weight: 900;
    font-size: 14px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pdp-accordion summary::-webkit-details-marker { display: none; }
.pdp-accordion summary::after { content: '+'; font-size: 18px; color: var(--muted); }
.pdp-accordion[open] summary::after { content: '−'; }
.pdp-accordion-body {
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
}

.pdp-related-scroll {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    overflow-x: auto;
    padding: 0 0 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.pdp-related-scroll::-webkit-scrollbar {
    display: none;
}

.pdp-related-scroll .product {
    min-height: 0;
    flex: 0 0 136px;
    align-self: flex-start;
    scroll-snap-align: start;
}

.pdp-related-scroll .product-media {
    height: 104px;
}

.pdp-related-scroll .product-body {
    flex: 0 0 auto;
    gap: 4px;
    padding: 8px;
}

.pdp-related-scroll .product-name {
    min-height: 32px;
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.pdp-related-scroll .product-price {
    font-size: 15px;
}

.pdp-related-scroll[data-count="1"] .product {
    width: 100%;
    min-width: 0;
    flex-basis: 100%;
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
}

.pdp-related-scroll[data-count="1"] .product-media {
    width: 104px;
    height: 104px;
}

.pdp-related-scroll[data-count="1"] .product-body {
    min-width: 0;
    justify-content: center;
    padding: 10px 12px;
}

.pdp-related-scroll[data-count="1"] .product-name {
    min-height: 0;
    font-size: 13px;
}

.pdp-buy-bar,
.sticky-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--ps-tabbar-sticky-base);
    z-index: 35;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 10px 14px;
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 8px;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(26,18,7,.08);
}
.pdp-buy-bar-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--soft);
    color: var(--ink);
    text-decoration: none;
    font-size: 18px;
}
.pdp-buy-bar .ps-btn { min-height: 44px; font-size: 14px; font-weight: 900; }
.pdp-buy-bar .add-row { justify-content: center; }

@media (min-width: 900px) {
    .pdp-buy-bar,
    .sticky-action-bar {
        max-width: 640px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 14px 14px 0 0;
    }
}

.cart-mall {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 0 calc(var(--sticky-bar-h) + 88px);
}
.cart-mall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px 8px;
    background: #fff;
}
.cart-mall-header h1 { margin: 0; font-size: 18px; font-weight: 900; }
.cart-mall-store {
    background: #fff;
    margin: 8px 12px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.cart-mall-store-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid #f3f3f3;
    font-size: 13px;
    font-weight: 900;
}
.cart-mall-store-head span { color: var(--accent); }
.cart-mall-progress {
    margin: 8px 12px 0;
    padding: 12px 14px;
    background: linear-gradient(135deg, #fff7ed, #fff);
    border-radius: 12px;
    border: 1px solid var(--line);
}
.cart-mall-progress-bar {
    height: 6px;
    background: #eee;
    border-radius: 999px;
    overflow: hidden;
    margin: 8px 0 6px;
}
.cart-mall-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    border-radius: 999px;
}
.cart-mall-progress small { font-size: 11px; color: var(--muted); font-weight: 700; }

.cart-mall-addon {
    margin: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: var(--card-shadow);
}
.cart-mall-addon h3 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 900;
}
.cart-mall-addon-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.cart-mall-addon-scroll .product { flex: 0 0 130px; }

.checkout-stack {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 0 calc(var(--sticky-bar-h) + 88px);
}
.checkout-card {
    background: #fff;
    margin: 8px 12px 0;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: var(--card-shadow);
}
.checkout-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.checkout-card-head h2,
.checkout-card-head h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 900;
}
.checkout-address-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.checkout-address-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--soft);
    display: grid;
    place-items: center;
    font-size: 16px;
    flex-shrink: 0;
}
.checkout-address-body strong { display: block; font-size: 14px; }
.checkout-address-body span { font-size: 12px; color: var(--muted); line-height: 1.45; }

.checkout-line {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f3f3;
}
.checkout-line:last-child { border-bottom: none; }
.checkout-line-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #fff;
    font-size: 18px;
}
.checkout-line-meta { font-size: 11px; color: var(--muted); font-weight: 700; }

.checkout-pay-options { display: flex; flex-direction: column; gap: 8px; }
.checkout-pay-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border: 1.5px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s;
}
.checkout-pay-option:has(input:checked) {
    border-color: var(--accent);
    background: #f6f8ff;
}
.checkout-pay-option input { accent-color: var(--accent); }
.checkout-pay-option strong { display: block; font-size: 13px; }
.checkout-pay-option small { font-size: 11px; color: var(--muted); font-weight: 600; }

.checkout-totals { margin-top: 4px; }
.checkout-totals .total-row { padding: 6px 0; font-size: 13px; }
.checkout-totals .total-row.grand {
    border-top: 1px dashed var(--line);
    margin-top: 6px;
    padding-top: 10px;
    font-size: 16px;
}

.checkout-voucher-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--marketplace-red-soft);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    color: var(--marketplace-red);
}

.orders-mall { max-width: 640px; margin: 0 auto; padding-bottom: 88px; }
.orders-mall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px 8px;
}
.orders-mall-header h1 { margin: 0; font-size: 18px; font-weight: 900; }

.filter-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 14px 12px;
    scrollbar-width: none;
}
.filter-pills::-webkit-scrollbar { display: none; }
.filter-pill {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    color: var(--muted);
    background: #fff;
    border: 1.5px solid #eee;
}
.filter-pill.active,
.filter-pill:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    text-decoration: none;
}

.order-mall-card {
    background: #fff;
    margin: 0 12px 10px;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: var(--card-shadow);
}
.order-mall-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}
.order-mall-number { font-size: 12px; font-weight: 900; color: var(--muted); }
.order-mall-thumbs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}
.order-mall-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--gold));
}
.order-mall-thumb.more {
    background: #f3f3f3;
    color: var(--muted);
    font-size: 11px;
}

.order-timeline-strip {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 10px 0;
    padding: 8px 0;
    overflow-x: auto;
}
.order-timeline-step {
    flex: 1;
    min-width: 60px;
    text-align: center;
    position: relative;
}
.order-timeline-step::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #eee;
    z-index: 0;
}
.order-timeline-step:last-child::after { display: none; }
.order-timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eee;
    margin: 0 auto 6px;
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    font-size: 10px;
}
.order-timeline-step.done .order-timeline-dot {
    background: var(--marketplace-green);
    color: #fff;
}
.order-timeline-step.active .order-timeline-dot {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(232,96,26,.2);
}
.order-timeline-step small {
    display: block;
    font-size: 9px;
    font-weight: 800;
    color: var(--muted);
    line-height: 1.2;
}
.order-timeline-step.done small,
.order-timeline-step.active small { color: var(--ink); }

.order-mall-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f3f3f3;
}

.order-detail-stack { max-width: 640px; margin: 0 auto; padding-bottom: calc(var(--sticky-bar-h) + 88px); }
.order-status-banner {
    padding: 16px;
    color: #fff;
    text-align: center;
}
.order-status-banner h2 { margin: 0 0 4px; font-size: 18px; }
.order-status-banner p { margin: 0; font-size: 13px; opacity: .9; }
.order-status-banner--success { background: linear-gradient(135deg, #059669, #10b981); }
.order-status-banner--warn { background: linear-gradient(135deg, #d97706, #f59e0b); }
.order-status-banner--info { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.order-status-banner--danger { background: linear-gradient(135deg, #b91c1c, #ef4444); }

.order-timeline-vertical { padding: 4px 0; }
.order-timeline-row {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    padding: 10px 0;
    position: relative;
}
.order-timeline-row:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 28px;
    bottom: -4px;
    width: 2px;
    background: #eee;
}
.order-timeline-row.done::before { background: var(--marketplace-green); }
.order-timeline-row .track-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eee;
    display: grid;
    place-items: center;
    font-size: 10px;
    position: relative;
    z-index: 1;
}
.order-timeline-row.done .track-dot { background: var(--marketplace-green); color: #fff; }
.order-timeline-row.active .track-dot { background: var(--accent); color: #fff; }
.order-timeline-row strong { display: block; font-size: 13px; }
.order-timeline-row span { font-size: 11px; color: var(--muted); }

.payment-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f3f3f3;
    color: var(--muted);
}
.payment-chip--paid { background: #dcfce7; color: #15803d; }
.payment-chip--pending { background: #eef4ff; color: #062679; }

.account-hub { max-width: 640px; margin: 0 auto; padding-bottom: 88px; }
.account-banner {
    background: linear-gradient(135deg, #061f52 0%, #3d2a14 60%, var(--accent-dark) 100%);
    color: #fff;
    padding: 24px 18px 20px;
    position: relative;
    overflow: hidden;
}
.account-banner::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
}
.account-banner h1 { margin: 0 0 4px; font-size: 20px; font-weight: 900; }
.account-banner p { margin: 0; font-size: 13px; opacity: .85; }
.account-verify-badge {
    display: inline-block;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.15);
}
.account-verify-badge--pending { background: rgba(245,166,35,.25); }

.account-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #eee;
    margin: -16px 12px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    position: relative;
    z-index: 2;
}
.account-stat {
    background: #fff;
    padding: 14px 10px;
    text-align: center;
    text-decoration: none;
    color: inherit;
}
.account-stat strong { display: block; font-size: 18px; font-weight: 900; color: var(--accent); }
.account-stat span { font-size: 11px; color: var(--muted); font-weight: 700; }

.account-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 16px 14px;
}
.account-quick-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--ink);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}
.account-quick-tile:hover { text-decoration: none; color: var(--accent); }
.account-quick-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--soft);
    display: grid;
    place-items: center;
    font-size: 20px;
}

.account-section {
    margin: 0 12px 10px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.account-section summary,
.account-section-head {
    padding: 14px 16px;
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f3f3f3;
}
.account-section summary::-webkit-details-marker { display: none; }
.account-section-body { padding: 14px 16px; }

.auth-input-row {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-input-icon {
    position: absolute;
    left: 12px;
    font-size: 16px;
    opacity: .5;
    pointer-events: none;
}
.auth-input-row input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: #fafafa;
    font-size: 14px;
}
.auth-input-row input:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
}
.auth-toggle-pw {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    font-size: 11px;
    font-weight: 800;
    color: var(--accent);
    padding: 4px 8px;
}
.auth-section-title {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    margin: 16px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line);
}

@media (max-width: 767px) {
    .table-as-cards thead { display: none; }
    .table-as-cards tbody tr {
        display: block;
        background: #fff;
        border-radius: 12px;
        margin-bottom: 10px;
        padding: 14px 16px;
        box-shadow: var(--card-shadow);
        border: 1px solid #f0f0f0;
    }
    .table-as-cards tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        padding: 6px 0;
        border: none;
        font-size: 13px;
    }
    .table-as-cards tbody td::before {
        content: attr(data-label);
        font-weight: 800;
        color: var(--muted);
        font-size: 11px;
        text-transform: uppercase;
        flex-shrink: 0;
    }
    .table-as-cards tbody td.num { justify-content: space-between; }
    .table-as-cards .table-actions { justify-content: flex-end; }
    .table-as-cards .table-actions::before { display: none; }

    .kpi-grid-mobile {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 14px;
    }
    .kpi-tile {
        background: #fff;
        border-radius: 12px;
        padding: 14px;
        box-shadow: var(--card-shadow);
    }
    .kpi-tile strong { display: block; font-size: 22px; font-weight: 900; color: var(--accent); }
    .kpi-tile span { font-size: 11px; color: var(--muted); font-weight: 700; }
}

/* PDP extras — 2026-05-29 refresh */
.pdp-gallery-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    gap: 8px;
}
.pdp-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.92);
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    font-size: 16px;
    cursor: pointer;
}
.pdp-gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    overflow-x: auto;
}
.pdp-gallery-thumb {
    flex: 0 0 52px;
    height: 52px;
    border-radius: 8px;
    border: 2px solid transparent;
    opacity: .7;
}
.pdp-gallery-thumb.active {
    border-color: var(--accent);
    opacity: 1;
}
.pdp-mall-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.pdp-mall-pill {
    background: linear-gradient(135deg, var(--mall, #08329e), #ff8c42);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.pdp-brand-name { font-size: 12px; font-weight: 800; color: var(--muted); }
.pdp-voucher-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0 4px;
    margin-bottom: 8px;
}
.pdp-voucher-pill {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 6px;
    background: #fff5f0;
    color: var(--marketplace-red, #ee4d2d);
    border: 1px dashed #ffc9b8;
}
.ps-btn-buy-now {
    background: var(--marketplace-red, #ee4d2d) !important;
    color: #fff !important;
}

/* Cart mall extras */
.cart-mall-select {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 13px;
}
.cart-mall-select input { width: 18px; height: 18px; accent-color: var(--accent); }
.cart-voucher-claim {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 12px 10px;
}
.cart-voucher-claim-pill {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 20px;
    background: #fff5f0;
    color: var(--marketplace-red, #ee4d2d);
    border: 1px solid #ffe0d6;
}
.cart-line-voucher {
    display: inline-block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    background: #fff5f0;
    color: var(--marketplace-red, #ee4d2d);
}

/* Account hub extras */
.account-quick-grid--6 {
    grid-template-columns: repeat(3, 1fr);
}
.account-quick-tile--form {
    padding: 0;
    border: none;
    background: transparent;
}
.account-quick-tile--form button {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    font-weight: 900;
    font-size: 12px;
    cursor: pointer;
    color: var(--ink);
}
.auth-divider {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
    margin: 12px 0;
}
.auth-guest-link {
    border: 1.5px solid var(--line) !important;
    color: var(--ink) !important;
    background: #fff !important;
}

/* Store-home quick tools (wallet + telco) */
.store-quick-strip {
    margin: 8px 0 10px;
    display: grid;
    gap: 10px;
}
.store-wallet-quick {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 10px;
    align-items: center;
    box-shadow: var(--card-shadow);
}
.store-wallet-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.store-wallet-amount {
    font-size: 22px;
    font-weight: 900;
    color: var(--accent);
}
.store-wallet-quick .ps-btn { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

.store-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.store-quick-btn {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 12px;
    display: grid;
    gap: 2px;
    text-decoration: none;
    color: var(--ink);
    box-shadow: var(--card-shadow);
}
.store-quick-btn span { font-size: 16px; }
.store-quick-btn strong { font-size: 13px; font-weight: 900; }
.store-quick-btn small { font-size: 11px; color: var(--muted); font-weight: 700; }

.store-control-center {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    margin: 0 0 10px;
    box-shadow: var(--card-shadow);
}
.store-control-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}
.store-control-head h2 {
    margin: 6px 0 0;
    font-size: 16px;
    line-height: 1.1;
}
.store-control-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.store-control-card {
    min-height: 88px;
    border-radius: 12px;
    padding: 10px;
    background: #f6f8ff;
    border: 1px solid #ffe0bc;
    color: var(--ink);
    text-decoration: none;
    display: grid;
    gap: 3px;
}
.store-control-card.primary {
    background: linear-gradient(135deg, #eef4ff, #fff);
    border-color: var(--accent);
}
.store-control-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #fff;
    box-shadow: 0 4px 12px rgba(232,96,26,.12);
}
.store-control-card strong { font-size: 13px; font-weight: 900; }
.store-control-card small { font-size: 11px; color: var(--muted); font-weight: 700; line-height: 1.25; }

.store-restock-mini {
    margin-top: 12px;
    border-top: 1px dashed var(--line);
    padding-top: 10px;
    display: grid;
    gap: 8px;
}
.store-restock-mini-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
}
.store-restock-mini-head strong { font-size: 13px; font-weight: 900; }
.store-restock-mini-head span { font-size: 11px; color: var(--muted); font-weight: 700; }
.store-restock-row {
    display: grid;
    grid-template-columns: 1fr auto 34px;
    gap: 8px;
    align-items: center;
    padding: 9px;
    border: 1px solid #f5eadf;
    border-radius: 12px;
    background: #fff;
}
.store-restock-name {
    display: grid;
    gap: 2px;
    color: var(--ink);
    text-decoration: none;
    min-width: 0;
}
.store-restock-name strong {
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.store-restock-name small { font-size: 10px; color: var(--muted); font-weight: 700; }
.store-restock-price { font-size: 12px; font-weight: 900; color: var(--accent); white-space: nowrap; }
.store-restock-row .qty-button { width: 34px; height: 34px; }

/* ============================================================
   Store app home (GCash-style hub + FMCG shelves) — 2026-06-02
   ============================================================ */

.ps-body--store-app {
    background: linear-gradient(180deg, #eef4ff 0%, #f8fafc 38%, #f6f8ff 100%);
}

.ps-body--store-app .ps-topbar {
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(10px);
    box-shadow: none;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    padding-top: 8px;
    padding-bottom: 8px;
}

.ps-body--store-app .ps-brand-sub,
.ps-body--store-app .ps-search-hot {
    display: none;
}

.ps-body--store-app .ps-search {
    min-height: 38px;
}

.store-app-hub {
    padding: 0;
    order: 1;
}

.store-app-hub-card {
    border-radius: 22px;
    padding: 18px 16px 14px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, .22), transparent 42%),
        linear-gradient(145deg, #0057d9 0%, #007aff 42%, #00a896 100%);
    box-shadow: 0 14px 34px rgba(0, 87, 217, .28);
}

.store-app-hub-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.store-app-greeting {
    margin: 0 0 2px;
    font-size: 12px;
    font-weight: 700;
    opacity: .88;
}

.store-app-store-name {
    margin: 0;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.15;
    letter-spacing: 0;
}

.store-app-area {
    margin: 4px 0 0;
    font-size: 11px;
    font-weight: 700;
    opacity: .86;
}

.store-app-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 900;
    color: #0057d9;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .18);
}

.store-app-balance-block {
    margin-bottom: 12px;
}

.store-app-balance-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.store-app-balance-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    opacity: .86;
    margin-bottom: 2px;
}

.store-app-balance {
    display: block;
    font-size: 30px;
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: 0;
}

.store-app-coins {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

/* ============================================================
   Pilot beta storefront - 2026-07-20
   ============================================================ */

.ps-main-beta-home {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 8px;
}

.ps-main-beta-home > * {
    order: initial !important;
    margin-top: 0;
}

.ps-main-beta-home .section-title-bar,
.ps-main-beta-home .beta-section-head {
    margin: 0;
}

.ps-search {
    grid-template-columns: 20px minmax(0, 1fr);
}

.public-store-hub--compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 62px;
    padding: 9px 10px;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    background: #fff7ed;
    box-shadow: none;
}

.public-store-hub__compact-copy {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.public-store-hub__compact-copy > div {
    min-width: 0;
}

.public-store-hub__mark {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #08329e;
    color: #fff;
    font-size: 11px;
    font-weight: 950;
}

.public-store-hub--compact .public-store-hub__eyebrow {
    margin: 0 0 1px;
    color: #9a3412;
    font-size: 8px;
    letter-spacing: 0;
}

.public-store-hub__compact-copy strong,
.public-store-hub__compact-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-store-hub__compact-copy strong {
    color: #1f2937;
    font-size: 12px;
    line-height: 1.2;
}

.public-store-hub__compact-copy small {
    margin-top: 2px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
}

.public-store-hub--compact .public-store-hub__register {
    flex: 0 0 auto;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border: 0;
    border-radius: 8px;
    background: #08329e;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    box-shadow: none;
}

.shop-hero--beta {
    border-radius: 10px;
    box-shadow: 0 7px 18px rgba(15, 23, 42, .12);
}

.shop-hero--beta .shop-hero-slide {
    min-height: 112px;
    padding: 10px 12px;
}

.shop-hero--beta .shop-hero-slide::before {
    background: linear-gradient(90deg, rgba(7, 38, 28, .88), rgba(7, 38, 28, .45), rgba(7, 38, 28, .08));
}

.shop-hero--beta .shop-hero-text {
    width: min(76%, 290px);
}

.shop-hero--beta .shop-hero-eyebrow {
    padding: 3px 6px;
    font-size: 8px;
    letter-spacing: 0;
}

.shop-hero--beta h1 {
    max-width: 20ch;
    margin: 4px 0 3px;
    font-size: 18px;
    line-height: 1.05;
    letter-spacing: 0;
}

.shop-hero--beta p {
    max-width: 38ch;
    margin: 0 0 6px;
    font-size: 9px;
    line-height: 1.25;
}

.shop-hero--beta .ps-btn {
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 7px;
    font-size: 10px;
}

.shop-hero--beta .shop-hero-dots {
    bottom: -6px;
}

.beta-product-section,
.beta-categories {
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.beta-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px !important;
}

.beta-section-head h2 {
    margin: 0;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.15;
    letter-spacing: 0;
}

.beta-section-kicker {
    display: block;
    margin-bottom: 2px;
    color: #08329e;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.beta-product-section .flash-more,
.beta-categories .flash-more {
    font-size: 10px;
}

.beta-product-section .flash-scroll {
    grid-auto-columns: 126px;
    gap: 7px;
}

.beta-product-section .flash-card {
    border-radius: 8px;
    box-shadow: none;
}

.beta-product-section .flash-card-art {
    height: 76px;
    border-radius: 7px 7px 0 0;
}

.beta-product-section .flash-card-body {
    gap: 3px;
    padding: 7px;
}

.beta-product-section .flash-card-name {
    min-height: 27px;
    font-size: 10.5px;
}

.beta-product-pack,
.product-pack,
.product-reason {
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
}

.beta-product-section .flash-card-meta {
    color: #15803d;
    font-size: 9px;
    font-weight: 800;
}

.beta-product-section .flash-card-cta {
    min-height: 30px;
    border-radius: 7px;
    font-size: 10px;
}

.beta-category-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 62px;
    gap: 8px;
    overflow-x: auto;
    padding: 1px 0 2px;
    scrollbar-width: none;
}

.beta-category-grid::-webkit-scrollbar {
    display: none;
}

.beta-category-item {
    display: grid;
    justify-items: center;
    gap: 5px;
    color: #334155;
    text-align: center;
    text-decoration: none;
}

.beta-category-item > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #fff;
}

.beta-category-item svg {
    width: 21px;
    height: 21px;
}

.beta-category-item strong {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 9px;
    line-height: 1.15;
    white-space: nowrap;
}

.beta-product-scroll {
    grid-auto-columns: 142px;
    gap: 8px;
}

.beta-product-scroll .product {
    border-radius: 9px;
    box-shadow: none;
}

.beta-product-scroll .product-media,
.top-picks-scroll .product--pick .product-media {
    height: 92px;
}

.beta-product-scroll .product-body {
    gap: 5px;
    padding: 8px;
}

.beta-product-scroll .product-name {
    min-height: 29px;
    font-size: 11px;
}

.product-tag-row {
    align-items: center;
}

.product-pack {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-reason {
    min-height: 22px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-signal.good {
    font-size: 9px;
    line-height: 1.25;
}

.beta-latest-order,
.beta-register-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.beta-latest-order > div,
.beta-register-cta > div {
    min-width: 0;
}

.beta-latest-order strong,
.beta-latest-order small,
.beta-register-cta strong,
.beta-register-cta span {
    display: block;
}

.beta-latest-order strong,
.beta-register-cta strong {
    color: #1f2937;
    font-size: 12px;
}

.beta-latest-order small,
.beta-register-cta span {
    margin-top: 2px;
    color: #64748b;
    font-size: 10px;
    line-height: 1.3;
}

.store-app-hub--beta {
    display: grid;
    gap: 10px;
}

.store-app-hub--beta .store-app-hub-card {
    padding: 13px;
    border-radius: 14px;
    background: linear-gradient(135deg, #075985 0%, #0f766e 100%);
    box-shadow: 0 8px 20px rgba(7, 89, 133, .22);
}

.store-app-hub--beta .store-app-hub-top {
    margin-bottom: 9px;
}

.store-app-hub--beta .store-app-store-name {
    font-size: 17px;
    letter-spacing: 0;
}

.store-app-hub--beta .store-app-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 13px;
}

.store-app-hub--beta .store-app-balance {
    font-size: 23px;
    letter-spacing: 0;
}

.store-app-balance-action {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border-radius: 8px;
    background: #fff;
    color: #075985;
    font-size: 10px;
    font-weight: 900;
    text-decoration: none;
}

.store-app-actions--beta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 10px 0 8px;
}

.store-app-actions--beta .store-app-action {
    gap: 4px;
    padding: 7px 3px;
    border-radius: 9px;
    font-size: 9px;
}

.store-app-actions--beta .store-app-action-icon {
    width: 29px;
    height: 29px;
    border-radius: 8px;
    font-size: 14px;
}

.store-app-credit-strip--beta {
    margin-top: 0;
    padding: 7px 8px;
    border-radius: 9px;
}

.store-app-credit-strip--beta .store-app-credit-link {
    padding: 5px 7px;
    border-radius: 7px;
    font-size: 9px;
}

.store-app-verification {
    display: grid;
    gap: 1px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.store-app-verification strong {
    font-size: 10px;
}

.store-app-verification span {
    color: rgba(255, 255, 255, .78);
    font-size: 9px;
}

.store-app-hub--beta .store-app-categories-wrap {
    padding: 0;
}

.store-app-hub--beta .store-app-categories-head {
    padding-bottom: 6px;
}

.store-app-hub--beta .store-app-cat {
    flex-basis: 58px;
    gap: 4px;
    font-size: 9px;
}

.store-app-hub--beta .store-app-cat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 13px;
}

/* Dense category marketplace: one rail, more products, less chrome. */
.ps-main-categories {
    width: min(100%, 860px);
    max-width: 860px;
    gap: 0;
    padding: 0 0 calc(var(--ps-tabbar-offset) + env(safe-area-inset-bottom));
    background: #f4f5f7;
}

.ps-main-categories .categories-page-head {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    min-height: 50px;
    padding: 5px 10px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.categories-back {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #1f2937;
}

.categories-back:hover {
    background: #f3f4f6;
    color: var(--accent);
    text-decoration: none;
}

.categories-back svg {
    width: 20px;
    height: 20px;
}

.categories-page-title {
    min-width: 0;
}

.ps-main-categories .categories-page-title h1 {
    margin: 0;
    font-size: 16px;
    line-height: 1.15;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ps-main-categories .categories-page-title p {
    margin: 2px 0 0;
    font-size: 10px;
    line-height: 1.15;
    color: #64748b;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.categories-price-mode {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 7px;
    border: 1px solid #fed7aa;
    border-radius: 6px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.ps-main-categories .catalog-section {
    min-width: 0;
    margin-top: 0;
}

.categories-catalog-bar {
    height: 34px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.categories-catalog-bar strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 900;
}

.categories-catalog-bar span {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
}

.categories-catalog-bar b {
    color: var(--accent);
}

.ps-main-categories .catalog-browser {
    grid-template-columns: 64px minmax(0, 1fr);
    height: calc(100dvh - 152px - var(--ps-tabbar-offset) - env(safe-area-inset-bottom));
    min-height: 420px;
    max-height: none;
    border: 0;
    border-radius: 0;
    background: #fff;
}

.ps-main-categories .cat-sidebar,
.ps-main-categories .cat-products {
    height: 100%;
    max-height: none;
}

.ps-main-categories .cat-sidebar {
    position: static;
    top: auto;
    background: #f1f3f5;
    border-color: #e5e7eb;
}

.ps-main-categories .cat-sidebar-item {
    min-height: 58px;
    gap: 2px;
    padding: 5px 3px;
    border-color: #e5e7eb;
}

.ps-main-categories .cat-sidebar-item.active::before {
    width: 3px;
    border-radius: 0;
}

.ps-main-categories .cat-sidebar-icon {
    width: 27px;
    height: 27px;
    border-radius: 7px;
}

.ps-main-categories .cat-sidebar-icon svg {
    width: 14px;
    height: 14px;
}

.ps-main-categories .cat-sidebar-label {
    max-width: 56px;
    font-size: 8px;
    line-height: 1.1;
}

.ps-main-categories .cat-sidebar-count {
    padding: 0 4px;
    font-size: 7px;
    line-height: 13px;
}

.ps-main-categories .cat-products {
    padding: 5px;
    background: #f7f7f8;
    scrollbar-width: none;
}

.ps-main-categories .cat-products::-webkit-scrollbar {
    display: none;
}

.ps-main-categories .catalog-browser .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
}

.ps-main-categories .catalog-section .product {
    min-width: 0;
    border-color: #e5e7eb;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.ps-main-categories .catalog-section .product:hover {
    transform: none;
    box-shadow: none;
}

.ps-main-categories .catalog-section .product-media {
    width: 100%;
    height: auto;
    aspect-ratio: 1.3;
}

.ps-main-categories .catalog-section .product-body {
    gap: 3px;
    padding: 5px;
}

.ps-main-categories .product-tag-row {
    min-height: 14px;
    gap: 3px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.ps-main-categories .product-mall,
.ps-main-categories .product-pack {
    height: 14px;
    min-width: 0;
    padding: 0 4px;
    border-radius: 3px;
    font-size: 8px;
    line-height: 14px;
}

.ps-main-categories .catalog-section .product-name {
    min-height: 29px;
    font-size: 11px;
    line-height: 1.3;
}

.ps-main-categories .product-price-row {
    gap: 3px;
    min-height: 17px;
}

.ps-main-categories .product-price {
    font-size: 14px;
}

.ps-main-categories .product-compare {
    font-size: 8px;
}

.ps-main-categories .product-signal,
.ps-main-categories .product-reason {
    min-height: 0;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 8px;
}

.ps-main-categories .add-button,
.ps-main-categories .add-button-link {
    height: 30px;
    min-height: 30px;
    border-radius: 6px;
    box-shadow: none;
}

.ps-main-categories .add-row {
    grid-template-columns: 30px minmax(24px, 1fr) 30px;
    gap: 3px;
}

.ps-main-categories .add-row .qty,
.ps-main-categories .qty-button {
    min-height: 30px;
    height: 30px;
}

.ps-main-categories .catalog-browser--search {
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 480px) {
    .ps-main-categories .catalog-browser .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 760px) {
    .ps-main-categories {
        margin-top: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        overflow: hidden;
    }

    .ps-main-categories .catalog-browser {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .ps-main-categories .catalog-browser .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ============================================================
   Stakeholder-ready operating surfaces - 2026-08-11
   ============================================================ */

.ps-body--stakeholder {
    background: #f3f4f2;
}

.ps-body--stakeholder .operator-main {
    max-width: 1480px;
}

.stakeholder-dashboard {
    display: grid;
    gap: 14px;
}

.stakeholder-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 176px;
    padding: 28px 30px;
    overflow: hidden;
    border-left: 6px solid #f36a21;
    border-radius: 8px;
    background: #20211e;
    color: #fff;
}

.stakeholder-hero::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -54px;
    width: 190px;
    height: 190px;
    border: 32px solid rgba(255, 255, 255, .05);
    border-radius: 50%;
    pointer-events: none;
}

.stakeholder-hero__copy {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.stakeholder-hero h1 {
    margin: 6px 0 8px;
    color: #fff;
    font-size: 36px;
    line-height: 1;
    letter-spacing: 0;
}

.stakeholder-hero p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.55;
}

.operator-kicker {
    display: block;
    margin-bottom: 3px;
    color: #b54708;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.operator-kicker--light {
    color: #ffb279;
}

.stakeholder-hero__status {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 9px;
    min-width: 230px;
    padding-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, .16);
}

.stakeholder-hero__status span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 850;
}

.stakeholder-hero__status small {
    color: rgba(255, 255, 255, .52);
    font-size: 11px;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, .14);
}

.status-dot--live {
    background: #35c96f;
    box-shadow: 0 0 0 4px rgba(53, 201, 111, .15);
}

.status-dot--api {
    background: #ff8a3d;
    box-shadow: 0 0 0 4px rgba(255, 138, 61, .15);
}

.stakeholder-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.stakeholder-kpi {
    position: relative;
    min-width: 0;
    min-height: 126px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid #e2e4df;
    border-radius: 8px;
    background: #fff;
}

.stakeholder-kpi::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 58px;
    height: 5px;
    background: #26a269;
}

.stakeholder-kpi--revenue::before {
    background: #f36a21;
}

.stakeholder-kpi > span {
    display: block;
    min-height: 30px;
    color: #686d64;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.35;
}

.stakeholder-kpi strong {
    display: block;
    margin: 8px 0 5px;
    overflow-wrap: anywhere;
    color: #20211e;
    font-size: 25px;
    line-height: 1;
}

.stakeholder-kpi small {
    color: #8a8f86;
    font-size: 10.5px;
    font-weight: 750;
}

.stakeholder-grid {
    display: grid;
    gap: 10px;
}

.stakeholder-grid--primary {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr);
}

.stakeholder-grid--secondary {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
}

.stakeholder-section {
    min-width: 0;
    padding: 19px;
    border: 1px solid #e2e4df;
    border-radius: 8px;
    background: #fff;
}

.stakeholder-section__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.stakeholder-section__head h2 {
    margin: 0;
    color: #20211e;
    font-size: 17px;
    line-height: 1.15;
}

.stakeholder-bars {
    display: grid;
    grid-template-columns: repeat(7, minmax(44px, 1fr));
    gap: 8px;
    align-items: end;
    height: 224px;
    padding-top: 18px;
    border-bottom: 1px solid #dfe2dc;
}

.stakeholder-bar {
    display: grid;
    grid-template-rows: 22px minmax(0, 1fr) 20px 18px;
    align-items: end;
    height: 100%;
    text-align: center;
}

.stakeholder-bar__value {
    overflow: hidden;
    color: #7a8076;
    font-size: 9px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stakeholder-bar i {
    display: block;
    width: min(30px, 70%);
    min-height: 7px;
    margin: 0 auto;
    border-radius: 5px 5px 0 0;
    background: #f36a21;
}

.stakeholder-bar:nth-child(2n) i {
    background: #2e9d65;
}

.stakeholder-bar strong,
.stakeholder-bar small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stakeholder-bar strong {
    padding-top: 6px;
    color: #3d413b;
    font-size: 10px;
}

.stakeholder-bar small {
    color: #969b93;
    font-size: 8.5px;
}

.stakeholder-network-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    overflow: hidden;
    border: 1px solid #e3e5e0;
    border-radius: 6px;
    background: #e3e5e0;
}

.stakeholder-network-list div {
    padding: 13px;
    background: #fafbf9;
}

.stakeholder-network-list dt {
    color: #7b8078;
    font-size: 10px;
    font-weight: 800;
}

.stakeholder-network-list dd {
    margin: 4px 0 0;
    color: #20211e;
    font-size: 22px;
    font-weight: 950;
}

.integration-pulse {
    display: grid;
    gap: 4px;
    margin-top: 12px;
    padding: 12px;
    border-left: 3px solid #f36a21;
    background: #fff8f2;
}

.integration-pulse span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94400d;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.integration-pulse strong {
    color: #282923;
    font-size: 13px;
}

.integration-pulse small {
    color: #7b8078;
    font-size: 10px;
}

.pipeline-list {
    display: grid;
    gap: 13px;
}

.pipeline-row {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr) 34px;
    gap: 10px;
    align-items: center;
}

.pipeline-row span {
    color: #575c54;
    font-size: 11px;
    font-weight: 800;
}

.pipeline-row > div {
    height: 7px;
    overflow: hidden;
    border-radius: 4px;
    background: #edf0ea;
}

.pipeline-row i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #2e9d65;
}

.pipeline-row:nth-child(2n) i {
    background: #f36a21;
}

.pipeline-row strong {
    color: #20211e;
    font-size: 12px;
    text-align: right;
}

.action-queue {
    display: grid;
}

.action-queue a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 43px;
    padding: 8px 0;
    border-bottom: 1px solid #eceee9;
    color: #555a52;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.action-queue a:last-child {
    border-bottom: 0;
}

.action-queue strong {
    color: #20211e;
    font-size: 13px;
}

.stakeholder-orders .table td {
    padding-block: 12px;
}

.stakeholder-orders .table td small {
    display: block;
    margin-top: 3px;
    color: #8b9087;
    font-size: 9.5px;
}

.stakeholder-empty {
    padding: 28px !important;
    color: #7b8078;
    text-align: center;
}

.ps-body--stakeholder .operator-sidebar {
    border: 0;
    border-radius: 8px;
    background: #252621;
    box-shadow: none;
}

.ps-body--stakeholder .operator-sidebar-head strong,
.ps-body--stakeholder .operator-sidebar-nav a {
    color: #fff;
}

.ps-body--stakeholder .operator-sidebar-head span {
    color: rgba(255, 255, 255, .48);
}

.ps-body--stakeholder .operator-sidebar-nav a {
    border-left: 3px solid transparent;
    border-radius: 4px;
}

.ps-body--stakeholder .operator-sidebar-nav a:hover {
    background: rgba(255, 255, 255, .06);
}

.ps-body--stakeholder .operator-sidebar-nav a.active {
    border-left-color: #f36a21;
    background: #fff;
    color: #20211e;
}

.integration-state {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.integration-state--live {
    background: #e9f8ef;
    color: #18794e;
}

.logistics-api-intro {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.5;
}

.api-token-reveal {
    display: grid;
    gap: 5px;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid #f4b183;
    border-radius: 6px;
    background: #fff8f2;
}

.api-token-reveal strong {
    color: #94400d;
    font-size: 11px;
}

.api-token-reveal code {
    max-width: 100%;
    overflow: auto;
    padding: 8px;
    border-radius: 4px;
    background: #252621;
    color: #fff;
    font-size: 10px;
}

.api-token-reveal span {
    color: #7b8078;
    font-size: 10px;
}

.api-contract-strip {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.api-contract-strip code {
    padding: 6px 8px;
    border-radius: 4px;
    background: #eff1ed;
    color: #43473f;
    font-size: 9.5px;
}

.store-app-brandline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.store-app-brandline > span {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: #fff;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.store-app-brandline i {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 6px;
    background: #fff;
    color: #08329e;
    font-size: 8px;
    font-style: normal;
}

.store-app-brandline em {
    color: rgba(255, 255, 255, .72);
    font-size: 8.5px;
    font-style: normal;
    font-weight: 800;
}

.store-network-pulse {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 7px;
    background: rgba(255, 255, 255, .2);
}

.store-network-pulse div {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 8px 6px;
    background: rgba(255, 255, 255, .1);
    text-align: center;
}

.store-network-pulse strong,
.store-network-pulse span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-network-pulse strong {
    color: #fff;
    font-size: 12px;
}

.store-network-pulse span {
    color: rgba(255, 255, 255, .68);
    font-size: 8px;
    font-weight: 800;
}

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

    .stakeholder-grid--primary,
    .stakeholder-grid--secondary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .stakeholder-hero {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
        padding: 22px 18px;
    }

    .stakeholder-hero h1 {
        font-size: 28px;
    }

    .stakeholder-hero__status {
        width: 100%;
        padding: 12px 0 0;
        border-top: 1px solid rgba(255, 255, 255, .16);
        border-left: 0;
    }

    .stakeholder-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .stakeholder-kpi {
        min-height: 116px;
        padding: 14px;
    }

    .stakeholder-kpi strong {
        font-size: 20px;
    }

    .stakeholder-bars {
        gap: 4px;
        height: 190px;
    }

    .stakeholder-bar__value {
        display: none;
    }

    .stakeholder-bar {
        grid-template-rows: minmax(0, 1fr) 20px 18px;
    }

    .pipeline-row {
        grid-template-columns: 104px minmax(0, 1fr) 28px;
    }
}

.beta-product-section .flash-card-art {
    overflow: hidden;
}

.beta-product-section .flash-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
}

.ps-search-submit {
    width: 24px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #08329e;
}

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

.store-app-hub--beta,
.store-app-hub--beta .store-app-hub-card,
.store-app-hub--beta .store-app-categories-wrap,
.store-app-hub--beta .store-app-categories-head,
.store-app-hub--beta .store-app-categories {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.store-app-hub--beta .store-app-hub-card,
.store-app-hub--beta .store-app-categories-wrap {
    overflow: hidden;
}

.catalog-empty {
    min-height: 240px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    padding: 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    text-align: center;
}

.catalog-empty strong {
    font-size: 15px;
}

.catalog-empty span {
    color: #64748b;
    font-size: 11px;
}

.pdp-gallery--beta .pdp-gallery-slide {
    min-height: 250px;
}

.pdp-info-card--beta .pdp-mall-row {
    gap: 7px;
}

.pdp-stock-status {
    margin-left: auto;
    color: #15803d;
    font-size: 10px;
    font-weight: 800;
}

.pdp-margin-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 8px 12px 0;
    overflow: hidden;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    background: #bbf7d0;
}

.pdp-margin-card > div {
    padding: 11px 12px;
    background: #f0fdf4;
}

.pdp-margin-card span,
.pdp-margin-card strong {
    display: block;
}

.pdp-margin-card span {
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
}

.pdp-margin-card strong {
    margin-top: 2px;
    color: #15803d;
    font-size: 13px;
}

.pdp-margin-card--locked {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding-right: 10px;
    border-color: #fed7aa;
    background: #fff7ed;
}

.pdp-margin-card--locked > div {
    background: transparent;
}

.pdp-margin-card--locked strong,
.pdp-margin-card--locked a {
    color: #9a3412;
    font-size: 10px;
    font-weight: 800;
}

.pdp-buy-bar--beta {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
}

.pdp-buy-price span,
.pdp-buy-price strong {
    display: block;
    white-space: nowrap;
}

.pdp-buy-price span {
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
}

.pdp-buy-price strong {
    color: #08329e;
    font-size: 14px;
}

.pdp-buy-primary {
    grid-column: span 2;
}

@media (max-width: 380px) {
    .ps-main-beta-home {
        gap: 8px;
    }

    .public-store-hub__compact-copy small,
    .shop-hero--beta p {
        display: none;
    }

    .public-store-hub--compact .public-store-hub__register {
        padding-inline: 8px;
    }

    .shop-hero--beta .shop-hero-slide {
        min-height: 102px;
    }

    .beta-product-scroll {
        grid-auto-columns: 134px;
    }
}

@media (min-width: 560px) {
    .shop-hero--beta .shop-hero-slide {
        min-height: 150px;
        padding: 16px 18px;
    }

    .shop-hero--beta h1 {
        font-size: 24px;
    }

    .beta-product-section .flash-scroll {
        grid-auto-columns: 152px;
    }

    .beta-product-scroll {
        grid-auto-columns: 168px;
    }
}

.store-app-credit-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding: 9px 10px;
    border-radius: 14px;
    background: rgba(3, 7, 18, .16);
    border: 1px solid rgba(255, 255, 255, .18);
}

.store-app-credit-strip span,
.store-app-credit-strip strong {
    display: block;
    line-height: 1.15;
}

.store-app-credit-strip span {
    font-size: 10px;
    font-weight: 800;
    color: rgba(255, 255, 255, .76);
}

.store-app-credit-strip strong {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 950;
    color: #fff;
}

.store-app-credit-link {
    flex: 0 0 auto;
    padding: 7px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #0057d9;
    font-size: 11px;
    font-weight: 950;
    text-decoration: none;
    white-space: nowrap;
}

.store-app-credit-link:hover {
    text-decoration: none;
}

.store-app-action {
    position: relative;
}

.store-app-action-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #fef08a;
    color: #854d0e;
    font-size: 9px;
    font-weight: 900;
    font-style: normal;
    line-height: 16px;
    text-align: center;
}

.store-app-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 14px 0 0;
}

.store-app-stat {
    display: grid;
    gap: 2px;
    padding: 10px 8px;
    border-radius: 14px;
    background: #fff;
    border: 1.5px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    box-shadow: 0 6px 14px rgba(15, 23, 42, .05);
    min-height: 72px;
    position: relative;
    overflow: hidden;
}

.store-app-stat strong {
    font-size: 15px;
    font-weight: 950;
    line-height: 1.1;
    color: var(--accent);
}

.store-app-stat span {
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
}

.store-app-stat small {
    font-size: 9px;
    font-weight: 700;
    color: var(--muted);
    line-height: 1.2;
}

.store-app-stat.ready {
    border-color: rgba(21, 128, 61, .35);
    background: linear-gradient(180deg, #f0fdf4, #fff);
}

.store-app-stat.ready strong {
    color: #15803d;
}

.store-app-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.store-app-action {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 8px 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    transition: background .15s, transform .12s;
}

.store-app-action--locked {
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .72);
}

.store-app-action:hover {
    background: rgba(255, 255, 255, .22);
    text-decoration: none;
    transform: translateY(-1px);
}

.store-app-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 900;
    background: rgba(255, 255, 255, .95);
    color: #0057d9;
}

.store-app-action-icon.load { color: #7c3aed; }
.store-app-action-icon.cart { color: #2563eb; }
.store-app-action-icon.shop { color: #0f766e; }
.store-app-action-icon.orders { color: #c2410c; }
.store-app-action-icon.credit { color: #b45309; }

.store-app-action-form {
    min-width: 0;
    margin: 0;
}

.store-app-action-form .store-app-action {
    width: 100%;
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.store-app-action-icon.reorder { color: #08329e; }

.store-app-ship {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .22);
}

.store-app-ship-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 800;
}

.store-app-ship-head strong { font-size: 12px; }

.store-app-ship-bar {
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .25);
    overflow: hidden;
}

.store-app-ship-bar .ship-bar-fill {
    background: linear-gradient(90deg, #fff, #fef08a);
}

.store-app-ship small {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    font-weight: 700;
    opacity: .86;
}

.store-app-categories-wrap {
    padding: 4px 0 0;
}

.store-app-categories-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 0 10px;
}

.store-app-categories-head h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: 0;
}

.store-app-categories-all {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}

.store-app-categories-all:hover {
    text-decoration: none;
    color: var(--accent-dark);
}

.store-app-categories {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 0 4px;
    scroll-padding-inline: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.store-app-categories::-webkit-scrollbar {
    display: none;
}

.store-app-cat {
    flex: 0 0 72px;
    scroll-snap-align: start;
    display: grid;
    justify-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--ink);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
}

.store-app-cat-label {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    min-height: 24px;
}

.store-app-cat-icon {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .12);
    transition: transform .12s;
}

.store-app-cat:hover .store-app-cat-icon {
    transform: translateY(-2px);
}

.store-app-cat-icon.more {
    background: #fff;
    color: var(--accent);
    border: 1.5px dashed rgba(8, 50, 158, .45);
    box-shadow: none;
}

.store-app-cat-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #1e293b;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    font-style: normal;
    line-height: 16px;
    text-align: center;
    border: 2px solid #fff;
}

.store-restock-shelf {
    padding: 0;
}

.store-restock-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 0 6px;
    scroll-padding-inline: 2px;
    -webkit-overflow-scrolling: touch;
}

.store-restock-card {
    flex: 0 0 148px;
    scroll-snap-align: start;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    display: grid;
    gap: 4px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
    position: relative;
}

.store-restock-art {
    position: relative;
    display: grid;
    place-items: center;
    height: 76px;
    border-radius: 12px;
    text-decoration: none;
}

.store-restock-margin-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #15803d;
    font-size: 9px;
    font-weight: 900;
}

.store-restock-brand {
    font-size: 9px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.store-restock-pack {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
}

.store-restock-letter {
    font-size: 26px;
    font-weight: 950;
    color: rgba(255, 255, 255, .95);
}

.store-restock-title {
    font-size: 11px;
    font-weight: 900;
    line-height: 1.25;
    color: var(--ink);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 28px;
}

.store-restock-prices {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.store-restock-prices strong {
    font-size: 13px;
    font-weight: 950;
    color: var(--accent);
}

.store-restock-prices span {
    font-size: 10px;
    font-weight: 800;
    color: #15803d;
}

.store-restock-prices small {
    flex-basis: 100%;
    font-size: 9px;
    font-weight: 700;
    color: var(--muted);
}

.store-restock-add {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

@media (max-width: 380px) {
    .store-app-store-name { font-size: 19px; }
    .store-app-balance { font-size: 26px; }
    .store-app-cat { flex-basis: 64px; }
    .store-app-cat-icon { width: 44px; height: 44px; }
    .store-app-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .store-app-stat { min-height: 64px; }
    .ps-tabs--5 a,
    .ps-tabs--5 .ps-tabs-cart { font-size: 8.5px; }
}

/* ============================================================
   Auth + partner portal refresh — 2026-06-02
   ============================================================ */

.ps-body--auth {
    background: linear-gradient(180deg, #fff6ed 0%, #f8fafc 42%, #fff 100%);
}

.ps-main-auth {
    width: 100%;
    max-width: var(--ps-app-max-width);
    margin-inline: auto;
    padding-top: var(--ps-block-gap);
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
    padding-left: max(var(--ps-screen-gutter), env(safe-area-inset-left));
    padding-right: max(var(--ps-screen-gutter), env(safe-area-inset-right));
}

.auth-shell--wide {
    max-width: 100%;
}

.ps-body--partner {
    background: #f4f6f8;
}

.ps-main-partner {
    display: flex;
    flex-direction: column;
    gap: var(--ps-section-gap);
    width: 100%;
    max-width: min(920px, calc(var(--ps-app-max-width) + 80px));
    margin-inline: auto;
    padding-top: var(--ps-block-gap);
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
    padding-left: max(var(--ps-screen-gutter), env(safe-area-inset-left));
    padding-right: max(var(--ps-screen-gutter), env(safe-area-inset-right));
}

.ps-body--vendor { --partner-accent: #0f766e; --partner-accent-soft: #ecfdf5; }
.ps-body--sales { --partner-accent: #2563eb; --partner-accent-soft: #eff6ff; }
.ps-body--rider { --partner-accent: #ea580c; --partner-accent-soft: #fff7ed; }

.form-row-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.form-row-head label { margin: 0; }

.auth-inline-link {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
}

.auth-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

.auth-check-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.auth-submit {
    min-height: 48px;
    font-size: 15px;
    border-radius: 14px;
}

.auth-text-btn,
.auth-inline-form button {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
}

.field-hint,
.field-error {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.field-hint { color: var(--muted); }
.field-error { color: var(--danger); }

.ps-field-control,
.form-row textarea.ps-field-control {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fafafa;
    font-size: 14px;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.ps-field-control:focus,
.form-row textarea.ps-field-control:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(8, 50, 158, .12);
}

.ps-field-file {
    width: 100%;
    font-size: 13px;
    font-weight: 700;
}

.auth-input-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    color: var(--muted);
}

.auth-input-row input,
.auth-input-row select,
.auth-input-row textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 44px 12px 42px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fafafa;
    font-size: 14px;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.auth-input-row textarea {
    min-height: 88px;
    padding-top: 12px;
    resize: vertical;
}

.auth-input-row input:focus,
.auth-input-row select:focus,
.auth-input-row textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(8, 50, 158, .12);
}

.auth-input-row--select select {
    appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.auth-input-row--phone .auth-input-icon { left: 52px; }
.auth-input-row--phone input { padding-left: 76px; }

.auth-phone-prefix,
.auth-money-prefix {
    position: absolute;
    left: 12px;
    z-index: 1;
    font-size: 13px;
    font-weight: 900;
    color: var(--muted);
}

.auth-input-row--money input {
    padding-left: 38px;
}

.auth-input-row--money .auth-money-prefix { left: 14px; }

.partner-action-form .auth-input-row.auth-input-row--money input { padding-left: 38px; }

.partner-portal-hero {
    margin-bottom: 0;
    padding: 18px 16px 14px;
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(255,255,255,.18), transparent 42%),
        linear-gradient(145deg, var(--partner-accent, #0f766e), color-mix(in srgb, var(--partner-accent, #0f766e) 72%, #111));
    box-shadow: 0 14px 30px rgba(15, 23, 42, .16);
}

.partner-portal-hero-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.partner-portal-role {
    display: inline-block;
    margin-bottom: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.partner-portal-hero h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.15;
}

.partner-portal-hero p {
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 700;
    opacity: .88;
}

.partner-portal-date {
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.14);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.partner-kpi-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 10px;
    scrollbar-width: none;
}

.partner-kpi-scroll::-webkit-scrollbar { display: none; }

.partner-kpi-scroll--compact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
}

.partner-kpi-scroll--compact-grid .partner-kpi {
    min-width: 0;
}

.partner-kpi-scroll--fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    overflow: visible;
}

.partner-kpi-scroll--fit .partner-kpi {
    min-width: 0;
    padding-inline: 9px;
}

.partner-kpi-scroll--fit .partner-kpi strong { font-size: 18px; }

.partner-kpi {
    flex: 0 0 132px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(4px);
}

.partner-kpi span {
    display: block;
    font-size: 10px;
    font-weight: 800;
    opacity: .86;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.partner-kpi strong {
    display: block;
    margin-top: 4px;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.05;
}

.partner-kpi small {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
    opacity: .78;
}

.partner-kpi.is-warn strong { color: #fef08a; }
.partner-kpi.is-success strong { color: #bbf7d0; }
.partner-kpi.is-blue strong { color: #bfdbfe; }

.sales-target-row {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.sales-target-row:last-child { border-bottom: 0; }

.sales-target-head,
.sales-target-values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sales-target-progress {
    width: 100%;
    height: 8px;
    margin: 10px 0 6px;
    accent-color: var(--partner-accent, #2563eb);
}

.sales-target-values {
    color: #667085;
    font-size: 11px;
}

.sales-target-values strong { color: #1d4ed8; }

.sales-campaign-row {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.sales-campaign-row:last-child { border-bottom: 0; }

.sales-campaign-row p {
    margin: 6px 0;
    color: #344054;
    font-size: 13px;
    line-height: 1.45;
}

.sales-campaign-row small { color: #667085; }

.sales-campaign-row .sales-campaign-incentive {
    margin-top: 8px;
    padding-left: 8px;
    border-left: 3px solid #60a5fa;
    color: #1d4ed8;
    font-weight: 700;
}

.sales-followup-form {
    display: grid;
    grid-template-columns: minmax(100px, .7fr) minmax(125px, .8fr) minmax(180px, 1.4fr) auto;
    gap: 6px;
    min-width: 520px;
}

.sales-followup-form select,
.sales-followup-form input {
    min-height: 38px;
}

@media (max-width: 640px) {
    .sales-target-values span:first-child,
    .sales-target-values span:last-child { max-width: 38%; }

    .sales-followup-wrap {
        overflow: visible;
        border: 0;
    }

    .sales-followup-table,
    .sales-followup-table tbody,
    .sales-followup-table tr,
    .sales-followup-table td {
        display: block;
        width: 100%;
    }

    .sales-followup-table thead { display: none; }

    .sales-followup-table tr {
        padding: 10px 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .sales-followup-table tr:last-child { border-bottom: 0; }

    .sales-followup-table td {
        padding: 3px 0;
        border: 0;
    }

    .sales-followup-table td:nth-child(2)::before {
        content: "Last completed order: ";
        color: #667085;
        font-weight: 700;
    }

    .sales-followup-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
        margin-top: 6px;
    }

    .sales-followup-form input[name="notes"],
    .sales-followup-form .ps-btn {
        grid-column: 1 / -1;
    }
}

.partner-portal-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.partner-portal-nav::-webkit-scrollbar { display: none; }

.partner-portal-nav a {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.partner-portal-nav a.active {
    background: #fff;
    color: var(--partner-accent, #0f766e);
}

.partner-section { display: grid; gap: var(--ps-section-gap); }

.partner-section--split {
    grid-template-columns: 1fr;
}

.partner-panel {
    border-radius: 18px;
    overflow: hidden;
}

.partner-panel-intro,
.partner-empty {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
    font-weight: 700;
}

.partner-card-list {
    display: grid;
    gap: 10px;
}

.partner-order-card,
.partner-task-card {
    border: 1.5px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}

.partner-order-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.partner-order-id {
    display: inline-block;
    font-size: 15px;
    font-weight: 900;
    color: var(--accent);
    text-decoration: none;
}

.partner-order-total {
    font-size: 15px;
    font-weight: 950;
    color: var(--ink);
    white-space: nowrap;
}

.partner-order-meta,
.partner-subline {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.partner-order-customer,
.partner-task-route {
    display: grid;
    gap: 2px;
    margin-bottom: 10px;
    font-size: 13px;
}

.partner-task-route { text-align: right; }

.partner-task-address {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--partner-accent-soft, #f8fafc);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

.partner-action-form .form-row label {
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.partner-action-form .auth-input-row select,
.partner-action-form .auth-input-row input,
.partner-action-form .auth-input-row textarea {
    padding-left: 14px;
}

.partner-order-note { margin: 0; font-size: 13px; }

.partner-inventory-list { display: grid; gap: 10px; }

.partner-inventory-card {
    border: 1.5px solid var(--line);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.partner-inventory-card summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 14px 16px;
    font-weight: 900;
}

.partner-inventory-card summary::-webkit-details-marker { display: none; }

.partner-inventory-stock {
    font-size: 12px;
    font-weight: 800;
    color: var(--partner-accent, var(--accent));
}

.partner-inventory-body {
    padding: 0 16px 16px;
    border-top: 1px solid var(--line);
}

@media (min-width: 860px) {
    .partner-section--split {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

@media (max-width: 767px) {
    .partner-portal-hero h1 {
        font-size: 20px;
    }
}

@media (max-width: 360px) {
    :root {
        --ps-screen-gutter: 16px;
        --ps-section-gap: 14px;
    }
}

@media (min-width: 520px) {
    .store-app-actions {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 768px) {
    :root {
        --ps-screen-gutter: 24px;
        --ps-app-max-width: 560px;
        --ps-tabbar-shell-height: 60px;
    }
}

/* ============================================================
   Native bottom tab bar — 2026-06-02
   ============================================================ */

.ps-tabs {
    left: 50%;
    right: auto;
    width: min(calc(100% - 24px), var(--ps-app-max-width));
    transform: translateX(-50%);
    bottom: max(var(--ps-tabbar-float-gap), env(safe-area-inset-bottom));
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(20px) saturate(1.15);
    -webkit-backdrop-filter: blur(20px) saturate(1.15);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .8) inset,
        0 10px 24px rgba(15, 23, 42, .11),
        0 2px 6px rgba(15, 23, 42, .05);
    padding: 5px 6px 6px;
    min-height: var(--ps-tabbar-shell-height);
    align-items: end;
}

.ps-tabs a,
.ps-tabs .ps-tabs-cart {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: end;
    gap: 5px;
    padding: 4px 6px 2px;
    min-height: 48px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .02em;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color .15s ease, transform .12s ease;
}

.ps-tabs a:active:not(.is-loading),
.ps-tabs .ps-tabs-cart:active:not(.is-loading) {
    transform: scale(.96);
}

.ps-tabs a.active,
.ps-tabs .ps-tabs-cart.active {
    color: var(--accent);
}

.ps-tabs svg {
    width: 23px;
    height: 23px;
}

.ps-tabs--5 a,
.ps-tabs--5 .ps-tabs-cart,
.ps-tabs--4 a,
.ps-tabs--4 .ps-tabs-cart {
    font-size: 10px;
}

.ps-tabs--5 svg:not(.ps-tabs-cart-ring svg) {
    width: 22px;
    height: 22px;
}

.ps-tabs--cart-center {
    padding-top: 10px;
}

.ps-tabs--cart-center .ps-tabs-cart {
    margin-top: -20px;
    gap: 5px;
}

.ps-tabs-cart-ring {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--accent-dark), var(--accent));
    border: 3px solid rgba(255, 255, 255, .95);
    box-shadow:
        0 10px 24px rgba(8, 50, 158, .34),
        0 0 0 1px rgba(15, 23, 42, .04);
}

.ps-tabs-cart-ring svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.ps-tabs--cart-center .ps-tabs-cart.active .ps-tabs-cart-ring {
    box-shadow:
        0 10px 24px rgba(8, 50, 158, .48),
        0 0 0 2px rgba(8, 50, 158, .22);
}

.ps-tabs--cart-center .ps-tabs-cart span:last-child {
    font-size: 10px;
    font-weight: 800;
    color: #475569;
}

.ps-tabs--cart-center .ps-tabs-cart.active span:last-child {
    color: var(--accent);
}

.ps-body--store-app .ps-tabs {
    background: rgba(255, 255, 255, .92);
}

@media (max-width: 360px) {
    .ps-tabs--5 a,
    .ps-tabs--5 .ps-tabs-cart {
        font-size: 9px;
        padding-inline: 2px;
    }

    .ps-tabs-cart-ring {
        width: 48px;
        height: 48px;
    }

    .ps-tabs--cart-center .ps-tabs-cart {
        margin-top: -18px;
    }
}

/* ============================================================
   Accessibility & motion polish — 2026-05-29
   Append-only; keyboard focus, input affordances, reduced motion.
   ============================================================ */

/* Visible keyboard focus ring for interactive elements.
   Mouse/touch users keep the clean look via :focus-visible. */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible,
.ps-btn:focus-visible,
.qty-button:focus-visible,
.add-button:focus-visible,
.filter-pill:focus-visible,
.brand-chip:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius, 10px);
}

/* Restore an accessible focus state on form fields that previously
   removed it with `outline: none`. */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
}

/* Calmer tap feedback on mobile (no blue flash). */
a, button, [role="button"], .ps-btn, .qty-button, .add-button {
    -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .latest-pulse,
    .flash-timer,
    .checkin-coins em,
    .button-spinner {
        animation: none !important;
    }

    .button-spinner {
        opacity: 1 !important;
        transform: none !important;
    }

    .is-loading-pending,
    button.is-pressed,
    a.is-pressed {
        transform: none !important;
    }
}

/* ============================================================
   Operator desktop workspace — admin, vendor, sales partner
   ============================================================ */

.ps-body--operator {
    background: #eef2f6;
}

.ps-main-operator {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    padding-top: 16px;
    padding-bottom: 32px;
    padding-left: max(var(--ps-screen-gutter), env(safe-area-inset-left));
    padding-right: max(var(--ps-screen-gutter), env(safe-area-inset-right));
}

.operator-shell {
    width: 100%;
    max-width: 1480px;
    margin-inline: auto;
}

.operator-main {
    min-width: 0;
}

.operator-sidebar {
    display: none;
}

.operator-table-wrap {
    overflow-x: auto;
}

.ps-body--operator .grid.grid-2,
.ps-body--operator .layout-2col {
    align-items: start;
}

@media (min-width: 1024px) {
    .operator-shell {
        display: grid;
        grid-template-columns: 252px minmax(0, 1fr);
        gap: 24px;
        align-items: start;
    }

    .operator-sidebar {
        display: flex;
        flex-direction: column;
        gap: 12px;
        position: sticky;
        top: 76px;
        align-self: start;
        max-height: calc(100vh - 92px);
        padding: 16px 14px;
        border-radius: 18px;
        border: 1px solid rgba(15, 23, 42, .08);
        background: #fff;
        box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
    }

    .operator-sidebar-head {
        display: grid;
        gap: 2px;
        padding: 2px 8px 10px;
        border-bottom: 1px solid var(--line);
        margin-bottom: 4px;
    }

    .operator-sidebar-head strong {
        font-size: 14px;
        font-weight: 950;
        color: var(--ink);
    }

    .operator-sidebar-head span {
        font-size: 11px;
        font-weight: 700;
        color: var(--muted);
    }

    .operator-sidebar-nav {
        display: grid;
        gap: 4px;
        overflow-y: auto;
    }

    .operator-sidebar-nav a {
        display: block;
        padding: 10px 12px;
        border-radius: 10px;
        color: #475569;
        font-size: 13px;
        font-weight: 800;
        text-decoration: none;
        transition: background .12s ease, color .12s ease;
    }

    .operator-sidebar-nav a:hover {
        background: #f8fafc;
        color: var(--ink);
        text-decoration: none;
    }

    .operator-sidebar-nav a.active {
        background: var(--partner-accent-soft, var(--soft));
        color: var(--partner-accent, var(--accent-dark));
    }

    .ps-body--admin .operator-sidebar-nav a.active {
        background: #ecfdf5;
        color: #0f766e;
    }

    .ps-body--operator .partner-portal-nav {
        display: none;
    }

    .ps-body--operator .partner-kpi-scroll {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
        gap: 10px;
        overflow: visible;
        padding-bottom: 0;
    }

    .ps-body--operator .partner-kpi {
        flex: initial;
    }

    .ps-body--operator .partner-section--desk-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ps-body--operator .partner-panel--wide {
        grid-column: 1 / -1;
    }

    .ps-body--operator .partner-card-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .ps-body--operator .grid.grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ps-body--operator .layout-2col {
        grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    }

    .ps-body--operator .kpi-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ps-body--operator .admin-page-header {
        margin-bottom: 22px;
    }

    .ps-body--operator .panel {
        box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
    }
}

@media (min-width: 1280px) {
    .ps-body--operator .kpi-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* Customer/store autocomplete combobox */
.ps-combobox {
    position: relative;
}

.ps-combobox-input-wrap .ps-combobox-input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    min-height: 46px;
    padding-right: 12px;
}

.ps-combobox-hint {
    margin: 8px 0 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}

.ps-combobox-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 50;
    max-height: 280px;
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .14);
}

.ps-combobox-list li {
    list-style: none;
}

.ps-combobox-option {
    display: grid;
    gap: 2px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.ps-combobox-option strong {
    font-size: 13px;
    color: var(--ink);
}

.ps-combobox-option span {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.ps-combobox-option:hover,
.ps-combobox-option.is-active {
    background: var(--soft);
}

.ps-combobox-empty {
    padding: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

/* ============================================================
   Guest store preview, install prompt, and progressive register gate
   ============================================================ */

.public-store-hub {
    width: 100%;
    max-width: var(--ps-app-max-width);
    margin: -4px auto 8px;
}

.public-store-hub__card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 13px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .22), transparent 28%),
        linear-gradient(135deg, #e85f19 0%, #f59e0b 52%, #0f766e 100%);
    box-shadow: 0 16px 34px rgba(119, 52, 12, .18);
}

.public-store-hub__card::after {
    content: "";
    position: absolute;
    right: -22px;
    top: -30px;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    border: 22px solid rgba(255, 255, 255, .12);
    pointer-events: none;
}

.public-store-hub__top,
.public-store-hub__balance,
.public-store-hub__actions,
.public-store-hub__unlock {
    position: relative;
    z-index: 1;
}

.public-store-hub__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.public-store-hub__eyebrow {
    margin: 0 0 2px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .78);
}

.public-store-hub h1 {
    margin: 0;
    font-size: 25px;
    line-height: .95;
    letter-spacing: 0;
}

.public-store-hub__top span {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 800;
    color: rgba(255, 255, 255, .86);
}

.public-store-hub__register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.public-store-hub__register:hover,
.public-store-action:hover {
    text-decoration: none;
}

.public-store-hub__balance {
    margin-top: 10px;
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 13px;
    background: rgba(26, 18, 7, .18);
}

.public-store-hub__balance span,
.public-store-hub__balance small {
    display: block;
    color: rgba(255, 255, 255, .78);
}

.public-store-hub__balance span {
    font-size: 11px;
    font-weight: 850;
}

.public-store-hub__balance strong {
    display: block;
    margin: 1px 0;
    font-size: 28px;
    line-height: 1;
    letter-spacing: 0;
}

.public-store-hub__balance small {
    font-size: 10.5px;
    font-weight: 700;
}

.public-store-hub__actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin-top: 10px;
}

.public-store-action {
    min-width: 0;
    min-height: 76px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 13px;
    color: #fff;
    background: rgba(255, 255, 255, .16);
}

.public-store-action--primary {
    background: rgba(255, 255, 255, .25);
}

.public-store-action span {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .92);
    color: var(--accent);
    font-size: 15px;
    font-weight: 950;
}

.public-store-action strong,
.public-store-action small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-store-action strong {
    font-size: 11.5px;
    line-height: 1;
}

.public-store-action small {
    color: rgba(255, 255, 255, .76);
    font-size: 9.5px;
    font-weight: 800;
}

.public-store-hub__unlock {
    display: grid;
    gap: 2px;
    margin-top: 9px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .94);
    color: var(--ink);
}

.public-store-hub__unlock strong {
    font-size: 11px;
    font-weight: 950;
}

.public-store-hub__unlock span {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 750;
}

.mobile-install-prompt {
    position: fixed;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(var(--ps-tabbar-offset) + max(8px, env(safe-area-inset-bottom)));
    z-index: 90;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 9px;
    align-items: center;
    max-width: var(--ps-app-max-width);
    margin: 0 auto;
    padding: 10px;
    border: 1px solid rgba(255, 224, 188, .82);
    border-radius: 17px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 46px rgba(26, 18, 7, .18);
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
    transform: translateY(18px);
    opacity: 0;
    transition: transform .18s ease, opacity .18s ease;
}

.mobile-install-prompt.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.mobile-install-prompt__icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: #fff;
    font-size: 12px;
    font-weight: 950;
}

.mobile-install-prompt__copy {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.mobile-install-prompt__copy strong,
.mobile-install-prompt__copy span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-install-prompt__copy strong {
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 950;
    white-space: nowrap;
}

.mobile-install-prompt__copy span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.25;
}

.mobile-install-prompt__action,
.mobile-install-prompt__close {
    border: 0;
    border-radius: 999px;
    font-weight: 950;
}

.mobile-install-prompt__action {
    min-height: 32px;
    padding: 7px 12px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
}

.mobile-install-prompt__close {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: var(--soft);
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
}

.has-store-registration-nudge {
    overflow: hidden;
}

.store-registration-nudge {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: grid;
    align-items: end;
    justify-items: center;
    padding: 14px;
}

.store-registration-nudge__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 18, 7, .42);
    opacity: 0;
    transition: opacity .16s ease;
}

.store-registration-nudge__sheet {
    position: relative;
    z-index: 1;
    width: min(100%, var(--ps-app-max-width));
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 22px 22px 18px 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(26, 18, 7, .28);
    transform: translateY(22px);
    opacity: 0;
    transition: transform .18s ease, opacity .18s ease;
}

.store-registration-nudge.is-visible .store-registration-nudge__backdrop {
    opacity: 1;
}

.store-registration-nudge.is-visible .store-registration-nudge__sheet {
    transform: translateY(0);
    opacity: 1;
}

.store-registration-nudge__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--soft);
    color: var(--muted);
    font-size: 20px;
}

.store-registration-nudge__mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: #fff;
    font-weight: 950;
    box-shadow: 0 10px 24px rgba(8, 50, 158, .25);
}

.store-registration-nudge h2 {
    margin: 2px 38px 0 0;
    font-size: 20px;
    line-height: 1.08;
    letter-spacing: 0;
}

.store-registration-nudge p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.store-registration-nudge__benefits {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.store-registration-nudge__benefits span {
    padding: 7px 9px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 900;
}

.store-registration-nudge__primary {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.store-registration-nudge__secondary {
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

@media (min-width: 640px) {
    .mobile-install-prompt {
        left: 50%;
        right: auto;
        width: min(calc(100% - 28px), var(--ps-app-max-width));
        transform: translate(-50%, 18px);
    }

    .mobile-install-prompt.is-visible {
        transform: translate(-50%, 0);
    }
}

@media (max-width: 380px) {
    .public-store-hub__actions {
        gap: 6px;
    }

    .public-store-action {
        min-height: 70px;
    }

    .public-store-action strong {
        font-size: 10.5px;
    }

    .mobile-install-prompt {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .mobile-install-prompt__action {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .mobile-install-prompt__close {
        display: none;
    }
}

.desktop-mobile-gate {
    display: none;
}

@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
    .ps-body--mobile-gated {
        min-height: 100vh;
        overflow: hidden;
        background:
            radial-gradient(circle at 25% 15%, rgba(8, 50, 158, .12), transparent 28%),
            linear-gradient(135deg, #fff7ed 0%, #ffffff 48%, #eef8f1 100%);
    }

    .ps-body--mobile-gated > :not(.desktop-mobile-gate) {
        display: none !important;
    }

    .desktop-mobile-gate {
        display: grid;
        min-height: 100vh;
        place-items: center;
        padding: 32px;
    }

    .desktop-mobile-gate__panel {
        display: grid;
        justify-items: center;
        width: min(420px, 100%);
        padding: 34px 32px 32px;
        border: 1px solid rgba(15, 23, 42, .08);
        border-radius: 24px;
        background: rgba(255, 255, 255, .92);
        box-shadow: 0 24px 70px rgba(15, 23, 42, .16);
        text-align: center;
    }

    .desktop-mobile-gate__brand {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 22px;
        color: var(--ink);
        font-size: 15px;
        font-weight: 900;
    }

    .desktop-mobile-gate__mark {
        display: grid;
        width: 36px;
        height: 36px;
        place-items: center;
        border-radius: 12px;
        background: var(--brand);
        color: #fff;
        font-size: 13px;
        letter-spacing: 0;
        box-shadow: 0 10px 18px rgba(8, 50, 158, .28);
    }

    .desktop-mobile-gate__qr {
        display: grid;
        width: 236px;
        height: 236px;
        place-items: center;
        margin-bottom: 22px;
        border: 1px solid rgba(15, 23, 42, .08);
        border-radius: 20px;
        background: #fff;
        box-shadow: inset 0 0 0 10px #fff7ed;
        text-decoration: none;
    }

    .desktop-mobile-gate__qr:focus-visible {
        outline: 3px solid var(--brand-yellow);
        outline-offset: 4px;
    }

    .desktop-mobile-gate__qr img {
        width: 196px;
        height: 196px;
        image-rendering: pixelated;
    }

    .desktop-mobile-gate h1 {
        max-width: 330px;
        margin: 0;
        color: var(--ink);
        font-size: 24px;
        line-height: 1.15;
        letter-spacing: 0;
    }

    .desktop-mobile-gate p {
        max-width: 320px;
        margin: 10px 0 16px;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.45;
        font-weight: 700;
    }

    .desktop-mobile-gate__link {
        color: var(--brand-dark);
        font-size: 14px;
        font-weight: 900;
        text-decoration: none;
    }
}

/* Final cascade lock for the pilot beta home components. */
.ps-main-store-home.ps-main-beta-home {
    gap: 10px;
    padding-top: 8px;
}

.ps-main-beta-home .public-store-hub--compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 62px;
    padding: 9px 10px;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    background: #fff7ed;
    color: #1f2937;
    box-shadow: none;
}

.ps-main-beta-home .public-store-hub--compact::after {
    display: none;
}

.ps-main-beta-home .public-store-hub--compact .public-store-hub__eyebrow {
    margin: 0 0 1px;
    color: #9a3412;
}

.ps-main-beta-home .public-store-hub--compact .public-store-hub__register {
    min-height: 34px;
    padding: 0 11px;
    border: 0;
    border-radius: 8px;
    background: #08329e;
    color: #fff;
    box-shadow: none;
}

.store-app-hub--beta .store-app-actions--beta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 10px 0 8px;
}

.store-app-hub--beta .store-app-actions--beta .store-app-action {
    gap: 4px;
    padding: 7px 3px;
    border-radius: 9px;
    font-size: 9px;
}

.store-app-hub--beta .store-app-actions--beta .store-app-action-icon {
    width: 29px;
    height: 29px;
    border-radius: 8px;
    font-size: 14px;
}

.store-app-hub--beta .store-app-credit-strip--beta {
    margin-top: 0;
    padding: 7px 8px;
    border-radius: 9px;
}

.store-app-hub--beta .store-app-categories-wrap {
    padding: 0;
}

.store-app-hub--beta .store-app-categories-head {
    padding-bottom: 6px;
}

.store-app-hub--beta .store-app-cat {
    flex-basis: 58px;
    gap: 4px;
    font-size: 9px;
}

.store-app-hub--beta .store-app-cat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 13px;
}
/* Admin exception control desk */
.exception-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.exception-kpis > div,
.exception-kpis > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 6px;
}

.exception-kpis > a {
    color: inherit;
    text-decoration: none;
}

.exception-kpis span,
.exception-row small,
.exception-link small {
    color: var(--muted);
    font-size: 12px;
}

.exception-kpis strong { font-size: 22px; }
.exception-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.exception-list { display: grid; gap: 0; }

.exception-row,
.exception-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.exception-row:first-child,
.exception-link:first-child { border-top: 0; }
.exception-row__main { min-width: 0; }
.exception-row__main p { margin: 3px 0; font-size: 13px; }
.exception-link { color: inherit; text-decoration: none; }
.exception-link > span:first-child { display: grid; min-width: 0; }
.exception-action { display: flex; align-items: center; gap: 6px; flex: 0 1 620px; justify-content: flex-end; }
.exception-action select { flex: 0 1 175px; }
.exception-action input { min-width: 160px; }

@media (max-width: 850px) {
    .exception-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .exception-columns { grid-template-columns: 1fr; }
    .exception-row { align-items: stretch; flex-direction: column; }
    .exception-action { flex: none; display: grid; grid-template-columns: 1fr; }
    .exception-action select,
    .exception-action input { width: 100%; min-width: 0; }
}

/* ============================================================
   Production UI refinement - 2026-08-17
   Shared mobile geometry, storefront density, auth flow, operator clarity.
   ============================================================ */

:root {
    --ink: #171a21;
    --muted: #667085;
    --soft: #eef4ff;
    --line: #e4e7ec;
    --paper: #f4f5f7;
    --panel: #ffffff;
    --accent: #08329e;
    --accent-dark: #062679;
    --shadow: 0 8px 22px rgba(16, 24, 40, .07);
    --radius: 8px;
    --ps-tabbar-float-gap: 4px;
    --ps-tabbar-shell-height: 64px;
    --ps-tabbar-offset: calc(var(--ps-tabbar-shell-height) + var(--ps-tabbar-float-gap) + 24px);
    --ps-tabbar-sticky-base: calc(max(var(--ps-tabbar-float-gap), env(safe-area-inset-bottom)) + var(--ps-tabbar-shell-height) + 16px);
}

body,
body * {
    letter-spacing: 0;
}

.ps-body,
.ps-body--auth {
    background: #f4f5f7;
}

.ps-main-mobile,
.ps-main-journey {
    background: #f4f5f7;
}

/* Compact, touch-safe customer header. */
.ps-topbar {
    min-height: 56px;
    gap: 8px;
    padding: 6px max(12px, env(safe-area-inset-right)) 6px max(12px, env(safe-area-inset-left));
    border-bottom-color: #e4e7ec;
    background: rgba(255, 255, 255, .98);
    box-shadow: none;
}

.ps-brand {
    min-width: 0;
    min-height: 44px;
    align-items: center;
}

.ps-brand-wordmark {
    font-size: 12px;
}

.ps-search {
    height: 44px;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0;
    padding: 0 10px 0 0;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    background: #f8f9fb;
}

.ps-search:focus-within {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232, 93, 24, .11);
}

.ps-search-submit {
    width: 44px;
    height: 44px;
}

.ps-search input {
    height: 42px;
    font-size: 13px;
}

.ps-icon-btn {
    width: 44px;
    height: 44px;
    border-color: #dfe3e8;
    border-radius: 12px;
    box-shadow: none;
}

/* Store preview and home merchandising. */
.ps-main-beta-home {
    gap: 8px;
    padding-top: 8px;
}

.ps-main-beta-home .public-store-hub--compact {
    min-height: 66px;
    padding: 9px 10px;
    border-color: #b9cdfc;
    border-radius: 8px;
    background: #fff;
}

.public-store-hub__mark {
    border-radius: 8px;
    background: var(--accent);
}

.ps-main-beta-home .public-store-hub--compact .public-store-hub__register {
    min-height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 10.5px;
}

.shop-hero--beta {
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
}

.shop-hero--beta .shop-hero-slide {
    min-height: 118px;
}

.shop-hero--beta .shop-hero-slide::before {
    background: rgba(9, 24, 19, .62);
}

.shop-hero--beta .shop-hero-text {
    width: min(82%, 310px);
}

.shop-hero--beta h1 {
    font-size: 19px;
    line-height: 1.08;
}

.shop-hero--beta p {
    font-size: 10px;
    line-height: 1.35;
}

.shop-hero--beta .ps-btn {
    min-height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 11px;
}

.beta-product-section,
.beta-categories {
    padding: 10px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.beta-section-head {
    min-height: 44px;
    align-items: center;
    margin-bottom: 6px !important;
}

.beta-section-head h2 {
    font-size: 15px;
}

.beta-section-kicker {
    font-size: 9px;
}

.beta-product-section .flash-more,
.beta-categories .flash-more,
.flash-more {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 11px;
    font-weight: 850;
}

.beta-product-section .flash-scroll {
    grid-auto-columns: 132px;
    gap: 8px;
    padding-bottom: 2px;
}

.beta-product-section .flash-card,
.beta-product-scroll .product,
.product {
    border-color: #e4e7ec;
    border-radius: 8px;
    background: #fff;
}

.beta-product-section .flash-card-art {
    height: 82px;
    border-radius: 7px 7px 0 0;
}

.beta-product-section .flash-card-cta,
.flash-card-cta {
    min-height: 44px;
    border-radius: 7px;
    font-size: 10.5px;
}

.ps-main-beta-home .product .add-button,
.ps-main-beta-home .product .add-button-link {
    min-height: 44px;
    height: 44px;
}

.beta-category-item {
    min-height: 64px;
    align-content: start;
}

.beta-category-item > span {
    width: 44px;
    height: 44px;
    border-radius: 8px;
}

.beta-category-item strong {
    font-size: 9.5px;
}

/* Dense browse: retain information density while making actions reliable. */
.ps-main-categories {
    background: #f4f5f7;
}

.ps-main-categories .categories-page-head {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    min-height: 52px;
    padding: 4px 8px;
    border-bottom-color: #e4e7ec;
}

.categories-back {
    width: 44px;
    height: 44px;
}

.ps-main-categories .categories-page-title p {
    font-size: 10.5px;
}

.categories-price-mode {
    min-height: 28px;
    font-size: 9px;
}

.categories-catalog-bar {
    height: 36px;
    border-bottom-color: #e4e7ec;
}

.ps-main-categories .catalog-browser {
    height: calc(100dvh - 236px - env(safe-area-inset-bottom));
    min-height: 390px;
}

.ps-main-categories .cat-sidebar {
    background: #eef0f3;
    border-color: #dfe3e8;
}

.ps-main-categories .cat-sidebar-item {
    min-height: 62px;
    padding: 6px 3px;
    border-color: #dfe3e8;
}

.ps-main-categories .cat-sidebar-label {
    font-size: 9px;
}

.ps-main-categories .cat-sidebar-count {
    font-size: 8px;
}

.ps-main-categories .cat-products {
    padding: 6px;
    background: #f4f5f7;
}

.ps-main-categories .catalog-browser .product-grid {
    gap: 6px;
}

.ps-main-categories .catalog-section .product {
    border-radius: 8px;
}

.ps-main-categories .catalog-section .product-body {
    gap: 4px;
    padding: 6px;
}

.ps-main-categories .product-mall,
.ps-main-categories .product-pack {
    font-size: 8.5px;
}

.ps-main-categories .catalog-section .product-name {
    min-height: 31px;
    font-size: 11.5px;
}

.ps-main-categories .product-price {
    font-size: 15px;
}

.ps-main-categories .product-compare,
.ps-main-categories .product-signal,
.ps-main-categories .product-reason {
    font-size: 9px;
}

.ps-main-categories .add-button,
.ps-main-categories .add-button-link,
.ps-main-categories .add-row .qty,
.ps-main-categories .qty-button {
    min-height: 44px;
    height: 44px;
}

.ps-main-categories .add-row {
    grid-template-columns: 44px minmax(28px, 1fr) 44px;
}

/* Product detail: stable controls above the raised center tab. */
.journey-back {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    margin: 4px 8px;
    border-radius: 8px;
    background: #fff;
    color: #344054;
}

.journey-back svg {
    width: 20px;
    height: 20px;
}

.pdp-gallery {
    margin-top: 0;
}

.pdp-gallery--beta .pdp-gallery-slide {
    min-height: 276px;
}

.pdp-icon-btn {
    width: 44px;
    height: 44px;
}

.pdp-icon-btn svg {
    width: 21px;
    height: 21px;
}

.pdp-info-card,
.pdp-block,
.pdp-margin-card {
    border-color: #e4e7ec;
}

.pdp-title {
    font-size: 19px;
}

.pdp-price {
    font-size: 28px;
}

.pdp-chip {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
}

.pdp-accordion summary {
    min-height: 44px;
    display: flex;
    align-items: center;
}

.pdp-buy-bar,
.sticky-action-bar {
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    bottom: var(--ps-tabbar-sticky-base);
    padding: 8px;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(16, 24, 40, .14);
}

.pdp-buy-bar .ps-btn,
.sticky-action-bar .ps-btn,
.qty-button {
    min-height: 44px;
}

/* Floating navigation: compact shell, explicit active icon, reliable hit areas. */
.ps-tabs {
    width: min(calc(100% - 16px), var(--ps-app-max-width));
    bottom: max(var(--ps-tabbar-float-gap), env(safe-area-inset-bottom));
    min-height: var(--ps-tabbar-shell-height);
    padding: 4px 6px 6px;
    border-color: #dfe3e8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(16, 24, 40, .14);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.ps-tabs a,
.ps-tabs .ps-tabs-cart {
    min-height: 52px;
    gap: 2px;
    padding: 4px 4px 2px;
    font-size: 10px;
    line-height: 1;
}

.ps-tab-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
}

.ps-tabs a.active .ps-tab-icon {
    background: #eef4ff;
}

.ps-tabs a.active {
    font-weight: 850;
}

.ps-tabs svg,
.ps-tabs--5 svg:not(.ps-tabs-cart-ring svg) {
    width: 22px;
    height: 22px;
}

.ps-tabs--cart-center {
    padding-top: 8px;
}

.ps-tabs--cart-center .ps-tabs-cart {
    margin-top: -16px;
}

.ps-tabs-cart-ring {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border-width: 3px;
    background: var(--accent);
    box-shadow: 0 8px 18px rgba(232, 93, 24, .3);
}

.ps-tabs--cart-center .ps-tabs-cart.active .ps-tabs-cart-ring {
    box-shadow: 0 8px 18px rgba(232, 93, 24, .34), 0 0 0 2px rgba(232, 93, 24, .15);
}

.ps-tabs a .button-spinner {
    position: static;
}

/* OTP-first registration as three short client-side steps. */
.ps-main-auth {
    padding-top: 8px;
    padding-bottom: calc(var(--ps-tabbar-offset) + 18px + env(safe-area-inset-bottom));
}

.ps-body--auth > .ps-topbar {
    display: none;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    padding: 4px 2px 10px;
    text-align: left;
}

.auth-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.auth-brand-mark svg {
    width: 48px;
    height: 48px;
}

.auth-brand-name {
    font-size: 20px;
}

.auth-card {
    padding: 18px;
    border-color: #e4e7ec;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .07);
}

.auth-card-heading {
    margin-bottom: 14px;
}

.auth-card-heading h1,
.auth-card h1 {
    font-size: 23px;
    line-height: 1.15;
}

.auth-card-heading > p,
.auth-card > p {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.45;
}

.auth-stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.auth-stepper li {
    position: relative;
    list-style: none;
}

.auth-stepper li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 15px;
    left: calc(50% + 18px);
    width: calc(100% - 30px);
    height: 2px;
    background: #e4e7ec;
}

.auth-stepper li.is-complete::after {
    background: #8fb2ff;
}

.auth-stepper button {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 48px;
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #98a2b3;
}

.auth-stepper button span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid #d0d5dd;
    border-radius: 50%;
    background: #fff;
    font-size: 11px;
    font-weight: 900;
}

.auth-stepper button strong {
    font-size: 10px;
}

.auth-stepper button[aria-current="step"] {
    color: var(--accent-dark);
}

.auth-stepper button[aria-current="step"] span,
.auth-stepper li.is-complete button span {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.auth-form-step {
    display: grid;
    gap: 13px;
}

.auth-form-step[hidden] {
    display: none;
}

.auth-form-step__head {
    padding-bottom: 10px;
    border-bottom: 1px solid #eaecf0;
}

.auth-form-step__head span {
    display: block;
    margin-bottom: 3px;
    color: var(--accent-dark);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.auth-form-step__head h2 {
    margin: 0;
    font-size: 18px;
}

.auth-form-step__head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.auth-input-row input,
.auth-input-row select,
.auth-input-row textarea,
.ps-field-control,
.form-row textarea.ps-field-control {
    min-height: 52px;
    border-color: #d0d5dd;
    border-radius: 10px;
    background: #fff;
}

.auth-step-actions {
    display: grid;
    grid-template-columns: minmax(96px, .7fr) minmax(0, 1.3fr);
    gap: 8px;
    margin-top: 2px;
}

.auth-step-actions--single {
    grid-template-columns: 1fr;
}

.auth-step-actions .ps-btn {
    min-height: 50px;
    padding-inline: 12px;
}

.store-location-picker {
    margin: 0;
}

.store-location-picker__head {
    align-items: end;
}

.store-location-picker__head .ps-btn {
    min-height: 44px;
}

.store-location-map {
    height: 278px;
    border-color: #d0d5dd;
    border-radius: 10px;
}

.store-location-map:focus-visible {
    outline: 3px solid rgba(232, 93, 24, .28);
    outline-offset: 2px;
}

.store-location-status {
    min-height: 36px;
    display: flex;
    align-items: center;
    margin-top: 7px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f2f4f7;
}

.store-location-status.is-error {
    background: #fff1f0;
    color: var(--danger);
}

.store-location-status.is-confirmed {
    background: #eaf8f1;
    color: #087653;
    font-weight: 700;
}

.store-map-center-action {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    border: 1px solid #b7c6df;
    border-radius: 8px;
    background: #fff;
    color: var(--brand-blue, #0b46b5);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.store-map-center-action__icon {
    width: 18px;
    height: 18px;
    position: relative;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.store-map-center-action__icon::before,
.store-map-center-action__icon::after {
    content: '';
    position: absolute;
    background: currentColor;
}

.store-map-center-action__icon::before {
    width: 2px;
    height: 22px;
    top: -4px;
    left: 6px;
}

.store-map-center-action__icon::after {
    width: 22px;
    height: 2px;
    top: 6px;
    left: -4px;
}

.store-map-marker-shell {
    border: 0;
    background: transparent;
}

.store-map-marker {
    width: 34px;
    height: 34px;
    display: block;
    position: relative;
    transform: rotate(-45deg);
    border: 4px solid #ffbf00;
    border-radius: 50% 50% 50% 0;
    background: #0b46b5;
    box-shadow: 0 5px 14px rgba(16, 24, 40, .3);
}

.store-map-marker::after {
    content: '';
    width: 10px;
    height: 10px;
    position: absolute;
    top: 8px;
    left: 8px;
    border-radius: 50%;
    background: #fff;
}

/* Quiet, task-focused operator workspace. */
.ps-body--operator {
    background: #eef1f4;
}

.ps-body--operator .ps-topbar {
    min-height: 60px;
    padding-inline: 18px;
}

.ps-operator-context {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #344054;
}

.ps-operator-context strong,
.ps-operator-context span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.partner-draft-products {
    max-height: 420px;
    display: grid;
    gap: 1px;
    overflow-y: auto;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #e4e7ec;
}

.partner-draft-product {
    min-width: 0;
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    background: #fff;
}

.partner-draft-product span,
.partner-draft-product strong,
.partner-draft-product small {
    min-width: 0;
    display: block;
}

.partner-draft-product strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.partner-draft-product small {
    margin-top: 3px;
    color: #667085;
    font-size: 10px;
}

.partner-draft-product input {
    width: 72px;
    height: 42px;
    padding: 0 8px;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    text-align: center;
}

.assisted-draft-line {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eaecf0;
}

.assisted-draft-line:last-child {
    border-bottom: 0;
}

.assisted-draft-line div,
.assisted-draft-line strong,
.assisted-draft-line small {
    min-width: 0;
    display: block;
}

.assisted-draft-line strong {
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.3;
}

.assisted-draft-line small {
    margin-top: 3px;
    color: #667085;
    font-size: 10px;
}

.assisted-draft-line > span {
    color: #344054;
    font-size: 12px;
    white-space: nowrap;
}

/* Assisted store enrollment and partner checkout */
.assisted-workspace { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:14px; align-items:start; }
.assisted-headline { margin:3px 0 0; font-size:12px; }
.assisted-store-fields, .assisted-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.assisted-store-fields > .form-row:first-child { grid-column:1/-1; }
.assisted-capture { display:grid; gap:10px; padding:12px; border:1px solid #d0d5dd; border-radius:8px; background:#f8fafc; }
.assisted-capture-head, .assisted-capture-actions { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.assisted-capture-head strong, .assisted-capture-head small { display:block; }
.assisted-capture-head small { margin-top:2px; color:#667085; font-size:11px; }
.assisted-camera-frame { position:relative; aspect-ratio:16/9; overflow:hidden; border-radius:7px; background:#101828; }
.assisted-camera-frame video, .assisted-camera-frame img { width:100%; height:100%; object-fit:cover; }
.assisted-camera-placeholder { position:absolute; inset:0; display:grid; place-content:center; gap:4px; text-align:center; color:#fff; }
.assisted-camera-placeholder strong { font-size:16px; }
.assisted-camera-placeholder span { color:#d0d5dd; font-size:12px; }
.assisted-capture-actions .ps-btn { flex:1; min-width:0; }
.assisted-capture-message { margin:0; color:#475467; font-size:11px; font-weight:700; }
.assisted-consent-check { display:grid; grid-template-columns:20px minmax(0,1fr); gap:9px; align-items:start; color:#344054; font-size:12px; line-height:1.45; }
.assisted-consent-check input { width:18px; height:18px; margin:0; accent-color:var(--accent); }
.admin-assisted-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.admin-assisted-card { min-width:0; }
.admin-assisted-photo-link { position:relative; display:block; aspect-ratio:16/8; overflow:hidden; border-radius:7px; background:#101828; }
.admin-assisted-photo-link img { width:100%; height:100%; object-fit:cover; }
.admin-assisted-photo-link span { position:absolute; right:8px; bottom:8px; padding:5px 8px; border-radius:5px; background:rgba(0,0,0,.72); color:#fff; font-size:11px; font-weight:800; }
.admin-assisted-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 12px; margin:12px 0; }
.admin-assisted-facts div { min-width:0; }
.admin-assisted-facts dt { color:#667085; font-size:10px; font-weight:800; text-transform:uppercase; }
.admin-assisted-facts dd { margin:2px 0 0; color:#101828; font-size:12px; font-weight:800; overflow-wrap:anywhere; }
.admin-assisted-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.admin-assisted-actions form { display:grid; gap:7px; }
.assisted-review-note { font-size:12px; line-height:1.45; }

@media (max-width: 859px) {
    .assisted-workspace, .admin-assisted-grid { grid-template-columns:1fr; }
}

@media (max-width: 520px) {
    .assisted-store-fields, .assisted-form-grid, .admin-assisted-facts, .admin-assisted-actions { grid-template-columns:1fr; }
    .assisted-store-fields > .form-row:first-child { grid-column:auto; }
    .assisted-capture-actions { display:grid; grid-template-columns:1fr 1fr; }
}

.ps-operator-context strong {
    font-size: 13px;
}

.ps-operator-context span {
    color: #667085;
    font-size: 11px;
}

@media (max-width: 640px) {
    .ps-body--operator .ps-topbar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px;
        padding-inline: 10px;
    }

    .ps-body--operator .ps-brand-text,
    .ps-operator-context span {
        display: none;
    }

    .ps-body--operator .ps-brand-wordmark {
        display: block;
    }

    .ps-operator-context {
        justify-content: center;
    }

    .ps-body--operator .ps-topbar-actions {
        gap: 0;
    }

    .ps-body--operator .ps-secondary-nav {
        margin: 0 -10px -6px;
    }
}

.operator-sidebar,
.ps-body--operator .panel,
.stakeholder-section {
    border-color: #dfe3e8;
    border-radius: 8px;
    box-shadow: none;
}

@media (min-width: 1024px) {
    .operator-shell {
        grid-template-columns: 236px minmax(0, 1fr);
        gap: 18px;
    }

    .operator-sidebar {
        padding: 12px;
        border-radius: 8px;
        box-shadow: none;
    }

    .operator-sidebar-nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 10px 12px;
        border-radius: 7px;
    }
}

.stakeholder-hero {
    border-radius: 8px;
    background: #18212b;
    box-shadow: none;
}

.stakeholder-hero::after {
    display: none;
}

.partner-portal-hero {
    border-radius: 8px;
    background: var(--partner-accent, #0f766e);
    box-shadow: none;
}

.stakeholder-kpi,
.partner-kpi,
.partner-order-card,
.partner-task-card,
.partner-inventory-card {
    border-radius: 8px;
    box-shadow: none;
}

.operator-table-wrap {
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #fff;
}

.operator-table-wrap .table {
    margin: 0;
}

.operator-table-wrap .table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8f9fb;
}

@media (max-width: 380px) {
    .ps-brand-wordmark {
        font-size: 11px;
    }

    .ps-topbar {
        gap: 6px;
        padding-inline: 8px;
    }

    .ps-search {
        grid-template-columns: 40px minmax(0, 1fr);
        padding-right: 7px;
    }

    .ps-search-submit {
        width: 40px;
    }

    .ps-main-categories .catalog-browser {
        height: calc(100dvh - 232px - env(safe-area-inset-bottom));
    }

    .auth-card {
        padding: 16px;
    }

    .auth-step-actions {
        grid-template-columns: 90px minmax(0, 1fr);
    }
}

/* ============================================================
   Tindao service-home refinement - 2026-08-17
   GCash-inspired hierarchy with Tindao branding and store-restock actions.
   ============================================================ */

.ps-body--customer-home,
.ps-body--customer-home.ps-body--store-app {
    background: #f3f4f6;
}

.ps-body--customer-home[data-role="guest"] .ps-topbar,
.ps-body--customer-home[data-role="customer"] .ps-topbar {
    border-bottom: 0;
    background: #08329e;
}

.ps-body--customer-home[data-role="guest"] .ps-brand-wordmark,
.ps-body--customer-home[data-role="guest"] .ps-brand-wordmark strong,
.ps-body--customer-home[data-role="customer"] .ps-brand-wordmark,
.ps-body--customer-home[data-role="customer"] .ps-brand-wordmark strong {
    color: #fff;
}

.ps-body--customer-home[data-role="guest"] .ps-search,
.ps-body--customer-home[data-role="customer"] .ps-search {
    border-color: rgba(255, 255, 255, .5);
    background: #fff;
}

.ps-body--customer-home[data-role="guest"] .ps-icon-btn,
.ps-body--customer-home[data-role="customer"] .ps-icon-btn {
    border-color: rgba(255, 255, 255, .45);
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.ps-body--customer-home .ps-main-beta-home {
    gap: 8px;
    padding-top: 8px;
}

/* Guest service launcher. */
.ps-main-beta-home .public-store-hub--service {
    min-height: 0;
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 0;
    border-radius: 12px;
    background: #08329e;
    color: #fff;
    box-shadow: 0 8px 20px rgba(6, 31, 82, .16);
}

.public-store-hub__service-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ps-main-beta-home .public-store-hub--service .public-store-hub__eyebrow {
    margin: 0 0 2px;
    color: rgba(255, 255, 255, .76);
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
}

.public-store-hub__service-head strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
}

.public-store-hub__login {
    width: 44px;
    height: 44px;
    display: grid;
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.public-store-hub__login svg {
    width: 22px;
    height: 22px;
}

.public-store-hub__area {
    min-height: 46px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 9px;
    background: rgba(3, 32, 112, .16);
}

.public-store-hub__area > svg {
    width: 22px;
    height: 22px;
}

.public-store-hub__area span,
.public-store-hub__area strong {
    display: block;
}

.public-store-hub__area span {
    color: rgba(255, 255, 255, .72);
    font-size: 9px;
    font-weight: 750;
}

.public-store-hub__area strong {
    margin-top: 1px;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-store-hub__area small {
    color: #fff;
    font-size: 9px;
    font-weight: 850;
    white-space: nowrap;
}

.public-store-hub__actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
}

.public-store-hub__actions a {
    min-height: 58px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    padding: 5px 2px;
    border-radius: 9px;
    color: #fff;
    text-decoration: none;
}

.public-store-hub__actions a:active {
    background: rgba(255, 255, 255, .12);
}

.public-store-hub__actions a > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #fff;
    color: #08329e;
}

.public-store-hub__actions svg {
    width: 19px;
    height: 19px;
}

.public-store-hub__actions strong {
    font-size: 9.5px;
}

/* Compact sourced banner below the service launcher. */
.ps-body--customer-home .shop-hero--beta .shop-hero-slide {
    min-height: 104px;
}

.ps-body--customer-home .shop-hero--beta h1 {
    max-width: 250px;
    font-size: 17px;
}

.ps-body--customer-home .shop-hero--beta p {
    display: none;
}

/* Verified-store service hub. */
.ps-main-store-home .store-app-hub--beta .store-app-hub-card {
    padding: 12px;
    border: 0;
    border-radius: 12px;
    background: #08329e;
    box-shadow: 0 8px 20px rgba(6, 31, 82, .18);
}

.ps-main-store-home .store-app-brandline {
    margin-bottom: 8px;
    padding-bottom: 7px;
    border-bottom-color: rgba(255, 255, 255, .2);
}

.ps-main-store-home .store-app-brandline em {
    padding: 4px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.ps-main-store-home .store-app-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #08329e;
    box-shadow: none;
}

.ps-main-store-home .store-app-area {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ps-main-store-home .store-app-area em {
    padding: 3px 5px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 8px;
    font-style: normal;
    font-weight: 850;
}

.ps-main-store-home .store-app-balance-row {
    align-items: center;
    min-height: 58px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 9px;
    background: rgba(3, 32, 112, .16);
}

.ps-main-store-home .store-app-balance {
    font-size: 25px;
}

.ps-main-store-home .store-app-balance-action {
    min-height: 44px;
    padding: 0 12px;
    color: #062679;
}

.ps-main-store-home .store-app-actions--beta {
    gap: 4px;
    margin: 8px 0;
}

.ps-main-store-home .store-app-actions--beta .store-app-action {
    min-height: 62px;
    gap: 4px;
    padding: 5px 2px;
    border-radius: 9px;
    background: transparent;
    font-size: 9.5px;
}

.ps-main-store-home .store-app-actions--beta .store-app-action:active {
    background: rgba(255, 255, 255, .12);
}

.ps-main-store-home .store-app-actions--beta .store-app-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    color: #08329e;
}

.ps-main-store-home .store-app-action-icon svg {
    width: 20px;
    height: 20px;
}

.ps-main-store-home .store-app-credit-strip--beta {
    min-height: 46px;
    border-color: rgba(255, 255, 255, .22);
    background: rgba(3, 32, 112, .16);
}

.ps-main-store-home .store-app-credit-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    color: #062679;
}

.ps-main-store-home .store-app-service-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 7px;
}

.ps-main-store-home .store-app-service-item {
    min-width: 0;
    min-height: 52px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    padding: 6px 7px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 9px;
    background: rgba(3, 32, 112, .16);
    color: #fff;
    text-decoration: none;
}

.ps-main-store-home .store-app-service-item:active {
    background: rgba(3, 32, 112, .28);
}

.store-app-service-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #fff;
    color: #08329e;
}

.store-app-service-icon svg {
    width: 19px;
    height: 19px;
}

.store-app-service-item small,
.store-app-service-item strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-app-service-item small {
    color: rgba(255, 255, 255, .72);
    font-size: 8px;
    font-weight: 750;
}

.store-app-service-item strong {
    margin-top: 2px;
    color: #fff;
    font-size: 9.5px;
}

.store-promo-carousel {
    position: relative;
    min-width: 0;
    height: 88px;
    overflow: hidden;
    border: 1px solid #cbd8f3;
    border-radius: 10px;
    background: #061f52;
    box-shadow: 0 5px 14px rgba(16, 24, 40, .06);
}

.store-promo-track {
    height: 100%;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.store-promo-track::-webkit-scrollbar {
    display: none;
}

.store-promo-slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 0;
    height: 88px;
    overflow: hidden;
    scroll-snap-align: start;
    color: #fff;
    text-decoration: none;
}

.store-promo-slide:hover {
    text-decoration: none;
}

.store-promo-slide img,
.store-promo-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.store-promo-slide img {
    object-fit: cover;
    object-position: center;
}

.store-promo-shade {
    background: rgba(28, 20, 14, .54);
}

.store-promo-copy {
    position: relative;
    z-index: 1;
    width: min(72%, 270px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 9px 12px;
}

.store-promo-copy small,
.store-promo-copy strong,
.store-promo-copy em {
    display: block;
    letter-spacing: 0;
}

.store-promo-copy small {
    overflow: hidden;
    color: #fff0a8;
    font-size: 8px;
    font-weight: 900;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.store-promo-copy strong {
    display: -webkit-box;
    margin-top: 2px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.16;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.store-promo-copy em {
    margin-top: 5px;
    color: #fff;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
}

.store-promo-dots {
    position: absolute;
    z-index: 2;
    right: 7px;
    bottom: 4px;
    display: flex;
    gap: 0;
}

.store-promo-dots button {
    position: relative;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
}

.store-promo-dots button::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .58);
}

.store-promo-dots button.active::before {
    width: 11px;
    left: 5px;
    border-radius: 4px;
    background: #fff;
}

.store-promo-dots button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -3px;
}

.store-cash-in-banner {
    min-height: 58px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border: 1px solid #b9cdfc;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(16, 24, 40, .05);
}

.store-cash-in-banner__icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #eef4ff;
    color: #08329e;
}

.store-cash-in-banner__icon svg {
    width: 22px;
    height: 22px;
}

.store-cash-in-banner__copy {
    min-width: 0;
}

.store-cash-in-banner__copy strong,
.store-cash-in-banner__copy small {
    display: block;
}

.store-cash-in-banner__copy strong {
    font-size: 12px;
}

.store-cash-in-banner__copy small {
    margin-top: 2px;
    overflow: hidden;
    color: #667085;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-cash-in-banner__action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 8px;
    background: #08329e;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.store-cash-in-banner:active {
    background: #fff8f3;
}

.ps-main-store-home .store-app-verification {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 7px;
}

.ps-main-store-home .store-app-verification strong {
    padding: 4px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .14);
}

.ps-main-store-home .store-network-pulse {
    border: 1px solid rgba(255, 255, 255, .18);
    background: transparent;
}

.ps-main-store-home .store-network-pulse div {
    background: rgba(3, 32, 112, .12);
}

.ps-main-store-home .store-app-categories-wrap {
    padding: 4px 0 0;
}

.ps-main-store-home .store-app-categories-head {
    min-height: 44px;
    padding: 0;
}

.ps-main-store-home .store-app-categories-all {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.ps-main-store-home .store-app-cat {
    min-height: 62px;
}

.ps-main-store-home .store-app-cat-icon {
    border-radius: 10px;
}

.ps-main-store-home .store-app-cat-icon svg {
    width: 20px;
    height: 20px;
}

.beta-latest-order--priority {
    display: grid;
    min-height: 64px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    padding: 8px 10px;
    border: 0;
    border-left: 3px solid #08329e;
    border-radius: 8px;
    box-shadow: none;
}

.beta-latest-order__icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #eef4ff;
    color: #08329e;
}

.beta-latest-order__icon svg {
    width: 19px;
    height: 19px;
}

.beta-latest-order--priority .ps-btn {
    min-height: 44px;
}

.ps-body--customer-home .beta-section-head h2 {
    font-size: 16px;
}

@media (max-width: 380px) {
    .public-store-hub__service-head strong {
        font-size: 17px;
    }

    .public-store-hub__area small {
        display: none;
    }

    .ps-body--customer-home .shop-hero--beta .shop-hero-slide {
        min-height: 96px;
    }

    .ps-main-store-home .store-app-verification span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .store-cash-in-banner {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 7px;
        padding-inline: 8px;
    }

    .store-cash-in-banner__action {
        padding-inline: 9px;
    }
}

/* ============================================================
   Tindao master brand - 2026-08-25
   Supplied identity: Tindao Blue, supporting sky blue, and commerce yellow.
   ============================================================ */

:root {
    --brand: #08329e;
    --brand-dark: #061f70;
    --brand-ink: #061f52;
    --brand-sky: #2a8dfd;
    --brand-yellow: #ffc500;
    --brand-blue-soft: #eef4ff;
    --brand-yellow-soft: #fff9df;
    --accent: #08329e;
    --accent-dark: #062679;
    --gold: #ffc500;
    --gold-soft: #fff9df;
    --ink: #061f52;
    --muted: #52627a;
    --soft: #eef4ff;
    --line: #d9e2f5;
    --paper: #f6f8ff;
}

body {
    font-family: Nunito, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tindao-logo {
    display: block;
    max-width: 100%;
    object-fit: contain;
}

.tindao-logo--mark {
    aspect-ratio: 1;
}

.ps-brand {
    width: 92px;
    min-width: 92px;
    min-height: 44px;
    justify-content: flex-start;
}

.ps-brand-logo {
    width: 88px;
    height: 34px;
}

.auth-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 2px 2px 10px;
    text-align: left;
}

.auth-brand-logo {
    width: min(210px, 66vw);
    height: auto;
}

.auth-brand-sub {
    margin: 0 0 0 52px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.mobile-install-prompt__icon {
    overflow: hidden;
    border: 1px solid #d9e2f5;
    background: #fff;
    box-shadow: none;
}

.mobile-install-prompt__icon .tindao-logo {
    width: 34px;
    height: 34px;
}

.store-registration-nudge__mark {
    overflow: hidden;
    border: 1px solid #d9e2f5;
    background: #fff;
    box-shadow: none;
}

.store-registration-nudge__mark .tindao-logo {
    width: 100%;
    height: 100%;
}

.desktop-mobile-gate__brand {
    display: block;
    width: min(250px, 72vw);
}

.desktop-mobile-gate__logo {
    width: 100%;
    height: auto;
}

.desktop-mobile-gate__qr {
    box-shadow: inset 0 0 0 10px var(--brand-blue-soft);
}

.ps-body--customer-home[data-role="guest"] .ps-topbar,
.ps-body--customer-home[data-role="customer"] .ps-topbar {
    border-bottom: 1px solid #d9e2f5;
    background: rgba(255, 255, 255, .98);
}

.ps-body--customer-home[data-role="guest"] .ps-search,
.ps-body--customer-home[data-role="customer"] .ps-search {
    border-color: #c8d6f2;
    background: #f6f8ff;
}

.ps-body--customer-home[data-role="guest"] .ps-icon-btn,
.ps-body--customer-home[data-role="customer"] .ps-icon-btn {
    border-color: #c8d6f2;
    background: #eef4ff;
    color: var(--brand);
}

.ps-main-beta-home .public-store-hub--service,
.ps-main-store-home .store-app-hub--beta .store-app-hub-card {
    background: var(--brand);
    box-shadow: 0 8px 20px rgba(6, 31, 82, .18);
}

.public-store-hub__area,
.ps-main-store-home .store-app-balance-row,
.ps-main-store-home .store-app-credit-strip--beta,
.ps-main-store-home .store-app-service-item,
.ps-main-store-home .store-network-pulse div {
    background: rgba(3, 32, 112, .32);
}

.public-store-hub__actions a > span,
.ps-main-store-home .store-app-actions--beta .store-app-action-icon {
    background: var(--brand-yellow);
    color: var(--brand-ink);
}

.ps-main-store-home .store-app-avatar,
.ps-main-store-home .store-app-balance-action,
.ps-main-store-home .store-app-credit-link {
    background: var(--brand-yellow);
    color: var(--brand-ink);
}

.store-app-service-icon {
    background: #fff;
    color: var(--brand);
}

.store-promo-copy small {
    color: #fff0a8;
}

.store-cash-in-banner {
    border-color: #b9cdfc;
}

.store-cash-in-banner__icon,
.beta-latest-order__icon,
.ps-tabs a.active .ps-tab-icon {
    background: var(--brand-blue-soft);
    color: var(--brand);
}

.store-cash-in-banner__action {
    background: var(--brand-yellow);
    color: var(--brand-ink);
}

.store-cash-in-banner:active {
    background: #f6f8ff;
}

.ps-tabs a.active {
    color: var(--brand);
}

.ps-tabs-cart-ring {
    border-color: #fff;
    background: var(--brand);
    box-shadow: 0 8px 18px rgba(8, 50, 158, .28);
}

.operator-sidebar-nav a.active,
.ps-body--admin .operator-sidebar-nav a.active,
.ps-body--stakeholder .operator-sidebar-nav a.active {
    border-color: #b9cdfc;
    background: var(--brand-blue-soft);
    color: var(--brand);
}

.ps-btn:focus-visible,
.ps-icon-btn:focus-visible,
.ps-tabs a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline-color: var(--brand-sky);
}

.ps-body--auth {
    background: #f6f8ff;
}

.auth-step-label {
    background: var(--brand-yellow-soft);
    color: var(--brand-dark);
}

.ps-btn-shop,
.ps-btn-shop:hover {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 18px rgba(8, 50, 158, .22);
}

.ps-btn-shop:active {
    background: var(--brand-dark);
}

@media (min-width: 768px) {
    .ps-body--operator .ps-brand {
        width: 116px;
        min-width: 116px;
    }

    .ps-body--operator .ps-brand-logo {
        width: 112px;
        height: 38px;
    }
}

@media (max-width: 380px) {
    .ps-brand {
        width: 78px;
        min-width: 78px;
    }

    .ps-brand-logo {
        width: 76px;
        height: 30px;
    }
}

/* ============================================================
   Guest storefront conversion pass - 2026-08-25
   Product-first preview for unregistered sari-sari store owners.
   ============================================================ */

.ps-body--customer-home[data-role="guest"] .ps-main-beta-home {
    gap: 6px;
    padding-top: 6px;
}

.ps-body--customer-home[data-role="guest"] {
    --ps-screen-gutter: 12px;
    background: #eef2f7;
}

.ps-body--customer-home[data-role="guest"] .guest-conversion-hub {
    gap: 5px;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(6, 31, 82, .16);
}

.guest-conversion-hub__subcopy {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, .78);
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.2;
}

.guest-conversion-hub__register {
    min-height: 44px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0 10px;
    border-radius: 9px;
    background: var(--brand-yellow);
    color: var(--brand-ink);
    font-size: 10px;
    font-weight: 950;
    text-decoration: none;
    white-space: nowrap;
}

.guest-conversion-hub__register svg {
    width: 14px;
    height: 14px;
}

.ps-body--customer-home[data-role="guest"] .guest-conversion-hub .public-store-hub__area {
    min-height: 36px;
    padding: 3px 7px;
}

.guest-conversion-hub__benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.guest-conversion-hub__benefits li {
    min-width: 0;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .11);
    color: #fff;
    font-size: 9px;
    font-weight: 850;
    line-height: 1.1;
    white-space: nowrap;
}

.guest-conversion-hub__benefits svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    color: var(--brand-yellow);
}

.guest-growth-services {
    margin-inline: -12px;
    padding: 10px 12px 11px;
    background: #fff;
    border-block: 1px solid #e1e7f0;
}

.guest-growth-services__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.guest-growth-services__head span {
    display: block;
    margin-bottom: 1px;
    color: var(--brand-dark);
    font-size: 8.5px;
    font-weight: 900;
    text-transform: uppercase;
}

.guest-growth-services__head h2 {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.15;
}

.guest-growth-services__head > a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    color: var(--brand-dark);
    font-size: 10px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.guest-growth-services__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
}

.guest-growth-service {
    min-width: 0;
    min-height: 79px;
    display: grid;
    grid-template-rows: 42px auto auto;
    justify-items: center;
    align-content: start;
    gap: 2px;
    padding: 2px 1px;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
}

.guest-growth-service__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    transition: transform .16s ease, box-shadow .16s ease;
}

.guest-growth-service__icon svg {
    width: 21px;
    height: 21px;
}

.guest-growth-service--balance .guest-growth-service__icon {
    color: #08329e;
    background: #e8efff;
}

.guest-growth-service--load .guest-growth-service__icon {
    color: #8a5900;
    background: #fff1b8;
}

.guest-growth-service--credit .guest-growth-service__icon {
    color: #6d28d9;
    background: #f0e8ff;
}

.guest-growth-service--tracking .guest-growth-service__icon {
    color: #087443;
    background: #e4f7ed;
}

.guest-growth-service--reorder .guest-growth-service__icon {
    color: #b43d09;
    background: #ffeadf;
}

.guest-growth-service strong,
.guest-growth-service small {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.guest-growth-service strong {
    min-height: 21px;
    color: var(--ink);
    font-size: 9.5px;
    font-weight: 900;
    line-height: 1.1;
    -webkit-line-clamp: 2;
}

.guest-growth-service small {
    color: #667085;
    font-size: 8px;
    font-weight: 750;
    line-height: 1.1;
    -webkit-line-clamp: 1;
}

.guest-growth-service:active .guest-growth-service__icon {
    transform: scale(.94);
}

.guest-growth-service:focus-visible .guest-growth-service__icon,
.guest-growth-services__head > a:focus-visible {
    outline: 3px solid rgba(232, 96, 26, .45);
    outline-offset: 2px;
}

.ps-body--customer-home[data-role="guest"] .shop-hero--beta {
    margin: 0;
    border: 1px solid #d6deee;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(6, 31, 82, .10);
}

.ps-body--customer-home[data-role="guest"] .shop-hero--beta .shop-hero-slide {
    min-height: 92px;
    height: 92px;
}

.ps-body--customer-home[data-role="guest"] .shop-hero--beta .shop-hero-slide::before {
    background: none;
}

.ps-body--customer-home[data-role="guest"] .shop-hero--beta .shop-hero-image {
    filter: brightness(1.04) saturate(1.04);
}

.ps-body--customer-home[data-role="guest"] .discount-section,
.ps-body--customer-home[data-role="guest"] .beta-categories,
.ps-body--customer-home[data-role="guest"] .top-picks-section {
    margin-inline: -12px;
    padding-inline: 12px;
    border-inline: 0;
    border-radius: 0;
    background: #fff;
}

.ps-body--customer-home[data-role="guest"] .discount-section {
    padding-block: 7px 9px;
    border-top: 3px solid #dc2626;
    border-bottom-color: #e5e7eb;
}

.ps-body--customer-home[data-role="guest"] .discount-section .beta-section-head {
    min-height: 34px;
    margin-bottom: 5px;
}

.ps-body--customer-home[data-role="guest"] .discount-section .beta-section-kicker {
    font-size: 7.5px;
}

.ps-body--customer-home[data-role="guest"] .discount-section .beta-section-head h2 {
    font-size: 15px;
    line-height: 1.1;
}

.ps-body--customer-home[data-role="guest"] .discount-section .flash-scroll {
    grid-auto-columns: minmax(124px, 36%);
    gap: 6px;
}

.ps-body--customer-home[data-role="guest"] .discount-section .flash-card-art {
    height: 72px;
}

.ps-body--customer-home[data-role="guest"] .discount-section .flash-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    padding: 6px;
}

.ps-body--customer-home[data-role="guest"] .discount-section .flash-card {
    height: 210px;
    display: flex;
    flex-direction: column;
    border-color: #dfe3e8;
}

.ps-body--customer-home[data-role="guest"] .discount-section .flash-card-name {
    height: 27px;
    min-height: 27px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.flash-preview-ticket {
    min-height: 35px;
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 4px 5px;
    border: 1px solid #fecaca;
    border-radius: 5px;
    background: #fff1f2;
}

.flash-preview-ticket > span {
    color: #9f1239;
    font-size: 7.5px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
}

.flash-preview-ticket > div {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.flash-preview-ticket strong {
    color: #c51f30;
    font-size: 15px;
    font-weight: 950;
    line-height: 1;
}

.flash-preview-ticket s {
    overflow: hidden;
    color: #7c8799;
    font-size: 8.5px;
    font-weight: 750;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ps-body--customer-home[data-role="guest"] .discount-section .flash-card-cta {
    min-height: 30px;
    margin-top: auto;
    background: var(--brand);
    color: #fff;
}

.product-reason--unlock {
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--brand-dark);
    font-weight: 850;
}

.product-reason--unlock svg {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
}

@media (max-width: 380px) {
    .ps-body--customer-home[data-role="guest"] .guest-conversion-hub {
        padding: 9px;
    }

    .guest-conversion-hub__subcopy {
        max-width: 155px;
    }

    .guest-conversion-hub__benefits li {
        gap: 3px;
        font-size: 8.5px;
    }

    .guest-growth-service {
        min-height: 75px;
    }

    .guest-growth-service__icon {
        width: 38px;
        height: 38px;
    }

    .guest-growth-service strong {
        font-size: 9px;
    }

    .ps-body--customer-home[data-role="guest"] .shop-hero--beta .shop-hero-slide {
        min-height: 76px;
        height: 76px;
    }
}

/* ============================================================
   Native interaction geometry - 2026-08-25
   Dedicated onboarding shell and consistent mobile touch controls.
   ============================================================ */

.ps-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.ps-btn:hover {
    text-decoration: none;
}

.ps-btn > svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.ps-main-journey .ps-btn {
    min-height: 48px;
}

.ps-main-journey .ps-btn-sm {
    min-height: 44px;
}

.auth-step-actions .ps-btn {
    min-height: 54px;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 900;
}

.auth-step-primary svg {
    margin-left: auto;
}

.auth-step-back svg {
    width: 17px;
    height: 17px;
}

.ps-body--customer-home[data-role="guest"] .shop-hero--beta .shop-hero-slide {
    min-height: 92px;
    height: 92px;
}

@media (max-width: 380px) {
    .ps-body--customer-home[data-role="guest"] .shop-hero--beta .shop-hero-slide {
        min-height: 88px;
        height: 88px;
    }
}

.ps-body--customer-home[data-role="guest"] .discount-section .flash-card-cta {
    min-height: 44px;
}

.cart-qty-btn,
.cart-remove-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
}

.cart-qty-num {
    width: 44px;
    min-height: 44px;
    padding-block: 4px;
}

.cart-remove-btn {
    display: grid;
    place-items: center;
    padding: 0;
}

.store-restock-add {
    width: 44px;
    height: 44px;
}

@media (hover: none) {
    .ps-btn:hover:not(:disabled) {
        transform: none;
    }

    .ps-btn:active:not(:disabled),
    .ps-btn[href]:active:not([aria-disabled="true"]) {
        transform: scale(.98);
    }
}

@media (max-width: 767px) {
    .ps-body--auth,
    .ps-body--auth .ps-main-auth {
        background: #fff;
    }

    .ps-main-auth {
        padding-top: 0;
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }

    .ps-main-auth .auth-shell {
        padding-top: 0;
    }

    .ps-main-auth .auth-brand {
        align-items: center;
        margin: 0;
        padding: 14px 0 16px;
        text-align: center;
    }

    .ps-main-auth .auth-brand-logo {
        width: min(190px, 58vw);
    }

    .ps-main-auth .auth-brand-sub {
        margin: 0;
    }

    .ps-main-auth .auth-card {
        padding: 16px 0 24px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .ps-main-auth .auth-card--register {
        padding-bottom: calc(104px + env(safe-area-inset-bottom));
    }

    .auth-card--register .auth-step-actions {
        position: fixed;
        z-index: 45;
        left: 50%;
        bottom: 0;
        width: min(calc(100% - 16px), 544px);
        margin: 0;
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        border-radius: 14px 14px 0 0;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 -8px 24px rgba(6, 31, 82, .12);
        transform: translateX(-50%);
    }

    .auth-card--register .auth-step-actions .ps-btn {
        min-height: 56px;
    }

    .auth-card--register .auth-footer-link {
        margin-top: 12px;
    }

    .cart-item {
        gap: 8px;
        padding: 12px;
    }
}

/* Customer control audit follow-up. Visual indicators may stay compact, but their
   interactive boxes follow mobile platform target geometry. */
.store-promo-dots {
    right: 0;
    bottom: -7px;
}

.store-promo-dots button {
    width: 44px;
    height: 44px;
}

.store-promo-dots button::before {
    top: 19px;
    left: 19px;
}

.store-promo-dots button.active::before {
    left: 16px;
}

.store-app-categories-all,
.order-mall-actions .ps-btn {
    min-width: 44px;
}

.ps-main-journey .filter-pill {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ps-body[data-role="customer"] main input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.ps-body[data-role="customer"] main select,
.ps-body[data-role="customer"] main textarea {
    min-height: 48px;
}

/* Browse density pass: show more SKUs without shrinking primary cart targets. */
.ps-main-categories .catalog-browser--dense-grid {
    grid-template-columns: 58px minmax(0, 1fr);
}

.ps-main-categories .catalog-browser--dense-grid .cat-sidebar-item {
    min-height: 56px;
    gap: 2px;
    padding: 4px 2px;
}

.ps-main-categories .catalog-browser--dense-grid .cat-sidebar-icon {
    width: 25px;
    height: 25px;
    border-radius: 6px;
}

.ps-main-categories .catalog-browser--dense-grid .cat-sidebar-icon svg {
    width: 13px;
    height: 13px;
}

.ps-main-categories .catalog-browser--dense-grid .cat-sidebar-label {
    max-width: 52px;
    font-size: 8px;
    line-height: 1.08;
}

.ps-main-categories .catalog-browser--dense-grid .cat-sidebar-count {
    font-size: 7px;
    line-height: 12px;
}

.ps-main-categories .catalog-browser--dense-grid .cat-products {
    padding: 4px;
}

.ps-main-categories .catalog-browser--dense-grid .product-grid {
    gap: 4px;
}

.ps-main-categories .catalog-browser--dense-grid .product-media-brand {
    position: absolute;
    z-index: 2;
    left: 4px;
    bottom: 4px;
    max-width: calc(100% - 8px);
    padding: 2px 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 3px;
    background: rgba(255, 255, 255, .94);
    color: #08329e;
    font-size: 7px;
    font-weight: 950;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ps-main-categories .catalog-browser--dense-grid .product-name-pack {
    color: #5f6b7a;
    font-weight: 750;
}

@media (min-width: 360px) and (max-width: 479.98px) {
    .ps-main-categories .catalog-browser--dense-grid .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 360px) and (max-width: 759.98px) {
    .ps-main-categories .catalog-browser--dense-grid .product {
        border-radius: 6px;
    }

    .ps-main-categories .catalog-browser--dense-grid .product-media {
        aspect-ratio: 1.3;
    }

    .ps-main-categories .catalog-browser--dense-grid .product-body {
        gap: 2px;
        padding: 4px;
    }

    .ps-main-categories .catalog-browser--dense-grid .product-name {
        min-height: 39px;
        font-size: 10px;
        line-height: 1.3;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .ps-main-categories .catalog-browser--dense-grid .guest-price-ticket {
        min-height: 36px;
        gap: 1px;
        padding: 3px 4px;
    }

    .ps-main-categories .catalog-browser--dense-grid .guest-price-ticket__label {
        font-size: 6.5px;
    }

    .ps-main-categories .catalog-browser--dense-grid .guest-price-ticket .product-price,
    .ps-main-categories .catalog-browser--dense-grid .product-price {
        font-size: 14px;
    }

    .ps-main-categories .catalog-browser--dense-grid .product-compare {
        font-size: 7px;
    }

    .ps-main-categories .catalog-browser--dense-grid .guest-price-ticket__value {
        gap: 2px;
    }

    .ps-main-categories .catalog-browser--dense-grid .guest-price-ticket__value strong {
        padding: 1px 3px;
        font-size: 6px;
    }

    .ps-main-categories .catalog-browser--dense-grid .product-signal,
    .ps-main-categories .catalog-browser--dense-grid .product-reason {
        min-height: 22px;
        display: -webkit-box;
        padding: 2px 3px;
        overflow: hidden;
        font-size: 7px;
        line-height: 1.15;
        white-space: normal;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .ps-main-categories .catalog-browser--dense-grid .product-reason svg {
        display: none;
    }

    .ps-main-categories .catalog-browser--dense-grid .product-discount,
    .ps-main-categories .catalog-browser--dense-grid .product-flag {
        top: 4px;
        padding: 3px 4px;
        font-size: 7px;
    }

    .ps-main-categories .catalog-browser--dense-grid .product-discount {
        right: auto;
        left: 4px;
    }

    .ps-main-categories .catalog-browser--dense-grid .product-flag {
        right: 4px;
    }
}

@media (min-width: 480px) and (max-width: 759.98px) {
    .ps-main-categories .catalog-browser--dense-grid .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 760px) {
    .ps-main-categories .catalog-browser--dense-grid {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .ps-main-categories .catalog-browser--dense-grid .product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.ps-main-categories .catalog-browser--dense-grid.catalog-browser--search {
    grid-template-columns: minmax(0, 1fr);
}

.account-checkbox-row {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.account-checkbox-row input {
    width: 20px;
    height: 20px;
    accent-color: var(--brand);
}

.auth-card--register .auth-step-actions--single {
    grid-template-columns: minmax(0, 1fr);
}

/* Revolving store credit */
.credit-line-page {
    width: min(100%, 560px);
    margin: 0 auto;
    color: #102147;
}

.credit-line-head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    min-height: 58px;
    padding: 4px 2px 10px;
}

.credit-line-head .journey-back,
.credit-line-notification-link {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    color: #08329e;
}

.credit-line-head > div {
    text-align: center;
}

.credit-line-head span,
.credit-line-head h1 {
    display: block;
    margin: 0;
}

.credit-line-head span {
    color: #617092;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.credit-line-head h1 {
    font-size: 19px;
    line-height: 1.15;
}

.credit-line-notification-link svg {
    width: 21px;
    height: 21px;
}

.credit-line-card {
    padding: 17px;
    border-radius: 8px;
    background: #08329e;
    color: #fff;
    box-shadow: 0 10px 24px rgba(8, 50, 158, .18);
}

.credit-line-card.is-held {
    background: #8f1d2c;
}

.credit-line-card-top,
.credit-line-card-stats,
.credit-line-due,
.credit-line-section-head,
.credit-drawdown-head,
.credit-drawdown-meta,
.credit-installment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.credit-line-card-top span,
.credit-line-card-top strong {
    display: block;
}

.credit-line-card-top span {
    font-size: 11px;
    opacity: .85;
}

.credit-line-card-top strong {
    margin-top: 2px;
    font-size: 29px;
    line-height: 1.1;
}

.credit-line-status {
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-weight: 800;
}

.credit-line-meter {
    height: 6px;
    margin: 15px 0 12px;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(255, 255, 255, .22);
}

.credit-line-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #ffc400;
}

.credit-line-card-stats > div {
    min-width: 0;
}

.credit-line-card-stats span,
.credit-line-card-stats strong {
    display: block;
    white-space: nowrap;
}

.credit-line-card-stats span {
    font-size: 10px;
    opacity: .76;
}

.credit-line-card-stats strong {
    margin-top: 2px;
    font-size: 12px;
}

.credit-line-due {
    margin-top: 10px;
    padding: 13px 14px;
    border: 1px solid #d9e3fa;
    border-left: 4px solid #ffc400;
    border-radius: 8px;
    background: #fff;
}

.credit-line-due.is-overdue {
    border-color: #f1c2c7;
    border-left-color: #c92c3e;
    background: #fff7f7;
}

.credit-line-due span,
.credit-line-due h2,
.credit-line-due p {
    display: block;
    margin: 0;
}

.credit-line-due > div > span {
    color: #687795;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.credit-line-due h2 {
    margin-top: 2px;
    font-size: 18px;
}

.credit-line-due p {
    margin-top: 3px;
    color: #687795;
    font-size: 11px;
    line-height: 1.35;
}

.credit-line-due-date {
    flex: 0 0 auto;
    min-width: 60px;
    color: #08329e;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.credit-line-due-date strong {
    font-size: 14px;
}

.credit-line-section {
    margin-top: 16px;
}

.credit-line-section-head {
    margin-bottom: 8px;
    padding: 0 2px;
}

.credit-line-section-head span,
.credit-line-section-head h2,
.credit-line-section-head small {
    display: block;
    margin: 0;
}

.credit-line-section-head span {
    color: #687795;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.credit-line-section-head h2 {
    font-size: 16px;
}

.credit-line-section-head small {
    padding: 5px 8px;
    border-radius: 999px;
    background: #edf2fc;
    color: #08329e;
    font-size: 10px;
    font-weight: 800;
}

.credit-drawdown-list {
    display: grid;
    gap: 9px;
}

.credit-drawdown,
.credit-line-application,
.credit-line-empty {
    padding: 14px;
    border: 1px solid #e0e6f1;
    border-radius: 8px;
    background: #fff;
}

.credit-drawdown-head > div span,
.credit-drawdown-head > div strong {
    display: block;
}

.credit-drawdown-head > div span {
    color: #687795;
    font-size: 10px;
}

.credit-drawdown-head > div strong {
    margin-top: 2px;
    font-size: 15px;
}

.credit-drawdown-meta {
    justify-content: flex-start;
    margin: 10px 0;
    padding: 7px 0;
    border-block: 1px solid #edf0f6;
    color: #687795;
    font-size: 10px;
}

.credit-installments {
    display: grid;
    gap: 4px;
}

.credit-installment {
    min-height: 47px;
    justify-content: flex-start;
    padding: 5px 0;
}

.credit-installment + .credit-installment {
    border-top: 1px solid #f0f2f7;
}

.credit-installment-number {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #edf2fc;
    color: #08329e;
    font-size: 11px;
    font-weight: 900;
}

.credit-installment > div:nth-child(2) {
    flex: 1;
}

.credit-installment > div:last-child {
    text-align: right;
}

.credit-installment strong,
.credit-installment small {
    display: block;
}

.credit-installment strong {
    font-size: 12px;
}

.credit-installment small {
    margin-top: 2px;
    color: #687795;
    font-size: 10px;
}

.credit-installment.is-overdue strong,
.credit-installment.is-overdue small {
    color: #b62234;
}

.credit-installment.is-paid {
    opacity: .58;
}

.credit-line-offer {
    padding: 18px;
    border-radius: 8px;
    background: #08329e;
    color: #fff;
}

.credit-line-kicker {
    color: #ffc400;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.credit-line-offer h2,
.credit-line-offer p {
    margin: 0;
}

.credit-line-offer h2 {
    margin-top: 4px;
    font-size: 22px;
    line-height: 1.16;
}

.credit-line-offer > p {
    margin-top: 7px;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    line-height: 1.45;
}

.credit-line-offer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 15px;
}

.credit-line-offer-grid > div {
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 6px;
    background: rgba(255, 255, 255, .09);
}

.credit-line-offer-grid span,
.credit-line-offer-grid strong {
    display: block;
}

.credit-line-offer-grid span {
    font-size: 9px;
    opacity: .72;
}

.credit-line-offer-grid strong {
    margin-top: 2px;
    font-size: 13px;
}

.credit-line-application {
    margin-top: 10px;
}

.credit-line-application h2 {
    margin: 0 0 12px;
    font-size: 16px;
}

.credit-line-empty {
    padding-block: 34px;
    text-align: center;
}

.credit-line-empty-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    place-items: center;
    border-radius: 8px;
    background: #08329e;
    color: #ffc400;
    font-size: 25px;
    font-weight: 950;
}

.credit-line-empty h2,
.credit-line-no-transactions strong {
    margin: 0;
    font-size: 16px;
}

.credit-line-empty p,
.credit-line-no-transactions p {
    margin: 5px 0 0;
    color: #687795;
    font-size: 12px;
    line-height: 1.45;
}

.credit-line-no-transactions {
    padding: 24px 16px;
    border: 1px dashed #ccd5e8;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

/* Outstanding-credit reminder shown once per authenticated session. */
.credit-alert-open {
    overflow: hidden;
}

.credit-alert-backdrop {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: grid;
    place-items: end center;
    padding: 16px 10px calc(16px + env(safe-area-inset-bottom));
    background: rgba(3, 14, 42, .7);
}

.credit-alert-backdrop[hidden] {
    display: none;
}

.credit-alert-sheet {
    position: relative;
    width: min(100%, 430px);
    padding: 22px 18px 16px;
    border-top: 5px solid #ffc400;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
    text-align: center;
}

.credit-alert-sheet.is-overdue {
    border-top-color: #c92c3e;
}

.credit-alert-close {
    position: absolute;
    top: 5px;
    right: 5px;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: #687795;
    font-size: 27px;
}

.credit-alert-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
    place-items: center;
    border-radius: 50%;
    background: #edf2fc;
    color: #08329e;
}

.credit-alert-sheet.is-overdue .credit-alert-icon {
    background: #fff0f1;
    color: #b62234;
}

.credit-alert-icon svg {
    width: 25px;
    height: 25px;
}

.credit-alert-kicker {
    color: #08329e;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.credit-alert-sheet h2 {
    margin: 4px 30px 0;
    font-size: 21px;
    line-height: 1.18;
}

.credit-alert-sheet > p {
    margin: 8px auto 0;
    max-width: 340px;
    color: #687795;
    font-size: 12px;
    line-height: 1.45;
}

.credit-alert-amount {
    margin: 14px 0;
    padding: 12px;
    border: 1px solid #dce3f1;
    border-radius: 8px;
    background: #f7f9fd;
}

.credit-alert-amount span,
.credit-alert-amount strong,
.credit-alert-amount small {
    display: block;
}

.credit-alert-amount span,
.credit-alert-amount small {
    color: #687795;
    font-size: 10px;
}

.credit-alert-amount strong {
    margin: 2px 0;
    color: #102147;
    font-size: 27px;
}

.credit-alert-actions {
    display: grid;
    gap: 7px;
}

.credit-alert-actions .ps-btn {
    min-height: 50px;
}

@media (min-width: 700px) {
    .credit-alert-backdrop {
        place-items: center;
    }
}

/* Persistent customer Credit Line payable status */
.credit-payable-wrap {
    width: min(100%, 680px);
    margin: 0 auto;
    padding: 6px 10px 0;
}

.credit-payable-bar {
    min-height: 58px;
    display: grid;
    grid-template-columns: 36px minmax(0, .9fr) minmax(0, 1.15fr) 12px;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    color: #0b286d;
    background: #fff8dc;
    border: 1px solid #f0c84b;
    border-radius: 8px;
    text-decoration: none;
}

.credit-payable-bar:focus-visible {
    outline: 3px solid rgba(25, 110, 238, .35);
    outline-offset: 2px;
}

.credit-payable-bar.is-overdue {
    color: #8a1c13;
    background: #fff1ee;
    border-color: #ef9d91;
}

.credit-payable-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #0b47bb;
    border-radius: 8px;
}

.credit-payable-bar.is-overdue .credit-payable-icon {
    background: #b42318;
}

.credit-payable-icon svg {
    width: 20px;
    height: 20px;
}

.credit-payable-copy,
.credit-payable-due {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.credit-payable-copy small,
.credit-payable-due small {
    font-size: 10px;
    line-height: 1.25;
    color: #5d687e;
}

.credit-payable-copy strong {
    font-size: 17px;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.credit-payable-due {
    text-align: right;
}

.credit-payable-due strong {
    font-size: 11px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.credit-payable-arrow {
    font-size: 22px;
    line-height: 1;
}

@media (max-width: 359px) {
    .credit-payable-bar {
        grid-template-columns: 32px minmax(0, .9fr) minmax(0, 1fr) 10px;
        gap: 6px;
        padding-inline: 8px;
    }

    .credit-payable-icon {
        width: 32px;
        height: 32px;
    }

    .credit-payable-copy strong {
        font-size: 15px;
    }

    .credit-payable-due strong {
        font-size: 10px;
    }
}
