/* ==========================================================================
   Admin shell (Merchant + Super Admin). Builds on base.css tokens.
   ========================================================================== */
body.admin { --side-w: 268px; --top-h: 66px; background: var(--bg); }
.shell { min-height: 100vh; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); }

/* ---------- sidebar ---------- */
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--border); z-index: 40; }
.side-brand { display: flex; align-items: center; gap: 12px; height: var(--top-h); padding: 0 20px; border-bottom: 1px solid var(--border); flex: none; }
.logo-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; flex: none;
  background: linear-gradient(135deg, var(--brand), #8a5cf6 60%, var(--accent)); box-shadow: 0 6px 14px -4px rgba(91,75,245,.55), inset 0 1px 0 rgba(255,255,255,.3); }
.side-brand .t { font-weight: 700; font-size: 15px; letter-spacing: -.01em; line-height: 1.2; } .side-brand .s { font-size: 11.5px; color: var(--text-3); }
.side-nav { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; }
.nav-label { padding: 16px 12px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); }
.nav-label:first-child { padding-top: 4px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--text-2); font-weight: 550; font-size: 13.8px; text-decoration: none !important; position: relative; transition: background .12s, color .12s; }
.nav-item:hover { background: var(--muted-bg); color: var(--text); }
.nav-item.active { background: var(--brand-50); color: var(--brand-600); font-weight: 650; }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand); }
.nav-item .count { margin-left: auto; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--brand); color: #fff; }
.nav-item.locked { opacity: .55; } .nav-item .lock { margin-left: auto; width: 14px; height: 14px; color: var(--text-3); }
.side-foot { padding: 12px; border-top: 1px solid var(--border); flex: none; display: flex; flex-direction: column; gap: 10px; }
.plan-card { border-radius: 14px; padding: 14px; background: linear-gradient(135deg, var(--brand-50), color-mix(in srgb, var(--accent) 10%, var(--brand-50))); border: 1px solid var(--brand-100); }
.plan-card .pn { font-weight: 700; font-size: 13.5px; display: flex; justify-content: space-between; align-items: center; } .plan-card .pd { font-size: 12px; color: var(--text-2); margin: 4px 0 10px; }

/* platform = dark sidebar */
body.platform .side { background: linear-gradient(180deg, #0e1330 0%, #0a0d22 100%); border-right-color: #1b2142; color: #aeb5d6; }
body.platform .side-brand { border-bottom-color: #1b2142; } body.platform .side-brand .t { color: #fff; } body.platform .side-brand .s { color: #7c85b0; }
body.platform .nav-item { color: #aab2d4; } body.platform .nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
body.platform .nav-item.active { background: linear-gradient(90deg, rgba(139,125,255,.22), rgba(139,125,255,.06)); color: #fff; } body.platform .nav-item.active::before { background: #8b7dff; }
body.platform .nav-label { color: #5e688f; } body.platform .side-foot { border-top-color: #1b2142; }
body.platform .badge-env { display: inline-block; margin-top: 2px; font-size: 9.5px; font-weight: 800; letter-spacing: .12em; padding: 2px 7px; border-radius: 6px; background: rgba(139,125,255,.2); color: #b9b0ff; }

/* ---------- main ---------- */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 14px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.topbar .burger { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-3); } .crumbs b { color: var(--text); font-weight: 650; } .crumbs a { color: var(--text-3); }
.search { position: relative; margin-left: auto; width: min(340px, 36vw); } .search .i { position: absolute; left: 12px; top: 11px; color: var(--text-3); width: 16px; height: 16px; } .search input { padding-left: 36px; background: var(--surface); height: 38px; border-radius: 10px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.user-menu { position: relative; } .user-menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px; border-radius: 12px; } .user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover { background: var(--muted-bg); } .user-menu .who { text-align: left; line-height: 1.2; } .user-menu .who b { font-size: 13px; display: block; } .user-menu .who span { font-size: 11.5px; color: var(--text-3); }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 50; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 9px; color: var(--text-2); font: 550 13.5px var(--font); background: none; border: 0; cursor: pointer; text-decoration: none !important; text-align: left; } .menu-pop a:hover, .menu-pop button:hover { background: var(--muted-bg); color: var(--text); }
.menu-pop hr { margin: 6px 0; }
.content { padding: 28px; max-width: 1360px; width: 100%; margin: 0 auto; flex: 1; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: 24px; letter-spacing: -.02em; } .page-head p { color: var(--text-3); margin: 4px 0 0; font-size: 14px; }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 18px; margin: 0 28px; border-radius: 12px; font-size: 13.5px; }
.banner-warn { background: var(--warn-bg); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 22%, transparent); } .banner-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 22%, transparent); }
.banner a { font-weight: 700; color: inherit; text-decoration: underline; }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); } } @media (max-width: 560px) { .kpis { grid-template-columns: 1fr; } }
.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.kpi .top { display: flex; align-items: center; justify-content: space-between; } .kpi .lbl { font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.kpi .ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.kpi .ico.green { background: var(--success-bg); color: var(--success); } .kpi .ico.amber { background: var(--warn-bg); color: var(--warn); } .kpi .ico.blue { background: var(--info-bg); color: var(--info); } .kpi .ico.pink { background: var(--danger-bg); color: var(--danger); }
.kpi .val { font-size: 27px; font-weight: 750; letter-spacing: -.025em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .foot { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--text-3); }
.delta { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; font-size: 12px; padding: 2px 8px; border-radius: 99px; } .delta.up { color: var(--success); background: var(--success-bg); } .delta.down { color: var(--danger); background: var(--danger-bg); } .delta.flat { color: var(--text-3); background: var(--muted-bg); }
.kpi .spark { color: var(--brand); opacity: .9; }

.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; } .split-eq { grid-template-columns: repeat(2, minmax(0,1fr)); }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; } @media (max-width: 1100px) { .split, .layout-2, .split-eq { grid-template-columns: 1fr; } }
.sticky-side { position: sticky; top: calc(var(--top-h) + 20px); }

