/* Digitapix Pages: store, dashboard and editor. Loaded after site.css. */
.flashes { margin-top: 16px; }
.mock { background: #fff; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; transform: rotate(1deg); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--soft); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.mock-bar span { margin-left: 10px; font-size: .78rem; color: var(--muted); background: #fff; padding: 3px 10px; border-radius: 6px; }
.mock-body { padding: 18px; display: grid; gap: 14px; }
.mock-hero { border-radius: 14px; padding: 22px; color: #fff; background: linear-gradient(135deg, #f97316, #db2777); }
.mock-hero h3 { font-size: 1.3rem; margin: 6px 0; }
.mock-hero p { margin: 0 0 12px; opacity: .9; font-size: .9rem; }
.mock-btn { display: inline-block; background: #fff; color: #0f172a; font-weight: 700; font-size: .82rem; padding: 8px 12px; border-radius: 8px; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-row div { height: 64px; border-radius: 10px; background: linear-gradient(135deg, #fde68a, #fca5a5); }
.mock-form { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.mock-form span { height: 30px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); }
.mock-form .mock-btn { height: auto; text-align: center; background: #db2777; color: #fff; border: 0; }

.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 36px; text-align: left; }
.tpl { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.tpl h3 { margin: 12px 0 2px; font-size: 1rem; }
.tpl p { margin: 0 0 10px; color: var(--muted); font-size: .88rem; }

/* tiny wireframe thumbnails of each template */
.tpl-thumb { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.tpl-thumb i, .tpl-thumb b, .tpl-thumb s, .tpl-thumb u { position: absolute; display: block; border-radius: 4px; }
.tpl-thumb i { left: 8%; top: 22%; width: 42%; height: 12%; background: #0f172a; }
.tpl-thumb b { left: 8%; top: 40%; width: 34%; height: 7%; background: #94a3b8; }
.tpl-thumb s { left: 8%; top: 58%; width: 20%; height: 12%; background: var(--accent); }
.tpl-thumb u { right: 8%; top: 18%; width: 34%; height: 64%; background: color-mix(in srgb, var(--accent) 18%, white); border: 1px solid var(--line); }
.tpl-centered { background: linear-gradient(rgba(15,23,42,.6), rgba(15,23,42,.6)), linear-gradient(135deg, #f59e0b, #4f46e5); }
.tpl-centered i { left: 25%; width: 50%; background: #fff; }
.tpl-centered b { left: 30%; width: 40%; background: #cbd5e1; }
.tpl-centered s { left: 40%; }
.tpl-centered u, .tpl-minimal u, .tpl-gradient u { display: none; }
.tpl-minimal i { height: 8%; width: 50%; top: 30%; }
.tpl-minimal s { border-radius: 99px; }
.tpl-split u { right: 0; top: 0; width: 46%; height: 100%; border-radius: 0; background: linear-gradient(135deg, #a5b4fc, #f0abfc); border: 0; }
.tpl-card { background: color-mix(in srgb, var(--accent) 14%, white); }
.tpl-card u { left: 6%; right: 6%; top: 12%; width: auto; height: 76%; background: #fff; }
.tpl-card i, .tpl-card b, .tpl-card s { z-index: 1; left: 14%; }
.tpl-bold { background: radial-gradient(circle at 80% 10%, #6366f1, #0b1020 60%); }
.tpl-bold i { background: #fff; }
.tpl-bold u { background: #121a33; border-color: #1e293b; }
.tpl-gradient { background: linear-gradient(135deg, #4f46e5, #ec4899, #f59e0b); }
.tpl-gradient i, .tpl-gradient s { background: #fff; }
.tpl-gradient b { background: rgba(255,255,255,.7); }
.tpl-elegant { background: #fbf6ee; border-color: #eadfd2; }
.tpl-elegant i { background: #3b2a1e; height: 10%; border-radius: 2px; }
.tpl-elegant b { background: #b8a594; }
.tpl-elegant s { border-radius: 2px; background: #3b2a1e; }
.tpl-elegant u { top: 12%; height: 76%; width: 30%; right: 10%; border: 0; border-radius: 999px 999px 6px 6px;
  background: linear-gradient(160deg, #e9d5bf, color-mix(in srgb, var(--accent) 30%, #d6b89a)); }

.period-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; background: #fff; border: 1px solid var(--line); margin-top: 8px; }
.period-toggle button { border: 0; background: none; font: inherit; font-weight: 700; padding: 8px 16px; border-radius: 99px; cursor: pointer; color: var(--muted); }
.period-toggle button.on { background: var(--accent); color: #fff; }

.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.dash-plan { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.field textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; resize: vertical; }
.field input[type=color] { padding: 4px; height: 46px; cursor: pointer; }
.locked { opacity: .55; }
.locked-note { font-size: .85rem; color: var(--muted); margin: -4px 0 14px; }

/* editor */
.editor-body footer { display: none; }
.editor { display: grid; grid-template-columns: 400px 1fr; height: calc(100vh - 65px); }
.ed-panel { overflow-y: auto; overflow-x: hidden; min-width: 0; border-right: 1px solid var(--line); padding: 16px 18px 40px; background: #fff; }
.ed-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 600; }
.ed-top a { text-decoration: none; }
.ed-sec { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.ed-sec summary { font-weight: 800; cursor: pointer; }
.ed-sec[open] summary { margin-bottom: 12px; }
.ed-save { position: sticky; bottom: -40px; background: #fff; padding: 10px 0; }
.ed-upload, .ed-publish { border: 1px dashed var(--line); border-radius: 12px; padding: 14px; margin-top: 12px; display: grid; gap: 10px; }
.ed-upload select, .ed-upload input[type=file] { font: inherit; font-size: .85rem; width: 100%; padding: 8px; border: 1.5px solid var(--line); border-radius: 10px; }
.tpl-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tpl-pick label { cursor: pointer; text-align: center; position: relative; }
.tpl-pick input { position: absolute; opacity: 0; }
.tpl-pick .tpl-thumb { border-width: 2px; }
.tpl-pick input:checked + .tpl-thumb { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.tpl-pick em { display: block; font-style: normal; font-size: .75rem; font-weight: 600; margin-top: 4px; }
.img-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.img-row img { max-height: 80px; margin: 6px 0; border-radius: 8px; border: 1px solid var(--line); }
.gal-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0; }
.gal-pick label { position: relative; }
.gal-pick input { position: absolute; top: 4px; left: 4px; }
.gal-pick img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.ed-preview { display: flex; flex-direction: column; background: #e2e8f0; min-width: 0; }
.ed-tools { display: flex; gap: 12px; align-items: center; padding: 10px 16px; background: #f1f5f9; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; font: inherit; font-size: .85rem; font-weight: 700; padding: 6px 12px; border-radius: 8px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--ink); color: #fff; }
.ed-status { margin-left: auto; font-size: .85rem; color: var(--muted); font-weight: 600; }
.ed-frame { flex: 1; display: flex; justify-content: center; padding: 16px; overflow: auto; }
.ed-frame iframe { width: 100%; height: 100%; min-height: 600px; border: 0; border-radius: 12px; background: #fff; box-shadow: var(--shadow); transition: width .25s; }
/* billing, report, perks */
.steps-list { padding-left: 20px; display: grid; gap: 8px; color: var(--muted); margin: 8px 0 16px; }
.steps-list b, .steps-list code { color: var(--ink); }
code { background: var(--soft); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.perks .grid3 { margin-top: 12px; align-items: start; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding: 8px 0 22px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.rbar { flex: 1 0 18px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.rbar i { display: block; width: 100%; height: var(--h); min-height: 3px; background: var(--accent); border-radius: 4px 4px 0 0; }
.rbar span { position: absolute; bottom: -20px; font-size: .7rem; color: var(--muted); }
@media print {
  .rbar i { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .noprint, header.bar, footer, .flashes { display: none !important; }
}

/* optimisation */
.opt-card summary { display: flex; align-items: center; gap: 12px; list-style: none; }
.opt-card summary::-webkit-details-marker { display: none; }
.opt-card summary small { display: block; font-weight: 600; color: var(--muted); font-size: .78rem; }
.opt-ring { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), #e2e8f0 0); }
.opt-ring b { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: .9rem; }
.opt-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; font-size: .85rem; }
.opt-list li { display: flex; gap: 8px; color: var(--ink); }
.opt-list li::before { content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: #fff; background: #f59e0b; margin-top: 1px; }
.opt-list li.ok { color: var(--muted); text-decoration: line-through; text-decoration-color: #cbd5e1; }
.opt-list li.ok::before { content: "✓"; background: #16a34a; }
.order-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.order-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.order-list .check { color: var(--ink); font-size: .88rem; }
.mv { border: 1px solid var(--line); background: #fff; border-radius: 6px; width: 28px; height: 28px; cursor: pointer; font-weight: 800; margin-left: 4px; }
.count { float: right; font-weight: 600; }
.serp { border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-family: Arial, sans-serif; display: grid; gap: 2px; }
.serp-url { font-size: .78rem; color: #4d5156; }
.serp-title { color: #1a0dab; font-weight: 400; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-desc { font-size: .82rem; color: #4d5156; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 900px) {
  .editor { grid-template-columns: 1fr; height: auto; }
  .ed-panel { border-right: 0; }
  .ed-frame iframe { height: 80vh; }
}

/* pay-first checkout: cart, payment, account */
.steps-bar { display: flex; gap: 8px; justify-content: center; margin: 0 0 16px; font-size: .9rem; color: var(--muted); }
.steps-bar span { padding: 4px 12px; border-radius: 999px; background: #f1f5f9; }
.steps-bar span.on { background: #4f46e5; color: #fff; font-weight: 700; }
.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.choice-row.two-col { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.choice { display: block; padding: 12px 14px; border: 2px solid #e2e8f0; border-radius: 12px; color: inherit; text-decoration: none; cursor: pointer; }
.choice small { display: block; color: var(--muted); margin-top: 2px; }
.choice.on { border-color: #4f46e5; background: #eef2ff; }
.choice input[type=radio] { margin-right: 4px; }
.cart-sum { margin: 16px 0 8px; width: 100%; }
.err { display: block; color: #b91c1c; font-weight: 600; margin-top: 4px; }

/* Email / automation app picker: tiles that open a large dialog */
.app-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 14px; }
.app-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.app-tile:hover, .app-tile:focus-visible { border-color: #a5b4fc; box-shadow: 0 10px 24px -14px rgba(79, 70, 229, .5); transform: translateY(-2px); outline: none; }
.app-tile b { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.app-tile small { color: #334155; font-size: .98rem; line-height: 1.5; flex: 1; }
.app-tags { display: flex; gap: 6px; flex-wrap: wrap; min-height: 22px; }
.app-tags .pill.any, .app-dlg .pill.any { background: #ede9fe; color: #5b21b6; }
.app-go { color: var(--accent); font-weight: 800; font-size: 1rem; }
.app-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: #fff; font-weight: 800; font-size: 1.25rem; flex: none; background: #64748b; }
.app-brevo { background: #0b996e; } .app-mailerlite { background: #09c269; } .app-mailchimp { background: #e5b700; color: #241c15; }
.app-kit { background: #fb6970; } .app-zapier { background: #ff4f00; } .app-make { background: #6d00cc; } .app-pabbly { background: #1f8bf5; }
.app-webhook { background: #334155; }
.app-dlg { width: min(820px, calc(100vw - 32px)); max-height: min(88vh, 900px); border: 0; border-radius: 18px; padding: 24px 28px; box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .45); color: var(--ink); }
.app-dlg::backdrop { background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px); }
.app-dlg-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.app-dlg-head > div { flex: 1; }
.app-x { border: 0; background: #f1f5f9; width: 36px; height: 36px; border-radius: 10px; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--muted); }
.app-x:hover { background: #e2e8f0; }
.app-steps { margin: 0 0 16px 20px; padding: 0; color: var(--muted); }
.app-steps li { margin-bottom: 8px; line-height: 1.5; }
.app-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
@media (max-width: 560px) { .app-dlg { padding: 18px; } .app-form { flex-direction: column; align-items: stretch; } }

.costs-note { color: var(--muted); font-size: .95rem; line-height: 1.6; margin: 20px 0 6px; }
.costs-note.warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 12px; padding: 16px 20px; margin: 20px 0 22px; font-size: 1.02rem; font-weight: 600; line-height: 1.7; }


/* Ad performance */
.perf-page { padding-top: 24px; padding-bottom: 60px; }
.perf-period { display: flex; gap: 8px; align-items: center; }
.perf-period select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.perf-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.perf-kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.perf-kpi small { display: block; color: var(--muted); font-weight: 600; font-size: .82rem; }
.perf-kpi b { display: block; font-size: 1.6rem; margin-top: 2px; }
.perf-kpi em { display: block; font-style: normal; color: var(--muted); font-size: .75rem; margin-top: 2px; }
.perf-kpi.accent { background: linear-gradient(135deg, #eef2ff, #fff); border-color: #c7d2fe; }
.perf-kpi.accent b { color: #4338ca; }
.perf-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.perf-chart { padding: 18px 20px; }
.perf-chart h3 { margin: 0 0 12px; font-size: 1.05rem; }
.perf-bar-row { display: grid; grid-template-columns: minmax(80px, 140px) 1fr auto; gap: 10px; align-items: center; margin-bottom: 8px; font-size: .88rem; }
.perf-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.perf-bar { height: 12px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.perf-bar i { display: block; height: 100%; background: linear-gradient(90deg, #6366f1, #4f46e5); border-radius: 999px; min-width: 2px; }
.perf-bar.cost i { background: linear-gradient(90deg, #f59e0b, #ea580c); }
.perf-table td small { font-weight: 600; }
.perf-table .total-row td { font-weight: 800; border-top: 2px solid var(--line); }
.perf-table .warn-row td { background: #fffbeb; }
.perf-table .warn-row small { color: #b45309; }
.perf-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 28px; align-items: start; }
.perf-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.perf-form label { display: block; font-size: .82rem; font-weight: 700; }
.perf-form label.full { grid-column: 1 / -1; }
.perf-form input, .perf-form select { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400; background: #fff; }
.perf-link { display: flex; gap: 10px; align-items: center; margin-top: 12px; background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.perf-link code { flex: 1; min-width: 0; word-break: break-all; font-size: .82rem; }
.perf-code { display: block; background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 10px 12px; font-size: .8rem; word-break: break-all; }
.perf-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 8px 24px -18px rgba(15, 23, 42, .4); }
.perf-card:hover { border-color: #a5b4fc; }
.perf-card-title { flex: 1 1 220px; }
.perf-card-title small { display: block; color: var(--muted); }
.perf-mini small { display: block; color: var(--muted); font-size: .75rem; font-weight: 600; }
.perf-mini b { font-size: 1.15rem; }
.pay-others { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 6px; }
.pay-others .note { margin: 0; }
.forgot-link { display: inline-block; margin-top: 6px; font-size: .88rem; font-weight: 600; }
.integrations-intro { font-size: 1.05rem; line-height: 1.7; color: #334155; margin: 14px 0 0; max-width: 72ch; }


/* Shared small pieces (Performance page) */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.mini-btn { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 9px; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; color: var(--ink); }
.mini-btn:hover:not([disabled]) { background: #f8fafc; border-color: #cbd5e1; }
.mini-btn[disabled] { opacity: .35; cursor: default; }
.mini-btn.danger { color: #b91c1c; }
.page-back { font-size: .9rem; color: var(--muted); text-decoration: none; } .page-back:hover { color: var(--accent); }

/* Lead status on the Leads page */
.lead-status { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.lead-status select, .lead-status input { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .88rem; background: #fff; }
.lead-status input { width: 100px; }
tr.lead-won td { background: #f0fdf4; }
tr.lead-lost td { color: #94a3b8; }

.perf-kpi.win b { color: #15803d; }
.perf-kpi em a { color: inherit; }
.perf-bar.stack { display: flex; }
.perf-bar.stack i { border-radius: 0; min-width: 0; }
.perf-bar.stack i:first-child { border-radius: 999px 0 0 999px; }
.perf-bar.stack i:last-child { border-radius: 0 999px 999px 0; }
.perf-bar .form, .perf-legend .form { background: #4f46e5; }
.perf-bar .tap, .perf-legend .tap { background: #22c55e; }
.perf-legend .win { background: #15803d; border-radius: 50%; }
.perf-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: -6px 0 10px; font-size: .8rem; }
.perf-legend .lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 6px; }
.won-count { color: #15803d; font-weight: 700; }

/* Renewal reminder banner (dashboard, Plan & billing) */
.renew-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 0; padding: 14px 18px; border-radius: 14px; font-weight: 700; font-size: 1rem; border: 1px solid; }
.renew-banner.soon { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.renew-banner.overdue, .renew-banner.offline { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* Performance preview on Basic */
.locked-val { color: #94a3b8; font-weight: 700; letter-spacing: .05em; white-space: nowrap; }
.perf-upsell { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 18px 0 4px; padding: 18px 22px; border-radius: 16px; border: 2px solid #a5b4fc; background: linear-gradient(120deg, #e0e7ff, #f5f3ff 60%, #fff); }
.perf-upsell > div { flex: 1 1 320px; }
.perf-upsell b:first-child { font-size: 1.15rem; color: #312e81; }
.perf-upsell p { margin: 6px 0 0; color: #334155; line-height: 1.55; }
.perf-locked-tools { margin-top: 28px; }
.perf-mini .locked-val { font-size: .95rem; }

/* Premium upgrade nudges */
.upgrade-nudge { margin: 6px 0 0; padding: 10px 14px; border-radius: 12px; background: #eef2ff; border: 1px solid #c7d2fe; color: #312e81; font-size: .95rem; text-align: left; }
.upgrade-card { border: 2px solid #c7d2fe; background: linear-gradient(120deg, #eef2ff, #fff); }
.upgrade-card p { margin: 6px 0; }
.history-nudge { font-size: .85rem; font-weight: 700; color: #4338ca; text-decoration: none; white-space: nowrap; }
.history-nudge:hover { text-decoration: underline; }

/* Help centre, tickets and team queue */
.help-page { padding-top: 24px; padding-bottom: 60px; }
.help-hero { text-align: center; padding: 18px 0 8px; }
.help-hero h1 { margin: 0 0 6px; }
.help-ask { display: flex; gap: 10px; max-width: 640px; margin: 14px auto 0; }
.help-ask input { flex: 1; font: inherit; font-size: 1.05rem; padding: 13px 16px; border: 2px solid #c7d2fe; border-radius: 14px; }
.help-ask input:focus { outline: none; border-color: #6366f1; }
#help-answers { max-width: 760px; margin: 18px auto 0; }
.help-answer { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-top: 12px; box-shadow: 0 8px 24px -20px rgba(15, 23, 42, .5); }
.help-answer h3 { margin: 0 0 6px; }
.help-body p { margin: 6px 0; line-height: 1.6; }
.help-body ul { margin: 6px 0 6px 20px; padding: 0; }
.help-body li { margin-bottom: 4px; line-height: 1.55; }
.help-solved { margin-top: 10px; padding-top: 10px; border-top: 1px solid #f1f5f9; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 600; }
.help-none { text-align: center; color: var(--muted); }
.help-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.help-cats { display: grid; gap: 10px; }
.help-cat { padding: 14px 18px; }
.help-cat summary { cursor: pointer; }
.help-cat ul { margin: 10px 0 0 18px; padding: 0; }
.help-cat li { margin-bottom: 6px; }
@media (max-width: 860px) { .help-grid { grid-template-columns: minmax(0, 1fr); } }
.thread { display: grid; gap: 12px; margin-top: 16px; }
.msg { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; background: #fff; }
.msg-customer { border-left: 4px solid #6366f1; }
.msg-staff { border-left: 4px solid #15803d; background: #f0fdf4; }
.msg-system { background: #f8fafc; font-size: .9rem; }
.msg-internal { border-left: 4px solid #f59e0b; background: #fffbeb; }
.msg-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.msg-body { white-space: pre-wrap; line-height: 1.55; }
.msg-shot { max-width: 260px; max-height: 200px; border-radius: 10px; border: 1px solid var(--line); margin-top: 8px; }
.pill.status-open, .pill.status-in_progress { background: #dbeafe; color: #1e40af; }
.pill.status-waiting { background: #fef3c7; color: #92400e; }
.pill.status-resolved, .pill.status-closed { background: #dcfce7; color: #166534; }
.pill.prio-high { background: #ede9fe; color: #5b21b6; }
.pill.prio-normal { background: #e0f2fe; color: #075985; }
.pill.prio-low { background: #f1f5f9; color: #475569; }
.queue-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0 10px; }
.queue-tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; background: #fff; }
.queue-tabs a.on { background: #4f46e5; color: #fff; border-color: #4f46e5; }
tr.overdue-row td { background: #fef2f2; }
.overdue-text { color: #b91c1c; }
.overdue-kpi { border-color: #fecaca; background: #fef2f2; }
.overdue-kpi b { color: #b91c1c; }

/* Setup brief and review */
.setup-form h3 { margin: 18px 0 6px; }
.setup-form h3:first-of-type { margin-top: 0; }
.setup-review { margin-top: 16px; border: 2px solid #a5b4fc; background: linear-gradient(120deg, #eef2ff, #fff); }
.acting-banner { background: #fef3c7; color: #92400e; font-weight: 700; padding: 10px 16px; text-align: center; border-bottom: 1px solid #fde68a; }

/* store: "Everything a local business needs" band */
.feat-band { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, white), #fff 85%); border-top: 1px solid color-mix(in srgb, var(--accent) 14%, white); padding: 88px 0; }
.feat-eyebrow { display: inline-block; padding: 6px 14px; border-radius: 99px; background: #fff; border: 1px solid color-mix(in srgb, var(--accent) 25%, white);
  color: var(--accent); font-weight: 700; font-size: .82rem; letter-spacing: .02em; margin-bottom: 14px; }
.feat-band h2 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.03em; }
.feat-band .lead-text { max-width: 620px; margin-inline: auto; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; text-align: left; }
@media (max-width: 1000px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; gap: 14px; } .feat-band { padding: 64px 0; } }
.feat { --c: var(--accent); position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px 22px 24px;
  box-shadow: 0 18px 40px -28px rgba(15, 23, 42, .35); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; overflow: hidden; }
.feat::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); }
.feat:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -26px rgba(15, 23, 42, .45); border-color: color-mix(in srgb, var(--c) 35%, white); }
.feat .ico { font-size: 1.7rem; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; margin-bottom: 16px;
  background: color-mix(in srgb, var(--c) 14%, white); }
.feat h3 { margin: 0 0 6px; font-size: 1.12rem; }
.feat p { margin: 0; color: var(--muted); font-size: .95rem; }
.feat.c1 { --c: #8b5cf6; } .feat.c2 { --c: #e11d48; } .feat.c3 { --c: #16a34a; } .feat.c4 { --c: #f97316; }
.feat.c5 { --c: #0ea5e9; } .feat.c6 { --c: #4f46e5; } .feat.c7 { --c: #d97706; } .feat.c8 { --c: #0d9488; }
.feat-cta { margin-top: 40px; }
@media (prefers-reduced-motion: reduce) { .feat { transition: none; } .feat:hover { transform: none; } }

/* store: free demo lead capture (inline band, pop-up, exit intent, mobile bar) */
.tpl-thumb { cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
a.tpl-thumb:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(15, 23, 42, .5); }
.tpl-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tpl-cta { font-weight: 700; font-size: .9rem; text-decoration: none; }
.tpl-cta:hover { text-decoration: underline; }
.demo-band { background: linear-gradient(135deg, #140f33, #2a1a7a 55%, #4f2bea); color: #fff; padding: 88px 0; }
.demo-band .lead-text, .demo-band .ticks li { color: #e0dcff; }
.demo-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.03em; }
.demo-band .feat-eyebrow { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #5eead4; }
.demo-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; gap: 28px; } .demo-band { padding: 64px 0; } }
.demo-card { color: var(--ink); padding: 26px; border-radius: 20px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.demo-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.demo-q { font-weight: 800; font-size: 1.02rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 0; }
.demo-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .85rem; flex: none; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.demo-chips .chip { position: relative; cursor: pointer; }
.demo-chips .chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.demo-chips .chip span { display: inline-block; padding: 9px 14px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .9rem; transition: all .15s; }
.demo-chips .chip:hover span { border-color: color-mix(in srgb, var(--accent) 50%, white); }
.demo-chips .chip input:checked + span, .demo-chips .chip.on span { background: var(--accent); border-color: var(--accent); color: #fff; }
.demo-chips .chip input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 40%, white); outline-offset: 2px; }
.demo-form.js-steps:not(.step2) .demo-step2 { display: none; }
.demo-form.js-steps.step2 .demo-step1 .demo-chips { margin-bottom: 14px; }
.demo-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .demo-two { grid-template-columns: 1fr; gap: 0; } }
.demo-design { margin: -4px 0 10px; font-weight: 700; color: var(--accent); }
.demo-consent { font-size: .85rem; margin: 6px 0 14px; }
.demo-err { color: #b91c1c; font-weight: 600; margin: 10px 0 0; }
.demo-fine { color: var(--muted); font-size: .82rem; text-align: center; margin: 10px 0 0; }
.demo-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demo-done { text-align: center; padding: 10px 4px; }
.demo-tick { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: #dcfce7; color: #15803d; font-size: 1.6rem; font-weight: 800; }
.btn.wa { background: #16a34a; }
.demo-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 12, 40, .62); display: grid; place-items: center; padding: 16px; animation: demo-fade .18s ease; }
.demo-modal[hidden] { display: none; }
.demo-dialog { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: #fff; color: var(--ink); border-radius: 22px; padding: 28px 26px 24px; box-shadow: 0 50px 100px -30px rgba(0,0,0,.6); animation: demo-rise .22s ease; }
.demo-dialog h2 { font-size: 1.55rem; margin: 6px 0 6px; letter-spacing: -.02em; }
.demo-dialog .note { margin: 0 0 18px; }
.demo-x { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f1f5f9; font-size: 1.4rem; line-height: 1; cursor: pointer; color: #334155; }
.demo-x:hover { background: #e2e8f0; }
html.demo-open { overflow: hidden; }
@keyframes demo-fade { from { opacity: 0; } }
@keyframes demo-rise { from { transform: translateY(16px); opacity: 0; } }
@media (max-width: 560px) { .demo-modal { place-items: end center; padding: 0; } .demo-dialog { border-radius: 22px 22px 0 0; max-height: 92dvh; padding: 24px 18px 20px; } }
.demo-bar { display: none; }
@media (max-width: 700px) {
  .demo-bar:not([hidden]) { display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 900; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 10px 10px 16px; border-radius: 16px; background: #14112b; color: #fff; box-shadow: 0 20px 40px -16px rgba(0,0,0,.6); font-size: .9rem; animation: demo-rise .2s ease; }
}
@media (prefers-reduced-motion: reduce) { .demo-modal, .demo-dialog, .demo-bar { animation: none !important; } a.tpl-thumb:hover { transform: none; } }
