:root {
  --ink: #182431;
  --muted: #5d6b7a;
  --line: #dde6f0;
  --surface: #f6f8fb;
  --surface-strong: #edf5fc;
  --navy: #09243d;
  --blue: #123b63;
  --accent: #178bff;
  --accent-dark: #066ed1;
  --green: #18a66a;
  --green-soft: #e9f8f1;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(9, 36, 61, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(23, 139, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #f9fcff 0%, var(--white) 520px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.public-body {
  background:
    radial-gradient(circle at 18% 0%, rgba(23, 139, 255, 0.28), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(24, 166, 106, 0.12), transparent 26%),
    linear-gradient(160deg, #071b2f 0%, #09243d 720px, #f4f8fb 720px, #ffffff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-header,
.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 32px, var(--max));
  margin: 10px auto 0;
  padding: 13px 16px;
  border: 1px solid rgba(221, 230, 240, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 46px rgba(9, 36, 61, 0.1);
  backdrop-filter: blur(18px);
}

.public-body .site-header {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(7, 27, 47, 0.88);
  box-shadow: 0 24px 80px rgba(0, 163, 255, 0.16);
}

.public-body .site-header .brand,
.public-body .site-nav a {
  color: var(--white);
}

.public-body .site-header .brand-text small {
  color: rgba(255, 255, 255, 0.65);
}

.public-body .site-nav a:not(.nav-cta) {
  color: rgba(255, 255, 255, 0.74);
}

.public-body .site-nav a:not(.nav-cta):hover {
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-text {
  display: grid;
  gap: 0;
  line-height: 1.05;
}

.brand-text small {
  margin-top: 3px;
  color: #667789;
  font-size: 11px;
  font-weight: 680;
}

.brand-logo {
  display: block;
  width: clamp(132px, 12vw, 172px);
  height: auto;
  object-fit: contain;
}

.site-footer .brand-logo {
  width: 160px;
}

.app-logo {
  width: clamp(150px, 12vw, 190px);
  max-width: 100%;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, var(--navy), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 12px 26px rgba(23, 139, 255, 0.22);
  font-size: 17px;
}

.site-nav,
.admin-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #435365;
  font-size: 14px;
}

.site-nav a:hover,
.admin-header a:hover {
  color: var(--blue);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 760;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nav-cta,
.button-primary {
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 14px 28px rgba(23, 139, 255, 0.24);
}

.nav-cta:hover,
.button-primary:hover {
  color: var(--white);
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.button-secondary {
  color: var(--blue);
  background: var(--white);
  border-color: var(--line);
}

.button-secondary:hover {
  border-color: #b8cce0;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--blue);
}

.hero,
.content-band,
.services-section,
.editorial,
.support-section,
.lead-section,
.pro-section,
.faq-section,
.legal-section,
.page-hero,
.confirmation {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 88px);
  padding: 28px 0 28px;
}

.public-hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 84px);
  min-height: clamp(620px, calc(100svh - 84px), 780px);
  padding-top: clamp(24px, 5vh, 54px);
  color: var(--white);
}

.public-hero .hero-copy {
  position: relative;
  z-index: 1;
  padding: 34px 0;
}

.public-hero .hero-copy::before {
  content: "";
  position: absolute;
  inset: -28px -34px -26px -34px;
  z-index: -1;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(7, 27, 47, 0.98), rgba(9, 36, 61, 0.88)),
    rgba(7, 27, 47, 0.92);
  box-shadow: 0 28px 90px rgba(2, 15, 29, 0.28);
}

.public-hero .eyebrow,
.public-hero h1,
.public-hero .hero-lead {
  color: var(--white);
}

.public-hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.public-hero .hero-lead {
  color: rgba(255, 255, 255, 0.86);
}

.public-hero .signature {
  border-left-color: var(--accent);
  color: rgba(255, 255, 255, 0.92);
}

.public-hero .button-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.public-hero .private-access,
.public-hero .trust-list {
  color: rgba(255, 255, 255, 0.82);
}

.public-hero .private-access span {
  color: var(--white);
}

.public-hero .private-access a,
.public-hero .trust-list li {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.12);
}

.eyebrow {
  margin: 0 0 12px;
  color: #0e73c9;
  font-size: 13px;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  color: var(--navy);
  font-size: clamp(40px, 5.6vw, 66px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  color: var(--navy);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  color: var(--navy);
  font-size: 21px;
  line-height: 1.25;
}

.hero-lead {
  max-width: 620px;
  color: #425467;
  font-size: 21px;
  line-height: 1.55;
}

.signature {
  position: relative;
  display: block;
  margin: 2px 0 26px;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  color: var(--blue);
  background: transparent;
  font-size: 18px;
  font-weight: 820;
}

.signature::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -7px;
  width: 112px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(23, 139, 255, 0.5), transparent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.private-access {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.private-access span {
  color: var(--blue);
  font-weight: 820;
}

.private-access a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: var(--blue);
  font-weight: 720;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.private-access a:hover {
  border-color: #bfd8ee;
  background: var(--white);
  transform: translateY(-1px);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: #34495e;
  font-size: 14px;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 22px rgba(9, 36, 61, 0.05);
}

.trust-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(9, 36, 61, 0.16);
  isolation: isolate;
}

.platform-panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.32);
}

