:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #5e6c68;
  --line: #dbe3df;
  --paper: #fbfcfa;
  --panel: #ffffff;
  --green: #0f7f68;
  --green-dark: #095a4a;
  --gold: #c99731;
  --rose: #b84d5d;
  --shadow: 0 18px 45px rgba(23, 33, 31, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 252, 250, 0.92);
  border-bottom: 1px solid rgba(219, 227, 223, 0.8);
  backdrop-filter: blur(18px);
}

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

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

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

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

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 8px;
}

.main-nav a:hover {
  background: #edf4f1;
  color: var(--ink);
}

.language-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.language-switcher button {
  min-width: 38px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.language-switcher button.active {
  background: var(--green);
  color: white;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 750;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-cta,
.button.primary {
  color: white;
  background: var(--green);
  box-shadow: 0 12px 24px rgba(15, 127, 104, 0.22);
}

.button.secondary {
  color: var(--ink);
  background: #eef4f1;
}

.button.dark {
  color: white;
  background: #17211f;
}

.button.danger {
  color: white;
  background: var(--rose);
}

.button.full {
  width: 100%;
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: clamp(650px, 86vh, 860px);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 110px clamp(20px, 7vw, 92px) 72px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 18, 18, 0.88), rgba(7, 18, 18, 0.58) 42%, rgba(7, 18, 18, 0.12) 72%),
    linear-gradient(0deg, rgba(7, 18, 18, 0.55), rgba(7, 18, 18, 0.05) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: white;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  max-width: 720px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
}

.hero-actions .secondary {
  background: rgba(255, 255, 255, 0.16);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 850px;
}

.hero-service-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 16px;
  color: white;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.hero-service-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: rgba(15, 127, 104, 0.92);
}

.service-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero-service-card strong,
.hero-service-card small {
  display: block;
}

.hero-service-card strong {
  font-size: 38px;
  line-height: 1;
}

.hero-service-card small {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
}

.lead-band,
.trust-section,
.advisory-section,
.process-section,
.checklist-section,
.calculator-section,
.knowledge-section,
.form-section,
.faq-section,
.agent-section,
.legal-section,
.admin-section {
  padding: 74px clamp(18px, 5vw, 72px);
}

.lead-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1.2fr);
  gap: 34px;
  align-items: center;
  background: #17211f;
  color: white;
}

.lead-band h2,
.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.lead-band p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.7;
}

.trust-section {
  background: white;
}

.advisory-section,
.faq-section {
  background: #ffffff;
}

.process-section {
  background: #17211f;
  color: white;
}

.checklist-section {
  background: #edf4f1;
}

.calculator-section {
  background: #ffffff;
}

.knowledge-section {
  background: #edf4f1;
}

.section-heading {
  max-width: 980px;
  margin-bottom: 26px;
}

.advisory-section .section-heading,
.process-section .section-heading,
.checklist-section .section-heading,
.faq-section .section-heading {
  max-width: 1040px;
}

.advisory-section .section-heading h2,
.process-section .section-heading h2,
.checklist-section .section-heading h2,
.faq-section .section-heading h2 {
  max-width: 980px;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.16;
}

.advisory-section,
.process-section,
.checklist-section,
.faq-section {
  padding-top: 58px;
  padding-bottom: 58px;
}

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

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

.portal-card {
  display: grid;
  justify-items: center;
  text-align: center;
  align-content: start;
  min-height: 310px;
  padding: 30px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.portal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 127, 104, 0.35);
  box-shadow: var(--shadow);
}

.portal-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin-bottom: 20px;
  color: #c94035;
}

.portal-icon svg {
  width: 78px;
  height: 78px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

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

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

.trust-grid article,
.advisory-grid article,
.checklist-grid article {
  min-height: 190px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
}

.advisory-grid article,
.checklist-grid article {
  background: white;
}

.trust-grid p,
.advisory-grid p,
.checklist-grid p,
.section-heading p {
  color: var(--muted);
  line-height: 1.65;
}

.advisory-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: white;
  background: var(--green);
  font-weight: 900;
}

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

.process-grid article {
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.process-grid p {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.65;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 920px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  font-size: 18px;
  font-weight: 850;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.7;
}

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

.calculator-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
}

.calculator-card h3 {
  margin-bottom: 6px;
}

.calculator-card label span {
  display: block;
}

.calculator-card output {
  display: grid;
  gap: 6px;
  min-height: 70px;
  padding: 14px;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.45;
}

.calculator-note {
  max-width: 920px;
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.65;
}

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

.article-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 360px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.article-card span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-card p,
.article-card li {
  color: var(--muted);
  line-height: 1.65;
}

