:root {
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --primary: #E31C23;
  --primary-hover: #C4141A;
  --text: #111827;
  --muted: #4B5563;
  --border: #E2E5EA;
  --font: 'Source Sans 3', sans-serif;
  --display: 'Outfit', sans-serif;
  --shell: 1120px;
  --gutter: 24px;
  --section-y: 72px;
  --stack: 28px;
  --measure: 40rem;
}

html {
  scroll-behavior: auto;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

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

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
summary:focus-visible,
.nav-burger:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

main { outline: none; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}

/* Marketing chrome (MainLayout) — light / obilet-inspired */
.site {
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --text: #111827;
  --muted: #4B5563;
  --border: #E5E8EC;
  --card: #FFFFFF;
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
.site a { color: var(--primary); }
.site a:hover { color: var(--primary-hover); }
.site a.btn-primary,
.site a.btn-primary:hover { color: #fff; }
.site a.btn-ghost,
.site a.btn-ghost:hover { color: var(--text); }
.site a.logo,
.site a.logo:hover { color: #fff; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

/* Never let typography helpers shrink the page shell */
.shell.prose,
.shell.contact-grid,
.shell.band-inner,
.shell.hero-inner,
.shell.top-inner,
.shell.foot-inner,
.shell.consent-inner {
  max-width: var(--shell);
}

.top {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: clamp(12px, 2vw, 28px);
}
.top-inner .logo {
  flex-shrink: 0;
}
.top-inner nav {
  flex: 1 1 auto;
  min-width: 0;
}
.logo {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  font-size: 1.05rem;
  text-decoration: none;
  background: var(--primary);
  padding: 8px 12px;
  border-radius: 6px;
  line-height: 1;
}
.site .logo { color: #fff; }
.site .logo:hover { background: var(--primary-hover); color: #fff; text-decoration: none; }
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  place-items: center;
  gap: 5px;
  padding: 10px;
  box-sizing: border-box;
}
.nav-burger span {
  display: block;
  height: 2px;
  width: 18px;
  background: var(--text);
}
.top nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.top nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}
.site .top nav a { color: var(--muted); }
.site .top nav a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(227, 28, 35, 0.25);
}
.nav-cta:hover { background: var(--primary-hover) !important; text-decoration: none !important; }
.nav-quiet { opacity: 0.7; font-size: 0.85rem !important; }

.hero {
  background:
    radial-gradient(ellipse 70% 55% at 92% 8%, rgba(227, 28, 35, 0.12), transparent 55%),
    linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  padding-top: var(--section-y);
  padding-bottom: calc(var(--section-y) + 16px);
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 16px;
}
.hero h1,
.page-top h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4.4vw, 3.1rem);
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: min(22ch, 100%);
  color: var(--text);
}
.page-top h1 {
  font-size: clamp(1.75rem, 3.8vw, 2.6rem);
  max-width: min(28ch, 100%);
}
.lede {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: min(var(--measure), 100%);
  margin: 0 0 28px;
  line-height: 1.55;
}
.hero-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: min(var(--measure), 100%);
}
.proof-strip {
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.proof-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 28px;
  padding: 28px 0;
}
.proof-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.proof-item strong {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.proof-item span {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}
@media (max-width: 900px) {
  .proof-strip-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .proof-strip-inner { grid-template-columns: 1fr; gap: 16px; padding: 22px 0; }
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 100%;
}
.cta-row .btn {
  max-width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 10px rgba(227, 28, 35, 0.22); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; border-radius: 8px; }
.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}
.site .btn-ghost { color: var(--text); }
.site .btn-ghost:hover { background: #F8F9FB; color: var(--text); border-color: #D1D5DB; }

.page-top {
  padding-top: 56px;
  padding-bottom: 48px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.page-top .lede { margin-bottom: 24px; }

/* Catalog landing (brand / ECU / solution) — tighter hero → body handoff */
.page-top:has(+ .section-alt) {
  padding-bottom: 40px;
}
.page-top + .section-alt {
  padding-top: 48px;
}

/* Stacked content blocks inside gray catalog sections */
.catalog-landing .landing-block + .landing-block {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.catalog-landing .landing-block > h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.55rem);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.catalog-landing .landing-block > p {
  margin: 0 0 16px;
  max-width: min(65ch, 100%);
}
.catalog-landing .landing-block > ul,
.catalog-landing .landing-block > ol {
  margin: 0 0 16px;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: min(65ch, 100%);
}
.catalog-landing .landing-block .catalog-search {
  margin-top: 4px;
}
.catalog-landing .chip-cloud {
  margin-top: 4px;
}
.catalog-landing .faq-list {
  margin-top: 4px;
}

/* Balanced two-column page intros (copy + visual) */
.page-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.page-copy {
  min-width: 0;
}
.page-visual {
  min-width: 0;
  width: 100%;
}
.page-visual .fx-preview {
  width: 100%;
}

.crumbs {
  margin: 0 0 20px;
  font-size: 0.88rem;
}
.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--muted);
}
.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: var(--border);
}
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current="page"] { color: var(--text); font-weight: 700; }
.prose {
  width: 100%;
  max-width: none;
}
.prose h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 28px 0 10px;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 14px;
  max-width: min(65ch, 100%);
}
.prose a { font-weight: 600; }
.prose .flow-list,
.prose .contact-list {
  max-width: none;
}