/* ---------- lists / timeline ---------- */
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); } .list-row:last-child { border-bottom: 0; } .list-row .grow b { font-weight: 600; display: block; }
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; font-size: 13.5px; } .dl dt { color: var(--text-3); } .dl dd { margin: 0; font-weight: 550; word-break: break-word; }
.timeline { position: relative; display: flex; flex-direction: column; gap: 18px; padding-left: 26px; } .timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; } .tl-item::before { content: ""; position: absolute; left: -26px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); } .tl-item.ok::before { border-color: var(--success); } .tl-item.bad::before { border-color: var(--danger); }
.tl-item b { font-size: 13.5px; } .tl-item .meta { font-size: 12px; color: var(--text-3); } .tl-item p { margin: 3px 0 0; font-size: 13px; color: var(--text-2); }
.steps { display: flex; align-items: center; gap: 0; } .step { flex: 1; text-align: center; position: relative; font-size: 12px; color: var(--text-3); font-weight: 600; }
.step .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--muted-bg); display: grid; place-items: center; margin: 0 auto 6px; color: var(--text-3); position: relative; z-index: 1; } .step.done .dot, .step.cur .dot { background: var(--brand); color: #fff; } .step.cur { color: var(--text); }
.step::after { content: ""; position: absolute; left: 50%; top: 13px; width: 100%; height: 2px; background: var(--muted-bg); } .step:last-child::after { display: none; } .step.done::after { background: var(--brand); }

/* ---------- toolbar / filters ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--border); } .toolbar .search { margin: 0; width: 280px; max-width: 100%; } .toolbar form { display: contents; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; } .chip { padding: 6px 13px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--border-strong); text-decoration: none !important; } .chip:hover { border-color: var(--brand); color: var(--brand); } .chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- switch ---------- */
.switch { position: relative; width: 42px; height: 24px; flex: none; display: inline-block; } .switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch i { position: absolute; inset: 0; background: var(--border-strong); border-radius: 99px; transition: .2s; } .switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: .2s; }
.switch input:checked + i { background: var(--brand); } .switch input:checked + i::after { transform: translateX(18px); } .switch input:focus-visible + i { box-shadow: var(--ring); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--border); } .setting-row:last-child { border-bottom: 0; } .setting-row b { display: block; font-size: 14px; } .setting-row span.d { font-size: 12.5px; color: var(--text-3); }

