/* ============================================================
   Shopatik design system — "Bleu Ciel" (Light Blue)
   A single light-blue family (bright sky blue + a lighter cyan accent)
   plus a rich mid-blue for headings/nav and cool-gray neutrals — one hue
   family, not a grab-bag of colors. Body copy stays a neutral near-black
   for readability rather than tinted blue. WhatsApp's own green is kept
   ONLY on literal WhatsApp actions (checkout/share buttons), since
   that's a recognizable convention, not "our" brand color. Content boxes
   use square corners (--radius: 0) by explicit design direction.
   ============================================================ */
:root {
  --brand: #1e88e5;         /* bright sky blue - primary CTA/links */
  --brand-dark: #1567b5;
  --brand-light: #e6f3fc;
  --accent: #4fc3f7;        /* light cyan-blue - sparing highlight, same family as brand */
  --accent-dark: #1ea9dd;
  --ink: #14568f;           /* rich medium blue - headings, nav */
  --ink-soft: #1b6aad;
  --bg: #f5faff;            /* cool off-white page background, faint blue tint */
  --text: #16222c;          /* neutral near-black for body copy - not tinted, stays readable */
  --muted: #5f7a92;
  --border: #d6e8f7;
  --card: #ffffff;
  --whatsapp: #25D366;
  --whatsapp-dark: #1ea952;
  --radius: 0px;      /* square corners on content boxes, by design choice */
  --shadow: 0 1px 2px rgba(20,86,143,0.06), 0 8px 24px -12px rgba(20,86,143,0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.container { max-width: 860px; margin: 0 auto; padding: 16px; }
body.marketing .container { max-width: 1180px; padding: 0 24px; }
@media (max-width: 720px) { body.marketing .container { padding: 0 16px; } }

/* Break an element out to the full viewport width even though it sits
   inside a centered .container — used for alternating marketing bands. */
.full-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.band { padding: 56px 24px; }
.band-inner { max-width: 1180px; margin: 0 auto; }
.band.tint { background: var(--brand-light); }
.band.white { background: #ffffff; }
.band.ink { background: linear-gradient(135deg, var(--ink), var(--ink-soft)); color: white; }
.band.ink h2, .band.ink h3 { color: white; }
.band.ink p { color: rgba(255,255,255,0.78); }
@media (max-width: 720px) { .band { padding: 40px 16px; } }

.section-head { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head h2 { font-size: 1.7rem; margin: 0 0 8px; }
.section-head p { margin: 0; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }

/* --- header --- */
nav {
  background: var(--ink);
  color: white;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}
nav .brand { display: flex; align-items: center; gap: 8px; color: white; text-decoration: none; font-weight: 800; font-size: 1.1rem; }
nav .brand .mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 800;
}
nav .links { display: flex; align-items: center; gap: 18px; }
nav .links a { color: white; text-decoration: none; font-weight: 500; opacity: 0.88; font-size: 0.92rem; }
nav .links a:hover { opacity: 1; }
nav .links a.cta {
  background: var(--brand); opacity: 1; padding: 8px 14px; border-radius: 999px; font-weight: 700;
}
nav .links a.cta:hover { background: var(--brand-dark); }
.menu-toggle {
  display: none; background: none; border: none; color: white; font-size: 1.4rem; cursor: pointer; padding: 4px 8px;
}

.lang-switch { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; font-size: 0.82rem; }
.lang-switch a { opacity: 0.55; font-weight: 700; }
.lang-switch a.active { opacity: 1; color: var(--brand); text-decoration: underline; }
.lang-switch span { color: rgba(255,255,255,0.4); }
@media (max-width: 720px) { .lang-switch { margin: 10px 20px 0; } }

.subnav-wrap { background: var(--ink-soft); position: sticky; top: 54px; z-index: 49; }
.subnav {
  display: flex; overflow-x: auto; padding: 0 12px; scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  color: white; text-decoration: none; font-size: 0.85rem;
  padding: 12px 14px; white-space: nowrap; opacity: 0.78; border-bottom: 2px solid transparent;
}
.subnav a:hover { opacity: 1; }
.subnav a.active { opacity: 1; border-bottom-color: var(--brand); font-weight: 700; }

@media (max-width: 720px) {
  .menu-toggle { display: inline-block; }
  nav .links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 12px;
    box-shadow: var(--shadow);
  }
  nav .links.open { display: flex; }
  nav .links a { padding: 12px 20px; }
  nav .links a.cta { margin: 8px 20px 0; text-align: center; }

  .subnav { flex-wrap: nowrap; }
  .subnav-wrap { position: relative; top: 0; }
  .subnav.collapsed { display: none; }
  .subnav-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    background: var(--ink-soft); color: white; border: none; padding: 10px 16px; font-size: 0.85rem; cursor: pointer;
  }
  .subnav.expanded { display: flex; flex-direction: column; }
  .subnav.expanded a { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 12px 16px; }
}
.subnav-toggle { display: none; }

/* --- dashboard: collapsible left sidebar (light theme, Catlog-style grouping) --- */
.dashboard-shell {
  display: flex;
  align-items: flex-start;
}
.sidebar {
  width: 252px;
  flex-shrink: 0;
  background: #ffffff;
  color: var(--text);
  position: sticky;
  top: 54px;
  height: calc(100vh - 54px);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  transition: width 0.18s ease;
  z-index: 40;
}
.sidebar-collapse-btn {
  display: block;
  width: 100%;
  text-align: right;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  padding: 8px 14px;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}
.sidebar-collapse-btn:hover { color: var(--ink); }
.sidebar.collapsed .sidebar-collapse-btn { transform: rotate(180deg); text-align: center; padding: 8px 0; }

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
  transition: background-color 0.12s ease;
}
.sidebar-header:hover { background: var(--bg); }
.sidebar-header-text { flex: 1; overflow: hidden; }
.sidebar-header-text strong { display: block; font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-header-caret { font-size: 0.6rem; color: var(--muted); flex-shrink: 0; }

.sidebar-avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-avatar.small { width: 26px; height: 26px; border-radius: 50%; font-size: 0.78rem; }

/* `.sidebar-nav` is a bare <nav> element, which the site-wide `nav { ... }`
   tag selector above (the top bar) also matches - reset every property it
   sets so the sidebar's own look always wins regardless of source order. */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 1px;
  padding: 6px 10px 14px;
  background: transparent;
  color: var(--text);
  position: static;
  top: auto;
  z-index: auto;
}