.article-card summary {
  cursor: pointer;
  color: var(--green-dark);
  font-weight: 900;
}

.article-card ul {
  padding-left: 20px;
}

.knowledge-cta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 22px;
  border-radius: 8px;
  background: #17211f;
  color: white;
}

.knowledge-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  cursor: pointer;
  font-weight: 750;
}

.tab-button.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.form-aside,
.lead-form,
.replica-form,
.agent-rental-form,
.admin-toolbar,
.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-aside {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.form-aside h3 {
  font-size: 24px;
}

.form-aside p,
.agent-grid p {
  color: var(--muted);
  line-height: 1.65;
}

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

.mini-list span {
  padding: 12px;
  border-radius: 8px;
  background: #eef4f1;
  color: #25433c;
  font-weight: 700;
}

.lead-form {
  display: none;
  padding: 26px;
}

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

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

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

label {
  display: grid;
  gap: 8px;
  color: #2d3b38;
  font-size: 14px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfdad5;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  outline: none;
}

input,
select {
  min-height: 46px;
  padding: 0 13px;
}

textarea {
  resize: vertical;
  padding: 13px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(15, 127, 104, 0.12);
}

.agent-section {
  background: #edf4f1;
}

.legal-section {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.legal-section.active {
  display: block;
}

.legal-section:nth-of-type(odd) {
  background: #f8faf8;
}

.legal-content {
  position: relative;
  max-width: 920px;
}

.legal-close {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.legal-close:hover {
  color: var(--ink);
}

.legal-content h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.legal-content p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.legal-language {
  display: none;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.legal-language.active {
  display: block;
}

.legal-language:first-of-type {
  border-top: 0;
}

.legal-language h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.agent-grid article {
  min-height: 170px;
  padding: 24px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
}

.replica-form {
  padding: 28px;
}

.agent-apply-link {
  margin-top: 4px;
}

.replica-form h3 {
  font-size: 26px;
}

.agent-signup-page {
  background: #edf4f1;
}

.agent-signup-hero {
  min-height: calc(100vh - 72px);
  padding: 28px clamp(18px, 5vw, 72px) 64px;
  display: grid;
  place-items: start center;
}

.agent-signup-card {
  width: min(1080px, 100%);
  padding: clamp(28px, 5vw, 56px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.agent-program {
  margin-bottom: 42px;
}

.signup-intro {
  max-width: 900px;
  margin-bottom: 28px;
}

.signup-intro h1 {
  color: var(--ink);
  font-size: clamp(38px, 5vw, 58px);
}

.signup-intro p {
  max-width: 740px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.replica-form.standalone {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.admin-section {
  background: #ffffff;
}

.admin-page {
  background: #ffffff;
}

.standalone-admin {
  min-height: calc(100vh - 72px);
}

.admin-dark-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 30%, rgba(111, 34, 190, 0.34), transparent 34%),
    radial-gradient(circle at 85% 10%, rgba(119, 16, 86, 0.3), transparent 34%),
    #07040d;
  color: #f8f5ff;
}

.admin-shell {
  width: min(1820px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 3vw, 44px);
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 42px;
}

.admin-brand-kicker {
  margin: 0 0 16px;
  color: #79ff6f;
  font-size: 20px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-hero h1 {
  max-width: 1000px;
  margin-bottom: 22px;
  color: white;
  font-size: clamp(58px, 7vw, 104px);
}

.admin-hero p {
  max-width: 860px;
  color: #d8cfea;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.7;
}

.admin-logout,
.admin-secondary,
.admin-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 900;
}

.admin-logout,
.admin-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.admin-primary {
  border: 0;
  color: #08060b;
  background: linear-gradient(90deg, #79ff6f, #dfff5c);
  box-shadow: 0 18px 48px rgba(121, 255, 111, 0.2);
}

.admin-top-grid,
.admin-grid-two {
  display: grid;
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

.admin-top-grid {
  grid-template-columns: minmax(340px, 0.76fr) minmax(560px, 1.24fr);
}

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

.admin-panel {
  padding: clamp(26px, 3vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  margin-bottom: 28px;
}

.admin-panel h2 {
  color: white;
  font-size: clamp(34px, 4vw, 56px);
}

.admin-panel h3 {
  color: white;
}

.admin-panel p,
.admin-panel small,
.admin-panel label {
  color: #d8cfea;
}

.admin-panel input,
.admin-panel select {
  min-height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 4, 10, 0.72);
  color: white;
  font-size: 20px;
  font-weight: 850;
}

.admin-panel input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.panel-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-stacked-form {
  display: grid;
  gap: 20px;
}

.admin-settings-panel {
  display: grid;
  gap: 20px;
}

.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(5, 4, 10, 0.42);
  margin-bottom: 28px;
}

.admin-filter-bar label {
  min-width: 220px;
}

.inline-fields {
  display: flex;
  gap: 10px;
}

.inline-fields select {
  min-width: 140px;
}

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

.admin-member-list .admin-card-list {
  grid-template-columns: 1fr;
}

.admin-account-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 26px;
  align-items: start;
}

.admin-account-list {
  grid-template-columns: 1fr;
}

.admin-data-card {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(5, 4, 10, 0.44);
}

.admin-data-card h3 {
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}

.admin-data-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
  margin: 0 0 20px;
}

.admin-data-card dt {
  color: #afa5c3;
  font-weight: 800;
}

.admin-data-card dd {
  margin: 4px 0 0;
  color: #eee8ff;
  overflow-wrap: anywhere;
}

.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-status {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 950;
}

.admin-status.active {
  background: rgba(121, 255, 111, 0.18);
  color: #79ff6f;
}

.admin-status.expiring {
  background: rgba(255, 204, 77, 0.18);
  color: #ffd86b;
}

.admin-status.expired,
.admin-status.unpaid {
  background: rgba(255, 91, 116, 0.18);
  color: #ff8aa0;
}

.admin-pagination {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 26px;
  color: #d8cfea;
}

.admin-checkbox {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
}

.admin-checkbox input {
  width: 24px;
  min-height: 24px;
}

.admin-empty {
  color: #d8cfea;
  font-size: 20px;
  font-weight: 800;
}

.admin-page .metric {
  background: rgba(5, 4, 10, 0.62);
}

.admin-page .table-wrap {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(5, 4, 10, 0.35);
}

.admin-page th {
  color: #d8cfea;
  background: rgba(255, 255, 255, 0.08);
}

.admin-page td {
  color: #eee8ff;
  border-color: rgba(255, 255, 255, 0.12);
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  margin-bottom: 18px;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.subscription-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.agent-rental-form {
  padding: 20px;
}

.agent-rental-form h3 {
  margin-bottom: 18px;
}

.rental-grid {
  grid-template-columns: 1fr;
}

.status-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  font-weight: 800;
}

.status-active {
  color: #0c684f;
  background: #dff4eb;
}

.status-soon {
  color: #8b5b00;
  background: #fff0c9;
}

.status-expired {
  color: #9c2d3c;
  background: #ffe1e6;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metric {
  padding: 18px;
  border-radius: 8px;
  background: #17211f;
  color: white;
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  font-size: 32px;
}

.metric span {
  color: rgba(255, 255, 255, 0.75);
}

.table-wrap {
  overflow: auto;
}

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

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

th {
  color: var(--muted);
  background: #f5f8f6;
}

.whatsapp-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  background: #e7f6ef;
  color: var(--green-dark);
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(380px, calc(100vw - 36px));
  padding: 14px 16px;
  border-radius: 8px;
  color: white;
  background: #17211f;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 180ms ease;
  box-shadow: var(--shadow);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 5vw, 72px);
  background: #111816;
  color: rgba(255, 255, 255, 0.75);
  flex-wrap: wrap;
}

.site-footer strong {
  color: white;
}

.footer-meta,
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover {
  color: white;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: calc(100% - 124px);
    justify-content: flex-start;
    overflow-x: auto;
  }

  .language-switcher {
    order: 4;
  }

  .nav-cta {
    display: none;
  }

  .lead-band,
  .trust-grid,
  .portal-grid,
  .advisory-grid,
  .process-grid,
  .checklist-grid,
  .calculator-grid,
  .article-grid,
  .form-layout,
  .admin-toolbar,
  .subscription-panel,
  .admin-account-layout {
    grid-template-columns: 1fr;
  }

  .form-aside {
    position: static;
  }

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

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }

  .hero {
    min-height: 760px;
    padding-top: 86px;
    align-items: flex-end;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(7, 18, 18, 0.94), rgba(7, 18, 18, 0.58) 58%, rgba(7, 18, 18, 0.14)),
      linear-gradient(90deg, rgba(7, 18, 18, 0.68), rgba(7, 18, 18, 0.18));
  }

  .hero-actions,
  .hero-actions .button,
  .hero-service-card {
    width: 100%;
  }

  .hero-services {
    grid-template-columns: 1fr;
  }

  .grid.two,
  .portal-grid,
  .agent-grid,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .lead-band,
  .trust-section,
  .advisory-section,
  .process-section,
  .checklist-section,
  .calculator-section,
  .knowledge-section,
  .form-section,
  .faq-section,
  .agent-section,
  .legal-section,
  .admin-section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .site-footer {
    display: grid;
  }

  .knowledge-cta {
    display: grid;
  }
}
