:root {
  --green: #f42f2c;
  --green-dark: #171415;
  --gold: #ff9417;
  --coral: #ec008c;
  --cyan: #12aee2;
  --yellow: #fff100;
  --ink: #211d1e;
  --muted: #6f6563;
  --line: #eaded8;
  --paper: #fff8f3;
  --white: #ffffff;
}

@font-face {
  font-family: "Petaluma Script";
  src: local("Petaluma Script");
  font-display: swap;
}

body {
  background:
    radial-gradient(circle at 8% 12%, rgba(244, 47, 44, 0.06), transparent 24rem),
    radial-gradient(circle at 92% 34%, rgba(255, 148, 23, 0.08), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

select,
input,
textarea,
button,
.btn,
.badge,
.muted {
  font-family: inherit;
}

.demo-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 0;
  box-shadow: 0 10px 34px rgba(33, 29, 30, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  color: var(--ink);
  font-size: 22px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green), var(--gold));
  color: white;
  font-size: 22px;
  font-weight: 950;
}

.brand-logo {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}

.signup-steps { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; list-style: none; }
.signup-steps [aria-current="step"] { color: var(--green-dark); font-weight: 900; }
#providerProfileForm fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
#providerProfileForm fieldset[hidden] { display: none; }
#providerProfileForm legend { font-weight: 800; margin-bottom: 12px; }
#providerSignupForm label, #clientSignupForm label, #providerProfileForm label { display: grid; gap: 6px; }
.signup-form[hidden] { display: none; }
.account-profile-section { min-width: 0; padding: 24px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.account-profile-section h2 { margin: 0 0 16px; font-size: 24px; }
.account-profile-section .signup-form { max-width: 760px; }
.client-programme { min-width: 0; padding: 24px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.client-programme .wedding-planner-demo { padding: 0; border: 0; background: transparent; }

.brand {
  flex-shrink: 0;
}

.brand span:last-child,
.hero h1,
.auth-aside h1 {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.brand span:last-child {
  display: block;
  letter-spacing: 0.08em;
}

.brand span:last-child::after {
  content: none;
}

.demo-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.demo-nav a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.nav-logout {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.nav-logout:hover,
.nav-logout:focus-visible {
  color: var(--coral, #f42f2c);
  text-decoration: underline;
}

.demo-nav a.is-active {
  color: var(--green);
  font-weight: 900;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.btn-primary {
  border-color: var(--green);
  background: var(--green);
  color: white;
  box-shadow: 0 10px 24px rgba(244, 47, 44, 0.2);
}

.btn-coral {
  border-color: var(--gold);
  background: var(--gold);
  color: white;
  box-shadow: 0 10px 24px rgba(255, 148, 23, 0.24);
}

.hero {
  background: var(--paper);
  color: var(--ink);
}

.hero-poster {
  display: block;
  width: 100%;
  height: auto;
}

.ytonda-slideshow { position: relative; background: #17120f; outline-offset: -4px; }
.slideshow-slides { aspect-ratio: 1080 / 608; overflow: hidden; }
.slideshow-slides img { width: 100%; height: auto; object-fit: contain; }
.slideshow-controls { position: absolute; inset: 0; display: grid; grid-template-columns: 25% 50% 25%; }
.slideshow-controls button { width: 100%; height: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; appearance: none; -webkit-tap-highlight-color: transparent; }
.slideshow-controls button:focus-visible { outline: 3px solid #e8bd75; outline-offset: -4px; }
.slideshow-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.hero-inner {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: 48px 0 54px;
  text-align: center;
}

.hero h1 {
  max-width: 760px;
  margin: 0 auto 14px;
  font-size: clamp(40px, 5.7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 950;
  text-wrap: balance;
}

.hero p {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 19px;
  color: var(--muted);
}

.search-box {
  display: grid;
  grid-template-columns: 1.1fr 1.35fr 1fr 0.8fr auto;
  gap: 10px;
  padding: 10px;
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(23, 20, 21, 0.32);
}

.search-box label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.search-box select,
.search-box input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
}

.section {
  padding: 54px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section h2 {
  margin: 0;
  font-size: 30px;
}

.section p {
  color: var(--muted);
}

.path-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 32px rgba(20, 42, 35, 0.06);
}

.path-card h3 {
  margin: 0;
  font-size: 24px;
}

.path-card p {
  margin: 0;
  line-height: 1.55;
}

.path-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.path-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

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

.result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -6px 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-weight: 700;
}

.result-empty {
  grid-column: 1 / -1;
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.provider-card,
.panel,
.price-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.provider-card {
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 32px rgba(20, 42, 35, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.provider-card:hover {
  border-color: rgba(14, 85, 64, 0.35);
  box-shadow: 0 18px 45px rgba(20, 42, 35, 0.13);
  transform: translateY(-2px);
}

.provider-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef2ef;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f6f0dc;
  color: #805b00;
  font-size: 12px;
  font-weight: 800;
}

.badge-green {
  background: #e8f3ed;
  color: var(--green);
}

.badge-muted {
  background: #eef0f3;
  color: #5f6875;
}

.provider-card h3,
.price-card h3,
.panel h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.provider-card .muted {
  margin: 0 0 10px;
  font-weight: 800;
}

.provider-card p:not(.muted) {
  margin: 0 0 14px;
  line-height: 1.5;
}

.provider-card .btn {
  width: 100%;
  margin-top: auto;
  justify-content: center;
}

.muted {
  color: var(--muted);
}

.category-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.wedding-planner-demo {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.premium-teaser {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.premium-teaser h3 {
  margin: 10px 0 6px;
  font-size: 24px;
}

.wedding-planner-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
}

.wedding-planner-form .btn {
  min-height: 44px;
  width: 100%;
}

.wedding-planner-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.wedding-planner-form input,
.wedding-planner-form select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
}

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

.wedding-summary article,
.wedding-result-card,
.wedding-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.wedding-empty {
  padding: 18px;
  color: var(--muted);
  font-weight: 800;
}

.wedding-summary article {
  padding: 16px;
}

.wedding-summary strong {
  display: block;
  color: var(--green);
  font-size: 24px;
}

.wedding-summary span,
.wedding-result-card span {
  color: var(--muted);
}

.wedding-result-card small {
  display: block;
  margin-top: 6px;
  color: var(--green);
  font-weight: 900;
  text-align: right;
}

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

.wedding-result-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 16px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.wedding-result-card:hover {
  border-color: var(--green);
  background: #e8f3ed;
  transform: translateY(-1px);
}

.wedding-result-card h3 {
  margin: 8px 0 4px;
}

.wedding-result-card strong {
  display: block;
  color: var(--green);
  font-size: 20px;
  text-align: right;
}

.category-pill {
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-weight: 800;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.signup-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.signup-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.signup-form input,
.signup-form select,
.signup-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
}

.field-help {
  margin: -4px 0 0;
  color: var(--muted);
}

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

.provider-plan-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

.provider-plan-card:has(input:checked) {
  border-color: var(--green);
  background: #e8f3ed;
}

.provider-plan-card-premium:has(input:checked) {
  border-color: var(--gold);
  background: #fff8df;
}

.provider-plan-card input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}

.provider-plan-card strong,
.provider-plan-card em,
.provider-plan-card b,
.provider-plan-card small {
  display: block;
}

.provider-plan-card em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
}

.provider-plan-card b {
  margin: 4px 0;
  color: var(--green);
}

.provider-plan-card small {
  color: var(--muted);
  line-height: 1.35;
}

.is-hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.signup-form textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

.auth-shell {
  width: min(100% - 48px, 1120px);
  margin: 34px auto 56px;
}

.auth-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: stretch;
}

.auth-layout-wide {
  grid-template-columns: 0.82fr 1.18fr;
}

.auth-aside,
.auth-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.auth-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(31, 77, 58, 0.94), rgba(20, 42, 35, 0.92)),
    url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
  color: white;
}

.auth-aside h1 {
  margin: 22px 0 10px;
  font-size: 42px;
  line-height: 1;
}

.auth-aside p {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.auth-aside .badge { align-self: flex-start; color: #fff; background: rgba(0, 0, 0, 0.18); border: 1px solid rgba(255, 255, 255, 0.35); }
.auth-signup-layout .auth-aside { min-height: 420px; justify-content: flex-start; }
.auth-signup-layout .auth-aside h1 { font-size: 32px; line-height: 1.15; }

.auth-benefits {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.auth-benefits span {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.auth-card {
  padding: 26px;
}

.auth-card-head {
  margin-bottom: 18px;
}

.auth-card-head h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.auth-card-head p {
  margin: 0;
  color: var(--muted);
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.auth-links a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.client-plan-choice {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.client-plan-choice label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.client-plan-choice label:has(input:checked) {
  border-color: var(--green);
  background: #e8f3ed;
}

.client-plan-choice strong,
.client-plan-choice b,
.client-plan-choice em {
  display: block;
}

.client-plan-choice b {
  margin: 4px 0;
  color: var(--green);
}

.client-plan-choice em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.35;
}

.price-card {
  padding: 24px;
}

.price {
  font-size: 34px;
  font-weight: 900;
  color: var(--green);
  margin: 12px 0;
}

.footer {
  padding: 32px;
  background: var(--green-dark);
  color: white;
}

.account-shell {
  width: min(100% - 48px, 1240px);
  margin: 28px auto 54px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  align-items: start;
}

.account-sidebar {
  position: sticky;
  top: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.account-sidebar strong {
  display: block;
  color: var(--green);
  font-size: 22px;
  margin-bottom: 8px;
}

.account-sidebar p {
  margin: 0 0 16px;
  color: var(--muted);
}

.account-sidebar nav {
  display: grid;
  gap: 6px;
}

.account-sidebar a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
}

.account-sidebar a.is-active,
.account-sidebar a:hover {
  background: #e8f3ed;
  color: var(--green);
  font-weight: 800;
}

.account-content {
  display: grid;
  gap: 18px;
}

.account-hero-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(31, 77, 58, 0.95), rgba(31, 77, 58, 0.74)),
    url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
  color: white;
}

.provider-account-hero {
  background:
    linear-gradient(90deg, rgba(20, 52, 40, 0.95), rgba(199, 81, 70, 0.72)),
    url("https://images.unsplash.com/photo-1520854221256-17451cc331bf?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
}

.admin-account-hero {
  background:
    linear-gradient(90deg, rgba(20, 42, 35, 0.96), rgba(128, 91, 0, 0.74)),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
}

.account-hero-card h1,
.account-hero-card p {
  margin: 0;
}

.account-hero-card h1 {
  font-size: 36px;
  line-height: 1.05;
}

.account-hero-card p {
  max-width: 620px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.9);
}

.account-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.account-eyebrow {
  color: #f6f0dc !important;
  font-weight: 800;
}

.account-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.account-metrics article,
.account-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.account-metrics article {
  padding: 18px;
}

.account-metrics strong {
  display: block;
  color: var(--green);
  font-size: 28px;
  line-height: 1;
}

.account-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quick-actions a {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.quick-actions a:hover {
  border-color: rgba(14, 85, 64, 0.35);
  box-shadow: 0 14px 34px rgba(20, 42, 35, 0.1);
  transform: translateY(-1px);
}

.quick-actions strong {
  color: var(--green);
  font-size: 18px;
}

.quick-actions span {
  color: var(--muted);
  line-height: 1.45;
}

.account-plan-card {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.account-plan-card h2 {
  margin: 10px 0 6px;
  font-size: 24px;
}

.account-plan-card p {
  margin: 0;
  color: var(--muted);
}

.plan-progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f3ed;
}

.plan-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.provider-health-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

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

.account-content,
.account-grid > *,
.account-list > * {
  min-width: 0;
}

.account-content p,
.account-content strong,
.account-content span {
  overflow-wrap: anywhere;
}

.dashboard-unavailable {
  border: 1px solid var(--gold);
}

.account-panel {
  padding: 18px;
}

.provider-commercial-panel {
  grid-column: 1 / -1;
}

.provider-commercial-panel .account-list {
  grid-template-columns: repeat(3, 1fr);
}

.account-panel > .muted:last-child {
  margin-bottom: 0;
}

.account-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.account-panel-head h2 {
  margin: 0;
  font-size: 22px;
}

.account-panel-head a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

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

.account-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.account-list span {
  color: var(--muted);
}

.account-list b {
  grid-row: span 2;
  align-self: center;
  color: var(--green);
}

.account-list .client-quote-row,
.account-list .client-invoice-row {
  align-items: center;
}

.account-list .client-quote-row small,
.account-list .client-invoice-row small {
  color: var(--muted);
  font-weight: 800;
}

.client-inline-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.client-inline-actions .btn {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 13px;
}

.message-row small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 800;
}

.message-row a {
  color: var(--green);
  font-weight: 800;
}

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

.message-composer textarea {
  min-height: 88px;
}

.message-composer .btn {
  justify-content: center;
}

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

.account-timeline li {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.account-timeline strong {
  color: var(--ink);
}

.account-timeline span {
  color: var(--muted);
}

.account-timeline small {
  color: var(--green);
  font-weight: 800;
}

.account-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.gallery-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2ef;
}

.document-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 18px;
}

.document-layout .signup-form {
  margin-top: 0;
}

.document-layout .signup-form .btn {
  width: 100%;
  justify-content: center;
}

.document-summary-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.document-summary-card h2 {
  margin: 10px 0 6px;
  font-size: 24px;
}

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

.document-summary-amount {
  text-align: right;
}

.document-summary-amount strong {
  display: block;
  color: var(--green);
  font-size: 26px;
  line-height: 1.1;
}

.document-summary-amount span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}

.client-document-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.client-document-actions .btn {
  justify-content: center;
}

.document-items {
  display: grid;
  gap: 8px;
}

.document-item-row {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.8fr;
  gap: 8px;
}

.relationship-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.relationship-options span {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}

.provider-profile-shell {
  width: min(100% - 48px, 1240px);
  margin: 28px auto 56px;
  display: grid;
  gap: 22px;
}

.provider-profile-hero {
  min-height: 380px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: 30px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  color: white;
}

.provider-campaign-banner {
  overflow: hidden;
  border-radius: 8px;
  background: #21130e;
}

.provider-campaign-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.provider-profile-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 28px;
  border-radius: 8px;
  background: var(--green-dark);
  color: white;
}

.provider-profile-summary h1 {
  margin: 12px 0 6px;
  font-size: 42px;
  line-height: 1;
}

.provider-profile-summary p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.provider-profile-hero h1 {
  margin: 12px 0 6px;
  font-size: 52px;
  line-height: 1;
}

.provider-profile-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
}

.profile-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.provider-profile-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 22px;
  align-items: start;
}

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

.provider-profile-aside {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.profile-facts span,
.contact-lock-list span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
}

.profile-facts strong {
  color: var(--ink);
}

.profile-gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 10px;
}

.profile-gallery img {
  width: 100%;
  min-height: 180px;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2ef;
}

.profile-gallery img:first-child {
  grid-row: span 2;
}

.profile-video {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-align: center;
}

.profile-video strong {
  color: var(--green);
  font-size: 22px;
}

.profile-video span {
  color: var(--muted);
}

.contact-lock-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.provider-access-choice {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.provider-access-choice a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.provider-access-choice a:hover {
  border-color: var(--green);
  background: #e8f3ed;
}

.provider-access-choice strong {
  color: var(--green);
}

.provider-access-choice span {
  color: var(--muted);
  line-height: 1.35;
}

.quote-flow-note {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.quote-flow-note span {
  padding: 10px 12px;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-weight: 800;
}

.payment-shell {
  width: min(100% - 48px, 1180px);
  margin: 28px auto 56px;
  display: grid;
  gap: 22px;
}

.payment-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(31, 77, 58, 0.96), rgba(20, 42, 35, 0.78)),
    url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
  color: white;
}

.payment-hero h1 {
  margin: 12px 0 8px;
  font-size: 42px;
  line-height: 1;
}

.payment-hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
}

