:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f5eadf;
  --ink: #2a1d16;
  --muted: #786b61;
  --line: #e0cdbc;
  --green: #5a3825;
  --teal: #8a6a42;
  --coral: #b7653f;
  --sky: #ead8c4;
  --yellow: #d7ad64;
  --shadow: 0 18px 45px rgba(90, 56, 37, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

button {
  cursor: pointer;
}

html {
  scroll-behavior: smooth;
}

.marketing-page {
  min-height: 100vh;
  padding: 26px 30px 56px;
  background:
    linear-gradient(135deg, rgba(90, 56, 37, 0.06) 0 12%, transparent 12% 100%),
    linear-gradient(180deg, #ffffff 0%, #fffaf5 52%, #ffffff 100%);
  background-size: 100% 100%, 100% 100%;
}

.construction-page {
  min-height: 100vh;
  padding: 28px 30px 52px;
  background:
    linear-gradient(180deg, rgba(245, 234, 223, 0.82), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.construction-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.construction-brand {
  margin-bottom: 48px;
}

.construction-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  align-items: center;
  gap: 44px;
}

.construction-copy h1 {
  max-width: 820px;
  margin: 14px 0 18px;
  color: #3a2418;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.construction-copy p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.construction-copy ul {
  display: grid;
  gap: 12px;
  max-width: 680px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.construction-copy li {
  position: relative;
  padding: 14px 16px 14px 44px;
  border: 1px solid rgba(122, 63, 36, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #503729;
  font-weight: 800;
}

.construction-copy li::before {
  position: absolute;
  left: 16px;
  top: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #7a3f24;
  color: #fff;
  content: "✓";
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.construction-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.construction-admin-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.construction-note {
  margin-top: 18px !important;
  font-size: 14px !important;
}

.construction-visual {
  position: relative;
  min-height: 520px;
}

.construction-visual img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.construction-status-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(122, 63, 36, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #4b3021;
  box-shadow: 0 14px 34px rgba(72, 42, 26, 0.18);
}

.construction-status-card strong {
  font-size: 18px;
}

.construction-status-card span {
  color: var(--muted);
  line-height: 1.45;
}

.marketing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto 44px;
}

.marketing-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.marketing-links a {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.marketing-links a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--coral);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.marketing-links a:hover {
  color: var(--green);
}

.marketing-links a.active {
  color: var(--green);
}

.marketing-links a:hover::after,
.marketing-links a.active::after {
  transform: scaleX(1);
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.withdrawal-header-button {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(90, 56, 37, 0.18);
  text-decoration: none;
  white-space: nowrap;
}

.marketing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: 42px;
  max-width: 1180px;
  margin: 0 auto;
  animation: soft-rise 560ms ease both;
}

.marketing-copy {
  display: grid;
  gap: 20px;
  min-width: 0;
  position: relative;
}

.marketing-copy::before {
  content: "";
  width: 54px;
  height: 54px;
  border-radius: 18px 18px 18px 4px;
  background:
    radial-gradient(circle at 38% 36%, #fff 0 12%, transparent 13%),
    radial-gradient(circle at 62% 36%, #fff 0 12%, transparent 13%),
    radial-gradient(circle at 50% 61%, #fff 0 14%, transparent 15%),
    #c9815a;
  box-shadow: 0 14px 30px rgba(183, 101, 63, 0.2);
  animation: paw-bounce 4s ease-in-out infinite;
}

.marketing-copy h1 {
  max-width: 720px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.94;
}

.marketing-copy h1::after {
  display: block;
  width: min(340px, 72%);
  height: 8px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), var(--coral), transparent);
  content: "";
  animation: highlight-sweep 3.8s ease-in-out infinite;
}

.marketing-copy p {
  max-width: 610px;
  margin: 0;
  color: #665448;
  font-size: 19px;
  line-height: 1.6;
}

.marketing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.marketing-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
  transition:
    transform 240ms ease,
    box-shadow 240ms ease;
}

.marketing-media:hover {
  box-shadow: 0 24px 56px rgba(90, 56, 37, 0.2);
  transform: rotate(0deg) translateY(-4px);
}

.marketing-media::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 88px;
  height: 88px;
  border: 10px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: rgba(183, 101, 63, 0.32);
  content: "";
  animation: trust-pulse 2.6s ease-in-out infinite;
}

.marketing-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.marketing-stats,
.marketing-section {
  max-width: 1180px;
  margin: 22px auto 0;
}

.marketing-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.marketing-stats article,
.marketing-cards article,
.preview-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 26px rgba(90, 56, 37, 0.08);
}

.marketing-stats article:nth-child(2),
.marketing-cards article:nth-child(2) {
  background: #fffaf5;
}

.marketing-stats article:nth-child(3),
.marketing-cards article:nth-child(3) {
  background: #fff7ef;
}

.marketing-stats article {
  display: grid;
  gap: 6px;
  padding: 18px;
  transform: translateY(0);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.marketing-stats article:hover,
.marketing-cards article:hover,
.info-card-grid article:hover,
.pricing-card:hover {
  border-color: rgba(183, 101, 63, 0.45);
  box-shadow: 0 18px 38px rgba(90, 56, 37, 0.14);
  transform: translateY(-4px);
}

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

.marketing-stats span,
.marketing-cards p,
.preview-panel p,
.benefit-list {
  color: var(--muted);
  line-height: 1.55;
}

.marketing-section {
  padding-top: 54px;
}

.marketing-subpage:not(.active-subpage) {
  display: none !important;
}

.marketing-subpage.active-subpage {
  display: block;
}

.split-section.active-subpage {
  display: grid;
}

.hidden {
  display: none !important;
}

.marketing-section-heading {
  margin-bottom: 16px;
}

.marketing-section-heading p {
  max-width: 780px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.marketing-gallery {
  padding-top: 42px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 16px;
}

.gallery-card {
  position: relative;
  min-height: 280px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf5;
  box-shadow: 0 12px 30px rgba(90, 56, 37, 0.1);
  transform: translateY(0);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.gallery-card:first-child {
  min-height: 360px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 560ms ease;
}

.gallery-card:hover {
  box-shadow: 0 22px 46px rgba(90, 56, 37, 0.18);
  transform: translateY(-5px);
}

.gallery-card:hover img {
  transform: scale(1.045);
}

.gallery-card figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(255, 250, 245, 0.92);
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(42, 29, 22, 0.12);
}

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

.marketing-cards article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.marketing-cards article::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, rgba(215, 173, 100, 0.32), transparent 66%);
  content: "";
  pointer-events: none;
}

.marketing-cards article > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.marketing-cards p {
  margin: 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.benefit-list {
  display: grid;
  gap: 13px;
  margin: 18px 0 0;
  padding-left: 20px;
  font-size: 17px;
}

.preview-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.preview-panel p {
  margin: 0;
}

.marketing-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf5;
  box-shadow: 0 12px 28px rgba(90, 56, 37, 0.08);
  position: relative;
  overflow: hidden;
}

.marketing-cta-card::before {
  position: absolute;
  inset: 0 auto 0 -34%;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  content: "";
  animation: cta-shine 5s ease-in-out infinite;
  pointer-events: none;
}

.marketing-cta-card h3 {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 22px;
}

.marketing-cta-card p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.account-action-page {
  max-width: 760px;
}

.account-action-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf5;
  box-shadow: var(--shadow);
}

.account-action-form {
  display: grid;
  gap: 14px;
}

.span-all {
  grid-column: 1 / -1;
}

.matrix-section .marketing-section-heading {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.matrix-section .marketing-section-heading p,
.section-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.matrix-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(90, 56, 37, 0.08);
}

.pricing-section {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.pricing-section h3 {
  margin: 0;
  color: var(--green);
  font-size: clamp(24px, 3vw, 34px);
}

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

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(90, 56, 37, 0.08);
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.pricing-card.featured {
  border-color: #b7653f;
  background: #fff7ef;
  box-shadow: 0 18px 40px rgba(183, 101, 63, 0.16);
}

.pricing-card.featured::before {
  display: inline-flex;
  width: max-content;
  padding: 7px 10px;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  content: "Beliebt";
  font-size: 12px;
  font-weight: 900;
}

.pricing-audience {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-card h4 {
  margin: 0;
  color: var(--green);
  font-size: 26px;
}

.pricing-summary,
.pricing-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--green);
}

.pricing-price strong {
  font-size: 32px;
}

.pricing-price span {
  color: var(--muted);
  font-weight: 800;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  flex: 1;
  align-content: start;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.pricing-card button {
  width: 100%;
  margin-top: auto;
}

.info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

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

.info-card-grid article {
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(90, 56, 37, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.info-card-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.info-image {
  position: sticky;
  top: 24px;
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf5;
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}

.info-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.feature-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.feature-table th,
.feature-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}

.feature-table th {
  background: #fbf7f2;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-table td:nth-child(1),
.feature-table td:nth-child(2) {
  color: var(--green);
  font-weight: 800;
}

.matrix-status {
  display: block;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--green);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
}

.table-cta {
  min-width: 136px;
  border: 1px solid rgba(90, 56, 37, 0.24);
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 900;
}

.table-cta:hover {
  background: #442719;
}

@keyframes soft-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes paw-bounce {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

@keyframes trust-pulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.88;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes highlight-sweep {
  0%,
  100% {
    opacity: 0.68;
    transform: scaleX(0.72);
    transform-origin: left;
  }

  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes cta-shine {
  0%,
  56% {
    transform: translateX(0) skewX(-18deg);
  }

  76%,
  100% {
    transform: translateX(420%) skewX(-18deg);
  }
}

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

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  border-top: 1px solid var(--line);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px 22px;
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green);
  font-size: 21px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 16px;
  background: #fff8ef;
  box-shadow: 0 10px 24px rgba(90, 56, 37, 0.15);
}

.brand-mark svg {
  display: block;
  width: 48px;
  height: 48px;
}

.logo-bg {
  fill: #5a3825;
}

.logo-connection {
  fill: none;
  stroke: #d7ad64;
  stroke-linecap: round;
  stroke-width: 4;
}

.logo-dog {
  fill: #fff7ef;
}

.logo-ear {
  fill: #d7ad64;
}

.logo-node {
  fill: #d7ad64;
  stroke: #fff7ef;
  stroke-width: 2;
}

.logo-eye {
  fill: #5a3825;
}

.logo-nose,
.logo-smile,
.logo-collar {
  fill: none;
  stroke: #5a3825;
  stroke-linecap: round;
  stroke-width: 2.4;
}

.logo-collar {
  stroke: #b7653f;
  stroke-width: 3.2;
}

.nav-list {
  display: grid;
  gap: 7px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  color: #6e5d50;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.nav-item span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #9d704d;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item:hover,
.nav-item.active {
  background: var(--surface-soft);
  color: var(--green);
}

.nav-item.active {
  box-shadow: inset 4px 0 0 var(--coral);
}

.sidebar-panel,
.planner,
.requests-panel,
.profile-card,
.owner-profile,
.walker-profile,
.dog-manager,
.trust-card,
.settings-card,
.map-panel,
.chat-panel,
.admin-panel,
.billing-panel,
.security-panel,
.mobile-panel,
.test-panel,
.onboarding-panel,
.booking-flow,
.offers-panel,
.applications-panel,
.dialog-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(18, 61, 50, 0.06);
}

.sidebar-panel {
  margin-top: auto;
  padding: 16px;
}

.sidebar-panel p,
.profile-card p,
.section-title p,
.topbar p,
.map-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.panel-label {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  margin-top: 14px;
  color: var(--green);
  font-weight: 700;
}

.switch-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--teal);
}

.main {
  min-width: 0;
  padding: 30px;
}

.topbar,
.section-title,
.map-header,
.request-meta,
.request-footer,
.trust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar {
  margin-bottom: 22px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--green);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--green);
  font-size: 20px;
  line-height: 1.2;
}

