:root {
  /* ── Design system — aligned with landing page tokens (2026-05) ── */
  --primary: #5cc193;
  --primary-strong: #3da876;
  --primary-soft: #e8f5ef;
  --primary-faint: #f6fbf8;

  /* Text hierarchy */
  --text: #1a2027;
  --text-secondary: #3b4651;
  --light-muted: #6b7680;
  --text-muted: #9aa3ab;
  --text-error: #cb5e5e;

  /* Surfaces */
  --panel: #ffffff;
  --panel-soft: #f4f6f3;
  --surf-hover: #eef2ee;

  /* Legacy compatibility aliases */
  --dark: #1a2027;
  --dark-raised: #2d3540;
  --dark-soft: #3b4651;
  --light: #f4f6f3;

  /* Status */
  --success: #5cc193;
  --warning: #c89a3e;
  --danger: #cb5e5e;
  --info: #5b8aa8;
  --warning-soft: #fbf3df;
  --danger-soft: #fbebeb;
  --info-soft: #e8f0f5;

  /* Borders */
  --line: #e6e9e5;
  --line-strong: #d4d9d4;
  --line-subtle: rgba(230, 233, 229, 0.6);

  /* Shadows — flat, like the landing */
  --shadow-xs: 0 0 0 1px rgba(31, 41, 55, 0.04);
  --shadow-sm: 0 1px 2px rgba(31, 41, 55, 0.06), 0 0 0 1px rgba(31, 41, 55, 0.04);
  --shadow-md: 0 2px 6px rgba(31, 41, 55, 0.06), 0 4px 16px rgba(31, 41, 55, 0.05);
  --shadow-lg: 0 6px 24px rgba(31, 41, 55, 0.08), 0 2px 6px rgba(31, 41, 55, 0.05);
  --shadow: var(--shadow-md);

  /* Radius — tighter, like the landing (was 24/18/14) */
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --radius-xs: 6px;

  --side-nav-w: 272px;
  --side-nav-w-collapsed: 78px;
}

[data-theme="dark"] {
  --primary: #5cc193;
  --primary-strong: #68d4a4;
  --primary-soft: #172a1f;
  --primary-faint: #0c1912;

  --text: #e4eaf0;
  --text-secondary: #a8b6c3;
  --light-muted: #687887;
  --text-muted: #3d5060;
  --text-error: #d46464;

  --panel: #181d28;
  --panel-soft: #1c2232;
  --surf-hover: #20283a;

  --dark: #181d28;
  --dark-raised: #1c2232;
  --dark-soft: #232d40;
  --light: #1c2232;

  --success: #5cc193;
  --warning: #d4a836;
  --danger: #d46464;
  --info: #6a9ab8;
  --warning-soft: #231a06;
  --danger-soft: #220f0f;
  --info-soft: #0c1e2e;

  --line: #252e40;
  --line-strong: #2e3a50;
  --line-subtle: rgba(37, 46, 64, 0.7);

  --shadow-xs: 0 0 0 1px rgba(0, 0, 0, 0.30);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.40), 0 0 0 1px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.35), 0 4px 20px rgba(0, 0, 0, 0.20);
  --shadow-lg: 0 6px 28px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.30);
  --shadow: var(--shadow-md);
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  max-width: 100%;
  overflow-x: hidden;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  font-family: Inter, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fafbf8;
}

[data-theme="dark"] body {
  background: #0e1117;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-strong); }

code {
  background: rgba(26, 32, 39, 0.05);
  color: var(--dark);
  padding: 2px 7px;
  border-radius: 8px;
}

[data-theme="dark"] code {
  background: rgba(239, 244, 241, 0.08);
  color: var(--text);
}

button, .button {
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 11px 18px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s ease, opacity .15s ease, box-shadow .15s ease;
  box-shadow: none;
}

button:hover, .button:hover {
  background: var(--primary-strong);
  box-shadow: 0 4px 12px rgba(92, 193, 147, 0.28);
}

button:disabled, .button:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

button:focus-visible, .button:focus-visible {
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  inset-inline-start: 10px;
  top: 10px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transform: translateY(calc(-100% - 18px));
  opacity: 0;
  pointer-events: none;
}

.skip-link:focus {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  outline: none;
}

button.secondary, .button.secondary {
  background: rgba(26, 32, 39, 0.04);
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--line-strong);
}

button.secondary:hover, .button.secondary:hover {
  background: rgba(26, 32, 39, 0.05);
}

[data-theme="dark"] button.secondary,
[data-theme="dark"] .button.secondary {
  background: rgba(239, 244, 241, 0.08);
  color: var(--text-secondary);
  border-color: rgba(239, 244, 241, 0.18);
}

[data-theme="dark"] button.secondary:hover,
[data-theme="dark"] .button.secondary:hover {
  background: rgba(239, 244, 241, 0.14);
}

input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="file"], input[type="number"], select, textarea {
  width: 100%;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] input[type="file"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: var(--panel-soft);
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

input::placeholder { color: var(--text-muted); }
label { color: var(--light-muted); font-size: 13px; font-weight: 600; }

.landing-body {
  overflow-x: clip; /* Prevent RTL horizontal scroll — mobile shows blank page without this */
  background:
    radial-gradient(circle at 12% 8%, rgba(92, 193, 147, 0.16), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(132, 136, 142, 0.12), transparent 22%),
    linear-gradient(180deg, #f7f9f8 0%, #eef3f0 48%, #e6ece9 100%);
  overflow-x: clip;
}

@supports not (overflow: clip) {
  .landing-body {
    overflow-x: hidden;
  }
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(18px, 5vw, 54px);
  background: rgba(247, 249, 248, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  max-width: 100%;
  overflow-x: clip;
}

[data-theme="dark"] .landing-header {
  background: rgba(31, 37, 43, 0.92);
  border-bottom-color: rgba(239, 244, 241, 0.12);
}

.landing-brand .brand-logo {
  width: auto;
  height: 42px;
}

.landing-brand,
.landing-nav,
.landing-header-actions,
.landing-section,
.landing-hero,
.landing-hero-copy,
.landing-footer,
.landing-footer-links,
.landing-footer-legal,
.brand-copy {
  min-width: 0;
  max-width: 100%;
}

.landing-nav,
.landing-header-actions,
.landing-cta-row,
.landing-proof-strip,
.landing-footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-nav {
  justify-content: center;
}

.landing-nav a,
.landing-footer-links a {
  color: #4b5660;
  font-size: 14px;
  font-weight: 800;
}

[data-theme="dark"] .landing-nav a,
[data-theme="dark"] .landing-footer-links a,
[data-theme="dark"] .brand-tag {
  color: #edf4f1;
}

.landing-nav a:hover,
.landing-footer-links a:hover {
  color: var(--text);
}

[data-theme="dark"] .landing-nav a:hover,
[data-theme="dark"] .landing-footer-links a:hover {
  color: #ffffff;
}

.landing-header-actions {
  justify-content: flex-end;
}

.landing-account-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.landing-dashboard-link {
  min-height: 44px;
}

.landing-profile-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(26, 32, 39, 0.04);
  border: 1px solid var(--line);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.landing-profile-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(38, 46, 52, 0.12);
  border-color: rgba(18, 130, 92, 0.28);
}

.landing-profile-avatar {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #12825c 0%, #1e9b71 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

[data-theme="dark"] .landing-profile-chip {
  background: rgba(239, 244, 241, 0.08);
  border-color: rgba(239, 244, 241, 0.16);
}

[data-theme="dark"] .landing-profile-chip:hover {
  border-color: rgba(92, 193, 147, 0.45);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.language-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(26, 32, 39, 0.04);
}

[data-theme="dark"] .language-switcher {
  background: rgba(239, 244, 241, 0.08);
  border-color: rgba(239, 244, 241, 0.16);
}

.language-switcher a {
  min-width: 34px;
  padding: 7px 9px;
  border-radius: 999px;
  color: #5b6770;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

[data-theme="dark"] .language-switcher a {
  color: #d8e0dc;
}

.language-switcher a.active {
  color: white;
  background: var(--primary);
}

.landing-section {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 62px) 0;
  scroll-margin-top: 90px; /* Account for sticky header on anchor jumps (#17) */
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .78fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
  min-height: calc(76vh - 78px);
  padding-top: clamp(34px, 5vw, 60px);
}

.landing-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 1px solid rgba(92, 193, 147, 0.35);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(92, 193, 147, 0.1);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.landing-hero h1,
.landing-section-heading h2,
.landing-final-cta h2 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.045em;
}

.landing-hero h1 {
  max-width: 820px;
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.landing-hero-subtitle {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--light-muted);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.landing-cta-row {
  margin-top: 28px;
}

.landing-cta-primary {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(135deg, #1cbc7e 0%, #119c68 100%);
  box-shadow: 0 24px 46px rgba(28, 188, 126, 0.34);
}

.landing-cta-primary:hover {
  box-shadow: 0 28px 58px rgba(28, 188, 126, 0.4);
}

.landing-cta-primary::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 28px;
  border: 1px solid rgba(28, 188, 126, 0.18);
  opacity: 0.9;
  pointer-events: none;
}

.landing-cta-primary--nav {
  min-height: 48px;
  padding: 14px 20px;
}

.landing-cta-primary--hero {
  min-height: 64px;
  padding: 18px 34px;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  box-shadow: 0 30px 64px rgba(28, 188, 126, 0.38);
}

.landing-signup-link {
  min-height: 48px;
  border-color: rgba(18, 130, 92, 0.24);
}

.landing-auth-link,
.landing-login-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 6px;
  color: var(--primary);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.landing-auth-link:hover,
.landing-login-link:hover {
  color: #7fe0b4;
  text-decoration: none;
}

.landing-register-link {
  color: var(--text);
}

.landing-register-link:hover {
  color: var(--primary);
}

.landing-signup-link--hero {
  min-height: 64px;
  padding: 18px 28px;
  font-weight: 900;
}

.landing-proof-strip {
  margin-top: 24px;
}

.landing-proof-strip span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 800;
}

[data-theme="dark"] .landing-proof-strip span {
  color: var(--light);
  background: rgba(239, 244, 241, 0.08);
}

.landing-hero-panel {
  min-width: 0;
  padding: 1px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(92, 193, 147, .65), rgba(132, 136, 142, .16), rgba(114, 119, 124, .22));
  box-shadow: var(--shadow);
}

.landing-mini-window {
  min-width: 0;
  border-radius: 33px;
  padding: 18px;
  background: rgba(255, 255, 255, .82);
}

[data-theme="dark"] .landing-mini-window {
  background: rgba(31, 37, 43, 0.92);
}

.landing-mini-bar {
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
}

.landing-mini-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(45, 53, 60, .22);
}

.landing-mini-card,
.landing-mini-list div {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] .landing-mini-card,
[data-theme="dark"] .landing-mini-list div {
  background: rgba(239, 244, 241, 0.06);
}

.landing-mini-card {
  display: grid;
  gap: 7px;
  padding: 20px;
}

.landing-mini-card strong {
  font-size: 1.4rem;
  color: var(--text);
}

.landing-mini-card span,
.landing-mini-list span {
  color: var(--light-muted);
}

[data-theme="dark"] .landing-mini-card strong,
[data-theme="dark"] .landing-mini-list b {
  color: var(--light);
}

.landing-mini-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.landing-mini-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.landing-mini-list .row-edit {
  background: rgba(217, 119, 6, 0.08);
  border-left: 3px solid rgb(217, 119, 6);
  padding-left: 9px;
}

.landing-mini-list .row-stop {
  background: rgba(220, 38, 38, 0.08);
  border-left: 3px solid rgb(220, 38, 38);
  padding-left: 9px;
}

.landing-mini-list .row-edit span {
  color: rgb(180, 83, 9);
  font-weight: 600;
}

.landing-mini-list .row-stop span {
  color: rgb(185, 28, 28);
  font-weight: 600;
}

[data-theme="dark"] .landing-mini-list .row-edit span {
  color: rgb(253, 186, 116);
}

[data-theme="dark"] .landing-mini-list .row-stop span {
  color: rgb(252, 165, 165);
}

.landing-section-heading {
  max-width: 720px;
  margin-bottom: 22px;
}

.landing-section-note {
  margin: 12px 0 0;
  color: var(--light-muted);
  line-height: 1.55;
}

.landing-section-heading h2,
.landing-final-cta h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
}

.landing-card-grid {
  display: grid;
  gap: 16px;
}

.landing-card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-card,
.landing-steps article,
.landing-faq-list details,
.landing-screenshot-grid figure {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] .landing-card,
[data-theme="dark"] .landing-steps article,
[data-theme="dark"] .landing-faq-list details,
[data-theme="dark"] .landing-screenshot-grid figure {
  background: rgba(239, 244, 241, 0.06);
}

.landing-card {
  padding: 22px;
}

.landing-card span,
.landing-steps span {
  color: var(--primary);
  font-weight: 900;
}

.landing-card h3,
.landing-steps h3 {
  margin: 12px 0 8px;
  color: var(--text);
}

.landing-card p,
.landing-steps p,
.landing-faq-list p {
  margin: 0;
  color: var(--light-muted);
  line-height: 1.5;
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: steps;
}

.landing-steps article {
  padding: 24px;
}

.landing-steps span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: white;
  background: var(--primary);
}

.landing-benefit-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.landing-benefit-list div {
  padding: 16px;
  border: 1px solid rgba(92, 193, 147, .24);
  border-radius: 18px;
  color: var(--text);
  background: rgba(92, 193, 147, .08);
  font-weight: 850;
}

.landing-benefit-grid {
  align-items: stretch;
}

.landing-benefit-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(92, 193, 147, 0.1), rgba(255, 255, 255, 0.58));
}

[data-theme="dark"] .landing-benefit-card {
  background:
    linear-gradient(180deg, rgba(92, 193, 147, 0.14), rgba(239, 244, 241, 0.06));
}

.landing-benefit-card h3 {
  margin: 0;
}

.landing-benefit-card p {
  margin: 0;
}

.landing-mid-cta {
  margin-top: 22px;
}

.landing-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Rich variant: 5 review cards with stars, dates, replies — auto-fit grid */
.landing-testimonials-grid--rich {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  gap: 18px;
}
.landing-testimonials-grid--rich .demo-testimonial {
  padding: 18px 20px 16px;
}

.landing-testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 28px rgba(26, 32, 39, 0.05);
}

[data-theme="dark"] .landing-testimonial-card {
  background: rgba(239, 244, 241, 0.06);
}

.landing-testimonial-quote {
  flex: 1;
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

.landing-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-testimonial-avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, #12825c 0%, #1e9b71 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.landing-testimonial-name {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}

.landing-testimonial-role {
  display: block;
  color: var(--light-muted);
  font-size: 12px;
  margin-top: 2px;
}

.landing-integration-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.landing-integration-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-height: 208px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .58);
  color: var(--text);
  padding: 18px;
  box-shadow: 0 12px 28px rgba(33, 27, 23, 0.05);
}

[data-theme="dark"] .landing-integration-card {
  background: rgba(239, 244, 241, 0.06);
  color: var(--light);
}

.landing-integration-logo {
  width: 56px;
  height: 56px;
  display: block;
}