.platform-panel::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  pointer-events: none;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 45%, rgba(9, 36, 61, 0.18));
  pointer-events: none;
}

.hero-panel img {
  aspect-ratio: 1.2 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.platform-status {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 22px;
  display: grid;
  gap: 5px;
  max-width: 300px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 60px rgba(9, 36, 61, 0.18);
  backdrop-filter: blur(18px);
}

.platform-status strong {
  color: var(--navy);
  font-size: 17px;
}

.platform-status small {
  color: var(--muted);
  line-height: 1.45;
}

.project-selector {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(9, 36, 61, 0.14);
}

.project-selector p {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  font-weight: 850;
}

.project-selector span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.project-choice {
  display: grid;
  min-width: 132px;
  min-height: 54px;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--accent));
  box-shadow: 0 16px 34px rgba(23, 139, 255, 0.26);
  font-weight: 760;
  place-items: center;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-choice small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 680;
}

.project-choice:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(23, 139, 255, 0.34);
}

.confidence-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 0 0 84px;
}

.confidence-strip div,
.steps article,
.service-card,
.lead-tunnel,
.pro-section,
.faq-grid details,
.admin-panel,
.admin-kpis article,
.confirmation-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 46px rgba(9, 36, 61, 0.07);
}

.confidence-strip div {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), #ffffff),
    var(--white);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.confidence-strip div:hover {
  transform: translateY(-3px);
  border-color: #bed7ee;
  box-shadow: 0 24px 58px rgba(9, 36, 61, 0.1);
}

.mini-icon {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.confidence-strip strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
}

.confidence-strip p,
.section-heading p,
.service-card p,
.editorial-copy,
.lead-intro p,
.pro-section p,
.faq-grid p {
  color: var(--muted);
}

.content-band,
.how-section,
.support-section,
.faq-section {
  padding: 82px 0;
}

.how-section {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 62px 0 64px;
}

.services-section,
.lead-section {
  padding: 88px max(24px, calc((100vw - var(--max)) / 2));
  width: 100%;
  background: var(--surface);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 34px;
}

.steps,
.service-grid,
.support-grid,
.faq-grid {
  display: grid;
  gap: 18px;
}

.steps {
  grid-template-columns: repeat(3, 1fr);
}

.steps article,
.service-card {
  padding: 26px;
}

.steps article {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff, #fbfdff);
}

.steps article::after {
  content: "";
  position: absolute;
  right: -38px;
  top: -38px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(23, 139, 255, 0.08);
}

.steps span,
.service-icon,
.success-mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--accent);
  background: linear-gradient(135deg, #eaf4ff, #f7fbff);
  font-weight: 850;
  box-shadow: inset 0 0 0 1px rgba(23, 139, 255, 0.12);
}

.service-icon svg {
  width: 27px;
  height: 27px;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  min-height: 250px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  border-color: #bfd8ee;
  box-shadow: 0 26px 62px rgba(9, 36, 61, 0.12);
  transform: translateY(-3px);
}

.service-card a {
  color: var(--accent);
  font-weight: 760;
}

.expertise-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.expertise-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 254, 0.98)),
    var(--white);
  box-shadow: 0 18px 46px rgba(9, 36, 61, 0.07);
}

.expertise-card h3 {
  color: var(--navy);
}

.expertise-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.expertise-card li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  line-height: 1.55;
}

.expertise-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(23, 139, 255, 0.1);
}

.legal-section {
  padding: 72px 0 92px;
}

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

.legal-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 46px rgba(9, 36, 61, 0.07);
}

.legal-card h2 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: 24px;
}

.legal-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.6;
}

.editorial {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  padding: 94px 0;
}

.editorial-copy {
  font-size: 18px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}