/* ---------- product editor ---------- */
.dropzone { border: 2px dashed var(--border-strong); border-radius: 14px; padding: 22px; text-align: center; color: var(--text-3); cursor: pointer; transition: .15s; background: var(--surface-2); } .dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; } .img-tile { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--muted-bg); } .img-tile img { width: 100%; height: 100%; object-fit: cover; }
.img-tile .rm { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 8px; border: 0; background: rgba(15,20,36,.72); color: #fff; cursor: pointer; display: grid; place-items: center; } .img-tile .main { position: absolute; left: 6px; bottom: 6px; font-size: 10.5px; font-weight: 700; background: var(--brand); color: #fff; padding: 2px 8px; border-radius: 99px; }
.var-table input { height: 36px; } .var-table td { padding: 8px 8px; } .var-table th { padding: 10px 8px; }
.sticky-actions { position: sticky; bottom: 0; z-index: 20; margin: 24px -28px -28px; padding: 14px 28px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 18px; } .perm-group { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: 14px 0 6px; grid-column: 1 / -1; }
.matrix td, .matrix th { text-align: center; } .matrix td:first-child, .matrix th:first-child { text-align: left; } .matrix input[type=number] { width: 96px; height: 34px; text-align: right; }
.plan-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.code-block { background: #0d1226; color: #cfd5f5; border-radius: 12px; padding: 14px 16px; font: 500 12.5px/1.6 ui-monospace, Menlo, Consolas, monospace; overflow-x: auto; position: relative; } .code-block .k { color: #8b7dff; }
.copy-field { display: flex; gap: 8px; } .copy-field input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.diff { font: 12px ui-monospace, Menlo, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- login ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--bg); } @media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-art { display: none; } }
.auth-art { position: relative; overflow: hidden; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: radial-gradient(900px 500px at 10% 0%, #6d5bff 0%, transparent 60%), radial-gradient(700px 500px at 100% 100%, #14b8a6 0%, transparent 55%), #14183a; }
.auth-art::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 75%); }
.auth-art > * { position: relative; z-index: 1; } .auth-art h2 { font-size: 36px; line-height: 1.12; letter-spacing: -.03em; max-width: 440px; } .auth-art p { color: rgba(255,255,255,.78); max-width: 420px; font-size: 15.5px; }
.auth-points { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; } .auth-points div { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,.88); } .auth-points .ic { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.14); display: grid; place-items: center; flex: none; }
.auth-form { display: grid; place-items: center; padding: 32px; } .auth-card { width: min(420px, 100%); } .auth-card h1 { font-size: 26px; letter-spacing: -.025em; } .auth-card .sub { color: var(--text-3); margin: 6px 0 24px; }

@media (max-width: 1000px) {
  .shell { grid-template-columns: 1fr; } .side { position: fixed; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  body.nav-open .side { transform: none; } body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(8,10,24,.5); z-index: 35; }
  .topbar .burger { display: inline-flex; } .topbar { padding: 0 16px; } .content { padding: 18px 16px; } .banner { margin: 0 16px; } .search { display: none; }
  .sticky-actions { margin: 20px -16px -18px; padding: 12px 16px; } .page-head h1 { font-size: 21px; }
}