.sales-email {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--primary);
  text-decoration: none;
  word-break: break-all;
}
.sales-email:hover { text-decoration: underline; color: var(--primary-hover, #C4141A); }
.contact-email-line { margin: 0 0 8px; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 40px;
  align-items: start;
}
.contact-list {
  margin: 0 0 16px;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.55;
}
.contact-list li { margin-bottom: 8px; }
.contact-aside h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 14px;
}
.contact-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.contact-links a {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.contact-links a:hover { text-decoration: underline; }
.foot-contact {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.foot-contact .sales-email {
  font-size: inherit;
  font-weight: 600;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

.info-card-h {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 0 0 8px;
}
.info-card-h a { color: var(--text); }
.info-card-h a:hover { color: var(--primary); }

.consent-bar {
  position: sticky;
  bottom: 0;
  z-index: 40;
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.08);
  padding: 16px 0;
}
.consent-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.consent-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 62ch;
  line-height: 1.45;
}
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.consent-actions .btn {
  flex: 1 1 auto;
  min-width: 7.5rem;
}

.section {
  padding: var(--section-y) 0;
}
.section-alt {
  background: #EEF0F3;
  border-block: 1px solid var(--border);
}
.band {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.site .band {
  background: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(227, 28, 35, 0.08);
}
.band-inner {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.band-inner .section-lede {
  margin-bottom: 24px;
}

.section h2,
.band-inner h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  max-width: min(28ch, 100%);
}
.section-lede {
  color: var(--muted);
  margin: 0 0 var(--stack);
  max-width: min(var(--measure), 100%);
  font-size: 1.05rem;
  line-height: 1.55;
}
.section-cta { margin: 28px 0 0; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: step;
}
.steps li {
  background: var(--card, var(--surface));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-increment: step;
  position: relative;
  box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  font-weight: 800;
  color: var(--primary);
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.steps strong {
  font-family: var(--display);
  font-size: 1.1rem;
}
.steps span { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.profiles { grid-template-columns: repeat(2, 1fr); }
.info-card {
  background: var(--card, var(--surface));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: var(--shadow);
}
.info-card h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 0 0 8px;
}
.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.compare-col {
  background: var(--card, var(--surface));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: var(--shadow);
}
.compare-col.is-filhex {
  border-color: rgba(227, 28, 35, 0.35);
  box-shadow: 0 8px 24px rgba(227, 28, 35, 0.08);
}
.compare-col h3 {
  font-family: var(--display);
  margin: 0 0 14px;
  font-size: 1.15rem;
}
.compare-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.compare-col li {
  color: var(--muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.45;
}
.compare-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
}
.compare-col.is-filhex li::before { background: var(--primary); }

.chip-block { margin-bottom: 24px; }
.chip-block:last-child { margin-bottom: 0; }
.chip-block h3 {
  font-family: var(--display);
  font-size: 0.95rem;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-list li {
  border: 1px solid var(--border);
  background: var(--card, var(--surface));
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
}
.chip-list li a {
  color: var(--primary);
  text-decoration: none;
}
.chip-list-emphasis li {
  border-color: rgba(227, 28, 35, 0.35);
  color: var(--text);
  background: #fff;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin: 0 0 12px;
}

.catalog-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.catalog-stat-value {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

.catalog-stat-label {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.catalog-updated,
.catalog-index-summary {
  margin: 0;
}

.catalog-search {
  margin: 12px 0 16px;
}

.catalog-search-input {
  width: 100%;
  max-width: 28rem;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--surface);
  color: var(--text);
}

.catalog-search-input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-color: var(--primary);
}

.catalog-search-meta {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a.sol-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card, var(--surface));
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

a.sol-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.solution-groups {
  display: grid;
  gap: 28px;
}
.solution-group h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.flow-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.flow-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  counter-reset: flow;
}
.flow-list li {
  counter-increment: flow;
  color: var(--muted);
  padding-left: 36px;
  position: relative;
  line-height: 1.45;
}
.flow-list li::before {
  content: counter(flow, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--primary);
}

.app-mock {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: var(--shadow);
}
.app-mock-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #F8F9FB;
}
.app-mock-brand {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: #fff;
  background: var(--primary);
  padding: 5px 8px;
  border-radius: 4px;
}
.app-mock-meta { color: var(--muted); font-size: 0.82rem; }
.app-mock-body { display: grid; }
.app-mock-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.app-mock-row:last-child { border-bottom: none; }
.app-mock-row span { color: var(--muted); }
.app-mock-status { color: #059669; }

/* —— App UI previews (HTML recreation of Filhex.App, not screenshots) —— */
.fx-preview {
  margin: 0;
  min-width: 0;
  max-width: 100%;
}
.fx-caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.fx-win {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #F4F5F7;
  box-shadow: var(--shadow);
  max-width: 100%;
}
.fx-win-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
}
.fx-win-brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--primary);
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}
.fx-win-title {
  flex: 1;
  min-width: 0;
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fx-win-controls {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.fx-win-controls i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E5E8EC;
  display: block;
}
.fx-app {
  display: grid;
  grid-template-columns: 148px 1fr;
  min-height: 220px;
  font-size: 0.78rem;
}
.fx-side {
  background: #FFFFFF;
  border-right: 1px solid var(--border);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.fx-brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--text);
  padding: 2px 6px;
}
.fx-brand span { color: var(--primary); }
.fx-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.fx-nav span {
  display: block;
  padding: 7px 8px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  line-height: 1.25;
}
.fx-nav span.is-on {
  background: rgba(227, 28, 35, 0.08);
  color: var(--primary);
}
.fx-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #F4F5F7;
  border: 1px solid var(--border);
  margin-top: auto;
}
.fx-av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.fx-chip-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.fx-chip-meta strong {
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fx-chip-meta em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.62rem;
}
.fx-main {
  padding: 12px 14px 14px;
  min-width: 0;
  overflow: hidden;
}
.fx-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.fx-head > strong {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.fx-back {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.68rem;
}
.fx-panel {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.fx-panel-pad { padding: 14px; }
.fx-h3 {
  font-family: var(--display);
  font-size: 0.88rem;
  margin: 0 0 12px;
}
.fx-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.fx-table th,
.fx-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fx-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.68rem;
  background: #F8F9FB;
}
.fx-table tr:last-child td { border-bottom: none; }
.fx-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
}
.fx-hash { letter-spacing: -0.02em; }
.fx-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
}
.fx-ok { background: rgba(5, 150, 105, 0.12); color: #059669; }
.fx-amber { background: rgba(217, 119, 6, 0.12); color: #D97706; }
.fx-scan { background: rgba(227, 28, 35, 0.1); color: var(--primary); }
.fx-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.fx-steps span {
  padding: 4px 8px;
  border-radius: 6px;
  background: #EEF0F3;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
}
.fx-steps span.is-done { color: var(--text); }
.fx-steps span.is-on {
  background: rgba(227, 28, 35, 0.1);
  color: var(--primary);
}
.fx-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.fx-summary > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  align-items: baseline;
  min-width: 0;
}
.fx-summary span { color: var(--muted); font-size: 0.7rem; }
.fx-summary strong {
  font-size: 0.78rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.fx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.72rem;
  border: 1px solid transparent;
  white-space: nowrap;
}
.fx-btn-red { background: var(--primary); color: #fff; }
.fx-btn-dark { background: #111827; color: #fff; }
.fx-btn-ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}
.fx-btn-block { width: 100%; }

.fx-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.fx-walk {
  display: grid;
  gap: 28px;
  margin-top: 8px;
}
.fx-walk-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.fx-walk-row.is-flip {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
.fx-walk-row .fx-preview {
  width: 100%;
}
.fx-walk-copy h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.fx-walk-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 42ch;
}
.fx-walk-copy .fx-step-n {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
}

@media (max-width: 960px) {
  .fx-gallery { grid-template-columns: 1fr; }
  .fx-walk-row,
  .fx-walk-row.is-flip {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .fx-walk-row.is-flip .fx-walk-copy { order: -1; }
}

@media (max-width: 640px) {
  .fx-app { grid-template-columns: 1fr; }
  .fx-side {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--border);
    gap: 8px;
    padding: 10px 12px;
  }
  .fx-brand { padding: 0; margin-right: 4px; }
  .fx-nav {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1 1 100%;
    order: 3;
  }
  .fx-nav span {
    padding: 5px 8px;
    font-size: 0.68rem;
  }
  .fx-chip {
    margin-top: 0;
    margin-left: auto;
    padding: 4px 8px;
  }
  .fx-chip-meta em { display: none; }
  .fx-summary > div { grid-template-columns: 72px 1fr; }
  .fx-table th:nth-child(2),
  .fx-table td:nth-child(2) { display: none; }
}

.signup-grant {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 28px 28px 28px 24px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.signup-grant-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}
.signup-grant h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  max-width: none;
}

.pack-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 640px;
}