.comparison-grid div {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.comparison-grid div:last-child {
  border-color: #bde5d4;
  background: linear-gradient(180deg, #ffffff, var(--green-soft));
}

.comparison-grid strong {
  color: var(--navy);
  font-size: 16px;
}

.comparison-grid span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.support-section {
  border-top: 1px solid var(--line);
}

.support-grid {
  grid-template-columns: repeat(6, 1fr);
}

.support-grid span {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blue);
  background: var(--white);
  font-weight: 760;
  text-align: center;
}

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

.sector-card {
  position: relative;
  min-height: 210px;
  padding: 30px;
  border: 1px solid rgba(16, 52, 86, 0.12);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(33, 142, 255, 0.08), rgba(255, 255, 255, 0.96) 48%),
    var(--white);
  box-shadow: 0 24px 60px rgba(10, 36, 61, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.sector-card:hover {
  transform: translateY(-4px);
  border-color: rgba(33, 142, 255, 0.36);
  box-shadow: 0 30px 70px rgba(10, 36, 61, 0.14);
}

.sector-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(33, 142, 255, 0.28);
}

.sector-card h3 {
  margin: 24px 0 10px;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 0.95;
}

.sector-card p {
  max-width: 560px;
  min-height: 52px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.sector-card small {
  display: inline-flex;
  margin-top: 22px;
  color: var(--blue-dark);
  font-weight: 800;
}

.sector-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 850;
}

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

.local-link-card {
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 20px;
  border: 1px solid rgba(16, 52, 86, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(244, 248, 251, 0.55), rgba(255, 255, 255, 0.96)),
    var(--white);
  box-shadow: 0 16px 38px rgba(10, 36, 61, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.local-link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(33, 142, 255, 0.34);
  box-shadow: 0 24px 58px rgba(10, 36, 61, 0.12);
}

.local-link-card strong {
  color: var(--navy);
  font-size: 20px;
  line-height: 1.15;
}

.local-link-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.lead-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 34px;
  align-items: start;
}

.lead-intro {
  position: sticky;
  top: 110px;
}

.lead-tunnel {
  padding: 28px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.progress {
  overflow: hidden;
  height: 8px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: #e5edf5;
}

.progress span {
  display: block;
  width: 14%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--green));
  transition: width 220ms ease;
}

.form-step {
  display: none;
  animation: fadeUp 220ms ease;
}

.form-step.active {
  display: block;
}

.project-search-card {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(206, 220, 232, 0.82);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 254, 0.96)),
    var(--white);
  box-shadow: 0 18px 40px rgba(9, 36, 61, 0.08);
}

.project-search-card label {
  color: var(--navy);
  font-size: 16px;
}

.project-search-card label > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.project-search-card input {
  min-height: 54px;
  border-color: rgba(23, 139, 255, 0.28);
  font-size: 16px;
}

.project-search-card .button {
  min-height: 54px;
  white-space: nowrap;
}

.project-search-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.service-list-toggle {
  justify-self: start;
  padding: 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.service-choice-grid {
  overflow: visible;
  max-height: 1200px;
  padding-top: 2px;
  opacity: 1;
  transition: max-height 240ms ease, opacity 180ms ease, margin 180ms ease;
}

.service-choice-grid.is-collapsed {
  overflow: hidden;
  max-height: 0;
  margin-top: -6px;
  padding-top: 0;
  opacity: 0;
  pointer-events: none;
}

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

.choice-grid button {
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.choice-grid button:hover,
.choice-grid button.selected {
  border-color: var(--accent);
  background: #f3f9ff;
  transform: translateY(-1px);
}

.visual-choice-grid button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 84px;
}

.visual-choice-grid[data-field="service"] button {
  align-items: start;
  min-height: 112px;
}

.choice-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: var(--blue);
  background: #eaf4ff;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.choice-icon svg {
  width: 27px;
  height: 27px;
}

.visual-choice-grid strong,
.visual-choice-grid small {
  display: block;
}

.visual-choice-grid strong {
  color: var(--navy);
  font-size: 15px;
}

.visual-choice-grid small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.visual-choice-grid[data-field="service"] small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.visual-choice-grid button:hover .choice-icon,
.visual-choice-grid button.selected .choice-icon {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--accent));
  transform: scale(1.03);
}

.choice-grid button.is-hidden {
  display: none;
}

.service-card-empty {
  grid-column: 1 / -1;
}

.form-empty {
  margin: 14px 0 0;
  padding: 14px;
  border: 1px solid rgba(206, 220, 232, 0.8);
  border-radius: var(--radius);
  color: var(--muted);
  background: #f8fbfe;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 720;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  min-height: 48px;
  padding: 12px 13px;
}

input[type="radio"],
input[type="checkbox"] {
  width: auto;
  min-height: auto;
  padding: 0;
}

textarea {
  resize: vertical;
}