.payment-total-card {
  min-width: 260px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  text-align: right;
}

.payment-total-card span,
.payment-total-card small {
  display: block;
  color: rgba(255, 255, 255, 0.85);
}

.payment-total-card strong {
  display: block;
  margin: 8px 0;
  font-size: 34px;
  line-height: 1;
}

.payment-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
  align-items: start;
}

.payment-main,
.payment-aside {
  display: grid;
  gap: 18px;
}

.payment-aside {
  position: sticky;
  top: 92px;
}

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

.payment-method-grid label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.payment-method-grid label:has(input:checked) {
  border-color: var(--green);
  background: #e8f3ed;
}

.payment-method-grid strong,
.payment-method-grid em {
  display: block;
}

.payment-method-grid strong {
  color: var(--green);
}

.payment-method-grid em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.35;
}

.payment-summary-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.payment-summary-list span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
}

.payment-summary-list strong {
  color: var(--ink);
}

@media (max-width: 900px) {
  .demo-nav {
    display: none;
  }

  .search-box,
  .provider-grid,
  .category-row,
  .wedding-planner-form,
  .wedding-summary,
  .wedding-results,
  .wedding-result-card,
  .premium-teaser,
  .provider-plans,
  .auth-layout,
  .client-plan-choice,
  .two-col,
  .account-shell,
  .account-metrics,
  .quick-actions,
  .account-plan-card,
  .account-grid,
  .provider-commercial-panel .account-list,
  .document-summary-card,
  .client-document-actions,
  .document-layout,
  .document-item-row,
  .relationship-options,
  .provider-profile-layout,
  .profile-facts,
  .profile-gallery,
  .payment-layout,
  .payment-method-grid {
    grid-template-columns: 1fr;
  }

  .account-shell {
    width: min(100% - 28px, 1240px);
  }

  .auth-shell {
    width: min(100% - 28px, 1120px);
  }

  .auth-aside {
    min-height: auto;
  }

  .auth-signup-layout .auth-aside { min-height: auto; padding: 20px; }

  .auth-aside h1 {
    font-size: 34px;
  }

  .provider-profile-shell {
    width: min(100% - 28px, 1240px);
  }

  .provider-profile-hero {
    display: grid;
    min-height: 320px;
    padding: 22px;
  }

  .provider-profile-summary {
    display: grid;
    padding: 20px;
  }

  .provider-profile-summary h1 {
    font-size: 34px;
  }

  .provider-profile-hero h1 {
    font-size: 38px;
  }

  .provider-profile-aside {
    position: static;
  }

  .payment-shell {
    width: min(100% - 28px, 1180px);
  }

  .payment-hero {
    display: grid;
  }

  .payment-total-card {
    min-width: 0;
    text-align: left;
  }

  .payment-aside {
    position: static;
  }

  .account-sidebar {
    position: static;
  }

  .account-hero-card {
    display: grid;
  }

  .account-hero-actions {
    justify-content: flex-start;
  }

  .document-summary-amount {
    text-align: left;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    width: min(100% - 28px, 1180px);
    padding: 58px 0 34px;
  }

  .demo-header {
    padding: 0 16px;
  }

  .section-head {
    display: grid;
  }
}