.pack-pricing-card {
  background: var(--card, var(--surface));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: var(--shadow);
}

.pack-pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.pack-pricing-count {
  font-family: var(--display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}

.pack-pricing-unit {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
}

.pack-pricing-price {
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.pack-pricing-meta {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.pack-pricing-note {
  margin: 18px 0 0;
  font-size: 0.9rem;
}

.signup-grant p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: min(var(--measure), 100%);
}

.faq-list {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.faq-list details {
  background: var(--card, var(--surface));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 16px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--primary);
  font-weight: 800;
  line-height: 1.2;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
  max-width: none;
  overflow-wrap: anywhere;
}

.foot {
  margin-top: auto;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  background: #FFFFFF;
}
.foot-inner {
  display: grid;
  gap: 20px;
  padding-top: 36px;
  padding-bottom: 36px;
}
.foot-brand p {
  margin: 8px 0 0;
  max-width: 42ch;
  line-height: 1.5;
}
.logo-mini {
  font-family: var(--display);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.06em;
  background: var(--primary);
  display: inline-block;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 0.85rem;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}
.site .foot-nav a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.site .foot-nav a:hover { color: var(--text); }
.foot-legal {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 72ch;
}

.site .auth-wrap {
  background: linear-gradient(180deg, #FFF5F5 0%, var(--bg) 45%);
}
.site .auth-card {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.admin-shell {
  display: flex;
  min-height: 100vh;
  background: #F3F4F6;
  color: var(--text);
}
.admin-sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  width: 248px;
  flex-shrink: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #111827;
  color: #E5E7EB;
  z-index: 40;
  overflow: auto;
}
.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-sidebar .admin-brand {
  font-family: var(--display);
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
}
.admin-sidebar .admin-label {
  background: rgba(227, 28, 35, 0.2);
  color: #FCA5A5;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 4px;
}
.admin-sidebar-hint { padding: 12px 16px; font-size: 0.88rem; }
.admin-sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-nav-section {
  border-radius: 8px;
}
.admin-nav-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9CA3AF;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}
.admin-nav-section-toggle:hover,
.admin-nav-section.is-current .admin-nav-section-toggle {
  color: #F9FAFB;
  background: rgba(255, 255, 255, 0.04);
}
.admin-nav-section .admin-dd-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.65;
  transition: transform 0.15s ease;
}
.admin-nav-section.is-open .admin-dd-caret { transform: rotate(180deg); }
.admin-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 4px 6px;
}
.admin-nav-links a {
  display: block;
  padding: 8px 10px 8px 12px;
  border-radius: 7px;
  color: #D1D5DB;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.admin-nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.admin-nav-links a.is-active {
  color: #fff;
  background: rgba(227, 28, 35, 0.35);
}
.admin-sidebar-foot {
  margin-top: auto;
  padding: 12px 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-sidebar-home {
  display: block;
  padding: 8px 10px;
  border-radius: 7px;
  color: #D1D5DB;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.admin-sidebar-home:hover,
.admin-sidebar-home.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.admin-sidebar .admin-signout {
  width: 100%;
  margin: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
  color: #D1D5DB;
  cursor: pointer;
}
.admin-sidebar .admin-signout:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.admin-mobile-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 45;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.12);
}
.admin-dd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(17, 24, 39, 0.4);
}
.admin-frame {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.admin-content {
  flex: 1;
  width: 100%;
  min-width: 0;
}
.admin .muted-pad { padding: 28px 24px; color: var(--muted); }
.admin,
.admin.admin-wide {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px 28px 40px;
  box-sizing: border-box;
}
.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}
.admin-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.admin-panel-title {
  margin: 0;
  padding: 12px 14px 0;
  font-size: 0.95rem;
}
.admin-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.admin-home-card {
  display: block;
  padding: 18px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.admin-home-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}
