:root {
  --mps-navy: #071a33;
  --mps-blue: #1769ff;
  --mps-sky: #25b8ff;
  --mps-green: #16b978;
  --mps-orange: #f97316;
  --mps-bg: #f5f8fc;
  --mps-border: #e2e8f2;
  --bs-primary: var(--mps-blue);
  --bs-primary-rgb: 23, 105, 255;
  --bs-link-color: var(--mps-blue);
  --bs-link-hover-color: #0f4fcc;
  --bs-body-bg: var(--mps-bg);
  --bs-body-color: #16233a;
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.btn-primary { --bs-btn-bg: var(--mps-blue); --bs-btn-border-color: var(--mps-blue); --bs-btn-hover-bg: #0f4fcc; --bs-btn-hover-border-color: #0f4fcc; --bs-btn-active-bg: #0c43b0; }
.btn-outline-primary { --bs-btn-color: var(--mps-blue); --bs-btn-border-color: var(--mps-blue); --bs-btn-hover-bg: var(--mps-blue); --bs-btn-hover-border-color: var(--mps-blue); }
:focus-visible { outline: 3px solid var(--mps-sky); outline-offset: 2px; }

.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.1rem; color: var(--mps-navy); text-decoration: none; letter-spacing: -.01em; }
.brand-dot { color: var(--mps-blue); font-weight: 600; }
.app-sidebar .brand, .app-sidebar .brand-dot { color: #fff; }
.app-sidebar .brand-dot { color: var(--mps-sky); }

/* Auth */
.auth-body { background: radial-gradient(1200px 500px at 50% -10%, #dfeaff 0%, var(--mps-bg) 60%); min-height: 100vh; }
.auth-wrap { max-width: 460px; margin: 0 auto; padding: 2rem 1rem 3rem; }
.auth-brand { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.auth-card { background: #fff; border: 1px solid var(--mps-border); border-radius: 16px; padding: 1.75rem; box-shadow: 0 10px 30px rgba(7, 26, 51, .07); }
.auth-card h1 { font-size: 1.45rem; font-weight: 700; color: var(--mps-navy); margin-bottom: .35rem; }
.auth-foot { text-align: center; margin-top: 1rem; font-size: .85rem; color: #5b6b85; }

/* Public site */
.site-header { background: #fff; border-bottom: 1px solid var(--mps-border); }
.site-footer { border-top: 1px solid var(--mps-border); background: #fff; color: #5b6b85; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: var(--mps-navy); letter-spacing: -.02em; }
.hero .accent { color: var(--mps-blue); }
.tag-line { font-weight: 600; color: var(--mps-green); letter-spacing: .02em; }
.feature-card { background: #fff; border: 1px solid var(--mps-border); border-radius: 14px; padding: 1.25rem; height: 100%; }
.legal-banner { background: #fff7ed; border: 1px solid #fed7aa; border-left: 4px solid var(--mps-orange); border-radius: 8px; padding: .85rem 1rem; }

/* App shell */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar { width: 250px; flex: 0 0 250px; background: var(--mps-navy); color: #cfe0ff; padding: 1rem; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.sidebar-nav { display: flex; flex-direction: column; gap: .15rem; }
.sidebar-nav a { color: #cfe0ff; text-decoration: none; padding: .6rem .8rem; border-radius: 8px; font-weight: 500; }
.sidebar-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sidebar-nav a.active { background: var(--mps-blue); color: #fff; }
.sidebar-note { font-size: .78rem; color: #8ea6cf; margin-top: 1.5rem; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar { display: flex; align-items: center; gap: .75rem; padding: .75rem 1.25rem; background: #fff; border-bottom: 1px solid var(--mps-border); position: sticky; top: 0; z-index: 10; }
.app-content { padding: 1.5rem 1.25rem 3rem; max-width: 1180px; width: 100%; }
@media (max-width: 991.98px) {
  .app-sidebar.offcanvas-lg { background: var(--mps-navy); }
  .app-content { padding: 1rem; }
}

.stat-card { background: #fff; border: 1px solid var(--mps-border); border-radius: 14px; padding: 1.1rem 1.25rem; }
.stat-card .value { font-size: 1.9rem; font-weight: 800; color: var(--mps-navy); line-height: 1.1; }
.stat-card .label { color: #5b6b85; font-size: .85rem; }
.panel { background: #fff; border: 1px solid var(--mps-border); border-radius: 14px; padding: 1.25rem; }
.panel h2 { font-size: 1.05rem; font-weight: 700; color: var(--mps-navy); }
.empty-state { text-align: center; color: #5b6b85; padding: 1.5rem 1rem; }

/* Tables become cards on small screens */
@media (max-width: 767.98px) {
  .table-cards thead { display: none; }
  .table-cards tr { display: block; border: 1px solid var(--mps-border); border-radius: 10px; margin-bottom: .75rem; padding: .5rem .75rem; background: #fff; }
  .table-cards td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .3rem 0; }
  .table-cards td::before { content: attr(data-label); font-weight: 600; color: #5b6b85; }
}

.password-wrap { position: relative; }
.password-toggle { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); }

.narrow-640 { max-width: 640px; }
.panel-narrow { max-width: 640px; }

/* Website builder */
.tpl-card { cursor: pointer; }
.tpl-card:has(input:checked) { outline: 3px solid var(--mps-blue); }
.preview-stage { background: #e8edf5; border: 1px solid var(--mps-border); border-radius: 14px; padding: 1rem; display: flex; justify-content: center; }
.preview-frame { border: 0; background: #fff; height: 75vh; width: 100%; border-radius: 8px; box-shadow: 0 6px 24px rgba(7, 26, 51, .15); }
.preview-tablet { max-width: 820px; }
.preview-mobile { max-width: 390px; }

/* Inventory & CRM */
.thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; }
.thumb-lg { width: 160px; height: 120px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: .4rem; }
.board { display: flex; gap: .9rem; overflow-x: auto; padding-bottom: 1rem; align-items: flex-start; }
.board-col { flex: 0 0 270px; background: #eef3fa; border: 1px solid var(--mps-border); border-radius: 12px; padding: .7rem; }
.board-head { font-size: .95rem; font-weight: 700; color: var(--mps-navy); margin-bottom: .6rem; }
.board-card { background: #fff; border: 1px solid var(--mps-border); border-radius: 10px; padding: .65rem .75rem; margin-bottom: .6rem; }
.report-bar { width: 100%; height: .6rem; accent-color: var(--mps-blue); }
.timeline li:last-child { border-bottom: 0 !important; }
/* Billing */
.plan-card { background: #fff; border: 1px solid var(--mps-border); border-radius: 14px; padding: 1.25rem; height: 100%; }
.plan-card.current { border: 2px solid var(--mps-blue); }
.plan-price { font-size: 1.7rem; font-weight: 800; color: var(--mps-navy); }
.meter { width: 100%; height: .6rem; accent-color: var(--mps-blue); }
.meter.warn { accent-color: var(--mps-orange); }

/* Analytics bar chart (SVG; geometry is set by attributes because inline styles are blocked by the CSP) */
.chart-bar { fill: var(--mps-blue); }
.chart-bar:hover { fill: var(--mps-navy, #071A33); }

.serp { border: 1px solid var(--mps-border); border-radius: 10px; padding: .9rem 1rem; background: #fff; max-width: 40rem; }
.serp-title { color: #1a0dab; font-size: 1.15rem; line-height: 1.3; }
.serp-url { color: #006621; font-size: .8rem; word-break: break-all; }
.serp-desc { color: #4d5156; font-size: .88rem; }


/* ====================================================================================================================
   Design refresh (v2): tokens, icons, buttons, forms, tables, app shell, dashboard, landing, auth, empty states.
   Everything is class-based (the CSP forbids inline styles). Tokens live in :root so the theme can be reused: see scripts/export-theme.php.
   ==================================================================================================================== */
:root {
  --mps-violet: #7c5cff;
  --mps-ink: #16233a;
  --mps-muted: #52617a;
  --mps-radius: 14px;
  --mps-radius-sm: 10px;
  --mps-shadow-sm: 0 1px 2px rgba(7, 26, 51, .06), 0 2px 8px rgba(7, 26, 51, .04);
  --mps-shadow-md: 0 8px 28px rgba(7, 26, 51, .10);
  --mps-gradient: linear-gradient(135deg, #1769ff 0%, #25b8ff 100%);
  --mps-sidebar: linear-gradient(180deg, #071a33 0%, #0b2850 100%);
  --bs-border-radius: .65rem;
}
body { color: var(--mps-ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { letter-spacing: -.015em; }
a { text-underline-offset: 2px; }

/* Icons */
.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; flex: none; }
.icon-lg { width: 1.5em; height: 1.5em; }
.icon-xl { width: 2em; height: 2em; }

/* Buttons and forms */
.btn { border-radius: var(--mps-radius-sm); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; transition: background-color .15s, box-shadow .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary { box-shadow: 0 2px 6px rgba(23, 105, 255, .28); }
.btn-lg { padding: .8rem 1.4rem; font-size: 1.05rem; }
.btn-accent { background: var(--mps-green); border-color: var(--mps-green); color: #04301f; }
.btn-accent:hover { background: #12a368; border-color: #12a368; color: #04301f; }
.btn-ghost-light { color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.form-control, .form-select { border-radius: var(--mps-radius-sm); border-color: #cfd9ea; }
.form-control:focus, .form-select:focus { border-color: var(--mps-blue); box-shadow: 0 0 0 .22rem rgba(23, 105, 255, .18); }
.form-label { font-weight: 600; color: var(--mps-ink); }
.badge { font-weight: 600; letter-spacing: .01em; }

/* Panels, stats, tables */
.panel, .stat-card, .feature-card, .plan-card { box-shadow: var(--mps-shadow-sm); border-radius: var(--mps-radius); }
.panel h2 { display: flex; align-items: center; gap: .5rem; }
.stat-card { display: flex; gap: .9rem; align-items: center; height: 100%; }
.stat-card .value { font-size: 1.65rem; }
.stat-card > div:last-child { min-width: 0; }
.stat-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: #e6efff; color: var(--mps-blue); }
.stat-icon .icon { width: 22px; height: 22px; }
.tone-green { background: #dcf7ea; color: #0b7a4f; }
.tone-orange { background: #ffeadb; color: #b4500c; }
.tone-sky { background: #dff4ff; color: #0a6c9e; }
.tone-violet { background: #ece7ff; color: #5233d6; }
.tone-navy { background: #dde5f2; color: var(--mps-navy); }
.table > thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--mps-muted); font-weight: 700; border-bottom-width: 1px; background: #f8fafd; }
.table-hover > tbody > tr:hover > * { background: #f3f7ff; }
.empty-card { text-align: center; padding: 2rem 1rem; }
.empty-card img { max-width: 100%; height: auto; }

/* App shell */
.app-sidebar { background: var(--mps-sidebar); padding: 1rem .85rem; }
.app-sidebar.offcanvas-lg { background: var(--mps-sidebar); }
.sidebar-nav { gap: 0; }
.nav-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: #7f9bc9; margin: 1.1rem .8rem .35rem; font-weight: 700; }
.nav-label:first-child { margin-top: .2rem; }
.sidebar-nav a { display: flex; align-items: center; gap: .65rem; color: #c3d5f5; padding: .52rem .8rem; border-radius: 10px; font-weight: 500; font-size: .93rem; }
.sidebar-nav a .icon { opacity: .85; }
.sidebar-nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.sidebar-nav a.active { background: var(--mps-blue); color: #fff; box-shadow: 0 4px 14px rgba(23, 105, 255, .45); }
.sidebar-nav a.active .icon { opacity: 1; }
.sidebar-note { color: #7f9bc9; }
.app-topbar { box-shadow: 0 1px 0 var(--mps-border); }
.topbar-org { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.topbar-org strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28vw; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border-radius: 10px; }
.icon-btn .badge { position: absolute; top: -5px; right: -5px; font-size: .62rem; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.page-head h1 { margin: 0; font-size: 1.55rem; font-weight: 800; color: var(--mps-navy); }

/* Dashboard */
.welcome { background: var(--mps-gradient); color: #fff; border-radius: var(--mps-radius); padding: 1.4rem 1.5rem; margin-bottom: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; box-shadow: var(--mps-shadow-md); position: relative; overflow: hidden; }
.welcome h1 { font-size: 1.5rem; font-weight: 800; margin: 0 0 .15rem; }
.welcome p { margin: 0; opacity: .92; }
.welcome::after { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.welcome .btn { position: relative; z-index: 1; }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.quick-actions a { background: #fff; border: 1px solid var(--mps-border); border-radius: var(--mps-radius); padding: .85rem 1rem; display: flex; align-items: center; gap: .7rem; color: var(--mps-ink); text-decoration: none; font-weight: 600; box-shadow: var(--mps-shadow-sm); transition: transform .12s, box-shadow .12s, border-color .12s; }
.quick-actions a:hover { transform: translateY(-2px); box-shadow: var(--mps-shadow-md); border-color: #b9ccf3; }
.progress-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.progress-steps li { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 10px; background: #f6f9ff; }
.progress-steps .dot { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; background: #fff; border: 2px solid #c7d6f2; color: transparent; }
.progress-steps .done { background: #effaf4; }
.progress-steps .done .dot { background: var(--mps-green); border-color: var(--mps-green); color: #fff; }
.progress-steps .done .dot .icon { width: 15px; height: 15px; stroke-width: 3; }
.progress-steps .done a, .progress-steps .done span.t { color: var(--mps-muted); }
.meter-track { height: .5rem; border-radius: 99px; background: #e3ebf8; overflow: hidden; }
.meter-fill { height: 100%; background: var(--mps-gradient); border-radius: 99px; }
.pct-0 { width: 0; } .pct-20 { width: 20%; } .pct-40 { width: 40%; } .pct-60 { width: 60%; } .pct-80 { width: 80%; } .pct-100 { width: 100%; }

/* Public landing */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(10px); }
.site-nav a { color: var(--mps-ink); text-decoration: none; font-weight: 600; padding: .4rem .7rem; border-radius: 8px; font-size: .95rem; }
.site-nav a:hover { background: #eef3fc; }
.lp-hero { background: radial-gradient(900px 420px at 85% 0%, #d9e8ff 0%, transparent 60%), radial-gradient(700px 380px at 0% 100%, #e1fbef 0%, transparent 60%), var(--mps-bg); padding: 3rem 0 3.5rem; }
.lp-pill { display: inline-flex; align-items: center; gap: .4rem; background: #e6f9f0; color: #0b7a4f; font-weight: 700; font-size: .82rem; padding: .3rem .8rem; border-radius: 99px; }
.lp-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.08; color: var(--mps-navy); margin: 1rem 0; }
.lp-hero h1 .accent { background: var(--mps-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero .lead { color: var(--mps-muted); max-width: 34rem; }
.lp-art { width: 100%; height: auto; border-radius: 28px; box-shadow: var(--mps-shadow-md); }
.lp-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.25rem; color: var(--mps-muted); font-size: .9rem; }
.lp-trust span { display: inline-flex; align-items: center; gap: .35rem; }
.lp-trust .icon { color: var(--mps-green); stroke-width: 2.6; }
.lp-section { padding: 3.5rem 0; }
.lp-section.alt { background: #fff; border-block: 1px solid var(--mps-border); }
.lp-eyebrow { color: var(--mps-blue); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.lp-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; color: var(--mps-navy); margin: .4rem 0 .6rem; }
.lp-sub { color: var(--mps-muted); max-width: 40rem; margin-inline: auto; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.chip { background: #fff; border: 1px solid var(--mps-border); border-radius: 99px; padding: .4rem .9rem; font-weight: 600; font-size: .9rem; color: var(--mps-ink); box-shadow: var(--mps-shadow-sm); }
.feature-tile { background: #fff; border: 1px solid var(--mps-border); border-radius: var(--mps-radius); padding: 1.35rem; height: 100%; box-shadow: var(--mps-shadow-sm); transition: transform .15s, box-shadow .15s; }
.feature-tile:hover { transform: translateY(-3px); box-shadow: var(--mps-shadow-md); }
.feature-tile h3 { font-size: 1.05rem; font-weight: 700; margin: .9rem 0 .35rem; color: var(--mps-navy); }
.feature-tile p { color: var(--mps-muted); margin: 0; font-size: .93rem; }
.step { text-align: center; padding: 0 1rem; }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--mps-gradient); color: #fff; font-weight: 800; font-size: 1.2rem; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(23, 105, 255, .35); }
.plan-tile { background: #fff; border: 1px solid var(--mps-border); border-radius: var(--mps-radius); padding: 1.5rem 1.25rem; height: 100%; display: flex; flex-direction: column; box-shadow: var(--mps-shadow-sm); position: relative; }
.plan-tile.featured { border: 2px solid var(--mps-blue); box-shadow: var(--mps-shadow-md); }
.plan-tile .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--mps-blue); color: #fff; font-size: .72rem; font-weight: 700; padding: .2rem .7rem; border-radius: 99px; text-transform: uppercase; letter-spacing: .06em; }
.plan-tile ul { list-style: none; padding: 0; margin: 1rem 0 1.25rem; flex: 1; }
.plan-tile li { display: flex; gap: .5rem; align-items: flex-start; padding: .2rem 0; font-size: .92rem; }
.plan-tile li .icon { color: var(--mps-green); stroke-width: 2.6; margin-top: .2rem; }
.plan-tile .price { font-size: 2rem; font-weight: 800; color: var(--mps-navy); }
.faq details { background: #fff; border: 1px solid var(--mps-border); border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: .6rem; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--mps-navy); }
.faq details[open] summary { margin-bottom: .5rem; }
.faq p { color: var(--mps-muted); margin: 0; }
.cta-band { background: var(--mps-sidebar); color: #fff; border-radius: 22px; padding: 2.5rem 1.5rem; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(37, 184, 255, .25); }
.cta-band > * { position: relative; }
.lp-footer { background: #fff; border-top: 1px solid var(--mps-border); color: var(--mps-muted); }
.lp-footer a { color: var(--mps-muted); text-decoration: none; }
.lp-footer a:hover { color: var(--mps-blue); }

/* Auth: split layout */
.auth-split { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.auth-art { display: none; background: var(--mps-sidebar); color: #fff; padding: 3rem; position: relative; overflow: hidden; }
.auth-art::before { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgba(37, 184, 255, .2); }
.auth-art > * { position: relative; }
.auth-art .brand, .auth-art .brand-dot { color: #fff; }
.auth-art .brand-dot { color: var(--mps-sky); }
.auth-art h2 { font-size: 2rem; font-weight: 800; margin: 2.5rem 0 1rem; line-height: 1.15; }
.auth-art ul { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .7rem; color: #c3d5f5; }
.auth-art li { display: flex; gap: .6rem; align-items: flex-start; }
.auth-art li .icon { color: var(--mps-green); stroke-width: 2.8; margin-top: .2rem; }
.auth-art img { width: 100%; max-width: 440px; height: auto; }
.auth-side { display: flex; align-items: center; justify-content: center; padding: 1.5rem 1rem 2.5rem; background: radial-gradient(1000px 420px at 50% -10%, #dfeaff 0%, var(--mps-bg) 60%); }
.auth-side .auth-wrap { width: 100%; max-width: 460px; padding: 0; }
@media (min-width: 992px) {
  .auth-split { grid-template-columns: minmax(380px, 5fr) 6fr; }
  .auth-art { display: block; }
  .auth-side .auth-brand-mobile { display: none; }
  .auth-side { background: var(--mps-bg); }
}
@media (max-width: 575.98px) {
  .welcome { padding: 1.1rem; }
  .stat-card { padding: .9rem; }
  .stat-card .value { font-size: 1.4rem; }
  .topbar-org strong { max-width: 34vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.tone-blue { background: #e6efff; color: var(--mps-blue); }
.welcome a { text-decoration: underline; }

/* ---- Stock photos: picker, image fields, template cards, landing showcase ---- */
.img-field { display: flex; gap: .75rem; align-items: flex-start; }
.img-field-preview { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--bs-border-color); background: #f1f5f9; flex: none; }
.stock-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.stock-pick { border: 2px solid transparent; border-radius: 10px; padding: 0; background: #fff; overflow: hidden; text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.stock-pick img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.stock-pick span { display: block; padding: .3rem .45rem; font-size: .8rem; color: #334155; }
.stock-pick:hover, .stock-pick:focus-visible { border-color: var(--bs-primary); transform: translateY(-1px); outline: none; }
.tpl-card { overflow: hidden; }
.tpl-card-media { display: block; margin: -1.25rem -1.25rem 1rem; }
.tpl-card-media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .3s; }
.tpl-card:hover .tpl-card-media img { transform: scale(1.03); }
.lp-showcase { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.lp-shot { position: relative; margin: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(15, 23, 42, .12); }
.lp-shot img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s; }
.lp-shot:hover img { transform: scale(1.04); }
.lp-shot figcaption { position: absolute; inset: auto 0 0 0; padding: 2.2rem 1rem .9rem; color: #fff; background: linear-gradient(180deg, transparent, rgba(2, 6, 23, .78)); display: flex; flex-direction: column; }
.lp-shot figcaption span { font-size: .85rem; opacity: .85; }
@media (prefers-reduced-motion: reduce) { .lp-shot img, .tpl-card-media img, .stock-pick { transition: none; } }
.site-nav a, .site-header .btn { white-space: nowrap; }
@media (max-width: 991.98px) { .site-nav { display: none !important; } }
@media (max-width: 420px) {
    .site-header .container { gap: .5rem !important; }
    .site-header .brand { font-size: 1rem; gap: .4rem; }
    .site-header .brand-dot { display: none; }
    .site-header .btn-sm { padding: .3rem .6rem; }
}

/* =====================================================================
   UX pass (2026-10-25): navigation, dashboard, editor, forms
   ===================================================================== */

/* ---- Navigation: icon-only sidebar on tablets/laptops, full sidebar from 1200px ---- */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .app-sidebar { width: 76px; flex: 0 0 76px; padding: .85rem .55rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
  .app-sidebar .brand-text, .app-sidebar .nav-label { display: none; }
  .app-sidebar .sidebar-head { justify-content: center; margin-bottom: 1rem; }
  .sidebar-nav a { justify-content: center; padding: .65rem; position: relative; }
  .sidebar-nav a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 1200px) {
  .app-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
}
@media (max-width: 767.98px) {
  .app-sidebar.offcanvas-md { background: var(--mps-sidebar); width: 280px; }
  .app-content { padding: 1rem 1rem 5.5rem; }
}

/* Top bar search */
.topbar-search { position: relative; align-items: center; flex: 1 1 260px; max-width: 420px; margin-left: .5rem; }
.topbar-search .icon { position: absolute; left: .7rem; color: #7b8aa3; pointer-events: none; }
.topbar-search input { width: 100%; border: 1px solid var(--mps-border); background: var(--mps-bg); border-radius: 10px; padding: .45rem .75rem .45rem 2.1rem; font-size: .92rem; }
.topbar-search input:focus { background: #fff; border-color: var(--mps-blue); outline: none; box-shadow: 0 0 0 3px rgba(23, 105, 255, .15); }

/* User menu */
.user-chip { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--mps-border); background: #fff; border-radius: 999px; padding: .2rem .7rem .2rem .2rem; font-size: .9rem; font-weight: 600; color: #0f172a; }
.user-chip:hover { border-color: #c4d3ea; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--mps-blue); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .02em; }
.dropdown-item { display: flex; align-items: center; gap: .55rem; }
.dropdown-item .icon { opacity: .7; }

/* Phone bottom tabs */
.bottom-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--mps-border); box-shadow: 0 -6px 20px rgba(7, 26, 51, .06); padding-bottom: env(safe-area-inset-bottom); }
.bottom-tabs a, .bottom-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; padding: .5rem .25rem .45rem; font-size: .7rem; font-weight: 600; color: #5b6b85; text-decoration: none; background: none; border: 0; min-height: 56px; }
.bottom-tabs a.active { color: var(--mps-blue); }

/* ---- Flash notices ---- */
.flash-notice { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; border-radius: 12px; padding-right: 3rem; }
.flash-icon { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .7); flex: none; }
.flash-text { flex: 1 1 220px; }
.flash-action { white-space: nowrap; }

/* ---- Dashboard: first-run next step ---- */
.next-step { display: flex; gap: 1.1rem; align-items: flex-start; border: 2px solid #cfe0ff; background: linear-gradient(135deg, #fff 0%, #f3f7ff 100%); }
.next-step-icon { width: 56px; height: 56px; border-radius: 16px; background: #e6efff; color: var(--mps-blue); display: flex; align-items: center; justify-content: center; flex: none; }
.next-step-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 800; color: var(--mps-blue); margin: 0 0 .2rem; }
@media (max-width: 575.98px) { .next-step { flex-direction: column; } }

/* ---- Chips (presets, quick filters, jump links) ---- */
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; border: 1px solid var(--mps-border); background: #fff; color: #334155; border-radius: 999px; padding: .3rem .8rem; font-size: .84rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--mps-blue); color: var(--mps-blue); }
.chip.is-on { background: var(--mps-blue); border-color: var(--mps-blue); color: #fff; }
.chip-clear { border-style: dashed; color: #64748b; }
.form-jump { position: sticky; top: 64px; z-index: 5; background: var(--mps-bg); padding: .4rem 0; }

/* ---- Create website: photo template cards ---- */
.tpl-choice { position: relative; display: block; height: 100%; background: #fff; border: 2px solid var(--mps-border); border-radius: 16px; overflow: hidden; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tpl-choice img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.tpl-choice-body { display: block; padding: .85rem 1rem 1rem; }
.tpl-choice-title { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .25rem; }
.tpl-choice-check { position: absolute; top: .65rem; right: .65rem; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: transparent; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.tpl-choice:hover { border-color: #b8cdf2; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(7, 26, 51, .08); }
.tpl-choice.is-selected, .tpl-choice:has(input:checked) { border-color: var(--mps-blue); box-shadow: 0 0 0 4px rgba(23, 105, 255, .15); }
.tpl-choice.is-selected .tpl-choice-check, .tpl-choice:has(input:checked) .tpl-choice-check { background: var(--mps-blue); color: #fff; }
.tpl-choice:has(input:focus-visible) { outline: 3px solid var(--mps-sky); outline-offset: 2px; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(180deg, rgba(245, 248, 252, 0), var(--mps-bg) 35%); padding: 1rem 0; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; z-index: 4; }
@media (max-width: 767.98px) { .sticky-actions { bottom: 56px; } }

/* ---- Website editor: section list + live preview ---- */
.editor-head h1 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.panel h2 .icon { color: var(--mps-blue); margin-right: .2rem; }
.section-rows { list-style: none; padding: 0; margin: 0; counter-reset: sec; }
.section-row { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--mps-border); border-radius: 12px; padding: .5rem .5rem .5rem .75rem; margin-bottom: .45rem; background: #fff; transition: border-color .15s, box-shadow .15s; }
.section-row:hover { border-color: #b8cdf2; box-shadow: 0 4px 14px rgba(7, 26, 51, .06); }
.section-row.is-hidden { background: #f8fafc; opacity: .75; }
.section-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; text-decoration: none; color: inherit; }
.section-main::before { counter-increment: sec; content: counter(sec); width: 22px; height: 22px; border-radius: 50%; background: #eef3fb; color: #5b6b85; font-size: .72rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.section-name { font-weight: 700; }
.section-sub { color: #64748b; font-size: .85rem; }
.section-actions { display: flex; align-items: center; gap: .3rem; flex: none; }
.editor-more summary { cursor: pointer; list-style: none; }
.editor-more summary::-webkit-details-marker { display: none; }
.editor-more summary .h2 { font-size: 1.05rem; }
.live-preview { position: sticky; top: 76px; background: #fff; border: 1px solid var(--mps-border); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(7, 26, 51, .05); }
.live-preview-bar { display: flex; align-items: center; gap: .75rem; padding: .55rem .85rem; border-bottom: 1px solid var(--mps-border); background: #fbfcfe; }
.live-preview-stage { background: #e8edf5; padding: .75rem; display: flex; justify-content: center; }
.live-preview .preview-frame { height: calc(100vh - 170px); min-height: 520px; width: 100%; transition: max-width .25s; }
.live-preview .preview-frame.is-mobile { max-width: 390px; }
.publish-box { border: 2px solid #cdeedd; }

/* ---- Section editor: layout choices + counters ---- */
.layout-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.layout-choice { position: relative; display: flex; flex-direction: column; gap: .4rem; border: 2px solid var(--mps-border); border-radius: 12px; padding: .6rem; cursor: pointer; }
.layout-choice input { position: absolute; opacity: 0; }
.layout-choice:has(input:checked) { border-color: var(--mps-blue); box-shadow: 0 0 0 3px rgba(23, 105, 255, .15); }
.layout-choice:has(input:focus-visible) { outline: 3px solid var(--mps-sky); outline-offset: 2px; }
.layout-pic { position: relative; display: block; height: 58px; border-radius: 8px; background: #dbe6f7; overflow: hidden; }
.layout-pic i, .layout-pic b { position: absolute; display: block; border-radius: 3px; }
.layout-pic i { background: #fff; height: 6px; }
.layout-pic b { background: #8fb2ea; }
.layout-split i { left: 8%; top: 22px; width: 38%; }
.layout-split b { right: 8%; top: 10px; width: 40%; height: 38px; }
.layout-center i { left: 25%; top: 10px; width: 50%; }
.layout-center b { left: 22%; top: 24px; width: 56%; height: 28px; }
.layout-full b { inset: 0; border-radius: 0; background: linear-gradient(135deg, #6f95d3, #3c5f9e); }
.layout-full i { left: 10%; bottom: 12px; width: 45%; z-index: 1; }
.char-count { font-size: .75rem; color: #8090a8; white-space: nowrap; margin-top: .25rem; }
.char-count.is-near { color: #b45309; font-weight: 700; }

/* Search results */
.result-list li { padding: .55rem 0; border-bottom: 1px solid var(--mps-border); }
.result-list li:last-child { border-bottom: 0; }
/* Live preview: render "Desktop" at a real 1280px width, scaled to fit the column */
.live-preview-stage { overflow: hidden; position: relative; }
.live-preview .preview-frame.is-scaled { width: 1280px; max-width: none; min-height: 0; flex: none; transform-origin: top left; position: absolute; left: 12px; top: 12px; }

/* Wider, centred content on large screens (was capped at 1180px, left-aligned) */
.app-content { max-width: 1360px; margin-inline: auto; }
/* Template picker: keep the preview link inside the column so rows never overlap */
.tpl-choices > div { display: flex; flex-direction: column; }
.tpl-choices .tpl-choice { height: auto; flex: 1 1 auto; }
/* App chips align left (the landing page centres its own .chip-row); empty-state titles centre */
.app-content .chip-row { justify-content: flex-start; }
.empty-card h2 { justify-content: center; }

/* Small utility links (auth footer, sign-out, back links): no permanent underline, underline on hover/focus */
.auth-foot a, .auth-card .btn-link, .lp-footer a, .site-footer a { text-decoration: none; }
.auth-foot a:hover, .auth-foot a:focus-visible, .auth-card .btn-link:hover, .auth-card .btn-link:focus-visible, .lp-footer a:hover, .lp-footer a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.auth-foot { color: #64748b; }
.auth-foot a { color: #475569; font-weight: 500; }

/* Growth features */
.input-group-narrow { max-width: 36rem; }
.col-hours { width: 7rem; }
.col-action { width: 13rem; }

/* How-to videos */
.guide-dialog { width: min(1100px, calc(100vw - 32px)); border: 0; border-radius: 14px; padding: 0; background: #0b1b33; box-shadow: 0 30px 80px rgba(2, 8, 23, .5); }
.guide-dialog::backdrop { background: rgba(2, 8, 23, .7); }
.guide-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1rem; background: #fff; }
.guide-dialog video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0b1b33; }
.guide-thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #0b1b33; cursor: pointer; }
.guide-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.guide-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(37, 99, 235, .92); display: grid; place-items: center; color: #fff; }
.guide-play .icon { width: 28px; height: 28px; }
.guide-thumb:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }

/* WhatsApp sign-in */
.btn-whatsapp { background: #128c7e; border-color: #128c7e; color: #fff; font-weight: 600; }
.btn-whatsapp:hover, .btn-whatsapp:focus-visible { background: #0e7468; border-color: #0e7468; color: #fff; }
.auth-or { display: flex; align-items: center; gap: .75rem; margin: 1rem 0; color: #6b7280; font-size: .85rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: #e5e7eb; }
.otp-input { letter-spacing: .4em; font-variant-numeric: tabular-nums; max-width: 14rem; }


/* ====================================================================================================================
   Revamp v3 (2026-11-10): the neutral, thin-border look of 21st.dev / shadcn-style components, rebuilt in plain CSS on
   top of Bootstrap (no React, no inline styles). Inter typeface, zinc neutrals, one blue accent, grid-and-glow
   backgrounds, a floating navbar, a bento feature grid, and a light app sidebar.
   ==================================================================================================================== */
:root {
  --mps-navy: #0b1220;
  --mps-blue: #1769ff;
  --mps-bg: #f8f9fb;
  --mps-border: #e5e8ee;
  --mps-ink: #0b1220;
  --mps-muted: #566072;
  --mps-soft: #f1f3f6;
  --mps-ring: 0 0 0 3px rgba(23, 105, 255, .18);
  --mps-radius: 14px;
  --mps-radius-sm: 9px;
  --mps-shadow-sm: 0 1px 2px rgba(11, 18, 32, .05);
  --mps-shadow-md: 0 1px 2px rgba(11, 18, 32, .04), 0 12px 32px -8px rgba(11, 18, 32, .12);
  --mps-shadow-lg: 0 2px 4px rgba(11, 18, 32, .04), 0 30px 70px -20px rgba(11, 18, 32, .28);
  --mps-gradient: linear-gradient(135deg, #1769ff 0%, #6a5cff 100%);
  --mps-dark: #0b1220;
  --mps-grid-light: rgba(255, 255, 255, .06);
  --mps-grid-dark: rgba(11, 18, 32, .055);
  --bs-body-bg: var(--mps-bg);
  --bs-body-color: var(--mps-ink);
  --bs-body-font-family: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-border-color: var(--mps-border);
  --bs-border-radius: .6rem;
  --bs-secondary-color: rgba(33, 37, 41, .75);
}
body { font-feature-settings: "cv11", "ss01", "calt"; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, .h1, .h2, .h3, .h4 { letter-spacing: -.022em; color: var(--mps-ink); }
::selection { background: rgba(23, 105, 255, .18); }

/* ---- Buttons ---- */
.btn { border-radius: var(--mps-radius-sm); font-weight: 600; letter-spacing: -.005em; transition: background-color .15s, border-color .15s, box-shadow .15s, color .15s, transform .05s; }
.btn-primary { background-image: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(11, 18, 32, .22), 0 4px 12px -2px rgba(23, 105, 255, .35); }
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(11, 18, 32, .22), 0 8px 20px -4px rgba(23, 105, 255, .45); }
.btn-outline-primary, .btn-outline-secondary {
  --bs-btn-color: var(--mps-ink); --bs-btn-bg: #fff; --bs-btn-border-color: #d7dce5;
  --bs-btn-hover-color: var(--mps-ink); --bs-btn-hover-bg: var(--mps-soft); --bs-btn-hover-border-color: #c5ccd8;
  --bs-btn-active-color: #0f4fcc; --bs-btn-active-bg: #e8f0ff; --bs-btn-active-border-color: var(--mps-blue);
  --bs-btn-disabled-color: #8a93a3; --bs-btn-disabled-border-color: #e1e5ec;
  box-shadow: var(--mps-shadow-sm);
}
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: #e1e5ec; --bs-btn-hover-bg: var(--mps-soft); --bs-btn-hover-border-color: #d7dce5; box-shadow: var(--mps-shadow-sm); }
.btn-link { font-weight: 600; text-decoration: none; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-lg { padding: .78rem 1.35rem; font-size: 1rem; border-radius: 11px; }
.btn-accent { background: #fff; border-color: #fff; color: var(--mps-ink); box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .5); }
.btn-accent:hover { background: #eef2f8; border-color: #eef2f8; color: var(--mps-ink); }

/* ---- Forms ---- */
.form-control, .form-select { border-color: #d7dce5; border-radius: var(--mps-radius-sm); box-shadow: var(--mps-shadow-sm); padding: .5rem .75rem; }
.form-control:focus, .form-select:focus { border-color: var(--mps-blue); box-shadow: var(--mps-ring); }
.form-control::placeholder { color: #98a1b0; }
.form-label { font-size: .9rem; font-weight: 600; margin-bottom: .35rem; }
.form-text { color: var(--mps-muted); }
.form-check-input:checked { background-color: var(--mps-blue); border-color: var(--mps-blue); }
.input-group-text { background: var(--mps-soft); border-color: #d7dce5; color: var(--mps-muted); }

/* ---- Surfaces ---- */
.panel, .stat-card, .feature-card, .plan-card, .board-card, .section-row, .quick-actions a { border-color: var(--mps-border); box-shadow: var(--mps-shadow-sm); }
.panel { border-radius: var(--mps-radius); padding: 1.35rem; }
.panel h2 { font-size: 1rem; font-weight: 650; letter-spacing: -.012em; }
.card { border-color: var(--mps-border); border-radius: var(--mps-radius); box-shadow: var(--mps-shadow-sm); }
.badge { border-radius: 999px; font-weight: 600; padding: .32em .7em; }
.badge.text-bg-light { background-color: var(--mps-soft) !important; color: #3b4556 !important; }
.alert { border-radius: 12px; }
.dropdown-menu { border-color: var(--mps-border); border-radius: 12px; padding: .35rem; box-shadow: var(--mps-shadow-md) !important; }
.dropdown-item { border-radius: 8px; padding: .45rem .65rem; font-size: .92rem; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--mps-soft); }
.modal-content { border: 1px solid var(--mps-border); border-radius: 16px; box-shadow: var(--mps-shadow-lg); }
.nav-tabs .nav-link { font-weight: 600; color: var(--mps-muted); }
.nav-tabs .nav-link.active { color: var(--mps-ink); }
.nav-pills .nav-link { border-radius: 9px; font-weight: 600; color: var(--mps-muted); }
.nav-pills .nav-link.active { background: var(--mps-ink); color: #fff; }
.table { --bs-table-border-color: var(--mps-border); }
.table > thead th { background: transparent; font-size: .72rem; letter-spacing: .06em; padding-block: .7rem; }
.table > tbody td { padding-block: .8rem; vertical-align: middle; }
.table-hover > tbody > tr:hover > * { background: #f6f8fb; }
.page-link { color: var(--mps-ink); border-color: var(--mps-border); }
.active > .page-link { background: var(--mps-ink); border-color: var(--mps-ink); }

/* ---- Stat cards and icon tiles ---- */
.stat-card { border-radius: var(--mps-radius); padding: 1.05rem 1.15rem; transition: border-color .15s, box-shadow .15s; }
.stat-card:hover { border-color: #d3d9e4; box-shadow: var(--mps-shadow-md); }
.stat-card .value { font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--mps-ink); }
.stat-card .label { color: var(--mps-muted); font-size: .82rem; }
.stat-icon { width: 40px; height: 40px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(11, 18, 32, .06); }
.stat-icon .icon { width: 20px; height: 20px; }

/* ---- App shell: light sidebar ---- */
.app-body { background: var(--mps-bg); }
.app-sidebar, .app-sidebar.offcanvas-md, .app-sidebar.offcanvas-lg { background: #fcfcfd; color: var(--mps-ink); border-right: 1px solid var(--mps-border); }
.app-sidebar .brand { color: var(--mps-ink); }
.app-sidebar .brand-dot { color: var(--mps-blue); }
.app-sidebar .btn-close-white { filter: none; }
.nav-label { color: #8a93a3; font-size: .67rem; letter-spacing: .1em; margin-top: 1.25rem; }
.sidebar-nav a { color: #3f4959; font-size: .9rem; font-weight: 500; padding: .47rem .7rem; border-radius: 9px; margin-bottom: 1px; transition: background-color .12s, color .12s; }
.sidebar-nav a .icon { color: #7c8698; opacity: 1; }
.sidebar-nav a:hover { background: var(--mps-soft); color: var(--mps-ink); }
.sidebar-nav a:hover .icon { color: var(--mps-ink); }
.sidebar-nav a.active { background: #fff; color: var(--mps-ink); font-weight: 600; box-shadow: 0 0 0 1px var(--mps-border), 0 1px 3px rgba(11, 18, 32, .07); }
.sidebar-nav a.active .icon { color: var(--mps-blue); }
.sidebar-note { color: #8a93a3; }
.app-topbar { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--mps-border); box-shadow: none; padding-block: .65rem; }
.topbar-search input { background: #fff; border-color: var(--mps-border); border-radius: 9px; box-shadow: var(--mps-shadow-sm); }
.topbar-search input:focus { box-shadow: var(--mps-ring); }
.icon-btn { border-radius: 9px; }
.user-chip { border-color: var(--mps-border); box-shadow: var(--mps-shadow-sm); color: var(--mps-ink); }
.avatar { background: var(--mps-ink); }
.page-head h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; color: var(--mps-ink); }
.bottom-tabs { background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: none; }
.form-jump, .sticky-actions { background: var(--mps-bg); }
.sticky-actions { background: linear-gradient(180deg, rgba(248, 249, 251, 0), var(--mps-bg) 35%); }

/* ---- Dashboard ---- */
.welcome { background: radial-gradient(520px 260px at 88% -20%, rgba(23, 105, 255, .55), transparent 70%), radial-gradient(420px 240px at 8% 130%, rgba(106, 92, 255, .35), transparent 70%), var(--mps-dark); border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; padding: 1.6rem 1.7rem; box-shadow: var(--mps-shadow-md); }
.welcome::after { inset: 0; width: auto; height: auto; right: 0; top: 0; border-radius: 0; background: linear-gradient(var(--mps-grid-light) 1px, transparent 1px), linear-gradient(90deg, var(--mps-grid-light) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 0%, #000 10%, transparent 70%); pointer-events: none; }
.welcome > * { position: relative; z-index: 1; }
.welcome h1 { color: #fff; font-size: 1.45rem; font-weight: 700; letter-spacing: -.03em; }
.welcome p { color: #b8c3d6; opacity: 1; }
.quick-actions a { border-radius: 12px; font-size: .92rem; }
.quick-actions a:hover { border-color: #cdd5e2; }
.next-step { border: 1px solid #cfe0ff; background: radial-gradient(500px 200px at 100% 0%, #eaf1ff, transparent 70%), #fff; }
.next-step-icon { border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(23, 105, 255, .15); }
.progress-steps li { background: var(--mps-soft); border-radius: 9px; }
.progress-steps .done { background: #eefaf4; }
.meter-track { background: #e7ebf2; }
.board-col { background: var(--mps-soft); border-color: var(--mps-border); }
.empty-card { padding: 2.5rem 1rem; }

/* ---- Public header: floating bar ---- */
.site-header { background: transparent; border-bottom: 0; padding: .75rem .75rem 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header > .container { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border: 1px solid var(--mps-border); border-radius: 16px; box-shadow: 0 6px 24px -8px rgba(11, 18, 32, .12); padding: .55rem .7rem .55rem 1rem !important; max-width: 1120px; }
.site-nav a { color: #3f4959; font-weight: 500; font-size: .92rem; padding: .4rem .75rem; border-radius: 9px; transition: background-color .12s, color .12s; }
.site-nav a:hover { background: var(--mps-soft); color: var(--mps-ink); }

/* ---- Landing: hero ---- */
.lp-hero { position: relative; overflow: hidden; margin-top: -4.6rem; padding: 9rem 0 4rem; text-align: center; background: radial-gradient(900px 480px at 50% -8%, #dbe7ff 0%, rgba(219, 231, 255, 0) 70%), radial-gradient(600px 400px at 100% 30%, rgba(106, 92, 255, .1), transparent 70%), #fff; border-bottom: 1px solid var(--mps-border); }
.lp-grid-bg { position: absolute; inset: 0; background: linear-gradient(var(--mps-grid-dark) 1px, transparent 1px), linear-gradient(90deg, var(--mps-grid-dark) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 100%); pointer-events: none; }
.lp-hero-inner { position: relative; }
.lp-pill { display: inline-flex; align-items: center; gap: .55rem; background: #fff; color: var(--mps-ink); border: 1px solid var(--mps-border); font-weight: 500; font-size: .86rem; padding: .28rem .85rem .28rem .3rem; border-radius: 999px; text-decoration: none; box-shadow: var(--mps-shadow-sm); transition: border-color .15s, box-shadow .15s; }
.lp-pill:hover { border-color: #c5ccd8; box-shadow: var(--mps-shadow-md); color: var(--mps-ink); }
.lp-pill .icon { width: 14px; height: 14px; color: var(--mps-muted); transition: transform .15s; }
.lp-pill:hover .icon { transform: translateX(2px); }
.lp-pill-tag { background: var(--mps-ink); color: #fff; font-size: .72rem; font-weight: 700; padding: .14rem .55rem; border-radius: 999px; letter-spacing: .02em; }
.lp-hero h1 { font-size: clamp(2.3rem, 6.2vw, 4.4rem); font-weight: 750; line-height: 1.04; letter-spacing: -.045em; color: var(--mps-ink); margin: 1.4rem auto 1.1rem; max-width: 15em; }
.lp-hero h1 .accent { background: linear-gradient(120deg, #1769ff 10%, #6a5cff 55%, #25b8ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero .lead { color: var(--mps-muted); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 40rem; margin-inline: auto; line-height: 1.6; }
.lp-cta { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; margin-top: 1.8rem; }
.lp-trust { justify-content: center; gap: .5rem 1.4rem; margin-top: 1.4rem; font-size: .86rem; }
.lp-trust .icon { color: var(--mps-green); }

/* Hero mock: a browser frame with floating cards */
.lp-mock { position: relative; max-width: 980px; margin: 3.6rem auto 0; text-align: left; }
.lp-mock::before { content: ""; position: absolute; inset: 8% 6% -4%; background: linear-gradient(120deg, rgba(23, 105, 255, .35), rgba(106, 92, 255, .3), rgba(37, 184, 255, .3)); filter: blur(60px); border-radius: 40px; z-index: 0; }
.lp-browser { position: relative; z-index: 1; background: #fff; border: 1px solid #dfe3ea; border-radius: 16px; box-shadow: var(--mps-shadow-lg); overflow: hidden; padding: 0; }
.lp-browser-bar { display: flex; align-items: center; gap: .9rem; padding: .6rem .9rem; border-bottom: 1px solid var(--mps-border); background: #fafbfc; }
.lp-dots { display: inline-flex; gap: .35rem; flex: none; }
.lp-dots i { width: 10px; height: 10px; border-radius: 50%; background: #dfe3ea; display: block; }
.lp-url { flex: 1; min-width: 0; max-width: 420px; margin-inline: auto; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: #fff; border: 1px solid var(--mps-border); border-radius: 8px; padding: .22rem .7rem; font-size: .78rem; color: var(--mps-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-url .icon { width: 12px; height: 12px; color: var(--mps-green); }
.lp-browser-body { position: relative; }
.lp-browser-body img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8.2; object-fit: cover; }
.lp-browser-body::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 18, 32, .72) 0%, rgba(11, 18, 32, .25) 55%, transparent 80%); }
.lp-mock-copy { position: absolute; z-index: 1; left: 6%; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; color: #fff; max-width: 60%; }
.lp-mock-kicker { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: #c9d6ee; }
.lp-mock-copy strong { font-size: clamp(1.3rem, 3.6vw, 2.6rem); font-weight: 750; letter-spacing: -.035em; line-height: 1.05; }
.lp-mock-copy > span:not(.lp-mock-kicker):not(.lp-mock-btn) { font-size: clamp(.78rem, 1.5vw, 1rem); color: #dbe4f3; }
.lp-mock-btn { margin-top: .6rem; background: #fff; color: var(--mps-ink); font-weight: 650; font-size: clamp(.72rem, 1.3vw, .9rem); padding: .45em 1.1em; border-radius: 8px; }
.lp-float { position: absolute; z-index: 2; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--mps-border); border-radius: 14px; box-shadow: var(--mps-shadow-md); padding: .7rem .9rem; animation: lp-float 6s ease-in-out infinite; }
.lp-float strong { display: block; font-size: .9rem; letter-spacing: -.01em; }
.lp-float small { display: block; color: var(--mps-muted); font-size: .76rem; }
.lp-float-lead { right: -1.2rem; top: 22%; display: flex; align-items: center; gap: .7rem; }
.lp-float-stat { left: -1.4rem; bottom: 9%; min-width: 150px; animation-delay: -3s; }
.lp-float-stat strong { font-size: 1.5rem; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lp-bars { display: flex; align-items: flex-end; gap: 4px; height: 30px; margin-top: .3rem; }
.lp-bars i { flex: 1; border-radius: 3px; background: #cfe0ff; display: block; }
.lp-bars .b1 { height: 35%; } .lp-bars .b2 { height: 55%; } .lp-bars .b3 { height: 42%; } .lp-bars .b4 { height: 70%; } .lp-bars .b5 { height: 58%; } .lp-bars .b6 { height: 85%; } .lp-bars .b7 { height: 100%; background: var(--mps-blue); }
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.lp-art { max-width: 640px; }
@media (max-width: 767.98px) {
  .lp-hero { padding: 7.5rem 0 3rem; }
  .lp-mock { margin-top: 2.6rem; }
  .lp-float-lead { right: .4rem; top: auto; bottom: -1.1rem; }
  .lp-float-stat { display: none; }
  .lp-browser-body img { aspect-ratio: 16 / 10; }
  .lp-url { font-size: .7rem; }
}

/* ---- Landing: built-for marquee ---- */
.lp-builtfor { padding: 2.6rem 0 0; }
.lp-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.lp-marquee-track { display: flex; width: max-content; animation: lp-marquee 60s linear infinite; }
.lp-marquee:hover .lp-marquee-track { animation-play-state: paused; }
.lp-marquee-set { display: flex; gap: .6rem; padding-right: .6rem; flex: none; }
.lp-marquee .chip { cursor: default; padding: .45rem 1rem; font-weight: 500; color: #3f4959; box-shadow: var(--mps-shadow-sm); white-space: nowrap; }
.lp-marquee .chip:hover { border-color: var(--mps-border); color: #3f4959; }
@keyframes lp-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .lp-marquee { -webkit-mask-image: none; mask-image: none; }
  .lp-marquee-track { width: auto; justify-content: center; }
  .lp-marquee-set { flex-wrap: wrap; justify-content: center; padding: 0 1rem; }
  .lp-marquee-set[aria-hidden] { display: none; }
}

/* ---- Landing: sections ---- */
.lp-section { padding: 5rem 0; }
.lp-section.alt { background: #fff; border-block: 1px solid var(--mps-border); }
.lp-eyebrow { display: inline-block; color: var(--mps-blue); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; }
h2.lp-eyebrow { color: var(--mps-muted); }
.lp-title { font-size: clamp(1.7rem, 3.8vw, 2.6rem); font-weight: 720; letter-spacing: -.035em; line-height: 1.1; color: var(--mps-ink); margin: .5rem 0 .7rem; }
.lp-sub { color: var(--mps-muted); font-size: 1.05rem; max-width: 38rem; }

/* Bento feature grid */
.bento { display: grid; gap: 1rem; grid-template-columns: repeat(6, 1fr); }
.bento-wide { grid-column: span 4; }
.bento-narrow { grid-column: span 2; }
.bento-half { grid-column: span 3; }
.feature-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 1.2rem; background: #fff; border: 1px solid var(--mps-border); border-radius: 18px; padding: 1.5rem; height: auto; box-shadow: var(--mps-shadow-sm); transition: border-color .2s, box-shadow .2s, transform .2s; }
.feature-tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 200px at 50% -20%, rgba(23, 105, 255, .1), transparent 70%); opacity: 0; transition: opacity .25s; pointer-events: none; }
.feature-tile:hover { transform: translateY(-2px); border-color: #c9d6f2; box-shadow: var(--mps-shadow-md); }
.feature-tile:hover::before { opacity: 1; }
.feature-tile > * { position: relative; }
.feature-tile h3 { font-size: 1.08rem; font-weight: 650; letter-spacing: -.018em; margin: 1rem 0 .4rem; color: var(--mps-ink); }
.feature-tile p { color: var(--mps-muted); font-size: .94rem; line-height: 1.55; margin: 0; }
.bento-wide { flex-direction: row; align-items: center; }
.bento-wide .bento-copy { flex: 1 1 46%; min-width: 0; }
.bento-visual { flex: 1 1 54%; min-width: 0; }
.bento-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.bento-thumbs img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; border: 1px solid var(--mps-border); box-shadow: var(--mps-shadow-sm); }
.bento-thumbs img:nth-child(2) { transform: translateY(-10px); }
.bento-pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; align-items: start; }
.bento-pipeline > div { background: var(--mps-soft); border: 1px solid var(--mps-border); border-radius: 10px; padding: .5rem; display: grid; gap: .4rem; }
.bento-pipeline small { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mps-muted); }
.bento-pipeline i { display: block; height: 26px; background: #fff; border: 1px solid var(--mps-border); border-radius: 7px; box-shadow: var(--mps-shadow-sm); }
.bento-pipeline i.on { border-color: #9fd9bf; background: #eefaf4; }
@media (max-width: 991.98px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-wide { grid-column: span 2; }
  .bento-narrow, .bento-half { grid-column: span 1; }
}
@media (max-width: 575.98px) {
  .bento { grid-template-columns: 1fr; }
  .bento-wide, .bento-narrow, .bento-half { grid-column: span 1; }
  .bento-wide { flex-direction: column; align-items: stretch; }
}

/* Template showcase, steps, pricing, FAQ, call to action */
.lp-shot { border-radius: 16px; border: 1px solid var(--mps-border); box-shadow: var(--mps-shadow-sm); transition: box-shadow .25s, transform .25s; }
.lp-shot:hover { box-shadow: var(--mps-shadow-md); transform: translateY(-2px); }
.lp-shot figcaption strong { letter-spacing: -.015em; }
.step { height: 100%; text-align: left; background: #fff; border: 1px solid var(--mps-border); border-radius: 18px; padding: 1.5rem; box-shadow: var(--mps-shadow-sm); }
.step-num { width: 38px; height: 38px; border-radius: 10px; background: var(--mps-ink); color: #fff; font-size: 1rem; font-weight: 700; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 4px 10px -2px rgba(11, 18, 32, .35); }
.step h3 { font-weight: 650; letter-spacing: -.018em; }
.plan-tile { border-radius: 18px; border-color: var(--mps-border); padding: 1.6rem 1.4rem; box-shadow: var(--mps-shadow-sm); transition: box-shadow .2s, transform .2s; }
.plan-tile:hover { box-shadow: var(--mps-shadow-md); transform: translateY(-2px); }
.plan-tile.featured { border: 1px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(140deg, #1769ff, #6a5cff 55%, #25b8ff) border-box; box-shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 24px 50px -18px rgba(23, 105, 255, .45); }
.plan-tile .ribbon { background: var(--mps-ink); letter-spacing: .05em; font-size: .68rem; padding: .28rem .8rem; box-shadow: var(--mps-shadow-md); }
.plan-tile h3 { font-weight: 650; }
.plan-tile .price { font-size: 2.3rem; font-weight: 750; letter-spacing: -.04em; color: var(--mps-ink); font-variant-numeric: tabular-nums; }
.plan-tile ul { border-top: 1px solid var(--mps-border); padding-top: 1rem; }
.plan-tile li { color: #3f4959; }
.faq details { border-color: var(--mps-border); border-radius: 12px; padding: 0; margin-bottom: .55rem; box-shadow: var(--mps-shadow-sm); transition: border-color .15s; }
.faq details[open] { border-color: #cdd5e2; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.15rem; font-weight: 600; color: var(--mps-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--mps-soft); color: var(--mps-muted); display: inline-flex; align-items: center; justify-content: center; font-weight: 500; font-size: 1.1rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { margin-bottom: 0; }
.faq p { padding: 0 1.15rem 1.1rem; line-height: 1.6; }
.cta-band { background: radial-gradient(600px 300px at 50% -30%, rgba(23, 105, 255, .7), transparent 70%), radial-gradient(500px 260px at 100% 120%, rgba(106, 92, 255, .4), transparent 70%), var(--mps-dark); border: 1px solid rgba(255, 255, 255, .08); border-radius: 24px; padding: 4rem 1.5rem; box-shadow: var(--mps-shadow-lg); }
.cta-band::before { inset: 0; left: 0; bottom: 0; width: auto; height: auto; border-radius: 0; background: linear-gradient(var(--mps-grid-light) 1px, transparent 1px), linear-gradient(90deg, var(--mps-grid-light) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%); }
.lp-footer { background: var(--mps-bg); border-top: 1px solid var(--mps-border); font-size: .92rem; }
.lp-footer a:hover { color: var(--mps-ink); }
.legal-banner { border-radius: 12px; }

/* ---- Sign-in screens ---- */
.auth-body { background: #fff; }
.auth-art { background: radial-gradient(560px 380px at 100% 0%, rgba(23, 105, 255, .55), transparent 70%), radial-gradient(480px 360px at 0% 100%, rgba(106, 92, 255, .35), transparent 70%), var(--mps-dark); padding: 3rem 3.25rem; }
.auth-art::before { inset: 0; right: 0; top: 0; width: auto; height: auto; border-radius: 0; background: linear-gradient(var(--mps-grid-light) 1px, transparent 1px), linear-gradient(90deg, var(--mps-grid-light) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(ellipse at 80% 10%, #000 15%, transparent 75%); mask-image: radial-gradient(ellipse at 80% 10%, #000 15%, transparent 75%); }
.auth-art h2 { color: #fff; font-size: clamp(1.8rem, 2.6vw, 2.5rem); font-weight: 720; letter-spacing: -.035em; line-height: 1.1; margin: 3rem 0 1.4rem; max-width: 13em; }
.auth-art ul { color: #c4cfe2; font-size: 1rem; }
.auth-art img { opacity: .92; border-radius: 16px; }
.auth-side, .auth-side.auth-side { background: #fff; }
.auth-card { border-radius: 16px; border-color: var(--mps-border); box-shadow: var(--mps-shadow-md); padding: 1.9rem; }
.auth-card h1 { font-size: 1.6rem; font-weight: 720; letter-spacing: -.03em; color: var(--mps-ink); }
.auth-card .btn { padding-block: .6rem; }
.auth-card .form-control { padding: .6rem .8rem; }
.auth-card .password-toggle { padding-block: .2rem; }
.auth-or { color: #8a93a3; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 600; }
.auth-or::before, .auth-or::after { background: var(--mps-border); }
.btn-whatsapp { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(11, 18, 32, .2); }
@media (min-width: 992px) {
  .auth-side { background: #fff; }
  .auth-card { border: 0; box-shadow: none; padding: 0; }
  .auth-side .auth-wrap { max-width: 400px; }
}
@media (max-width: 991.98px) {
  .auth-side { background: radial-gradient(700px 320px at 50% -10%, #dbe7ff 0%, rgba(219, 231, 255, 0) 70%), var(--mps-bg); }
}
main > .container:first-child:has(.alert) { padding-top: 1rem; }
main > .container:first-child:has(.alert) + .lp-hero { margin-top: 0; padding-top: 4rem; }
/* White controls and overlays on the tinted page background */
.form-control, .form-select, .form-check-input:not(:checked) { background-color: #fff; }
.form-control:disabled, .form-select:disabled, .form-control[readonly] { background-color: var(--mps-soft); }
.dropdown-menu { --bs-dropdown-bg: #fff; }
.modal { --bs-modal-bg: #fff; }
.card { --bs-card-bg: #fff; }
.list-group { --bs-list-group-bg: #fff; --bs-list-group-border-color: var(--mps-border); }
.table { --bs-table-bg: transparent; }
.welcome a.btn { text-decoration: none; }
.stat-card .value.h4 { font-size: 1.15rem; letter-spacing: -.02em; }