/* Identité visuelle REVETREA */
.demo-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--green) 0 34%,
    var(--gold) 34% 62%,
    var(--cyan) 62% 76%,
    var(--coral) 76% 89%,
    var(--yellow) 89% 100%
  );
}

.demo-nav a {
  position: relative;
}

.demo-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 160ms ease;
}

.demo-nav a:hover,
.demo-nav a.is-active {
  color: var(--green);
}

.demo-nav a:hover::after,
.demo-nav a.is-active::after {
  transform: scaleX(1);
}

.btn {
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-coral {
  color: var(--green-dark);
}

.section h2,
.path-card h3,
.premium-teaser h3,
.price-card h3 {
  letter-spacing: -0.025em;
}

.section h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 5px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.path-card,
.provider-card,
.panel,
.price-card,
.premium-teaser,
.wedding-planner-demo,
.auth-aside,
.auth-card,
.account-panel,
.account-metrics article,
.account-sidebar {
  border-radius: 18px;
}

.provider-card {
  border-top: 5px solid var(--green);
  box-shadow: 0 14px 36px rgba(33, 29, 30, 0.09);
}

.provider-card:nth-child(4n + 2) {
  border-top-color: var(--gold);
}

.provider-card:nth-child(4n + 3) {
  border-top-color: var(--cyan);
}

.provider-card:nth-child(4n + 4) {
  border-top-color: var(--coral);
}

.provider-card:hover {
  border-color: var(--gold);
  box-shadow: 0 22px 48px rgba(244, 47, 44, 0.14);
}

.badge {
  background: rgba(255, 148, 23, 0.14);
  color: #8b4600;
}

.badge-green {
  background: rgba(244, 47, 44, 0.11);
  color: #c51f1d;
}

.category-pill {
  border-color: rgba(244, 47, 44, 0.18);
  background: linear-gradient(135deg, white, rgba(255, 148, 23, 0.09));
}

.premium-teaser {
  border: 0;
  background:
    linear-gradient(120deg, rgba(244, 47, 44, 0.08), rgba(255, 148, 23, 0.14)),
    white;
  box-shadow: 0 16px 38px rgba(33, 29, 30, 0.08);
}

.price-card {
  position: relative;
  border-top: 6px solid var(--green);
  box-shadow: 0 14px 34px rgba(33, 29, 30, 0.07);
}

.price-card:nth-child(2) {
  border-top-color: var(--gold);
}

.price-card:nth-child(3) {
  border-top-color: var(--coral);
}

.auth-aside {
  background:
    linear-gradient(135deg, rgba(23, 20, 21, 0.96), rgba(244, 47, 44, 0.8) 58%, rgba(255, 148, 23, 0.76)),
    url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
}

.client-plan-choice label:has(input:checked),
.payment-method-grid label:has(input:checked),
.account-sidebar a.is-active,
.account-sidebar a:hover {
  background: rgba(244, 47, 44, 0.09);
}

.account-hero-card,
.provider-account-hero,
.admin-account-hero,
.payment-hero {
  border-radius: 22px;
  background-image:
    linear-gradient(110deg, rgba(23, 20, 21, 0.96), rgba(244, 47, 44, 0.82) 56%, rgba(255, 148, 23, 0.7)),
    url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1400&q=80");
}

.account-eyebrow {
  color: #ffd4ae !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer {
  position: relative;
  min-height: auto;
  padding: 32px;
  background:
    linear-gradient(90deg, rgba(244, 47, 44, 0.13), transparent 45%),
    var(--green-dark);
  border-top: 5px solid var(--gold);
}

.footer::before {
  content: none;
}

.y-mobile-bottom-nav {
  border-top-color: var(--gold);
}

.y-mobile-bottom-nav a:first-child {
  color: var(--green);
  font-weight: 900;
}

@media (max-width: 640px) {
  .brand-logo {
    width: 160px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand span:last-child {
    display: block;
  }

  .demo-header > .btn {
    padding-inline: 14px;
  }

  .footer {
    padding: 28px 22px;
  }
}