h3 {
  margin: 0 0 7px;
  color: var(--green);
  font-size: 18px;
}

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

.primary-button,
.ghost-button,
.icon-button {
  min-height: 42px;
  border-radius: var(--radius);
  border: 0;
  font-size: 14px;
  font-weight: 800;
}

.primary-button {
  padding: 0 18px;
  background: var(--coral);
  color: #fff;
  box-shadow: 0 12px 26px rgba(183, 101, 63, 0.24);
  position: relative;
  overflow: hidden;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.primary-button:hover {
  background: #9f5635;
  box-shadow: 0 16px 30px rgba(183, 101, 63, 0.32);
  transform: translateY(-2px);
}

.primary-button::after {
  position: absolute;
  inset: 0 auto 0 -45%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  content: "";
  transform: skewX(-18deg);
  transition: left 420ms ease;
}

.primary-button:hover::after {
  left: 120%;
}

.ghost-button {
  padding: 0 16px;
  background: #efe0cf;
  color: var(--green);
}

.logout-button,
.admin-logout-button {
  border: 1px solid rgba(90, 56, 37, 0.18);
  background: #fff7ef;
}

.icon-button {
  display: grid;
  width: 38px;
  min-height: 38px;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-size: 22px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 190px));
  gap: 12px;
  margin-bottom: 18px;
}