.full,
.consent {
  grid-column: 1 / -1;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  color: #3d4d5d;
  font-weight: 520;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.form-error {
  min-height: 24px;
  margin: 18px 0 0;
  color: #b33030;
  font-weight: 680;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.hidden {
  display: none !important;
}

.pro-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 88px;
  padding: 36px;
}

.faq-grid {
  grid-template-columns: repeat(3, 1fr);
}

.faq-grid details {
  padding: 22px;
}

.faq-grid summary {
  color: var(--navy);
  cursor: pointer;
  font-weight: 780;
}

.page-hero,
.confirmation {
  max-width: 840px;
  padding: 92px 0;
  text-align: center;
}

.confirmation-card {
  display: grid;
  gap: 4px;
  max-width: 420px;
  margin: 28px auto;
  padding: 22px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 32px, var(--max));
  margin: 80px auto 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer > div {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-footer p {
  margin: 0;
  color: var(--navy);
  font-weight: 780;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.section-reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 600ms ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-body,
.partner-body {
  background: var(--surface);
}

.admin-main {
  width: min(100% - 32px, var(--max));
  margin: 34px auto;
}

.admin-title {
  margin-bottom: 22px;
}

.admin-login {
  display: grid;
  min-height: 74vh;
  place-items: center;
  padding: 30px 16px;
}

.admin-login form {
  display: grid;
  gap: 16px;
  width: min(100%, 420px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-alert {
  padding: 12px;
  border-radius: var(--radius);
  color: #8a1d1d;
  background: #fff1f1;
}

.admin-success {
  padding: 12px;
  border-radius: var(--radius);
  color: #0d7a4f;
  background: #e9f8f1;
}

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

.settings-note {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(33, 142, 255, 0.18);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(33, 142, 255, 0.06);
}

.settings-note strong {
  color: var(--navy);
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.admin-kpis article {
  padding: 24px;
}

.admin-kpis span {
  color: var(--navy);
  font-size: 34px;
  font-weight: 850;
}

.admin-panel {
  padding: 24px;
  margin-bottom: 22px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--blue);
  font-size: 13px;
}

.status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--blue);
  background: #eaf4ff;
  font-size: 13px;
}

.lead-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.inline-form {
  display: flex;
  align-items: end;
  gap: 12px;
}

.note {
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface);
}

.partner-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 24px, 980px);
  margin: 12px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(9, 36, 61, 0.09);
  backdrop-filter: blur(18px);
}

.partner-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.partner-shell {
  width: min(100% - 24px, 980px);
  margin: 26px auto 58px;
}

.partner-login {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.partner-login form {
  display: grid;
  gap: 16px;
  width: min(100%, 430px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.partner-hero {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, rgba(9, 36, 61, 0.94), rgba(18, 59, 99, 0.9)), var(--navy);
  box-shadow: 0 24px 70px rgba(9, 36, 61, 0.18);
}

.partner-hero .eyebrow,
.partner-hero h1,
.partner-hero p {
  color: var(--white);
}

.partner-hero h1 {
  margin-bottom: 8px;
  font-size: clamp(34px, 7vw, 52px);
}

.partner-main-cta {
  width: 100%;
  margin-top: 20px;
  min-height: 58px;
  font-size: 16px;
}

.partner-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0;
}

.partner-kpis article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(9, 36, 61, 0.06);
}

.partner-kpis span {
  display: block;
  color: var(--navy);
  font-size: 30px;
  font-weight: 880;
  overflow-wrap: anywhere;
}

.partner-kpis p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.partner-actions,
.partner-list {
  display: grid;
  gap: 12px;
}

