*{box-sizing:border-box}
:root{
  --navy:#071a2f;
  --blue:#0e4c92;
  --gold:#f4c542;
  --ink:#102030;
  --muted:#667788;
  --line:#dce4ec;
  --customer-primary:#0e4c92;
  --customer-bg:#071a2f;
}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#f4f7fb;color:var(--ink)}
.account-topbar{height:78px;background:var(--navy);border-bottom:3px solid var(--gold);display:flex;align-items:center;padding:0 30px}
.account-topbar img,.dash-logo img{max-height:46px;max-width:200px}
.auth-shell{min-height:calc(100vh - 78px);display:grid;place-items:center;padding:30px}
.auth-card{width:min(470px,100%);background:#fff;border:1px solid var(--line);border-radius:20px;padding:38px;box-shadow:0 18px 50px rgba(17,34,51,.09)}
.eyebrow{color:var(--blue);font-size:12px;font-weight:900;letter-spacing:.12em}
.auth-card h1{font-size:34px;color:var(--navy);margin:10px 0}
.auth-card p{color:var(--muted);line-height:1.5}
label{display:block;font-weight:800;margin:18px 0 8px;color:var(--navy)}
input{width:100%;height:52px;border:1px solid #c9d5e2;border-radius:11px;padding:0 14px;font-size:16px}
button{font:inherit}
.auth-card button{width:100%;height:52px;border:0;border-radius:11px;background:var(--blue);color:#fff;font-weight:800;margin-top:22px;cursor:pointer}
.auth-card button:disabled{opacity:.55}
.account-message{margin-top:16px;padding:12px 14px;border-radius:10px;background:#f2f8ff;border:1px solid #cfe2f8}
.account-message.error{background:#fff0f0;border-color:#f3b7b7;color:#9a2222}
.small-note{font-size:13px;margin-top:22px}

.dashboard-body{display:grid;grid-template-columns:240px 1fr;min-height:100vh}
.dash-sidebar{background:var(--navy);padding:24px 18px;display:flex;flex-direction:column;min-height:100vh}
.dash-logo{display:block;padding:4px 8px 26px}
.dash-sidebar nav{display:grid;gap:8px}
.dash-sidebar nav button,.logout{border:0;border-radius:10px;padding:12px 14px;text-align:left;background:transparent;color:#c8d5e3;font-weight:700}
.dash-sidebar nav button.active{background:rgba(255,255,255,.1);color:#fff}
.dash-sidebar nav button:disabled{opacity:.45}
.logout{margin-top:auto;cursor:pointer}
.dash-main{padding:36px;min-width:0}
.dash-header{display:flex;align-items:center;justify-content:space-between;gap:20px}
.dash-header h1{font-size:38px;margin:8px 0 5px;color:var(--navy)}
.dash-header p{margin:0;color:var(--muted)}
.business-logo{max-width:120px;max-height:90px;object-fit:contain}
.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:30px 0}
.stat-card,.dash-card{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 28px rgba(17,34,51,.05)}
.stat-card{padding:22px}
.stat-card span{display:block;color:var(--muted);font-size:14px}
.stat-card strong{display:block;font-size:34px;color:var(--customer-primary);margin-top:6px}
.dash-card{padding:24px;margin-bottom:20px}
.section-title-row h2{margin:0 0 18px;color:var(--navy)}
.link-row{display:flex;flex-wrap:wrap;gap:12px}
.link-row a{padding:11px 15px;border-radius:10px;text-decoration:none;font-weight:800;background:#f2f8ff;color:var(--blue);border:1px solid #cfe2f8}
.feedback-list{display:grid;gap:12px}
.feedback-item{border:1px solid var(--line);border-radius:12px;padding:15px}
.feedback-item>div{display:flex;justify-content:space-between;gap:15px}
.feedback-item strong{color:#d49d00;letter-spacing:2px}
.feedback-item p{margin:10px 0;color:#40566b}
.feedback-item small{color:var(--muted)}
.empty-state{color:var(--muted);padding:8px 0}

.account-setup{margin-top:22px;padding:22px;border:1px solid var(--line);border-radius:14px;background:#fbfdff}
.account-setup h2{margin:7px 0 5px;color:var(--navy)}
@media(max-width:800px){
  .dashboard-body{grid-template-columns:1fr}
  .dash-sidebar{min-height:auto}
  .dash-sidebar nav{grid-template-columns:repeat(3,1fr)}
  .logout{margin-top:18px}
  .dash-main{padding:22px}
  .stat-grid{grid-template-columns:1fr}
}

.dash-sidebar nav .nav-btn{cursor:pointer}
.dashboard-section[hidden]{display:none!important}
.section-title-row.split{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.section-title-row p{margin:5px 0 0;color:var(--muted)} .section-count{color:var(--muted);font-size:13px;white-space:nowrap}
.primary-action-link,.secondary-action-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 15px;border-radius:10px;text-decoration:none;font-weight:800}
.primary-action-link{background:var(--customer-primary);color:#fff}.secondary-action-link{border:1px solid #cfe2f8;background:#f2f8ff;color:var(--blue)}
.feedback-top{display:flex;justify-content:space-between;gap:12px}.data-list{display:grid;gap:10px}
.data-row{display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px solid var(--line);border-radius:12px;padding:16px}
.data-row>div:first-child{display:grid;gap:5px}.data-row span,.data-row small{color:var(--muted)}.data-row-meta{display:grid;justify-items:end;gap:6px}
.status-pill{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:800;text-transform:capitalize;background:#eef3f7;color:#536779!important}
.status-pill.active,.status-pill.delivered{background:#e8f7ec;color:#26733b!important}.status-pill.pending,.status-pill.ordered{background:#fff6d8;color:#876600!important}
.status-pill.canceled,.status-pill.cancelled,.status-pill.failed{background:#fff0f0;color:#9a2222!important}.status-pill.inactive{background:#eef3f7;color:#536779!important}
.large-empty{padding:18px 4px}.large-empty p{margin:7px 0 0}.info-card p{color:#52677b}
.billing-grid,.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}
.billing-main .price-row{display:flex;align-items:flex-start;margin:15px 0;color:var(--customer-primary)}
.price-row span{font-size:26px;font-weight:800;margin-top:8px}.price-row strong{font-size:64px;line-height:1}.price-row small{align-self:flex-end;margin:0 0 8px 7px;color:var(--muted)}
.billing-status{margin-top:22px;padding-top:16px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:15px}.billing-status span{color:var(--muted)}
.detail-list{display:grid}.detail-list>div{display:flex;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid var(--line)}.detail-list>div:last-child{border-bottom:0}.detail-list span{color:var(--muted)}
.profile-row{display:flex;align-items:center;gap:16px;margin:16px 0 10px}.settings-logo{width:82px;height:82px;object-fit:contain;border:1px solid var(--line);border-radius:14px;padding:8px}
.profile-row>div{display:grid;gap:5px}.profile-row span{color:var(--muted);font-size:13px}
.status-badge{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:900;margin:6px 0 8px}.status-badge.good{background:#e8f7ec;color:#26733b}.status-badge.warn{background:#fff6d8;color:#876600}
.settings-swatches{display:flex;flex-wrap:wrap;gap:18px;margin:18px 0}.settings-swatches>div{display:grid;gap:7px;color:var(--muted);font-size:12px}
.color-chip{width:82px;height:50px;border-radius:10px;border:1px solid rgba(0,0,0,.09)}.muted-note{color:var(--muted);font-size:13px}
@media(max-width:900px){.billing-grid,.settings-grid{grid-template-columns:1fr}}
@media(max-width:700px){.section-title-row.split,.data-row,.billing-status,.detail-list>div{flex-direction:column;align-items:flex-start}.data-row-meta{justify-items:start}.primary-action-link{width:100%}}

.card-status-flow{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 18px;
  padding:12px 14px;
  border-radius:12px;
  background:#f7f9fc;
  border:1px solid var(--line);
  color:#667788;
  font-size:12px;
  font-weight:700;
}
.card-status-flow b{color:#a3afbb}
.card-status-flow-inline{margin:0 0 14px;background:#fbfcfe}
.card-status-flow-inline span{padding:5px 8px;border-radius:999px;white-space:nowrap}
.card-status-flow-inline span.complete{color:#375d7d;background:#edf5fc}
.card-status-flow-inline span.current{color:#0b3154;background:#f7d979;box-shadow:inset 0 0 0 1px #d6b94e;font-weight:900}
@media(max-width:700px){.card-status-flow-inline{gap:5px}.card-status-flow-inline span{padding:4px 7px;font-size:11px}}
.status-pill.pending_payment{
  background:#f3efff;
  color:#6846a5!important;
}

.billing-alert{margin-top:18px;padding:14px 16px;border:1px solid #f2c94c;border-radius:12px;background:#fff8df}
.billing-alert strong{display:block;color:#7a5200;margin-bottom:5px}
.billing-alert p{margin:0;color:#6b5a2b;line-height:1.45}

.billing-recovery-btn{margin-top:12px;border:0;border-radius:10px;padding:11px 15px;background:var(--customer-primary);color:#fff;font-weight:800;cursor:pointer}
.billing-recovery-btn:disabled{opacity:.6;cursor:wait}.billing-recovery-message{margin-top:10px!important;font-size:13px}
.billing-cancel-action{margin-top:18px;padding-top:16px;border-top:1px solid #e2e8f0}
.billing-cancel-btn{border:1px solid #c83a3a;border-radius:10px;padding:10px 14px;background:#fff;color:#a62424;font-weight:800;cursor:pointer}
.billing-cancel-btn:hover{background:#fff4f4}.billing-cancel-btn:disabled{opacity:.6;cursor:wait}
.billing-cancel-message{margin:10px 0 0;color:#6b7280;font-size:13px;line-height:1.45}


/* Step 14E customer support */
.support-card{max-width:820px}.support-form{display:grid;gap:10px;margin-top:22px}.support-form label{font-weight:800;color:var(--text)}.support-form select,.support-form textarea{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);font:inherit;padding:12px 14px}.support-form textarea{resize:vertical;min-height:150px}.primary-action-btn{justify-self:start;border:0;border-radius:10px;background:var(--customer-primary,#0e4c92);color:#fff;padding:12px 18px;font:inherit;font-weight:800;cursor:pointer}.primary-action-btn:disabled{opacity:.65;cursor:wait}.support-status{margin:4px 0 0;font-weight:700}.support-status.success{color:#18794e}.support-status.error{color:#b42318}


/* Step 14F floating customer support */
.support-fab{position:fixed;right:24px;bottom:24px;z-index:80;border:0;border-radius:999px;background:var(--customer-primary,#0e4c92);color:#fff;padding:14px 18px;font:inherit;font-weight:900;box-shadow:0 10px 28px rgba(13,38,76,.24);cursor:pointer;display:inline-flex;align-items:center;gap:9px}.support-fab:hover{transform:translateY(-1px)}.support-fab.has-new-message{box-shadow:0 0 0 4px rgba(246,181,38,.22),0 10px 28px rgba(13,38,76,.28)}.support-fab-badge{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:24px;padding:0 8px;border-radius:999px;background:#f6b526;color:#17202a;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.04em}.support-fab-badge[hidden]{display:none!important}
.support-modal[hidden]{display:none!important}.support-modal{position:fixed;inset:0;z-index:100}.support-modal-backdrop{position:absolute;inset:0;background:rgba(8,22,40,.48);backdrop-filter:blur(2px)}.support-modal-panel{position:absolute;right:24px;bottom:88px;width:min(430px,calc(100vw - 32px));max-height:calc(100vh - 120px);overflow:auto;background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:0 24px 60px rgba(8,22,40,.28)}.support-modal-panel h2{margin:6px 0 6px;color:var(--navy)}.support-response-note{margin:0 0 14px;color:var(--muted);line-height:1.5}.support-modal-close{position:absolute;top:14px;right:14px;width:34px;height:34px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--navy);font-size:22px;line-height:1;cursor:pointer}.support-modal-open{overflow:hidden}@media(max-width:700px){.support-fab{right:16px;bottom:16px}.support-modal-panel{right:16px;left:16px;bottom:76px;width:auto}}


/* Step 14G: two-way support chat */
.customerSupportConversation{border:1px solid var(--line);background:#f8fafc;border-radius:14px;padding:12px;margin:14px 0}.supportConversationTitle{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;color:var(--navy)}.supportConversationTitle button{border:0;background:transparent;color:var(--customer-primary,#0e4c92);font:inherit;font-weight:800;cursor:pointer}.customerSupportMessages{max-height:260px;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:3px}.customerChatBubble{max-width:84%;padding:10px 12px;border-radius:13px;line-height:1.4;white-space:pre-wrap}.customerChatBubble small{display:block;font-size:10px;margin-top:5px;opacity:.72}.customerChatBubble.fromCustomer{align-self:flex-end;background:var(--customer-primary,#0e4c92);color:#fff;border-bottom-right-radius:4px}.customerChatBubble.fromSupport{align-self:flex-start;background:#fff;color:var(--text);border:1px solid var(--line);border-bottom-left-radius:4px}


/* Step 16C: editable customer review-page design */
.dashboard-style-options{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.dashboard-style-option{border:2px solid var(--line);border-radius:14px;background:#fff;padding:12px;text-align:left;cursor:pointer;color:var(--navy)}.dashboard-style-option.selected{border-color:var(--customer-primary,#0e4c92);box-shadow:0 0 0 3px color-mix(in srgb,var(--customer-primary,#0e4c92) 15%,transparent)}.dashboard-style-option strong,.dashboard-style-option small{display:block}.dashboard-style-option small{color:var(--muted);margin-top:4px}.mini-layout{height:58px;border-radius:9px;display:block;margin-bottom:9px;position:relative;overflow:hidden}.mini-layout:after{content:"★★★★★";position:absolute;left:50%;top:50%;transform:translate(-50%,-15%);font-size:12px;letter-spacing:2px}.classic-mini{background:linear-gradient(135deg,#0d1726,#1b4e7d);color:#e8bd49}.clean-mini{background:#f7f9fc;border:1px solid #e5e9ef;color:#2474c6}.bold-mini{background:linear-gradient(90deg,#12243d 0 45%,#f5f8fb 45%);color:#2474c6}.design-color-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.design-color-grid label{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--line);padding:10px;border-radius:10px;font-size:12px;font-weight:700}.design-color-grid input[type=color]{width:38px;height:32px;border:0;padding:0;background:transparent;cursor:pointer}.design-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.design-actions .primary-action-btn{width:auto;margin:0}.review-design-settings .secondary-action-link{white-space:nowrap}
@media(max-width:900px){.dashboard-style-options{grid-template-columns:1fr}.design-color-grid{grid-template-columns:1fr 1fr}}

/* Step 16D — live review-page preview */
.review-design-workspace{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(360px,1.15fr);gap:22px;align-items:start;margin-top:18px}.review-design-workspace .design-color-grid{grid-template-columns:1fr 1fr;margin-top:0}.review-live-preview-wrap{min-width:0}.review-live-preview-label{font-size:11px;font-weight:900;letter-spacing:.16em;color:var(--muted);margin-bottom:8px}.dashboard-review-preview{--preview-primary:#2474c6;--preview-secondary:#d4af37;--preview-background:#0d1726;--preview-text:#fff;min-height:330px;border-radius:22px;overflow:hidden;position:relative;color:var(--preview-text);background:radial-gradient(circle at 78% 10%,color-mix(in srgb,var(--preview-primary) 75%,transparent),transparent 42%),radial-gradient(circle at 4% 75%,color-mix(in srgb,var(--preview-secondary) 50%,transparent),transparent 45%),var(--preview-background);border:1px solid color-mix(in srgb,var(--preview-primary) 28%,transparent);box-shadow:0 18px 42px rgba(16,35,56,.16);padding:26px}.dashboard-review-preview .preview-brand-pane{display:flex;flex-direction:column;align-items:center;text-align:center}.dashboard-review-preview img{width:78px;height:78px;object-fit:contain;border-radius:16px;background:#fff;padding:6px;box-shadow:0 8px 22px rgba(0,0,0,.16)}.dashboard-preview-copy h3{font-size:13px;margin:10px 0 16px;font-weight:800;color:var(--preview-text);opacity:.92}.dashboard-preview-copy h4{font-size:28px;line-height:1;margin:0;color:var(--preview-text);font-weight:1000;letter-spacing:-.045em}.dashboard-preview-copy p{font-size:12px;margin:10px 0 0;color:var(--preview-text);opacity:.75}.preview-rating-pane{margin:24px auto 0;max-width:430px;border-radius:18px;padding:20px 16px;text-align:center;background:color-mix(in srgb,var(--preview-text) 8%,transparent);border:1px solid color-mix(in srgb,var(--preview-primary) 48%,transparent);backdrop-filter:blur(7px)}.preview-rating-label{font-size:10px;font-weight:900;letter-spacing:.14em;color:var(--preview-primary)}.preview-live-stars{font-size:30px;letter-spacing:6px;color:var(--preview-primary);margin:10px 0 4px;text-shadow:0 0 16px color-mix(in srgb,var(--preview-primary) 40%,transparent)}.preview-live-helper{font-size:11px;color:var(--preview-text);opacity:.72}.preview-live-note{display:block;margin-top:8px;color:var(--muted);line-height:1.45}
.dashboard-review-preview[data-layout="clean"]{background:#f6f8fb;color:#17283e;border-color:#dde5ed}.dashboard-review-preview[data-layout="clean"] .preview-brand-pane{padding-top:3px}.dashboard-review-preview[data-layout="clean"] .dashboard-preview-copy h3,.dashboard-review-preview[data-layout="clean"] .dashboard-preview-copy h4,.dashboard-review-preview[data-layout="clean"] .dashboard-preview-copy p,.dashboard-review-preview[data-layout="clean"] .preview-live-helper{color:#17283e}.dashboard-review-preview[data-layout="clean"] .preview-rating-pane{background:#fff;border-color:#e1e7ee;box-shadow:0 12px 28px rgba(20,43,70,.08)}.dashboard-review-preview[data-layout="clean"] .preview-rating-label,.dashboard-review-preview[data-layout="clean"] .preview-live-stars{color:var(--preview-primary)}
.dashboard-review-preview[data-layout="bold"]{display:grid;grid-template-columns:.9fr 1.1fr;gap:18px;align-items:center;background:linear-gradient(105deg,var(--preview-background) 0 47%,color-mix(in srgb,var(--preview-background) 82%,var(--preview-primary)) 47% 100%)}.dashboard-review-preview[data-layout="bold"] .preview-brand-pane{align-items:flex-start;text-align:left}.dashboard-review-preview[data-layout="bold"] .preview-rating-pane{margin:0;max-width:none;width:auto;padding:28px 14px}.dashboard-review-preview[data-layout="bold"] .dashboard-preview-copy h4{font-size:34px}.dashboard-review-preview[data-layout="bold"] img{width:88px;height:88px}
@media(max-width:1050px){.review-design-workspace{grid-template-columns:1fr}.dashboard-review-preview{min-height:300px}}@media(max-width:650px){.review-design-workspace .design-color-grid{grid-template-columns:1fr}.dashboard-review-preview[data-layout="bold"]{display:block}.dashboard-review-preview[data-layout="bold"] .preview-brand-pane{align-items:center;text-align:center}.dashboard-review-preview[data-layout="bold"] .preview-rating-pane{margin-top:22px}}

.secondary-design-btn{border:1px solid var(--line);background:#fff;color:var(--navy);font-weight:800;border-radius:10px;padding:10px 14px;cursor:pointer}.secondary-design-btn:hover:not(:disabled){border-color:var(--customer-primary,#0e4c92);color:var(--customer-primary,#0e4c92)}.secondary-design-btn:disabled{opacity:.45;cursor:not-allowed}

/* Step 17 - unified customer analytics */
.analytics-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.analytics-panel{overflow:hidden}.range-tabs{display:flex;gap:6px;flex-wrap:wrap}.range-tabs button{border:1px solid #d9e2ec;background:#fff;color:#23344d;border-radius:999px;padding:8px 13px;font-weight:800;cursor:pointer}.range-tabs button.active{background:var(--customer-primary,#0e4c92);border-color:var(--customer-primary,#0e4c92);color:#fff}.analytics-chart{min-height:300px;border:1px solid #e3eaf2;border-radius:16px;background:#fbfdff;padding:12px;overflow-x:auto}.analytics-chart svg{width:100%;min-width:650px;height:auto;display:block}.chart-grid{stroke:#dfe7ef;stroke-width:1}.chart-label{font-size:12px;fill:#718096}.chart-line{fill:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.chart-line.scans{stroke:#2474c6}.chart-line.private{stroke:#d4af37}.chart-line.google{stroke:#0d1726}.analytics-legend{display:flex;gap:20px;flex-wrap:wrap;margin-top:14px;font-weight:700;font-size:14px;color:#526174}.analytics-legend span{display:flex;align-items:center;gap:7px}.legend-dot{width:11px;height:11px;border-radius:50%;display:inline-block}.legend-dot.scans{background:#2474c6}.legend-dot.private{background:#d4af37}.legend-dot.google{background:#0d1726}.chart-filter-note{margin-top:10px;font-size:13px;color:#59697e}.chart-filter-note button{border:0;background:none;color:var(--customer-primary,#0e4c92);font-weight:800;cursor:pointer;text-decoration:underline}
.customer-card-analytics{border:1px solid #dde6ef;border-radius:16px;padding:18px;background:#fff;display:grid;gap:14px}.customer-card-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.customer-card-head>div{display:grid;gap:4px}.customer-card-head span{color:#6a788c;font-size:13px}.card-tracking-url{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;background:#f7f9fc;border-radius:12px;padding:12px}.card-tracking-url>span{grid-column:1/-1;font-size:12px;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.04em}.card-tracking-url code{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#1d3557}.card-tracking-url button,.view-card-chart{border:0;border-radius:9px;padding:8px 12px;font-weight:800;cursor:pointer}.card-tracking-url button{background:#e9f2fb;color:#0e4c92}.view-card-chart{justify-self:start;background:#0e4c92;color:#fff}.card-metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.card-metric-grid>div{background:#f8fafc;border:1px solid #edf1f5;border-radius:12px;padding:12px}.card-metric-grid span{display:block;font-size:12px;color:#69778a;margin-bottom:5px}.card-metric-grid strong{font-size:24px;color:#13233a}
@media(max-width:900px){.analytics-stat-grid{grid-template-columns:repeat(2,1fr)}.card-metric-grid{grid-template-columns:1fr}.customer-card-head{align-items:flex-start}.card-tracking-url{grid-template-columns:1fr}.card-tracking-url button{justify-self:start}}

/* STEP 17D - analytics filtering + period navigation */
.analytics-controls{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:14px 0 8px}
.analytics-card-filter{display:grid;gap:6px;min-width:230px;font-weight:700;color:#0b2447}
.analytics-card-filter span{font-size:.82rem;text-transform:uppercase;letter-spacing:.05em;color:#5b6b80}
.analytics-card-filter select{min-height:44px;border:1px solid #cdd7e3;border-radius:10px;background:#fff;padding:0 12px;font:inherit;color:#0b2447}
.analytics-period-nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.analytics-period-nav button{border:1px solid #cdd7e3;background:#fff;color:#0b2447;border-radius:9px;padding:10px 13px;font-weight:800;cursor:pointer}
.analytics-period-nav button:disabled{opacity:.45;cursor:not-allowed}
.analytics-period-nav strong{min-width:130px;text-align:center;color:#0b2447}
@media(max-width:720px){.analytics-controls{align-items:stretch}.analytics-card-filter{width:100%}.analytics-period-nav{width:100%;justify-content:space-between}.analytics-period-nav strong{min-width:0;flex:1}}

/* STEP 17E - stable card numbers + multi-card graph selection */
.analytics-card-filter{display:grid;gap:8px;min-width:min(100%,560px);font-weight:700;color:#0b2447}
.analytics-card-filter>span{font-size:.82rem;text-transform:uppercase;letter-spacing:.05em;color:#5b6b80}
.analytics-card-picker{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.analytics-card-chip{border:1px solid #cdd7e3;background:#fff;color:#0b2447;border-radius:999px;padding:9px 12px;font-weight:800;cursor:pointer;line-height:1.2}
.analytics-card-chip:hover{border-color:#0e4c92}
.analytics-card-chip.selected{background:#0e4c92;color:#fff;border-color:#0e4c92;box-shadow:0 3px 10px rgba(14,76,146,.18)}
.analytics-card-filter small{color:#667788;font-weight:600}
.customer-card-analytics .card-metric-grid>div{min-width:0}
.customer-card-analytics .card-metric-grid strong{font-variant-numeric:tabular-nums}
@media(max-width:720px){.analytics-card-picker{display:grid;grid-template-columns:1fr}.analytics-card-chip{text-align:left;width:100%}}

/* STEP 17H - grouped bar analytics with category colors */
.chart-bar{shape-rendering:geometricPrecision}
.chart-bar.scans{fill:#2474c6!important}
.chart-bar.private{fill:#d4af37!important}
.chart-bar.google{fill:#0d1726!important}

/* Step 17M: clearer customer billing summary */
.billing-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0 22px}
.billing-summary-item{padding:14px;border:1px solid var(--line);border-radius:12px;background:#f8fbff}
.billing-summary-item span{display:block;color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}
.billing-summary-item strong{display:block;color:#102033;font-size:18px;line-height:1.25;overflow-wrap:anywhere}
.billing-details-heading{margin:0 0 2px;font-size:18px;color:#102033}
@media(max-width:700px){.billing-summary-grid{grid-template-columns:1fr}.billing-summary-item{padding:12px 14px}}
/* STEP 17P customer dashboard polish */
.feedback-tools{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 18px}.feedback-tools label{display:grid;gap:6px;font-weight:800;color:var(--navy)}.feedback-tools select{min-width:160px;border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:#fff;color:var(--navy);font:inherit}.reactivate-card-btn{border:0;border-radius:10px;padding:10px 14px;background:#d4af37;color:#162033;font-weight:900;cursor:pointer}.reactivate-card-btn:disabled{opacity:.55;cursor:not-allowed}.delivery-estimate{display:block;margin-top:4px;color:#0e63b7;font-weight:800}#testReviewCardBtn{flex-basis:100%;width:max-content}.dash-logo{overflow:hidden}.dash-logo img{max-height:none;max-width:none;width:215px;height:78px;object-fit:cover;object-position:center;transform:scale(1.12);-webkit-mask-image:radial-gradient(ellipse at center,#000 60%,rgba(0,0,0,.9) 75%,transparent 98%);mask-image:radial-gradient(ellipse at center,#000 60%,rgba(0,0,0,.9) 75%,transparent 98%)}

.reactivation-fee-note{color:#8a6410;font-weight:800}

/* STEP 17R */
.analytics-card-breakdown{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));border:1px solid #dfe6ef;border-radius:12px;overflow:hidden;margin:12px 0 2px;background:#fff}
.analytics-card-breakdown[hidden]{display:none}
.analytics-card-segment{padding:11px 14px;display:grid;gap:3px;border-right:1px solid #dfe6ef}
.analytics-card-segment:last-child{border-right:0}
.analytics-card-segment strong{color:#0d1726;font-size:.9rem}.analytics-card-segment span{font-size:.78rem;color:#5d6878}.analytics-card-segment span b{color:#0e4c92}
.reactivation-fee-billing-notice{margin:14px 0 2px;padding:13px 14px;border:1px solid #e7c35b;background:#fff8dc;border-radius:10px;display:grid;gap:4px;color:#513d00}
.reactivation-fee-billing-notice[hidden]{display:none}.reactivation-fee-billing-notice strong{font-size:.9rem}.reactivation-fee-billing-notice span{font-weight:700}.reactivation-fee-billing-notice small{line-height:1.4}
@media(max-width:650px){.analytics-card-breakdown{grid-template-columns:1fr 1fr}.analytics-card-segment:nth-child(2n){border-right:0}}


/* STEP 17Z1 login/header logo sizing fix */
.account-topbar a{display:flex;align-items:center}
.account-topbar img,.dash-logo img{width:230px!important;max-width:none!important;height:auto!important;max-height:46px!important;object-fit:contain!important;object-position:left center!important}
@media(max-width:900px){.account-topbar img,.dash-logo img{width:190px!important;max-height:38px!important}}


/* STEP 17Z2 rollback account header logo to original */
.account-topbar a{display:flex;align-items:center}
.account-topbar img,.dash-logo img{max-height:46px!important;max-width:200px!important;width:auto!important;height:auto!important;object-fit:contain!important;object-position:left center!important}


/* STEP 17ZE - customer Cards page uses approved demo-card layout */
#cardsList.customer-cards-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#cardsList.customer-cards-grid .large-empty{grid-column:1/-1}
.customer-card-demo-style{border:1px solid #dce4ec;border-radius:16px;padding:20px;background:#fff;display:grid;gap:14px;box-shadow:0 8px 20px rgba(15,35,60,.035)}
.customer-card-demo-style .card-status-flow{order:0;margin:0 0 2px}
.demo-style-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.customer-card-number{font-size:16px;font-weight:900;color:#102b4c}
.customer-card-title-block h3{margin:0;color:#102030;font-size:20px;line-height:1.25}
.customer-card-title-block p{margin:8px 0 0;color:#718096;font-size:13px;font-weight:600}
.demo-style-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.demo-style-metrics>div{display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;background:#f3f6f9;border:0;border-radius:10px;padding:10px 8px;min-height:58px}
.demo-style-metrics strong{font-size:18px!important;line-height:1.05;color:#102b4c!important;order:0}
.demo-style-metrics span{font-size:10px!important;margin:3px 0 0!important;color:#77879a!important;order:1}
.customer-card-demo-style .customer-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:1px}
.customer-card-demo-style .view-card-chart,.customer-card-demo-style .deactivate-card-btn,.customer-card-demo-style .reactivate-card-btn{min-height:42px;border-radius:10px;padding:9px 13px;font-weight:800;cursor:pointer}
.customer-card-demo-style .view-card-chart{background:#fff;color:#111;border:1px solid #cfd9e4;box-shadow:0 1px 2px rgba(0,0,0,.02)}
.customer-card-demo-style .deactivate-card-btn{border:1px solid #e2b8b8;background:#fff7f7;color:#a02c2c}
.customer-card-demo-style .reactivate-card-btn{border:0;background:var(--customer-primary);color:#fff}
.customer-card-demo-style .card-shipping-info{margin-top:2px;padding:11px 12px;border-radius:10px;background:#f7f9fc;color:#536779;font-size:12px;line-height:1.55}
@media(max-width:980px){#cardsList.customer-cards-grid{grid-template-columns:1fr}}
@media(max-width:520px){.demo-style-metrics{grid-template-columns:repeat(3,1fr)}.customer-card-demo-style{padding:16px}.customer-card-title-block h3{font-size:18px}}


/* STEP 17ZF fixed sidebar bottom link */
.customer-sidebar-logout{margin-top:18px!important}
.customer-back-link{display:block;margin-top:auto;padding:12px 14px;color:#c8d5e3;text-decoration:none;font-weight:700;font-size:13px}
.customer-back-link:hover{color:#fff}
@media(min-width:801px){.dash-sidebar{position:sticky;top:0;height:100vh;min-height:100vh;overflow-y:auto}}
@media(max-width:800px){.customer-back-link{margin-top:14px}.customer-sidebar-logout{margin-top:14px!important}}


/* STEP 17ZG: real Customer Dashboard no longer shows Back to website */
.customer-back-link{display:none!important}