.landing-integration-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-integration-card p {
  margin: 0;
  color: var(--light-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

[data-theme="dark"] .landing-integration-card p {
  color: rgba(239, 244, 241, 0.72);
}

.landing-provider-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(169, 86, 40, 0.26);
  background: rgba(169, 86, 40, 0.1);
  color: #9a511f;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

[data-theme="dark"] .landing-provider-badge {
  color: #f3c8a7;
  background: rgba(169, 86, 40, 0.18);
  border-color: rgba(243, 200, 167, 0.28);
}

.landing-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.landing-screenshot-grid figure {
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.landing-screenshot-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px 8px 0 0;
}

.landing-screenshot-grid figcaption {
  padding: 14px 16px 16px;
  color: var(--light-muted);
  font-weight: 800;
  line-height: 1.5;
}

.landing-data-note {
  max-width: 760px;
  margin: 16px auto 0;
  color: var(--light-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  text-align: center;
}

.landing-faq-list {
  display: grid;
  gap: 12px;
}

.landing-faq-list details {
  padding: 18px 20px;
}

.landing-faq-list summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
}

.landing-faq-list p {
  margin-top: 10px;
}

.landing-final-cta {
  text-align: center;
  padding: clamp(48px, 8vw, 88px);
  border: 1px solid rgba(92, 193, 147, .24);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 0%, rgba(92, 193, 147, .16), transparent 45%),
    rgba(255, 255, 255, .58);
}

[data-theme="dark"] .landing-final-cta {
  background:
    radial-gradient(circle at 50% 0%, rgba(92, 193, 147, .16), transparent 45%),
    rgba(239, 244, 241, 0.06);
}

.landing-final-cta .landing-pill,
.landing-final-cta .landing-cta-row {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.landing-final-cta .landing-cta-helper,
.landing-final-cta .landing-risk-badges {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.landing-final-cta .landing-data-note {
  margin-top: 16px;
}

.landing-footer {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 26px 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  overflow-x: clip;
}

.landing-footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4b5660;
  font-size: 13px;
  font-weight: 800;
  transition: color 0.15s ease;
}

.landing-footer-instagram:hover {
  color: #c13584;
}

[data-theme="dark"] .landing-footer-instagram {
  color: #edf4f1;
}

[data-theme="dark"] .landing-footer-instagram:hover {
  color: #e1306c;
}

[dir="rtl"] .landing-hero-copy,
[dir="rtl"] .landing-section-heading,
[dir="rtl"] .landing-card,
[dir="rtl"] .landing-steps article,
[dir="rtl"] .landing-faq-list,
[dir="rtl"] .landing-screenshot-grid figcaption {
  text-align: right;
}

[dir="rtl"] .landing-mini-list div {
  flex-direction: row-reverse;
}

[dir="rtl"] .landing-mini-list .row-outcome,
[dir="rtl"] .landing-mini-list .row-edit,
[dir="rtl"] .landing-mini-list .row-stop {
  border-left: 1px solid var(--line);
  padding-left: 16px;
  border-right-width: 3px;
  border-right-style: solid;
  padding-right: 9px;
}

[dir="rtl"] .landing-mini-list .row-outcome {
  border-right-color: rgb(34, 197, 94);
}

[dir="rtl"] .landing-mini-list .row-edit {
  border-right-color: rgb(217, 119, 6);
}

[dir="rtl"] .landing-mini-list .row-stop {
  border-right-color: rgb(220, 38, 38);
}

[dir="rtl"] .landing-plan-features li {
  padding-left: 0;
  padding-right: 22px;
}

[dir="rtl"] .landing-plan-features li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .landing-hero-copy .landing-cta-helper {
  text-align: right;
}

[dir="rtl"] .landing-final-checklist {
  text-align: right;
}

[dir="rtl"] .landing-footer-legal {
  justify-content: flex-end;
}

/* RTL: mini window "traffic light" dots already flow right-to-left from the
   flex direction reversal — no override needed for position, but keep them
   at inline-start (right) which is already the default flex-start in RTL. */

/* RTL: landing-final-checklist uses physical text-align: left — override for Arabic */
[dir="rtl"] .landing-final-checklist {
  text-align: right;
}

@media (max-width: 920px) {
  .landing-header {
    grid-template-columns: auto 1fr;
  }

  .landing-nav {
    display: none;
  }

  .landing-header-actions {
    justify-content: flex-end;
  }

  [dir="rtl"] .landing-header-actions {
    justify-content: flex-start;
  }

  .landing-hero,
  .landing-card-grid.two,
  .landing-card-grid.three,
  .landing-steps,
  .landing-benefit-list,
  .landing-integration-grid,
  .landing-screenshot-grid {
    grid-template-columns: 1fr;
  }

  .landing-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.confirmation-body {
  min-height: 100vh;
  color: #211b17;
  background:
    radial-gradient(circle at 10% 0%, rgba(92, 193, 147, 0.22), transparent 30%),
    linear-gradient(180deg, #fff8ef 0%, #ffe9d5 100%);
}

.confirmation-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.confirmation-card {
  width: min(100%, 540px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(43, 31, 23, 0.08);
  border-radius: 30px;
  padding: clamp(20px, 5vw, 34px);
  box-shadow: 0 28px 80px rgba(80, 45, 19, 0.18);
}

.confirmation-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.confirmation-logo-wrap {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  overflow: hidden;
  background: #1f1c19;
  display: grid;
  place-items: center;
  color: #fff8ef;
  box-shadow: 0 16px 34px rgba(31, 28, 25, 0.18);
}

.confirmation-store-logo,
.confirmation-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.confirmation-store-initial {
  font-size: 1.8rem;
  font-weight: 900;
}

.confirmation-eyebrow,
.confirmation-label {
  margin: 0 0 6px;
  color: #a95628;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.confirmation-hero h1,
.confirmation-product-card h2 {
  margin: 0;
  color: #211b17;
}

.confirmation-hero h1 {
  font-size: clamp(1.55rem, 7vw, 2.35rem);
  line-height: 1;
}

.confirmation-muted,
.confirmation-footer {
  color: #725f50;
  line-height: 1.55;
}

.confirmation-alert {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 800;
}

.confirmation-alert.success { background: #e4f8ec; color: #19663a; }
.confirmation-alert.warning { background: #fff3c7; color: #7a5611; }
.confirmation-alert.danger { background: #ffe2dd; color: #8a2d20; }

.confirmation-status-strip {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 20px;
  background: #211b17;
  color: #fff8ef;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.confirmation-status-strip span {
  color: #d9c8b8;
}

.confirmation-product-card {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: #fff6ec;
  border: 1px solid rgba(169, 86, 40, 0.12);
}

.confirmation-product-image,
.confirmation-product-placeholder {
  width: 104px;
  height: 104px;
  border-radius: 20px;
}

.confirmation-product-image-link {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 20px;
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease;
}

.confirmation-product-image-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(80, 45, 19, 0.12);
}

.confirmation-product-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ffd8bb, #fff2e3);
  color: #9b542b;
  font-weight: 900;
}

.confirmation-edit-form {
  display: grid;
  gap: 0;
}

.confirmation-product-fields {
  display: grid;
  gap: 10px;
}

.confirmation-final-state {
  margin-top: 18px;
  padding: 20px;
  border-radius: 24px;
  background: #fff6ec;
  border: 1px solid rgba(169, 86, 40, 0.12);
}

.confirmation-final-state h2 {
  margin: 0;
  color: #211b17;
  font-size: clamp(1.25rem, 5vw, 1.7rem);
}

.confirmation-final-state p {
  margin: 10px 0 0;
  color: #725f50;
  line-height: 1.55;
}

.confirmation-details {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.confirmation-details div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(33, 27, 23, 0.04);
  display: grid;
  gap: 5px;
}

.confirmation-details span {
  color: #846c59;
  font-size: .82rem;
  font-weight: 800;
}

.confirmation-details strong {
  color: #211b17;
  line-height: 1.45;
}

.confirmation-details--editable {
  gap: 12px;
}

.confirmation-field {
  display: grid;
  gap: 7px;
  color: #211b17;
}

.confirmation-field span {
  color: #846c59;
  font-size: .82rem;
  font-weight: 900;
}

.confirmation-field input,
.confirmation-field textarea {
  width: 100%;
  border: 1px solid rgba(33, 27, 23, 0.12);
  border-radius: 16px;
  background: #fff;
  color: #211b17;
  font: inherit;
  font-weight: 800;
  line-height: 1.4;
  padding: 13px 14px;
  outline: none;
  resize: vertical;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.confirmation-field input:focus,
.confirmation-field textarea:focus {
  border-color: #fd6f2f;
  box-shadow: 0 0 0 4px rgba(92, 193, 147, 0.16);
}

.confirmation-field--readonly input {
  background: rgba(33, 27, 23, 0.04);
  color: #3c3028;
  cursor: default;
}

.confirmation-field--readonly input:focus {
  border-color: rgba(33, 27, 23, 0.12);
  box-shadow: none;
}

.confirmation-field--short {
  max-width: 150px;
}

.confirmation-main-action {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.confirmation-view-image {
  justify-self: start;
}

.confirmation-main-action button {
  width: 100%;
  min-height: 54px;
  font-size: 1rem;
}

.confirmation-cancel-form {
  margin-top: 10px;
}

.confirmation-cancel-form button {
  width: 100%;
  min-height: 52px;
}

.danger-action {
  border-color: rgba(138, 45, 32, 0.26);
  color: #8a2d20;
  background: #ffe2dd;
}

.danger-action:hover {
  border-color: rgba(138, 45, 32, 0.4);
  background: #ffd3cb;
}

.confirmation-secondary-action {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(33, 27, 23, 0.04);
}

.confirmation-secondary-action summary {
  cursor: pointer;
  font-weight: 900;
  color: #3c3028;
}

.confirmation-secondary-action form {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.confirmation-secondary-action textarea {
  background: white;
  color: #211b17;
  border-color: rgba(33, 27, 23, 0.12);
}

.confirmation-secondary-action.danger-zone {
  background: rgba(231, 76, 60, 0.08);
}

.confirmation-footer {
  margin: 18px 0 0;
  text-align: center;
  font-size: .86rem;
}

/* ── Confirmation page dark mode ───────────────────────────────────────── */
[data-theme="dark"] .confirmation-card {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .confirmation-hero h1,
[data-theme="dark"] .confirmation-product-card h2,
[data-theme="dark"] .confirmation-final-state h2,
[data-theme="dark"] .confirmation-details strong,
[data-theme="dark"] .confirmation-field {
  color: var(--text);
}

[data-theme="dark"] .confirmation-eyebrow,
[data-theme="dark"] .confirmation-label {
  color: var(--primary);
}

[data-theme="dark"] .confirmation-muted,
[data-theme="dark"] .confirmation-footer,
[data-theme="dark"] .confirmation-final-state p,
[data-theme="dark"] .confirmation-details span,
[data-theme="dark"] .confirmation-field span {
  color: var(--light-muted);
}

[data-theme="dark"] .confirmation-status-strip {
  background: var(--dark);
  color: var(--text);
}
[data-theme="dark"] .confirmation-status-strip span {
  color: var(--light-muted);
}

[data-theme="dark"] .confirmation-product-card,
[data-theme="dark"] .confirmation-final-state {
  background: var(--dark-raised);
  border-color: var(--line);
}

[data-theme="dark"] .confirmation-product-placeholder {
  background: linear-gradient(145deg, var(--dark-soft), var(--dark-raised));
  color: var(--primary);
}

[data-theme="dark"] .confirmation-product-image-link:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .confirmation-details div {
  background: rgba(239, 244, 241, 0.05);
}

[data-theme="dark"] .confirmation-field input,
[data-theme="dark"] .confirmation-field textarea {
  background: var(--dark-soft);
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: none;
}

[data-theme="dark"] .confirmation-field input:focus,
[data-theme="dark"] .confirmation-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(92, 193, 147, 0.16);
}

[data-theme="dark"] .confirmation-field--readonly input {
  background: rgba(239, 244, 241, 0.05);
  color: var(--light-muted);
  border-color: var(--line);
}

[data-theme="dark"] .confirmation-alert.success { background: rgba(92, 193, 147, 0.15); color: var(--success); }
[data-theme="dark"] .confirmation-alert.warning { background: rgba(211, 179, 94, 0.15); color: var(--warning); }
[data-theme="dark"] .confirmation-alert.danger  { background: rgba(217, 112, 112, 0.15); color: var(--danger); }

[data-theme="dark"] .danger-action {
  background: rgba(217, 112, 112, 0.15);
  color: var(--danger);
  border-color: rgba(217, 112, 112, 0.3);
}
[data-theme="dark"] .danger-action:hover {
  background: rgba(217, 112, 112, 0.25);
}

[data-theme="dark"] .confirmation-secondary-action {
  background: var(--panel-soft);
}
[data-theme="dark"] .confirmation-secondary-action summary {
  color: var(--text);
}
[data-theme="dark"] .confirmation-secondary-action textarea {
  background: var(--dark-soft);
  color: var(--text);
  border-color: var(--line-strong);
}
[data-theme="dark"] .confirmation-secondary-action.danger-zone {
  background: rgba(217, 112, 112, 0.08);
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-body--rebrand {
  place-items: stretch;
  padding: 0;
  background:
    radial-gradient(circle at 10% 8%, rgba(92, 193, 147, 0.18), transparent 24%),
    radial-gradient(circle at 88% 0%, rgba(92, 193, 147, 0.1), transparent 20%),
    linear-gradient(180deg, #f9fcfa 0%, #eef5f1 46%, #e8efeb 100%);
}

.auth-shell {
  width: min(1220px, calc(100vw - 48px));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.88fr);
  gap: 24px;
  align-items: stretch;
  padding: 28px 0;
}

.auth-surface {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 26%),
    rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(26, 32, 39, 0.05);
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(26, 32, 39, 0.08);
  backdrop-filter: blur(16px);
}

.auth-form-panel {
  padding: 26px;
  display: grid;
  align-content: start;
  gap: 22px;
}

.auth-story-panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
  display: grid;
  align-content: start;
  gap: 22px;
  background:
    radial-gradient(circle at top right, rgba(92, 193, 147, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(240, 248, 244, 0.92));
}

.auth-story-panel::after {
  content: "";
  position: absolute;
  inset-inline-end: -72px;
  top: 120px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 193, 147, 0.24) 0%, transparent 68%);
  pointer-events: none;
}

.auth-panel-head {
  display: grid;
  gap: 12px;
}

.auth-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--light-muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-home-link:hover {
  color: var(--text);
}

.auth-card.auth-card--rebrand {
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.auth-form-card {
  display: grid;
  gap: 18px;
}

.auth-form-card .stack {
  gap: 16px;
}

.auth-form-card label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.auth-form-card input[type="text"],
.auth-form-card input[type="email"],
.auth-form-card input[type="password"] {
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.auth-submit {
  min-height: 56px;
  width: 100%;
  border-radius: 18px;
  font-size: 15px;
}

.auth-secondary-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-legal-stack {
  display: grid;
  gap: 10px;
}

.auth-story-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(92, 193, 147, 0.12);
  border: 1px solid rgba(92, 193, 147, 0.26);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-story-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.auth-story-panel p {
  margin: 0;
  color: var(--light-muted);
  line-height: 1.75;
}

.auth-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(26, 32, 39, 0.05);
  color: var(--text);
}

.auth-status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex: 0 0 auto;
}

.auth-story-box {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(26, 32, 39, 0.05);
  background: rgba(255, 255, 255, 0.72);
}

.auth-story-box__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.auth-check-list {
  display: grid;
  gap: 10px;
}

.auth-check-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.auth-check-list span::before {
  content: "✓";
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(92, 193, 147, 0.16);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  flex: 0 0 auto;
}

.auth-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.auth-mini-metric {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(26, 32, 39, 0.05);
}

.auth-mini-metric strong {
  display: block;
  margin-bottom: 4px;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.auth-mini-metric span {
  color: var(--light-muted);
  font-size: 13px;
}

.auth-story-foot {
  margin-top: auto;
  font-size: 13px;
  color: var(--light-muted);
}

.auth-body--rebrand .language-switcher {
  background: rgba(255, 255, 255, 0.78);
}

[data-theme="dark"] .auth-body--rebrand .language-switcher {
  background: rgba(22, 28, 34, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] .auth-body--rebrand .language-switcher a {
  color: #c8d1da;
}

[data-theme="dark"] .auth-body--rebrand .language-switcher a:hover,
[data-theme="dark"] .auth-body--rebrand .language-switcher a:focus-visible {
  color: #f4f6f9;
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .auth-body--rebrand .language-switcher a.active {
  color: #ffffff;
  background: var(--primary);
}

.auth-body--rebrand .brand-link--auth {
  margin-bottom: 0;
}

.auth-body--rebrand .brand-logo {
  height: 52px;
  max-width: min(280px, 52vw);
}

.auth-body--rebrand .brand-tag {
  font-size: 11px;
}

.auth-body--rebrand .muted {
  line-height: 1.75;
}

@media (max-width: 520px) {
  .landing-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .landing-nav {
    display: none;
  }

  .landing-header-actions {
    justify-content: flex-start;
  }

  [dir="rtl"] .landing-header-actions {
    justify-content: flex-start;
  }

  .landing-benefit-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .landing-benefit-card {
    padding: 20px 18px;
  }

  .landing-benefit-card h3 {
    font-size: 1.75rem;
    line-height: 1.02;
    letter-spacing: -0.04em;
  }

  .landing-benefit-card p {
    font-size: 1rem;
    line-height: 1.55;
  }

  .landing-login-link {
    display: none;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .landing-cta-primary--hero,
  .landing-signup-link--hero {
    width: 100%;
  }

  .landing-card-grid.three,
  .landing-card-grid.four,
  .landing-card-grid.two,
  .landing-steps,
  .landing-benefit-list,
  .landing-integration-grid,
  .landing-screenshot-grid,
  .demo-field-row {
    grid-template-columns: 1fr;
  }

  .landing-section {
    padding: 44px 0;
  }

  .landing-final-cta {
    padding: 34px 22px;
  }

  .landing-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .confirmation-card {
    border-radius: 26px;
  }

  .confirmation-product-card {
    grid-template-columns: 88px 1fr;
  }

  .confirmation-product-image,
  .confirmation-product-placeholder {
    width: 88px;
    height: 88px;
    border-radius: 18px;
  }

  .confirmation-product-image-link {
    width: 88px;
    height: 88px;
    border-radius: 18px;
  }

  .auth-shell {
    width: min(100vw - 24px, 1120px);
    padding: 12px 0 24px;
    gap: 16px;
  }

  .auth-form-panel,
  .auth-story-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .auth-story-grid {
    grid-template-columns: 1fr;
  }

  .auth-secondary-links {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 920px) {
  .auth-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-story-panel {
    order: -1;
  }
}

.auth-card, .card, .summary-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.auth-card {
  width: min(500px, 96vw);
  padding: 32px;
}

.youcan-embedded-body {
  min-height: 100vh;
  background: var(--bg);
}

.youcan-embedded-card {
  width: min(620px, 94vw);
}

.error-card {
  width: min(560px, 96vw);
}

.error-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.container {
  width: min(1240px, 94vw);
  margin: 28px auto 56px;
}

.page-stack {
  display: grid;
  gap: 24px;
}

.card {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 20px 3vw 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 251, 248, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

[data-theme="dark"] .topbar {
  background: rgba(14, 17, 23, 0.94);
  border-bottom-color: var(--line);
}

.topbar-main {
  display: grid;
  gap: 18px;
}

.topbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.brand-link:hover { color: var(--text); }

.brand-link--auth {
  margin-bottom: 18px;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: 44px;
  max-width: min(220px, 40vw);
  border-radius: 0;
  object-fit: contain;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

/* Dark mode logo support - as fallback when JS is disabled */
[data-theme="dark"] .brand-logo[src*="confirmy_logo.png"],
[data-theme="dark"] .brand-logo[src*="confirmy_logo_full.png"],
[data-theme="dark"] .brand-logo[src*="confirmy_logo_mini.png"] {
  filter: brightness(0.85) invert(1) hue-rotate(180deg);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-name {
  display: none;
}

.brand-tag {
  color: var(--light-muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(26, 32, 39, 0.03);
  color: var(--light-muted);
  font-size: 13px;
  font-weight: 700;
}

.app-nav__link:hover,
.app-nav__link.active {
  color: var(--text);
  border-color: rgba(92, 193, 147, 0.34);
  background: rgba(92, 193, 147, 0.12);
}

[data-theme="dark"] .app-nav__link {
  background: rgba(239, 244, 241, 0.06);
  color: var(--light);
}

.app-side-nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(92, 193, 147, 0.34);
  border-radius: 999px;
  background: rgba(247, 249, 248, 0.86);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 36px rgba(24, 34, 30, 0.14);
  backdrop-filter: blur(14px);
}

.app-side-nav-toggle.is-ready {
  display: inline-flex;
}

.app-side-nav-toggle.is-floating {
  position: fixed;
  z-index: 1150;
  top: 22px;
  inset-inline-end: 22px;
}

[data-theme="dark"] .app-side-nav-toggle {
  background: rgba(31, 37, 43, 0.86);
  color: var(--light);
}

.app-side-nav-toggle__bars {
  display: grid;
  gap: 4px;
}

.app-side-nav-toggle__bars span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.app-side-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1180;
  background: rgba(12, 18, 23, 0.48);
  backdrop-filter: blur(7px);
}

.app-side-nav {
  position: fixed;
  z-index: 1190;
  top: 14px;
  bottom: 14px;
  inset-inline-start: 14px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(300px, calc(100vw - 28px));
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateX(calc(-100% - 24px));
  transition: transform 0.24s ease;
}

[dir="rtl"] .app-side-nav {
  transform: translateX(calc(100% + 24px));
}

[data-theme="dark"] .app-side-nav {
  background: var(--panel);
  border-color: var(--line);
}

.side-nav-open .app-side-nav {
  transform: translateX(0);
}

.side-nav-open .app-nav,
.side-nav-open .shipping-subnav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
}

.app-side-nav__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 4px 6px 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.app-side-nav__head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-side-nav__close,
.app-side-nav__collapse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--light-muted);
  cursor: pointer;
}

.app-side-nav__close:hover,
.app-side-nav__collapse:hover {
  color: var(--text);
  background: rgba(92, 193, 147, 0.12);
}

[data-theme="dark"] .app-side-nav__close,
[data-theme="dark"] .app-side-nav__collapse {
  color: var(--light-muted);
}

/* Collapse control is desktop-only; close (×) is the mobile-drawer control. */
.app-side-nav__collapse {
  display: none;
}

.app-side-nav__collapse-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.brand-logo--mark {
  display: none;
  width: 32px;
  height: 32px;
}

.app-side-nav__menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  align-content: start;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 2px;
  margin: 0 -2px;
}

.app-side-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--light-muted);
  font-size: 14.5px;
  font-weight: 750;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.app-side-nav__item--toggle {
  font: inherit;
  font-size: 14.5px;
  font-weight: 750;
}

.app-side-nav__icon {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  color: inherit;
  opacity: 0.92;
}

.app-side-nav__label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-side-nav__item:hover,
.app-side-nav__item:focus-visible {
  background: rgba(59, 110, 195, 0.05);
  color: var(--text);
  box-shadow: 0 6px 16px rgba(59, 110, 195, 0.06);
}

.app-side-nav__item.active,
.app-side-nav__group.active > .app-side-nav__item {
  background: rgba(59, 110, 195, 0.08);
  color: var(--primary);
  font-weight: 850;
  box-shadow: 0 8px 22px rgba(59, 110, 195, 0.10);
}

.app-side-nav__item.active::before,
.app-side-nav__group.active > .app-side-nav__item::before {
  content: "";
  position: absolute;
  inset-inline-start: -2px;
  inset-block: 9px;
  width: 3px;
  border-radius: 999px;
  background: var(--primary);
}

[data-theme="dark"] .app-side-nav__item {
  color: var(--light-muted);
}

[data-theme="dark"] .app-side-nav__item:hover,
[data-theme="dark"] .app-side-nav__item:focus-visible {
  background: rgba(239, 244, 241, 0.08);
  color: var(--text);
}

.app-side-nav__group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-side-nav__chevron {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.app-side-nav__item--toggle[aria-expanded="true"] .app-side-nav__chevron {
  transform: rotate(180deg);
}

.app-side-nav__sub {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 6px;
  margin-inline-start: 17px;
  border-inline-start: 1px solid var(--line);
}

.app-side-nav__sub[hidden] {
  display: none;
}

.app-side-nav__sub a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 14px;
  margin-inline-start: 8px;
  border-radius: 9px;
  color: var(--light-muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.app-side-nav__sub a:hover,
.app-side-nav__sub a:focus-visible {
  background: rgba(92, 193, 147, 0.12);
  color: var(--text);
}

[data-theme="dark"] .app-side-nav__sub a {
  color: var(--light-muted);
}

[data-theme="dark"] .app-side-nav__sub a:hover,
[data-theme="dark"] .app-side-nav__sub a:focus-visible {
  color: var(--text);
}

.app-side-nav__footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.app-side-nav__wallet {
  display: grid;
  gap: 4px;
  padding: 14px;
  margin-bottom: 8px;
  border-radius: 16px;
  border: 1px solid rgba(59, 110, 195, 0.14);
  background:
    linear-gradient(180deg, rgba(59, 110, 195, 0.08), rgba(59, 110, 195, 0.03)),
    rgba(255, 255, 255, 0.02);
}

.app-side-nav__wallet-eyebrow {
  color: var(--light-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-side-nav__wallet strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.app-side-nav__wallet span:last-child {
  color: var(--light-muted);
  font-size: 12px;
}

.app-side-nav__logout {
  margin: 0;
}

.app-side-nav__item--logout {
  color: var(--danger);
}

.app-side-nav__item--logout:hover,
.app-side-nav__item--logout:focus-visible {
  background: rgba(203, 94, 94, 0.12);
  color: var(--danger);
}

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 1300;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-side-nav__close-icon {
  width: 18px;
  height: 18px;
}

.app-side-nav__item:focus-visible,
.app-side-nav__sub a:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

/* Persistent desktop rail: the sidebar becomes the primary navigation. */
@media (min-width: 1024px) {
  .app-side-nav {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    width: var(--side-nav-w);
    max-width: var(--side-nav-w);
    padding: 18px 14px;
    border: 0;
    border-inline-end: 1px solid var(--line);
    border-radius: 0;
    background: rgba(248, 250, 249, 0.98);
    box-shadow: 0 0 10px rgba(16, 24, 30, 0.10);
    transform: none !important;
    transition: width 0.18s ease;
  }

  [data-theme="dark"] .app-side-nav {
    background: rgba(26, 31, 36, 1);
    border-inline-end-color: rgba(239, 244, 241, 0.10);
  }

  .app-side-nav,
  [dir="rtl"] .app-side-nav {
    transform: none !important;
  }

  .app-side-nav-toggle,
  .app-side-nav-backdrop,
  .app-side-nav__close {
    display: none !important;
  }

  .app-side-nav__collapse {
    display: inline-flex;
  }

  /* The vertical rail replaces the horizontal top nav on desktop. */
  body:has(.app-side-nav) .app-nav {
    display: none;
  }

  /* The sidebar carries the logo on desktop — drop the duplicate in the topbar. */
  body:has(.app-side-nav) .topbar .brand-link {
    display: none;
  }

  body:has(.app-side-nav) .topbar {
    padding-inline-start: calc(3vw + var(--side-nav-w));
  }

  body:has(.app-side-nav) .container,
  body:has(.app-side-nav) .impersonation-banner {
    width: min(1240px, calc(100vw - var(--side-nav-w) - 6vw));
    margin-inline-start: calc(var(--side-nav-w) + 3vw);
    margin-inline-end: auto;
  }

  /* Collapsed icon rail (toggled, state persisted in localStorage). */
  body.side-nav-collapsed {
    --side-nav-w: var(--side-nav-w-collapsed);
  }

  body.side-nav-collapsed .app-side-nav__label,
  body.side-nav-collapsed .app-side-nav__chevron {
    display: none;
  }

  body.side-nav-collapsed .app-side-nav__wallet {
    display: none;
  }

  body.side-nav-collapsed .app-side-nav__item {
    justify-content: center;
    padding-inline: 0;
    gap: 0;
  }

  body.side-nav-collapsed .app-side-nav__sub {
    display: none;
  }

  body.side-nav-collapsed .app-side-nav__head {
    flex-direction: column;
    gap: 10px;
    padding-inline: 0;
  }

  body.side-nav-collapsed .brand-logo--full {
    display: none;
  }

  body.side-nav-collapsed .brand-logo--mark {
    display: block;
  }

  body.side-nav-collapsed .app-side-nav__collapse-icon {
    transform: rotate(180deg);
  }

  /* Peek: hovering/focusing the collapsed rail expands it over the content. */
  body.side-nav-collapsed .app-side-nav:hover,
  body.side-nav-collapsed .app-side-nav:focus-within {
    width: 272px;
    max-width: 272px;
    z-index: 1200;
    box-shadow: 0 0 12px rgba(16, 24, 30, 0.14);
  }

  body.side-nav-collapsed .app-side-nav:hover .app-side-nav__label,
  body.side-nav-collapsed .app-side-nav:focus-within .app-side-nav__label,
  body.side-nav-collapsed .app-side-nav:hover .app-side-nav__chevron,
  body.side-nav-collapsed .app-side-nav:focus-within .app-side-nav__chevron {
    display: block;
  }

  body.side-nav-collapsed .app-side-nav:hover .app-side-nav__item,
  body.side-nav-collapsed .app-side-nav:focus-within .app-side-nav__item {
    justify-content: flex-start;
    padding-inline: 14px;
    gap: 12px;
  }

  body.side-nav-collapsed .app-side-nav:hover .app-side-nav__sub:not([hidden]),
  body.side-nav-collapsed .app-side-nav:focus-within .app-side-nav__sub:not([hidden]) {
    display: flex;
  }

  body.side-nav-collapsed .app-side-nav:hover .app-side-nav__head,
  body.side-nav-collapsed .app-side-nav:focus-within .app-side-nav__head {
    flex-direction: row;
  }

  body.side-nav-collapsed .app-side-nav:hover .brand-logo--full,
  body.side-nav-collapsed .app-side-nav:focus-within .brand-logo--full {
    display: block;
  }

  body.side-nav-collapsed .app-side-nav:hover .brand-logo--mark,
  body.side-nav-collapsed .app-side-nav:focus-within .brand-logo--mark {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-side-nav,
  .app-side-nav__item,
  .app-side-nav__sub a,
  .app-side-nav__chevron,
  .skip-link {
    transition: none;
  }
}

.page-intro {
  display: grid;
  gap: 4px;
}

.page-intro h1,
.auth-card h1 {
  margin: 2px 0 6px;
  font-size: clamp(2.15rem, 3vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

.user-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.wallet-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(92, 193, 147, 0.28);
  background: rgba(92, 193, 147, 0.12);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.theme-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  min-width: 124px;
  padding: 12px 14px;
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(26, 32, 39, 0.10);
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .theme-toggle {
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.stack { display: grid; gap: 14px; }
.inline-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.small { font-size: 13px; }
.muted { color: var(--light-muted); }
.auth-note { margin-top: 18px; }

.register-consent {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.register-consent__checkbox {
  margin: 0;
}

.alert {
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px solid;
  font-size: 14px;
  line-height: 1.5;
}

.alert.success {
  background: var(--primary-soft);
  border-color: rgba(92, 193, 147, 0.35);
  color: var(--primary-strong);
}

[data-theme="dark"] .alert.success {
  color: #7ad5ac;
}

.alert.info {
  background: var(--info-soft);
  border-color: rgba(91, 138, 168, 0.35);
  color: var(--info);
}

.alert.warning {
  background: var(--warning-soft);
  border-color: rgba(200, 154, 62, 0.35);
  color: var(--warning);
}

.alert.error {
  background: var(--danger-soft);
  border-color: rgba(203, 94, 94, 0.35);
  color: var(--danger);
}

.summary-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* WhatsApp health widget — single canonical place for session state. */
.wa-health-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.wa-health-card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
}

.wa-health-card__icon svg { display: none; }
.wa-health-card[data-wa-state="healthy"] .wa-icon-ok { display: block; }
.wa-health-card[data-wa-state="broken"] .wa-icon-alert { display: block; }
.wa-health-card[data-wa-state="checking"] .wa-icon-checking {
  display: block;
  animation: wa-icon-spin 1.4s linear infinite;
}

.wa-health-card[data-wa-state="healthy"] .wa-health-card__icon {
  background: var(--primary-soft);
  color: var(--success);
}

.wa-health-card[data-wa-state="broken"] .wa-health-card__icon {
  background: rgba(203, 94, 94, 0.16);
  color: var(--danger);
}

.wa-health-card[data-wa-state="checking"] .wa-health-card__icon {
  background: rgba(120, 130, 150, 0.14);
  color: var(--muted, #6b7280);
}

@keyframes wa-icon-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.wa-health-card__body { min-width: 0; }
.wa-health-card__row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.wa-health-card__title {
  font-size: 1.05rem;
  line-height: 1.25;
}

.wa-health-card__sub { margin: 4px 0 0; }

.wa-health-card__pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wa-health-card[data-wa-state="healthy"] .wa-health-card__pulse {
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(92, 193, 147, 0.5);
  animation: wa-pulse-ok 2.4s ease-out infinite;
}

.wa-health-card[data-wa-state="broken"] .wa-health-card__pulse {
  background: var(--danger);
  box-shadow: 0 0 0 0 rgba(203, 94, 94, 0.55);
  animation: wa-pulse-alert 1.4s ease-out infinite;
}

.wa-health-card[data-wa-state="checking"] .wa-health-card__pulse {
  background: rgba(120, 130, 150, 0.55);
  animation: wa-pulse-checking 1.6s ease-in-out infinite;
}

@keyframes wa-pulse-checking {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

@keyframes wa-pulse-ok {
  0%   { box-shadow: 0 0 0 0 rgba(92, 193, 147, 0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(92, 193, 147, 0); }
  100% { box-shadow: 0 0 0 0 rgba(92, 193, 147, 0); }
}

@keyframes wa-pulse-alert {
  0%   { box-shadow: 0 0 0 0 rgba(203, 94, 94, 0.55); transform: scale(1); }
  70%  { box-shadow: 0 0 0 12px rgba(203, 94, 94, 0); transform: scale(1.08); }
  100% { box-shadow: 0 0 0 0 rgba(203, 94, 94, 0); transform: scale(1); }
}

.wa-health-card__manage {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.wa-health-card__action .button {
  white-space: nowrap;
}

/* Broken state: sticky to viewport top, louder visuals. */
.wa-health-card[data-wa-state="broken"] {
  position: sticky;
  top: 12px;
  z-index: 30;
  border-color: rgba(203, 94, 94, 0.55);
  background:
    linear-gradient(180deg, rgba(203, 94, 94, 0.14), transparent 70%),
    var(--panel);
  box-shadow: 0 12px 40px -18px rgba(203, 94, 94, 0.55), var(--shadow);
}

@media (max-width: 640px) {
  .wa-health-card {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon body"
      "action action";
    row-gap: 12px;
  }
  .wa-health-card__icon { grid-area: icon; }
  .wa-health-card__body { grid-area: body; }
  .wa-health-card__action {
    grid-area: action;
    display: flex;
    justify-content: stretch;
  }
  .wa-health-card__action .button { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-health-card__pulse { animation: none !important; }
}

.summary-card {
  padding: 22px;
  display: grid;
  gap: 10px;
  position: relative;
}

.summary-card strong {
  font-size: 2rem;
  line-height: 1;
}

.summary-card p {
  margin: 0;
  color: var(--light-muted);
}

.summary-card.attention {
  background:
    linear-gradient(180deg, rgba(132, 136, 142, 0.1), transparent 55%),
    var(--panel);
}

.summary-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  font-weight: 700;
}

.dashboard-grid,
.detail-grid {
  display: grid;
  gap: 24px;
}

.dashboard-grid {
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
}

.detail-grid {
  grid-template-columns: 1fr 1fr 1.08fr;
}

.shipment-detail-grid,
.shipment-history-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
}

.summary-card strong .badge {
  margin-top: 2px;
}

.shipping-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.shipping-subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.44);
}

.shipping-subnav a:hover,
.shipping-subnav a.active {
  border-color: rgba(92, 193, 147, 0.48);
  background: rgba(92, 193, 147, 0.14);
  color: #1a5c35;
}

.shipment-detail-subsection {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.shipment-status-rail {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 4px 0 4px 4px;
  list-style: none;
}

.shipment-status-rail li {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  padding: 0 0 22px;
  color: var(--light-muted);
}

.shipment-status-rail li:last-child {
  padding-bottom: 0;
}

.shipment-status-rail li::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: -2px;
  width: 2px;
  background: var(--line);
}

.shipment-status-rail li:last-child::before {
  display: none;
}

.shipment-status-rail li > span {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid var(--line-strong);
  background: var(--panel);
  box-shadow: 0 0 0 6px rgba(92, 193, 147, 0.04);
}

.shipment-status-rail strong {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.shipment-status-rail p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--light-muted);
}

.shipment-status-rail li.done::before {
  background: rgba(92, 193, 147, 0.5);
}

.shipment-status-rail li.done > span {
  border-color: rgba(92, 193, 147, 0.72);
  background: rgba(92, 193, 147, 0.72);
}

.shipment-status-rail li.current > span {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 0 7px rgba(92, 193, 147, 0.18);
}

.shipment-status-rail li.current strong {
  color: #1a5c35;
}

[data-theme="dark"] .shipping-subnav a {
  background: rgba(239, 244, 241, 0.06);
  color: var(--light);
  border-color: rgba(239, 244, 241, 0.14);
}

[data-theme="dark"] .shipping-subnav a:hover,
[data-theme="dark"] .shipping-subnav a.active {
  background: rgba(92, 193, 147, 0.16);
  color: #c7f4da;
  border-color: rgba(92, 193, 147, 0.4);
}

[data-theme="dark"] .shipment-status-rail li > span {
  background: var(--panel);
}

[data-theme="dark"] .shipment-status-rail li.current strong {
  color: #c7f4da;
}

.span-two { grid-column: span 2; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text);
}

.checklist {
  display: grid;
  gap: 16px;
}

.checklist-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(26, 32, 39, 0.03);
  border: 1px solid var(--line);
}

.checklist-item p {
  margin: 6px 0 0;
  color: var(--light-muted);
}

.checklist-item.done {
  border-color: rgba(46, 204, 113, 0.28);
  background: rgba(46, 204, 113, 0.08);
}

.checklist-marker {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(92, 193, 147, 0.15);
  color: white;
  font-weight: 800;
}

.upload-dropzone {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 30px;
  border-radius: 22px;
  border: 1px dashed rgba(92, 193, 147, 0.38);
  background:
    radial-gradient(circle at top right, rgba(92, 193, 147, 0.14), transparent 26%),
    rgba(26, 32, 39, 0.03);
  cursor: pointer;
}

.upload-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-dropzone__title {
  font-size: 1.12rem;
  font-weight: 800;
}

.upload-dropzone__subtitle,
.upload-dropzone__filename {
  color: var(--light-muted);
}

.upload-template-hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(92, 193, 147, 0.24);
  border-radius: 18px;
  background: rgba(92, 193, 147, 0.09);
}

.upload-template-hint p {
  margin: 4px 0 0;
  color: var(--light-muted);
}

.job-list, .log-list {
  display: grid;
  gap: 14px;
}

/* Slim store tiles on the dashboard. Heavy editing lives on /settings. */
.section-heading__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.store-mini-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.store-mini {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  overflow: hidden;
}

.store-mini::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--primary);
  opacity: 0.7;
}

.store-mini[data-status="error"]::before,
.store-mini[data-status="disconnected"]::before {
  background: var(--danger);
  opacity: 0.85;
}

.store-mini[data-status="pending"]::before,
.store-mini[data-status="warning"]::before {
  background: var(--warning);
}

.store-mini:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 30px -22px rgba(45, 53, 60, 0.5);
  color: inherit;
}

.store-mini__head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.store-mini__name {
  margin: 4px 0 0;
  font-size: 1.02rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-mini__domain {
  margin: 0;
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-mini__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.store-mini__hint {
  font-size: 0.78rem;
  color: var(--light-muted);
}

.store-mini__hint--link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.store-mini__hint--link:hover {
  color: var(--primary-dark, var(--primary));
  text-decoration: none;
}

.store-mini__hint--alert {
  color: var(--danger);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.store-mini__hint--alert::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
}

.store-mini--add {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  border-style: dashed;
  background: transparent;
  gap: 4px;
}

.store-mini--add::before { display: none; }

.store-mini__plus {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--primary);
  font-weight: 300;
}

/* Highlight a store card when arrived via /settings#store-{id} deep link. */
.store-settings-card:target {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
  animation: store-card-target-flash 1.6s ease-out 1;
}

@keyframes store-card-target-flash {
  0%   { box-shadow: 0 0 0 8px var(--primary-soft); }
  100% { box-shadow: 0 0 0 3px var(--primary-soft); }
}

.store-grid {
  display: grid;
  gap: 16px;
}

.store-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(26, 32, 39, 0.03);
}

.store-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.store-card__copy {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.store-card__copy h3 {
  margin: 0;
  font-size: 1.1rem;
}

.store-card__copy p,
.store-template-copy {
  margin: 0;
}

.store-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.subtle-card {
  border: 1px solid rgba(92, 193, 147, 0.18);
  background: rgba(92, 193, 147, 0.06);
  border-radius: 22px;
  padding: 18px;
}

.store-webhook {
  display: grid;
  gap: 8px;
}

.store-webhook__header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.store-webhook code {
  display: block;
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}

.webhook-guide {
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  background: rgba(45, 53, 60, 0.02);
}
[data-theme="dark"] .webhook-guide {
  background: rgba(239, 244, 241, 0.03);
}
.webhook-guide summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 600;
  user-select: none;
}
.webhook-guide ol {
  margin: 10px 0 6px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.badge.small { font-size: 11px; padding: 2px 8px; }

.integration-fields {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.span-full {
  grid-column: 1 / -1;
}

.integration-provider-notes {
  display: grid;
  gap: 8px;
}

.store-card form.stack {
  gap: 10px;
}

.job-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(26, 32, 39, 0.03);
  transition: border-color .16s ease, transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.job-item:hover {
  border-color: rgba(92, 193, 147, 0.34);
  background: rgba(45, 53, 60, 0.05);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.job-summary {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 10px;
}

.job-title-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.job-title-row strong {
  font-size: 1.05rem;
  line-height: 1.3;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-meta-item,
.next-action-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(45, 53, 60, 0.1);
  background: rgba(26, 32, 39, 0.03);
  color: var(--light-muted);
  font-size: 12px;
  line-height: 1.3;
}

.next-action-pill {
  color: #1a5c35;
  border-color: rgba(92, 193, 147, 0.25);
  background: rgba(92, 193, 147, 0.12);
}

/* Order detail page — hero, info grid, and futuristic timeline. */
.order-hero {
  display: grid;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.order-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 240px at 0% 0%, var(--primary-soft), transparent 60%),
    radial-gradient(600px 200px at 100% 100%, rgba(115, 208, 164, 0.10), transparent 60%);
  pointer-events: none;
  opacity: 0.9;
}

.order-hero[data-severity="alert"]::before {
  background:
    radial-gradient(800px 240px at 0% 0%, rgba(203, 94, 94, 0.18), transparent 60%),
    radial-gradient(600px 200px at 100% 100%, rgba(203, 94, 94, 0.10), transparent 60%);
}

.order-hero[data-severity="warn"]::before {
  background:
    radial-gradient(800px 240px at 0% 0%, rgba(211, 179, 94, 0.18), transparent 60%);
}

.order-hero__top,
.order-hero__next {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.order-hero__identity h2 {
  margin: 4px 0 0;
  font-size: 1.6rem;
}

.order-hero__status {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.order-hero__next {
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

.order-hero__next-text {
  display: block;
  font-size: 1.08rem;
  margin-top: 2px;
}

.order-hero__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
}

.order-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.order-info {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 18px;
  margin: 12px 0 0;
}

.order-info dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--light-muted);
  font-weight: 700;
  align-self: center;
}

.order-info dd {
  margin: 0;
  font-size: 0.92rem;
  word-break: break-word;
}

.order-message {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  white-space: pre-wrap;
  font-size: 0.94rem;
  line-height: 1.55;
}

.order-pricing {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 18px;
  margin: 10px 0 0;
  font-size: 0.94rem;
}

.order-pricing dt {
  margin: 0;
  color: var(--light-muted);
}

.order-pricing dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  text-align: end;
}

.order-pricing__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 1.05rem;
}

.order-pricing__total strong {
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}

.order-address {
  display: grid;
  gap: 2px;
  margin: 10px 0 0;
  font-style: normal;
  line-height: 1.5;
}

/* Vertical timeline. Pure CSS, current node glows. */
.order-timeline-card { position: relative; }

.order-timeline {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  position: relative;
}

.order-timeline::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-soft), transparent);
  border-radius: 2px;
}

.order-timeline__step {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 16px;
  padding: 10px 0 18px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.order-timeline__step.is-revealed {
  opacity: 1;
  transform: none;
}

.order-timeline__node {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}

.order-timeline__node-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--panel);
}

.order-timeline__node-dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--light-muted);
  z-index: 1;
}

.order-timeline__step[data-done="yes"] .order-timeline__node-ring {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.order-timeline__step[data-done="yes"] .order-timeline__node-dot {
  background: var(--primary);
}

.order-timeline__step[data-severity="warn"] .order-timeline__node-ring { border-color: var(--warning); background: rgba(211, 179, 94, 0.16); }
.order-timeline__step[data-severity="warn"] .order-timeline__node-dot  { background: var(--warning); }

.order-timeline__step[data-severity="alert"] .order-timeline__node-ring { border-color: var(--danger); background: rgba(203, 94, 94, 0.16); }
.order-timeline__step[data-severity="alert"] .order-timeline__node-dot  { background: var(--danger); }

.order-timeline__step[data-current="yes"] .order-timeline__node-dot {
  box-shadow: 0 0 0 0 var(--primary);
  animation: order-step-pulse-ok 2s ease-out infinite;
}

.order-timeline__step[data-current="yes"][data-severity="alert"] .order-timeline__node-dot {
  animation: order-step-pulse-alert 1.6s ease-out infinite;
}
.order-timeline__step[data-current="yes"][data-severity="warn"] .order-timeline__node-dot {
  animation: order-step-pulse-warn 1.8s ease-out infinite;
}

@keyframes order-step-pulse-ok {
  0%   { box-shadow: 0 0 0 0 rgba(92, 193, 147, 0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(92, 193, 147, 0); }
  100% { box-shadow: 0 0 0 0 rgba(92, 193, 147, 0); }
}
@keyframes order-step-pulse-alert {
  0%   { box-shadow: 0 0 0 0 rgba(203, 94, 94, 0.65); }
  70%  { box-shadow: 0 0 0 14px rgba(203, 94, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(203, 94, 94, 0); }
}
@keyframes order-step-pulse-warn {
  0%   { box-shadow: 0 0 0 0 rgba(211, 179, 94, 0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(211, 179, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(211, 179, 94, 0); }
}

.order-timeline__content {
  padding-top: 4px;
  min-width: 0;
}

.order-timeline__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.order-timeline__head strong {
  font-size: 1rem;
}

.order-timeline__time {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--light-muted);
}

.order-timeline__sub {
  margin: 4px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .order-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .order-timeline__step { opacity: 1; transform: none; transition: none; }
  .order-timeline__node-dot { animation: none !important; }
}

/* Recent orders feed on the dashboard. */
.order-feed-filters {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.order-feed-filter {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--light-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.order-feed-filter:hover { color: var(--primary); }

.order-feed-filter.is-active {
  background: var(--primary);
  color: white;
}

.order-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.workflow-focus-grid {
  margin: 18px 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.workflow-focus-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.workflow-focus-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 28px -22px rgba(45, 53, 60, 0.5);
  color: inherit;
}

.workflow-focus-card.is-active {
  border-color: rgba(92, 193, 147, 0.45);
  box-shadow: inset 0 0 0 1px rgba(92, 193, 147, 0.18);
}

.workflow-focus-card.attention.is-active {
  border-color: rgba(203, 94, 94, 0.45);
  box-shadow: inset 0 0 0 1px rgba(203, 94, 94, 0.18);
}

.workflow-focus-card__label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light-muted);
}

.workflow-focus-card strong {
  font-size: 2rem;
  line-height: 1;
}

.workflow-focus-card p {
  margin: 0;
  color: var(--light-muted);
  line-height: 1.45;
}

.workspace-toolbar,
.jobs-workspace-toolbar {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
}

.workspace-toolbar {
  grid-template-columns: minmax(0, 1.8fr) minmax(180px, 0.8fr) auto;
  align-items: end;
}

.jobs-workspace-toolbar {
  grid-template-columns: auto minmax(240px, 1fr);
  align-items: end;
}

.workspace-toolbar__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.workspace-toolbar__search,
.workspace-toolbar__source,
.jobs-workspace-toolbar__search {
  margin: 0;
}

.order-feed__item { margin: 0; }

.order-feed__link {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px 14px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.order-feed__link:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 28px -22px rgba(45, 53, 60, 0.5);
}

.order-feed__severity-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--primary);
  opacity: 0.6;
}

.order-feed__item[data-severity="alert"] .order-feed__severity-bar { background: var(--danger); opacity: 0.95; }
.order-feed__item[data-severity="warn"]  .order-feed__severity-bar { background: var(--warning); }
.order-feed__item[data-severity="ok"]    .order-feed__severity-bar { background: var(--primary); opacity: 0.5; }

.order-feed__main { min-width: 0; display: grid; gap: 6px; }

.order-feed__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.order-feed__head strong {
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.order-feed__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.order-feed__next {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.order-feed__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.order-feed__primary-link {
  min-height: 40px;
  padding: 10px 14px;
}

.order-feed__job-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--light-muted);
  text-decoration: none;
}

.order-feed__job-link:hover {
  color: var(--primary);
  text-decoration: none;
}

.order-feed__manual {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--danger);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.order-feed__manual::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
  animation: wa-pulse-alert 1.6s ease-out infinite;
}

@media (max-width: 640px) {
  .workspace-toolbar,
  .jobs-workspace-toolbar {
    grid-template-columns: 1fr;
  }

  .order-feed__link {
    grid-template-columns: 1fr;
  }
  .order-feed__next {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .order-feed__actions {
    justify-content: flex-start;
  }
}

.status-group {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.job-open-link {
  font-size: 13px;
  color: var(--text);
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(92, 193, 147, 0.26);
  background: rgba(92, 193, 147, 0.12);
  color: #1a5c35;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge.outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

/* Neutral / warning state — gray tint background */
.badge.ready,
.badge.pending,
.badge.unknown,
.badge.qr_ready,
.badge.partial_success,
.badge.action_required,
.badge.free_trial,
.badge.token_expired,
.badge.pending_oauth {
  background: rgba(132, 136, 142, 0.14);
  border-color: rgba(132, 136, 142, 0.32);
  color: #5a4200;
}

/* In-progress — green tint */
.badge.running {
  background: rgba(92, 193, 147, 0.14);
  border-color: rgba(92, 193, 147, 0.32);
  color: #1a5c35;
}

/* Success states — green tint */
.badge.success,
.badge.connected,
.badge.pro,
.badge.sent {
  background: rgba(46, 204, 113, 0.14);
  border-color: rgba(46, 204, 113, 0.32);
  color: #1a5c35;
}

.badge.booked,
.badge.pickup_scheduled,
.badge.in_transit,
.badge.out_for_delivery,
.badge.delivered,
.badge.active,
.badge.received {
  background: rgba(46, 204, 113, 0.14);
  border-color: rgba(46, 204, 113, 0.32);
  color: #1a5c35;
}

/* Error states — red tint */
.badge.failed,
.badge.invalid_number,
.badge.not_connected,
.badge.uninstalled,
.badge.sync_error,
.badge.delivery_failed,
.badge.delivery_exception,
.badge.review_required,
.badge.high_risk,
.badge.returned,
.badge.cancelled,
.badge.issue_reported {
  background: rgba(231, 76, 60, 0.14);
  border-color: rgba(231, 76, 60, 0.32);
  color: #7a1c1c;
}

/* Dark mode: restore light pastel text (readable on dark tinted backgrounds) */
[data-theme="dark"] .badge {
  color: #c7f4da;
}
[data-theme="dark"] .badge.outline {
  color: var(--text);
}
[data-theme="dark"] .badge.ready,
[data-theme="dark"] .badge.pending,
[data-theme="dark"] .badge.unknown,
[data-theme="dark"] .badge.qr_ready,
[data-theme="dark"] .badge.partial_success,
[data-theme="dark"] .badge.action_required,
[data-theme="dark"] .badge.free_trial,
[data-theme="dark"] .badge.token_expired,
[data-theme="dark"] .badge.pending_oauth {
  color: #ffe6a6;
}
[data-theme="dark"] .badge.running {
  color: #ffd1b8;
}
[data-theme="dark"] .badge.success,
[data-theme="dark"] .badge.connected,
[data-theme="dark"] .badge.pro,
[data-theme="dark"] .badge.sent {
  color: #c7f4da;
}
[data-theme="dark"] .badge.booked,
[data-theme="dark"] .badge.pickup_scheduled,
[data-theme="dark"] .badge.in_transit,
[data-theme="dark"] .badge.out_for_delivery,
[data-theme="dark"] .badge.delivered,
[data-theme="dark"] .badge.active,
[data-theme="dark"] .badge.received {
  color: #c7f4da;
}
[data-theme="dark"] .badge.failed,
[data-theme="dark"] .badge.invalid_number,
[data-theme="dark"] .badge.not_connected,
[data-theme="dark"] .badge.uninstalled,
[data-theme="dark"] .badge.sync_error,
[data-theme="dark"] .badge.delivery_failed,
[data-theme="dark"] .badge.delivery_exception,
[data-theme="dark"] .badge.review_required,
[data-theme="dark"] .badge.high_risk,
[data-theme="dark"] .badge.returned,
[data-theme="dark"] .badge.cancelled,
[data-theme="dark"] .badge.issue_reported {
  color: #ffc9c2;
}

[data-theme="dark"] .next-action-pill {
  color: #c7f4da;
}

[data-theme="dark"] .job-open-link {
  color: var(--light);
}

[data-theme="dark"] .message-preview,
[data-theme="dark"] .checkbox-row {
  color: var(--text-secondary);
}
[data-theme="dark"] .settings-nav a:hover {
  color: var(--text);
}

[data-theme="dark"] .recovery-links a {
  color: #ffd7b8;
}

[data-theme="dark"] thead th {
  color: #ffcfb1;
}

[data-theme="dark"] .feature-list {
  color: var(--text-secondary);
}

[data-theme="dark"] .settings-store-editor summary {
  color: var(--primary-strong);
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.progress-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(26, 32, 39, 0.03);
}

.progress-step span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(26, 32, 39, 0.04);
  color: var(--text);
  font-weight: 800;
}

.progress-step p,
.summary-notes p,
.send-checklist p,
.review-list,
.empty-state p {
  margin: 0;
  color: var(--light-muted);
}

.progress-step.done {
  border-color: rgba(46, 204, 113, 0.22);
}

.progress-step.done span {
  background: rgba(46, 204, 113, 0.16);
  color: #1a5c35;
}

.progress-step.current {
  border-color: rgba(92, 193, 147, 0.28);
  background: rgba(92, 193, 147, 0.08);
}

.progress-step.current span {
  background: rgba(92, 193, 147, 0.18);
  color: white;
}

[data-theme="dark"] .progress-step span {
  color: var(--light);
}

[data-theme="dark"] .progress-step.done span {
  color: #c7f4da;
}

.wa-session-shell {
  display: grid;
  gap: 24px;
}

.wa-reconnect-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(92, 193, 147, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(92, 193, 147, 0.16), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(243, 245, 244, 0.92));
}

.wa-reconnect-hero__main,
.wa-reconnect-hero__meta,
.wa-panel__heading,
.wa-log-item {
  display: flex;
}

.wa-reconnect-hero__main {
  gap: 18px;
  align-items: flex-start;
}

.wa-reconnect-hero__meta {
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: stretch;
}

.wa-reconnect-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d6a44;
}

.wa-reconnect-hero h3,
.wa-panel h3 {
  margin: 0;
}

.wa-reconnect-spinner {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 16px;
  border: 1px solid rgba(92, 193, 147, 0.22);
  background: rgba(92, 193, 147, 0.08);
  position: relative;
}

.wa-reconnect-spinner::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 999px;
  border: 3px solid rgba(92, 193, 147, 0.18);
  border-top-color: var(--primary);
  opacity: 0;
}

.wa-reconnect-spinner.active::before {
  opacity: 1;
  animation: wa-spin 1s linear infinite;
}

.wa-metric-card,
.wa-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  border-radius: 20px;
}

.wa-metric-card {
  min-width: 124px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}

.wa-panel {
  padding: 20px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.wa-panel__heading {
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wa-reconnect-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.wa-reconnect-column {
  display: grid;
  gap: 20px;
}

.wa-progress-steps {
  grid-template-columns: 1fr;
}

.wa-progress-steps .progress-step {
  background: rgba(45, 53, 60, 0.025);
}

.wa-progress-steps .progress-step strong {
  display: block;
  margin-bottom: 4px;
}

.wa-qr-state {
  min-height: 320px;
  display: grid;
  place-items: center;
}

.wa-qr-shell {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.wa-qr-shell img {
  max-width: 280px;
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: white;
  padding: 12px;
  box-shadow: 0 16px 40px rgba(26, 32, 39, 0.05);
}

.wa-log-panel {
  min-height: 220px;
}

.wa-log-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.wa-log-item {
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(26, 32, 39, 0.05);
  background: rgba(26, 32, 39, 0.03);
}

.wa-log-time {
  flex: 0 0 68px;
  font-size: 12px;
  font-weight: 700;
  color: #4b5660;
}

.wa-log-label {
  color: var(--text);
  line-height: 1.4;
}

@keyframes wa-spin {
  to { transform: rotate(360deg); }
}

[data-theme="dark"] .wa-reconnect-hero {
  background:
    radial-gradient(circle at top left, rgba(92, 193, 147, 0.18), transparent 35%),
    linear-gradient(180deg, rgba(45, 53, 60, 0.9), rgba(31, 37, 43, 0.96));
}

[data-theme="dark"] .wa-reconnect-kicker {
  color: #9fe3bf;
}

[data-theme="dark"] .wa-reconnect-spinner {
  background: rgba(92, 193, 147, 0.12);
  border-color: rgba(92, 193, 147, 0.3);
}

[data-theme="dark"] .wa-metric-card,
[data-theme="dark"] .wa-panel,
[data-theme="dark"] .wa-log-item,
[data-theme="dark"] .wa-progress-steps .progress-step {
  background: rgba(239, 244, 241, 0.05);
}

[data-theme="dark"] .wa-log-time {
  color: #dbe3e1;
}

.metric-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-tile {
  padding: 18px;
  border-radius: 18px;
  background: rgba(26, 32, 39, 0.03);
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.metric-tile span { color: var(--light-muted); font-size: 13px; }
.metric-tile strong { font-size: 1.7rem; }

.summary-notes {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.screenshot-box {
  margin-top: 20px;
  display: grid;
  gap: 18px;
}

.qr-primary-panel,
.qr-fallback-panel {
  display: grid;
  gap: 12px;
}

.qr-panel-hidden {
  display: none;
}

.qr-primary-frame {
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top, rgba(92, 193, 147, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.02);
}

.qr-primary-frame img {
  display: block;
  width: min(100%, 420px);
  height: auto;
  border-radius: 18px;
  background: white;
  image-rendering: pixelated;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.22);
}

.screenshot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.screenshot-header h3 {
  margin: 0;
  font-size: 1rem;
}

.screenshot-preview {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

.screenshot-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.message-preview {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(26, 32, 39, 0.03);
  border: 1px solid var(--line);
  color: var(--text);
  white-space: pre-wrap;
  font: inherit;
}

.test-send-form,
.review-actions {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.input-group {
  display: grid;
  gap: 8px;
  align-content: start;
  align-items: start;
}

.input-group > input,
.input-group > select,
.input-group > textarea,
.input-group > label,
.input-group > p,
.input-group > span {
  align-self: start;
}

.send-checklist {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text);
}

.checkbox-row input {
  width: auto;
  margin-top: 2px;
}

.top-gap { margin-top: 16px; }

.recovery-links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.recovery-links a {
  color: #9a511f;
  font-weight: 700;
}

.filter-control {
  display: grid;
  gap: 6px;
  min-width: 170px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(26, 32, 39, 0.05);
  vertical-align: top;
}

thead th {
  color: #6d583f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.compact-table th,
.compact-table td {
  padding: 9px 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.compact-table {
  width: 100%;
  border-collapse: collapse;
}

.compact-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--panel, #fff);
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  border-bottom: none;
  box-shadow: 0 1px 0 var(--line);
}

tbody tr:hover {
  background: rgba(92, 193, 147, 0.07);
}

.table-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--light-muted);
  font-size: 12px;
  font-weight: 800;
}

.table-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.wrap {
  max-width: 520px;
  white-space: pre-wrap;
  word-break: break-word;
}

.result-stack {
  display: grid;
  gap: 10px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(26, 32, 39, 0.05);
}

.result-row:last-child { border-bottom: 0; }

.log-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(26, 32, 39, 0.03);
  display: grid;
  gap: 6px;
}

.wa-debug-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.wa-debug-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(26, 32, 39, 0.03);
}

.wa-debug-card img {
  display: block;
  width: 100%;
  height: auto;
}

.wa-debug-card figcaption {
  padding: 10px 12px;
  color: var(--light-muted);
  font-size: 12px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  word-break: break-all;
}

.empty-state {
  color: var(--light-muted);
  padding: 18px 0;
}

.empty-state.roomy {
  padding: 22px;
  border-radius: 18px;
  background: rgba(26, 32, 39, 0.03);
  border: 1px solid var(--line);
}

.review-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.4fr .8fr;
  align-items: start;
}

.review-list {
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.field-error {
  color: #ffbbb3;
  font-size: 13px;
}

.image-modal {
  width: min(96vw, 1600px);
  max-height: 94vh;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(22, 22, 22, .98);
}

.image-modal::backdrop {
  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(6px);
}

.image-modal__close-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.image-modal img {
  width: 100%;
  max-height: calc(94vh - 80px);
  object-fit: contain;
  border-radius: 16px;
}

.privacy-approval-modal {
  width: min(960px, 96vw);
  max-height: 92vh;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--text);
}

.privacy-approval-modal::backdrop {
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(4px);
}

.privacy-approval-modal__header,
.privacy-approval-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.privacy-approval-modal__frame-wrap {
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(26, 32, 39, 0.04);
}

.privacy-approval-modal__frame-wrap iframe {
  width: 100%;
  min-height: min(62vh, 560px);
  border: 0;
}

.static-field {
  min-height: 48px;
  display: flex;
  align-items: center;
}

.settings-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.settings-sidebar {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 18px;
}

.settings-profile-card,
.settings-account-summary {
  display: flex;
  align-items: center;
  gap: 16px;
}

.settings-sidebar__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.settings-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-soft);
  border: 1px solid rgba(92, 193, 147, 0.28);
  color: var(--primary-strong);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: none;
  flex-shrink: 0;
}

[data-theme="dark"] .settings-avatar {
  color: var(--primary);
}

.settings-avatar--large {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  font-size: 1.2rem;
}

.settings-nav {
  display: grid;
  gap: 8px;
}

.settings-nav a {
  display: block;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  color: var(--light-muted);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.settings-nav a:hover {
  color: var(--text);
  border-color: var(--line);
  background: var(--panel-soft);
}

.settings-nav a.active,
.settings-nav a[aria-current="page"] {
  color: var(--primary-strong);
  background: var(--primary-soft);
  border-color: rgba(92, 193, 147, 0.28);
  font-weight: 700;
}

.settings-content {
  display: grid;
  gap: 24px;
}

.settings-section {
  scroll-margin-top: 24px;
}

.settings-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.admin-stat-grid,
.admin-action-grid,
.admin-detail-grid,
.admin-search-sections {
  display: grid;
  gap: 18px;
}

.admin-stat-grid {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  gap: 0;
}

.admin-stat-grid > * {
  flex: 1 1 calc(33.333% - 1px);
  min-width: 160px;
  border-inline-start: 1px solid var(--line);
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  border-top: none;
  border-inline-end: none;
}

.admin-stat-grid > *:nth-child(3n + 1) {
  border-inline-start: none;
}

.admin-action-grid,
.admin-detail-grid,
.admin-search-sections {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-card {
  padding: 20px;
}

.admin-coin-adjustment-card {
  gap: 16px;
}

.admin-coin-adjustment-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-coin-adjustment-summary > div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(26, 32, 39, 0.03);
}

.admin-coin-adjustment-summary span {
  color: var(--light-muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-coin-adjustment-summary strong {
  font-size: 1rem;
}

.admin-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-search-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.admin-search-form input {
  flex: 1;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(26, 32, 39, 0.03);
  color: inherit;
  text-decoration: none;
}

.admin-list__item strong {
  margin: 0;
}

.admin-list__item span {
  color: var(--muted);
  text-align: right;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(26, 32, 39, 0.03);
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--panel, #fff);
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 1px 0 var(--line);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.shipping-provider-grid,
.shipping-ready-grid,
.shipping-account-list {
  display: grid;
  gap: 16px;
}

.shipping-provider-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shipping-provider-card,
.shipping-ready-card,
.shipping-account-row {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(26, 32, 39, 0.03);
}

.shipping-account-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.shipping-account-row__meta {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.shipping-ready-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shipping-ready-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 18px;
}

.shipping-ready-meta label,
.parcel-summary span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shipping-ready-meta p {
  margin: 0;
}

.shipping-form-grid,
.shipping-followup-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.shipping-provider-link {
  white-space: nowrap;
}

.shipping-provider-shell {
  max-width: 980px;
  margin: 0 auto;
}

.shipping-provider-form-grid,
.shipping-provider-pickup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.shipping-provider-context,
.shipping-provider-manual-note {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(26, 32, 39, 0.03);
}

.shipping-provider-context {
  display: grid;
  gap: 10px;
}

.shipping-provider-context strong,
.shipping-provider-manual-note strong {
  display: block;
  margin-top: 4px;
}

.shipping-provider-manual-note {
  display: grid;
  gap: 8px;
}

.shipping-provider-manual-note p {
  margin: 0;
}

.shipping-provider-checkbox {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(26, 32, 39, 0.03);
  align-self: end;
}

.shipping-provider-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.shipping-provider-lock-note {
  margin-top: -4px;
}

.shipping-provider-credential-preview {
  margin: -2px 0 2px;
}

.shipment-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.shipment-timeline li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.shipment-timeline__dot {
  width: 12px;
  height: 12px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(92, 193, 147, 0.12);
}

.shipment-timeline__content {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(26, 32, 39, 0.03);
}

.shipment-timeline__content p {
  margin: 8px 0 0;
}

.parcel-card,
.parcel-timeline-wrap,
.parcel-actions {
  display: grid;
  gap: 16px;
}

.parcel-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-log-list {
  display: grid;
  gap: 14px;
}

.admin-log-item {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(26, 32, 39, 0.03);
}

.mockup-studio-shell {
  display: grid;
  gap: 24px;
}

.mockup-studio-grid {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.mockup-studio-controls {
  display: grid;
  gap: 18px;
}

.mockup-studio-card {
  border: 1px solid var(--line);
  background: rgba(26, 32, 39, 0.03);
}

.mockup-studio-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

.mockup-studio-field span {
  color: var(--muted);
  font-size: 0.92rem;
}

.mockup-studio-field strong {
  color: var(--text);
  font-size: 0.92rem;
}

.mockup-studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mockup-studio-actions--stack {
  display: grid;
}

.mockup-studio-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mockup-studio-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.mockup-studio-upload-name {
  color: var(--muted);
  font-size: 0.92rem;
  word-break: break-word;
}

.mockup-studio-status {
  min-height: 1.4em;
}

.mockup-studio-preview {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top, rgba(92, 193, 147, 0.12), transparent 34%),
    rgba(8, 13, 18, 0.96);
}

.mockup-stage {
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto;
  aspect-ratio: 941 / 1672;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.3);
}

.mockup-stage__base {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mockup-stage__chat {
  position: absolute;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  box-shadow: inset 0 18px 36px rgba(255, 255, 255, 0.4);
}

.mockup-stage__chat.is-dragging {
  cursor: grabbing;
}

.mockup-stage__chat-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 62% 36%, rgba(127, 221, 163, 0.18), transparent 42%),
    linear-gradient(180deg, #fffdfa 0%, #fffdf9 58%, #fcfbf7 100%);
}

.mockup-stage__discussion {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  max-height: none;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.mockup-stage__discussion[hidden],
.mockup-stage__placeholder[hidden] {
  display: none;
}

.mockup-stage__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  color: rgba(19, 28, 34, 0.78);
  background:
    linear-gradient(135deg, rgba(127, 221, 163, 0.14), rgba(255, 255, 255, 0) 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.7));
}

.mockup-stage__placeholder strong {
  font-size: 1rem;
}

.mockup-stage__placeholder span {
  font-size: 0.92rem;
}

.mockup-studio-preview-note {
  text-align: center;
  margin: 0;
}

.settings-banner h2,
.settings-account-copy h3,
.billing-card h3,
.store-settings-card h3,
.security-panel h3,
.danger-zone h3,
.support-card strong {
  margin: 0;
}

.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.settings-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Automation rule sections ───────────────────────────────── */
.automation-section {
  border: 1px solid var(--border, rgba(255,255,255,.08));
  border-radius: 10px;
  padding: 20px 20px 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.automation-section legend {
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0 8px;
  color: var(--text, #fff);
}
.automation-sub-option {
  padding-left: 8px;
  border-left: 3px solid var(--border, rgba(255,255,255,.08));
  transition: opacity .2s;
}
.automation-sub-option.disabled {
  opacity: .45;
  pointer-events: none;
}

.billing-grid,
.support-grid,
.security-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.billing-card,
.security-panel,
.support-card,
.store-settings-card,
.settings-add-store {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(26, 32, 39, 0.03);
  padding: 20px;
}

.billing-card.current,
.store-settings-card:hover,
.settings-add-store:hover {
  border-color: rgba(92, 193, 147, 0.26);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.billing-card--pro {
  background:
    linear-gradient(180deg, rgba(92, 193, 147, 0.08), transparent 48%),
    rgba(26, 32, 39, 0.03);
}

.billing-card__header,
.store-settings-card__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.feature-list {
  margin: 16px 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: #4b5660;
}

.settings-store-list {
  display: grid;
  gap: 18px;
}

.settings-secret-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.settings-secret {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(45, 53, 60, 0.02);
  display: grid;
  gap: 6px;
}

.settings-secret span {
  color: var(--light-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.settings-secret strong {
  font-size: 15px;
}

.settings-store-editor {
  margin-top: 16px;
  border-top: 1px solid rgba(26, 32, 39, 0.05);
  padding-top: 16px;
}

.settings-store-editor summary {
  cursor: pointer;
  font-weight: 800;
  color: #1d6a44;
}

.settings-store-editor summary::-webkit-details-marker {
  display: none;
}

.settings-store-editor summary::after {
  content: "Show editor";
  margin-left: 8px;
  color: var(--light-muted);
  font-weight: 600;
  font-size: 12px;
}

.settings-store-editor[open] summary::after {
  content: "Hide editor";
}

.settings-provider-notes {
  border: 1px dashed rgba(26, 32, 39, 0.08);
  border-radius: 16px;
  padding: 14px;
  background: rgba(45, 53, 60, 0.02);
}

.danger-zone {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid rgba(231, 76, 60, 0.28);
  border-radius: 20px;
  background: rgba(231, 76, 60, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.danger-button {
  background: linear-gradient(180deg, #f26b5e, var(--danger));
  box-shadow: 0 18px 36px rgba(231, 76, 60, 0.24);
}

.support-card {
  display: grid;
  gap: 8px;
}

.support-card span {
  color: var(--light-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.checkbox-row--contained {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(26, 32, 39, 0.03);
}

@media (max-width: 1120px) {
  .summary-grid,
  .progress-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wa-reconnect-hero,
  .wa-reconnect-grid {
    grid-template-columns: 1fr;
  }

  .wa-reconnect-hero__meta {
    justify-content: flex-start;
  }

  .dashboard-grid,
  .detail-grid,
  .shipment-detail-grid,
  .shipment-history-grid,
  .review-grid,
  .settings-layout,
  .mockup-studio-grid,
  .admin-stat-grid,
  .admin-action-grid,
  .admin-detail-grid,
  .admin-search-sections,
  .billing-grid,
  .support-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .span-two { grid-column: span 1; }

  .shipping-provider-grid,
  .shipping-ready-grid,
  .shipping-form-grid,
  .shipping-ready-meta,
  .shipping-followup-actions,
  .shipping-provider-form-grid,
  .shipping-provider-pickup-grid,
  .parcel-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container { width: min(94vw, 100%); }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .summary-grid,
  .progress-steps,
  .metric-grid,
  .settings-form-grid,
  .settings-secret-grid,
  .admin-inline-grid,
  .admin-coin-adjustment-summary {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .upload-template-hint,
  .job-title-row,
  .screenshot-header,
  .store-card__header,
  .store-settings-card__header,
  .billing-card__header,
  .settings-banner,
  .danger-zone,
  .settings-account-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions,
  .app-nav {
    width: 100%;
  }

  .mockup-stage {
    width: min(100%, 480px);
  }

  .shipping-account-row {
    flex-direction: column;
  }

  .shipping-account-row__meta {
    justify-items: start;
  }

  .job-item {
    flex-direction: column;
    align-items: stretch;
  }

  .integration-fields {
    grid-template-columns: 1fr;
  }

  .job-meta,
  .recovery-links,
  .store-card__actions,
  .settings-form-actions,
  .admin-search-form,
  .admin-list__item {
    flex-direction: column;
  }

  .status-group {
    justify-items: start;
  }

  .wa-qr-state {
    min-height: 260px;
  }

  .filter-control {
    min-width: 0;
  }

  .shipping-account-row {
    flex-direction: column;
  }
}

/* ═══════════════════════════════════════════════════════════════
   DEMO / LEAD CAPTURE PAGE  (reuses landing-* classes)
   ═══════════════════════════════════════════════════════════════ */

/* Hero: smaller h1 + no forced full-height on demo page */
.demo-hero.landing-hero {
  min-height: 0;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 72px);
  align-items: start;
}
.demo-hero.landing-hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  line-height: 1.1;
}

/* Form card inside landing-hero-panel */
.demo-form-panel.landing-mini-window {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.demo-form-panel p {
  margin: 0;
}
.demo-form-panel .eyebrow {
  margin-bottom: 2px;
}

/* Form field stack */
.demo-field-stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.demo-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.demo-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.demo-field-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--light-muted);
}
.demo-field-group input,
.demo-field-group select,
.demo-field-group textarea {
  padding: 9px 11px;
  font-size: 0.875rem;
}
.demo-field-hint {
  font-size: 0.75rem;
  color: var(--light-muted);
  margin: 0;
}

/* Dark mode inputs */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: rgba(239, 244, 241, 0.07);
  color: var(--text);
  border-color: var(--line-strong);
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: rgba(239, 244, 241, 0.3);
}

/* Success state */
.demo-success.landing-final-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-height: 70vh;
  justify-content: center;
}
.demo-success-icon {
  font-size: 2.8rem;
  line-height: 1;
}

/* ─────────────────────────────────────────────
   Demo page: split layout + testimonials
   ───────────────────────────────────────────── */
.demo-split {
  display: grid;
  grid-template-columns: minmax(0, .48fr) minmax(340px, .52fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding-top: clamp(28px, 5vw, 56px);
  padding-bottom: clamp(28px, 5vw, 56px);
}

/* ── Left column: social proof ── */
.demo-split__proof {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.demo-split__proof .landing-pill {
  margin-bottom: 14px;
}
.demo-split__proof h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  color: var(--text);
}
.demo-split__subtitle {
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  line-height: 1.55;
  color: var(--light-muted);
  margin: 0 0 18px;
}
.demo-split__proof .landing-proof-strip {
  margin-bottom: 28px;
}

/* ── Right column: form ── */
.demo-split__form {
  position: sticky;
  top: 90px;
}

/* ── Testimonials ── */
.demo-testimonials {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.demo-testimonials__heading {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--light-muted);
  margin: 0 0 4px;
}

.demo-testimonial {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.demo-testimonial:hover {
  border-color: var(--line-strong);
  box-shadow: 0 4px 20px rgba(26, 32, 39, 0.04);
}
[data-theme="dark"] .demo-testimonial:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.demo-testimonial__header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.demo-testimonial__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.demo-testimonial__header strong {
  font-size: 0.88rem;
  color: var(--text);
}
.demo-testimonial__meta {
  display: block;
  font-size: 0.72rem;
  color: var(--light-muted);
}
.demo-testimonial__stars {
  margin-left: auto;
  color: #f5b731;
  font-size: 0.88rem;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.demo-testimonial__star-empty {
  opacity: 0.25;
}
.demo-testimonial p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text);
}
.demo-testimonial__date {
  font-size: 0.7rem;
  color: var(--light-muted);
  opacity: 0.7;
}

/* Support reply inside a testimonial */
.demo-testimonial__reply {
  margin-top: 4px;
  padding: 12px 14px;
  background: var(--panel-soft);
  border-radius: 10px;
  border-inline-start: 3px solid var(--primary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.demo-testimonial__reply-header {
  display: flex;
  align-items: center;
  gap: 7px;
}
.demo-testimonial__reply-logo {
  border-radius: 50%;
  flex-shrink: 0;
}
.demo-testimonial__reply-header strong {
  font-size: 0.78rem;
  color: var(--primary);
}
.demo-testimonial__reply p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text);
}

/* ── Gated comment box ── */
.demo-comment-gate {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-comment-gate__box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--panel-soft);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  opacity: 0.6;
}
.demo-comment-gate__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--line);
  color: var(--light-muted);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.demo-comment-gate__input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--light-muted);
  font-size: 0.84rem;
  cursor: not-allowed;
}
.demo-comment-gate__notice {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--light-muted);
  margin: 0;
}
.demo-comment-gate__notice svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.demo-comment-gate__notice a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.demo-comment-gate__notice a:hover {
  text-decoration: underline;
}

/* ── RTL support ── */
[dir="rtl"] .demo-testimonial__stars {
  margin-left: 0;
  margin-right: auto;
}

/* ── Responsive: tablet ── */
@media (max-width: 920px) {
  .demo-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .demo-split__form {
    position: static;
    order: -1;
  }
  .demo-split__proof h1 {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
  }
}

/* ── Responsive: small mobile ── */
@media (max-width: 520px) {
  .demo-split {
    gap: 24px;
  }
  .demo-testimonial {
    padding: 14px 14px 12px;
  }
  .demo-testimonial__header {
    flex-wrap: wrap;
  }
}

/* ─────────────────────────────────────────────
   Button utility classes (Ticket #19)
   ───────────────────────────────────────────── */
.button.full-width { width: 100%; }
.button.large { padding: 14px 24px; font-size: 1rem; }

/* Mobile language switcher polish (Ticket #18) */
@media (max-width: 520px) {
  .language-switcher a {
    min-width: 28px;
    padding: 5px 7px;
    font-size: 11px;
  }
  .landing-header-actions { gap: 8px; }
}

/* ─────────────────────────────────────────────
   Trust strip (Ticket #2)
   ───────────────────────────────────────────── */
.landing-trust-strip {
  padding: clamp(18px, 3vw, 28px) 0;
  background: transparent;
}
[data-theme="dark"] .landing-trust-strip {
  background: transparent;
}
.landing-trust-grid {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  padding: 0;
}
.landing-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  min-height: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(92, 193, 147, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(92, 193, 147, 0.08), rgba(255, 255, 255, 0.62));
  box-shadow: 0 14px 36px rgba(26, 32, 39, 0.05);
  color: var(--text);
  line-height: 1.45;
}
.landing-trust-item .trust-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(92, 193, 147, 0.14);
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
}
.landing-trust-item strong {
  display: block;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.35;
}
.landing-trust-item span.trust-sub {
  display: block;
  color: var(--light-muted);
  font-size: 0.86rem;
  margin-top: 6px;
}

[data-theme="dark"] .landing-trust-item {
  border-color: rgba(92, 193, 147, 0.2);
  background:
    linear-gradient(180deg, rgba(92, 193, 147, 0.12), rgba(239, 244, 241, 0.06));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] .landing-trust-item .trust-icon {
  background: rgba(92, 193, 147, 0.18);
  color: #b9f0d2;
}

/* ─────────────────────────────────────────────
   CTA helper microcopy (Ticket #4)
   ───────────────────────────────────────────── */
.landing-cta-helper {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--light-muted);
  text-align: center;
  max-width: 520px;
  overflow-wrap: anywhere;
}
.landing-hero-copy .landing-cta-helper { text-align: start; }
.landing-section > .landing-risk-badges { justify-content: center; }

/* ─────────────────────────────────────────────
   Risk reversal badge (Ticket #7)
   ───────────────────────────────────────────── */
.landing-risk-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.landing-risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
}
[data-theme="dark"] .landing-risk-badge {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
}

/* ─────────────────────────────────────────────
   Plans card enrichment (Ticket #6)
   ───────────────────────────────────────────── */
.landing-plan-features {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.landing-plan-features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.45;
}
.landing-plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: rgb(34, 197, 94);
  font-weight: 700;
}
.landing-plan-meta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 0.85rem;
  color: var(--light-muted);
}

.landing-plan-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.landing-founder-banner {
  max-width: 920px;
  margin: -8px auto 22px;
  padding: 16px 18px;
  border: 1px solid rgba(92, 193, 147, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(92, 193, 147, 0.15), rgba(92, 193, 147, 0.06));
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.landing-founder-banner strong {
  font-size: 0.98rem;
}
.landing-founder-banner span {
  color: var(--light-muted);
  font-size: 0.92rem;
}

/* 4-column plan grid (auto-fit so it stacks gracefully) */
.landing-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 960px) {
  .landing-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .landing-plan-grid {
    grid-template-columns: 1fr;
  }
}

/* Highlighted "Growth" recommended plan */
.landing-plan-card--featured {
  border-color: rgba(92, 193, 147, 0.55);
  box-shadow: 0 18px 44px rgba(92, 193, 147, 0.18);
  position: relative;
}
.landing-plan-card--featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(92, 193, 147, 0.18), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.landing-plan-card--featured > * {
  position: relative;
  z-index: 1;
}

.landing-plan-price {
  margin: 12px 0 4px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: 0;
}
.landing-plan-price small {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--light-muted);
  margin-inline-start: 4px;
}

.landing-plan-quota {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}
.landing-plan-subtext,
.landing-plan-roi {
  margin: 0 0 12px;
  color: var(--light-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}
.landing-plan-roi {
  color: var(--accent-strong, #2f9c70);
  font-weight: 700;
}
.landing-plan-cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}
.landing-plan-overage {
  max-width: 860px;
  margin: 18px auto 0;
  text-align: center;
  color: var(--light-muted);
  font-size: 0.94rem;
}

/* Staff & Roles settings section */
.staff-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.9rem;
}
.staff-table th,
.staff-table td {
  text-align: start;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.staff-table th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--light-muted);
}
.staff-perm-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.staff-perm-form .checkbox-row {
  font-size: 0.82rem;
  margin: 0;
}
.staff-perm-form button {
  align-self: flex-start;
  margin-top: 6px;
}
.staff-perm-invite {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px 14px;
  margin-top: 8px;
}
.staff-perm-invite .checkbox-row {
  font-size: 0.86rem;
  margin: 0;
}
button.danger,
.button.danger {
  border-color: rgba(203, 94, 94, 0.4);
  color: var(--danger);
}
button.danger:hover,
.button.danger:hover {
  background: rgba(203, 94, 94, 0.08);
}
button.small,
.button.small {
  padding: 6px 10px;
  font-size: 0.8rem;
}