.partner-actions a,
.partner-lead-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(9, 36, 61, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.partner-actions a:hover,
.partner-lead-card:hover {
  transform: translateY(-2px);
  border-color: #bfd8ee;
  box-shadow: 0 20px 50px rgba(9, 36, 61, 0.1);
}

.commission-list {
  display: grid;
  gap: 16px;
}

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

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

.commission-summary h2 {
  margin: 10px 0 6px;
  color: var(--navy);
  font-size: clamp(22px, 3vw, 30px);
}

.commission-summary p,
.commission-meta span,
.commission-meta small,
.commission-note {
  color: var(--muted);
}

.commission-meta {
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 14px;
  border: 1px solid rgba(206, 220, 232, 0.82);
  border-radius: 12px;
  background: #f8fbfe;
}

.commission-meta strong {
  color: var(--navy);
}

.commission-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.commission-form .full {
  grid-column: 1 / -1;
}

.commission-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.commission-values span {
  display: grid;
  gap: 3px;
  padding: 14px;
  border: 1px solid rgba(206, 220, 232, 0.82);
  border-radius: 12px;
  color: var(--muted);
  background: #ffffff;
}

.commission-values strong {
  color: var(--navy);
  font-size: 20px;
}

.commission-status-due {
  color: #8a5b00;
  background: #fff4d8;
}

.commission-status-paid {
  color: #13734c;
  background: #e5f8ee;
}

.commission-status-cancelled {
  color: #8a2531;
  background: #ffe8eb;
}

.partner-lead-card strong {
  color: var(--navy);
  font-size: 20px;
}

.partner-lead-card span:not(.status),
.partner-lead-card small {
  color: var(--muted);
}

.partner-form-head {
  margin-bottom: 18px;
}

.partner-form-head h1,
.partner-shell > .app-title h1,
.partner-shell > .panel-heading.app-title h1 {
  color: var(--white);
  text-shadow: 0 10px 30px rgba(2, 15, 29, 0.26);
}

.partner-form-head p,
.partner-shell > .app-title p,
.partner-shell > .panel-heading.app-title p,
.partner-shell > .app-title .eyebrow,
.partner-shell > .panel-heading.app-title .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.partner-shell > .panel-heading.app-title a:not(.button) {
  color: var(--white);
}

.partner-fast-form,
.partner-form {
  display: grid;
  gap: 18px;
}

.check-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-panel legend {
  padding: 0 8px;
  color: var(--blue);
  font-weight: 820;
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
  }

  .site-nav.open {
    display: flex;
  }

  .public-body .site-nav {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(7, 27, 47, 0.96);
    box-shadow: 0 24px 80px rgba(2, 15, 29, 0.28);
  }

  .nav-toggle {
    display: block;
  }

  .public-body .nav-toggle {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
  }

  .public-body .nav-toggle span {
    background: var(--white);
  }

  .partner-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .editorial,
  .lead-section,
  .pro-section,
  .lead-detail {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 48px;
  }

  .lead-intro {
    position: static;
  }

  .confidence-strip,
  .steps,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .support-grid,
  .sector-grid,
  .local-link-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header,
  .admin-header,
  .hero,
  .content-band,
  .editorial,
  .support-section,
  .pro-section,
  .faq-section,
  .page-hero,
  .confirmation,
  .admin-main {
    width: min(100% - 24px, var(--max));
  }

  .hero {
    gap: 28px;
    padding-top: 24px;
  }

  .hero-actions,
  .private-access,
  .form-actions,
  .inline-form {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .project-selector {
    position: static;
    border-radius: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .platform-status {
    position: static;
    max-width: none;
    margin: 14px;
  }

  .hero-panel img {
    aspect-ratio: 1 / 0.76;
  }

  .services-section,
  .lead-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .service-grid,
  .expertise-layout,
  .legal-grid,
  .choice-grid,
  .project-search-card label > span,
  .conditional-fields,
  .field-grid,
  .admin-kpis,
  .partner-kpis,
  .support-grid,
  .sector-grid,
  .local-link-grid,
  .comparison-grid,
  .check-panel {
    grid-template-columns: 1fr;
  }

  .partner-header nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .partner-header nav a {
    min-height: 42px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
    background: var(--white);
  }

  .lead-tunnel {
    padding: 20px;
  }

  .site-footer,
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

/* Expertora application design system */
:root {
  --expertora-app-bg: #071b2f;
  --expertora-app-bg-2: #0b2741;
  --expertora-app-surface: rgba(255, 255, 255, 0.96);
  --expertora-app-surface-dark: rgba(13, 38, 61, 0.88);
  --expertora-app-line: rgba(192, 215, 234, 0.22);
  --expertora-app-glow: 0 24px 80px rgba(0, 163, 255, 0.18);
  --expertora-app-shadow: 0 28px 80px rgba(2, 15, 29, 0.22);
}

.app-body,
.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 4%, rgba(23, 139, 255, 0.22), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(24, 166, 106, 0.11), transparent 26%),
    linear-gradient(145deg, var(--expertora-app-bg), #09243d 48%, #f4f8fb 48.2%, #f6f8fb);
}

.admin-header {
  width: min(100% - 28px, 1200px);
  margin-top: 16px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(8, 28, 48, 0.86);
  box-shadow: var(--expertora-app-glow);
}

.admin-header .brand,
.admin-header nav a {
  color: var(--white);
}

.admin-header .brand-text small {
  color: rgba(255, 255, 255, 0.62);
}

.admin-main {
  width: min(100% - 28px, 1200px);
}

.admin-main.app-main {
  width: auto;
  max-width: none;
  margin: 0;
}

.admin-main.app-main > * {
  width: min(100%, 1120px);
  margin-right: auto;
  margin-left: auto;
}

.app-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.app-title h1 {
  margin-bottom: 6px;
  color: var(--navy);
}

.admin-main > .admin-title h1,
.admin-main > .app-title h1,
.admin-main > .admin-title p,
.admin-main > .app-title p,
.admin-main > .admin-title .eyebrow,
.admin-main > .app-title .eyebrow {
  color: var(--white);
}

.admin-main > .admin-title h1,
.admin-main > .app-title h1 {
  text-shadow: 0 10px 30px rgba(2, 15, 29, 0.24);
}

.admin-main > .admin-title p,
.admin-main > .app-title p,
.admin-main > .admin-title .eyebrow,
.admin-main > .app-title .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.app-card,
.admin-panel,
.directory-card {
  border: 1px solid rgba(206, 220, 232, 0.72);
  background: var(--expertora-app-surface);
  box-shadow: var(--expertora-app-shadow);
}

.admin-kpis article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(206, 220, 232, 0.72);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--expertora-app-shadow);
}

.admin-kpis article::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(23, 139, 255, 0.08);
}

.admin-kpis small {
  display: inline-grid;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: #eaf4ff;
  font-weight: 850;
}

