:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef4fb;
  --navy: #071427;
  --navy-2: #0e203c;
  --blue: #2563eb;
  --green: #19b56b;
  --text: #132033;
  --muted: #64748b;
  --line: #d9e2ef;
  --shadow: 0 22px 60px rgba(7, 20, 39, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(244, 247, 251, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: block;
  width: min(178px, 42vw);
  height: auto;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 10px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--navy);
  font-size: 18px;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: #263a56;
}

.nav-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-social img,
.social-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 auto;
}

.nav-login {
  padding: 10px 14px;
  color: white;
  background: var(--navy);
  border-radius: var(--radius);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  padding: 9px 12px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
  gap: 48px;
  align-items: center;
  padding: 72px clamp(18px, 5vw, 80px);
  background:
    radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.18), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
}

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

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

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  color: var(--navy);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

h3 {
  color: var(--navy);
  font-size: 22px;
}

.hero-text {
  max-width: 720px;
  color: #40526b;
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 28px;
}

.btn,
.pricing-grid button,
.checkout-card button,
.license-row button,
.contact-card button,
.gateway-options button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
}

.btn.primary,
.pricing-grid button,
.checkout-card button,
.contact-card button {
  color: white;
  background: linear-gradient(135deg, var(--blue), #1d4ed8);
}

.btn.secondary {
  color: var(--navy);
  background: white;
  border: 1px solid var(--line);
}

.trust-row {
  margin-top: 28px;
}

.trust-row span {
  padding: 9px 12px;
  color: #193250;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.product-panel {
  min-height: 520px;
  padding: 18px;
  color: white;
  background: linear-gradient(145deg, var(--navy), #102a50);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px 20px;
}

.panel-top span {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.34);
  border-radius: 50%;
}

.panel-top strong {
  margin-left: auto;
  font-size: 14px;
  opacity: 0.82;
}

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

.panel-grid article,
.checkout-card {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.panel-grid article {
  min-height: 130px;
  padding: 18px;
}

.panel-grid small,
.panel-grid em {
  display: block;
  color: #b8c7dc;
  font-style: normal;
}

.panel-grid strong {
  display: block;
  margin: 13px 0 8px;
  font-size: 30px;
}

.panel-grid em {
  color: #74f0b0;
}

.checkout-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
}

.checkout-card p {
  margin: 6px 0 0;
  color: #cbd6e6;
}

.checkout-card button {
  flex: 0 0 auto;
  background: var(--green);
}

.section {
  padding: 74px clamp(18px, 5vw, 80px);
}

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

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.product-grid,
.pricing-grid,
.automation-grid,
.roadmap-grid,
.integration-grid,
.value-grid,
.feature-list,
.faq-grid,
.legal-grid,
.portal-ready {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card,
.pricing-grid article,
.automation-grid article,
.roadmap-grid article,
.integration-grid article,
.value-grid article,
.feature-list article,
.faq-grid article,
.legal-grid article,
.portal-ready article,
.contact-card,
.gateway-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(7, 20, 39, 0.05);
}

.product-card {
  min-height: 248px;
  padding: 24px;
}

.compact {
  padding-top: 54px;
  padding-bottom: 54px;
  background: #f8fbff;
}

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

.automation-grid article {
  min-height: 178px;
  padding: 22px;
}

.automation-grid span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 50%;
  font-weight: 900;
}

.automation-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 18px;
}

.automation-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.roadmap {
  background: #ffffff;
}

.value-section {
  background: #ffffff;
}

.value-grid article {
  min-height: 230px;
  padding: 24px;
  border-top: 4px solid var(--green);
}

.value-grid h3,
.faq-grid h3,
.legal-grid h3 {
  margin-bottom: 10px;
}

.value-grid p,
.feature-list span,
.faq-grid p,
.legal-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.includes-section {
  background: #f8fbff;
}

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

.feature-list article {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-left: 4px solid var(--blue);
}

.feature-list strong {
  color: var(--navy);
  font-size: 18px;
}

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

.roadmap-grid article {
  min-height: 260px;
  padding: 24px;
  border-top: 4px solid var(--blue);
}

.roadmap-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  color: #075e39;
  background: #dffbea;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.roadmap-grid h3,
.integration-grid h3 {
  margin-bottom: 10px;
}

.roadmap-grid p,
.integration-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.roadmap-grid strong {
  display: inline-flex;
  margin-top: 10px;
  color: var(--navy);
  font-size: 13px;
}

.product-card.featured {
  background: linear-gradient(145deg, #ffffff, #eef6ff);
  border-color: rgba(37, 99, 235, 0.35);
}

.product-card p,
.pricing-grid li,
.gateway-box li,
.split p {
  color: var(--muted);
  line-height: 1.6;
}

.product-card a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 800;
}