/* Compact final CTA — less padding, single line of action */
.landing-final-cta--compact {
  padding: clamp(28px, 4vw, 44px);
}
.landing-final-cta--compact h2 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  margin: 8px 0 18px;
}
.landing-final-cta--compact .landing-cta-row {
  margin-top: 4px;
}

.landing-plan-badge {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(92, 193, 147, 0.28);
  border-radius: 999px;
  background: rgba(92, 193, 147, 0.1);
}
.landing-plan-popular {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent, #5cc193);
  color: #10231b;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.landing-plan-card > h3 {
  margin-top: 14px;
}

.landing-plan-card > p + .landing-plan-features {
  margin-top: 16px;
}

@media (max-width: 720px) {
  .landing-founder-banner {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 0;
  }
}

/* ─────────────────────────────────────────────
   Hero mini-window: outcome row highlight (Ticket #8)
   ───────────────────────────────────────────── */
.landing-mini-list .row-outcome {
  background: rgba(34, 197, 94, 0.08);
  border-left: 3px solid rgb(34, 197, 94);
  padding-left: 9px;
}
.landing-mini-list .row-outcome span { color: rgb(22, 163, 74); font-weight: 500; }
[data-theme="dark"] .landing-mini-list .row-outcome span { color: rgb(74, 222, 128); }
.landing-mini-caption {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--light-muted);
  text-align: center;
  font-style: italic;
}