.sidebar-section-label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 12px 4px;
}
.sidebar-section-label:first-child { padding-top: 4px; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 12px;
  margin: 1px 0;
  color: var(--text);
  text-decoration: none;
  opacity: 0.82;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border-radius: 8px;
  white-space: nowrap;
  transition: background-color 0.12s ease, opacity 0.12s ease;
}
.sidebar-link:hover { opacity: 1; background: var(--bg); }
.sidebar-link.active {
  opacity: 1;
  color: var(--brand-dark);
  background: var(--brand-light);
}
.sidebar-link.active .sidebar-icon { color: var(--brand); }
.sidebar-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.sidebar-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
.sidebar-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.sidebar-caret { font-size: 0.6rem; color: var(--muted); transition: transform 0.15s ease; flex-shrink: 0; }
.sidebar-group.open > .sidebar-parent .sidebar-caret { transform: rotate(180deg); }

.sidebar-sublist { display: none; flex-direction: column; padding: 2px 0 6px; }
.sidebar-group.open > .sidebar-sublist { display: flex; }
.sidebar-sublist a {
  color: var(--muted);
  text-decoration: none;
  opacity: 1;
  font-size: 0.81rem;
  font-weight: 500;
  padding: 7px 12px 7px 43px;
  margin: 0 0 0 1px;
  border-radius: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.12s ease, color 0.12s ease;
}
.sidebar-sublist a:hover { color: var(--text); background: var(--bg); }
.sidebar-sublist a.active {
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-light);
}

.sidebar-divider { height: 1px; background: var(--border); margin: 10px 14px; }

.sidebar-footer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 6px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-footer-main {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  flex: 1;
  min-width: 0;
  transition: background-color 0.12s ease;
}
.sidebar-footer-main:hover { background: var(--bg); }
.sidebar-footer-text { flex: 1; overflow: hidden; display: flex; flex-direction: column; line-height: 1.25; }
.sidebar-footer-text strong { font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-footer-text span { font-size: 0.72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-footer-menu {
  background: none; border: none; cursor: pointer; border-radius: 8px;
  color: var(--muted); font-size: 1.1rem; flex-shrink: 0; padding: 6px 8px;
}
.sidebar-footer-menu:hover { background: var(--bg); }
.sidebar-footer-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  right: 8px;
  min-width: 170px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 60;
}
.sidebar-footer-dropdown.show { display: block; }
.sidebar-footer-dropdown a {
  display: block; padding: 8px 10px; border-radius: 6px; color: var(--text);
  text-decoration: none; font-size: 0.85rem; font-weight: 600;
}
.sidebar-footer-dropdown a:hover { background: var(--bg); }
.sidebar-footer-dropdown-lang {
  display: flex; align-items: center; gap: 6px; padding: 4px 10px;
  font-size: 0.8rem; font-weight: 700;
}
.sidebar-footer-dropdown-lang a { display: inline; padding: 0; opacity: 0.55; }
.sidebar-footer-dropdown-lang a.active { opacity: 1; color: var(--brand); text-decoration: underline; }
.sidebar-footer-dropdown-lang span { color: var(--muted); }

/* Persistent desktop dashboard header: bell + Quick Actions, above every
   dashboard page's content (distinct from .dash-mobile-topbar below, which
   is the mobile-only hamburger bar). */
.dash-topbar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 16px 0; flex-wrap: wrap; }
.dash-topbar-spacer { flex: 1; }
.dash-topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-bell {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  color: var(--muted); cursor: pointer;
}
.topbar-bell:hover { background: var(--bg); }
.quick-actions-wrap { position: relative; }
.quick-actions-menu {
  display: none; position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 210px; background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow); padding: 6px; z-index: 60;
}
.quick-actions-menu.show { display: block; }
.quick-actions-menu a {
  display: block; padding: 8px 10px; border-radius: 6px; color: var(--text);
  text-decoration: none; font-size: 0.85rem; font-weight: 600;
}
.quick-actions-menu a:hover { background: var(--bg); }
@media (max-width: 880px) { .dash-topbar { padding-top: 8px; } }

.dash-mobile-topbar {
  display: none;
  background: var(--ink);
  color: white;
  padding: 12px 16px;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 120;
}
.dash-mobile-topbar .brand { display: flex; align-items: center; gap: 8px; color: white; text-decoration: none; font-weight: 800; font-size: 1.05rem; }
.dash-mobile-topbar .mark {
  width: 24px; height: 24px; border-radius: 7px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800;
}
.dash-mobile-topbar .sidebar-toggle { display: inline-block; padding: 0; }