.admin-table th {
  color: #536476;
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table tbody tr {
  transition: background 160ms ease;
}

.admin-table tbody tr:hover {
  background: #f7fbff;
}

.table-action {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--blue);
  background: #eaf4ff;
  font-weight: 820;
}

.sender-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.sender-cell span:not(.mini-logo) {
  display: grid;
  gap: 2px;
}

.sender-cell strong {
  color: var(--navy);
  font-size: 14px;
}

.sender-cell small {
  color: var(--muted);
  font-size: 12px;
}

.admin-crm-hero {
  width: min(100%, 1120px);
}

.hero-sender {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
}

.hero-sender strong {
  color: var(--white);
}

.crm-score {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.crm-score strong {
  color: var(--white);
  font-size: 28px;
}

.crm-score small {
  color: rgba(255, 255, 255, 0.7);
  text-transform: capitalize;
}

.admin-actions-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.rule-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.rule-list .note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbfe;
}

.rule-list .note strong {
  color: var(--navy);
}

.rule-list .note span {
  color: var(--blue);
  font-weight: 820;
}

.partner-login {
  position: relative;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 470px);
  gap: 42px;
  min-height: 100vh;
  padding: 42px;
  background:
    radial-gradient(circle at 28% 20%, rgba(23, 139, 255, 0.28), transparent 30%),
    radial-gradient(circle at 80% 78%, rgba(24, 166, 106, 0.12), transparent 28%),
    linear-gradient(135deg, #061628, #09243d 58%, #0f385c);
  overflow: hidden;
}

.partner-login::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  pointer-events: none;
}

.login-story,
.login-card {
  position: relative;
  z-index: 1;
}

.login-story {
  max-width: 720px;
  color: var(--white);
}

.partner-login-brand {
  margin-bottom: 86px;
  color: var(--white);
}

.partner-login-brand .brand-text small {
  color: rgba(255, 255, 255, 0.68);
}

.login-story h1 {
  max-width: 620px;
  color: var(--white);
  font-size: clamp(46px, 7vw, 78px);
}

.login-story p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 20px;
}

.login-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.login-proof span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
}

.partner-login .login-card {
  display: grid;
  gap: 16px;
  width: 100%;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(20px);
}

.login-card h2 {
  margin-bottom: 0;
  font-size: 34px;
}

.login-help {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.login-help a {
  color: var(--blue);
  font-weight: 800;
}

.app-sidebar {
  position: fixed;
  inset: 18px auto 18px 18px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: 272px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(7, 27, 47, 0.92);
  box-shadow: var(--expertora-app-glow);
  backdrop-filter: blur(20px);
}

.app-sidebar .brand,
.app-sidebar .brand-text small {
  color: var(--white);
}

.app-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.app-sidebar nav a,
.logout-link {
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.72);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.app-sidebar nav a:hover,
.app-sidebar nav a.active {
  color: var(--white);
  border-color: rgba(23, 139, 255, 0.28);
  background: rgba(23, 139, 255, 0.16);
  transform: translateX(2px);
}

.logout-link {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.58);
}

.app-mobilebar {
  display: none;
}

.app-mobiletabs {
  display: none;
}

.app-main {
  min-height: 100vh;
  padding: 18px 18px 54px 308px;
}

.partner-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.partner-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 20px;
  padding: 34px;
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(7, 27, 47, 0.96), rgba(18, 59, 99, 0.94)),
    var(--navy);
}

.partner-hero .partner-main-cta {
  grid-column: 1 / -1;
  max-width: 360px;
}

.partner-kpis {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 20px 0;
}

.partner-kpis article {
  position: relative;
  overflow: hidden;
  padding: 20px;
  background: rgba(255, 255, 255, 0.96);
}

.partner-kpis article::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(23, 139, 255, 0.08);
}

.partner-kpis small {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--accent);
  background: #eaf4ff;
  font-weight: 850;
}

.dashboard-grid,
.lead-detail,
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.app-card {
  padding: 24px;
  border-radius: 14px;
}

.partner-profile-form,
.password-form {
  display: grid;
  gap: 18px;
}

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

.success-alert {
  color: #0d7a4f;
  background: #e9f8f1;
}

.availability {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  padding: 8px 11px;
  border-radius: 999px;
  color: #0d7a4f;
  background: rgba(32, 181, 124, 0.14);
  font-size: 13px;
  font-weight: 850;
}

.availability-busy {
  color: #97620c;
  background: rgba(255, 181, 71, 0.2);
}

.availability-paused {
  color: #8a1d1d;
  background: rgba(255, 104, 104, 0.16);
}

.availability-note {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
}

input[readonly] {
  color: #6a7785;
  background: #eef4f8;
  cursor: not-allowed;
}

label small {
  color: var(--muted);
  font-weight: 560;
}

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

.activity-list a,
.partner-lead-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(206, 220, 232, 0.8);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(9, 36, 61, 0.06);
}