.landing-final-checklist {
  max-width: 560px;
  margin: 18px auto 0;
  text-align: left;
}

/* ─────────────────────────────────────────────
   Long-form prose for legal pages
   ───────────────────────────────────────────── */
.landing-prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
  color: var(--text);
  line-height: 1.65;
}
.legal-page-main {
  padding-top: clamp(26px, 5vw, 54px);
  padding-bottom: clamp(42px, 6vw, 76px);
}
.landing-prose h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 1.4rem;
}
.landing-prose h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.landing-prose p,
.landing-prose ul,
.landing-prose ol { margin-bottom: 14px; }
.landing-prose ul,
.landing-prose ol { padding-left: 22px; }
.landing-prose li { margin-bottom: 6px; }
.landing-prose .legal-meta {
  color: var(--light-muted);
  font-size: 0.88rem;
  margin-bottom: 24px;
}
.landing-prose a { color: var(--primary); text-decoration: underline; }
.landing-prose a.button {
  color: #fff;
  text-decoration: none;
}
.landing-prose a.button.secondary {
  color: var(--text);
}
[data-theme="dark"] .landing-prose a.button.secondary {
  color: var(--light);
}

/* ─────────────────────────────────────────────
   Footer legal links
   ───────────────────────────────────────────── */
.landing-footer-legal {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--light-muted);
}
.landing-footer-legal a {
  color: var(--light-muted);
  text-decoration: none;
}
.landing-footer-legal a:hover { color: var(--text); }