/* storefront template picker */
.tpl-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } @media (max-width: 900px) { .tpl-picker { grid-template-columns: 1fr; } }
.tpl-opt { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 2px solid var(--border); border-radius: 12px; cursor: pointer; position: relative; color: var(--brand, #4f46e5); }
.tpl-opt input { position: absolute; opacity: 0; pointer-events: none; } .tpl-opt svg { width: 100%; height: auto; background: #f6f6f9; border-radius: 8px; }
.tpl-opt b { color: var(--text, inherit); font-size: 15px; } .tpl-opt span { color: var(--text-muted, #667085); font-size: 12.5px; line-height: 1.45; }
.tpl-opt:hover { border-color: color-mix(in srgb, currentColor 45%, var(--border)); } .tpl-opt:has(input:checked) { border-color: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); } .tpl-opt:has(input:focus-visible) { outline: 2px solid currentColor; outline-offset: 2px; }

/* live preview follows the selected template */
#preview .pv-chips { display: none; gap: 8px; padding: 10px 12px 0; background: #fff; } #preview .pv-chips i { width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--p) 22%, #eceef2); }
#preview .pv-grid { display: grid; gap: 8px; padding: 12px; background: #fff; grid-template-columns: repeat(4, 1fr); } #preview .pv-grid div { height: 56px; border-radius: 8px; background: color-mix(in srgb, var(--p) 14%, #f3f3f6); } #preview .pv-grid div:nth-child(even) { background: color-mix(in srgb, var(--a) 20%, #f3f3f6); } #preview .pv-grid div:nth-child(n+5) { display: none; }
#preview .pv-note { padding: 0 12px 10px; background: #fff; }
#preview[data-tpl="standard"] .pv-note::after { content: "Standard: full-width banner, 4-up grid"; }
#preview[data-tpl="boutique"] .pv-note::after { content: "Boutique: centred logo and banner, 3-up grid"; }
#preview[data-tpl="market"] .pv-note::after { content: "Market: compact header, category chips, 5-up grid"; }
/* boutique */
#preview[data-tpl="boutique"] > div:first-child { flex-direction: column; align-items: center; gap: 2px; text-align: center; }
#preview[data-tpl="boutique"] > div:nth-child(2) { text-align: center; padding: 34px 16px; } #preview[data-tpl="boutique"] .pv-grid { grid-template-columns: repeat(3, 1fr); } #preview[data-tpl="boutique"] .pv-grid div { height: 70px; border-radius: 2px; } #preview[data-tpl="boutique"] .pv-grid div:nth-child(n+4) { display: none; }
/* market */
#preview[data-tpl="market"] > div:first-child { padding: 5px 12px !important; font-size: 13px; } #preview[data-tpl="market"] > div:nth-child(2) { padding: 10px 14px !important; } #preview[data-tpl="market"] > div:nth-child(2) > div:nth-child(2) { display: none; } #preview[data-tpl="market"] > div:nth-child(2) > div:first-child { font-size: 15px !important; }
#preview[data-tpl="market"] .pv-chips { display: flex; } #preview[data-tpl="market"] .pv-grid { grid-template-columns: repeat(5, 1fr); gap: 5px; } #preview[data-tpl="market"] .pv-grid div { height: 42px; border-radius: 4px; } #preview[data-tpl="market"] .pv-grid div:nth-child(n+5) { display: block; }

/* colour palettes + preview captions for the extra templates */
.palette-row { display: flex; flex-wrap: wrap; gap: 10px; } .palette { display: inline-flex; padding: 3px; border: 2px solid var(--border); border-radius: 99px; background: transparent; cursor: pointer; } .palette:hover { border-color: var(--brand, #4f46e5); transform: translateY(-1px); } .palette i { width: 26px; height: 26px; display: block; } .palette i:first-child { border-radius: 99px 0 0 99px; } .palette i:last-child { border-radius: 0 99px 99px 0; }
#preview[data-tpl="luxe"] .pv-note::after { content: "Luxe: ivory and gold, serif headings, square corners"; }
#preview[data-tpl="fresh"] .pv-note::after { content: "Fresh: rounded cards, tinted sections, pill navigation"; }
#preview[data-tpl="minimal"] .pv-note::after { content: "Minimal: left-aligned split banner, thin lines"; }
#preview[data-tpl="luxe"] { background: #faf6ef; } #preview[data-tpl="luxe"] > div:nth-child(2) { text-align: center; background: #2a2118 !important; } #preview[data-tpl="luxe"] > div:nth-child(2) > div { color: #f3e3b3 !important; } #preview[data-tpl="luxe"] .pv-grid div { border-radius: 0; } #preview[data-tpl="luxe"] .pv-grid, #preview[data-tpl="luxe"] .pv-note { background: #faf6ef; }
#preview[data-tpl="fresh"] > div:nth-child(2) { margin: 10px; border-radius: 20px; } #preview[data-tpl="fresh"] .pv-grid div { border-radius: 14px; }
#preview[data-tpl="minimal"] > div:first-child { background: #fff !important; color: #111 !important; border-bottom: 1px solid #e5e7eb; } #preview[data-tpl="minimal"] > div:nth-child(2) { background: #f3f4f6 !important; } #preview[data-tpl="minimal"] .pv-grid div { border-radius: 0; background: #eceef2; } #preview[data-tpl="minimal"] .pv-grid div:nth-child(n+4) { display: none; }

/* search result preview */
.serp { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: #fff; color: #202124; font-family: Arial, sans-serif; } .serp-url { font-size: 12px; color: #4d5156; margin-bottom: 2px; } .serp-title { font-size: 19px; line-height: 1.3; color: #1a0dab; margin-bottom: 3px; } .serp-desc { font-size: 13.5px; line-height: 1.5; color: #4d5156; }
#preview[data-tpl="botanical"] .pv-note::after { content: "Botanical: sage and cream, serif headings, arched images"; }
#preview[data-tpl="botanical"] { background: #fbf9f3; } #preview[data-tpl="botanical"] > div:nth-child(2) { text-align: center; } #preview[data-tpl="botanical"] .pv-grid div { border-radius: 40px 40px 6px 6px; } #preview[data-tpl="botanical"] .pv-grid, #preview[data-tpl="botanical"] .pv-note { background: #fbf9f3; }

/* ---- choice cards (signup: billing period, store address) and payment-gateway picker ---- */
.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.choice-card { position: relative; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 2px solid var(--border); border-radius: 14px; background: var(--surface, #fff); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s, background .15s; }
.choice-card:hover { border-color: color-mix(in srgb, var(--brand, #4f46e5) 45%, var(--border)); transform: translateY(-1px); }
.choice-card input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--brand, #4f46e5); background: color-mix(in srgb, var(--brand, #4f46e5) 6%, var(--surface, #fff)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand, #4f46e5) 14%, transparent); }
.choice-card:has(input:checked)::after { content: "✓"; position: absolute; top: 10px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand, #4f46e5); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.choice-card.is-off, .choice-card:has(input:disabled) { opacity: .5; cursor: not-allowed; transform: none; }
.choice-card .cc-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand, #4f46e5) 12%, transparent); color: var(--brand, #4f46e5); }
.choice-card .cc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-right: 26px; }
.choice-card .s { font-size: 12.5px; color: var(--text-muted, #667085); line-height: 1.4; }
.yr-save { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: color-mix(in srgb, #12a05c 14%, transparent); color: #0b7a45; }
.yr-save:empty { display: none; }
.yr-note { margin-top: 2px; font-size: 14px; color: var(--text-muted, #667085); }

.gw-pick-wrap { margin: 0 0 4px; }
.gw-pick-title { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.gw-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .gw-pick { grid-template-columns: 1fr; } }
.gw-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 2px solid var(--border); border-radius: 16px; background: var(--surface, #fff); text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.gw-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand, #4f46e5) 45%, var(--border)); box-shadow: 0 10px 24px -16px rgba(20,22,31,.4); }
.gw-card.on { border-color: var(--brand, #4f46e5); background: color-mix(in srgb, var(--brand, #4f46e5) 6%, var(--surface, #fff)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand, #4f46e5) 14%, transparent); }
.gw-card.on::after { content: "✓"; position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand, #4f46e5); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.gw-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.gw-dot { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800; }
.gw-meta { font-size: 12.5px; color: var(--text-muted, #667085); }
.gw-methods { display: flex; flex-wrap: wrap; gap: 6px; }
.gw-chip { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: color-mix(in srgb, var(--text, #14161f) 7%, transparent); }

/* store logo in the admin sidebar */
.logo-mark.logo-img { background: #fff; border: 1px solid var(--border); overflow: hidden; padding: 0; }
.logo-mark.logo-img img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* the store's own logo as the sidebar brand (wide logos stay wide), copyright footer, branded sign-in */
.side-brand .side-logo-wrap { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.side-logo { height: 36px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; display: block; }
.admin-foot { padding: 22px 24px 28px; font-size: 12.5px; color: var(--text-3); text-align: center; }
.admin-foot a { color: inherit; }
.auth-logo { display: inline-flex; align-items: center; background: #fff; border-radius: 14px; padding: 10px 16px; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.auth-logo img { height: 46px; width: auto; max-width: 240px; object-fit: contain; display: block; }

/* ---- dashboard: period switch, rich KPI cards, charts, legends, store health */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; }
.seg a { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.seg a.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.kpi-rich { position: relative; overflow: hidden; }
.kpi-rich .foot { align-items: center; gap: 8px; flex-wrap: wrap; }
.kpi-rich .foot .muted { font-size: 12.5px; }
.kpi-spark { height: 40px; margin: 12px -4px -2px; opacity: .7; pointer-events: none; }
.kpi-spark.green { color: #10b981; } .kpi-spark.blue { color: #3b82f6; }
.kpi-spark svg { width: 100%; height: 100%; }
.area-chart { width: 100%; height: auto; display: block; overflow: visible; }
.area-chart .grid { stroke: var(--border); stroke-dasharray: 3 4; }
.area-chart .axis { fill: var(--text-3); font-size: 11px; }
.area-chart .dot { fill: var(--surface); stroke: var(--chart-1); stroke-width: 2; opacity: 0; transition: opacity .12s; }
.area-chart .pt:hover .dot { opacity: 1; }
.chart-empty { display: grid; place-items: center; gap: 6px; text-align: center; padding: 56px 16px; color: var(--text-3); }
.chart-empty b { color: var(--text); }
.donut-row { display: flex; align-items: center; gap: 18px; }
.donut { width: 132px; height: 132px; flex: none; }
.donut-n { font-size: 22px; font-weight: 800; fill: var(--text); } .donut-l { font-size: 9px; fill: var(--text-3); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; min-width: 0; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.legend li i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend li span:first-of-type { flex: 1; color: var(--text-2); }
.stackbar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: var(--border); gap: 2px; }
.stackbar span { display: block; min-width: 3px; }
.trunc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.health-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: 14px; }
.health-row:hover { background: var(--surface-2); }
.health-row.ok { color: var(--text); } .health-row.ok svg { color: #10b981; } .health-row:not(.ok) svg { color: #f59e0b; }
.health-row .muted { margin-left: auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } .donut-row { flex-direction: column; align-items: flex-start; } }

.card.fill { display: flex; flex-direction: column; }
.card.fill .card-body { flex: 1; }
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.stat-strip > div { padding: 16px 18px; display: grid; gap: 2px; border-right: 1px solid var(--border); }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip b { font-size: 20px; letter-spacing: -.02em; }
.insight { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; color: var(--text-2); }
.insight svg { color: #f59e0b; flex: none; margin-top: 2px; }
@media (max-width: 760px) { .stat-strip { grid-template-columns: 1fr 1fr; } .stat-strip > div:nth-child(2) { border-right: 0; } }
.split > .card.fill { align-self: stretch; }
.card.fill .card-body { display: flex; align-items: center; }
.card.fill .card-body > svg { width: 100%; }

/* ---- "Customize your website" and dashboard quick actions */
.easy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.easy-wide { grid-column: 1 / -1; }
.easy { scroll-margin-top: 90px; }
.step-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-100, #eef0ff); color: var(--brand, #4f46e5); font-size: 13px; font-weight: 800; margin-right: 8px; }
.easy .btn-primary, .easy .btn { font-size: 14.5px; padding: 10px 16px; }
label.btn { cursor: pointer; } label.btn.is-busy { opacity: .6; pointer-events: none; }
.easy-preview { border: 1px dashed var(--border-strong); border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.easy-preview.logo-prev { height: 120px; } .easy-preview.logo-prev img { max-height: 96px; max-width: 80%; object-fit: contain; }
.easy-preview.banner-prev { height: 170px; } .easy-preview.banner-prev img { width: 100%; height: 100%; object-fit: cover; }
.palette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.swatch { width: 100%; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; font: inherit; color: var(--text); }
.swatch:hover { border-color: var(--brand, #4f46e5); }
.swatch.on { border-color: var(--brand, #4f46e5); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
.swatch span { width: 18px; height: 28px; border-radius: 6px; display: block; } .swatch span + span { margin-left: -10px; }
.swatch em { font-style: normal; font-size: 13px; font-weight: 600; margin-left: 4px; flex: 1; text-align: left; }
.cat-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat-pic { display: grid; gap: 8px; justify-items: start; }
.cat-pic .thumbbox { width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); overflow: hidden; display: grid; place-items: center; font-weight: 800; font-size: 24px; color: var(--text-3); }
.cat-pic .thumbbox img { width: 100%; height: 100%; object-fit: cover; }
.trunc2 { font-size: 13.5px; line-height: 1.3; }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.quick a { display: grid; gap: 4px; justify-items: start; padding: 14px; border: 1px solid var(--border); border-radius: 14px; text-decoration: none; color: inherit; background: var(--surface); transition: .15s; }
.quick a:hover { border-color: var(--brand, #4f46e5); box-shadow: 0 4px 14px rgba(0,0,0,.06); transform: translateY(-1px); }
.quick a.quick-hl { position: relative; border-color: var(--brand, #4f46e5); background: linear-gradient(145deg, color-mix(in srgb, var(--brand, #4f46e5) 16%, var(--surface)), var(--surface)); box-shadow: 0 0 0 1px var(--brand, #4f46e5) inset, 0 8px 24px -10px var(--brand, #4f46e5); }
.quick a.quick-hl .ico { background: var(--brand, #4f46e5); color: #fff; }
.quick a.quick-hl b { color: var(--brand, #4f46e5); }
.quick .quick-new { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--brand, #4f46e5); color: #fff; }
.quick .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-100, #eef0ff); color: var(--brand, #4f46e5); margin-bottom: 4px; }
.quick b { font-size: 14px; } .quick span:not(.ico) { font-size: 12.5px; color: var(--text-3); line-height: 1.35; }
@media (min-width: 1700px) { .quick { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (max-width: 1200px) { .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .easy-grid { grid-template-columns: 1fr; } .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* real screenshots of each storefront template in the picker */
.tpl-opt img.tpl-shot { display: block; width: 100%; height: auto; aspect-ratio: 64 / 44; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: transform .15s, box-shadow .15s; }
.tpl-opt:hover img.tpl-shot { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.tpl-opt.on img.tpl-shot, .tpl-opt input:checked ~ img.tpl-shot { border-color: var(--brand, #4f46e5); box-shadow: 0 0 0 3px rgba(79,70,229,.25); }

/* ---- design page: live preview as a browser window showing the real template look */
.pv2 { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); }
.pv2-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.pv2-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d4d7e0; } .pv2-bar i:nth-child(1) { background: #ff6159; } .pv2-bar i:nth-child(2) { background: #ffbd2e; } .pv2-bar i:nth-child(3) { background: #28c940; }
.pv2-url { margin-left: 10px; flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 3px 10px; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv2-shot img { display: block; width: 100%; height: auto; aspect-ratio: 64 / 44; object-fit: cover; object-position: top; background: var(--surface-2); }
.pv2-info { padding: 14px; display: grid; gap: 10px; }
.pv2-title { display: flex; align-items: center; justify-content: space-between; text-transform: capitalize; font-size: 15px; }
.pv2-chips { display: inline-flex; gap: 6px; } .pv2-chips i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); display: block; }
.pv2-say { border: 1px dashed var(--border-strong); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; }
.pv2-h { font-weight: 800; font-size: 15px; line-height: 1.25; } .pv2-s { font-size: 12.5px; color: var(--text-2); }
.pv2-b { justify-self: start; margin-top: 4px; background: var(--p); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.tpl-group { margin: 18px 0 8px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted, #667085); }
.tpl-group:first-child { margin-top: 0; } .tpl-group-yours { color: var(--brand, #4f46e5); }
.pal-chip{width:34px;height:34px;border-radius:50%;display:inline-block;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
/* Categories: tree of cards */
.cat-tools { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
.cat-find { flex: 1 1 260px; max-width: 380px; margin: 0; } .cat-ideas summary { cursor: pointer; list-style: none; }
.cat-group { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 14px; overflow: hidden; }
.cat-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); scroll-margin-top: 90px; }
.cat-parent { border-top: 0; background: var(--surface-2); } .cat-parent .thumb { width: 44px; height: 44px; }
.cat-child { padding-left: 44px; } .cat-child .thumb { width: 34px; height: 34px; }
.cat-name { flex: 1; min-width: 0; display: flex; flex-direction: column; } .cat-name b { font-size: 15.5px; }
.cat-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; } .cat-actions form { margin: 0; }
.cat-add-child { padding: 10px 16px 12px 44px; border-top: 1px dashed var(--border); }
.btn-link { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; cursor: pointer; font: inherit; font-weight: 600; } .btn-link:hover { text-decoration: underline; }
.cat-flash { animation: catflash 2.4s ease-out; } @keyframes catflash { 0%, 55% { background: color-mix(in srgb, var(--brand) 18%, transparent); } 100% { background: transparent; } }
@media (max-width: 700px) { .cat-row { flex-wrap: wrap; } .cat-actions { width: 100%; justify-content: flex-start; } .cat-child { padding-left: 24px; } .cat-add-child { padding-left: 24px; } }
.flip-v { transform: rotate(180deg); }

/* product form: guided variants */
.var-step { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.var-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }

.img-cell { display: flex; flex-direction: column; gap: 6px; } .img-opt { height: 30px; font-size: 12px; padding: 0 6px; border-radius: 8px; }

/* long settings forms: section chips + a save bar that follows the page */
.sec-nav { position: sticky; top: var(--top-h, 64px); z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px; margin: -4px 0 4px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); scrollbar-width: thin; }
.sec-nav a { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-strong, var(--border)); background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sec-nav a:hover { border-color: var(--brand); color: var(--brand); }
.sec-nav a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.sec-target { scroll-margin-top: calc(var(--top-h, 64px) + 64px); }
.savebar { position: sticky; bottom: 14px; z-index: 30; display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 16px; border: 1px solid var(--border-strong, var(--border)); border-radius: 14px; background: var(--surface); box-shadow: 0 10px 30px -8px rgba(15, 20, 36, .28); }
.savebar[hidden] { display: none; }
.sb-dot { width: 10px; height: 10px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, .2); flex: none; }
.sb-text { font-weight: 600; font-size: 14px; } .sb-grow { flex: 1; }
@media (max-width: 560px) { .savebar { flex-wrap: wrap; } .sb-grow { display: none; } .savebar .btn { flex: 1; } }

/* visual text editor */
.rte { border: 1px solid var(--border-strong, var(--border)); border-radius: 12px; background: var(--surface); overflow: hidden; }
.rte:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.rte-bar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 8px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.rte-btn { border: 1px solid transparent; background: transparent; color: var(--text); border-radius: 8px; padding: 5px 9px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; line-height: 1.2; }
.rte-btn:hover:not(:disabled) { background: var(--brand-50); color: var(--brand-600); } .rte-btn.on { background: var(--brand); color: #fff; } .rte-btn:disabled { opacity: .4; cursor: default; }
.rte-bold { font-weight: 800; } .rte-italic { font-style: italic; } .rte-underline { text-decoration: underline; }
.rte-sep { width: 1px; height: 22px; background: var(--border-strong, var(--border)); margin: 0 4px; }
.rte-area { padding: 16px 18px; outline: none; line-height: 1.7; font-size: 15.5px; overflow-wrap: anywhere; }
.rte-area:empty::before, .rte-area > p:only-child:has(> br:only-child)::before { content: attr(data-placeholder); color: var(--text-3); pointer-events: none; }
.rte-area h2 { font-size: 24px; margin: .8em 0 .4em; } .rte-area h3 { font-size: 19px; margin: .8em 0 .4em; } .rte-area h4 { font-size: 16px; margin: .8em 0 .4em; }
.rte-area p { margin: 0 0 .9em; } .rte-area ul, .rte-area ol { margin: 0 0 .9em 1.4em; padding: 0; } .rte-area blockquote { margin: 0 0 .9em; padding: 4px 14px; border-left: 3px solid var(--brand); color: var(--text-2); }
.rte-area a { color: var(--brand); text-decoration: underline; } .rte-area table { border-collapse: collapse; } .rte-area td, .rte-area th { border: 1px solid var(--border-strong, var(--border)); padding: 6px 10px; }
.rte-source { border: 0 !important; border-radius: 0 !important; width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; line-height: 1.55; padding: 14px 16px; box-shadow: none !important; resize: vertical; }
@media (max-width: 560px) { .rte-btn { padding: 6px 8px; } }

.rte-source[hidden], .rte-area[hidden] { display: none !important; }

/* AI credit packs: what each pack includes */
.pack-includes { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; color: var(--text-2, inherit); }
.pack-includes li { position: relative; padding-left: 20px; line-height: 1.4; }
.pack-includes li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand, #4f46e5); font-weight: 800; }

/* ---- (i) help signs: next to every menu item and page title, opening a short "what it is for / how to use it" card */
.nav-row { position: relative; }
.nav-row .nav-item { padding-right: 40px; }
.nav-info { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--text-3); background: transparent; color: var(--text-3); font: italic 700 12px/1 Georgia, serif; cursor: pointer; opacity: .55; display: grid; place-items: center; padding: 0; }
.nav-row:hover .nav-info, .nav-info:focus-visible, .nav-info[aria-expanded="true"] { opacity: 1; color: var(--brand); border-color: var(--brand); }
.nav-info:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.page-info { display: inline-grid; vertical-align: middle; margin-left: 10px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--text-3); background: transparent; color: var(--text-3); font: italic 700 13px/1 Georgia, serif; cursor: pointer; place-items: center; padding: 0; position: relative; top: -2px; }
.page-info:hover, .page-info:focus-visible, .page-info[aria-expanded="true"] { color: var(--brand); border-color: var(--brand); }
.help-card { position: fixed; z-index: 1200; width: min(360px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; background: var(--surface, #fff); color: var(--text, #1f2430); border: 1px solid var(--line, #e5e7eb); border-radius: 14px; box-shadow: 0 18px 50px rgba(15, 18, 25, .25); padding: 16px 18px 14px; font-size: 13.5px; line-height: 1.5; }
.help-card h4 { margin: 0 24px 6px 0; font-size: 15px; }
.help-card .help-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--text-3); }
.help-card .help-k { margin: 10px 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.help-card ol { margin: 0; padding-left: 20px; } .help-card li { margin: 3px 0; }
.help-card .help-go { margin-top: 12px; display: inline-block; }
@media (hover: none) { .nav-info { opacity: .85; } }

/* bundle editor product search */
.bundle-results { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--card, #fff); border: 1px solid var(--line, #e5e7eb); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 280px; overflow: auto; }
.bundle-results li { padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.bundle-results li:hover, .bundle-results li:focus { background: var(--bg-soft, #f3f4f6); outline: none; }