.activity-list strong,
.partner-lead-card strong {
  color: var(--navy);
}

.partner-actions {
  margin-top: 18px;
}

.partner-actions a {
  color: var(--navy);
  font-weight: 780;
}

.partner-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
}

.partner-directory {
  display: grid;
  gap: 18px;
}

.directory-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  padding: 22px;
  border-radius: 14px;
}

.directory-card h2 {
  margin-bottom: 4px;
  font-size: 22px;
}

.directory-card p,
.directory-card small,
.directory-meta span {
  color: var(--muted);
}

.directory-meta {
  display: grid;
  text-align: center;
}

.directory-meta strong {
  color: var(--navy);
  font-size: 28px;
}

.partner-logo,
.mini-logo,
.directory-logo,
.profile-logo,
.hero-logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--accent));
  font-weight: 900;
}

.directory-logo {
  width: 96px;
  height: 96px;
  font-size: 24px;
  border-color: rgba(206, 220, 232, 0.86);
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 14px 34px rgba(9, 36, 61, 0.08);
}

.profile-logo,
.hero-logo {
  width: 116px;
  height: 116px;
  font-size: 34px;
}

.mini-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 14px;
}

.has-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100% - 18px);
  max-height: calc(100% - 18px);
  object-fit: contain;
  object-position: center;
  background: var(--white);
}

.directory-logo.has-image img {
  max-width: calc(100% - 20px);
  max-height: calc(100% - 20px);
}

.upload-zone {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(206, 220, 232, 0.8);
  border-radius: 14px;
  background: #f8fbfe;
}

.form-chapter {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 8px;
}

.form-chapter span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--accent));
  font-weight: 880;
}

.form-chapter h2 {
  margin-bottom: 2px;
  font-size: 22px;
}

.form-chapter p {
  margin-bottom: 0;
  color: var(--muted);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.segmented label,
.need-grid label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px;
  border: 1px solid rgba(206, 220, 232, 0.86);
  border-radius: 12px;
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(9, 36, 61, 0.04);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.segmented label:hover,
.need-grid label:hover {
  border-color: rgba(23, 139, 255, 0.42);
  background: #f6fbff;
  box-shadow: 0 16px 34px rgba(9, 36, 61, 0.08);
  transform: translateY(-1px);
}

.segmented label {
  grid-template-columns: auto 1fr;
}

.segmented label:has(input:checked),
.need-grid label:has(input:checked) {
  border-color: rgba(23, 139, 255, 0.72);
  background: linear-gradient(180deg, #f5fbff, #ffffff);
  box-shadow: 0 18px 42px rgba(23, 139, 255, 0.14);
}

.segmented input,
.need-grid input {
  accent-color: var(--accent);
}

.need-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.need-grid span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: var(--accent);
  background: #eaf4ff;
  font-weight: 880;
}

.need-grid .need-icon {
  width: 46px;
  height: 46px;
  color: var(--blue-dark);
  background: linear-gradient(180deg, #f0f7ff, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(33, 142, 255, 0.12);
}

.need-grid .need-icon svg {
  width: 27px;
  height: 27px;
}

.need-grid label {
  grid-template-columns: auto auto minmax(0, 1fr);
  min-height: 82px;
  font-size: 15px;
  line-height: 1.25;
}

.need-grid label strong {
  color: var(--navy);
  font-size: 16px;
}

.need-grid label:has(input:checked) .need-icon {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--accent));
  box-shadow: 0 12px 28px rgba(23, 139, 255, 0.24);
}

.crm-hero,
.profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 28px;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(7, 27, 47, 0.96), rgba(18, 59, 99, 0.92));
  box-shadow: var(--expertora-app-glow);
}

.crm-hero h1,
.crm-hero p,
.profile-hero h1,
.profile-hero p,
.crm-hero .eyebrow,
.profile-hero .eyebrow {
  color: var(--white);
}

.info-grid {
  display: grid;
  gap: 12px;
}

.info-grid div {
  display: grid;
  gap: 2px;
  padding: 13px;
  border-radius: 10px;
  background: #f6f8fb;
}

.info-grid span,
.network-row span {
  color: var(--muted);
  font-size: 13px;
}

.answer-list,
.source-list {
  display: grid;
  gap: 12px;
}

.answer-item,
.source-row {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(206, 220, 232, 0.72);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 254, 0.98)),
    #f8fbfe;
}

.answer-item h3 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
}

.answer-item p,
.source-empty {
  margin: 0;
  color: var(--ink);
}

.answer-details {
  display: grid;
  gap: 0;
  margin: 0;
}

.answer-details div {
  display: grid;
  grid-template-columns: minmax(150px, 0.78fr) minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(206, 220, 232, 0.72);
}

.answer-details div:first-child {
  border-top: 0;
}

.answer-details dt {
  color: var(--muted);
  font-size: 13px;
}