.landing-integration-link {
  color: inherit;
  text-decoration: none;
}

.landing-integration-link:hover {
  color: var(--primary);
}

.solution-hero {
  align-items: stretch;
}

.solution-summary-card {
  min-height: 220px;
  justify-content: center;
}

.solution-summary-card .muted {
  line-height: 1.7;
}

.solution-benefit-card p,
.solution-step-card p {
  margin: 0;
  line-height: 1.7;
}

.solution-step-card {
  min-height: 100%;
}

/* ─────────────────────────────────────────────
   Onboarding tour
   ───────────────────────────────────────────── */
.tour-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(3px);
}

.tour-card {
  position: fixed;
  z-index: 904;
  width: min(360px, calc(100vw - 32px));
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(92, 193, 147, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 250, 246, 0.98) 100%);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.2);
}

[data-theme="dark"] .tour-card {
  background: linear-gradient(180deg, rgba(18, 27, 43, 0.98) 0%, rgba(13, 20, 33, 0.98) 100%);
  border-color: rgba(92, 193, 147, 0.28);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

.tour-card--mobile {
  left: 16px !important;
  right: 16px;
  bottom: 16px;
  top: auto !important;
  width: auto;
}

.tour-card--left {
  left: 24px;
  right: auto;
}

.tour-card--right {
  right: 24px;
  left: auto;
}

.tour-progress {
  display: inline-flex;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.tour-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.tour-copy {
  margin: 0;
  color: var(--light-muted);
  line-height: 1.6;
}

.tour-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.tour-controls__spacer {
  flex: 1 1 auto;
}

.tour-skip {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--light-muted);
  font-weight: 600;
  cursor: pointer;
}

.tour-skip:hover {
  color: var(--text);
}

.tour-target-active {
  position: relative !important;
  z-index: 903 !important;
  isolation: isolate;
  box-shadow: 0 0 0 4px rgba(92, 193, 147, 0.26), 0 28px 60px rgba(15, 23, 42, 0.16);
  border-radius: 24px;
}

[data-theme="dark"] .tour-target-active {
  box-shadow: 0 0 0 4px rgba(92, 193, 147, 0.32), 0 28px 60px rgba(0, 0, 0, 0.32);
}

@media (max-width: 720px) {
  .tour-card {
    border-radius: 22px;
    padding: 18px;
  }

  .tour-card h3 {
    font-size: 1.2rem;
  }

  .tour-controls {
    flex-wrap: wrap;
  }

  .tour-controls__spacer {
    display: none;
  }

  .tour-skip,
  .tour-controls .secondary,
  .tour-controls button:not(.tour-skip) {
    width: 100%;
  }

  .tour-target-active {
    border-radius: 20px;
  }
}

/* ════════════════════════════════════════════════════════════════════
   Dashboard money + outcomes strips
   ════════════════════════════════════════════════════════════════════ */
.dash-money,
.dash-outcomes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-money__head,
.dash-outcomes__head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: flex-end;
  justify-content: space-between;
}