.status {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.available {
  color: #075e39;
  background: #dffbea;
}

.soon {
  color: #284669;
  background: #e9f0f8;
}

.dark {
  color: white;
  background: var(--navy);
}

.dark h2 {
  color: white;
}

.dark .section-heading p:not(.eyebrow) {
  color: #bfcee2;
}

.integrations {
  background: #f8fbff;
}

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

.integration-grid article {
  min-height: 210px;
  padding: 24px;
}

.payment-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.payment-flow {
  display: grid;
  gap: 12px;
}

.payment-flow div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 6px 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.payment-flow span {
  grid-row: span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: white;
  background: var(--blue);
  border-radius: 50%;
  font-weight: 900;
}

.payment-flow p {
  margin: 0;
  color: #bfcee2;
}

.gateway-box {
  padding: 24px;
}

.gateway-box h3 {
  color: var(--navy);
}

.gateway-box ul {
  padding-left: 18px;
}

.note {
  color: #46637f;
  background: #f0f7ff;
  border: 1px solid #cfe0f3;
  border-radius: var(--radius);
  padding: 12px;
}

.portal-preview {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 430px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.portal-preview aside {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  color: white;
  background: var(--navy);
}

.portal-preview aside strong {
  margin-bottom: 18px;
}

.portal-preview aside a {
  padding: 11px 12px;
  color: #bfd0e7;
  border-radius: var(--radius);
}

.portal-preview aside a.active {
  color: white;
  background: var(--blue);
}

.portal-main {
  padding: 24px;
  background: #f8fbff;
}

.portal-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.portal-cards article,
.license-row {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.portal-cards article {
  padding: 18px;
}

.portal-cards span,
.portal-cards small {
  display: block;
  color: var(--muted);
}

.portal-cards strong {
  display: block;
  margin: 8px 0;
  color: var(--navy);
  font-size: 22px;
}

.license-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
}

.license-row p {
  margin: 6px 0 0;
  color: var(--muted);
}

.license-row button {
  color: var(--navy);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.portal-ready {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.portal-ready article {
  padding: 18px;
}

.portal-ready strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
}

.portal-ready p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.pricing-grid article {
  padding: 28px;
}

.featured-price {
  border-color: rgba(25, 181, 107, 0.55) !important;
  transform: translateY(-8px);
}

.price {
  color: var(--navy);
  font-size: 34px;
  font-weight: 900;
}

.pricing-grid ul {
  padding-left: 18px;
  min-height: 124px;
}

.pricing-grid button {
  width: 100%;
}

.split {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 32px;
  align-items: start;
}

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

.whatsapp-inline {
  color: white;
  background: var(--green);
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.contact-card label {
  display: grid;
  gap: 6px;
  color: #233750;
  font-weight: 800;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.contact-card textarea {
  min-height: 120px;
  resize: vertical;
}

.form-actions,
.checkout-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkout-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.checkout-form label {
  display: grid;
  gap: 6px;
  color: #233750;
  font-size: 13px;
  font-weight: 800;
}

.checkout-form label:last-child {
  grid-column: 1 / -1;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
}

.checkout-form textarea {
  min-height: 86px;
  resize: vertical;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 80px) 104px;
  color: #bfcee2;
  background: var(--navy);
}

.footer-logo {
  display: block;
  width: 180px;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 8px 12px;
  background: white;
  border-radius: 10px;
}

.footer strong {
  display: block;
  margin-bottom: 8px;
  color: white;
  font-size: 22px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.footer-legal a {
  color: #dce8f7;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 520px;
}

.social-links span,
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: #dce8f7;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.social-links .social-icon {
  width: 22px;
  height: 22px;
  padding: 3px;
  background: white;
  border-radius: 999px;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 2px 10px;
  min-width: 218px;
  padding: 12px 16px 12px 12px;
  color: white;
  background: linear-gradient(135deg, #16a34a, var(--green));
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(7, 20, 39, 0.24);
}

.whatsapp-icon {
  grid-row: span 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: white;
  border-radius: 999px;
  overflow: hidden;
}

.whatsapp-icon img {
  width: 26px;
  height: 26px;
  display: block;
}

.whatsapp-label {
  font-size: 11px;
  font-weight: 800;
  opacity: 0.84;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.whatsapp-float strong {
  font-size: 14px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 20, 39, 0.68);
}

.modal[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(620px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  padding: 28px;
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  background: #edf2f8;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
}

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

.gateway-options button {
  color: white;
  background: var(--navy);
}

.gateway-options button.active {
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.checkout-actions {
  margin: 4px 0 14px;
}

.faq-section {
  background: #ffffff;
}

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

.faq-grid article,
.legal-grid article {
  padding: 22px;
}

.legal-section {
  background: #f8fbff;
}

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

.legal-grid article {
  border-top: 4px solid var(--navy);
}

@media (max-width: 980px) {
  .hero,
  .payment-layout,
  .portal-preview,
  .split {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .pricing-grid,
  .automation-grid,
  .roadmap-grid,
  .integration-grid,
  .value-grid,
  .feature-list,
  .faq-grid,
  .legal-grid,
  .portal-ready,
  .portal-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }
}

@media (max-width: 640px) {
  .hero,
  .section {
    padding: 48px 16px;
  }

  .product-grid,
  .pricing-grid,
  .portal-cards,
  .panel-grid,
  .gateway-options,
    .roadmap-grid,
    .integration-grid,
    .value-grid,
    .feature-list,
    .faq-grid,
    .legal-grid,
    .portal-ready {
    grid-template-columns: 1fr;
  }

  .automation-grid,
  .checkout-form,
  .form-actions,
  .checkout-actions {
    grid-template-columns: 1fr;
  }

  .checkout-card,
  .license-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer {
    display: grid;
  }

  .social-links {
    justify-content: flex-start;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    grid-template-columns: 34px;
    min-width: 0;
    padding: 10px;
  }

  .whatsapp-label,
  .whatsapp-float strong {
    display: none;
  }

  .product-panel {
    min-height: auto;
  }
}

.simple-page,
.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 34%),
    #f4f7fb;
}

.simple-card,
.admin-login {
  width: min(560px, calc(100% - 32px));
  margin: 72px auto;
  padding: 32px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.simple-card img,
.admin-login img,
.admin-header img {
  width: 190px;
  max-width: 100%;
  margin-bottom: 18px;
}

.simple-card h1,
.admin-login h1 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 38px;
  line-height: 1.05;
}

.simple-card p,
.admin-login p {
  color: var(--muted);
}

.admin-login form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.admin-login label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
}

.admin-login input {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  font: inherit;
}

.admin-error {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 10px 12px;
}

.admin-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px clamp(18px, 4vw, 52px);
  background: white;
  border-bottom: 1px solid var(--line);
}

.admin-header img {
  margin: 0;
}

.admin-header h1 {
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 30px;
}

.admin-header p {
  margin: 0;
  color: var(--muted);
}

.admin-header .btn {
  margin-left: auto;
}

.admin-module-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px;
  background: #eef3f9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-module-nav a {
  padding: 8px 11px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
}

.admin-module-nav a.active,
.admin-module-nav a:hover {
  color: var(--navy);
  background: white;
}

.admin-module-nav + form .btn {
  margin-left: 0;
}

.admin-panel {
  padding: 26px clamp(18px, 4vw, 52px) 60px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-metrics article {
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-metrics span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-metrics strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 34px;
}

.admin-table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(7, 20, 39, 0.05);
}

.admin-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  position: sticky;
  top: 0;
  color: white;
  background: var(--navy);
}

.admin-status {
  display: inline-flex;
  padding: 5px 8px;
  color: #075e39;
  background: #dffbea;
  border-radius: 999px;
  font-weight: 900;
}

.admin-status.bad {
  color: #991b1b;
  background: #fee2e2;
}

.admin-table tr.invalid-lead td {
  background: #fff7ed;
}

.inline-admin-form {
  display: inline-block;
  margin: 0 4px 4px 0;
}

.admin-delete {
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: #dc2626;
  font-weight: 900;
  cursor: pointer;
}

.admin-delete:hover {
  background: #b91c1c;
}

.admin-small {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.admin-small:hover {
  background: #eef4ff;
}

.admin-small.danger {
  color: #991b1b;
  border-color: #fecaca;
  background: #fff1f2;
}

.admin-small.ok {
  color: #065f46;
  border-color: #bbf7d0;
  background: #ecfdf5;
}

.admin-small.view {
  display: inline-flex;
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.admin-note {
  display: inline-block;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.admin-muted {
  color: var(--muted);
  font-size: 12px;
}

.admin-link {
  color: var(--blue);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lead-file {
  margin-top: 22px;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(7, 20, 39, 0.08);
}

.lead-file-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.lead-file-header h2 {
  margin-bottom: 6px;
  font-size: 30px;
}

.lead-file-header p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

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

.lead-file-grid article {
  min-height: 180px;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.lead-file-grid h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

.lead-file-grid dl {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
}

.lead-file-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.lead-file-grid dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--navy);
}

.lead-file-grid p {
  color: #334155;
  line-height: 1.6;
}

.lead-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .admin-header .btn {
    margin-left: 0;
  }

  .admin-module-nav {
    margin-left: 0;
  }

  .lead-file-header {
    display: grid;
  }

  .lead-file-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .admin-table {
    min-width: 1100px;
  }

  .simple-card,
  .admin-login {
    margin: 28px auto;
    padding: 22px;
  }
}