.admin-home-card strong {
  display: block;
  margin: 4px 0 6px;
  font-size: 1.05rem;
}
.admin-home-card p { margin: 0; font-size: 0.88rem; }
.admin-home-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin h1 { font-family: var(--display); margin-top: 0; font-size: 1.55rem; }
.admin h2 { font-family: var(--display); font-size: 1.15rem; margin: 28px 0 12px; }
.admin label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 12px 0 6px;
}
.admin .token, .admin input {
  width: 100%;
  max-width: 520px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}
.admin .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 8px;
}
.admin .row input { max-width: 220px; width: auto; }
.admin .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
  margin: 0;
  background: var(--surface);
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.admin-table th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  background: #F8F9FB;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1;
}
.admin-table tbody tr {
  transition: background 0.12s ease;
}
.admin-table tbody tr:hover td {
  background: #FAFBFC;
}
.admin-table tbody tr:last-child td {
  border-bottom: none;
}
.admin-table tr.is-selected td { background: #FFF5F5; }
.admin-table tr.is-selected { outline: none; }
.admin-table tr.is-clickable { cursor: pointer; }
.admin-table .num { font-variant-numeric: tabular-nums; font-weight: 600; }

.admin-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
  margin-top: 14px;
}
.admin-panel-scroll {
  max-height: calc(100vh - 280px);
  min-height: 280px;
  overflow: auto;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0 0;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.admin-toolbar .search {
  flex: 1;
  min-width: 220px;
  max-width: none;
  width: auto;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.admin-toolbar select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.admin-meta {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.admin-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: #F8F9FB;
  font-size: 0.88rem;
  color: var(--muted);
}
.admin-pager .pager-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.admin-pager .btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #EEF2F7;
  color: #374151;
}
.admin-badge.is-ok { background: #D1FAE5; color: #065F46; }
.admin-badge.is-warn { background: #FEF3C7; color: #92400E; }
.admin-badge.is-off { background: #F3F4F6; color: #6B7280; }
.admin-badge.is-err { background: #FEE2E2; color: #991B1B; }
.admin-badge.is-live { background: #DBEAFE; color: #1E40AF; }

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: admin-fade 0.15s ease;
}
.admin-modal {
  width: min(720px, 100%);
  max-height: min(90vh, 960px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(17, 24, 39, 0.18);
  padding: 22px 24px 20px;
  animation: admin-rise 0.18s ease;
}
.admin-modal.admin-modal-wide {
  width: min(960px, 100%);
}
.admin-modal-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.admin-modal-head h2 {
  font-family: var(--display);
  font-size: 1.3rem;
  margin: 0;
  flex: 1;
}
.admin-modal-close {
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--muted);
}
.admin-modal-close:hover { color: var(--text); border-color: var(--muted); }
.admin-modal .admin-table { margin-top: 12px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.admin-modal label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 12px 0 6px;
}
.admin-modal input:not([type="checkbox"]),
.admin-modal select {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}
.admin-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

@keyframes admin-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes admin-rise {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.admin .err { color: var(--primary); font-weight: 600; }
.admin .ok { color: #059669; font-weight: 600; }
.admin .small { font-size: 0.88rem; }
.admin .check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 0.95rem; margin-top: 12px; }
.admin input[type="checkbox"],
.admin input[type="radio"] {
  width: auto;
  max-width: none;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--primary);
}
.admin .ok-inline { color: #059669; font-weight: 700; }
.admin .err-inline { color: var(--primary); font-weight: 700; }

/* Campaign create form */
.campaign-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.campaign-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.campaign-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
}
.campaign-field > span,
.campaign-field-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.campaign-field input:not([type="checkbox"]),
.campaign-field select,
.campaign-field textarea {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.campaign-field-name { flex: 1 1 240px; min-width: 200px; }
.campaign-field-lang { flex: 0 0 88px; }
.campaign-field-limit { flex: 0 0 100px; }
.campaign-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: center;
  padding-bottom: 2px;
  min-height: 42px;
}
.campaign-checks .check {
  margin: 0;
  white-space: nowrap;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}
.campaign-pick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 800px) {
  .campaign-pick-grid { grid-template-columns: 1fr; }
}
.campaign-pick {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.campaign-pick-box {
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  background: #F8F9FB;
}
.campaign-pick-box .check {
  margin: 0;
  padding: 5px 4px;
  white-space: normal;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 6px;
}
.campaign-pick-box .check:hover {
  background: #EEF2F7;
}
.campaign-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.campaign-actions select {
  width: auto;
  max-width: none;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  min-height: 42px;
}
.campaign-actions .btn {
  min-height: 42px;
}
.campaign-custom {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.campaign-custom .campaign-field { width: 100%; }

@media (max-width: 960px) {
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.18s ease;
    box-shadow: 8px 0 28px rgba(17, 24, 39, 0.25);
  }
  .admin-sidebar.is-mobile-open {
    transform: translateX(0);
  }
  .admin-mobile-toggle { display: inline-flex; }
  .admin,
  .admin.admin-wide {
    padding: 64px 16px 32px;
  }
  .admin-panel-scroll {
    max-height: calc(100vh - 320px);
  }
}
.provider-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.provider-chip {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  min-width: 200px;
  font: inherit;
}
.provider-chip.is-selected { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.provider-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 16px 0;
}
.provider-card h2 { font-family: var(--display); margin: 0 0 8px; font-size: 1.35rem; }
.provider-card h3 { font-family: var(--display); margin: 0 0 8px; font-size: 1.05rem; }
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 16px;
}
.provider-grid label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 12px 0 6px;
}
.provider-grid input[type="text"],
.provider-grid input[type="password"],
.provider-grid input[type="number"],
.provider-grid input:not([type]) {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; }

.auth-wrap {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background: linear-gradient(180deg, #FFF5F5 0%, var(--bg) 45%);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}
.auth-card .brand-sm {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}
.auth-card h1 {
  font-family: var(--display);
  font-size: 1.6rem;
  margin: 0 0 8px;
}
.auth-card label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 14px 0 6px;
}
.auth-card input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}
.auth-card .btn-block { width: 100%; margin-top: 20px; }
.auth-card .center { text-align: center; margin-top: 18px; }
.auth-card .err { color: var(--primary); font-weight: 600; margin: 0 0 12px; }
.auth-card .ok { color: #059669; font-weight: 600; margin: 0 0 12px; }

#blazor-error-ui {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px;
}

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .compare, .flow-split, .page-split, .contact-grid { grid-template-columns: 1fr; }
  .page-split { gap: 28px; }
}

@media (max-width: 800px) {
  :root { --gutter: 16px; --section-y: 56px; }
  .shell { padding-inline: var(--gutter); }
  .hero-inner { padding-top: 56px; padding-bottom: 64px; }
  .section { padding: var(--section-y) 0; }
  .band-inner { padding-top: var(--section-y); padding-bottom: var(--section-y); }
  .page-top { padding-top: 40px; padding-bottom: 36px; }
  .page-top:has(+ .section-alt) { padding-bottom: 28px; }
  .page-top + .section-alt { padding-top: 40px; }
  .catalog-landing .landing-block + .landing-block {
    margin-top: 28px;
    padding-top: 28px;
  }
  .steps, .card-grid, .profiles { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .consent-inner { flex-direction: column; align-items: stretch; }
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1 1 calc(50% - 5px); }
  .nav-burger { display: grid; }
  .top { position: sticky; }
  .top-inner { position: relative; }
  .top nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
  }
  .top nav a {
    padding: 10px 4px;
    border-bottom: 1px solid var(--border);
  }
  .top nav .nav-cta {
    margin-top: 10px;
    text-align: center;
    border-bottom: none;
  }
  .nav-toggle:checked ~ nav { display: flex; }
  .nav-toggle:focus-visible + .nav-burger {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
  }
  .app-mock-row { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Enhanced page navigation */
#fhx-nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 10000;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
}

#fhx-nav-progress::after {
  content: "";
  display: block;
  height: 100%;
  width: 40%;
  background: var(--primary);
  animation: fhx-nav-indeterminate 0.9s ease-in-out infinite;
}

#fhx-nav-status {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.08);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

html.fhx-navigating #fhx-nav-status:not(:empty) {
  opacity: 1;
}

html.fhx-navigating .site {
  opacity: 0.55;
  transition: opacity 0.12s ease;
  pointer-events: none;
  user-select: none;
}

html.fhx-navigating #main {
  min-height: 40vh;
}

@keyframes fhx-nav-indeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@media (prefers-reduced-motion: reduce) {
  #fhx-nav-progress::after {
    animation: none;
    width: 100%;
    opacity: 0.85;
  }

  html.fhx-navigating .site,
  #fhx-nav-status {
    transition: none;
  }
}