.dash-money__head h2,
.dash-outcomes__head h2 {
  margin: 4px 0 0;
}

.dash-money__sub {
  margin: 8px 0 0;
  max-width: 56ch;
}

.dash-money__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-outcomes__link {
  color: var(--text-muted, #6b7280);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms;
}

.dash-outcomes__link:hover {
  color: var(--accent, #1cbc7e);
}

/* Flex strip: single bordered container, divider between cells (RTL-safe).
   Replaces the older identical card-grid pattern. */
.money-strip,
.outcome-strip {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--line, rgba(0, 0, 0, 0.08));
  border-radius: var(--radius-md, 16px);
  background: var(--panel, #fff);
  overflow: hidden;
}

.money-strip__cell,
.outcome-strip__cell {
  flex: 1 1 180px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.money-strip__cell + .money-strip__cell,
.outcome-strip__cell + .outcome-strip__cell {
  border-inline-start: 1px solid var(--line, rgba(0, 0, 0, 0.08));
}

.money-strip__label,
.outcome-strip__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, #6b7280);
}

.money-strip__value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text, #1a1f2e);
  line-height: 1.1;
}

.outcome-strip__cell strong {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text, #1a1f2e);
  line-height: 1.1;
}

.money-strip__hint {
  font-size: 12px;
  color: var(--text-muted, #6b7280);
}

/* Outcome strip cells double as links into Statistics → Orders */
.outcome-strip__cell {
  text-decoration: none;
  transition: background 160ms;
}

.outcome-strip__cell:hover,
.outcome-strip__cell:focus-visible {
  background: rgba(28, 188, 126, 0.06);
}

.outcome-strip__cell:focus-visible {
  outline: 2px solid var(--accent, #1cbc7e);
  outline-offset: -2px;
}

.outcome-strip__cell--attention strong {
  color: #d4593f;
}

.dash-explore {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 20px 24px;
  border: 1px dashed var(--line, rgba(0, 0, 0, 0.12));
  border-radius: var(--radius-md, 16px);
  background: var(--panel, #fff);
}

.dash-explore__copy {
  margin: 0;
  max-width: 56ch;
}

/* ════════════════════════════════════════════════════════════════════
   Statistics shell — crumbs, toolbar, summary strip, empty state
   ════════════════════════════════════════════════════════════════════ */
.stats-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted, #6b7280);
}

.stats-crumbs a {
  color: var(--text-muted, #6b7280);
  text-decoration: none;
  transition: color 160ms;
}

.stats-crumbs a:hover {
  color: var(--accent, #1cbc7e);
}

.stats-crumbs span[aria-hidden] {
  opacity: 0.5;
}

.stats-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px;
  background: var(--panel, #fff);
  border: 1px solid var(--line, rgba(0, 0, 0, 0.08));
  border-radius: var(--radius-md, 16px);
}

.stats-toolbar__form {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(180px, 1fr) auto;
  gap: 12px 16px;
  align-items: end;
}

.stats-toolbar__form .input-group {
  margin: 0;
}

.stats-toolbar__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stats-toolbar__hint {
  margin: 0;
}

.stats-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stats-summary__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}

.stats-summary__head h2 {
  margin: 4px 0 0;
}

.stats-summary__matching {
  margin: 4px 0 0;
}

.stats-strip {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--line, rgba(0, 0, 0, 0.08));
  border-radius: var(--radius-md, 16px);
  background: var(--panel, #fff);
  overflow: hidden;
}

.stats-strip__cell {
  flex: 1 1 180px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  transition: background 160ms;
}

.stats-strip__cell + .stats-strip__cell {
  border-inline-start: 1px solid var(--line, rgba(0, 0, 0, 0.08));
}

.stats-strip__cell:hover,
.stats-strip__cell:focus-visible {
  background: rgba(28, 188, 126, 0.06);
}

.stats-strip__cell:focus-visible {
  outline: 2px solid var(--accent, #1cbc7e);
  outline-offset: -2px;
}

.stats-strip__cell.is-active {
  background: rgba(28, 188, 126, 0.08);
  box-shadow: inset 0 -3px 0 0 var(--accent, #1cbc7e);
}

.stats-strip__cell--attention strong {
  color: #d4593f;
}

.stats-strip__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, #6b7280);
}

.stats-strip__cell strong {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text, #1a1f2e);
  line-height: 1.1;
}

.stats-strip__hint {
  font-size: 12px;
  color: var(--text-muted, #6b7280);
}

.stats-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.stats-empty__body {
  flex: 1 1 320px;
}

.stats-empty__body h2 {
  margin: 4px 0 8px;
}

.stats-empty__body .muted {
  margin: 0;
  max-width: 56ch;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Stats toolbar responsive ── */
@media (max-width: 720px) {
  .stats-toolbar__form {
    grid-template-columns: 1fr;
  }

  .dash-money__head,
  .dash-outcomes__head {
    align-items: flex-start;
  }

  /* Single-column money/outcome strip on narrow screens */
  .money-strip__cell,
  .outcome-strip__cell,
  .stats-strip__cell {
    flex-basis: 100%;
  }

  .money-strip__cell + .money-strip__cell,
  .outcome-strip__cell + .outcome-strip__cell,
  .stats-strip__cell + .stats-strip__cell {
    border-inline-start: none;
    border-top: 1px solid var(--line, rgba(0, 0, 0, 0.08));
  }
}

/* ════════════════════════════════════════════════════════════════════
   Part 2 — currency unit, stats mix bar, products table, dashboard solo
   ════════════════════════════════════════════════════════════════════ */
.money-strip__unit,
.stats-strip__unit {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-muted, #6b7280);
  margin-inline-start: 6px;
}

.stats-strip__cell--wide {
  flex: 2 1 280px;
}

.stats-strip__product-name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Funnel / cancel-split bar visualization */
.stats-mix {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stats-mix__row {
  display: grid;
  grid-template-columns: minmax(160px, auto) auto 1fr;
  align-items: center;
  gap: 12px 16px;
}

.stats-mix__label {
  font-size: 13px;
}

.stats-mix__count {
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #1a1f2e);
  font-variant-numeric: tabular-nums;
  text-align: end;
  min-width: 48px;
}

.stats-mix__bar {
  height: 10px;
  background: rgba(26, 32, 39, 0.04);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.stats-mix__bar > span {
  display: block;
  height: 100%;
  background: var(--accent, #1cbc7e);
  border-radius: inherit;
  transition: width 240ms ease-out;
}

.stats-mix__footnote {
  margin: 16px 0 0;
}

/* Right-align numeric columns in data tables */
.data-table th.num,
.data-table td.num {
  text-align: end;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Dashboard layout: when onboarding hides, upload card spans full width */
.dashboard-grid--solo {
  grid-template-columns: 1fr;
}

@media (max-width: 720px) {
  .stats-mix__row {
    grid-template-columns: 1fr auto;
  }

  .stats-mix__bar {
    grid-column: 1 / -1;
  }

  .stats-strip__cell--wide {
    flex-basis: 100%;
  }
}

/* ════════════════════════════════════════════════════════════════════
   Part 3 (finalization) — compact quick actions strip on dashboard
   ════════════════════════════════════════════════════════════════════ */
.dash-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-quick-actions__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.dash-quick-actions__head h2 {
  margin: 4px 0 0;
}

.quick-actions-strip {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--line, rgba(0, 0, 0, 0.08));
  border-radius: var(--radius-md, 16px);
  background: var(--panel, #fff);
  overflow: hidden;
}

.quick-actions-strip__cell {
  flex: 1 1 280px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.quick-actions-strip__cell + .quick-actions-strip__cell {
  border-inline-start: 1px solid var(--line, rgba(0, 0, 0, 0.08));
}

.quick-actions-strip__cell--link {
  color: inherit;
  text-decoration: none;
  transition: background 160ms;
}

.quick-actions-strip__cell--link:hover,
.quick-actions-strip__cell--link:focus-visible {
  background: rgba(28, 188, 126, 0.06);
}

.quick-actions-strip__cell--link:focus-visible {
  outline: 2px solid var(--accent, #1cbc7e);
  outline-offset: -2px;
}

.quick-actions-strip__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, #6b7280);
}

.quick-actions-strip__count {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text, #1a1f2e);
  line-height: 1.1;
}

.quick-actions-strip__sub {
  font-size: 12px;
  color: var(--text-muted, #6b7280);
  text-decoration: none;
}

a.quick-actions-strip__sub {
  color: var(--accent, #1cbc7e);
}

.quick-actions-strip__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-actions-strip__filename {
  font-size: 12px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .quick-actions-strip__cell {
    flex-basis: 100%;
  }

  .quick-actions-strip__cell + .quick-actions-strip__cell {
    border-inline-start: none;
    border-top: 1px solid var(--line, rgba(0, 0, 0, 0.08));
  }
}

/* ════════════════════════════════════════════════════════════════════
   Book-a-demo page — Story design adaptation
   2-column on desktop (sticky left value-prop / right form),
   single column on mobile. RTL-safe via inline-* properties.
   ════════════════════════════════════════════════════════════════════ */
.demo-body { background: #fafbf8; }

.demo-main { position: relative; }

.demo-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  position: relative;
}

.demo-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted, #6b7280);
  text-decoration: none;
  padding: 6px 0;
  margin-bottom: 14px;
  transition: color 160ms;
}
.demo-back-link:hover { color: var(--accent, #1cbc7e); }

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: flex-start;
}

/* ── Left value-prop pane ──────────────────────────────────────── */
.demo-leftpane {
  position: sticky;
  top: 88px;
}

.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(28, 188, 126, 0.12);
  color: #12825c;
  font-size: 12px;
  font-weight: 700;
}
.demo-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1cbc7e;
}

.demo-leftpane__title {
  margin: 18px 0 14px;
  font-size: 38px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1a1f2e;
}
.demo-leftpane__title-accent { color: #1cbc7e; }

.demo-leftpane__subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: #4b5563;
  max-width: 480px;
}

.demo-eyebrow {
  font-size: 11px;
  font-weight: 800;
  color: #12825c;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.demo-coverage { margin-top: 26px; }

.demo-coverage-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.demo-coverage-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.demo-coverage-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(28, 188, 126, 0.12);
  color: #12825c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11.5px;
}
.demo-coverage-list strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1a1f2e;
  line-height: 1.4;
}
.demo-coverage-list p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.7;
}

.demo-quote-card {
  margin: 26px 0 0;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}
.demo-quote-card blockquote {
  margin: 0;
  font-size: 13.5px;
  color: #1a1f2e;
  line-height: 1.85;
  font-style: italic;
}
.demo-quote-attrib {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 12px;
}
.demo-quote-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1cbc7e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
}
.demo-quote-attrib strong { display: block; color: #1a1f2e; font-weight: 700; font-size: 13px; }
.demo-quote-attrib span > span { display: block; font-size: 11.5px; color: #6b7280; }

/* ── Right form pane ───────────────────────────────────────────── */
.demo-formpane { min-width: 0; }

.demo-form {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 4px 14px rgba(31, 41, 55, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.demo-form__head { margin-bottom: 18px; }
.demo-form__head h2 {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #1a1f2e;
}
.demo-form__head p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.7;
}

.demo-form__section {
  border: none;
  padding: 0 0 20px;
  margin: 0 0 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.demo-form__section--last {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.demo-form__section legend { padding: 0; }

.demo-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.demo-field label {
  font-size: 12.5px;
  font-weight: 700;
  color: #374151;
}
.demo-field__hint {
  font-size: 11.5px;
  color: #6b7280;
  line-height: 1.6;
  margin-top: 2px;
}
.demo-field input[type="text"],
.demo-field input[type="email"],
.demo-field input[type="tel"],
.demo-field textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  color: #1a1f2e;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  outline: none;
  transition: border-color 120ms, box-shadow 120ms;
  box-sizing: border-box;
}
.demo-field input:focus,
.demo-field textarea:focus {
  border-color: #1cbc7e;
  box-shadow: 0 0 0 3px rgba(28, 188, 126, 0.18);
}
.demo-field textarea { resize: vertical; min-height: 80px; }

.demo-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Pill picker — replaces the old select dropdowns */
.demo-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.demo-pills--four { grid-template-columns: repeat(4, 1fr); }

.demo-pill-option {
  position: relative;
  cursor: pointer;
}
.demo-pill-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.demo-pill-option__label {
  display: block;
  padding: 10px 12px;
  text-align: center;
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  transition: background 120ms, border-color 120ms, color 120ms;
  line-height: 1.3;
}
.demo-pill-option:hover .demo-pill-option__label {
  border-color: #1cbc7e;
}
.demo-pill-option input[type="radio"]:checked + .demo-pill-option__label {
  background: rgba(28, 188, 126, 0.12);
  border-color: #1cbc7e;
  color: #12825c;
  font-weight: 700;
}
.demo-pill-option input[type="radio"]:focus-visible + .demo-pill-option__label {
  box-shadow: 0 0 0 3px rgba(28, 188, 126, 0.18);
}

.demo-submit {
  margin-top: 22px;
  width: 100%;
  padding: 14px 24px;
}

.demo-form__consent {
  margin: 12px 0 0;
  font-size: 11.5px;
  color: #6b7280;
  text-align: center;
  line-height: 1.7;
}

/* ── Bottom trust strip ────────────────────────────────────────── */
.demo-trust-strip {
  margin-top: 56px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.demo-trust-strip__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.demo-trust-strip__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(28, 188, 126, 0.12);
  color: #12825c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.demo-trust-strip__item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #1a1f2e;
  line-height: 1.4;
}
.demo-trust-strip__item span:not(.demo-trust-strip__icon) {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.7;
}

/* ── Success state ─────────────────────────────────────────────── */
.demo-success-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px;
}
.demo-success-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 36px 36px 32px;
  text-align: center;
}
.demo-success-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #1cbc7e;
  color: #fff;
  margin: 0 auto 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(28, 188, 126, 0.18);
}
.demo-success-title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #1a1f2e;
}
.demo-success-subtitle {
  margin: 0 0 22px;
  font-size: 14.5px;
  color: #4b5563;
  line-height: 1.85;
}
.demo-success-nextsteps {
  margin: 0 0 22px;
  padding: 18px;
  background: rgba(28, 188, 126, 0.08);
  border: 1px solid rgba(28, 188, 126, 0.28);
  border-radius: 12px;
  text-align: start;
}
.demo-success-eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  color: #12825c;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.demo-success-nextsteps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.demo-success-nextsteps-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #1a1f2e;
  line-height: 1.7;
}
.demo-success-nextsteps-marker {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1cbc7e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}
.demo-success-urgency {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: #6b7280;
}
.demo-success-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .demo-leftpane {
    position: static;
  }
  .demo-leftpane__title { font-size: 30px; }
}

@media (max-width: 640px) {
  .demo-shell { padding: 24px 16px 48px; }
  .demo-leftpane__title { font-size: 26px; }
  .demo-leftpane__subtitle { font-size: 14.5px; }
  .demo-form { padding: 20px; }
  .demo-form__head h2 { font-size: 19px; }
  .demo-field-row { grid-template-columns: 1fr; }
  .demo-pills,
  .demo-pills--four { grid-template-columns: repeat(2, 1fr); }
  .demo-trust-strip {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 18px;
  }
  .demo-success-shell { padding: 32px 16px; }
  .demo-success-card { padding: 26px 22px; }
  .demo-success-title { font-size: 22px; }
}

/* ════════════════════════════════════════════════════════════════════
   Auth pages — single-panel calm layout (no card stack)
   ════════════════════════════════════════════════════════════════════ */
.auth-body--single {
  background: #fafbf8;
  min-height: 100vh;
}

.auth-single {
  max-width: 460px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 100vh;
}

.auth-single__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.auth-single__topline .brand-link--auth {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}
.auth-single__topline .brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.auth-single__topline .brand-name {
  font-weight: 800;
  font-size: 17px;
  color: #1a1f2e;
  letter-spacing: -0.01em;
}
.auth-single__topline .brand-tag {
  font-size: 11.5px;
  color: #6b7280;
  letter-spacing: 0.02em;
}

.auth-single__main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.auth-home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #6b7280;
  text-decoration: none;
  padding: 4px 0;
  margin-bottom: 2px;
  transition: color 160ms;
}
.auth-home-link:hover { color: #1cbc7e; }

.auth-single__intro {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
}
.auth-single__intro .eyebrow {
  font-size: 11px;
  font-weight: 800;
  color: #12825c;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
.auth-single__intro h1 {
  margin: 4px 0 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1a1f2e;
  line-height: 1.25;
}
.auth-single__intro .muted {
  margin: 4px 0 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

.auth-single__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-field label {
  font-size: 12.5px;
  font-weight: 700;
  color: #374151;
}
.auth-field__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.auth-field__sublink {
  font-size: 12px;
  color: #1cbc7e;
  text-decoration: none;
}
.auth-field__sublink:hover { text-decoration: underline; }
.auth-field__inline-hint {
  font-size: 11.5px;
  color: #6b7280;
  font-weight: 500;
  margin-inline-start: 6px;
}
.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 14.5px;
  color: #1a1f2e;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 120ms, box-shadow 120ms;
}
.auth-field input:focus {
  border-color: #1cbc7e;
  box-shadow: 0 0 0 3px rgba(28, 188, 126, 0.18);
}

.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
  cursor: pointer;
  margin-top: 2px;
}
.auth-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}
.auth-consent a { color: #1cbc7e; }

.auth-submit {
  margin-top: 6px;
  padding: 12px 22px;
  font-size: 14.5px;
  font-weight: 700;
  background: #1cbc7e;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 160ms;
}
.auth-submit:hover { background: #17a06b; }
.auth-submit:focus-visible {
  outline: 2px solid #1cbc7e;
  outline-offset: 2px;
}

.auth-single__altline {
  margin: 6px 0 0;
  font-size: 13px;
  color: #4b5563;
}
.auth-single__altline a {
  color: #1cbc7e;
  text-decoration: none;
  font-weight: 600;
}
.auth-single__altline a:hover { text-decoration: underline; }

.auth-single__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
  font-size: 12px;
  color: #6b7280;
}
.auth-single__foot a { color: inherit; text-decoration: none; }
.auth-single__foot a:hover { color: #1cbc7e; }
.auth-single__foot-sep { opacity: 0.5; }

@media (max-width: 480px) {
  .auth-single { padding: 22px 18px 32px; }
  .auth-single__topline .brand-tag { display: none; }
  .auth-single__intro h1 { font-size: 24px; }
}

/* ════════════════════════════════════════════════════════════════════
   Demo + auth — bug fixes after first preview
   ════════════════════════════════════════════════════════════════════ */

/* ── Journey CTA below the testimonial card ──────────────────────── */
.demo-journey-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: #12825c;
  background: rgba(28, 188, 126, 0.08);
  border: 1px dashed rgba(28, 188, 126, 0.45);
  border-radius: 10px;
  text-decoration: none;
  transition: background 160ms, border-color 160ms, transform 160ms;
}
.demo-journey-cta:hover {
  background: rgba(28, 188, 126, 0.14);
  border-color: rgba(28, 188, 126, 0.7);
}
.demo-journey-cta__arrow {
  font-size: 16px;
  line-height: 1;
  animation: demo-journey-bounce 1.8s ease-in-out infinite;
}
@keyframes demo-journey-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .demo-journey-cta__arrow { animation: none; }
}

/* ── Mobile scroll-to-form CTA ───────────────────────────────────
   On phone the value-prop text loads first (natural source order).
   This pill-CTA appears right under the headline+subtitle and
   nudges the user to scroll to the form. Hidden on desktop because
   the form is already visible to the right. */
.demo-scroll-to-form {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #1cbc7e;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  width: 100%;
  box-shadow: 0 6px 16px rgba(28, 188, 126, 0.28);
  transition: background 160ms;
}
.demo-scroll-to-form:hover { background: #17a06b; }
.demo-scroll-to-form__arrow {
  font-size: 17px;
  line-height: 1;
  animation: demo-journey-bounce 1.6s ease-in-out infinite;
}
@media (max-width: 960px) {
  .demo-scroll-to-form { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-scroll-to-form__arrow { animation: none; }
}

/* ── Dark-mode overrides — site-wide theme.js toggles data-theme ── */
[data-theme="dark"] .demo-body,
[data-theme="dark"] body.demo-body {
  background: #0d1216;
  color: #e6eaef;
}
[data-theme="dark"] .demo-leftpane__title { color: #f4f6f9; }
[data-theme="dark"] .demo-leftpane__subtitle { color: #a4adb8; }
[data-theme="dark"] .demo-coverage-list strong { color: #f4f6f9; }
[data-theme="dark"] .demo-coverage-list p { color: #94a0ab; }
[data-theme="dark"] .demo-coverage-num,
[data-theme="dark"] .demo-pill {
  background: rgba(28, 188, 126, 0.22);
  color: #6dd5a8;
}
[data-theme="dark"] .demo-quote-card,
[data-theme="dark"] .demo-form,
[data-theme="dark"] .demo-trust-strip,
[data-theme="dark"] .demo-success-card {
  background: #161c22;
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .demo-quote-card blockquote,
[data-theme="dark"] .demo-form__head h2 { color: #f4f6f9; }
[data-theme="dark"] .demo-quote-card { color: #d2d8df; }
[data-theme="dark"] .demo-quote-attrib { border-top-color: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .demo-quote-attrib strong { color: #f4f6f9; }
[data-theme="dark"] .demo-quote-attrib span > span { color: #94a0ab; }
[data-theme="dark"] .demo-form__head p,
[data-theme="dark"] .demo-field__hint { color: #94a0ab; }
[data-theme="dark"] .demo-field label { color: #d2d8df; }
[data-theme="dark"] .demo-field input,
[data-theme="dark"] .demo-field textarea {
  background: #0d1216;
  color: #f4f6f9;
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .demo-field input::placeholder,
[data-theme="dark"] .demo-field textarea::placeholder { color: #5a6470; }
[data-theme="dark"] .demo-pill-option__label {
  background: #0d1216;
  color: #d2d8df;
  border-color: rgba(255, 255, 255, 0.12);
}
[data-theme="dark"] .demo-pill-option input[type="radio"]:checked + .demo-pill-option__label {
  background: rgba(28, 188, 126, 0.22);
  color: #6dd5a8;
  border-color: #1cbc7e;
}
[data-theme="dark"] .demo-form__section {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .demo-eyebrow { color: #6dd5a8; }
[data-theme="dark"] .demo-trust-strip__item strong { color: #f4f6f9; }
[data-theme="dark"] .demo-trust-strip__item span:not(.demo-trust-strip__icon) { color: #94a0ab; }
[data-theme="dark"] .demo-trust-strip__icon { background: rgba(28, 188, 126, 0.22); color: #6dd5a8; }
[data-theme="dark"] .demo-form__consent { color: #94a0ab; }
[data-theme="dark"] .demo-back-link { color: #94a0ab; }
[data-theme="dark"] .demo-success-title { color: #f4f6f9; }
[data-theme="dark"] .demo-success-subtitle { color: #a4adb8; }
[data-theme="dark"] .demo-success-nextsteps {
  background: rgba(28, 188, 126, 0.12);
  border-color: rgba(28, 188, 126, 0.32);
}
[data-theme="dark"] .demo-success-nextsteps-list li { color: #d2d8df; }
[data-theme="dark"] .demo-success-eyebrow { color: #6dd5a8; }
[data-theme="dark"] .demo-success-urgency { color: #94a0ab; }
[data-theme="dark"] .demo-journey-cta {
  background: rgba(28, 188, 126, 0.14);
  color: #6dd5a8;
  border-color: rgba(28, 188, 126, 0.4);
}
[data-theme="dark"] .demo-journey-cta:hover {
  background: rgba(28, 188, 126, 0.22);
}

/* Auth pages dark mode */
[data-theme="dark"] body.auth-body--single { background: #0d1216; color: #e6eaef; }
[data-theme="dark"] .auth-single__topline .brand-name { color: #f4f6f9; }
[data-theme="dark"] .auth-single__topline .brand-tag { color: #94a0ab; }
[data-theme="dark"] .auth-single__intro h1 { color: #f4f6f9; }
[data-theme="dark"] .auth-single__intro .muted { color: #a4adb8; }
[data-theme="dark"] .auth-single__intro .eyebrow { color: #6dd5a8; }
[data-theme="dark"] .auth-field label { color: #d2d8df; }
[data-theme="dark"] .auth-field input {
  background: #0d1216;
  color: #f4f6f9;
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .auth-field input::placeholder { color: #5a6470; }
[data-theme="dark"] .auth-field__inline-hint { color: #94a0ab; }
[data-theme="dark"] .auth-single__altline { color: #a4adb8; }
[data-theme="dark"] .auth-consent { color: #a4adb8; }
[data-theme="dark"] .auth-single__foot { color: #94a0ab; }
[data-theme="dark"] .auth-home-link { color: #94a0ab; }

/* ═══════════════════════════════════════════════════════════════════
   DASHBOARD — WARM DESIGN  (aligned with landing story feel)
   ═══════════════════════════════════════════════════════════════════ */

/* Font scope — Tajawal applied to the dashboard main area only */
.dash-page {
  font-family: 'Tajawal', 'Inter', system-ui, sans-serif;
  position: relative;
}

/* ── Decorative glow blobs ─────────────────────────────────────── */
.dash-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.40;
  filter: blur(10px);
}
.dash-glow--tr {
  width: 540px; height: 540px;
  top: -160px;
  inset-inline-end: -120px;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 22%, white) 0%, transparent 68%);
}
.dash-glow--bl {
  width: 420px; height: 420px;
  bottom: 160px;
  inset-inline-start: calc(var(--side-nav-w) - 140px);
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 10%, white) 0%, transparent 68%);
}
[data-theme="dark"] .dash-glow--tr { opacity: 0.15; }
[data-theme="dark"] .dash-glow--bl { opacity: 0.10; }

/* ── Welcome header ────────────────────────────────────────────── */
.dash-welcome {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.dash-welcome__greeting {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}
.dash-welcome__sub {
  margin: 7px 0 0;
  font-size: 14px;
  color: var(--light-muted);
  line-height: 1.5;
}
.dash-welcome__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Pill chip ─────────────────────────────────────────────────── */
.dash-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--panel-soft);
  color: var(--light-muted);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.dash-chip--accent {
  background: var(--primary-soft);
  color: var(--primary-strong);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--line));
}

/* ── Status pill (dot + label) ─────────────────────────────────── */
.dash-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.4;
  font-family: inherit;
}
.dash-pill::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.dash-pill--success  { background: var(--primary-soft);  color: var(--primary-strong); }
.dash-pill--success::before { background: var(--primary); }
.dash-pill--warning  { background: var(--warning-soft);  color: #8a6a1e; }
.dash-pill--warning::before { background: var(--warning); }
.dash-pill--danger   { background: var(--danger-soft);   color: #9a4040; }
.dash-pill--danger::before  { background: var(--danger); }
.dash-pill--info     { background: var(--info-soft);     color: #3d6680; }
.dash-pill--info::before    { background: var(--info); }
.dash-pill--neutral  { background: var(--panel-soft);    color: var(--light-muted); }
.dash-pill--neutral::before { background: var(--line-strong); }
/* Dark mode: hardcoded colors become unreadable on dark backgrounds → use CSS vars */
[data-theme="dark"] .dash-pill--warning { color: var(--warning); }
[data-theme="dark"] .dash-pill--danger  { color: var(--danger); }
[data-theme="dark"] .dash-pill--info    { color: var(--info); }
[data-theme="dark"] .dash-kpi--attention .dash-kpi__icon-badge { color: var(--warning); }

/* ── KPI grid ──────────────────────────────────────────────────── */
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  position: relative;
  z-index: 1;
}
@media (max-width: 1160px) {
  .dash-kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .dash-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── KPI tile ──────────────────────────────────────────────────── */
.dash-kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 18px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.16s ease, transform 0.16s ease;
  position: relative;
  overflow: hidden;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.dash-kpi:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
  color: inherit;
}
.dash-kpi--highlight {
  background: color-mix(in srgb, var(--primary) 7%, var(--panel));
  border-color: color-mix(in srgb, var(--primary) 28%, var(--line));
}
[data-theme="dark"] .dash-kpi--highlight {
  background: color-mix(in srgb, var(--primary) 8%, var(--panel));
  border-color: color-mix(in srgb, var(--primary) 20%, var(--line));
}
.dash-kpi--attention {
  background: color-mix(in srgb, var(--warning) 6%, var(--panel));
  border-color: color-mix(in srgb, var(--warning) 22%, var(--line));
}
[data-theme="dark"] .dash-kpi--attention {
  background: color-mix(in srgb, var(--warning) 8%, var(--panel));
}
.dash-kpi__label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--light-muted);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.dash-kpi__value {
  font-size: 34px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.dash-kpi__sub {
  font-size: 12px;
  color: var(--light-muted);
  line-height: 1.4;
  margin-top: 2px;
}
.dash-kpi__icon-badge {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-strong);
}
.dash-kpi--attention .dash-kpi__icon-badge {
  background: var(--warning-soft);
  color: #8a6a1e;
}

/* ── Warm card ─────────────────────────────────────────────────── */
.dash-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}
.dash-card--soft {
  background: color-mix(in srgb, var(--primary) 5%, var(--panel));
  border-color: color-mix(in srgb, var(--primary) 20%, var(--line));
}
[data-theme="dark"] .dash-card--soft {
  background: color-mix(in srgb, var(--primary) 6%, var(--panel));
}

/* ── Section heading inside dash-card ─────────────────────────── */
.dash-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.dash-section-head .eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-strong);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 5px;
}
.dash-section-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.dash-section-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--light-muted);
  line-height: 1.5;
}
.dash-section-head__action {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ── Money tiles inside a dash-card ───────────────────────────── */
.dash-money-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 860px) {
  .dash-money-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .dash-money-tiles { grid-template-columns: 1fr 1fr; }
}
.dash-money-tile {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}
[data-theme="dark"] .dash-money-tile {
  background: var(--panel-soft);
  border-color: var(--line);
}
.dash-money-tile__label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--light-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.dash-money-tile__value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.dash-money-tile__unit {
  font-size: 13px;
  color: var(--light-muted);
  font-weight: 600;
  margin-inline-start: 5px;
}
.dash-money-tile__hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.4;
}

/* ── Quick actions grid ────────────────────────────────────────── */
.dash-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .dash-quick-grid { grid-template-columns: 1fr; }
}

/* Upload drop zone */
.dash-upload-zone {
  border: 1.5px dashed var(--line-strong);
  border-radius: 12px;
  padding: 24px 22px;
  background: var(--panel-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.12s ease, background 0.12s ease;
  cursor: pointer;
}
.dash-upload-zone:hover,
.dash-upload-zone:focus-within {
  border-color: var(--primary);
  background: var(--primary-faint);
}

/* Connected stores card */
.dash-stores-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 22px;
  background: var(--panel-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease, box-shadow 0.12s ease;
  min-height: 130px;
}
.dash-stores-card:hover {
  background: var(--surf-hover);
  box-shadow: var(--shadow-md);
  color: inherit;
}

/* ── WA health card – warm override ───────────────────────────── */
.wa-health-card {
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line));
  background: color-mix(in srgb, var(--primary) 5%, var(--panel));
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}
[data-wa-state="broken"] .wa-health-card,
.wa-health-card[data-wa-state="broken"] {
  border-color: color-mix(in srgb, var(--danger) 25%, var(--line));
  background: color-mix(in srgb, var(--danger) 4%, var(--panel));
}
[data-theme="dark"] .wa-health-card {
  background: color-mix(in srgb, var(--primary) 7%, var(--panel));
  border-color: color-mix(in srgb, var(--primary) 18%, var(--line));
}

/* ── Onboarding checklist ──────────────────────────────────────── */
.dash-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.dash-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  transition: background 0.12s ease;
}
.dash-checklist-item.done {
  opacity: 0.55;
}
.dash-checklist-item__marker {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
  transition: background 0.12s ease, color 0.12s ease;
}
.dash-checklist-item.done .dash-checklist-item__marker {
  background: var(--primary);
  color: white;
  font-size: 0; /* hide number */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4 4 10-10'/%3E%3C/svg%3E");
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-position: center;
}
.dash-checklist-item__body strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.dash-checklist-item__body p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--light-muted);
  line-height: 1.5;
}

/* ── Responsive adjustments ────────────────────────────────────── */
@media (max-width: 640px) {
  .dash-welcome { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dash-welcome__greeting { font-size: 22px; }
  .dash-kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dash-card { padding: 18px; }
}
@media (max-width: 400px) {
  .dash-kpi-grid { grid-template-columns: 1fr 1fr; }
  .dash-money-tiles { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   STATISTICS OVERVIEW  — warm design components
   ═══════════════════════════════════════════════════════════════════ */

/* Two-column charts row */
.stats-charts-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px) {
  .stats-charts-row { grid-template-columns: 1fr; }
}

/* ── Donut chart ────────────────────────────────────────────────── */
.stats-donut-wrap {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}
.stats-donut-ring {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  /* conic-gradient injected via th:style */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Hollow center */
.stats-donut-ring::after {
  content: '';
  position: absolute;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--panel);
}
.stats-donut-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
}
.stats-donut-pct {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  font-family: 'Tajawal', 'Inter', system-ui, sans-serif;
  line-height: 1;
}
.stats-donut-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--light-muted);
  font-family: 'Tajawal', 'Inter', system-ui, sans-serif;
}

/* Legend */
.stats-donut-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 180px;
}
.stats-legend-row {
  display: grid;
  grid-template-columns: 12px 1fr auto auto;
  align-items: center;
  gap: 10px;
}
.stats-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.stats-legend-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
}
.stats-legend-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
.stats-legend-pct {
  font-size: 12.5px;
  color: var(--light-muted);
  font-weight: 600;
  min-width: 36px;
  text-align: end;
}

/* ── Report navigation links ────────────────────────────────────── */
.stats-report-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
}
.stats-report-link:hover {
  background: var(--surf-hover);
  box-shadow: var(--shadow-sm);
  color: inherit;
}
[data-theme="dark"] .stats-report-link {
  background: var(--panel-soft);
}
[data-theme="dark"] .stats-report-link:hover {
  background: var(--surf-hover);
}
.stats-report-link__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stats-report-link__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.stats-report-link__sub {
  font-size: 12px;
  color: var(--light-muted);
}
.stats-report-link__arrow {
  color: var(--light-muted);
  margin-inline-start: auto;
  flex-shrink: 0;
}
[dir="rtl"] .stats-report-link__arrow {
  transform: rotate(180deg);
}

/* ── Shipment outcomes strip ─────────────────────────────────────── */
.stats-outcomes-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.stats-outcome-cell {
  flex: 1;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease, box-shadow 0.12s ease;
}
.stats-outcome-cell:hover {
  background: var(--surf-hover);
  box-shadow: var(--shadow-sm);
  color: inherit;
}
.stats-outcome-cell--attention {
  border-color: color-mix(in srgb, var(--warning) 28%, var(--line));
  background: var(--warning-soft);
}
[data-theme="dark"] .stats-outcome-cell--attention {
  background: color-mix(in srgb, var(--warning) 8%, var(--panel));
}
.stats-outcome-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--light-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stats-outcome-cell strong {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ── Column mapper ─────────────────────────────────────────────────── */
.column-mapper-form {
  margin-top: 20px;
}
.column-mapper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.column-mapper-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.column-mapper-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.column-mapper-field--required label {
  font-weight: 700;
}
.column-mapper-field select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s;
}
.column-mapper-field--required select {
  border-color: var(--warning);
}
.column-mapper-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.column-mapper-field small {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.column-mapper-save-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-wrap: wrap;
}
.column-mapper-save-label {
  font-size: 13px;
  color: var(--text);
}
@media (max-width: 600px) {
  .column-mapper-grid { grid-template-columns: 1fr; }
  .column-mapper-save-row { flex-direction: column; align-items: flex-start; }
}
.link-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

/* ── Statistics period switcher ───────────────────────── */
.stats-period-switcher {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  flex-shrink: 0;
}
.stats-period-switcher a {
  padding: 7px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 150ms, color 150ms;
  white-space: nowrap;
  cursor: pointer;
}
.stats-period-switcher a:hover {
  background: var(--hover);
  color: var(--text);
}
.stats-period-switcher a.active {
  background: var(--primary);
  color: #fff;
}
[data-theme="dark"] .stats-period-switcher a.active {
  background: var(--primary);
  color: #fff;
}
@media (max-width: 640px) {
  .stats-period-switcher { width: 100%; justify-content: stretch; }
  .stats-period-switcher a { flex: 1; text-align: center; padding: 7px 8px; font-size: 12px; }
}