.saved-searches {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbf7f2;
}

.saved-searches strong {
  color: var(--green);
}

.saved-searches span,
.saved-searches p {
  color: var(--muted);
}

.saved-searches p {
  margin: 4px 0 0;
  line-height: 1.45;
}

.saved-search-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.saved-search-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius);
  background: #fff;
}

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

.template-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbf7f2;
}

.template-box strong {
  color: var(--green);
}

.template-box span,
.template-box p {
  color: var(--muted);
}

.template-box p {
  margin: 4px 0 0;
  line-height: 1.45;
}

.template-list {
  display: grid;
  gap: 8px;
}

.template-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius);
  background: #fff;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

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

input,
select {
  height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 98px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(138, 106, 66, 0.16);
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.password-field:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(138, 106, 66, 0.16);
}

.password-field input {
  height: 42px;
  border: 0;
  box-shadow: none;
}

.password-field input:focus {
  box-shadow: none;
}

.password-tools {
  display: flex;
  gap: 4px;
  padding-right: 6px;
}

.password-tools button,
.image-upload-action {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #efe0cf;
  color: var(--green);
  cursor: pointer;
}

.password-tools svg,
.image-upload-action svg,
.image-placeholder svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  margin-bottom: 18px;
}

.onboarding-panel,
.booking-flow {
  margin-bottom: 18px;
  padding: 18px;
}

.onboarding-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.onboarding-role {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius);
  background: #fff7ef;
}

.onboarding-role p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.onboarding-steps,
.booking-steps {
  display: grid;
  gap: 10px;
}

.onboarding-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.onboarding-step > span,
.booking-step span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.onboarding-step p,
.booking-summary p,
.booking-payment p {
  margin: 4px 0;
  color: var(--muted);
  line-height: 1.45;
}

.onboarding-step small,
.booking-step small {
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
}