.new-pill, .nav-pct {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.new-pill { background: #e3f8ec; color: #1a9d5c; }
.nav-pct { background: #e3f8ec; color: #1a9d5c; text-transform: uppercase; margin-left: auto; }

/* collapsed (desktop icon-only) state */
.sidebar.collapsed .sidebar-section-label,
.sidebar.collapsed .sidebar-header-text,
.sidebar.collapsed .sidebar-header-caret,
.sidebar.collapsed .sidebar-footer-text,
.sidebar.collapsed .sidebar-footer-menu,
.sidebar.collapsed .sidebar-label,
.sidebar.collapsed .sidebar-caret,
.sidebar.collapsed .new-pill,
.sidebar.collapsed .nav-pct {
  display: none;
}
.sidebar.collapsed .sidebar-sublist { display: none !important; }
.sidebar.collapsed .sidebar-link { justify-content: center; padding: 8px 6px; }
.sidebar.collapsed .sidebar-header,
.sidebar.collapsed .sidebar-footer,
.sidebar.collapsed .sidebar-footer-main { justify-content: center; }
.sidebar.collapsed .sidebar-footer-dropdown { display: none !important; }

.main-panel { flex: 1; min-width: 0; }
.main-panel .container { max-width: 980px; }
body.dash-home .main-panel .container { max-width: 1200px; }

/* Dashboard home: two-column layout (main content + wallet/orders side panel) */
.dash-home-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.dash-home-main { min-width: 0; }
.dash-home-side { min-width: 0; position: sticky; top: 20px; }
@media (max-width: 980px) {
  .dash-home-grid { grid-template-columns: 1fr; }
  .dash-home-side { position: static; }
}

.stat-tile-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
@media (max-width: 760px) { .stat-tile-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .stat-tile-row { grid-template-columns: 1fr; } }

/* Two charts side-by-side, e.g. Analytics > Storefront's Visits/Carts trend cards */
.chart-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .chart-grid-2 { grid-template-columns: 1fr; } }

.section-subtitle { font-size: 0.95rem; color: var(--muted); margin: 18px 0 8px; font-weight: 700; }
.empty-note { background: var(--brand-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; color: var(--ink); margin-bottom: 16px; }

/* Availability on/off switch - Products list + Dashboard home products table */
.avail-toggle { position: relative; display: inline-block; width: 38px; height: 22px; }
.avail-toggle input { opacity: 0; width: 0; height: 0; }
.avail-slider { position: absolute; cursor: pointer; inset: 0; background: #ccc; border-radius: 22px; transition: 0.15s; }
.avail-slider::before { content: ""; position: absolute; height: 16px; width: 16px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.15s; }
.avail-toggle input:checked + .avail-slider { background: #1a9d5c; }
.avail-toggle input:checked + .avail-slider::before { transform: translateX(16px); }

/* Percent-change badge next to a stat-tile value */
.tile-change { font-size: 0.72rem; font-weight: 700; margin-left: 6px; }
.tile-change.up { color: #1a9d5c; }
.tile-change.down { color: #c23a2c; }
.tile-change.neutral { color: var(--muted); }
.stat-tile {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow);
}
.stat-tile-icon {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.stat-tile-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat-tile-icon.tile-sales { background: #e3f8ec; color: #1a9d5c; }
.stat-tile-icon.tile-products { background: var(--brand-light); color: var(--brand-dark); }
.stat-tile-icon.tile-orders { background: #fdeee0; color: #c2660c; }
.stat-tile-icon.tile-customers { background: #ede4fb; color: #6c3ec9; }
.stat-tile-body { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.stat-tile-body strong { font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-tile-body span { font-size: 0.75rem; color: var(--muted); }

.wallet-card.compact { padding: 18px; margin-bottom: 14px; }
.wallet-card.compact .wallet-amount { font-size: 1.5rem; }

.side-order-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.side-order-list li { display: flex; flex-direction: column; gap: 3px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.side-order-list li:last-child { border-bottom: none; padding-bottom: 0; }
.side-order-customer { font-weight: 700; font-size: 0.85rem; }
.side-order-list .badge { align-self: flex-start; }

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
}
.sidebar-backdrop { display: none; }

@media (max-width: 880px) {
  .dash-mobile-topbar { display: flex; }
  .sidebar-toggle { display: inline-block; }
  .sidebar-collapse-btn { display: none; }
  .dashboard-shell { display: block; }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    z-index: 200;
    box-shadow: var(--shadow);
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar.collapsed { width: 260px; }
  .sidebar.collapsed .sidebar-label,
  .sidebar.collapsed .sidebar-caret,
  .sidebar.collapsed .new-pill,
  .sidebar.collapsed .nav-pct,
  .sidebar.collapsed .sidebar-header-text,
  .sidebar.collapsed .sidebar-header-caret,
  .sidebar.collapsed .sidebar-footer-text,
  .sidebar.collapsed .sidebar-footer-menu,
  .sidebar.collapsed .sidebar-section-label {
    display: inline;
  }
  .sidebar.collapsed .sidebar-header,
  .sidebar.collapsed .sidebar-footer,
  .sidebar.collapsed .sidebar-footer-main { justify-content: flex-start; }
  .sidebar.collapsed .sidebar-sublist { display: none; }
  .sidebar.collapsed.mobile-open .sidebar-group.open > .sidebar-sublist { display: flex; }
  .sidebar.collapsed .sidebar-link { justify-content: flex-start; padding: 10px 16px; }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,20,30,0.45);
    z-index: 150;
  }
  .sidebar-backdrop.show { display: block; }
  .main-panel { width: 100%; }
}

/* --- cards & layout --- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: white;
  padding: 11px 18px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--brand-dark); }
.btn.secondary { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn.secondary:hover { background: var(--brand-light); }
.btn.whatsapp { background: var(--whatsapp); }
.btn.whatsapp:hover { background: var(--whatsapp-dark); }
.btn.small { padding: 7px 12px; font-size: 0.85rem; }
.btn.danger { background: #b3261e; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  margin: 6px 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: white;
  color: var(--text);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); }
label { font-weight: 700; font-size: 0.85rem; color: var(--ink-soft); }

.muted { color: var(--muted); font-size: 0.9rem; }
.price { font-weight: 800; color: var(--brand-dark); }

/* --- storefront.html: shop-level branding & extras --- */
.storefront-wrap .price { color: var(--shop-accent, var(--brand-dark)); }
.storefront-nav {
  display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; padding: 8px 2px;
  border-bottom: 1px solid var(--border);
}
.storefront-nav a { font-weight: 700; font-size: 0.88rem; color: var(--shop-accent, var(--brand)); text-decoration: none; }
.storefront-nav a:hover { text-decoration: underline; }
.storefront-social-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.storefront-social-row a { font-size: 0.82rem; font-weight: 700; color: var(--shop-accent, var(--brand)); text-decoration: none; }
.storefront-social-row a:hover { text-decoration: underline; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge.pending { background: #fff1d6; color: #8a5a00; }
.badge.deposit_paid { background: #e3ecff; color: #1f4bb3; }
.badge.balance_paid { background: #e1f5ea; color: #0f7a45; }
.badge.cancelled { background: #fde3e0; color: #a3291f; }
.badge.manual { background: #efe7dd; color: #5c5044; }
.badge.plan-free { background: #efe7dd; color: #5c5044; }
.badge.plan-lite { background: #e3ecff; color: #1f4bb3; }
.badge.plan-pro { background: var(--brand-light); color: var(--brand-dark); }
.badge.plan-business_plus { background: #e3ecff; color: #1f4bb3; }
.badge.plan-business_pro { background: var(--brand-light); color: var(--brand-dark); }
.badge.fulfillment-processing { background: #efe7dd; color: #5c5044; }
.badge.fulfillment-shipped { background: #e3ecff; color: #1f4bb3; }
.badge.fulfillment-delivered { background: #e1f5ea; color: #0f7a45; }

.flash { background: #e1f5ea; border: 1px solid #b9e6cb; color: #0f5132; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }
.error { background: #fde3e0; border: 1px solid #f6bdb5; color: #7d241a; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }

.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }

.qty-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-controls button { width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--border); background: white; font-size: 1rem; }

footer { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 32px 16px 40px; }
footer a { color: var(--muted); }

/* --- site footer (rich multi-column) --- */
.site-footer { text-align: left; padding: 48px 24px 24px; background: var(--bg); border-top: 1px solid var(--border); margin-top: 40px; }
.footer-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin: 12px 0 16px; line-height: 1.5; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); margin: 0 0 12px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--muted); font-size: 0.92rem; }
.footer-col a:hover, footer a:hover { color: var(--brand); }
.footer-bottom { max-width: 1180px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.82rem; text-align: center; }

/* --- floating WhatsApp bubble --- */
.whatsapp-bubble {
  position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px;
  background: var(--whatsapp); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25); z-index: 999; transition: transform 0.15s ease;
}
.whatsapp-bubble:hover { background: var(--whatsapp-dark); transform: scale(1.06); }
@media (max-width: 600px) { .whatsapp-bubble { right: 14px; bottom: 14px; width: 50px; height: 50px; } }

.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* --- top accent stripe (brand-colored, marketing pages only) --- */
.accent-stripe { height: 5px; display: flex; }
.accent-stripe span { flex: 1; }
.accent-stripe span:nth-child(1) { background: var(--brand); }
.accent-stripe span:nth-child(2) { background: var(--accent); }
.accent-stripe span:nth-child(3) { background: var(--brand-dark); }
.accent-stripe span:nth-child(4) { background: var(--ink); }

/* --- "new" announcement badge above the hero headline --- */
.new-badge {
  display: inline-flex; align-items: center; gap: 10px; background: white;
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 16px 6px 6px;
  font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 18px; box-shadow: var(--shadow);
}
.new-badge .tag {
  background: var(--brand); color: white; border-radius: 999px; padding: 3px 12px;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700;
}

/* --- product tour: alternating mockup screenshot bands --- */
.tour-row { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.tour-row.reverse .tour-copy { order: 2; }
.tour-row.reverse .tour-shot { order: 1; }
.tour-copy h2 { margin-bottom: 10px; }
.tour-shot { position: relative; }
.mockup-frame {
  border-radius: 0; overflow: hidden; box-shadow: 0 20px 50px rgba(20,86,143,0.18);
  border: 1px solid var(--border); background: white;
}
.mockup-frame .chrome { display: flex; gap: 6px; padding: 10px 14px; background: var(--brand-light); }
.mockup-frame .chrome span { width: 10px; height: 10px; border-radius: 50%; background: #8fc9ef; }
.mockup-frame img { display: block; width: 100%; }
.float-chip {
  position: absolute; background: white; border-radius: 0; padding: 10px 16px;
  box-shadow: 0 10px 24px rgba(20,86,143,0.18); font-size: 0.85rem; font-weight: 700;
  color: var(--ink); white-space: nowrap; border: 1px solid var(--border);
}
@media (max-width: 900px) {
  .tour-row, .tour-row.reverse { grid-template-columns: 1fr; }
  .tour-row.reverse .tour-copy, .tour-row.reverse .tour-shot { order: initial; }
  .float-chip { display: none; }
}

/* --- horizontal scrolling feature-pill ticker --- */
.ticker-wrap {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.ticker-track { display: flex; gap: 14px; width: max-content; animation: ticker-scroll 34s linear infinite; }
.ticker-track span {
  display: inline-flex; align-items: center; gap: 8px; background: white; border: 1px solid var(--border);
  border-radius: 999px; padding: 10px 20px; font-size: 0.9rem; font-weight: 600; white-space: nowrap;
}
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* --- availability chip in the closing CTA band --- */
.available-chip {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 8px 18px;
  font-size: 0.85rem; margin-bottom: 18px; color: white;
}

/* --- feature spotlight cards (on-palette tints only, no new hues) --- */
:root {
  --tint-a: var(--brand-light);   /* pale navy wash */
  --tint-b: #fbeed4;              /* light amber wash, sparing accent contrast */
}
.spotlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .spotlight-grid { grid-template-columns: 1fr; } }
.spotlight-card {
  border-radius: var(--radius); padding: 28px 28px 40px; position: relative;
}
.spotlight-card.tint-a { background: var(--tint-a); }
.spotlight-card.tint-b { background: var(--tint-b); }
.spotlight-card h3 { margin: 0 0 8px; font-size: 1.25rem; }
.spotlight-card p.muted { max-width: 420px; }
.spotlight-visual { margin-top: 18px; }

/* small illustrative UI snippets used inside spotlight cards - decorative
   only, not screenshots, so they never risk showing stale/fake data.
   Built as a small bento-style stat card (icon-circle + number + label),
   the same visual language Catlog uses, but square-cornered and kept
   inside the Bleu Marine family - variety comes from tonal shades of
   the same two hues, never a new color. */
.mini-chat-bubble {
  background: white; box-shadow: var(--shadow); padding: 14px 16px 14px 14px;
  max-width: 300px; display: flex; gap: 10px; align-items: flex-start;
}
.mini-chat-bubble .avatar {
  width: 34px; height: 34px; flex-shrink: 0; background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center; color: white; font-size: 1rem;
}
.mini-chat-bubble .body { font-size: 0.88rem; line-height: 1.4; }
.mini-chat-bubble .who { color: var(--brand); font-weight: 800; font-size: 0.78rem; display: block; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.02em; }

.bento-card {
  background: white; padding: 18px 20px 22px; box-shadow: var(--shadow);
  max-width: 320px; position: relative;
}
.bento-card .bento-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; font-weight: 700; font-size: 0.85rem; color: var(--ink-soft);
}
.bento-card .bento-head .tag {
  background: var(--bg); border: 1px solid var(--border); font-size: 0.7rem;
  padding: 3px 10px; font-weight: 800; letter-spacing: 0.02em; color: var(--muted);
}
.bento-grid { display: grid; grid-template-columns: 1fr 1fr; }
.bento-cell { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 0; }
.bento-cell:nth-child(1) { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding-right: 14px; }
.bento-cell:nth-child(2) { border-bottom: 1px solid var(--border); padding-left: 14px; }
.bento-cell:nth-child(3) { border-right: 1px solid var(--border); padding-right: 14px; padding-top: 12px; }
.bento-cell:nth-child(4) { padding-left: 14px; padding-top: 12px; }
.bento-icon {
  width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center;
  justify-content: center;
}
.bento-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bento-cell strong { display: block; font-size: 1.05rem; line-height: 1.15; }
.bento-cell span { color: var(--muted); font-size: 0.72rem; }
.bento-float-chip {
  position: absolute; right: -1px; bottom: -16px; background: white; border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(20,86,143,0.18); padding: 10px 14px; display: flex; align-items: center;
  gap: 8px; font-size: 0.82rem; font-weight: 700; color: var(--ink);
}
.bento-float-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-dark); flex-shrink: 0; }

/* --- phone mockup frame (for spotlight card 2 + the app-preview band) --- */
.phone-frame {
  width: 230px; margin: 0 auto; border: 8px solid var(--ink); border-radius: 34px;
  overflow: hidden; position: relative; box-shadow: 0 24px 60px -20px rgba(0,0,0,0.45); background: white;
}
.phone-frame::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 74px; height: 20px; background: var(--ink); border-radius: 0 0 14px 14px; z-index: 2;
}
.phone-frame img { display: block; width: 100%; }
.phone-frame.compact { width: 260px; }
.phone-notif {
  margin: 34px 14px 12px; background: var(--ink); color: white; padding: 12px 14px;
  display: flex; gap: 10px; align-items: flex-start;
}
.phone-notif .app-icon {
  width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 800; background: linear-gradient(135deg, var(--brand), var(--accent)); color: white; font-size: 0.85rem;
}
.phone-notif .body strong { display: block; font-size: 0.82rem; }
.phone-notif .body span { font-size: 0.76rem; color: rgba(255,255,255,0.72); line-height: 1.3; }
.phone-stats { display: flex; gap: 10px; margin: 0 14px 22px; }
.phone-stat { flex: 1; background: var(--bg); border: 1px solid var(--border); padding: 10px; }
.phone-stat .bento-icon { width: 26px; height: 26px; font-size: 0.8rem; margin-bottom: 8px; }
.phone-stat strong { display: block; font-size: 0.95rem; }
.phone-stat span { font-size: 0.66rem; color: var(--muted); }

/* --- app-coming-soon band (reuses .band.ink for the dark gradient) --- */
.app-band-inner p.muted { color: rgba(255,255,255,0.68); max-width: 480px; }
.app-band-inner .available-chip { margin-bottom: 14px; }

/* --- payments band --- */
.payments-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .payments-grid { grid-template-columns: 1fr; } }
.payment-method-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.payment-method-row span {
  background: white; border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px;
  font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); box-shadow: var(--shadow);
}
.payment-visual {
  background: white; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  max-width: 340px; margin-left: auto;
}
.payment-visual .row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.payment-visual .row span { flex: 1; }
.payment-visual .row strong { white-space: nowrap; }
.payment-visual .row:last-child { border-bottom: none; }
.payment-visual .row strong { color: var(--brand-dark); }

/* --- honesty-disclaimer callout (legal pages) --- */
.callout { background: #fff8ec; border: 1px solid #f0dfb8; border-radius: var(--radius); padding: 14px 18px; font-size: 0.9rem; color: #6b5a2e; margin-bottom: 24px; }
.legal-updated { color: var(--muted); font-size: 0.85rem; margin-top: -8px; }
.legal-section { margin: 22px 0; }
.legal-section h2 { font-size: 1.1rem; margin-bottom: 6px; }
.legal-section p { line-height: 1.6; color: var(--ink); }

/* --- marketing pages --- */
.hero { padding: 40px 4px 24px; text-align: left; }
.hero h1 { font-size: 2.1rem; line-height: 1.15; margin: 12px 0 14px; color: var(--ink); }
@media (max-width: 600px) { .hero h1 { font-size: 1.6rem; } }
.hero .highlight { color: var(--brand); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; background: var(--brand-light); color: var(--brand-dark);
  padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
}
.hero-art { display: flex; justify-content: center; margin: 24px 0 8px; }

/* Homepage hero: real two-column grid on desktop instead of stacked blocks */
.hero-band {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 20px 0 8px;
  position: relative; isolation: isolate; overflow: hidden;
  background-image: radial-gradient(var(--border) 1.4px, transparent 1.4px);
  background-size: 24px 24px; background-position: -8px -8px;
}
.hero-band::before, .hero-band::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; pointer-events: none;
}
.hero-band::before { width: 340px; height: 340px; background: var(--brand-light); opacity: 0.6; top: -110px; right: -70px; }
.hero-band::after { width: 280px; height: 280px; background: var(--accent); opacity: 0.16; bottom: -120px; left: -60px; }
.hero-band .hero { padding: 0; position: relative; z-index: 1; }
.hero-band .hero-art { margin: 0; position: relative; z-index: 1; }
@media (max-width: 900px) {
  .hero-band { grid-template-columns: 1fr; gap: 8px; }
  .hero-band .hero-art { order: -1; margin-bottom: 8px; }
  .hero-band .hero-art svg { width: 220px; height: auto; }
}

.pillbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.pillbar span {
  background: white; border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px;
  font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); box-shadow: var(--shadow);
}
.pillbar span.soon {
  background: transparent; border: 1px dashed var(--muted); color: var(--muted); box-shadow: none; font-weight: 600;
}

.compare-grid, .feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature-grid { grid-template-columns: repeat(3, 1fr); }
body.marketing .feature-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { body.marketing .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .compare-grid, .feature-grid, body.marketing .feature-grid { grid-template-columns: 1fr; } }
.feature { padding: 18px; }
.feature .icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--brand-light); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.feature .icon svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block;
}
.feature strong { display: block; margin-bottom: 6px; font-size: 1.02rem; }
.feature h2 { font-size: 1.02rem; margin: 0 0 6px; }

/* --- "how it works" numbered steps, laid out horizontally on desktop --- */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 900px) { .steps-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps-row { grid-template-columns: 1fr; } }
.step { position: relative; }
.step .num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: white;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.95rem; margin-bottom: 12px;
}
.step h3 { font-size: 1rem; margin: 0 0 6px; }
.step p { margin: 0; }

/* --- old-way / new-way comparison as two distinct panels --- */
.compare-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .compare-panels { grid-template-columns: 1fr; } }
.compare-panel { border-radius: var(--radius); padding: 24px; }
.compare-panel.old { background: var(--brand-light); border: 1px solid var(--border); }
.compare-panel.new { background: var(--ink); color: white; box-shadow: var(--shadow); }
.compare-panel h3 { margin: 0 0 14px; }
.compare-panel.new h3 { color: white; }
.compare-panel ul { list-style: none; margin: 0; padding: 0; }
.compare-panel li { padding: 7px 0; display: flex; gap: 8px; align-items: flex-start; }
.compare-panel.old li { color: var(--ink-soft); }
.compare-panel.new li { color: rgba(255,255,255,0.92); }

/* --- compact pricing teaser row on the homepage --- */
.plan-teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 720px) { .plan-teaser-grid { grid-template-columns: 1fr; } }
.plan-teaser { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center; }
.plan-teaser.popular { border-color: var(--accent-dark); box-shadow: 0 0 0 3px var(--brand-light); }
.plan-teaser .amount { font-size: 1.5rem; font-weight: 800; color: var(--brand-dark); margin: 8px 0 2px; }
.plan-teaser ul { list-style: none; padding: 0; margin: 14px 0; text-align: left; }
.plan-teaser li { padding: 4px 0; font-size: 0.88rem; color: var(--ink-soft); }

.faq details { border-bottom: 1px solid var(--border); padding: 12px 0; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--ink); }
.faq p { color: var(--muted); margin: 8px 0 0; }

.cta-band {
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
  color: white; border-radius: var(--radius); padding: 32px 24px; text-align: center; margin-bottom: 14px;
}
.cta-band h2 { color: white; }
.cta-band p { color: rgba(255,255,255,0.75); }

/* --- filter tabs (orders, settings) --- */
.filter-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 12px 0 16px; padding-bottom: 4px; }
.filter-tabs a {
  white-space: nowrap; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  background: var(--card); border: 1px solid var(--border); color: var(--text); font-size: 0.85rem; font-weight: 600;
}
.filter-tabs a.active { background: var(--ink); color: white; border-color: var(--ink); }
.filter-tabs.sub-tabs { margin-top: -8px; }
.filter-tabs.sub-tabs a {
  background: transparent; border-color: transparent; color: var(--muted); font-size: 0.82rem; padding: 6px 12px;
}
.filter-tabs.sub-tabs a.active { background: var(--card); color: var(--text); border-color: var(--border); }

/* --- settings sub-tab UI: social link rows, weekday picker, image gallery --- */
.social-input-row { display: flex; align-items: stretch; }
.social-input-row span {
  display: flex; align-items: center; padding: 0 10px; background: var(--card);
  border: 1px solid var(--border); border-right: none; border-radius: 8px 0 0 8px;
  color: var(--muted); font-size: 0.85rem; white-space: nowrap;
}
.social-input-row input { border-radius: 0 8px 8px 0; }

.weekday-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.weekday-check {
  display: flex; align-items: center; gap: 6px; font-weight: 400; width: auto;
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-size: 0.85rem;
}
.weekday-check input { width: auto; margin: 0; }

.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.image-grid-item {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--card);
  display: flex; flex-direction: column;
}
.image-grid-item img { width: 100%; height: 90px; object-fit: cover; display: block; }
.image-grid-item form { padding: 6px; }
.image-grid-item .btn { width: 100%; }

/* --- modals (add/edit product, add customer) --- */
.modal-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(20,86,143,0.5);
  align-items: flex-start; justify-content: center; padding: 24px 12px; overflow-y: auto; z-index: 100;
}
.modal-backdrop.open { display: flex; }
.modal { background: white; border-radius: var(--radius); padding: 22px; width: 100%; max-width: 480px; box-shadow: var(--shadow); }
.modal-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; line-height: 1; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* --- profile completion checklist --- */
.progress { background: var(--border); border-radius: 999px; height: 8px; overflow: hidden; margin: 8px 0 12px; }
.progress-bar { background: var(--brand); height: 100%; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 4px 0; color: var(--muted); }
.checklist li.done { color: var(--brand-dark); font-weight: 600; }

/* --- Google sign-in button + divider --- */
.btn.google {
  display: flex; align-items: center; justify-content: center; width: 100%;
  background: white; color: var(--text); border: 1px solid var(--border); margin-bottom: 4px; border-radius: 10px;
}
.btn.google:hover { background: #f7f2ec; }
.divider { display: flex; align-items: center; text-align: center; color: var(--muted); font-size: 0.85rem; margin: 14px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-bottom: 1px solid var(--border); }
.divider span { padding: 0 10px; }

/* ============================================================
   Dashboard expansion: nav pills, stat-icon cards, toggles,
   upgrade-lock banners, wallet card, sub-tab rows.
   ============================================================ */

.nav-pct { font-size: 0.7rem; opacity: 0.8; margin-left: 3px; }
.new-pill {
  display: inline-block; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.03em;
  background: var(--whatsapp); color: white; padding: 1px 5px; border-radius: 4px;
  vertical-align: middle; margin-left: 2px; text-transform: uppercase;
}

/* Sub-tab row used inside a section page (Analytics/Money Tracker/Extra
   Tools/etc.) to switch between its own pages - same look as .filter-tabs
   but semantically distinct so it can sit right under a page <h1>. */
.tab-row { display: flex; gap: 6px; overflow-x: auto; margin: 14px 0 20px; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.tab-row a {
  padding: 8px 14px; border-radius: var(--radius); text-decoration: none; color: var(--muted);
  font-weight: 600; font-size: 0.9rem; white-space: nowrap; border-bottom: 2px solid transparent;
}
.tab-row a.active { color: var(--brand-dark); border-bottom-color: var(--brand); }
.tab-row a:hover { color: var(--ink); }

/* Icon + number stat cards (dashboard home, analytics overview) */
.stat-icon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 16px 0; }
.stat-icon-card { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.stat-icon-card .icon-badge {
  width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0; background: var(--brand-light); color: var(--brand-dark);
}
.stat-icon-card .icon-badge.orange { background: #fff1d6; color: #8a5a00; }
.stat-icon-card .icon-badge.green { background: #e1f5ea; color: #0f7a45; }
.stat-icon-card .icon-badge.red { background: #fde3e0; color: #a3291f; }
.stat-icon-card .stat-num { font-size: 1.3rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.stat-icon-card .stat-label { color: var(--muted); font-size: 0.85rem; }

/* Toggle switch (used everywhere a feature can be turned on/off) */
.toggle-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; vertical-align: middle; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-switch .slider {
  position: absolute; cursor: pointer; inset: 0; background: var(--border); transition: 0.15s; border-radius: 999px;
}
.toggle-switch .slider::before {
  position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background: white; transition: 0.15s; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .slider { background: var(--brand); }
.toggle-switch input:checked + .slider::before { transform: translateX(18px); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.toggle-row:last-child { border-bottom: none; }
.toggle-row .toggle-copy strong { display: block; }
.toggle-row .toggle-copy span { color: var(--muted); font-size: 0.85rem; }

/* Upgrade-lock banner, shown instead of a gated feature's real content */
.upgrade-lock {
  background: var(--brand-light); border: 1px dashed var(--brand); border-radius: var(--radius);
  padding: 24px; text-align: center; color: var(--ink);
}
.upgrade-lock .lock-icon { margin-bottom: 6px; display: flex; align-items: center; justify-content: center; }
.upgrade-lock .lock-icon svg {
  width: 30px; height: 30px; fill: none; stroke: var(--brand-dark);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.upgrade-lock p { color: var(--ink-soft); margin: 6px 0 14px; }

/* Wallet card (Payments page) */
.wallet-card {
  background: linear-gradient(135deg, var(--ink), var(--brand)); color: white; border-radius: var(--radius);
  padding: 24px; margin-bottom: 18px;
}
.wallet-card .wallet-label { opacity: 0.85; font-size: 0.85rem; }
.wallet-card .wallet-amount { font-size: 2rem; font-weight: 800; margin: 4px 0 16px; }
.wallet-card .wallet-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.wallet-card .btn.on-dark { background: white; color: var(--ink); }
.wallet-card .btn.on-dark.outline { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.6); }

/* Wallet card tabs (Wallet / Shopatik Credits) */
.wallet-tabs { display: flex; gap: 18px; margin-bottom: 14px; }
.wallet-tab {
  background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.65);
  font-size: 0.9rem; font-weight: 700; padding: 0 0 6px; border-bottom: 2px solid transparent;
}
.wallet-tab.active { color: white; border-bottom-color: white; }
.wallet-currency-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
  background: rgba(255,255,255,0.15); border-radius: 6px; padding: 2px 8px; margin-bottom: 6px;
}
.wallet-icon-actions { display: flex; gap: 22px; margin: 16px 0 12px; }
.wallet-icon-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: none;
  color: white; text-decoration: none; cursor: pointer; font-size: 0.72rem; font-weight: 600;
}
.wallet-icon-btn .icon-circle {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
}
.wallet-icon-btn:hover .icon-circle { background: rgba(255,255,255,0.28); }
.wallet-icon-btn svg { width: 17px; height: 17px; fill: none; stroke: white; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wallet-link { color: white; font-size: 0.82rem; font-weight: 700; text-decoration: underline; }
.wallet-credits-note { color: rgba(255,255,255,0.85); font-size: 0.82rem; margin: 10px 0 0; line-height: 1.5; }
.wallet-credits-note a { color: white; text-decoration: underline; }

/* Add-ons / plan feature cards */
.addon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 16px 0; }
.addon-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.addon-card .addon-price { font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.addon-card .addon-price small { color: var(--muted); font-weight: 500; font-size: 0.75rem; }

.feature-check-list { list-style: none; padding: 0; margin: 10px 0; }
.feature-check-list li { padding: 5px 0; padding-left: 24px; position: relative; color: var(--text); font-size: 0.92rem; }
.feature-check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--whatsapp); font-weight: 800; }

/* Simple inline stat-strip used on Get Started + Daily Report pages */
.info-banner {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 16px; color: var(--ink-soft); font-size: 0.9rem;
}
.kv-table { width: 100%; border-collapse: collapse; }
.kv-table td { padding: 8px 0; border-bottom: 1px solid var(--border); }
.kv-table td:last-child { text-align: right; font-weight: 700; color: var(--ink); }
.kv-table tr:last-child td { border-bottom: none; }

/* Persistent "setup incomplete" reminder banner shown across dashboard
   pages (except Get Started itself, which has its own richer version). */
.setup-banner {
  background: #fdf1e2;
  border: 1px solid #f6dfb8;
  color: #8a5a15;
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 700;
}
.setup-banner .btn { flex-shrink: 0; }
@media (max-width: 560px) { .setup-banner { flex-direction: column; align-items: flex-start; } }

/* --- Get Started page --- */
.gs-greeting { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.gs-greeting h1 { margin: 0; }
.gs-help-banner {
  background: #fdf1e2;
  border: 1px solid #f6dfb8;
  color: #8a5a15;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gs-help-banner a { color: #8a5a15; font-weight: 800; text-decoration: underline; white-space: nowrap; }

.gs-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .gs-grid { grid-template-columns: 1fr; } }

.gs-progress-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.gs-progress-head h2 { margin: 0; font-size: 1rem; }
.gs-progress-head span { color: var(--muted); font-size: 0.85rem; font-weight: 700; }

.gs-task {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.gs-task:last-child { border-bottom: none; }
.gs-task-check {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.75rem; font-weight: 800;
}
.gs-task.done .gs-task-check { background: var(--whatsapp); border-color: var(--whatsapp); }
.gs-task-body { flex: 1; }
.gs-task-body strong { display: block; font-size: 0.92rem; }
.gs-task-body span { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.gs-task-action { flex-shrink: 0; white-space: nowrap; }

.gs-side-card { margin-bottom: 16px; }
.gs-faq-link {
  display: block; padding: 9px 0; border-bottom: 1px solid var(--border);
  color: var(--brand); text-decoration: none; font-size: 0.88rem; font-weight: 600;
}
.gs-faq-link:last-child { border-bottom: none; }
.gs-support-card { text-align: left; }
.gs-support-card .whatsapp-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--whatsapp);
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 10px;
}

/* --- dashboard_my_store.html : "My Store" hub --- */
.mystore-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  margin-bottom: 18px;
}
.mystore-cover { display: block; width: 100%; height: 140px; object-fit: cover; }
.mystore-cover-empty { background: linear-gradient(135deg, var(--brand), var(--accent)); }
.mystore-cover-wrap { position: relative; }
.mystore-change-cover-form { position: absolute; top: 10px; right: 10px; margin: 0; }
.mystore-change-cover-btn { cursor: pointer; margin: 0; }
.mystore-hero-info {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px 18px;
}
.mystore-avatar-wrap { position: relative; flex-shrink: 0; margin-top: -34px; }
.mystore-avatar {
  width: 68px; height: 68px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--card);
  background: var(--card);
}
.mystore-avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; color: white;
  background: var(--ink);
}
.mystore-change-logo-form { position: absolute; bottom: 0; right: -2px; margin: 0; }
.mystore-change-logo-btn {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: white; border: 2px solid var(--card);
  cursor: pointer; margin: 0;
}
.mystore-link { font-size: 0.9rem; color: var(--brand); }

.mystore-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.mystore-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mystore-card {
  display: flex; gap: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px;
  text-decoration: none; color: inherit;
}
.mystore-card:hover { border-color: var(--brand); }
.mystore-card-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand-light); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.mystore-card-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mystore-card-body strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
.mystore-card-body p { margin: 0 0 8px; font-size: 0.85rem; color: var(--muted); }
.mystore-card-cta { font-size: 0.82rem; font-weight: 700; color: var(--brand); }

.mystore-side-card h3 { margin-top: 0; font-size: 1rem; }
.mystore-link-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mystore-link-row input { margin: 0; flex: 1; font-size: 0.8rem; padding: 8px 10px; }
.mystore-link-label { display: none; }
.mystore-upgrade-card { background: var(--brand-light); border-color: var(--brand); }

@media (max-width: 980px) {
  .mystore-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mystore-cards { grid-template-columns: 1fr; }
  .mystore-hero-info { flex-direction: column; align-items: flex-start; }
  .mystore-link-row { flex-wrap: wrap; }
  .mystore-link-row input { flex-basis: 100%; }
}

/* --- Settings breadcrumb (matches "Store settings > X" in the reference) --- */
.mystore-breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.mystore-breadcrumb a { color: var(--brand); text-decoration: none; }
.mystore-breadcrumb a:hover { text-decoration: underline; }
.mystore-breadcrumb span { margin: 0 4px; }
