:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #6b7785;
  --line: #dfe4e8;
  --primary: #1677ff;
  --primary-dark: #0f5fd1;
  --danger: #c93737;
  --success: #167a45;
  --warning: #a76100;
  --ink: #17212b;
  --shadow: 0 12px 30px rgba(31, 41, 51, .08);
}

* { box-sizing: border-box; }
html { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; color: var(--text); background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
input, textarea, select { width: 100%; border: 1px solid #cdd4da; border-radius: 6px; background: #fff; color: var(--text); outline: none; }
input, select { min-height: 46px; padding: 0 13px; }
textarea { min-height: 112px; padding: 12px 13px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22, 119, 255, .12); }

.site-header { height: 68px; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1120px; height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; }
.brand-static { cursor: default; user-select: none; }
.brand-mark { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 7px; background: var(--primary); color: #fff; font-weight: 800; }
.site-nav { min-width: 0; display: flex; align-items: center; gap: 25px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-size: 14px; color: #3d4852; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a, .site-nav button { flex: 0 0 auto; }
.site-nav a:hover { color: var(--primary); }
.nav-link-button { min-height: auto; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.nav-link-button:hover { color: var(--primary); }
.site-modal[hidden] { display: none; }
.site-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; }
.site-modal-backdrop { position: absolute; inset: 0; width: 100%; min-height: 100%; padding: 0; border: 0; background: rgba(17, 27, 36, .48); cursor: default; }
.site-modal-dialog { position: relative; width: min(100%, 460px); padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 22px 60px rgba(17, 27, 36, .22); }
.site-modal-heading { min-height: 32px; display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.site-modal-heading h2 { margin: 0; font-size: 20px; line-height: 1.45; }
.site-modal-close { width: 32px; height: 32px; flex: 0 0 32px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 27px; line-height: 1; }
.site-modal-dialog:focus, .site-modal-close:focus, .purchase-agreement-actions .btn:focus { outline: none; box-shadow: none; }
.site-modal-close:focus-visible { color: var(--primary-dark); }
.purchase-agreement-actions .btn-primary:focus-visible { background: var(--primary-dark); }
.site-modal-dialog > p { margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.site-modal-actions { margin-top: 22px; display: flex; justify-content: flex-end; }
.contact-modal-dialog { width: min(100%, 620px); }
.contact-modal-content { max-height: min(56vh, 470px); margin-top: 18px; overflow-y: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-modal-content > p { margin: 0; padding: 24px 0; color: var(--muted); font-size: 14px; }
.contact-modal-item { padding: 20px 2px; }
.contact-modal-item + .contact-modal-item { border-top: 1px solid var(--line); }
.contact-modal-item h3 { margin: 0 0 9px; font-size: 16px; }
.contact-modal-item div { color: #52616e; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.purchase-agreement-dialog { width: min(100%, 620px); }
.purchase-agreement-content { max-height: min(52vh, 420px); margin-top: 16px; padding: 16px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; background: #f8fafb; color: #44515c; font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.purchase-agreement-actions { justify-content: space-between; gap: 12px; }
.purchase-agreement-actions .btn { min-width: 130px; }
body.modal-open { overflow: hidden; }
.page-shell { max-width: 1120px; margin: 0 auto; min-height: calc(100vh - 126px); padding: 44px 24px 72px; }
.page-shell-wide { max-width: 1480px; }
.page-shell-orders-wide { max-width: 1720px; }
.site-footer { min-height: 58px; display: grid; place-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; background: #fff; }

.page-heading { margin-bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.page-heading h1, .auth-title h1, .checkout-summary h1, .product-detail h1, .pay-heading h1 { margin: 4px 0 0; font-size: 28px; line-height: 1.25; letter-spacing: 0; }
.eyebrow { margin: 0; color: var(--primary); font-size: 13px; font-weight: 700; }
.verified-pill { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border: 1px solid #a9dbc2; border-radius: 999px; background: #effaf4; color: var(--success); font-size: 13px; }

.portal-hero { min-height: 472px; margin: -12px 0 44px; padding: 64px 58px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); align-items: center; gap: 48px; overflow: hidden; border-bottom: 1px solid var(--line); background: #fff; }
.portal-hero-copy { max-width: 600px; }
.portal-hero h1 { margin: 8px 0 0; color: #17212b; font-size: 40px; line-height: 1.18; font-weight: 800; }
.portal-lead { max-width: 530px; margin: 19px 0 0; color: #52616e; font-size: 17px; line-height: 1.85; }
.portal-actions { margin-top: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.portal-actions .btn { min-width: 124px; }
.portal-text-action { min-height: 42px; padding: 0; display: inline-flex; align-items: center; border: 0; background: transparent; color: var(--primary-dark); cursor: pointer; font-size: 14px; font-weight: 700; }
.portal-text-action:hover { color: var(--primary); }
.portal-note { max-width: 570px; margin: 25px 0 0; padding-top: 20px; border-top: 1px solid #e8edf0; color: #71808d; font-size: 13px; line-height: 1.75; }
.portal-visual { min-height: 292px; display: grid; place-items: center; }
.portal-visual-shell { position: relative; width: min(100%, 338px); min-height: 252px; overflow: hidden; border: 1px solid #d7e1e9; border-radius: 8px; background: #f8fbfd; box-shadow: 18px 20px 0 #e9f2fb; }
.portal-visual-top { height: 41px; padding: 0 15px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #d7e1e9; background: #fff; }
.portal-visual-top span { width: 58px; height: 7px; border-radius: 4px; background: #9ac4f5; }
.portal-visual-top i { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: #d2dae1; }
.portal-visual-top i + i { margin-left: 0; background: #aacdf0; }
.portal-visual-body { min-height: 211px; padding: 30px 28px; display: grid; grid-template-columns: 58px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 22px 19px; }
.portal-visual-check { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #1976d2; color: #fff; font-size: 26px; font-weight: 800; }
.portal-visual-lines { display: grid; gap: 10px; }
.portal-visual-lines b { display: block; width: 100%; height: 9px; border-radius: 5px; background: #d8e2ea; }
.portal-visual-lines b:nth-child(2) { width: 76%; background: #b6d7f6; }
.portal-visual-lines b:nth-child(3) { width: 52%; }
.portal-visual-ticket { grid-column: 1 / -1; min-height: 64px; padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #cbddea; border-radius: 6px; background: #fff; }
.portal-visual-ticket span { width: 118px; height: 11px; border-radius: 6px; background: #d9e6f1; }
.portal-visual-ticket em { width: 32px; height: 32px; display: block; border: 6px solid #78b5ef; border-radius: 50%; }
.portal-info { margin: 0 0 4px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; }
.portal-info article { min-height: 192px; padding: 31px 28px 28px; border-right: 1px solid var(--line); }
.portal-info article:last-child { border-right: 0; }
.portal-info-number { color: var(--primary); font-size: 13px; font-weight: 800; }
.portal-info h2 { margin: 13px 0 8px; font-size: 18px; }
.portal-info p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { min-height: 220px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 5px 18px rgba(31, 41, 51, .04); overflow: hidden; }
.product-card-body { flex: 1; padding: 23px; }
.product-card h2, .product-card h3 { margin: 0 0 11px; font-size: 19px; }
.product-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.product-card-footer { min-height: 72px; padding: 14px 18px 14px 23px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #edf0f2; }
.product-card-footer strong { color: #d54a31; font-size: 24px; }
.product-card-footer small, .purchase-panel small { font-size: 14px; }

.btn { min-height: 42px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 6px; cursor: pointer; font-weight: 700; line-height: 1.2; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { border-color: #cdd4da; background: #fff; color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }

.alert { max-width: 720px; margin: 0 auto 14px; padding: 12px 14px; border: 1px solid; border-radius: 6px; font-size: 14px; }
.alert-danger { border-color: #efb7b7; background: #fff4f4; color: #9c2929; }
.alert-success { border-color: #a9dbc2; background: #f0faf5; color: #14653b; }
.alert-warning { border-color: #ead29b; background: #fff9eb; color: #845000; }
.flash-wrap { padding: 18px 24px 0; }
.retry-countdown { margin: 12px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.retry-countdown strong { color: var(--primary); font-variant-numeric: tabular-nums; }
.otp-send-progress { width: 100%; margin-top: 16px; }
.otp-send-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; }
.otp-send-progress-head strong { color: var(--primary); font-variant-numeric: tabular-nums; }
.otp-send-progress-track { display: block; width: 100%; height: 7px; margin-top: 8px; overflow: hidden; border-radius: 3px; background: #e4e9ee; }
.otp-send-progress-track progress { display: block; width: 100%; height: 100%; overflow: hidden; border: 0; border-radius: inherit; appearance: none; background: transparent; }
.otp-send-progress-track progress::-webkit-progress-bar { border-radius: inherit; background: transparent; }
.otp-send-progress-track progress::-webkit-progress-value { border-radius: inherit; background: var(--primary); transition: width 120ms linear; }
.otp-send-progress-track progress::-moz-progress-bar { border-radius: inherit; background: var(--primary); }

.auth-shell, .setup-shell { width: min(100%, 460px); margin: 24px auto 0; padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.merchant-auth-shell { width: min(100%, 520px); }
.merchant-center { margin-top: 4px; }
.merchant-status-copy { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.auth-title { margin-bottom: 24px; }
.auth-phone { margin: -10px 0 18px; color: var(--muted); }
.stack-form { display: grid; gap: 17px; }
.stack-form label { display: grid; gap: 7px; color: #44515c; font-size: 14px; font-weight: 600; }
.check-row { grid-template-columns: 18px 1fr; align-items: start; font-weight: 400 !important; }
.check-row input { width: 17px; min-height: 17px; margin: 1px 0 0; }
.dev-code { margin-bottom: 17px; padding: 11px 13px; border-left: 3px solid var(--warning); background: #fff8e7; color: #7a4a00; font-size: 14px; }
.text-link, .back-link { display: inline-block; margin-top: 18px; color: var(--primary); font-size: 14px; }

.product-detail { margin-top: 10px; }
.detail-main { margin-top: 18px; padding: 34px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 46px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.detail-copy { max-width: 660px; color: var(--muted); line-height: 1.8; }
.purchase-panel { padding-left: 30px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--line); }
.purchase-panel > span { color: var(--muted); font-size: 13px; }
.purchase-panel > strong { margin: 7px 0 20px; color: #d54a31; font-size: 32px; }

.checkout-shell { width: min(100%, 820px); margin: 16px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) 330px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.checkout-summary, .checkout-action { padding: 34px; }
.checkout-action { display: grid; align-content: center; background: #f9fafb; border-left: 1px solid var(--line); }
.checkout-summary dl { margin: 30px 0 0; }
.checkout-summary dl div { padding: 13px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid #edf0f2; }
.checkout-summary dt { color: var(--muted); }
.checkout-summary dd { margin: 0; font-weight: 700; }
.checkout-progress { width: min(100%, 820px); margin: 10px auto 0; padding: 18px 34px; border: 1px solid #b8d5ff; border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.checkout-progress-head { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px; }
.checkout-progress-head strong { color: var(--primary); font-variant-numeric: tabular-nums; }
.checkout-progress-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; gap: 8px; color: #98a2ad; font-size: 12px; text-align: center; }
.checkout-progress-steps .active { color: var(--primary); font-weight: 700; }
.checkout-progress-steps .complete { color: var(--success); }

.pay-shell { width: min(100%, 660px); margin: 4px auto 0; padding: 30px 36px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.pay-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.pay-heading strong { flex: 0 0 auto; color: #d54a31; font-size: 27px; }
.qr-stage { min-height: 346px; display: grid; place-items: center; }
.qr-stage img { width: 300px; height: 300px; max-width: 100%; object-fit: contain; background: #fff; }
.payment-loading-state { align-content: center; gap: 15px; color: var(--muted); }
.payment-loading-state .spinner { width: 32px; height: 32px; border: 3px solid #d9e7fa; border-top-color: var(--primary); border-radius: 50%; animation: payment-spin .8s linear infinite; }
.payment-loading-state strong { font-size: 15px; }
.payment-loading-notice { max-width: 360px; margin: -3px 0 0; color: #71808e; font-size: 13px; line-height: 1.65; text-align: center; }
@keyframes payment-spin { to { transform: rotate(360deg); } }
.pay-status { display: flex; justify-content: center; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px rgba(22, 119, 255, .10); }
.payment-progress { margin: 20px auto 0; width: min(100%, 430px); }
.payment-progress-head, .creation-progress > div { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; }
.payment-progress-head > span { display: grid; gap: 3px; }
.payment-progress-head b { color: var(--muted); font-weight: 500; }
.payment-progress-head small { color: #8995a1; font-size: 12px; }
.payment-progress-head strong, .creation-progress strong { color: var(--primary); font-variant-numeric: tabular-nums; }
.payment-progress-track, .creation-progress-track { display: block; height: 6px; margin-top: 8px; overflow: hidden; border-radius: 3px; background: #e4e9ee; }
.payment-progress-track progress, .creation-progress-track progress { width: 100%; height: 100%; display: block; overflow: hidden; border: 0; border-radius: inherit; appearance: none; background: transparent; }
.payment-progress-track progress::-webkit-progress-bar, .creation-progress-track progress::-webkit-progress-bar { border-radius: inherit; background: transparent; }
.payment-progress-track progress::-webkit-progress-value, .creation-progress-track progress::-webkit-progress-value { border-radius: inherit; background: var(--primary); }
.payment-progress-track progress::-moz-progress-bar, .creation-progress-track progress::-moz-progress-bar { border-radius: inherit; background: var(--primary); }
.clipboard-fallback-input { position: fixed; inset: 0 auto auto -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.payment-progress-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 9px; gap: 8px; color: #98a2ad; font-size: 12px; text-align: center; }
.payment-progress-steps span { min-width: 0; }
.creation-progress-steps { grid-template-columns: repeat(4, 1fr); }
.payment-progress-steps .active { color: var(--primary); font-weight: 700; }
.payment-progress-steps .complete { color: var(--success); }
.creation-progress { margin-top: 18px; }
.order-meta { margin: 25px 0 0; border-top: 1px solid var(--line); }
.order-meta div { padding: 12px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid #edf0f2; }
.order-meta dt { color: var(--muted); }
.order-meta dd { margin: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.result-state { min-height: 330px; display: grid; place-items: center; align-content: center; gap: 18px; text-align: center; }
.result-state h2 { margin: 0; }
.result-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #eaf8f1; color: var(--success); font-size: 30px; font-weight: 800; }
.delivery-panel { width: min(100%, 500px); text-align: left; }
.delivery-panel h3 { margin: 0 0 9px; font-size: 15px; }
.delivery-list { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #f7f9fa; }
.delivery-row { min-height: 48px; padding: 10px 12px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid #e7ebee; }
.delivery-row:last-child { border-bottom: 0; }
.delivery-row > span { color: var(--muted); font-size: 13px; }
.delivery-row code { color: #1f2933; font: 14px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.copy-secret-button { min-width: 58px; min-height: 34px; padding: 0 10px; border: 1px solid #9bc3fa; border-radius: 5px; background: #fff; color: var(--primary-dark); cursor: pointer; font-size: 13px; font-weight: 700; }
.copy-secret-button:hover { border-color: var(--primary); background: #eef6ff; }
.copy-secret-button.copied { border-color: #9bd2b6; background: #effaf4; color: var(--success); }
.copy-secret-button:disabled { cursor: default; }
.delivery-waiting { margin: 0; color: var(--muted); font-size: 14px; }
.order-delivery-column { min-width: 280px; max-width: 460px; white-space: normal; vertical-align: top; }
.order-delivery-cell { min-width: 260px; max-width: 440px; grid-template-columns: minmax(0, 1fr) auto; border: 1px solid #e1e6ea; border-radius: 6px; background: #f7f9fa; }
.order-delivery-cell code,
.admin-order-delivery-row code { white-space: pre-wrap; word-break: break-word; }
.admin-order-delivery-section { margin-top: 22px; }
.admin-order-delivery-list { max-width: 780px; }
.admin-order-delivery-row { align-items: start; }

.empty-state { min-height: 250px; display: grid; place-items: center; align-content: center; gap: 20px; border: 1px dashed #cdd4da; border-radius: 8px; background: rgba(255,255,255,.6); text-align: center; }
.empty-state h2 { margin: 0; font-size: 18px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 14px; }
.data-table th, .data-table td { padding: 14px 16px; border-bottom: 1px solid #edf0f2; text-align: left; }
.data-table th { background: #f7f8f9; color: var(--muted); font-size: 12px; font-weight: 700; }
.data-table tr:last-child td { border-bottom: 0; }
.recharge-ranking-table { min-width: 860px; }
.recharge-ranking-table td { vertical-align: middle; }
.recharge-ranking-sites { max-width: 420px; white-space: normal; overflow-wrap: anywhere; line-height: 1.65; }
.recharge-ranking-user { min-width: 150px; display: grid; gap: 3px; color: var(--primary-dark); }
.recharge-ranking-user strong { font-size: 14px; }
.recharge-ranking-user span { color: var(--muted); font-size: 12px; font-weight: 500; }
.recharge-ranking-user:hover strong { color: var(--primary); }
.ranking-position { min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d5dbe0; border-radius: 5px; background: #f7f8f9; color: #52606c; font-size: 12px; font-weight: 800; }
.ranking-position-top { border-color: #d5b85f; background: #fff7d6; color: #725b12; }
.ranking-position-2 { border-color: #b9c2ca; background: #eef1f3; color: #45515b; }
.ranking-position-3 { border-color: #d3a177; background: #fff0e3; color: #814b22; }
.ranking-amount { font-weight: 800; font-variant-numeric: tabular-nums; }
.ranking-page-heading { margin-bottom: 12px; }
.ranking-page-heading > div { min-width: 0; }
.ranking-page-heading .small-muted { margin: 6px 0 0; }
.filter-bar.ranking-filter-bar { width: auto; margin: 0; grid-template-columns: minmax(180px, 1fr) auto; }
.merchant-products-table { min-width: 1200px; table-layout: fixed; }
.merchant-products-table .catalog-product-summary { width: 32%; white-space: normal; overflow-wrap: anywhere; }
.merchant-products-table .catalog-product-summary .small-muted { white-space: normal; line-height: 1.6; }
.merchant-products-table th:nth-child(2) { width: 110px; }
.merchant-products-table th:nth-child(3) { width: 140px; }
.merchant-products-table th:nth-child(4) { width: 70px; }
.merchant-products-table th:nth-child(5) { width: 90px; }
.merchant-products-table th:nth-child(6) { width: 250px; }
.merchant-products-table th:nth-child(7) { width: 105px; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.table-link { color: var(--primary); font-weight: 700; }
.order-status { display: inline-flex; min-height: 25px; padding: 0 8px; align-items: center; border-radius: 4px; background: #eef1f4; color: #4d5964; font-size: 12px; }
.status-paid { background: #eaf8f1; color: var(--success); }
.status-pending, .status-creating { background: #eaf3ff; color: #155fc0; }
.status-failed, .status-expired { background: #f6eeee; color: #8b3b3b; }
.status-deleted { background: #eceff1; color: #66727c; }
.customer-deleted-order td { color: #7b8791; background: #fafbfb; }
.user-status { display: inline-flex; min-height: 25px; padding: 0 8px; align-items: center; border-radius: 4px; font-size: 12px; font-weight: 700; }
.user-active { background: #eaf8f1; color: var(--success); }
.user-blocked { background: #f6eeee; color: #9c2929; }
.inline-actions { display: flex; align-items: center; gap: 12px; }
.inline-actions form { margin: 0; }
.table-action { min-height: auto; padding: 0; border: 0; background: transparent; color: var(--primary-dark); cursor: pointer; font-weight: 700; }
.table-action.danger-link { color: var(--danger); }

.setup-body { display: grid; place-items: center; padding: 30px 20px; }
.setup-shell { margin: 0; }
.setup-shell > .brand-mark { margin-bottom: 18px; }
.setup-shell h1 { margin: 0 0 8px; font-size: 25px; }
.muted { color: var(--muted); }
.field-hint { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.login-progress { margin-top: 18px; display: grid; gap: 9px; color: var(--muted); font-size: 13px; text-align: center; }
.login-progress[hidden] { display: none; }
.login-progress-track { height: 6px; overflow: hidden; border-radius: 3px; background: #e6eaed; }
.login-progress-track i { display: block; width: 34%; height: 100%; border-radius: 3px; background: var(--primary); animation: login-progress-move 1.1s ease-in-out infinite; }
@keyframes login-progress-move { 0% { transform: translateX(-105%); } 100% { transform: translateX(310%); } }
.field-grid { display: grid; grid-template-columns: 1fr 120px; gap: 12px; }
.after-sales-shell { width: min(100%, 920px); margin: 4px auto 0; }
.after-sales-layout { min-height: 360px; display: grid; grid-template-columns: 230px minmax(0, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.after-sales-menu { padding: 22px 22px 22px 0; display: grid; align-content: start; gap: 6px; border-right: 1px solid var(--line); }
.after-sales-menu a { min-height: 42px; padding: 0 13px; display: flex; align-items: center; border-radius: 6px; color: #4b5965; font-size: 14px; overflow-wrap: anywhere; }
.after-sales-menu a:hover { background: #edf4fc; color: var(--primary-dark); }
.after-sales-menu a.active { background: #e7f1ff; color: var(--primary-dark); font-weight: 700; }
.after-sales-content { min-width: 0; padding: 28px 0 40px 36px; }
.after-sales-content h2 { margin: 0 0 18px; font-size: 22px; }
.after-sales-content > div { color: #4b5965; font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }

@media (max-width: 800px) {
  .purchase-agreement-actions { display: grid; grid-template-columns: 1fr; }
  .purchase-agreement-actions .btn-primary { grid-row: 1; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-main, .checkout-shell { grid-template-columns: 1fr; }
  .purchase-panel { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .checkout-action { border-left: 0; border-top: 1px solid var(--line); }
  .after-sales-layout { grid-template-columns: 1fr; }
  .after-sales-menu { padding: 0 0 14px; display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .after-sales-menu a { flex: 0 0 auto; }
  .after-sales-content { padding: 24px 0 34px; }
  .storefront-theme-jade-gold .product-grid,
  .storefront-theme-minimal-mono .product-grid,
  .storefront-theme-sky-violet .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .site-header { height: 62px; }
  .header-inner, .page-shell { padding-left: 16px; padding-right: 16px; }
  .brand > span:last-child { display: none; }
  .site-nav { gap: 17px; }
  .site-modal-dialog { padding: 21px 19px; }
  .page-shell { padding-top: 28px; }
  .page-heading { align-items: start; }
  .page-heading h1, .auth-title h1, .checkout-summary h1, .product-detail h1, .pay-heading h1 { font-size: 23px; }
  .product-grid { grid-template-columns: 1fr; }
  .auth-shell, .setup-shell, .pay-shell { padding: 23px 20px; }
  .detail-main, .checkout-summary, .checkout-action, .checkout-progress { padding: 24px 20px; }
  .pay-heading { align-items: start; }
  .pay-heading strong { font-size: 22px; }
  .qr-stage { min-height: 310px; }
  .qr-stage img { width: 270px; height: 270px; }
  .field-grid { grid-template-columns: 1fr; }
  .storefront-page .product-grid { grid-template-columns: 1fr; }
  .storefront-theme-minimal-mono .product-grid { border-right: 1px solid #111; }
}

.admin-body { background: #eef1f3; }
.admin-topbar { position: fixed; z-index: 20; inset: 0 0 auto 0; height: 62px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; }
.admin-topbar .brand-mark { background: #fff; color: var(--ink); }
.admin-view-link { color: #d4dbe1; font-size: 13px; }
.admin-layout { min-height: 100vh; padding-top: 62px; display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.admin-sidebar { position: fixed; inset: 62px auto 0 0; width: 210px; padding: 22px 12px; background: #222e38; }
.admin-sidebar nav { display: grid; gap: 4px; }
.admin-sidebar a { min-height: 42px; padding: 0 14px; display: flex; align-items: center; border-radius: 5px; color: #d6dde3; font-size: 14px; }
.admin-sidebar a:hover { background: #31404c; color: #fff; }
.admin-main { grid-column: 2; min-width: 0; padding: 32px; }
.admin-heading { min-height: 56px; margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-heading h1 { margin: 3px 0 0; font-size: 25px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric { min-height: 116px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.metric span { color: var(--muted); font-size: 13px; }
.metric strong { font-size: 27px; }
.admin-section { margin-top: 24px; }
.section-heading { min-height: 48px; display: flex; align-items: center; justify-content: space-between; }
.section-heading h2 { margin: 0; font-size: 17px; }
.small-muted { color: var(--muted); font-size: 12px; }
.admin-form { display: grid; gap: 20px; }
.form-section { padding: 24px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.form-section h2 { margin: 0 0 20px; font-size: 17px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid label { display: grid; gap: 7px; color: #44515c; font-size: 13px; font-weight: 700; }
.setting-toggle { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; padding: 14px 0 18px; border-bottom: 1px solid var(--line); cursor: pointer; }
.setting-toggle input { appearance: none; width: 42px; height: 24px; min-height: 24px; margin: 0; padding: 0; border: 1px solid #aeb8c1; border-radius: 12px; background: #c8d0d6; box-shadow: none; cursor: pointer; transition: background .16s ease, border-color .16s ease; }
.setting-toggle input::before { content: ''; display: block; width: 18px; height: 18px; margin: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(18, 30, 39, .28); transition: transform .16s ease; }
.setting-toggle input:checked { border-color: var(--primary); background: var(--primary); }
.setting-toggle input:checked::before { transform: translateX(18px); }
.setting-toggle input:focus-visible { outline: 3px solid rgba(28, 117, 188, .2); outline-offset: 2px; }
.setting-toggle span { display: grid; gap: 3px; }
.setting-toggle strong { color: #25313a; font-size: 14px; }
.setting-toggle small { color: #71808b; font-size: 12px; font-weight: 400; line-height: 1.5; }
.full-field { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.after-sales-admin { padding-top: 6px; }
.after-sales-admin-heading, .after-sales-admin-item-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.after-sales-admin-heading > div { display: grid; gap: 4px; }
.after-sales-admin-heading small, .after-sales-admin-empty { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.6; }
.after-sales-admin-list { margin-top: 14px; display: grid; border-top: 1px solid var(--line); }
.after-sales-admin-item { padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.after-sales-admin-item-heading { margin-bottom: 14px; }
.after-sales-admin-fields { gap: 14px 18px; }
.after-sales-admin-empty { margin: 16px 0 0; }
.qr-preview { width: 180px; height: 180px; padding: 8px; border: 1px solid var(--line); background: #fff; }
.qr-preview img { width: 100%; height: 100%; object-fit: contain; }
.filter-bar { margin-bottom: 16px; display: grid; grid-template-columns: minmax(220px, 420px) 160px auto; gap: 10px; }
.users-filter-bar { grid-template-columns: minmax(220px, 1fr) 170px 170px auto; }
.orders-filter-bar { grid-template-columns: minmax(220px, 1.4fr) minmax(120px, .55fr) minmax(150px, .75fr) minmax(220px, 1.2fr) minmax(120px, .55fr) auto; }
.merchant-orders-filter-bar { grid-template-columns: minmax(220px, 1.3fr) minmax(120px, .55fr) minmax(210px, 1fr) minmax(120px, .55fr) auto; }
.admin-orders-table { min-width: 1120px; }
.merchant-orders-table { min-width: 1460px; table-layout: fixed; }
.merchant-orders-table th, .merchant-orders-table td { box-sizing: border-box; padding-left: 10px; padding-right: 10px; vertical-align: middle; }
.merchant-orders-table th:nth-child(1) { width: 200px; }
.merchant-orders-table th:nth-child(2) { width: 170px; }
.merchant-orders-table th:nth-child(3) { width: 130px; }
.merchant-orders-table th:nth-child(4) { width: 115px; }
.merchant-orders-table th:nth-child(5) { width: 95px; }
.merchant-orders-table th:nth-child(6) { width: 85px; }
.merchant-orders-table th:nth-child(7) { width: 310px; }
.merchant-orders-table th:nth-child(8) { width: 170px; }
.merchant-orders-table th:nth-child(9) { width: 185px; }
.merchant-orders-table td:nth-child(2), .merchant-orders-table td:nth-child(3) { white-space: normal; overflow-wrap: anywhere; line-height: 1.55; }
.merchant-orders-table .order-delivery-column { min-width: 0; max-width: none; }
.merchant-orders-table .order-delivery-cell { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.merchant-orders-table .merchant-order-created-at,
.merchant-orders-table .merchant-order-actions { white-space: nowrap; }
.merchant-orders-table .merchant-order-actions { text-align: center; }
.merchant-orders-table form { margin: 0; }
.merchant-order-action-list { display: flex; align-items: center; justify-content: center; gap: 12px; }
.purchase-limit-panel { margin-bottom: 24px; }
.purchase-limit-form { margin-top: 18px; }
.purchase-limit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.purchase-limit-secondary-actions { margin-top: 16px; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.purchase-limit-secondary-actions form { margin: 0; }
.purchase-limit-usage { margin: 18px 0 0; padding: 12px 14px; border: 1px solid var(--line); background: #f8fafb; color: var(--muted); font-size: 14px; }
.purchase-limit-reset-zone { margin-top: 24px; }
.pagination-bar { min-height: 58px; padding: 13px 2px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.pagination-bar p { margin: 0; color: var(--muted); font-size: 13px; }
.pagination { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.pagination a, .pagination span { min-width: 36px; min-height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #cdd4da; border-radius: 5px; background: #fff; color: #44515c; font-size: 13px; font-weight: 700; }
.pagination a:hover { border-color: var(--primary); color: var(--primary-dark); }
.pagination a.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.pagination span.disabled { background: #f5f6f7; color: #a1a9b0; }
.detail-columns { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; }
.admin-detail-list { margin: 0; }
.admin-detail-list div { min-height: 43px; padding: 9px 0; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 15px; border-bottom: 1px solid #edf0f2; }
.admin-detail-list dt { color: var(--muted); }
.admin-detail-list dd { margin: 0; overflow-wrap: anywhere; }
.danger-zone { margin-top: 20px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid #e2b0b0; border-radius: 7px; background: #fff8f8; }
.danger-zone h2 { margin: 0 0 5px; font-size: 16px; }
.danger-zone p { margin: 0; color: var(--muted); font-size: 13px; }
.record-cleanup { margin-top: 22px; }
.record-cleanup-actions, .date-delete-form, .user-control-actions { display: flex; align-items: center; gap: 10px; }
.record-cleanup-actions { flex-wrap: wrap; justify-content: flex-end; }
.date-delete-form label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.date-delete-form input { width: 160px; margin: 0; }
.user-control-form { margin-top: 22px; display: flex; justify-content: flex-end; }
.user-control-actions { margin-top: 20px; justify-content: flex-end; flex-wrap: wrap; }
.user-control-actions form { margin: 0; }
.callback-row { padding: 12px 13px; display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 6px; background: #f7f8f9; color: var(--muted); font-size: 13px; }
.callback-row code { color: var(--text); overflow-wrap: anywhere; }

.storefront-groups { display: grid; gap: 38px; }
.catalog-section { display: grid; gap: 16px; }
.catalog-section + .catalog-section { padding-top: 32px; border-top: 1px solid var(--line); }
.catalog-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; }
.catalog-section-heading h2 { margin: 0; font-size: 21px; }
.catalog-section-heading p { max-width: 760px; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.catalog-site-link { flex: 0 0 auto; color: var(--primary); font-size: 13px; font-weight: 700; }
.platform-catalog { margin-top: 2px; }
.platform-catalog-heading { align-items: center; }
.category-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.category-tabs a { min-height: 34px; padding: 0 13px; display: inline-flex; align-items: center; border: 1px solid #cdd4da; border-radius: 5px; background: #fff; color: #53606b; font-size: 13px; font-weight: 700; }
.category-tabs a:hover { border-color: #9bc3fa; color: var(--primary-dark); }
.category-tabs a.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.merchant-store-heading { align-items: end; }
.merchant-store-heading h1 { font-size: 21px; line-height: 1.4; }
.merchant-store-heading > div > p:last-child { max-width: 760px; margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.merchant-catalog-actions { margin-top: 22px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.merchant-catalog-copy { max-width: 780px; margin: -4px 0 22px; }
.merchant-site-list { display: grid; border-top: 1px solid var(--line); }
.merchant-site-row { min-height: 150px; padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.merchant-site-info { min-width: 0; }
.merchant-site-title { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.merchant-site-title h2 { margin: 0; font-size: 19px; }
.merchant-site-url { display: block; max-width: 760px; margin-top: 9px; color: var(--primary); font-size: 13px; overflow-wrap: anywhere; }
.merchant-store-url { display: block; max-width: 760px; margin-top: 7px; color: var(--success); font-size: 13px; overflow-wrap: anywhere; }
.merchant-site-info p { max-width: 760px; margin: 10px 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.merchant-site-info small { display: block; margin-top: 10px; color: var(--muted); }
.merchant-site-actions { flex: 0 1 760px; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.merchant-site-actions form { margin: 0; display: flex; }
.directory-sync-band { margin: 20px 0 0; padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.directory-sync-band p { margin: 5px 0; color: var(--muted); font-size: 14px; }
.directory-sync-band small { color: var(--muted); }
.directory-sync-band form { flex: 0 0 auto; margin: 0; }
.directory-stat-strip { min-height: 74px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; border-bottom: 1px solid var(--line); }
.directory-stat-strip span { padding: 14px 18px; display: flex; align-items: baseline; justify-content: center; gap: 7px; border-right: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.directory-stat-strip span:last-child { border-right: 0; }
.directory-stat-strip strong { color: var(--ink); font-size: 24px; }
.directory-stat-strip .directory-stat-enjoy strong { color: #0f766e; }
.merchant-users-filter-bar { grid-template-columns: minmax(230px, 1.4fr) repeat(4, minmax(135px, .7fr)) auto; }
.merchant-user-batch-form { margin-top: 16px; }
.merchant-user-batch-toolbar { min-height: 68px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: #f7f9f8; }
.merchant-user-batch-toolbar > div:first-child { display: grid; gap: 3px; }
.merchant-user-batch-toolbar span { color: var(--muted); font-size: 12px; }
.merchant-user-batch-toolbar + .table-wrap { border-radius: 0 0 8px 8px; }
.admin-user-batch-form { margin: 16px 0 0; }
.admin-user-batch-toolbar { min-height: 68px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: #f7f9f8; }
.admin-user-batch-toolbar > div:first-child { display: grid; gap: 3px; }
.admin-user-batch-toolbar span { color: var(--muted); font-size: 12px; }
.admin-user-delete-button { background: #9f1d2d; border-color: #9f1d2d; }
.admin-user-table-wrap { border-radius: 0 0 8px 8px; }
.admin-users-table { min-width: 1500px; }
.admin-users-table th:first-child, .admin-users-table td:first-child { width: 52px; text-align: center; }
.admin-users-table input[type="checkbox"] { width: 17px; min-height: 17px; margin: 0; }
.admin-users-table tr:has(input[data-user-select]:checked) > td { box-shadow: inset 0 0 0 9999px rgba(22, 119, 255, .08); }
.merchant-site-users-table { min-width: 1320px; table-layout: fixed; }
.merchant-site-users-table th:first-child { width: 52px; text-align: center; }
.merchant-site-users-table th:nth-child(2) { width: 310px; }
.merchant-site-users-table th:nth-child(3) { width: 240px; }
.merchant-site-users-table th:nth-child(4) { width: 230px; }
.merchant-site-users-table th:nth-child(5) { width: 230px; }
.merchant-site-users-table th:nth-child(6) { width: 240px; }
.merchant-site-users-table td { vertical-align: middle; white-space: normal; overflow-wrap: anywhere; }
.merchant-site-users-table td:first-child { text-align: center; }
.merchant-site-users-table input[type="checkbox"] { width: 17px; min-height: 17px; margin: 0; }
.directory-user-meta { margin-top: 5px; display: block; color: var(--muted); font-size: 12px; line-height: 1.45; }
.directory-login-identities b,
.directory-login-identities span { display: block; }
.directory-login-identities b { color: var(--ink); font-weight: 700; }
.directory-login-identities span { margin-top: 2px; color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.merchant-enjoy-user-row > td { background: #ecfdf5; }
.merchant-enjoy-user-row:hover > td { background: #dff8eb; }
.user-status-enjoy-badge { border: 1px solid #0f766e; background: #ccfbf1; color: #115e59; }
.platform-enjoy-summary { margin-top: 16px; }
.platform-enjoy-site-list { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.platform-enjoy-actions { margin-top: 18px; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.platform-enjoy-actions .setting-toggle { flex: 1 1 auto; }
.platform-enjoy-actions .inline-actions { flex: 0 0 auto; }
.merchant-editor { width: min(100%, 880px); margin-left: auto; margin-right: auto; }
.form-section-copy { margin: -6px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.storefront-theme-group + .storefront-theme-group { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.storefront-theme-group-heading { margin-bottom: 13px; padding-left: 12px; border-left: 4px solid #758698; }
.storefront-theme-group-motion .storefront-theme-group-heading { border-left-color: #b53668; }
.storefront-theme-group-heading h3 { margin: 0; color: var(--text); font-size: 16px; }
.storefront-theme-group-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.storefront-motion-strength-setting { width: min(100%, 360px); margin: 0 0 14px; display: grid; gap: 7px; color: #44515c; font-size: 13px; font-weight: 700; }
.storefront-motion-strength-setting small { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.storefront-theme-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.storefront-theme-option { min-width: 0; min-height: 86px; padding: 13px; display: grid; grid-template-columns: 18px 74px minmax(0, 1fr); align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer; }
.storefront-theme-option:hover { border-color: #9bc3fa; }
.storefront-theme-option input { width: 17px; min-height: 17px; margin: 0; }
.storefront-theme-option > span:last-child { min-width: 0; display: grid; gap: 4px; }
.storefront-theme-option strong { color: var(--text); font-size: 14px; }
.storefront-theme-option small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.storefront-theme-preview { --preview-bg: #f4f6f8; --preview-primary: #1677ff; --preview-accent: #d54a31; position: relative; width: 74px; height: 48px; display: block; overflow: hidden; border: 1px solid rgba(31, 41, 51, .14); border-radius: 5px; background: var(--preview-bg); }
.storefront-theme-preview i { height: 10px; display: block; background: var(--preview-primary); }
.storefront-theme-preview b, .storefront-theme-preview em { position: absolute; top: 18px; width: 25px; height: 20px; display: block; border: 1px solid rgba(31, 41, 51, .10); border-radius: 3px; background: #fff; }
.storefront-theme-preview b { left: 8px; }
.storefront-theme-preview em { right: 8px; border-color: var(--preview-accent); }
[data-theme-preview="graphite-red"] .storefront-theme-preview { --preview-bg: #eef0f2; --preview-primary: #20252a; --preview-accent: #c53a35; }
[data-theme-preview="jade-gold"] .storefront-theme-preview { --preview-bg: #eef6f2; --preview-primary: #19734b; --preview-accent: #b77a15; }
[data-theme-preview="ocean-coral"] .storefront-theme-preview { --preview-bg: #eff8fa; --preview-primary: #087f8c; --preview-accent: #e05246; }
[data-theme-preview="indigo-rose"] .storefront-theme-preview { --preview-bg: #f4f2f8; --preview-primary: #5a4fb3; --preview-accent: #c83d73; }
[data-theme-preview="sunny-ink"] .storefront-theme-preview { --preview-bg: #f4f7f8; --preview-primary: #2f3a44; --preview-accent: #b47a00; }
[data-theme-preview="minimal-mono"] .storefront-theme-preview { --preview-bg: #fff; --preview-primary: #111; --preview-accent: #777; }
[data-theme-preview="lime-navy"] .storefront-theme-preview { --preview-bg: #111b2d; --preview-primary: #a8ca32; --preview-accent: #ffc857; }
[data-theme-preview="cherry-mint"] .storefront-theme-preview { --preview-bg: #f0f8f6; --preview-primary: #bd3551; --preview-accent: #087f6d; }
[data-theme-preview="sky-violet"] .storefront-theme-preview { --preview-bg: #f0f6fb; --preview-primary: #6552b8; --preview-accent: #14809a; }
[data-theme-preview="romance-blush"] .storefront-theme-preview { --preview-bg: #fff3f6; --preview-primary: #b53668; --preview-accent: #087c78; }
[data-theme-preview="pearl-lace"] .storefront-theme-preview { --preview-bg: #f8f5fb; --preview-primary: #75579b; --preview-accent: #b98738; }
[data-theme-preview="rose-champagne"] .storefront-theme-preview { --preview-bg: #f9f2f1; --preview-primary: #8e4560; --preview-accent: #a46d1e; }
[data-theme-preview="lavender-dream"] .storefront-theme-preview { --preview-bg: #f5f1fb; --preview-primary: #6c54a5; --preview-accent: #cc4773; }
[data-theme-preview="strawberry-milk"] .storefront-theme-preview { --preview-bg: #fff4f5; --preview-primary: #cf3f63; --preview-accent: #4c6f8f; }
[data-theme-preview="midnight-glam"] .storefront-theme-preview { --preview-bg: #201925; --preview-primary: #e75b92; --preview-accent: #f1c36a; }
[data-theme-preview="sakura-girl"] .storefront-theme-preview { --preview-bg: #fff7fa; --preview-primary: #d94e7d; --preview-accent: #63a797; }
[data-theme-preview="velvet-wine"] .storefront-theme-preview { --preview-bg: #2b1822; --preview-primary: #d45a7b; --preview-accent: #f3c46c; }
[data-theme-preview="moonlit-silver"] .storefront-theme-preview { --preview-bg: #eff3f6; --preview-primary: #526f92; --preview-accent: #a74162; }
[data-theme-preview="peach-muse"] .storefront-theme-preview { --preview-bg: #fff4ee; --preview-primary: #c95562; --preview-accent: #167b80; }
[data-theme-preview="motion-teal"] .storefront-theme-preview { --preview-bg: #eef8f7; --preview-primary: #087d78; --preview-accent: #d7473f; }
[data-theme-preview="motion-coral"] .storefront-theme-preview { --preview-bg: #fff2ef; --preview-primary: #176d68; --preview-accent: #d6534b; }
[data-theme-preview="motion-forest"] .storefront-theme-preview { --preview-bg: #eff5ef; --preview-primary: #275f42; --preview-accent: #d85e50; }
[data-theme-preview="motion-amber"] .storefront-theme-preview { --preview-bg: #f4f6f7; --preview-primary: #384857; --preview-accent: #b87900; }
[data-theme-preview="motion-amber-sunset"] .storefront-theme-preview { --preview-bg: #fff3eb; --preview-primary: #b94f2f; --preview-accent: #d98a20; }
[data-theme-preview="motion-amber-rosegold"] .storefront-theme-preview { --preview-bg: #fbf1f2; --preview-primary: #a44f68; --preview-accent: #b77a56; }
[data-theme-preview="motion-amber-ice"] .storefront-theme-preview { --preview-bg: #eef7fb; --preview-primary: #28789d; --preview-accent: #4c9ec1; }
[data-theme-preview="motion-amber-violet"] .storefront-theme-preview { --preview-bg: #f1f1fa; --preview-primary: #5559a7; --preview-accent: #7c68c5; }
[data-theme-preview="motion-violet"] .storefront-theme-preview { --preview-bg: #f4f1f8; --preview-primary: #6350a5; --preview-accent: #b83f74; }
[data-theme-preview="motion-cyan"] .storefront-theme-preview { --preview-bg: #edf9fb; --preview-primary: #087f96; --preview-accent: #d44753; }
[data-theme-preview="motion-cyan-rose"] .storefront-theme-preview { --preview-bg: #fff1f5; --preview-primary: #b63f69; --preview-accent: #d99a32; }
[data-theme-preview="motion-cyan-coral"] .storefront-theme-preview { --preview-bg: #fff2ed; --preview-primary: #c95643; --preview-accent: #21827b; }
[data-theme-preview="motion-cyan-champagne"] .storefront-theme-preview { --preview-bg: #fff8ea; --preview-primary: #a87420; --preview-accent: #b75260; }
[data-theme-preview="motion-cyan-peach"] .storefront-theme-preview { --preview-bg: #fff3ee; --preview-primary: #cf6858; --preview-accent: #9a5877; }
[data-theme-preview="motion-cyan-glacier"] .storefront-theme-preview { --preview-bg: #eef8fc; --preview-primary: #237ca6; --preview-accent: #4d6fc4; }
[data-theme-preview="motion-cyan-aurora"] .storefront-theme-preview { --preview-bg: #edf9f7; --preview-primary: #15877d; --preview-accent: #7159b3; }
[data-theme-preview="motion-navy"] .storefront-theme-preview { --preview-bg: #121c2d; --preview-primary: #5fc2c8; --preview-accent: #ffd05c; }
[data-theme-preview="motion-ruby"] .storefront-theme-preview { --preview-bg: #f6eef1; --preview-primary: #a4294c; --preview-accent: #0c7489; }
[data-theme-preview="motion-lime"] .storefront-theme-preview { --preview-bg: #292638; --preview-primary: #9cbd35; --preview-accent: #efb55f; }
[data-theme-preview="motion-slate"] .storefront-theme-preview { --preview-bg: #eef1f3; --preview-primary: #2b516e; --preview-accent: #b3444f; }
[data-theme-preview="motion-slate-ice"] .storefront-theme-preview { --preview-bg: #eef6fb; --preview-primary: #2d78a5; --preview-accent: #a13f68; }
[data-theme-preview="motion-slate-aurora"] .storefront-theme-preview { --preview-bg: #edf8f7; --preview-primary: #168679; --preview-accent: #6a4fa3; }
[data-theme-preview="motion-slate-moon"] .storefront-theme-preview { --preview-bg: #f2f0f8; --preview-primary: #66549a; --preview-accent: #b5426f; }
[data-theme-preview="motion-slate-rose"] .storefront-theme-preview { --preview-bg: #fbf0f3; --preview-primary: #ad4167; --preview-accent: #9a6a18; }
[data-theme-preview="motion-slate-amber"] .storefront-theme-preview { --preview-bg: #fff5e9; --preview-primary: #bd691c; --preview-accent: #a33f4d; }
[data-theme-preview="motion-slate-peach"] .storefront-theme-preview { --preview-bg: #fff1ed; --preview-primary: #cf5e55; --preview-accent: #167a77; }
[data-theme-preview^="motion-"] .storefront-theme-preview i { transform-origin: left center; animation: storefront-preview-pulse 1.2s ease-in-out infinite; }
@keyframes storefront-preview-pulse { 0%, 100% { opacity: .55; transform: scaleX(.58); } 50% { opacity: 1; transform: scaleX(1); } }
.merchant-catalog-toolbar { margin: -8px 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.merchant-catalog-toolbar .back-link { margin: 0; }
.page-heading-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.merchant-activity-management { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.merchant-activity-management .section-heading { margin-bottom: 12px; }
.activity-purchase-gate-form { margin: 16px 0 24px; }
.activity-purchase-gate-form .form-section { margin: 0; }
.activity-product-import-section { margin-top: 28px; }
.activity-product-import-section > .section-heading { align-items: flex-start; }
.activity-import-notice { margin: 0 0 14px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-left: 3px solid var(--primary); background: #eef6ff; }
.activity-import-notice > div { min-width: 0; display: grid; gap: 3px; }
.activity-import-notice strong { color: var(--primary-dark); overflow-wrap: anywhere; }
.activity-import-notice span { color: var(--muted); font-size: 12px; }
.activity-product-import-cell { white-space: normal; }
.activity-product-row-import { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.activity-product-row-import select { min-width: 0; min-height: 36px; padding: 6px 9px; font-size: 12px; }
.activity-product-row-import > span { overflow-wrap: anywhere; }
.activity-import-button { min-height: 36px; padding: 6px 11px; }
.activity-assignment-label { display: block; margin-bottom: 3px; color: var(--success); font-size: 12px; font-weight: 800; }
.activity-product-management-list { margin-top: 16px; border-top: 1px solid var(--line); }
.activity-product-managed-row { min-width: 0; padding: 16px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px) auto; align-items: end; gap: 18px; border-bottom: 1px solid var(--line); }
.activity-product-managed-summary { min-width: 0; display: grid; gap: 4px; }
.activity-product-managed-summary strong { color: var(--text); font-size: 15px; overflow-wrap: anywhere; }
.activity-product-managed-summary span, .activity-product-managed-summary small { color: var(--muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.activity-product-interval-form { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.activity-product-interval-form label { min-width: 0; display: grid; gap: 5px; color: var(--text); font-size: 12px; font-weight: 700; }
.activity-product-interval-form input { width: 100%; min-height: 40px; }
.activity-product-interval-form small { color: var(--muted); font-weight: 400; line-height: 1.45; }
.activity-product-interval-form .btn, .activity-product-remove-form .btn { min-height: 40px; white-space: nowrap; }
.activity-product-remove-form { margin: 0; }
.activity-management-empty, .activity-cards-empty { min-height: 170px; }
.activity-import-form { margin-bottom: 24px; padding: 22px; display: grid; gap: 14px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.activity-import-form label { display: grid; gap: 8px; color: #44515c; font-size: 13px; font-weight: 700; }
.activity-card-toolbar { min-height: 58px; padding: 9px 13px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-bottom: 0; border-radius: 7px 7px 0 0; background: #f7f8f9; }
.activity-card-toolbar label { display: flex; align-items: center; gap: 8px; color: #44515c; font-size: 13px; font-weight: 700; }
.activity-card-toolbar input, .activity-card-table input[type="checkbox"] { width: 17px; min-height: 17px; margin: 0; }
.activity-card-toolbar + .table-wrap { border-radius: 0 0 8px 8px; }
.activity-card-table td { vertical-align: middle; }
.activity-label-form { min-width: 260px; display: grid; grid-template-columns: minmax(150px, 1fr) auto; gap: 8px; }
.activity-label-form input { min-height: 38px; }
.activity-label-form .btn { min-height: 38px; padding: 0 13px; }
.activity-card-secret { min-width: 290px; grid-template-columns: minmax(0, 1fr) auto; border-bottom: 0; background: transparent; }

.store-activity-section { margin-top: 38px; padding-top: 32px; border-top: 1px solid var(--line); }
.store-activity-section .catalog-section-heading { margin-bottom: 16px; }
.activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.activity-panel { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 5px 18px rgba(31, 41, 51, .04); }
.activity-panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.activity-panel-heading h3 { margin: 0; font-size: 18px; }
.activity-panel-heading p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.activity-panel-heading > span { flex: 0 0 auto; color: var(--primary-dark); font-size: 12px; font-weight: 700; }
.activity-empty { margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid #edf0f2; color: var(--muted); font-size: 13px; }
.activity-guest-message { margin: 22px 0 0; padding: 20px 0 2px; border-top: 1px solid #edf0f2; color: var(--primary-dark); font-size: 14px; font-weight: 700; text-align: center; }
.activity-delivery-list { margin-top: 18px; border: 0; border-radius: 0; background: transparent; }
.activity-delivery-list .delivery-row { padding-left: 0; padding-right: 0; }
.activity-featured-products { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--store-line, #edf0f2); }
.activity-featured-products h4 { margin: 0 0 8px; color: var(--store-muted, var(--muted)); font-size: 12px; font-weight: 800; }
.activity-featured-product-row { min-width: 0; padding: 10px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--store-line, #edf0f2); }
.activity-featured-product-row:last-child { border-bottom: 0; }
.activity-featured-product-row > div { min-width: 0; display: grid; gap: 3px; }
.activity-featured-product-row strong, .activity-featured-product-row small { overflow-wrap: anywhere; }
.activity-featured-product-row strong { color: var(--store-text, var(--text)); font-size: 14px; }
.activity-featured-product-row small { color: var(--store-muted, var(--muted)); font-size: 12px; line-height: 1.45; }
.activity-featured-product-meta { justify-items: end; text-align: right; }
.activity-featured-product-meta > strong { color: var(--store-price, var(--primary-dark)); font-size: 15px; font-weight: 800; white-space: nowrap; }
.activity-featured-product-meta > small { max-width: 190px; }
.activity-product-countdown { color: var(--store-primary-dark, var(--primary-dark)) !important; font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; }
.modal-countdown { margin: 14px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: #f7f9fb; color: var(--primary-dark) !important; text-align: center; }
.activity-featured-product-row > .activity-product-waiting { color: var(--store-text, var(--text)); font-size: 12px; font-weight: 700; white-space: nowrap; cursor: default; }
.activity-featured-product-row .btn { min-height: 34px; padding: 7px 12px; }

/* Merchant storefront themes share the checkout behavior while varying the catalog presentation. */
.storefront-page { --store-bg: #f4f6f8; --store-surface: #fff; --store-text: #1f2933; --store-muted: #6b7785; --store-line: #dfe4e8; --store-primary: #1677ff; --store-primary-dark: #0f5fd1; --store-price: #d54a31; --store-header: #fff; --store-header-text: var(--store-text); --store-nav-hover-text: #fff; --store-shadow: 0 5px 18px rgba(31, 41, 51, .04); --store-radius: 8px; --motion-level: 1; --motion-breathe-scale: 1.035; --motion-breathe-shadow-y: 18px; --motion-breathe-shadow-blur: 34px; --motion-float-y: -10px; --motion-float-rotate: .45deg; --motion-brand-rotate-start: -10deg; --motion-brand-rotate-end: 10deg; --motion-brand-scale-start: .96; --motion-brand-scale-end: 1.1; --motion-nav-y: -5px; --motion-heading-y: -9px; --motion-panel-x: 5px; --motion-panel-y: -8px; --motion-panel-scale: 1.018; --motion-header-shadow-y: 9px; --motion-header-shadow-blur: 28px; --motion-header-brightness: 1.18; --motion-button-start-x: -5px; --motion-button-end-x: 6px; --motion-button-start-scale: .96; --motion-button-end-scale: 1.08; --motion-price-y: -9px; --motion-price-start-scale: .96; --motion-price-end-scale: 1.13; --motion-border-ring: 4px; --motion-border-shadow-y: 12px; --motion-border-shadow-blur: 24px; --motion-dark-scale: 1.025; --motion-dark-ring: 3px; --motion-dark-shadow-y: 16px; --motion-dark-shadow-blur: 32px; --bg: var(--store-bg); --surface: var(--store-surface); --text: var(--store-text); --muted: var(--store-muted); --line: var(--store-line); --primary: var(--store-primary); --primary-dark: var(--store-primary-dark); background: var(--store-bg); color: var(--store-text); }
.storefront-motion-strength-50 { --motion-level: .5; --motion-breathe-scale: 1.018; --motion-breathe-shadow-y: 9px; --motion-breathe-shadow-blur: 22px; --motion-float-y: -5px; --motion-float-rotate: .22deg; --motion-brand-rotate-start: -5deg; --motion-brand-rotate-end: 5deg; --motion-brand-scale-start: .98; --motion-brand-scale-end: 1.05; --motion-nav-y: -3px; --motion-heading-y: -5px; --motion-panel-x: 3px; --motion-panel-y: -4px; --motion-panel-scale: 1.009; --motion-header-shadow-y: 5px; --motion-header-shadow-blur: 16px; --motion-header-brightness: 1.09; --motion-button-start-x: -3px; --motion-button-end-x: 3px; --motion-button-start-scale: .98; --motion-button-end-scale: 1.04; --motion-price-y: -5px; --motion-price-start-scale: .98; --motion-price-end-scale: 1.065; --motion-border-ring: 2px; --motion-border-shadow-y: 6px; --motion-border-shadow-blur: 12px; --motion-dark-scale: 1.012; --motion-dark-ring: 2px; --motion-dark-shadow-y: 8px; --motion-dark-shadow-blur: 16px; }
.storefront-motion-strength-100 { --motion-level: 1; }
.storefront-motion-strength-150 { --motion-level: 1.5; --motion-breathe-scale: 1.052; --motion-breathe-shadow-y: 24px; --motion-breathe-shadow-blur: 44px; --motion-float-y: -15px; --motion-float-rotate: .7deg; --motion-brand-rotate-start: -15deg; --motion-brand-rotate-end: 15deg; --motion-brand-scale-start: .94; --motion-brand-scale-end: 1.15; --motion-nav-y: -8px; --motion-heading-y: -14px; --motion-panel-x: 8px; --motion-panel-y: -12px; --motion-panel-scale: 1.027; --motion-header-shadow-y: 14px; --motion-header-shadow-blur: 40px; --motion-header-brightness: 1.27; --motion-button-start-x: -8px; --motion-button-end-x: 9px; --motion-button-start-scale: .94; --motion-button-end-scale: 1.12; --motion-price-y: -14px; --motion-price-start-scale: .94; --motion-price-end-scale: 1.195; --motion-border-ring: 6px; --motion-border-shadow-y: 18px; --motion-border-shadow-blur: 36px; --motion-dark-scale: 1.038; --motion-dark-ring: 5px; --motion-dark-shadow-y: 24px; --motion-dark-shadow-blur: 48px; }
.storefront-motion-strength-200 { --motion-level: 2; --motion-breathe-scale: 1.07; --motion-breathe-shadow-y: 30px; --motion-breathe-shadow-blur: 54px; --motion-float-y: -20px; --motion-float-rotate: .9deg; --motion-brand-rotate-start: -20deg; --motion-brand-rotate-end: 20deg; --motion-brand-scale-start: .92; --motion-brand-scale-end: 1.2; --motion-nav-y: -10px; --motion-heading-y: -18px; --motion-panel-x: 10px; --motion-panel-y: -16px; --motion-panel-scale: 1.036; --motion-header-shadow-y: 18px; --motion-header-shadow-blur: 52px; --motion-header-brightness: 1.36; --motion-button-start-x: -10px; --motion-button-end-x: 12px; --motion-button-start-scale: .92; --motion-button-end-scale: 1.16; --motion-price-y: -18px; --motion-price-start-scale: .92; --motion-price-end-scale: 1.26; --motion-border-ring: 8px; --motion-border-shadow-y: 24px; --motion-border-shadow-blur: 48px; --motion-dark-scale: 1.05; --motion-dark-ring: 6px; --motion-dark-shadow-y: 32px; --motion-dark-shadow-blur: 64px; }
.storefront-page .site-header, .storefront-page .site-footer { background: var(--store-header); border-color: var(--store-line); }
.storefront-page .site-header { color: var(--store-header-text); }
.storefront-page .site-nav { gap: 8px; color: var(--store-header-text); }
.storefront-page .site-nav a, .storefront-page .site-nav .nav-link-button { min-height: 34px; padding: 0 11px; display: inline-flex; align-items: center; border: 1px solid var(--store-line); border-radius: var(--store-radius); background: var(--store-surface); color: var(--store-text); cursor: pointer; font-size: 13px; font-weight: 700; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.storefront-page .site-nav a:hover, .storefront-page .site-nav .nav-link-button:hover { border-color: var(--store-primary); background: var(--store-primary); color: var(--store-nav-hover-text); }
.storefront-page .site-nav a:focus-visible, .storefront-page .site-nav .nav-link-button:focus-visible { outline: 2px solid var(--store-primary); outline-offset: 2px; }
.storefront-page .product-card, .storefront-page .activity-panel { border-color: var(--store-line); border-radius: var(--store-radius); background: var(--store-surface); box-shadow: var(--store-shadow); }
.storefront-page .product-card-footer { border-color: var(--store-line); }
.storefront-page .product-card-footer strong { color: var(--store-price); }
.storefront-page .site-modal-dialog { --text: #1f2933; --muted: #6b7785; --line: #dfe4e8; color: #1f2933; }
.storefront-theme-classic-blue { color-scheme: light; }

.storefront-theme-graphite-red { --store-bg: #eef0f2; --store-text: #20252a; --store-muted: #68717a; --store-line: #cfd5da; --store-primary: #c53a35; --store-primary-dark: #9e2926; --store-price: #b8322d; --store-header: #20252a; --store-header-text: #f5f7f8; --store-shadow: none; --store-radius: 4px; }
.storefront-theme-graphite-red .site-header, .storefront-theme-graphite-red .site-nav { color: #f5f7f8; }
.storefront-theme-graphite-red .brand-mark { background: #c53a35; }
.storefront-theme-graphite-red .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.storefront-theme-graphite-red .product-card { min-height: 184px; border-left: 4px solid var(--store-primary); }

.storefront-theme-jade-gold { --store-bg: #eef6f2; --store-text: #17382c; --store-muted: #64776f; --store-line: #cbded5; --store-primary: #19734b; --store-primary-dark: #105c3a; --store-price: #a96e0c; --store-header: #fff; --store-shadow: 0 8px 20px rgba(19, 80, 54, .07); --store-radius: 6px; }
.storefront-theme-jade-gold .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.storefront-theme-jade-gold .product-card { border-top: 4px solid #c69a38; }
.storefront-theme-jade-gold .product-card-footer { background: #f8fcfa; }

.storefront-theme-ocean-coral { --store-bg: #eff8fa; --store-text: #17333a; --store-muted: #5e747a; --store-line: #c9dfe3; --store-primary: #087f8c; --store-primary-dark: #056471; --store-price: #d94d43; --store-header: #fff; --store-shadow: 0 9px 24px rgba(0, 93, 104, .08); --store-radius: 8px; }
.storefront-theme-ocean-coral .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.storefront-theme-ocean-coral .product-card-body { padding-bottom: 36px; }
.storefront-theme-ocean-coral .product-card-footer { background: #f7fcfd; }

.storefront-theme-indigo-rose { --store-bg: #f4f2f8; --store-text: #302b42; --store-muted: #716b80; --store-line: #d9d2e4; --store-primary: #5a4fb3; --store-primary-dark: #443b91; --store-price: #bd356d; --store-header: #fff; --store-shadow: 0 10px 26px rgba(74, 61, 130, .08); --store-radius: 8px; }
.storefront-theme-indigo-rose .merchant-store-heading { padding-left: 18px; border-left: 5px solid #c83d73; }
.storefront-theme-indigo-rose .product-card:nth-child(even) { border-top: 3px solid #c83d73; }
.storefront-theme-indigo-rose .product-card:nth-child(odd) { border-top: 3px solid #5a4fb3; }

.storefront-theme-sunny-ink { --store-bg: #f4f7f8; --store-text: #2f3a44; --store-muted: #6c767f; --store-line: #d6dde1; --store-primary: #a86e00; --store-primary-dark: #7d5200; --store-price: #d4472f; --store-header: #fff; --store-shadow: 7px 7px 0 #dbe2e5; --store-radius: 3px; }
.storefront-theme-sunny-ink .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.storefront-theme-sunny-ink .product-card-footer { background: #fff8d8; }
.storefront-theme-sunny-ink .btn-primary { color: #fff; }

.storefront-theme-minimal-mono { --store-bg: #fff; --store-text: #111; --store-muted: #666; --store-line: #bfc3c6; --store-primary: #111; --store-primary-dark: #333; --store-price: #111; --store-header: #fff; --store-shadow: none; --store-radius: 0; }
.storefront-theme-minimal-mono .page-shell { max-width: 1240px; }
.storefront-theme-minimal-mono .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid #111; border-left: 1px solid #111; }
.storefront-theme-minimal-mono .product-card { border-width: 0 1px 1px 0; }
.storefront-theme-minimal-mono .brand-mark { border-radius: 0; background: #111; }

.storefront-theme-lime-navy { color-scheme: dark; --store-bg: #111b2d; --store-surface: #1d2940; --store-text: #f3f7fa; --store-muted: #b5c1cf; --store-line: #35445d; --store-primary: #a8ca32; --store-primary-dark: #8cad21; --store-price: #ffc857; --store-header: #172238; --store-header-text: #f3f7fa; --store-nav-hover-text: #172012; --store-shadow: 0 10px 24px rgba(0, 0, 0, .22); --store-radius: 6px; }
.storefront-theme-lime-navy .site-nav { color: #dce5ee; }
.storefront-theme-lime-navy .btn-primary { color: #172012; }
.storefront-theme-lime-navy .product-card-footer { background: #172238; }
.storefront-theme-lime-navy .purchase-agreement-content { color-scheme: light; }

.storefront-theme-cherry-mint { --store-bg: #f0f8f6; --store-text: #263d38; --store-muted: #667d77; --store-line: #cce0da; --store-primary: #bd3551; --store-primary-dark: #963047; --store-price: #087f6d; --store-header: #fff; --store-shadow: 0 8px 22px rgba(49, 99, 86, .07); --store-radius: 8px; }
.storefront-theme-cherry-mint .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.storefront-theme-cherry-mint .product-card-footer { border-top: 4px solid #8fcbb9; }
.storefront-theme-cherry-mint .activity-panel { border-left: 4px solid #bd3551; }

.storefront-theme-sky-violet { --store-bg: #f0f6fb; --store-text: #283648; --store-muted: #68788a; --store-line: #cadbe8; --store-primary: #6552b8; --store-primary-dark: #4d3e94; --store-price: #14809a; --store-header: #fff; --store-shadow: 0 7px 20px rgba(42, 86, 120, .08); --store-radius: 6px; }
.storefront-theme-sky-violet .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.storefront-theme-sky-violet .product-card-body { background: #f9fcff; }
.storefront-theme-sky-violet .product-card-footer { background: #fff; }

/* Themes 11-20 are static, feminine storefronts with distinct color and layout treatments. */
.storefront-theme-romance-blush { --store-bg: #fff3f6; --store-text: #4b3440; --store-muted: #816a75; --store-line: #ead0da; --store-primary: #b53668; --store-primary-dark: #8d2850; --store-price: #087c78; --store-header: #fffafd; --store-shadow: 0 10px 24px rgba(139, 55, 89, .10); --store-radius: 8px; }
.storefront-theme-romance-blush .brand-mark { background: #087c78; }
.storefront-theme-romance-blush .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.storefront-theme-romance-blush .product-card:nth-child(odd) { border-top: 4px solid #b53668; }
.storefront-theme-romance-blush .product-card:nth-child(even) { border-top: 4px solid #087c78; }
.storefront-theme-romance-blush .product-card-footer { background: #fff9fb; }

.storefront-theme-pearl-lace { --store-bg: #f8f5fb; --store-text: #3f384a; --store-muted: #766e80; --store-line: #ded5e7; --store-primary: #75579b; --store-primary-dark: #5b407f; --store-price: #a8701f; --store-header: #fff; --store-shadow: 0 8px 22px rgba(89, 70, 111, .09); --store-radius: 7px; }
.storefront-theme-pearl-lace .brand-mark { background: #b98738; }
.storefront-theme-pearl-lace .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.storefront-theme-pearl-lace .product-card { border-top: 4px solid #c5a562; }
.storefront-theme-pearl-lace .product-card-footer { background: #fcfaff; }

.storefront-theme-rose-champagne { --store-bg: #f9f2f1; --store-text: #49373d; --store-muted: #806d72; --store-line: #e3d0d1; --store-primary: #8e4560; --store-primary-dark: #6f3249; --store-price: #9b681b; --store-header: #f0e0df; --store-shadow: 6px 6px 0 #eadcda; --store-radius: 4px; }
.storefront-theme-rose-champagne .brand-mark { background: #9b681b; }
.storefront-theme-rose-champagne .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.storefront-theme-rose-champagne .product-card-footer { border-top: 3px solid #d9b67a; background: #fffaf8; }

.storefront-theme-lavender-dream { --store-bg: #f5f1fb; --store-text: #403750; --store-muted: #766d86; --store-line: #ddd3eb; --store-primary: #6c54a5; --store-primary-dark: #503a86; --store-price: #c03d6e; --store-header: #fff; --store-shadow: 0 11px 28px rgba(99, 75, 144, .11); --store-radius: 8px; }
.storefront-theme-lavender-dream .brand-mark { background: #c03d6e; }
.storefront-theme-lavender-dream .merchant-store-heading { padding-left: 18px; border-left: 5px solid #c03d6e; }
.storefront-theme-lavender-dream .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.storefront-theme-lavender-dream .product-card:nth-child(even) { border-right: 4px solid #6c54a5; }

.storefront-theme-strawberry-milk { --store-bg: #fff4f5; --store-text: #4b3940; --store-muted: #816e74; --store-line: #efd3d8; --store-primary: #cf3f63; --store-primary-dark: #a72d4c; --store-price: #426b8d; --store-header: #fff; --store-shadow: 0 8px 20px rgba(159, 61, 84, .09); --store-radius: 7px; }
.storefront-theme-strawberry-milk .brand-mark { background: #4c6f8f; }
.storefront-theme-strawberry-milk .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.storefront-theme-strawberry-milk .product-card-body { background: #fffafb; }
.storefront-theme-strawberry-milk .product-card-footer { background: #ffecef; }

.storefront-theme-midnight-glam { color-scheme: dark; --store-bg: #201925; --store-surface: #312538; --store-text: #fbf4f8; --store-muted: #c8b8c3; --store-line: #594153; --store-primary: #e75b92; --store-primary-dark: #c33f74; --store-price: #f1c36a; --store-header: #18131d; --store-header-text: #fbf4f8; --store-nav-hover-text: #2b1721; --store-shadow: 0 12px 28px rgba(0, 0, 0, .28); --store-radius: 7px; }
.storefront-theme-midnight-glam .brand-mark { background: #56b9ae; color: #172724; }
.storefront-theme-midnight-glam .btn-primary { color: #2b1721; }
.storefront-theme-midnight-glam .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.storefront-theme-midnight-glam .product-card { border-top: 3px solid #e75b92; }
.storefront-theme-midnight-glam .product-card-footer { background: #291e30; }
.storefront-theme-midnight-glam .purchase-agreement-content { color-scheme: light; }

.storefront-theme-sakura-girl { --store-bg: #fff7fa; --store-text: #493841; --store-muted: #816f78; --store-line: #edd6df; --store-primary: #d94e7d; --store-primary-dark: #b43765; --store-price: #6657a1; --store-header: #fff; --store-shadow: 0 8px 20px rgba(178, 70, 109, .08); --store-radius: 8px; }
.storefront-theme-sakura-girl .brand-mark { background: #63a797; }
.storefront-theme-sakura-girl .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.storefront-theme-sakura-girl .product-card:nth-child(odd) { border-bottom: 4px solid #e584a6; }
.storefront-theme-sakura-girl .product-card:nth-child(even) { border-bottom: 4px solid #79b7a8; }

.storefront-theme-velvet-wine { color-scheme: dark; --store-bg: #2b1822; --store-surface: #442332; --store-text: #fff5f8; --store-muted: #d2b7c1; --store-line: #684052; --store-primary: #d45a7b; --store-primary-dark: #b43e60; --store-price: #f3c46c; --store-header: #21121a; --store-header-text: #fff5f8; --store-nav-hover-text: #2b1822; --store-shadow: 0 11px 26px rgba(15, 5, 10, .30); --store-radius: 5px; }
.storefront-theme-velvet-wine .brand-mark { background: #58b6a6; color: #17322d; }
.storefront-theme-velvet-wine .btn-primary { color: #2b1822; }
.storefront-theme-velvet-wine .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.storefront-theme-velvet-wine .product-card { border-left: 4px solid #d45a7b; }
.storefront-theme-velvet-wine .product-card-footer { background: #351b28; }
.storefront-theme-velvet-wine .purchase-agreement-content { color-scheme: light; }

.storefront-theme-moonlit-silver { --store-bg: #eff3f6; --store-text: #304154; --store-muted: #6c7b89; --store-line: #ccd6df; --store-primary: #526f92; --store-primary-dark: #3c5674; --store-price: #a74162; --store-header: #e1e8ef; --store-shadow: 0 7px 18px rgba(59, 79, 101, .10); --store-radius: 4px; }
.storefront-theme-moonlit-silver .brand-mark { background: #a74162; }
.storefront-theme-moonlit-silver .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.storefront-theme-moonlit-silver .product-card { border-width: 2px; border-top-color: #8298b0; }
.storefront-theme-moonlit-silver .product-card-footer { background: #e8eef3; }

.storefront-theme-peach-muse { --store-bg: #fff4ee; --store-text: #4a3936; --store-muted: #806e69; --store-line: #edd4c8; --store-primary: #c95562; --store-primary-dark: #a43d49; --store-price: #167b80; --store-header: #fffaf7; --store-shadow: 0 9px 23px rgba(151, 75, 57, .09); --store-radius: 8px; }
.storefront-theme-peach-muse .brand-mark { background: #167b80; }
.storefront-theme-peach-muse .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.storefront-theme-peach-muse .product-card { border-top: 4px solid #e08a78; }
.storefront-theme-peach-muse .product-card-footer { background: #ffebe2; }

/* Themes 21-30 use intentionally visible motion without changing checkout behavior. */
.storefront-page[class*="storefront-theme-motion-"] .product-card { position: relative; overflow: hidden; will-change: transform, box-shadow; }
.storefront-page[class*="storefront-theme-motion-"] .product-card-body,
.storefront-page[class*="storefront-theme-motion-"] .product-card-footer { position: relative; z-index: 1; }
.storefront-page[class*="storefront-theme-motion-"] .product-card::after { content: ""; position: absolute; z-index: 2; top: -35%; bottom: -35%; left: -45%; width: 24%; background: rgba(255, 255, 255, .48); transform: skewX(-18deg) translateX(-260%); animation: storefront-sheen-sweep 3.2s ease-in-out infinite; pointer-events: none; }
.storefront-page[class*="storefront-theme-motion-"] .product-card:nth-child(2)::after { animation-delay: -.8s; }
.storefront-page[class*="storefront-theme-motion-"] .product-card:nth-child(3)::after { animation-delay: -1.6s; }
.storefront-page[class*="storefront-theme-motion-"] .product-card:nth-child(4)::after { animation-delay: -2.4s; }

.storefront-theme-motion-teal { --store-bg: #eef8f7; --store-text: #173b3a; --store-muted: #627c7a; --store-line: #c8dfdd; --store-primary: #087d78; --store-primary-dark: #055f5b; --store-price: #d7473f; --store-header: #fff; --store-shadow: 0 7px 18px rgba(22, 91, 88, .08); --store-radius: 6px; }
.storefront-theme-motion-teal .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.storefront-theme-motion-teal .product-card { border-left: 4px solid #32a39a; animation: storefront-shadow-breathe 2.8s ease-in-out infinite; }
.storefront-theme-motion-teal .product-card:nth-child(even) { animation-delay: -1.4s; }

.storefront-theme-motion-coral { --store-bg: #fff2ef; --store-text: #433633; --store-muted: #7c6a65; --store-line: #ead2cb; --store-primary: #176d68; --store-primary-dark: #105550; --store-price: #d6534b; --store-header: #fff9f7; --store-shadow: 0 8px 20px rgba(115, 69, 57, .08); --store-radius: 8px; }
.storefront-theme-motion-coral .brand-mark { background: #d6534b; }
.storefront-theme-motion-coral .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.storefront-theme-motion-coral .product-card { border-bottom: 4px solid #176d68; animation: storefront-card-float 3s ease-in-out infinite; }
.storefront-theme-motion-coral .product-card:nth-child(2n) { animation-delay: -1.5s; }

.storefront-theme-motion-forest { --store-bg: #eff5ef; --store-text: #213a2c; --store-muted: #697b70; --store-line: #cadbce; --store-primary: #275f42; --store-primary-dark: #19472f; --store-price: #c65045; --store-header: #275f42; --store-header-text: #f7fbf8; --store-shadow: none; --store-radius: 7px; }
.storefront-theme-motion-forest .brand-mark { background: #d85e50; animation: storefront-brand-tilt 2.2s ease-in-out infinite; }
.storefront-theme-motion-forest .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.storefront-theme-motion-forest .product-card { border-top: 4px solid #d85e50; animation: storefront-panel-wave 3.1s ease-in-out infinite; }
.storefront-theme-motion-forest .product-card:nth-child(even) { animation-delay: -1.55s; }

.storefront-theme-motion-amber { --store-bg: #f4f6f7; --store-text: #2e3c47; --store-muted: #6b7881; --store-line: #d2d9de; --store-primary: #384857; --store-primary-dark: #273744; --store-price: #b87900; --store-header: #fff; --store-shadow: 5px 5px 0 #dfe4e7; --store-radius: 3px; }
.storefront-theme-motion-amber .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.storefront-theme-motion-amber .site-nav a, .storefront-theme-motion-amber .site-nav .nav-link-button { animation: storefront-nav-pulse 2.2s ease-in-out infinite; }
.storefront-theme-motion-amber .site-nav :nth-child(2n) { animation-delay: -1.1s; }
.storefront-theme-motion-amber .product-card { animation: storefront-shadow-breathe 3.2s ease-in-out infinite; }
.storefront-theme-motion-amber .product-card:nth-child(even) { animation-delay: -1.6s; }
.storefront-theme-motion-amber .product-card-footer { background: #fff8df; }

.storefront-theme-motion-amber-sunset { --store-bg: #fff3eb; --store-text: #4a332c; --store-muted: #806b62; --store-line: #edcfbf; --store-primary: #b94f2f; --store-primary-dark: #8f3820; --store-price: #d17b14; --store-header: #fffaf6; --store-shadow: 5px 5px 0 #f0d9cb; --store-radius: 3px; --amber-footer: #fff0d8; }
.storefront-theme-motion-amber-rosegold { --store-bg: #fbf1f2; --store-text: #49353b; --store-muted: #7e6970; --store-line: #e6cbd2; --store-primary: #a44f68; --store-primary-dark: #7d384d; --store-price: #a96c45; --store-header: #fffafb; --store-shadow: 5px 5px 0 #ead7da; --store-radius: 3px; --amber-footer: #f8e5df; }
.storefront-theme-motion-amber-ice { --store-bg: #eef7fb; --store-text: #263f4c; --store-muted: #637b87; --store-line: #c9dfe9; --store-primary: #28789d; --store-primary-dark: #1b5d7c; --store-price: #3c8db3; --store-header: #f9fdff; --store-shadow: 5px 5px 0 #d4e6ee; --store-radius: 3px; --amber-footer: #e2f2f8; }
.storefront-theme-motion-amber-violet { --store-bg: #f1f1fa; --store-text: #34354c; --store-muted: #70718a; --store-line: #d3d3e8; --store-primary: #5559a7; --store-primary-dark: #3f4385; --store-price: #745db6; --store-header: #fbfbff; --store-shadow: 5px 5px 0 #ddddef; --store-radius: 3px; --amber-footer: #e9e7f8; }
.storefront-page[class*="storefront-theme-motion-amber-"] .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.storefront-page[class*="storefront-theme-motion-amber-"] .site-nav a,
.storefront-page[class*="storefront-theme-motion-amber-"] .site-nav .nav-link-button { animation: storefront-nav-pulse 2.2s ease-in-out infinite; }
.storefront-page[class*="storefront-theme-motion-amber-"] .site-nav :nth-child(2n) { animation-delay: -1.1s; }
.storefront-page[class*="storefront-theme-motion-amber-"] .product-card { animation: storefront-shadow-breathe 3.2s ease-in-out infinite; }
.storefront-page[class*="storefront-theme-motion-amber-"] .product-card:nth-child(even) { animation-delay: -1.6s; }
.storefront-page[class*="storefront-theme-motion-amber-"] .product-card-footer { background: var(--amber-footer); }

.storefront-theme-motion-violet { --store-bg: #f4f1f8; --store-text: #352f45; --store-muted: #716a80; --store-line: #d9d1e5; --store-primary: #6350a5; --store-primary-dark: #493b82; --store-price: #b83f74; --store-header: #fff; --store-shadow: 0 9px 22px rgba(84, 68, 135, .09); --store-radius: 8px; }
.storefront-theme-motion-violet .merchant-store-heading { padding-left: 18px; border-left: 5px solid #b83f74; animation: storefront-heading-float 2.8s ease-in-out infinite; }
.storefront-theme-motion-violet .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.storefront-theme-motion-violet .product-card:nth-child(odd) { border-top: 3px solid #6350a5; animation: storefront-card-float 3.4s ease-in-out infinite; }
.storefront-theme-motion-violet .product-card:nth-child(even) { border-top: 3px solid #b83f74; animation: storefront-card-float 3.4s ease-in-out -1.7s infinite; }

.storefront-theme-motion-cyan { --store-bg: #edf9fb; --store-text: #203c47; --store-muted: #617983; --store-line: #c5e0e8; --store-primary: #087f96; --store-primary-dark: #056477; --store-price: #d44753; --store-header: #cdeff4; --store-shadow: 0 8px 18px rgba(16, 100, 123, .07); --store-radius: 5px; }
.storefront-theme-motion-cyan .brand-mark { background: #d44753; }
.storefront-theme-motion-cyan .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.storefront-theme-motion-cyan .product-card { animation: storefront-panel-wave 2.7s ease-in-out infinite; }
.storefront-theme-motion-cyan .product-card:nth-child(even) { animation-delay: -1.35s; }
.storefront-theme-motion-cyan .activity-panel { border-left: 4px solid #087f96; animation: storefront-panel-wave 2.7s ease-in-out infinite; }
.storefront-theme-motion-cyan .activity-panel:nth-child(even) { animation-delay: -1.35s; }

.storefront-theme-motion-cyan-rose { --store-bg: #fff1f5; --store-text: #4a303a; --store-muted: #806872; --store-line: #eccbd7; --store-primary: #b63f69; --store-primary-dark: #8d2c4f; --store-price: #c58724; --store-header: #f8dce6; --store-shadow: 0 8px 18px rgba(165, 51, 91, .09); --store-radius: 5px; }
.storefront-theme-motion-cyan-coral { --store-bg: #fff2ed; --store-text: #49332e; --store-muted: #806c65; --store-line: #edcec3; --store-primary: #c95643; --store-primary-dark: #9d3e30; --store-price: #167a73; --store-header: #f8dcd2; --store-shadow: 0 8px 18px rgba(167, 69, 52, .09); --store-radius: 5px; }
.storefront-theme-motion-cyan-champagne { --store-bg: #fff8ea; --store-text: #493e2d; --store-muted: #7e725e; --store-line: #ead9b7; --store-primary: #a87420; --store-primary-dark: #805614; --store-price: #b75260; --store-header: #f7e9c9; --store-shadow: 0 8px 18px rgba(139, 98, 29, .09); --store-radius: 5px; }
.storefront-theme-motion-cyan-peach { --store-bg: #fff3ee; --store-text: #4b3530; --store-muted: #816c66; --store-line: #efcfc5; --store-primary: #cf6858; --store-primary-dark: #a24d40; --store-price: #92506f; --store-header: #f9ded4; --store-shadow: 0 8px 18px rgba(177, 82, 68, .09); --store-radius: 5px; }
.storefront-theme-motion-cyan-glacier { --store-bg: #eef8fc; --store-text: #263f4c; --store-muted: #627b87; --store-line: #c8e0eb; --store-primary: #237ca6; --store-primary-dark: #195f81; --store-price: #4869ba; --store-header: #d6edf6; --store-shadow: 0 8px 18px rgba(31, 112, 151, .09); --store-radius: 5px; }
.storefront-theme-motion-cyan-aurora { --store-bg: #edf9f7; --store-text: #253f3d; --store-muted: #627c79; --store-line: #c5e2dd; --store-primary: #15877d; --store-primary-dark: #0d675f; --store-price: #6d55ad; --store-header: #d2eee9; --store-shadow: 0 8px 18px rgba(18, 120, 110, .09); --store-radius: 5px; }
.storefront-page[class*="storefront-theme-motion-cyan-"] .brand-mark { background: var(--store-price); }
.storefront-page[class*="storefront-theme-motion-cyan-"] .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.storefront-page[class*="storefront-theme-motion-cyan-"] .product-card { animation: storefront-panel-wave 2.7s ease-in-out infinite; }
.storefront-page[class*="storefront-theme-motion-cyan-"] .product-card:nth-child(even) { animation-delay: -1.35s; }
.storefront-page[class*="storefront-theme-motion-cyan-"] .activity-panel { border-left: 4px solid var(--store-primary); animation: storefront-panel-wave 2.7s ease-in-out infinite; }
.storefront-page[class*="storefront-theme-motion-cyan-"] .activity-panel:nth-child(even) { animation-delay: -1.35s; }

.storefront-theme-motion-navy { color-scheme: dark; --store-bg: #121c2d; --store-surface: #1e2b43; --store-text: #f2f6f8; --store-muted: #b3c0cd; --store-line: #374963; --store-primary: #5fc2c8; --store-primary-dark: #43a5ab; --store-price: #ffd05c; --store-header: #172238; --store-header-text: #f2f6f8; --store-nav-hover-text: #11282b; --store-shadow: 0 10px 24px rgba(0, 0, 0, .22); --store-radius: 6px; }
.storefront-theme-motion-navy .site-header { animation: storefront-header-pulse 2.5s ease-in-out infinite; }
.storefront-theme-motion-navy .btn-primary { color: #11282b; }
.storefront-theme-motion-navy .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.storefront-theme-motion-navy .product-card { animation: storefront-dark-glow 3s ease-in-out infinite; }
.storefront-theme-motion-navy .product-card:nth-child(even) { animation-delay: -1.5s; }
.storefront-theme-motion-navy .product-card-footer { background: #172238; }
.storefront-theme-motion-navy .purchase-agreement-content { color-scheme: light; }

.storefront-theme-motion-ruby { --store-bg: #f6eef1; --store-text: #403239; --store-muted: #786b71; --store-line: #e2ccd5; --store-primary: #a4294c; --store-primary-dark: #7c1d39; --store-price: #0c7489; --store-header: #fff; --store-shadow: 0 8px 21px rgba(125, 51, 76, .08); --store-radius: 5px; }
.storefront-theme-motion-ruby .brand-mark { background: #0c7489; }
.storefront-theme-motion-ruby .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.storefront-theme-motion-ruby .product-card { border-left: 4px solid #a4294c; animation: storefront-panel-wave 3.1s ease-in-out infinite; }
.storefront-theme-motion-ruby .product-card:nth-child(even) { animation-delay: -1.55s; }
.storefront-theme-motion-ruby .btn-primary { animation: storefront-button-slide 2.1s ease-in-out infinite; }

.storefront-theme-motion-lime { color-scheme: dark; --store-bg: #292638; --store-surface: #373247; --store-text: #f5f3f7; --store-muted: #c2bbc9; --store-line: #50495f; --store-primary: #9cbd35; --store-primary-dark: #819f28; --store-price: #efb55f; --store-header: #201e2c; --store-header-text: #f5f3f7; --store-nav-hover-text: #202616; --store-shadow: 0 10px 24px rgba(17, 15, 26, .25); --store-radius: 6px; }
.storefront-theme-motion-lime .brand-mark { background: #9cbd35; color: #202616; }
.storefront-theme-motion-lime .btn-primary { color: #202616; }
.storefront-theme-motion-lime .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.storefront-theme-motion-lime .product-card-footer { background: #302c40; }
.storefront-theme-motion-lime .product-card { animation: storefront-dark-glow 3.2s ease-in-out infinite; }
.storefront-theme-motion-lime .product-card:nth-child(even) { animation-delay: -1.6s; }
.storefront-theme-motion-lime .product-card-footer strong { display: inline-block; animation: storefront-price-hop 1.8s ease-in-out infinite; }
.storefront-theme-motion-lime .product-card:nth-child(even) .product-card-footer strong { animation-delay: -.9s; }
.storefront-theme-motion-lime .purchase-agreement-content { color-scheme: light; }

.storefront-theme-motion-slate { --store-bg: #eef1f3; --store-text: #263746; --store-muted: #687783; --store-line: #cbd3d9; --store-primary: #2b516e; --store-primary-dark: #1c3c55; --store-price: #b3444f; --store-header: #dfe5e9; --store-shadow: none; --store-radius: 2px; }
.storefront-theme-motion-slate .brand-mark { border-radius: 2px; background: #2b516e; }
.storefront-theme-motion-slate .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.storefront-theme-motion-slate .product-card { border-width: 2px; animation: storefront-border-flash 2.2s ease-in-out infinite; will-change: border-color, box-shadow; }
.storefront-theme-motion-slate .product-card:nth-child(2n) { animation-delay: -1.1s; }
.storefront-theme-motion-slate .product-card-footer { background: #e5e9ec; }

/* Six color-only variants retain the exact motion-slate structure and animation. */
.storefront-theme-motion-slate-ice { --store-bg: #eef6fb; --store-text: #263e52; --store-muted: #647d90; --store-line: #bdd5e5; --store-primary: #2d78a5; --store-primary-dark: #1f5e84; --store-price: #a13f68; --store-header: #dcecf6; --store-shadow: none; --store-radius: 2px; --store-footer: #e6f1f7; --store-pulse-soft: rgba(45, 120, 165, .17); --store-pulse-shadow: rgba(45, 120, 165, .22); }
.storefront-theme-motion-slate-aurora { --store-bg: #edf8f7; --store-text: #203f3e; --store-muted: #607e7b; --store-line: #bfded9; --store-primary: #168679; --store-primary-dark: #0e685e; --store-price: #6a4fa3; --store-header: #d8efeb; --store-shadow: none; --store-radius: 2px; --store-footer: #e3f4f1; --store-pulse-soft: rgba(22, 134, 121, .17); --store-pulse-shadow: rgba(22, 134, 121, .22); }
.storefront-theme-motion-slate-moon { --store-bg: #f2f0f8; --store-text: #38354b; --store-muted: #746f88; --store-line: #d2cce4; --store-primary: #66549a; --store-primary-dark: #4c3c7c; --store-price: #b5426f; --store-header: #e5e0f1; --store-shadow: none; --store-radius: 2px; --store-footer: #ebe7f4; --store-pulse-soft: rgba(102, 84, 154, .17); --store-pulse-shadow: rgba(102, 84, 154, .22); }
.storefront-theme-motion-slate-rose { --store-bg: #fbf0f3; --store-text: #4c333d; --store-muted: #816b74; --store-line: #e6c6d2; --store-primary: #ad4167; --store-primary-dark: #87304f; --store-price: #9a6a18; --store-header: #f1dbe3; --store-shadow: none; --store-radius: 2px; --store-footer: #f6e4ea; --store-pulse-soft: rgba(173, 65, 103, .17); --store-pulse-shadow: rgba(173, 65, 103, .22); }
.storefront-theme-motion-slate-amber { --store-bg: #fff5e9; --store-text: #4b3a2d; --store-muted: #806e5f; --store-line: #ead0ac; --store-primary: #bd691c; --store-primary-dark: #914c11; --store-price: #a33f4d; --store-header: #f6e1c7; --store-shadow: none; --store-radius: 2px; --store-footer: #faead5; --store-pulse-soft: rgba(189, 105, 28, .17); --store-pulse-shadow: rgba(189, 105, 28, .22); }
.storefront-theme-motion-slate-peach { --store-bg: #fff1ed; --store-text: #4d3734; --store-muted: #826d68; --store-line: #edc9c0; --store-primary: #cf5e55; --store-primary-dark: #a7453e; --store-price: #167a77; --store-header: #f7dcd5; --store-shadow: none; --store-radius: 2px; --store-footer: #fae5df; --store-pulse-soft: rgba(207, 94, 85, .17); --store-pulse-shadow: rgba(207, 94, 85, .22); }
.storefront-page[class*="storefront-theme-motion-slate-"] .brand-mark { border-radius: 2px; background: var(--store-primary); }
.storefront-page[class*="storefront-theme-motion-slate-"] .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.storefront-page[class*="storefront-theme-motion-slate-"] .product-card { border-width: 2px; animation: storefront-border-flash 2.2s ease-in-out infinite; will-change: border-color, box-shadow; }
.storefront-page[class*="storefront-theme-motion-slate-"] .product-card:nth-child(2n) { animation-delay: -1.1s; }
.storefront-page[class*="storefront-theme-motion-slate-"] .product-card-footer { background: var(--store-footer); }

@keyframes storefront-sheen-sweep { 0%, 16% { transform: skewX(-18deg) translateX(-260%); opacity: 0; } 28% { opacity: .9; } 64%, 100% { transform: skewX(-18deg) translateX(760%); opacity: 0; } }
@keyframes storefront-shadow-breathe { 0%, 100% { transform: scale(1); box-shadow: 0 6px 16px rgba(22, 91, 88, .08); } 50% { transform: scale(var(--motion-breathe-scale)); box-shadow: 0 var(--motion-breathe-shadow-y) var(--motion-breathe-shadow-blur) rgba(22, 91, 88, .28); } }
@keyframes storefront-card-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(var(--motion-float-y)) rotate(var(--motion-float-rotate)); } }
@keyframes storefront-brand-tilt { 0%, 100% { transform: rotate(var(--motion-brand-rotate-start)) scale(var(--motion-brand-scale-start)); } 50% { transform: rotate(var(--motion-brand-rotate-end)) scale(var(--motion-brand-scale-end)); } }
@keyframes storefront-nav-pulse { 0%, 100% { transform: translateY(0); border-color: var(--store-line); background: var(--store-surface); color: var(--store-text); } 50% { transform: translateY(var(--motion-nav-y)); border-color: var(--store-primary); background: var(--store-primary); color: #fff; box-shadow: 0 7px 16px rgba(56, 72, 87, .24); } }
@keyframes storefront-heading-float { 0%, 100% { transform: translateY(0); opacity: .9; } 50% { transform: translateY(var(--motion-heading-y)); opacity: 1; } }
@keyframes storefront-panel-wave { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(var(--motion-panel-x), var(--motion-panel-y), 0) scale(var(--motion-panel-scale)); } }
@keyframes storefront-header-pulse { 0%, 100% { box-shadow: 0 1px 0 rgba(95, 194, 200, .12); filter: brightness(1); } 50% { box-shadow: 0 var(--motion-header-shadow-y) var(--motion-header-shadow-blur) rgba(95, 194, 200, .45); filter: brightness(var(--motion-header-brightness)); } }
@keyframes storefront-button-slide { 0%, 100% { transform: translateX(var(--motion-button-start-x)) scale(var(--motion-button-start-scale)); } 50% { transform: translateX(var(--motion-button-end-x)) scale(var(--motion-button-end-scale)); box-shadow: 0 8px 18px rgba(164, 41, 76, .30); } }
@keyframes storefront-price-hop { 0%, 100% { transform: translateY(2px) scale(var(--motion-price-start-scale)); } 50% { transform: translateY(var(--motion-price-y)) scale(var(--motion-price-end-scale)); text-shadow: 0 6px 14px rgba(239, 181, 95, .32); } }
@keyframes storefront-border-flash { 0%, 100% { border-color: var(--store-line); box-shadow: none; } 50% { border-color: var(--store-primary); box-shadow: 0 0 0 var(--motion-border-ring) var(--store-pulse-soft, rgba(43, 81, 110, .16)), 0 var(--motion-border-shadow-y) var(--motion-border-shadow-blur) var(--store-pulse-shadow, rgba(43, 81, 110, .18)); } }
@keyframes storefront-dark-glow { 0%, 100% { transform: scale(1); box-shadow: 0 9px 22px rgba(0, 0, 0, .22); } 50% { transform: scale(var(--motion-dark-scale)); box-shadow: 0 0 0 var(--motion-dark-ring) rgba(95, 194, 200, .20), 0 var(--motion-dark-shadow-y) var(--motion-dark-shadow-blur) rgba(95, 194, 200, .28); } }

@media (prefers-reduced-motion: reduce) {
  [data-theme-preview^="motion-"] .storefront-theme-preview i,
  .storefront-page[class*="storefront-theme-motion-"] .site-header,
  .storefront-page[class*="storefront-theme-motion-"] .brand-mark,
  .storefront-page[class*="storefront-theme-motion-"] .site-nav a,
  .storefront-page[class*="storefront-theme-motion-"] .site-nav .nav-link-button,
  .storefront-page[class*="storefront-theme-motion-"] .merchant-store-heading,
  .storefront-page[class*="storefront-theme-motion-"] .product-card,
  .storefront-page[class*="storefront-theme-motion-"] .product-card::after,
  .storefront-page[class*="storefront-theme-motion-"] .product-card-footer strong,
  .storefront-page[class*="storefront-theme-motion-"] .activity-panel,
  .storefront-page[class*="storefront-theme-motion-"] .btn-primary { animation: none !important; transform: none !important; }
}

@media (max-width: 980px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-columns { grid-template-columns: 1fr; }
  .orders-filter-bar, .merchant-orders-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .purchase-limit-grid { grid-template-columns: 1fr; }
  .purchase-limit-secondary-actions { align-items: stretch; flex-direction: column; }
  .purchase-limit-secondary-actions .btn { width: 100%; }
  .merchant-users-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .portal-hero { min-height: 0; margin: -20px -16px 34px; padding: 46px 30px 40px; grid-template-columns: 1fr; gap: 34px; }
  .portal-hero h1 { font-size: 32px; }
  .portal-lead { font-size: 16px; }
  .portal-visual { min-height: 240px; }
  .portal-info { grid-template-columns: 1fr; }
  .portal-info article { min-height: 0; padding: 24px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .portal-info article:last-child { border-bottom: 0; }
  .admin-layout { display: block; }
  .admin-sidebar { position: static; width: auto; padding: 8px 12px; overflow-x: auto; }
  .admin-sidebar nav { display: flex; min-width: max-content; }
  .admin-sidebar a { min-height: 38px; }
  .admin-main { padding: 22px 16px 42px; }
  .form-grid, .filter-bar { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
  .after-sales-admin-heading { align-items: stretch; flex-direction: column; }
  .after-sales-admin-heading .btn { width: 100%; }
  .danger-zone { align-items: start; flex-direction: column; }
  .record-cleanup-actions, .date-delete-form { width: 100%; align-items: stretch; flex-direction: column; }
  .date-delete-form label { width: 100%; align-items: stretch; flex-direction: column; }
  .date-delete-form input, .record-cleanup-actions .btn { width: 100%; }
  .catalog-section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .platform-catalog-heading, .merchant-store-heading { align-items: start; }
  .category-tabs { width: 100%; }
  .merchant-site-row { align-items: stretch; flex-direction: column; gap: 18px; }
  .merchant-site-actions { width: 100%; }
  .merchant-site-actions { flex-wrap: wrap; }
  .merchant-site-actions .btn, .merchant-site-actions form { flex: 1 1 130px; }
  .merchant-site-actions form .btn { width: 100%; }
  .directory-sync-band, .merchant-user-batch-toolbar, .admin-user-batch-toolbar { align-items: stretch; flex-direction: column; }
  .directory-sync-band form .btn { width: 100%; }
  .directory-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-stat-strip span { border-bottom: 1px solid var(--line); }
  .directory-stat-strip span:nth-child(2n) { border-right: 0; }
  .directory-stat-strip span:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .merchant-user-batch-toolbar .inline-actions, .admin-user-batch-toolbar .inline-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .merchant-user-batch-toolbar .btn, .admin-user-batch-toolbar .btn { width: 100%; }
  .platform-enjoy-actions { align-items: stretch; flex-direction: column; }
  .platform-enjoy-actions .inline-actions { display: grid; grid-template-columns: 1fr; }
  .platform-enjoy-actions .btn { width: 100%; }
  .activity-grid { grid-template-columns: 1fr; }
  .storefront-theme-picker { grid-template-columns: 1fr; }
  .pagination-bar { align-items: stretch; flex-direction: column; }
  .pagination { justify-content: flex-start; }
  .ranking-page-heading { align-items: stretch; flex-direction: column; gap: 12px; }
  .ranking-filter-bar { width: 100%; grid-template-columns: minmax(0, 1fr) auto; }
}

@media (max-width: 560px) {
  .portal-hero { padding-left: 22px; padding-right: 22px; }
  .portal-actions { align-items: stretch; flex-direction: column; }
  .portal-actions .btn, .portal-text-action { width: 100%; }
  .portal-text-action { justify-content: center; }
  .portal-visual-shell { box-shadow: 11px 12px 0 #e9f2fb; }
  .page-heading-actions { width: 100%; justify-content: stretch; }
  .page-heading-actions .btn { flex: 1 1 140px; }
  .activity-product-import-section > .section-heading { align-items: stretch; flex-direction: column; }
  .activity-product-import-section > .section-heading .btn { width: 100%; }
  .activity-import-notice { align-items: stretch; flex-direction: column; }
  .activity-import-notice .btn { width: 100%; }
  .activity-product-managed-row { grid-template-columns: 1fr; align-items: stretch; gap: 12px; }
  .activity-product-interval-form { grid-template-columns: 1fr; }
  .activity-product-interval-form .btn, .activity-product-remove-form .btn { width: 100%; }
  .activity-featured-product-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px 10px; }
  .activity-featured-product-meta { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .activity-featured-product-meta > small { max-width: none; }
  .activity-product-countdown { white-space: normal; }
  .activity-featured-product-row > .btn,
  .activity-featured-product-row > .activity-product-waiting { grid-column: 2; grid-row: 1; }
  .activity-card-toolbar { align-items: stretch; flex-direction: column; }
  .activity-card-toolbar .btn { width: 100%; }
}

@media (max-width: 800px) {
  .storefront-theme-jade-gold .product-grid,
  .storefront-theme-minimal-mono .product-grid,
  .storefront-theme-sky-violet .product-grid,
  .storefront-theme-pearl-lace .product-grid,
  .storefront-theme-rose-champagne .product-grid,
  .storefront-theme-midnight-glam .product-grid,
  .storefront-theme-sakura-girl .product-grid,
  .storefront-theme-moonlit-silver .product-grid,
  .storefront-theme-motion-forest .product-grid,
  .storefront-theme-motion-amber .product-grid,
  .storefront-page[class*="storefront-theme-motion-amber-"] .product-grid,
  .storefront-theme-motion-cyan .product-grid,
  .storefront-page[class*="storefront-theme-motion-cyan-"] .product-grid,
  .storefront-theme-motion-navy .product-grid,
  .storefront-theme-motion-lime .product-grid,
  .storefront-theme-motion-slate .product-grid,
  .storefront-page[class*="storefront-theme-motion-slate-"] .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .storefront-page .product-grid,
  .storefront-theme-graphite-red .product-grid,
  .storefront-theme-jade-gold .product-grid,
  .storefront-theme-ocean-coral .product-grid,
  .storefront-theme-sunny-ink .product-grid,
  .storefront-theme-minimal-mono .product-grid,
  .storefront-theme-cherry-mint .product-grid,
  .storefront-theme-sky-violet .product-grid,
  .storefront-theme-romance-blush .product-grid,
  .storefront-theme-pearl-lace .product-grid,
  .storefront-theme-rose-champagne .product-grid,
  .storefront-theme-lavender-dream .product-grid,
  .storefront-theme-strawberry-milk .product-grid,
  .storefront-theme-midnight-glam .product-grid,
  .storefront-theme-sakura-girl .product-grid,
  .storefront-theme-velvet-wine .product-grid,
  .storefront-theme-moonlit-silver .product-grid,
  .storefront-theme-peach-muse .product-grid,
  .storefront-theme-motion-teal .product-grid,
  .storefront-theme-motion-coral .product-grid,
  .storefront-theme-motion-forest .product-grid,
  .storefront-theme-motion-amber .product-grid,
  .storefront-page[class*="storefront-theme-motion-amber-"] .product-grid,
  .storefront-theme-motion-violet .product-grid,
  .storefront-theme-motion-cyan .product-grid,
  .storefront-page[class*="storefront-theme-motion-cyan-"] .product-grid,
  .storefront-theme-motion-navy .product-grid,
  .storefront-theme-motion-ruby .product-grid,
  .storefront-theme-motion-lime .product-grid,
  .storefront-theme-motion-slate .product-grid,
  .storefront-page[class*="storefront-theme-motion-slate-"] .product-grid { grid-template-columns: 1fr; }
  .storefront-theme-minimal-mono .product-grid { border-right: 1px solid #111; }
}
.payment-risk-dialog {
  border: 2px solid #dc2626;
  text-align: center;
  box-shadow: 0 24px 70px rgba(127, 29, 29, .35);
}

.payment-risk-dialog h2 { color: #991b1b; }

.payment-risk-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: #fff;
  background: #dc2626;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
}

.activity-claim-form { margin-top: 16px; }
.activity-countdown { min-width: 205px; text-align: right; font-variant-numeric: tabular-nums; }
.activity-ready-label { color: var(--success) !important; }
.form-help { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.danger-text { color: var(--danger); }
.alipay-risk-user-row { background: #fff1f2; }
.alipay-risk-user-row:hover { background: #ffe4e6; }
.user-status-color-panel { padding-bottom: 17px; }
.user-status-color-form { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.user-status-color-control { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.user-status-color-control input[type="color"] { width: 38px; height: 38px; flex: 0 0 38px; padding: 3px; border-radius: 5px; cursor: pointer; }
.user-status-color-control span { display: grid; gap: 2px; }
.user-status-color-control strong { color: #34404b; font-size: 13px; }
.user-status-color-control small { color: var(--muted); font-size: 11px; }
.user-status-color-form .btn { margin-left: auto; }
.user-status-color-row > td { transition: none; }
.user-status-custom { border: 1px solid currentColor; }
.alipay-risk-admin-panel { border-color: #fecaca; }
.customer-ip-section { margin-top: 22px; }
.customer-ip-table { min-width: 1380px; }
.customer-ip-table th, .customer-ip-table td { vertical-align: top; }
.customer-ip-table td:nth-child(1) { min-width: 180px; }
.customer-ip-table td:nth-child(8) { min-width: 130px; }
.ip-detection-notice { margin: 0 0 14px; padding: 12px 14px; border-left: 3px solid #d97706; background: #fff7ed; color: #7c4a12; font-size: 13px; line-height: 1.7; }
.download-site-heading { align-items: flex-start; }
.download-site-table { min-width: 1050px; }
.download-site-error { max-width: 360px; margin: 7px 0 0; color: var(--danger); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.download-site-form-section { max-width: 980px; }
.download-site-test-panel { max-width: 1180px; }
.download-account-section { margin-top: 22px; }
.download-account-empty { margin: 16px 0 0; }
.download-account-card { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.download-account-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.download-account-heading h3 { margin: 2px 0 7px; font-size: 19px; }
.download-account-heading .table-link { display: inline-block; margin-top: 4px; }
.download-account-enjoy-form { margin-top: 18px; }
.download-account-details { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 15px; }
.download-account-subheading { margin-top: 22px; }
.download-account-subheading h3 { font-size: 15px; }
.download-account-section-heading { align-items: flex-start; }
.download-account-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.download-account-actions form { margin: 0; }
.download-sync-toggle { min-height: 42px; padding: 7px 11px; display: grid; grid-template-columns: 40px auto; grid-template-rows: auto auto; column-gap: 9px; align-items: center; border: 1px solid #cdd4da; border-radius: 6px; background: #fff; color: #4b5863; cursor: pointer; text-align: left; }
.download-sync-toggle-track { width: 40px; height: 22px; grid-row: 1 / 3; padding: 2px; display: block; border-radius: 999px; background: #c8d0d7; transition: background .18s ease; }
.download-sync-toggle-track span { width: 18px; height: 18px; display: block; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(17, 27, 36, .2); transition: transform .18s ease; }
.download-sync-toggle strong { font-size: 13px; line-height: 1.2; }
.download-sync-toggle small { color: var(--muted); font-size: 11px; line-height: 1.2; }
.download-sync-toggle.is-on { border-color: #8ac8a2; color: #176b38; }
.download-sync-toggle.is-on .download-sync-toggle-track { background: #23a455; }
.download-sync-toggle.is-on .download-sync-toggle-track span { transform: translateX(18px); }
.download-sync-state { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.download-sync-state.is-live { color: #17713b; }
.download-sync-state.is-error { color: var(--danger); }
.download-history-title-button { padding: 0; border: 0; background: transparent; color: var(--primary-dark); cursor: pointer; font: inherit; font-size: 15px; font-weight: 800; }
.download-history-title-button:hover { color: var(--primary); }
.download-history-summary { min-height: 42px; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 13px; }
.download-history-summary .table-link { padding: 0; border: 0; background: transparent; cursor: pointer; }
.consumption-history-modal { z-index: 140; }
.consumption-history-dialog { width: min(100%, 1180px); max-height: calc(100vh - 40px); display: flex; flex-direction: column; overflow: hidden; }
.consumption-history-table-wrap { margin-top: 18px; overflow: auto; border: 1px solid var(--line); }
.consumption-history-table-wrap .data-table { min-width: 760px; }
.consumption-history-pagination { flex: 0 0 auto; }
.pagination button { min-width: 36px; min-height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #cdd4da; border-radius: 5px; background: #fff; color: #44515c; cursor: pointer; font-size: 13px; font-weight: 700; }
.pagination button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary-dark); }
.pagination button.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.pagination button:disabled { background: #f5f6f7; color: #a1a9b0; cursor: default; }
.user-status-stack { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.merchant-login-verification-page { max-width: 1040px; }
.login-entry-policy + .login-entry-policy { margin-top: 24px; padding-top: 24px; border-top: 2px solid var(--line); }
.login-verification-mode-options { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.login-verification-mode-options .setting-toggle { min-height: 96px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.login-verification-mode-options .setting-toggle:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(28, 117, 188, .12); }
.login-verification-custom-settings { transition: opacity .16s ease; }
.login-verification-custom-settings.is-inactive { opacity: .58; }
.login-verification-custom-settings.is-inactive .setting-toggle { cursor: default; }

/* Order complaints */
.complaint-page,
.complaint-detail-page,
.merchant-complaints-page { display: grid; gap: 20px; }
.complaint-page-heading p,
.complaint-detail-heading p { margin: 7px 0 0; color: var(--muted); max-width: 760px; line-height: 1.7; }
.complaint-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.complaint-tabs a { padding: 11px 16px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; font-weight: 700; }
.complaint-tabs a:hover,
.complaint-tabs a:focus-visible { color: var(--ink); border-bottom-color: #16785d; }
.complaint-instructions { margin: 0 0 18px; padding: 13px 15px; border-left: 3px solid #d59a1d; background: #fff8e8; color: #5d4a1d; line-height: 1.75; }
.complaint-empty { padding: 28px 16px; }
.complaint-form input[readonly] { background: #f5f7f8; color: var(--muted); }
.complaint-filter-bar { grid-template-columns: minmax(260px, 1.4fr) minmax(150px, .7fr) minmax(130px, .55fr) auto; }
.admin-complaint-filter-bar { grid-template-columns: minmax(260px, 1.4fr) minmax(150px, .65fr) minmax(180px, .8fr) minmax(130px, .55fr) auto; }
.complaint-table { min-width: 1040px; }
.merchant-complaint-table { min-width: 1320px; }
.admin-complaint-table { min-width: 1660px; }
.complaint-admin-tools { margin-bottom: 18px; }
.complaint-admin-tools-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.complaint-color-control { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.complaint-color-control input[type="color"] { width: 54px; height: 38px; padding: 2px; cursor: pointer; }
.complaint-color-control code { color: var(--muted); }
.admin-complaint-batch-form { margin: 14px 0; }
.admin-complaint-table th:first-child,
.admin-complaint-table td:first-child { width: 44px; text-align: center; }
.admin-complaint-table input[type="checkbox"] { width: 18px; height: 18px; }
.complaint-sms-status { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.complaint-sms-sent { background: #e8f7f1; color: #0d6b4f; }
.complaint-sms-failed { background: #fff0ef; color: #b53932; }
.complaint-sms-not_sent { background: #eef1f3; color: #5c6870; }
.complaint-setting-panel { padding: 18px 0 4px; border-top: 1px solid var(--line); }
.complaint-setting-panel > .section-heading { margin-bottom: 14px; }
.complaint-deadline { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 16px; border: 1px solid #ead39b; background: #fff9e9; color: #5b491c; }
.complaint-deadline strong { color: #a34f0b; font-variant-numeric: tabular-nums; white-space: nowrap; }
.complaint-order-summary { align-items: stretch; }
.complaint-order-card-action { display: flex; align-items: center; min-height: 45px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.complaint-card-button { box-shadow: none; }
.complaint-card-button:hover { filter: brightness(.94); }
.complaint-card-modal .site-modal-dialog { max-width: 640px; }
.complaint-card-modal .site-modal-heading { align-items: flex-start; }
.complaint-card-delivery { align-items: stretch; margin-top: 18px; }
.complaint-card-delivery code { display: block; flex: 1; min-width: 0; max-height: 320px; padding: 15px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.complaint-card-delivery .copy-secret-button { align-self: stretch; min-width: 72px; }
.complaint-thread-section { min-width: 0; }
.complaint-timeline { position: relative; display: grid; gap: 0; margin-top: 16px; }
.complaint-timeline::before { content: ''; position: absolute; top: 22px; bottom: 22px; left: 19px; width: 2px; background: #dce2e5; }
.complaint-message { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 0 0 22px; }
.complaint-message:last-child { padding-bottom: 0; }
.complaint-message-marker { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid #fff; border-radius: 50%; background: #65727a; color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 0 0 1px #d3dade; }
.complaint-message-customer .complaint-message-marker { background: #2168a6; }
.complaint-message-merchant .complaint-message-marker { background: #14745a; }
.complaint-message-admin .complaint-message-marker { background: #9a4c16; }
.complaint-message-system .complaint-message-marker { background: #68737a; }
.complaint-message-body { min-width: 0; padding: 12px 14px; border: 1px solid var(--line); background: #fff; }
.complaint-message-body header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.complaint-message-body header span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.complaint-message-copy { color: var(--ink); line-height: 1.75; overflow-wrap: anywhere; }
.complaint-message-system .complaint-message-body { background: #f5f7f8; }
.complaint-attachments { display: grid; grid-template-columns: repeat(3, minmax(0, 180px)); gap: 10px; margin-top: 12px; }
.complaint-attachments a { display: block; border: 1px solid var(--line); background: #f7f8f8; aspect-ratio: 4 / 3; overflow: hidden; }
.complaint-attachments img { display: block; width: 100%; height: 100%; object-fit: contain; }
.complaint-resolution { padding: 16px 18px; border: 1px solid #a7d5c7; border-left: 4px solid #16785d; background: #effaf6; }
.complaint-resolution strong { color: #0d5f48; }
.complaint-resolution p { margin: 8px 0 0; line-height: 1.7; }
.complaint-customer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.complaint-customer-actions form { margin: 0; }
.complaint-close-form { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.complaint-close-form label { display: block; margin-bottom: 12px; }

@media (max-width: 900px) {
  .complaint-filter-bar,
  .admin-complaint-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .complaint-filter-bar .btn,
  .admin-complaint-filter-bar .btn { width: 100%; }
  .complaint-admin-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .complaint-tabs { overflow-x: auto; }
  .complaint-tabs a { white-space: nowrap; }
  .complaint-filter-bar,
  .admin-complaint-filter-bar { grid-template-columns: minmax(0, 1fr); }
  .complaint-deadline,
  .complaint-message-body header { align-items: flex-start; flex-direction: column; gap: 5px; }
  .complaint-deadline strong,
  .complaint-message-body header span { white-space: normal; }
  .complaint-message { grid-template-columns: 32px minmax(0, 1fr); gap: 9px; }
  .complaint-message-marker { width: 32px; height: 32px; font-size: 11px; }
  .complaint-timeline::before { left: 15px; }
  .complaint-attachments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .complaint-customer-actions { align-items: stretch; flex-direction: column; }
  .complaint-customer-actions form,
  .complaint-customer-actions .btn { width: 100%; }
  .complaint-admin-tools-grid { grid-template-columns: minmax(0, 1fr); }
  .complaint-card-delivery { flex-direction: column; }
  .complaint-card-delivery .copy-secret-button { min-height: 42px; }
}
.download-history-table { min-width: 980px; }

@media (max-width: 620px) {
  .activity-panel-heading { flex-direction: column; }
  .activity-countdown { width: 100%; min-width: 0; text-align: left; }
  .activity-featured-product-row { grid-template-columns: minmax(0, 1fr) auto; }
  .activity-featured-product-meta { justify-items: end; }
  .activity-featured-product-row .btn { grid-column: 1 / -1; width: 100%; }
  .user-status-color-form { align-items: stretch; gap: 14px; }
  .user-status-color-control { width: calc(50% - 7px); }
  .user-status-color-form .btn { width: 100%; margin-left: 0; }
  .login-verification-mode-options { grid-template-columns: 1fr; }
  .download-site-heading, .download-account-heading { align-items: stretch; flex-direction: column; }
  .download-account-heading .user-status { align-self: flex-start; }
  .download-account-details { grid-template-columns: 1fr; }
  .download-account-section-heading, .download-account-actions { align-items: stretch; flex-direction: column; }
  .download-account-actions { width: 100%; }
  .download-account-actions form, .download-account-actions .btn, .download-sync-toggle { width: 100%; }
  .download-history-summary, .consumption-history-pagination { align-items: stretch; flex-direction: column; }
  .consumption-history-dialog { max-height: calc(100vh - 24px); padding: 18px 14px; }
}