.onboarding-step button,
.booking-step {
  min-height: 38px;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--green);
  padding: 0 12px;
  font-weight: 900;
}

.booking-summary {
  display: grid;
  gap: 4px;
  margin: 16px 0;
  padding: 16px;
  border-radius: var(--radius);
  background: #fff7ef;
}

.booking-payment {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbf7f2;
}

.booking-payment h3 {
  margin: 0 0 6px;
  color: var(--green);
}

.booking-payment ul,
.payment-rule-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.booking-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 76px;
  text-align: left;
}

.booking-step.active {
  background: var(--green);
  color: #fff;
}

.booking-step.active span {
  background: #fff7ef;
  color: var(--green);
}

.booking-step.active small {
  color: #f2d1b7;
}

.map-panel {
  padding: 18px;
}

.map-settings {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

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

.status-pill {
  white-space: nowrap;
  border-radius: 999px;
  background: #f8e6cf;
  color: #7a4f26;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 800;
}

.map-canvas {
  position: relative;
  height: 392px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    radial-gradient(circle at 18% 70%, #bfe8cf 0 14%, transparent 15%),
    radial-gradient(circle at 76% 26%, #b9dff3 0 15%, transparent 16%),
    #dcefe8;
  background-size:
    44px 44px,
    44px 44px,
    auto,
    auto,
    auto;
}

.leaflet-map {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.leaflet-map::after {
  position: absolute;
  inset: auto 12px 12px;
  z-index: 401;
  display: none;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 12px;
  content: attr(data-fallback);
}

.leaflet-map[data-fallback]::after {
  display: block;
}

.leaflet-container {
  font-family: inherit;
}

.street {
  position: absolute;
  display: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.street-a {
  inset: 44% -10% auto;
  height: 34px;
  transform: rotate(-12deg);
}

.street-b {
  top: -12%;
  left: 52%;
  width: 36px;
  height: 130%;
  transform: rotate(20deg);
}

.park-zone {
  position: absolute;
  z-index: 1;
  display: none;
  color: #2f7c57;
  font-size: 13px;
  font-weight: 900;
}

.zone-one {
  left: 13%;
  bottom: 22%;
}

.zone-two {
  right: 13%;
  top: 23%;
}

.map-pin {
  position: absolute;
  z-index: 402;
  width: 24px;
  height: 24px;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--coral);
  box-shadow: var(--shadow);
  transform: rotate(-45deg);
}

.map-pin::after {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.walker-pin {
  background: #1f9a8a;
}

.pin-one {
  left: 35%;
  top: 44%;
}

.pin-two {
  left: 66%;
  top: 62%;
}

.pin-three {
  left: 72%;
  top: 28%;
}

.map-card {
  position: absolute;
  z-index: 402;
  left: 38%;
  top: 34%;
  display: grid;
  gap: 4px;
  max-width: 250px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

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

.planner {
  padding: 18px;
}

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

.timeline li {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.timeline time {
  color: #8c5d3f;
  font-size: 12px;
  font-weight: 900;
}

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

.timeline button {
  min-height: 34px;
  border: 0;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.series-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.series-form strong {
  color: var(--green);
}

.series-form span,
.series-form p {
  color: var(--muted);
}

.series-form p {
  margin: 4px 0 0;
  line-height: 1.45;
}

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

.chat-panel {
  margin-top: 18px;
  padding: 18px;
}

.offers-panel,
.applications-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
}

.plan-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #fbf7f2;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 700;
}

.offers-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 16px;
}

.offer-list,
.application-list {
  display: grid;
  align-content: start;
  gap: 12px;
}

.offer-card,
.application-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.offer-card h3,
.application-card h3 {
  margin-top: 8px;
}

.offer-card p,
.application-card p,
.application-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.offer-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.offer-facts span {
  border-radius: 999px;
  background: #fbf7f2;
  color: var(--muted);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
}

.application-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.application-card > div:last-child {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.application-card strong {
  color: var(--green);
}

.application-card button {
  min-height: 34px;
  border: 0;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
}

.chat-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.chat-contacts {
  display: grid;
  align-content: start;
  gap: 10px;
}

.chat-contact {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.chat-contact.active,
.chat-contact:hover {
  background: var(--surface-soft);
}

.chat-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.chat-contact strong,
.chat-contact small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-contact small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.chat-window {
  display: grid;
  grid-template-rows: minmax(280px, 1fr) auto auto;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbf7f2;
  overflow: hidden;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 16px;
}

.chat-message {
  max-width: min(520px, 82%);
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.chat-message.mine {
  align-self: flex-end;
  background: var(--green);
  color: #fff;
}

.chat-message span,
.chat-message time {
  font-size: 11px;
  font-weight: 900;
  opacity: 0.78;
}

.chat-message p {
  margin: 0;
  line-height: 1.45;
}

.typing-indicator {
  min-height: 22px;
  margin: 0;
  padding: 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.form-feedback {
  min-height: 20px;
  margin: 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.form-feedback.success {
  color: #3f6d3e;
}

.withdrawal-card {
  max-width: 820px;
}

.withdrawal-step {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(122, 63, 36, 0.16);
  border-radius: var(--radius);
  background: #fff;
}

.withdrawal-step p,
.withdrawal-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.requests-panel,
.profile-card,
.owner-profile,
.walker-profile,
.dog-manager,
.trust-card {
  padding: 18px;
}

.owner-profile,
.walker-profile,
.dog-manager,
.settings-card {
  display: grid;
  gap: 16px;
}

.owner-summary {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 14px;
  border-radius: var(--radius);
  background: #fbf7f2;
}

.owner-summary img,
.profile-image-placeholder {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #efe0cf;
  color: var(--green);
  box-shadow: 0 10px 22px rgba(90, 56, 37, 0.14);
  object-fit: cover;
}

.profile-image-placeholder svg,
.card-image-placeholder svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.owner-summary div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

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

.owner-summary span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.image-upload-control {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 12px;
  border: 1px dashed #d9bfa5;
  border-radius: var(--radius);
  background: #fffaf5;
  cursor: pointer;
}

.image-upload-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.image-upload-preview {
  position: relative;
  flex: 0 0 auto;
}

.image-upload-preview img,
.image-placeholder {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #efe0cf;
  color: var(--green);
  box-shadow: 0 10px 22px rgba(90, 56, 37, 0.14);
  object-fit: cover;
}

.image-upload-action {
  position: absolute;
  right: -6px;
  bottom: -4px;
  background: var(--coral);
  color: #fff;
  box-shadow: 0 8px 18px rgba(183, 101, 63, 0.28);
}

.inline-link-button {
  min-height: 0;
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 900;
  text-decoration: underline;
}

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

.owner-form textarea {
  min-height: 84px;
}

.owner-form-wide {
  grid-column: 1 / -1;
}

.payout-onboarding {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff7ef;
}

.payout-onboarding h4 {
  margin: 0 0 6px;
  color: var(--green);
}

.payout-onboarding p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.payout-onboarding ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.business-verification {
  border: 1px solid rgba(116, 72, 38, 0.18);
  border-radius: 8px;
  background: #fffaf5;
  padding: 14px;
}

.business-verification h4 {
  margin: 0 0 6px;
  color: var(--green);
}

.business-verification p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.payout-status-card {
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 12px;
  border-radius: var(--radius);
  background: #fff;
}

.payout-status-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.payout-status-card strong {
  color: var(--green);
}

.request-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.request-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.request-card.hidden {
  display: none;
}

.request-card img,
.profile-card img,
.dog-card img,
.card-image-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: var(--radius);
  background: #efe0cf;
  color: var(--green);
  object-fit: cover;
}

.request-body {
  min-width: 0;
}

.request-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.request-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 8px 0 10px;
}

.tag {
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--green);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
}

.tag.money {
  background: #f8e1d4;
  color: #8a3d24;
}

.tag.free {
  background: #efe0cf;
  color: #6b442b;
}

.tag.exchange {
  background: #f5ead8;
  color: #765126;
}

.request-footer {
  align-items: end;
}

.request-footer button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.request-actions button:last-child {
  background: #efe0cf;
  color: var(--green);
}

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

.profile-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
}

.dog-list {
  display: grid;
  gap: 12px;
}

.dog-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.dog-card.active {
  border-color: #b7653f;
  box-shadow: 0 10px 22px rgba(183, 101, 63, 0.12);
}

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

.dog-facts,
.dog-actions,
.form-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dog-facts {
  margin-top: 10px;
}

.dog-facts span {
  border-radius: 999px;
  background: #fbf7f2;
  color: var(--muted);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
}

.dog-actions {
  margin-top: 10px;
}

.dog-actions button {
  min-height: 34px;
  border: 0;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
}

.dog-actions button:last-child {
  background: #efe0cf;
  color: var(--green);
}

.form-heading {
  justify-content: space-between;
  padding-top: 4px;
}

.form-heading h3 {
  margin: 0;
}

.empty-state {
  margin: 0;
  padding: 14px;
  border-radius: var(--radius);
  background: #fbf7f2;
  color: var(--muted);
  line-height: 1.45;
}

.trust-card {
  display: grid;
  gap: 12px;
}

.settings-card {
  padding: 18px;
}

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

.trust-grid {
  display: grid;
  gap: 10px;
}

.trust-row {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.trust-row strong {
  color: var(--green);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-badges span {
  border-radius: 999px;
  background: #f5ead8;
  color: #6b442b;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
}

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

.review-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbf7f2;
}

.review-card strong {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #8a3d24;
  box-shadow: 0 8px 18px rgba(90, 56, 37, 0.1);
}

.review-card h4 {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 14px;
}

.review-form {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.review-form h4 {
  margin: 0;
  color: var(--green);
  font-size: 16px;
}

.notification-center {
  display: grid;
  gap: 12px;
}

.notification-feed {
  display: grid;
  gap: 10px;
}

.notification-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.notification-item.unread {
  border-color: rgba(183, 101, 63, 0.38);
  background: #fff7ef;
}

.notification-item strong,
.notification-item small {
  display: block;
}

.notification-item strong {
  margin: 8px 0 4px;
  color: var(--green);
}

.notification-item p {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.45;
}

.notification-item small {
  color: var(--muted);
}

.notification-item button:disabled {
  opacity: 0.55;
  cursor: default;
}

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

.setting-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbf7f2;
  color: var(--green);
  font-size: 13px;
}

.setting-toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--coral);
}

.admin-panel {
  margin-top: 18px;
  padding: 18px;
}

.billing-panel,
.security-panel,
.mobile-panel,
.test-panel {
  padding: 18px;
}

.billing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.billing-card,
.payment-note,
.deletion-card,
.security-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbf7f2;
}

.billing-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.billing-card.active {
  border-color: #b7653f;
  box-shadow: 0 14px 28px rgba(183, 101, 63, 0.14);
}

.billing-card p,
.payment-note p,
.security-grid p,
.deletion-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.billing-card ul {
  display: grid;
  gap: 7px;
  flex: 1;
  align-content: start;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.billing-card button {
  position: relative;
  z-index: 2;
  min-height: 38px;
  margin-top: auto;
  border: 0;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.billing-card button:hover {
  background: #3f2614;
}

.payment-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
}

.secure-payment-note {
  border-color: #b7653f;
  background: #fff7ef;
}

.billing-dialog-card {
  max-width: 620px;
}

.billing-dialog-summary,
.billing-dialog-features,
.billing-dialog-provider {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf5;
}

.billing-dialog-summary h3 {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 28px;
}

.billing-dialog-summary p,
.billing-dialog-provider p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.billing-dialog-features {
  display: grid;
  gap: 10px;
}

.billing-dialog-features strong,
.billing-dialog-provider strong {
  color: var(--green);
}

.billing-dialog-features ul {
  display: grid;
  gap: 7px;
  max-height: 210px;
  margin: 0;
  overflow: auto;
  padding-left: 18px;
  color: var(--muted);
}

.secure-payment-steps {
  display: grid;
  gap: 10px;
}

.secure-payment-steps article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.secure-payment-steps span {
  display: grid;
  grid-row: span 2;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.secure-payment-steps strong {
  color: var(--green);
}

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

.security-grid article,
.deletion-card {
  padding: 14px;
}

.deletion-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.mobile-install-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(122, 64, 32, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, #f6eadc);
  box-shadow: 0 18px 38px rgba(85, 51, 22, 0.1);
}

.mobile-install-card h3,
.offline-card h1 {
  margin: 0 0 8px;
  color: var(--green);
}

.mobile-install-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.mobile-install-card .form-feedback {
  margin-top: 8px;
}

.mobile-grid,
.test-grid,
.deployment-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

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

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

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

.mobile-grid article,
.test-grid article,
.deployment-grid article,
.notification-list article,
.milestone-list article,
.test-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbf7f2;
}

.mobile-grid article,
.test-grid article,
.deployment-grid article,
.notification-list article,
.milestone-list article {
  padding: 14px;
}

.mobile-grid p,
.test-grid li,
.test-section li,
.deployment-grid span,
.notification-list span,
.milestone-list span {
  color: var(--muted);
  line-height: 1.45;
}

.test-section {
  margin-top: 16px;
  padding: 16px;
}

.test-section ul,
.test-grid ul {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 20px;
}

.offline-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 22px;
  background: linear-gradient(135deg, #fffaf4, #f4dfc6);
}

.offline-card {
  display: grid;
  justify-items: start;
  gap: 12px;
  max-width: 520px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.offline-card p {
  color: var(--muted);
  line-height: 1.55;
}

.notification-list,
.milestone-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.notification-list article,
.milestone-list article {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
}

.milestone-list article {
  grid-template-columns: 44px minmax(0, 1fr);
}

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

.admin-summary article,
.admin-report {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbf7f2;
}

.admin-summary article {
  padding: 14px;
}

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

.admin-summary span,
.admin-report p {
  color: var(--muted);
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-users {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-reports-title {
  margin-top: 18px;
}

.admin-report {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.admin-report h3 {
  margin-top: 8px;
}

.admin-user-card.blocked {
  border-color: rgba(138, 61, 36, 0.38);
  background: #fff1e8;
}

.admin-report > div:last-child {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.admin-report button {
  min-height: 36px;
  border: 0;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  padding: 0 12px;
  font-weight: 900;
}

.admin-payments {
  margin-top: 18px;
}

.payment-summary {
  margin: 12px 0;
}

.payment-review-card {
  border-color: #d8b08d;
  background: #fff7ef;
}

.payment-event-card {
  background: #fff;
}

.payment-event-card span:not(.tag) {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.webhook-rules-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbf7f2;
}

.webhook-rules-card h4 {
  margin: 0 0 6px;
  color: var(--green);
}

.webhook-rules-card p,
.webhook-rule-list span {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.webhook-rule-list {
  display: grid;
  gap: 8px;
}

.webhook-rule-list div {
  display: grid;
  gap: 3px;
  padding: 9px;
  border-radius: var(--radius);
  background: #fff;
}

.webhook-rule-list strong {
  color: #8a3d24;
}

.fee-settings-form {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(130px, 0.55fr)) auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbf7f2;
}

.fee-settings-form h4 {
  margin: 0 0 6px;
  color: var(--green);
}

.fee-settings-form p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.payment-provider-form {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  align-items: stretch;
}

.payment-provider-form > div,
.payment-provider-form .form-feedback,
.payment-provider-form .primary-button {
  grid-column: 1 / -1;
}

.payment-provider-form small {
  display: block;
  margin: 3px 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.payment-provider-form .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.payment-provider-form .checkbox-label input {
  width: auto;
}

.tester-popup-settings-form {
  grid-template-columns: minmax(220px, 1fr) minmax(210px, 0.7fr) auto;
}

.tester-popup-settings-form .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tester-popup-settings-form .checkbox-label input {
  width: auto;
}

.tester-float-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;
  max-width: min(320px, calc(100vw - 44px));
  padding: 13px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #7a3f24, #b56d35);
  color: #fff;
  box-shadow: 0 16px 38px rgba(71, 40, 18, 0.28);
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0;
  animation: tester-pulse 2.8s ease-in-out infinite;
}

.tester-float-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(71, 40, 18, 0.34);
}

@keyframes tester-pulse {
  0%,
  100% {
    box-shadow: 0 16px 38px rgba(71, 40, 18, 0.28);
  }
  50% {
    box-shadow: 0 18px 44px rgba(181, 109, 53, 0.46);
  }
}

dialog {
  width: min(520px, calc(100vw - 28px));
  border: 0;
  padding: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(18, 37, 33, 0.42);
}

.dialog-card {
  display: grid;
  gap: 15px;
  padding: 20px;
}

#testerDialog {
  width: min(860px, calc(100vw - 28px));
}

.tester-dialog-card {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.tester-dialog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 16% 18%, rgba(179, 111, 66, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255, 252, 247, 0.96), rgba(246, 230, 209, 0.94));
  pointer-events: none;
}

.tester-dialog-card .dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.tester-popup-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  padding: 28px;
}

.tester-popup-copy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.tester-popup-copy h2 {
  margin: 0;
  color: var(--green);
  font-size: 34px;
  line-height: 1.05;
}

.tester-popup-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.tester-popup-copy ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

.tester-popup-fields {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(122, 64, 32, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 32px rgba(85, 51, 22, 0.12);
}

.tester-popup-fields textarea {
  min-height: 92px;
}

@media (max-width: 1080px) {
  .marketing-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-actions {
    width: 100%;
  }

  .auth-actions button,
  .auth-actions a {
    flex: 1;
    justify-content: center;
  }

  .marketing-hero,
  .split-section,
  .info-layout,
  .mobile-install-card,
  .construction-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
    flex-direction: column;
  }

  .marketing-cta-card {
    align-items: stretch;
    flex-direction: column;
  }

  .mobile-install-card button {
    width: 100%;
  }

  .marketing-media {
    min-height: 380px;
  }

  .construction-visual,
  .construction-visual img {
    min-height: 360px;
    height: 360px;
  }

  .marketing-media img {
    min-height: 380px;
  }

  .marketing-stats,
  .marketing-cards,
  .gallery-grid,
  .pricing-grid,
  .info-card-grid,
  .tester-popup-layout,
  .tester-popup-settings-form {
    grid-template-columns: 1fr;
  }

  .tester-popup-layout {
    padding: 22px;
  }

  .tester-popup-copy h2 {
    font-size: 28px;
  }

  .info-image {
    position: relative;
    top: auto;
    min-height: 320px;
  }

  .info-image img {
    min-height: 320px;
  }

  .gallery-card,
  .gallery-card:first-child {
    min-height: 300px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 18px;
  }

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

  .sidebar-panel {
    margin-top: 0;
  }

  .workspace,
  .content-grid,
  .chat-layout,
  .offers-layout,
  .onboarding-layout,
  .admin-summary,
  .billing-grid,
  .payment-note,
  .security-grid,
  .mobile-grid,
  .test-grid,
  .deployment-grid,
  .notification-list article,
  .milestone-list article {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .marketing-page,
  .construction-page {
    max-width: 100vw;
    overflow-x: hidden;
    padding: 14px 14px 92px;
  }

  .construction-brand {
    margin-bottom: 26px;
  }

  .construction-copy h1 {
    font-size: 34px;
    line-height: 1.04;
  }

  .construction-copy p {
    font-size: 16px;
  }

  .construction-actions,
  .construction-actions button,
  .construction-admin-link {
    width: 100%;
  }

  .construction-admin-link {
    justify-content: center;
  }

  .construction-visual,
  .construction-visual img {
    min-height: 300px;
    height: 300px;
  }

  .construction-status-card {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .marketing-nav {
    gap: 16px;
    margin-bottom: 28px;
  }

  .marketing-hero,
  .marketing-copy,
  .marketing-copy h1,
  .marketing-copy p,
  .marketing-actions,
  .auth-actions,
  .marketing-media {
    max-width: calc(100vw - 28px);
  }

  .marketing-links {
    display: flex;
    width: calc(100vw - 28px);
    align-items: center;
    flex-direction: row;
    gap: 18px;
    overflow-x: auto;
    padding: 0 0 10px;
    scrollbar-width: thin;
    white-space: nowrap;
  }

  .marketing-nav > .primary-button,
  .marketing-actions,
  .marketing-actions button,
  .auth-actions,
  .auth-actions button,
  .auth-actions a,
  .preview-panel button,
  .marketing-cta-card button {
    width: 100%;
  }

  .auth-actions {
    flex-direction: row;
  }

  .marketing-copy h1 {
    font-size: 32px;
    line-height: 1.02;
    max-width: 100%;
  }

  .marketing-copy::before {
    width: 44px;
    height: 44px;
  }

  .marketing-copy p {
    font-size: 16px;
  }

  .marketing-section {
    padding: 28px 0;
  }

  .marketing-section-heading h2,
  .marketing-section-heading h3,
  .info-layout h2 {
    font-size: 28px;
    line-height: 1.08;
  }

  .matrix-table-wrap {
    margin-right: -14px;
    margin-left: -14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .feature-table {
    min-width: 760px;
  }

  .feature-table th,
  .feature-table td {
    padding: 12px 10px;
    font-size: 13px;
  }

  .pricing-card,
  .info-card-grid article,
  .mobile-install-card,
  .mobile-grid article {
    border-radius: 12px;
  }

  .tester-float-button {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: none;
    padding: 12px 14px;
    font-size: 13px;
  }

  .marketing-media {
    min-height: 290px;
  }

  .marketing-media img {
    min-height: 290px;
  }

  .gallery-card,
  .gallery-card:first-child {
    min-height: 220px;
  }

  .info-image,
  .info-image img {
    min-height: 240px;
  }

  .app-shell,
  .sidebar,
  .main {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .sidebar {
    gap: 14px;
    padding: 14px 18px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand-mark svg {
    width: 40px;
    height: 40px;
  }

  .main {
    width: 100vw;
    padding: 18px;
  }

  .topbar p,
  .sidebar-panel p {
    max-width: calc(100vw - 86px);
  }

  .topbar,
  .section-title,
  .map-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions,
  .topbar-actions button {
    width: 100%;
  }

  .sidebar-panel {
    width: 100%;
  }

  .switch-row {
    align-items: center;
  }

  .switch-row span {
    min-width: 0;
  }

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

  .nav-list {
    display: flex;
    gap: 8px;
    margin: 0 -18px;
    overflow-x: auto;
    padding: 0 18px 4px;
    scrollbar-width: thin;
  }

  .nav-item {
    flex: 0 0 auto;
    min-width: 118px;
    min-height: 44px;
    padding: 10px 12px;
  }

  .nav-item svg {
    width: 18px;
    height: 18px;
  }

  .map-canvas {
    height: 310px;
  }

  .map-card {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 16px;
    max-width: none;
  }

  .request-card,
  .profile-card,
  .owner-form,
  .map-settings-form,
  .onboarding-step,
    .booking-step,
    .booking-payment,
    .payout-onboarding,
    .fee-settings-form,
    .webhook-rules-card,
    .admin-report {
      grid-template-columns: 1fr;
    }

  .admin-report > div:last-child {
    justify-items: start;
  }

  .deletion-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .owner-summary {
    grid-template-columns: 1fr;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .chat-message {
    max-width: 94%;
  }

  .request-card img,
  .profile-card img {
    max-height: 220px;
  }
}

@media (max-width: 430px) {
  .brand span {
    font-size: 18px;
  }

  .marketing-copy h1 {
    font-size: 29px;
  }

  .marketing-copy p,
  .marketing-section-heading p,
  .info-layout p {
    font-size: 15px;
  }

  .auth-actions {
    flex-direction: column;
  }

  .marketing-media,
  .marketing-media img {
    min-height: 230px;
  }

  .gallery-card,
  .gallery-card:first-child,
  .info-image,
  .info-image img {
    min-height: 210px;
  }

  .main {
    padding: 14px;
  }

  .topbar h1,
  .section-title h2 {
    font-size: 26px;
  }

  .topbar p,
  .section-title p,
  .sidebar-panel p {
    max-width: 100%;
    font-size: 14px;
  }

  .nav-item {
    min-width: 108px;
    font-size: 13px;
  }

  .map-canvas {
    height: 270px;
  }

  .tester-popup-layout {
    padding: 18px;
  }

  .tester-popup-fields {
    padding: 14px;
  }

}

.version-badge {
  position: fixed;
  right: 12px;
  bottom: 10px;
  z-index: 1200;
  padding: 7px 10px;
  border: 1px solid rgba(111, 72, 45, 0.18);
  border-radius: 8px;
  background: rgba(255, 251, 247, 0.92);
  color: #6f482d;
  box-shadow: 0 10px 24px rgba(86, 53, 33, 0.14);
  font-size: 12px;
  font-weight: 800;
}