.answer-details dd {
  min-width: 0;
  margin: 0;
  color: var(--navy);
  font-weight: 780;
  overflow-wrap: anywhere;
}

.source-row span {
  color: var(--muted);
  font-size: 13px;
}

.source-row strong,
.source-row a {
  min-width: 0;
  color: var(--navy);
  font-weight: 780;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.utm-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.utm-list span {
  display: inline-grid;
  gap: 2px;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: #eaf4ff;
  font-size: 12px;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.utm-list strong {
  color: var(--navy);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.need-pill,
.pill-list span {
  display: inline-flex;
  margin: 0 8px 8px 0;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: #eaf4ff;
  font-weight: 780;
}

.follow-form,
.stack-form {
  display: grid;
  gap: 12px;
}

.lost-reason {
  padding: 12px;
  border-radius: var(--radius);
  color: #8a1d1d;
  background: #fff1f1;
  font-weight: 760;
}

.compact-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.compact-list p,
.message-thread p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(206, 220, 232, 0.76);
  border-radius: 12px;
  background: #f8fbfe;
  color: var(--ink);
}

.compact-list strong,
.message-thread strong {
  color: var(--navy);
  font-size: 13px;
}

.compact-list small,
.message-thread small {
  color: var(--muted);
  font-size: 12px;
}

.message-thread {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.message-thread .admin {
  border-color: rgba(33, 142, 255, 0.24);
  background: #eef7ff;
}

.message-thread .partner {
  border-color: rgba(24, 166, 106, 0.2);
  background: #effaf5;
}

.network-row {
  display: grid;
  grid-template-columns: 1fr auto 1.6fr;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.timeline {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.timeline p {
  position: relative;
  margin: 0;
  padding-left: 22px;
}

.timeline p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline small {
  display: block;
  color: var(--muted);
}

.status {
  border: 1px solid rgba(23, 139, 255, 0.12);
  color: var(--blue);
  background: #eaf4ff;
}

.status-gagne,
.status-active {
  color: #0d7a4f;
  background: #e9f8f1;
}

.status-perdu,
.status-annule,
.status-inactive {
  color: #8a1d1d;
  background: #fff1f1;
}

.status-devis_envoye,
.status-rendez_vous {
  color: #7a4f00;
  background: #fff8e8;
}

.success-panel {
  display: grid;
  justify-items: center;
  max-width: 760px;
  margin: 28px auto;
  padding: 38px;
  border: 1px solid rgba(206, 220, 232, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--expertora-app-shadow);
  text-align: center;
}

.success-panel .success-mark {
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  color: #0d7a4f;
  background: #e9f8f1;
}

.success-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 22px;
}

.success-summary span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--blue);
  background: #eaf4ff;
  font-weight: 780;
}

.assigned-box {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(100%, 360px);
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbfe;
}

.assigned-box small {
  color: var(--muted);
}

@media (max-width: 1040px) {
  .app-sidebar {
    display: none;
  }

  .app-mobilebar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: min(100% - 24px, 980px);
    margin: 12px auto 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(7, 27, 47, 0.92);
    box-shadow: var(--expertora-app-glow);
  }

  .app-mobilebar .brand,
  .app-mobilebar .brand-text small {
    color: var(--white);
  }

  .app-mobiletabs {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 35;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    gap: 6px;
    max-width: 620px;
    margin: 0 auto;
    padding: 8px;
    border: 1px solid rgba(206, 220, 232, 0.72);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 70px rgba(9, 36, 61, 0.18);
    backdrop-filter: blur(18px);
  }

  .app-mobiletabs a {
    display: grid;
    min-height: 42px;
    place-items: center;
    border-radius: 11px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

  .app-mobiletabs a.active {
    color: var(--blue);
    background: #eaf4ff;
  }

  .app-mobiletabs a.primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--accent));
    font-size: 22px;
    line-height: 1;
  }

  .app-main {
    padding: 18px 12px 92px;
  }

  .partner-kpis,
  .dashboard-grid,
  .lead-detail,
  .profile-grid,
  .partner-filters,
  .commission-form,
  .commission-values {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .partner-login {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 22px;
  }

  .partner-login-brand {
    margin-bottom: 34px;
  }

  .login-story h1 {
    font-size: 42px;
  }

  .partner-login .login-card {
    padding: 24px;
  }

  .partner-hero,
  .crm-hero,
  .profile-hero,
  .app-title,
  .panel-heading,
  .commission-summary,
  .activity-list a,
  .partner-lead-card,
  .directory-card {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .partner-kpis,
  .dashboard-grid,
  .lead-detail,
  .profile-grid,
  .partner-filters,
  .commission-form,
  .commission-values,
  .need-grid,
  .segmented,
  .upload-zone,
  .network-row,
  .answer-details div {
    grid-template-columns: 1fr;
  }

  .hero-logo,
  .profile-logo {
    width: 92px;
    height: 92px;
  }
}
