@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    color-scheme: light;
    --navy: #09285f;
    --blue: #1269e8;
    --blue-deep: #0758ce;
    --teal: #11c9b2;
    --teal-dark: #0aa78e;
    --ink: #111d43;
    --muted: #526580;
    --soft: #f4f8fe;
    --line: #dce8fa;
    --white: #fff;
    --green: #08a957;
    --green-soft: #e4fbf0;
    --purple: #6841e8;
    --shadow: 0 12px 30px rgba(18, 82, 161, .09);
    --shadow-card: 0 7px 18px rgba(18, 82, 161, .08);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--soft); color: var(--ink); font-size: 15px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #0fc7bc; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; }
.merchant-sidebar { display: none; }
.app-content { min-width: 0; }
.merchant-topbar { position: sticky; z-index: 20; top: 0; display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 18px; border-bottom: 1px solid rgba(220, 232, 250, .82); background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); }
.brand-lockup { display: inline-flex; min-width: 0; align-items: center; gap: 9px; color: var(--navy); font-size: 20px; font-weight: 800; letter-spacing: -.06em; }
.brand-lockup img { flex: 0 0 auto; border-radius: 12px; object-fit: contain; }
.brand-accent { color: #078bb3; }
.mobile-brand { font-size: 19px; }
.topbar-context { display: none; margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-action { display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; }
.profile-avatar { display: grid; width: 38px; height: 38px; place-items: center; border: 2px solid #fff; border-radius: 50%; background: linear-gradient(145deg, #1671ec, #083eaa); box-shadow: 0 4px 12px rgba(10, 79, 187, .2); color: #fff; font-size: 15px; font-weight: 800; }
.profile-avatar-small { width: 34px; height: 34px; }
.app-main { width: min(100%, 1440px); margin: 0 auto; padding: 16px 16px calc(102px + env(safe-area-inset-bottom)); }
.page-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 4px 2px 18px; }
.page-heading h1, .page-heading h2 { margin: 0; color: var(--ink); font-size: clamp(25px, 4vw, 36px); line-height: 1.14; letter-spacing: -.055em; }
.page-heading p { max-width: 680px; margin: 7px 0 0; color: var(--muted); }
.eyebrow { display: inline-flex; margin-bottom: 7px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.card { border: 1px solid rgba(220, 232, 250, .94); border-radius: 22px; background: var(--white); box-shadow: var(--shadow-card); }
.card-pad { padding: 19px; }
.card-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.card-title-row h2, .card-title-row h3 { margin: 0; font-size: 21px; line-height: 1.25; letter-spacing: -.04em; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.demo-label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid #d8e6ff; border-radius: 999px; background: #f3f7ff; color: #305581; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.demo-label::before { width: 6px; height: 6px; border-radius: 50%; background: #6087bc; content: ""; }

.welcome-banner { position: relative; display: flex; min-height: 208px; align-items: center; overflow: hidden; margin: 0 -16px 0; padding: 26px 24px; border-radius: 0 0 28px 28px; background: radial-gradient(circle at 84% 10%, rgba(15, 205, 199, .46), transparent 28%), linear-gradient(112deg, #082b74 0%, #075ab9 52%, #0875b6 100%); color: #fff; }
.welcome-copy { position: relative; z-index: 1; max-width: 66%; }
.welcome-copy h1 { margin: 0 0 7px; color: #fff; font-size: clamp(25px, 4.7vw, 38px); line-height: 1.1; letter-spacing: -.045em; }
.welcome-copy p { max-width: 440px; margin: 0; color: rgba(255,255,255,.87); font-size: 16px; }
.welcome-art { position: absolute; right: -10px; bottom: -27px; width: min(44%, 300px); height: 210px; object-fit: contain; object-position: bottom right; filter: drop-shadow(0 14px 24px rgba(0, 17, 64, .24)); }
.business-card { position: relative; z-index: 2; display: flex; min-height: 88px; align-items: center; gap: 14px; margin: -30px 2px 18px; padding: 14px 16px; border: 1px solid #dce8fa; border-radius: 22px; background: rgba(255,255,255,.97); box-shadow: 0 10px 24px rgba(13, 64, 135, .12); }
.business-icon { display: grid; width: 58px; height: 58px; flex: 0 0 auto; place-items: center; border-radius: 17px; background: linear-gradient(145deg, #e8f2ff, #c5dcff); color: var(--blue); font-size: 28px; font-weight: 700; }
.business-copy { min-width: 0; flex: 1; }
.business-copy strong { display: block; overflow: hidden; color: var(--ink); font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.business-copy span { color: var(--muted); font-size: 13px; }
.business-arrow { color: var(--navy); font-size: 27px; line-height: 1; }
.quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin: 0 0 18px; }
.quick-action { display: flex; min-height: 98px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1px solid #e0eafa; border-radius: 20px; background: linear-gradient(145deg, #fff, #f8fbff); box-shadow: var(--shadow-card); color: var(--ink); font-size: 13px; font-weight: 700; text-align: center; transition: transform .18s ease, box-shadow .18s ease; }
.quick-action:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.quick-action-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; color: var(--blue); font-size: 26px; font-weight: 700; }
.quick-action:nth-child(1) .quick-action-icon { color: #07aa7a; }
.quick-action:nth-child(3) .quick-action-icon { color: var(--purple); }
.quick-action:nth-child(4) .quick-action-icon { color: #3458f5; }
.overview-panel { padding: 18px 14px; }
.overview-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 16px; }
.overview-head h2 { margin: 0; color: var(--ink); font-size: 24px; line-height: 1.15; letter-spacing: -.05em; }
.range-select { min-height: 42px; padding: 0 12px; border: 1px solid #bfd3f6; border-radius: 13px; background: #fff; color: var(--navy); font-weight: 600; }
.metrics-grid { display: grid; grid-template-columns: 1fr; gap: 11px; }
.metric-card { min-height: 112px; padding: 15px; border: 1px solid #dfe9fa; border-radius: 18px; background: linear-gradient(145deg, #fff, #fbfdff); box-shadow: 0 5px 14px rgba(14, 67, 140, .08); }
.metric-label { display: flex; align-items: center; gap: 9px; color: #385075; font-size: 13px; font-weight: 600; }
.metric-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; background: #eaf3ff; color: var(--blue); font-size: 18px; font-weight: 800; }
.metric-value { margin: 6px 0 4px; color: var(--ink); font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.04em; line-height: 1.15; }
.metric-footnote { color: #70819c; font-size: 11px; }
.metric-change { display: inline-flex; margin-top: 2px; padding: 3px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 800; }
.analytics-grid { display: grid; grid-template-columns: 1fr; gap: 13px; margin-top: 14px; }
.chart-card { min-width: 0; overflow: hidden; padding: 17px 14px 13px; }
.chart-card h3, .health-card h3 { margin: 0 0 12px; font-size: 19px; letter-spacing: -.045em; }
.chart-shell { width: 100%; overflow: hidden; }
.chart-shell svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-gridline { stroke: #e7effa; stroke-width: 1; }
.chart-area { fill: url(#revenue-fill); }
.chart-line { fill: none; stroke: #08b9d1; stroke-linecap: round; stroke-linejoin: round; stroke-width: 4; }
.chart-point { fill: #fff; stroke: #0db7cf; stroke-width: 3; }
.chart-axis { display: flex; justify-content: space-between; margin-top: -2px; color: #475a79; font-size: 11px; font-weight: 600; }
.health-card { display: flex; min-height: 250px; flex-direction: column; align-items: center; justify-content: center; padding: 18px 12px; text-align: center; }
.health-card h3 { align-self: stretch; margin-bottom: 10px; text-align: left; }
.health-gauge { position: relative; width: 166px; height: 92px; overflow: hidden; margin: 4px 0 10px; }
.health-gauge::before { position: absolute; inset: 0 0 -72px; border: 15px solid #dce8fa; border-bottom: 0; border-radius: 100px 100px 0 0; content: ""; }
.health-gauge::after { position: absolute; inset: 0 0 -72px; border: 15px solid transparent; border-top-color: #0fc48f; border-left-color: #0fc48f; border-radius: 100px 100px 0 0; content: ""; transform: rotate(0deg); transform-origin: center center; }
.health-score { position: absolute; inset: auto 0 2px; color: var(--ink); font-size: 34px; font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.health-score small { display: block; margin-top: 4px; font-size: 15px; letter-spacing: 0; }
.health-status { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px; background: #e1fbf0; color: #09a565; font-weight: 800; }
.health-note { max-width: 240px; margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.empty-state { display: grid; min-height: 125px; place-items: center; padding: 18px; border: 1px dashed #c7d8f2; border-radius: 16px; background: #f8fbff; color: var(--muted); text-align: center; }
.empty-state strong { display: block; margin-bottom: 4px; color: var(--ink); }
.ai-insight { display: flex; align-items: center; gap: 13px; margin: 15px 0; padding: 16px; border: 1px solid #e5dbff; border-radius: 22px; background: linear-gradient(110deg, #f6edff, #edf5ff); box-shadow: var(--shadow-card); }
.ai-avatar { width: 56px; height: 56px; flex: 0 0 auto; overflow: hidden; border: 2px solid #fff; border-radius: 50%; background: #edf4ff; box-shadow: 0 5px 15px rgba(79, 61, 183, .15); }
.ai-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ai-insight-copy { flex: 1; }
.ai-insight-copy h3 { margin: 0 0 3px; color: var(--navy); font-size: 17px; letter-spacing: -.03em; }
.ai-insight-copy p { margin: 0; color: #223b73; font-size: 13px; line-height: 1.45; }
.ai-insight-arrow { color: #234f94; font-size: 23px; }
.transactions-card { padding: 17px 14px; }
.transactions-list { display: grid; gap: 8px; }
.transaction-row { display: flex; align-items: center; gap: 11px; padding: 11px; border: 1px solid #edf2f9; border-radius: 16px; background: #fff; }
.transaction-icon { display: grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; border-radius: 14px; background: #e2fbf0; color: #05a969; font-size: 22px; }
.transaction-copy { min-width: 0; flex: 1; }
.transaction-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transaction-copy span { color: var(--muted); font-size: 12px; }
.transaction-amount { color: var(--green); font-size: 14px; font-weight: 800; white-space: nowrap; }
.text-link { color: var(--blue); font-weight: 700; }

.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid transparent; border-radius: 14px; font-weight: 700; transition: transform .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: linear-gradient(100deg, #075ee7, #0bbfa5); box-shadow: 0 9px 18px rgba(12, 104, 211, .19); color: #fff; }
.button-soft { border-color: #cadcf7; background: #fff; color: var(--navy); }
.button-danger { border-color: #ffd5d5; background: #fff6f6; color: #b32636; }
.button-block { width: 100%; }
.button:disabled { cursor: not-allowed; opacity: .6; transform: none; }
.inline-form { display: inline-flex; }

.field-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .field-label { color: #294064; font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea, .search-input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #cbdaf0; border-radius: 13px; background: #fff; color: var(--ink); outline: none; }
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .search-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 105, 232, .12); }
.field-help { color: #73839a; font-size: 11px; }
.field-error { color: #b32636; font-size: 12px; }
.input-with-action { position: relative; }
.input-with-action input { padding-right: 56px; }
.password-toggle { position: absolute; top: 50%; right: 9px; min-height: 35px; padding: 0 8px; transform: translateY(-50%); border: 0; border-radius: 8px; background: transparent; color: var(--blue); font-size: 12px; font-weight: 700; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; color: #435a78; font-size: 13px; }
.checkbox-row input { width: 17px; height: 17px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--blue); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.notice { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #cfe0f8; border-radius: 13px; background: #f5f9ff; color: #29496e; font-size: 13px; }
.notice-success { border-color: #c5efd8; background: #edfff5; color: #096c40; }
.notice-error { border-color: #f4caca; background: #fff4f4; color: #9e2030; }
.notice-info { border-color: #cbdff5; background: #f2f8ff; color: #1d4a77; }
.error-list { margin: 0; padding-left: 18px; }

.auth-page { min-height: 100svh; background: #f7faff; }
.auth-reset-card { margin: 28px auto; }
.auth-layout { display: grid; min-height: 100svh; grid-template-columns: 1fr; }
.auth-visual { position: relative; display: none; min-height: 100vh; overflow: hidden; padding: clamp(30px, 5vw, 76px); background: radial-gradient(circle at 90% 8%, rgba(21, 204, 202, .55), transparent 30%), linear-gradient(145deg, #061d55, #0759c8 62%, #09aaa9); color: #fff; }
.auth-visual::after { position: absolute; right: -170px; bottom: -240px; width: 560px; height: 560px; border: 1px solid rgba(115, 234, 246, .45); border-radius: 50%; box-shadow: 0 0 0 46px rgba(40, 222, 216, .09), 0 0 0 100px rgba(40, 222, 216, .06); content: ""; }
.auth-brand { position: relative; z-index: 1; color: #fff; }
.auth-brand .brand-accent { color: #14d7cb; }
.auth-visual-copy { position: relative; z-index: 1; max-width: 530px; margin-top: 48px; }
.auth-visual-copy h1 { margin: 0 0 16px; color: #fff; font-size: clamp(38px, 4.2vw, 64px); line-height: 1.04; letter-spacing: -.065em; }
.auth-visual-copy p { max-width: 480px; margin: 0; color: rgba(255,255,255,.84); font-size: 18px; }
.auth-hero-art { position: absolute; z-index: 0; right: 2%; bottom: 9%; width: 71%; max-height: 53%; object-fit: contain; object-position: bottom right; filter: drop-shadow(0 18px 32px rgba(0,0,0,.2)); }
.auth-benefits { position: absolute; z-index: 1; right: 8%; bottom: 5%; left: 8%; display: flex; justify-content: space-between; gap: 14px; margin: 0; padding: 0; list-style: none; }
.auth-benefits li { display: grid; justify-items: center; gap: 7px; color: rgba(255,255,255,.95); font-size: 13px; font-weight: 700; text-align: center; }
.auth-benefit-icon { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(99, 242, 241, .8); border-radius: 13px; background: rgba(4, 57, 132, .3); color: #4ffff0; font-size: 21px; }
.auth-content { display: grid; min-height: 100svh; align-content: center; justify-items: center; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
.auth-mobile-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: var(--navy); font-size: 21px; font-weight: 800; letter-spacing: -.06em; }
.auth-mobile-brand img { width: 42px; height: 42px; border-radius: 12px; }
.auth-mobile-art { width: 110px; height: 74px; overflow: hidden; margin-bottom: 12px; border-radius: 19px; background: linear-gradient(140deg, #0b4eae, #0dc9b4); }
.auth-mobile-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.auth-card { width: min(100%, 560px); padding: 24px 20px; border: 1px solid #e0eafa; border-radius: 23px; background: #fff; box-shadow: 0 18px 42px rgba(17, 76, 146, .1); }
.auth-card h2 { margin: 0; color: var(--ink); font-size: clamp(27px, 4vw, 42px); line-height: 1.1; letter-spacing: -.06em; }
.auth-card h2 span { color: var(--blue); }
.auth-card-intro { margin: 7px 0 19px; color: var(--muted); }
.auth-form { display: grid; gap: 14px; }
.auth-footer { margin: 17px 0 0; color: var(--muted); text-align: center; }
.auth-footer a { color: var(--blue); font-weight: 800; }
.auth-split-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; }
.auth-password-strength { color: #71819a; font-size: 11px; }

.store-onboarding { display: grid; gap: 18px; }
.store-preview-box { padding: 18px; border: 1px solid #dae7f9; border-radius: 19px; background: linear-gradient(135deg, #f5f9ff, #edfffc); }
.store-preview-box span { display: block; color: var(--muted); font-size: 12px; }
.store-preview-box strong { display: block; overflow-wrap: anywhere; margin-top: 4px; color: var(--blue); font-size: 16px; }
.slug-status { min-height: 18px; color: var(--muted); font-size: 12px; }
.slug-status[data-state="available"] { color: var(--green); }
.slug-status[data-state="unavailable"], .slug-status[data-state="invalid"] { color: #b32636; }
.store-management-hero { position: relative; min-height: 185px; overflow: hidden; border-radius: 23px; background: linear-gradient(115deg, #082f78, #0876c3 65%, #0ebea9); }
.store-management-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .77; }
.store-management-hero::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,28,77,.88), rgba(4,28,77,.05)); content: ""; }
.store-management-hero-copy { position: relative; z-index: 1; max-width: 500px; padding: 24px; color: #fff; }
.store-management-hero-copy h1 { margin: 0 0 5px; color: #fff; font-size: clamp(25px, 4vw, 36px); letter-spacing: -.05em; }
.store-management-hero-copy p { margin: 0; color: rgba(255,255,255,.88); }
.store-profile-card { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; padding: 17px; }
.store-logo-mark { display: grid; width: 62px; height: 62px; flex: 0 0 auto; place-items: center; border: 1px solid #cbe0ff; border-radius: 18px; background: linear-gradient(145deg, #07306d, #1249a2); color: #f8d48b; font-family: Georgia, serif; font-size: 24px; font-weight: 700; }
.store-profile-copy { min-width: 0; flex: 1; }
.store-profile-copy h2 { margin: 0; font-size: 20px; letter-spacing: -.04em; }
.store-profile-copy p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.store-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: #e2fbf0; color: #078f54; font-size: 11px; font-weight: 800; }
.store-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.store-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.store-summary { padding: 15px; }
.store-summary span { display: block; color: var(--muted); font-size: 12px; }
.store-summary strong { display: block; margin-top: 5px; color: var(--navy); font-size: 23px; }
.product-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.product-card { display: grid; grid-template-columns: 102px minmax(0, 1fr); gap: 13px; padding: 10px; border: 1px solid #e0eafa; border-radius: 18px; background: #fff; box-shadow: 0 4px 12px rgba(16, 72, 143, .07); }
.product-image { width: 102px; height: 112px; overflow: hidden; border-radius: 14px; background: #eff4fa; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-info { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; }
.product-info h3 { margin: 0; font-size: 14px; line-height: 1.25; }
.product-price { color: var(--green); font-size: 15px; font-weight: 800; }
.product-meta { color: var(--muted); font-size: 11px; }
.product-info .button { width: 100%; min-height: 36px; margin-top: 3px; padding: 0 9px; font-size: 12px; }
.product-table { width: 100%; border-collapse: collapse; }
.product-table th, .product-table td { padding: 12px 10px; border-bottom: 1px solid #edf1f8; text-align: left; vertical-align: middle; }
.product-table th { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.product-table td { font-size: 13px; }
.table-wrap { overflow-x: auto; }

.public-store-shell { min-height: 100svh; padding-bottom: calc(86px + env(safe-area-inset-bottom)); background: #f3f8ff; }
.public-store-top { position: sticky; z-index: 15; top: 0; padding: 10px 14px; border-bottom: 1px solid #e5edf8; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.public-store-browser { display: flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; background: #edf2fa; color: #2d3e59; font-size: 12px; }
.public-store-credit { display: flex; justify-content: center; padding: 12px; color: #23344f; font-size: 12px; font-weight: 700; }
.public-store-credit .brand-lockup { gap: 5px; margin-left: 5px; font-size: 14px; }
.public-store-credit img { width: 23px; height: 23px; border-radius: 7px; }
.public-store-container { width: min(100% - 24px, 1120px); margin: 0 auto; }
.public-store-profile { padding: 14px; }
.public-store-profile-main { display: flex; align-items: center; gap: 13px; }
.public-store-profile .store-logo-mark { width: 74px; height: 74px; border-radius: 17px; }
.public-store-title { min-width: 0; flex: 1; }
.public-store-title h1 { margin: 0; font-size: clamp(20px, 4vw, 28px); line-height: 1.13; letter-spacing: -.05em; }
.verified-pill { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 4px 7px; border-radius: 999px; background: #e2fbf0; color: #058650; font-size: 10px; font-weight: 800; vertical-align: middle; }
.public-store-title p { margin: 4px 0 2px; color: var(--muted); font-size: 13px; }
.store-rating { color: #e7a200; font-size: 13px; font-weight: 800; }
.store-rating span { color: var(--muted); font-weight: 500; }
.public-store-description { margin: 11px 0 0; color: #253a60; font-size: 13px; font-style: italic; }
.store-contact-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.store-contact-actions a, .store-contact-actions button { display: flex; min-height: 39px; align-items: center; justify-content: center; gap: 5px; padding: 0 7px; border: 1px solid #cadaf2; border-radius: 12px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; }
.store-banner { position: relative; min-height: 190px; overflow: hidden; margin: 12px 0; border-radius: 22px; background: linear-gradient(100deg, #062b71, #0781c3); color: #fff; }
.store-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.store-banner::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,35,85,.9) 0%, rgba(3,35,85,.48) 46%, transparent 100%); content: ""; }
.store-banner-copy { position: relative; z-index: 1; max-width: 62%; padding: 22px 18px; }
.store-banner-copy h2 { margin: 0; color: #fff; font-size: clamp(22px, 4vw, 34px); line-height: 1.05; letter-spacing: -.04em; }
.store-banner-copy p { margin: 7px 0 12px; color: rgba(255,255,255,.9); font-size: 13px; }
.store-banner-copy .button { min-height: 37px; border: 1px solid rgba(255,255,255,.65); border-radius: 999px; background: linear-gradient(90deg, #08c7a3, #087fc2); color: #fff; font-size: 12px; }
.category-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 11px 0 18px; }
.category-chip { display: flex; min-height: 65px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid #e1eaf8; border-radius: 17px; background: #fff; box-shadow: 0 5px 12px rgba(18, 82, 161, .07); color: var(--blue); font-size: 11px; font-weight: 700; text-align: center; }
.category-chip span:first-child { font-size: 19px; }
.public-products-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 2px 10px; }
.public-products-heading h2 { margin: 0; font-size: 21px; letter-spacing: -.05em; }
.search-row { display: flex; gap: 8px; margin-bottom: 11px; }
.search-row .search-input { min-width: 0; min-height: 42px; }
.search-row .button { min-height: 42px; padding-inline: 13px; }
.public-product-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.public-product-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 9px; border: 1px solid #e0eafa; border-radius: 19px; background: #fff; box-shadow: 0 5px 14px rgba(18, 82, 161, .08); }
.public-product-image { width: 112px; height: 128px; overflow: hidden; border-radius: 16px; background: #f1f3f7; }
.public-product-image img { width: 100%; height: 100%; object-fit: cover; }
.public-product-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; }
.public-product-copy h3 { margin: 0; font-size: 14px; line-height: 1.28; }
.public-product-copy .product-price { font-size: 16px; }
.public-product-copy .button { width: 100%; min-height: 36px; border-radius: 999px; font-size: 12px; }
.store-information { margin: 14px 0; padding: 15px; }
.store-information h2 { margin: 0 0 11px; font-size: 18px; letter-spacing: -.04em; }
.store-info-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.store-info-item { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.store-info-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #edf5ff; color: var(--blue); font-size: 18px; }
.store-info-item strong { display: block; color: var(--ink); font-size: 13px; }
.customer-bottom-nav { position: fixed; z-index: 25; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 9px 8px calc(9px + env(safe-area-inset-bottom)); border: 1px solid #dce8fa; border-radius: 24px 24px 0 0; background: rgba(255,255,255,.97); box-shadow: 0 -8px 28px rgba(26, 77, 145, .1); }
.customer-bottom-nav a { display: grid; justify-items: center; gap: 2px; color: #3c5273; font-size: 11px; font-weight: 600; }
.customer-bottom-nav a.is-active { color: var(--blue); }
.customer-bottom-nav .customer-nav-icon { font-size: 22px; line-height: 1.2; }

.mobile-bottom-nav { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); border: 1px solid #dce8fa; border-radius: 22px 22px 0 0; background: rgba(255,255,255,.97); box-shadow: 0 -8px 28px rgba(25, 69, 130, .1); }
.mobile-nav-item { display: grid; min-width: 0; justify-items: center; gap: 2px; color: #415674; font-size: 10px; font-weight: 600; }
.mobile-nav-item.is-active { color: #075fe4; font-weight: 800; }
.mobile-nav-icon { min-height: 28px; color: currentColor; font-size: 22px; font-weight: 800; line-height: 1.15; }
.sidebar-bottom { display: none; }

@media (min-width: 540px) {
    .app-main { padding: 24px 24px 40px; }
    .welcome-banner { margin: 0 -24px; padding: 30px 28px; }
    .business-card { margin-inline: 0; }
    .quick-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
    .quick-action { min-height: 112px; font-size: 14px; }
    .metrics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .analytics-grid { grid-template-columns: minmax(0, 2fr) minmax(220px, .95fr); }
    .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .field-span-2 { grid-column: 1 / -1; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .public-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .store-info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .store-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .auth-card { padding: 32px; border-radius: 27px; }
    .auth-mobile-brand { margin-bottom: 18px; }
    .public-store-container { width: min(100% - 32px, 1120px); }
    .public-store-profile { padding: 18px; }
    .store-banner { min-height: 225px; }
}

@media (min-width: 960px) {
    .app-shell { display: flex; }
    .merchant-sidebar { position: fixed; z-index: 31; inset: 0 auto 0 0; display: flex; width: 244px; flex-direction: column; padding: 24px 16px 18px; border-right: 1px solid #e1eaf5; background: #fff; }
    .merchant-sidebar .brand-lockup { padding: 2px 9px 23px; font-size: 21px; }
    .sidebar-eyebrow { margin: 14px 10px 10px; color: #8493a9; font-size: 10px; font-weight: 800; letter-spacing: .11em; }
    .sidebar-nav { display: grid; gap: 5px; }
    .sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 13px; color: #4d607d; font-weight: 600; }
    .sidebar-nav a:hover { background: #f3f7fc; }
    .sidebar-nav a.is-active { background: #eaf3ff; color: #095fd8; }
    .nav-icon { display: grid; width: 27px; place-items: center; color: currentColor; font-size: 20px; font-weight: 800; }
    .sidebar-bottom { display: grid; gap: 10px; margin-top: auto; }
    .sidebar-profile { display: flex; align-items: center; gap: 10px; padding: 10px 7px; border-top: 1px solid #edf1f7; }
    .sidebar-profile strong, .sidebar-profile small { display: block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .sidebar-profile strong { font-size: 12px; }
    .sidebar-profile small { color: var(--muted); font-size: 10px; }
    .sidebar-logout { width: 100%; padding: 9px 10px; border: 1px solid #e3eaf4; border-radius: 11px; background: #fff; color: #455b79; font-size: 12px; font-weight: 700; }
    .app-content { width: calc(100% - 244px); margin-left: 244px; }
    .merchant-topbar { min-height: 72px; padding: 0 30px; }
    .mobile-brand { display: none; }
    .topbar-context { display: block; margin-right: auto; }
    .app-main { padding: 26px 30px 44px; }
    .welcome-banner { min-height: 225px; margin: 0; border-radius: 24px; padding: 32px 36px; }
    .business-card { margin: -26px 24px 18px; }
    .mobile-bottom-nav { display: none; }
    .auth-layout { grid-template-columns: minmax(0, 1.05fr) minmax(460px, .95fr); }
    .auth-visual { display: block; }
    .auth-content { padding: 42px; }
    .auth-mobile-brand, .auth-mobile-art { display: none; }
    .auth-card { width: min(100%, 620px); padding: clamp(32px, 4vw, 56px); }
    .auth-card-intro { margin-bottom: 28px; }
    .public-store-profile { padding: 20px; }
    .public-store-profile-main { gap: 18px; }
    .public-store-profile .store-logo-mark { width: 82px; height: 82px; }
    .public-store-description { margin-top: 13px; }
    .store-contact-actions { width: min(600px, 100%); margin-left: auto; }
    .store-banner { min-height: 270px; }
    .store-banner-copy { padding: 32px; }
    .category-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .public-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .public-product-card { grid-template-columns: 124px minmax(0, 1fr); }
    .public-product-image { width: 124px; height: 140px; }
}

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

.notification-action { position: relative; width: 38px; height: 38px; border-radius: 12px; color: var(--navy); }
.notification-action svg { width: 22px; height: 22px; }
.notification-dot { position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: #f04444; }
.nav-icon svg { width: 21px; height: 21px; }
.mobile-nav-icon svg { width: 23px; height: 23px; }
.quick-action-icon svg { width: 32px; height: 32px; }
.metric-icon svg { width: 20px; height: 20px; }
.ai-insight-copy h3 svg { width: 18px; height: 18px; vertical-align: -3px; color: #f0aa13; }
.ai-insight-arrow svg { width: 24px; height: 24px; }
.button svg, .text-link svg { width: 18px; height: 18px; vertical-align: -4px; }
.health-status svg { width: 18px; height: 18px; }
.customer-nav-icon svg { width: 24px; height: 24px; }
.store-contact-actions svg, .store-info-icon svg { width: 19px; height: 19px; }
.category-chip svg { width: 20px; height: 20px; }

.range-form { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.range-form input, .page-heading form input[type="date"] { min-height: 42px; padding: 0 10px; border: 1px solid #cbdaf0; border-radius: 12px; background: #fff; color: var(--ink); }
.custom-date-fields { display: contents; }
.form-section-heading { margin-top: 22px; }
.onboarding-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.onboarding-list li { display: flex; gap: 11px; }
.onboarding-list li > span { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #eaf3ff; color: var(--blue); font-size: 12px; font-weight: 800; }
.onboarding-list strong { display: block; color: var(--ink); font-size: 13px; }
.onboarding-list p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.store-logo-image { display: block; object-fit: cover; }
.store-public-url { display: block; overflow-wrap: anywhere; padding: 12px 14px; border: 1px solid #dce8fa; border-radius: 13px; background: #f8fbff; color: var(--blue); font-weight: 700; }
.copy-status { display: block; min-height: 18px; margin-top: 6px; color: var(--green); font-size: 12px; }
.store-actions button, .store-actions a { white-space: nowrap; }
.category-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.category-tag { padding: 6px 10px; border: 1px solid #d9e8fa; border-radius: 999px; background: #f5f9ff; color: #315278; font-size: 12px; font-weight: 600; }
.inline-create-form { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-create-form input { min-width: 200px; min-height: 43px; flex: 1; padding: 0 12px; border: 1px solid #cbdaf0; border-radius: 12px; background: #fff; }
.table-product { display: flex; align-items: center; gap: 9px; min-width: 180px; }
.table-product img { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 11px; object-fit: cover; }
.row-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.button-link { padding: 0; border: 0; background: transparent; font-size: inherit; }
.status-pill { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; background: #f0f4fa; color: #48607f; font-size: 10px; font-weight: 800; text-transform: capitalize; }
.status-paid, .status-completed, .status-fulfilled, .status-available, .status-published { background: #e2fbf0; color: #078b52; }
.status-unpaid, .status-pending, .status-draft { background: #fff6df; color: #90661b; }
.status-cancelled, .status-unavailable, .status-suspended { background: #fff0f0; color: #aa3340; }
.order-status-form { display: flex; align-items: center; gap: 6px; }
.order-status-form select { max-width: 126px; min-height: 37px; padding: 0 7px; border: 1px solid #d5e1f2; border-radius: 9px; background: #fff; font-size: 11px; }
.order-status-form .button { min-height: 37px; padding-inline: 9px; font-size: 11px; }
.profile-layout { display: grid; gap: 15px; }
.definition-list { display: grid; gap: 13px; margin: 0 0 16px; }
.definition-list div { padding-bottom: 11px; border-bottom: 1px solid #edf1f8; }
.definition-list dt { color: var(--muted); font-size: 11px; font-weight: 700; }
.definition-list dd { margin: 3px 0 0; color: var(--ink); font-weight: 700; }

.assistant-layout { display: grid; gap: 14px; }
.assistant-history { display: grid; align-content: start; gap: 13px; }
.assistant-history h2 { font-size: 17px; }
.conversation-list { display: grid; gap: 6px; }
.conversation-link { display: grid; gap: 3px; padding: 10px; border: 1px solid transparent; border-radius: 12px; color: #3e5574; }
.conversation-link:hover, .conversation-link.is-active { border-color: #dbe8fb; background: #f4f8ff; color: var(--navy); }
.conversation-link strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-link small { color: #71819a; font-size: 10px; }
.suggested-prompts { display: grid; gap: 7px; }
.suggested-prompts h3 { margin: 4px 0; font-size: 13px; }
.suggested-prompt { display: flex; width: 100%; align-items: center; gap: 8px; padding: 9px; border: 1px solid #e1eafa; border-radius: 12px; background: #fff; color: #345477; font-size: 11px; text-align: left; }
.suggested-prompt:hover { background: #f5f9ff; }
.suggested-prompt svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--blue); }
.assistant-chat { display: flex; min-height: 560px; flex-direction: column; overflow: hidden; }
.assistant-chat-header { display: flex; align-items: center; gap: 11px; padding: 15px; border-bottom: 1px solid #edf1f7; }
.assistant-chat-header .ai-avatar { width: 46px; height: 46px; }
.assistant-chat-header h2 { margin: 0; font-size: 16px; }
.assistant-chat-header p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.assistant-messages { display: flex; min-height: 280px; flex: 1; flex-direction: column; gap: 12px; overflow-y: auto; padding: 16px; }
.assistant-welcome { display: grid; align-content: center; justify-items: center; flex: 1; padding: 24px; color: var(--muted); text-align: center; }
.assistant-large-icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 17px; background: #f0eaff; color: var(--purple); }
.assistant-large-icon svg { width: 28px; height: 28px; }
.assistant-welcome h3 { margin: 12px 0 4px; color: var(--ink); font-size: 18px; }
.assistant-welcome p { max-width: 400px; margin: 0; font-size: 13px; }
.assistant-message { max-width: min(90%, 560px); padding: 12px 14px; border-radius: 16px; background: #f2f6fc; }
.assistant-message.user-message { align-self: flex-end; border-bottom-right-radius: 5px; background: #e8f2ff; }
.assistant-message.system-message { align-self: flex-start; border-bottom-left-radius: 5px; }
.assistant-message > span { color: #3c5d83; font-size: 10px; font-weight: 800; }
.assistant-message p { margin: 5px 0; color: #263c59; font-size: 13px; white-space: normal; }
.assistant-message time { color: #78869b; font-size: 10px; }
.assistant-composer { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid #edf1f7; }
.assistant-composer textarea { min-height: 48px; max-height: 140px; flex: 1; padding: 12px; border: 1px solid #d1def0; border-radius: 13px; resize: vertical; }
.assistant-composer .button { min-width: 48px; padding: 0; }
.assistant-disclaimer { margin: 0; padding: 0 14px 12px; color: #75839a; font-size: 10px; }

.public-store-credit .brand-lockup img { border-radius: 7px; }
.not-found-card { width: min(100% - 28px, 600px); margin: 40px auto; }
.not-found-card h1 { margin: 20px 0 5px; font-size: 28px; letter-spacing: -.05em; }
.not-found-card p { color: var(--muted); }
.product-detail-grid { display: grid; gap: 14px; padding-bottom: 20px; }
.product-detail-photo { overflow: hidden; }
.product-detail-photo img { width: 100%; max-height: 560px; object-fit: cover; }
.product-detail-copy h1 { margin: 0; font-size: clamp(26px, 4vw, 38px); line-height: 1.1; letter-spacing: -.06em; }
.product-detail-price { margin: 9px 0; color: var(--green); font-size: 25px; font-weight: 800; }
.product-detail-copy .notice { margin-top: 15px; }
.cart-page { padding-bottom: 24px; }
.cart-layout { display: grid; gap: 14px; }
.cart-items { display: grid; gap: 11px; }
.cart-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 11px; padding: 10px; border: 1px solid #e7edf6; border-radius: 15px; }
.cart-item > img { width: 76px; height: 88px; border-radius: 12px; object-fit: cover; }
.cart-item-copy { display: grid; align-content: center; gap: 4px; }
.cart-item-copy strong { font-size: 13px; }
.cart-item-copy > span { color: var(--muted); font-size: 11px; }
.cart-quantity-form { display: flex; gap: 6px; margin-top: 5px; }
.cart-quantity-form input { width: 72px; min-height: 34px; padding: 0 8px; border: 1px solid #d4e0ef; border-radius: 9px; }
.cart-quantity-form .button { min-height: 34px; padding-inline: 10px; font-size: 11px; }
.cart-item-side { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart-item-side strong { color: var(--green); font-size: 13px; }
.order-request-card h2 { margin: 0; font-size: 21px; letter-spacing: -.04em; }
.order-request-card > p { font-size: 12px; }
.cart-total-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #edf1f7; color: var(--muted); font-size: 13px; }
.cart-total-row strong { color: var(--ink); }
.cart-total { margin-bottom: 15px; border-bottom: 0; color: var(--ink); font-weight: 800; }
.cart-total strong { color: var(--green); font-size: 17px; }
.product-edit-image { width: 120px; height: 120px; border-radius: 14px; object-fit: cover; }

@media (min-width: 700px) {
    .profile-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .assistant-layout { grid-template-columns: minmax(220px, .72fr) minmax(0, 2fr); align-items: stretch; }
    .assistant-history { min-height: 560px; }
    .product-detail-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr); align-items: start; }
    .cart-layout { grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); align-items: start; }
    .cart-item { grid-template-columns: 90px minmax(0, 1fr) auto; align-items: center; }
    .cart-item > img { width: 90px; height: 100px; }
    .cart-item-side { grid-column: auto; flex-direction: column; align-items: flex-end; }
}

@media (max-width: 539px) {
    .public-store-profile-main { align-items: flex-start; }
    .store-contact-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .store-contact-actions a, .store-contact-actions button { min-height: 38px; font-size: 10px; }
    .store-banner-copy { max-width: 72%; }
    .store-banner-copy h2 { font-size: 22px; }
    .public-product-card { grid-template-columns: 102px minmax(0, 1fr); }
    .public-product-image { width: 102px; height: 118px; }
    .auth-card { max-height: none; }
    .order-status-form { flex-wrap: wrap; }
}
