:root {
  --bg: #f1f5f8;
  --surface: #ffffff;
  --surface-soft: #e7f1fa;
  --surface-strong: #d1e2f3;
  --section-soft: #cddff0;
  --text: #181d24;
  --muted: #58697b;
  --line: #becddd;
  --line-strong: #24303d;
  --accent: #2f6154;
  --accent-strong: #244c42;
  --accent-soft: #deebe6;
  --accent-blue: #2f77c7;
  --accent-blue-strong: #1f5ea4;
  --accent-amber: #f0a23a;
  --accent-gold: #d7a63f;
  --accent-gold-soft: rgba(215, 166, 63, 0.28);
  --accent-gold-strong: #f0c978;
  --success: #2f6154;
  --forest-soft: #e9f1f7;
  --shadow: 0 20px 46px rgba(14, 22, 31, 0.12);
  --radius-topbar: 14px 14px 7px 14px;
  --radius-card: 18px 18px 8px 18px;
  --radius-card-tight: 14px 14px 7px 14px;
  --radius-button: 11px 11px 6px 11px;
  --radius-input: 12px 12px 6px 12px;
  --radius-modal: 18px 18px 10px 18px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f141a;
  --surface: #182129;
  --surface-soft: #1d2731;
  --surface-strong: #233140;
  --section-soft: #223142;
  --text: #eef4fb;
  --muted: #9fb2c6;
  --line: #304356;
  --line-strong: #d7e3ef;
  --accent: #4aa07f;
  --accent-strong: #3a886b;
  --accent-soft: #1d3129;
  --accent-blue: #5b9ef0;
  --accent-blue-strong: #427fc7;
  --accent-amber: #f5b44d;
  --accent-gold: #f3c35c;
  --accent-gold-soft: rgba(243, 195, 92, 0.5);
  --accent-gold-strong: #ffe7a8;
  --success: #62c39d;
  --forest-soft: #162028;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(69, 127, 188, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(234, 177, 105, 0.08), transparent 22%),
    linear-gradient(180deg, #f8fafc 0%, #eef3f7 100%);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(91, 158, 240, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(245, 180, 77, 0.1), transparent 22%),
    linear-gradient(180deg, #121820 0%, #0d1318 100%);
}

body.modal-open {
  overflow: hidden;
}

.page-scenery {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 0;
  height: min(44vh, 420px);
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(248, 251, 252, 0.64), rgba(247, 248, 250, 0)),
    url("/assets/graphics/background-estonia.svg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.32;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.72) 58%, transparent 100%);
}

html[data-theme="dark"] .page-scenery {
  opacity: 0.18;
  filter: saturate(0.9) brightness(0.55);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1340px, calc(100% - 40px));
  margin: 0 auto;
  padding: 10px 0 56px;
}

.topbar,
.footer,
.top-actions,
.topnav,
.service-pills,
.chip-row,
.trust-strip,
.trust-strip div,
.results-header,
.card-meta,
.card-footer,
.detail-profile,
.detail-price-row,
.detail-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar {
  position: sticky;
  top: 4px;
  z-index: 20;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 253, 0.98) 100%);
  border: 1.5px solid rgba(24, 29, 36, 0.14);
  border-radius: var(--radius-topbar);
  box-shadow:
    inset 0 0 0 1px var(--accent-gold-soft),
    0 12px 30px rgba(26, 34, 44, 0.09);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.brand__icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 22px rgba(78, 101, 255, 0.14));
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand strong,
h1,
h2,
h3,
.service-card h4,
.category-card strong {
  letter-spacing: -0.04em;
}

.brand strong {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand small,
.muted,
.section-text,
.payment-card p,
.advantage-card p,
.category-card span,
.service-card p,
.footer p,
.detail-description,
.detail-subtitle,
.detail-side-card p {
  color: var(--muted);
}

.brand small {
  display: block;
  margin-top: 2px;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #20353d 0%, #2f6154 52%, #4f7f9b 100%);
  color: #ffffff;
  font-weight: 800;
}

.header-search {
  position: relative;
  flex: 0 1 268px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 7px 0 12px;
  background: linear-gradient(180deg, #eef5fb 0%, #e5eef7 100%);
  border: 1.5px solid rgba(33, 48, 66, 0.12);
  border-radius: var(--radius-input);
}

.header-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.header-search input:focus {
  outline: none;
}

.header-search > button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--accent-blue-strong);
  font: inherit;
  cursor: pointer;
}

.search-suggest-host {
  position: relative;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: stretch;
  align-items: stretch;
  gap: 8px;
  width: min(300px, calc(100vw - 40px));
  max-height: 360px;
  overflow-y: auto;
  padding: 10px;
  background: rgba(255, 255, 255, 0.98);
  border: 1.5px solid rgba(240, 201, 120, 0.76);
  border-radius: 18px 18px 10px 18px;
  box-shadow:
    inset 0 0 0 1px rgba(240, 201, 120, 0.2),
    0 24px 48px rgba(19, 28, 38, 0.18);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 35;
}

.search-suggestions--open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.search-suggestions--closing {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.search-suggestion-item {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  align-items: flex-start;
  justify-items: stretch;
  gap: 9px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 78px;
  border: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 252, 0.96) 100%);
  color: var(--text);
  text-align: left;
  padding: 14px 15px;
  border-radius: 14px 14px 8px 14px;
  box-shadow: inset 0 0 0 1px rgba(240, 201, 120, 0.24);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  white-space: normal;
  overflow: visible;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.search-suggestion-item__title {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.16;
  color: var(--text);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
}

.search-suggestion-item__meta {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-width: 0;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(240, 201, 120, 0.12);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion-item:hover {
  background: linear-gradient(180deg, #eef5fb 0%, #e5eef7 100%);
  transform: translateX(2px);
  box-shadow: inset 0 0 0 1px rgba(240, 201, 120, 0.34);
}

.topnav {
  flex-wrap: nowrap;
  gap: 8px;
}

.topnav a,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1.5px solid rgba(240, 201, 120, 0.38);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 0 0 1px rgba(255, 214, 132, 0.06),
    0 6px 16px rgba(24, 33, 41, 0.04);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.1;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.topnav a:hover,
.link-button:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 201, 120, 0.6);
  box-shadow:
    inset 0 0 0 1px rgba(255, 214, 132, 0.12),
    0 10px 20px rgba(24, 33, 41, 0.08);
}

.top-actions {
  gap: 8px;
}

.top-actions .ghost-button {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 12px;
  font-size: 0.84rem;
}

.language-switcher {
  position: relative;
}

.language-switcher[open] {
  z-index: 30;
}

.language-switcher__toggle,
.language-switcher__option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  border: 1.5px solid rgba(24, 29, 36, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.language-switcher__toggle {
  box-shadow:
    inset 0 0 0 1px var(--accent-gold-soft),
    0 0 0 1px rgba(255, 214, 132, 0.06);
}

.language-switcher__toggle {
  display: flex;
  list-style: none;
  min-width: 52px;
  justify-content: center;
  padding: 0 8px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(24, 33, 41, 0.05);
}

.language-switcher__toggle::-webkit-details-marker {
  display: none;
}

.language-switcher__toggle::after {
  content: "▾";
  color: var(--muted);
  font-size: 0.76rem;
  margin-left: 4px;
  transition: transform 180ms ease, color 180ms ease;
}

.language-switcher[open] .language-switcher__toggle::after {
  transform: rotate(180deg);
}

.theme-switcher {
  position: relative;
  border-radius: 999px;
}

.theme-switcher__toggle,
.theme-switcher__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-height: 38px;
  border: 1.5px solid rgba(24, 29, 36, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  cursor: pointer;
}

.theme-switcher__toggle {
  list-style: none;
  border-radius: 999px;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px var(--accent-gold-soft),
    0 6px 16px rgba(24, 33, 41, 0.05);
}

.theme-switcher__toggle::-webkit-details-marker {
  display: none;
}

.theme-switcher__icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--accent-blue-strong);
}

.theme-switcher__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.theme-switcher__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 16px 16px 10px 16px;
  border: 1px solid rgba(24, 29, 36, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 32px rgba(24, 33, 41, 0.14);
  z-index: 35;
  transform-origin: top right;
}

.theme-switcher__option {
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.theme-switcher__option.active {
  border-color: rgba(91, 158, 240, 0.34);
  background: linear-gradient(180deg, rgba(233, 244, 255, 0.98) 0%, rgba(223, 238, 255, 0.98) 100%);
}

html[data-theme="dark"] .theme-switcher__toggle,
html[data-theme="dark"] .language-switcher__toggle,
html[data-theme="dark"] .language-switcher__option {
  background: linear-gradient(180deg, rgba(28, 38, 48, 0.98) 0%, rgba(24, 33, 41, 0.98) 100%);
  border-color: rgba(215, 227, 239, 0.12);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .theme-switcher__icon {
  color: var(--accent-amber);
}

html[data-theme="dark"] .theme-switcher__menu {
  border-color: rgba(243, 195, 92, 0.28);
  background: linear-gradient(180deg, rgba(28, 38, 48, 0.98) 0%, rgba(23, 31, 39, 0.98) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 225, 150, 0.08),
    0 18px 36px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(243, 195, 92, 0.12);
}

html[data-theme="dark"] .theme-switcher__option.active {
  border-color: rgba(255, 210, 92, 0.75);
  background: linear-gradient(180deg, rgba(68, 57, 22, 0.96) 0%, rgba(51, 43, 16, 0.96) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 231, 168, 0.18),
    0 0 18px rgba(255, 205, 88, 0.18);
}

.language-switcher__label,
.language-switcher__option-label {
  white-space: nowrap;
}

.language-switcher__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 76px;
  display: grid;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(24, 33, 41, 0.12);
  backdrop-filter: blur(10px);
  z-index: 30;
  transform-origin: top right;
}

.theme-switcher[open] .theme-switcher__menu,
.language-switcher[open] .language-switcher__menu {
  animation: dropdown-slide-in 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.language-switcher.closing .language-switcher__menu {
  animation: dropdown-slide-out 180ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes dropdown-slide-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }

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

@keyframes dropdown-slide-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
}

.language-switcher__option {
  width: 100%;
  justify-content: center;
  padding: 0 8px;
  border-radius: 12px;
}

.language-switcher__option.active,
.language-switcher__option:hover {
  background: var(--surface-soft);
  border-color: #d5dfe8;
}

.language-switcher__flag {
  font-size: 1rem;
  line-height: 1;
}

.account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(37, 43, 51, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  box-shadow:
    inset 0 0 0 1px var(--accent-gold-soft),
    0 0 18px rgba(240, 201, 120, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.account-button:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 43, 51, 0.22);
  box-shadow: 0 10px 22px rgba(24, 33, 41, 0.08);
}

.account-button__icon,
.account-summary-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.avatar--photo,
.detail-avatar--photo {
  overflow: hidden;
  padding: 0;
}

.account-button__icon svg,
.account-summary-card__icon svg,
.account-button__icon--photo img,
.account-summary-card__icon img,
.avatar--photo img,
.detail-avatar--photo img {
  display: block;
  width: 100%;
  height: 100%;
}

.account-button__icon--photo img,
.account-summary-card__icon img,
.avatar--photo img,
.detail-avatar--photo img {
  object-fit: cover;
}

.hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 320px;
  background:
    radial-gradient(circle at 14% 20%, rgba(74, 135, 194, 0.34), transparent 24%),
    radial-gradient(circle at 78% 22%, rgba(240, 162, 58, 0.24), transparent 18%),
    radial-gradient(circle at 70% 78%, rgba(47, 97, 84, 0.14), transparent 24%),
    linear-gradient(135deg, #d0e3f4 0%, #c8ddef 38%, #c1d8ec 100%);
  overflow: hidden;
  border-top: 1px solid rgba(47, 97, 84, 0.12);
  border-bottom: 1px solid rgba(24, 29, 36, 0.08);
}

.hero-inner {
  width: min(1340px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 320px;
  padding: 46px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 28px;
  align-items: center;
}

.hero-copy,
.finder-panel,
.trust-strip,
.category-card,
.service-card,
.payment-card,
.advantage-card,
.escrow-card,
.detail-header-card,
.detail-side-card,
.detail-info-card,
.service-line,
.detail-empty {
  animation: fade-up 0.55s ease both;
}

.hero-copy {
  max-width: 720px;
}

.hero-logo-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 300px;
  padding: 12px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  isolation: isolate;
}

.hero-logo-panel__image {
  width: min(112%, 780px);
  max-width: none;
  max-height: 300px;
  height: auto;
  display: block;
  margin-left: -74px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  filter: saturate(1.08) contrast(1.03) drop-shadow(0 18px 30px rgba(59, 80, 255, 0.2));
}

.hero-logo-panel__image--dark {
  display: none;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6f8195;
}

h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.9rem, 4.2vw, 4.4rem);
  line-height: 1.06;
}

.lead {
  max-width: 52ch;
  margin: 16px 0 0;
  line-height: 1.65;
  font-size: 1rem;
}

.hero-cta {
  margin-top: 28px;
  min-width: 260px;
}

.directory-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin: 8px 0 6px;
  padding: 28px 30px;
  border-radius: 18px 18px 8px 18px;
  background:
    linear-gradient(135deg, rgba(47, 119, 199, 0.14) 0%, rgba(240, 162, 58, 0.12) 42%, rgba(47, 97, 84, 0.14) 100%),
    linear-gradient(180deg, #eef5fb 0%, #dce9f4 100%);
  border: 1.5px solid rgba(24, 29, 36, 0.12);
  box-shadow: 0 22px 44px rgba(24, 33, 41, 0.1);
}

.directory-hero__copy {
  max-width: 70ch;
}

.directory-results {
  padding-top: 18px;
}

.finder-panel {
  margin: 18px auto 14px;
  padding: 22px 24px 24px;
  border-radius: 18px 18px 8px 18px;
  background: linear-gradient(180deg, #d9e7f3 0%, #ccdeee 100%);
  border: 1.5px solid rgba(24, 29, 36, 0.12);
  box-shadow: 0 20px 40px rgba(35, 53, 67, 0.1);
}

html[data-theme="dark"] .topbar {
  background: linear-gradient(180deg, rgba(24, 33, 41, 0.98) 0%, rgba(20, 28, 35, 0.98) 100%);
  border-color: rgba(243, 195, 92, 0.58);
  box-shadow:
    inset 0 0 0 1px var(--accent-gold-soft),
    0 0 32px rgba(243, 195, 92, 0.18),
    0 14px 32px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .header-search {
  background: linear-gradient(180deg, #202c37 0%, #1a242d 100%);
  border-color: rgba(215, 227, 239, 0.1);
}

html[data-theme="dark"] .language-switcher__menu {
  border-color: rgba(243, 195, 92, 0.28);
  background: linear-gradient(180deg, rgba(28, 38, 48, 0.98) 0%, rgba(23, 31, 39, 0.98) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 225, 150, 0.08),
    0 18px 36px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(243, 195, 92, 0.12);
}

html[data-theme="dark"] .search-suggestions {
  background: rgba(24, 33, 41, 0.98);
  border-color: rgba(243, 195, 92, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(243, 195, 92, 0.18),
    0 26px 46px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .search-suggestion-item {
  background: linear-gradient(180deg, rgba(32, 44, 55, 0.98) 0%, rgba(25, 35, 44, 0.98) 100%);
  box-shadow: inset 0 0 0 1px rgba(243, 195, 92, 0.24);
}

html[data-theme="dark"] .search-suggestion-item__title {
  color: #f6f8fb;
}

html[data-theme="dark"] .search-suggestion-item__meta {
  background: rgba(243, 195, 92, 0.14);
  color: #d2d9e4;
}

html[data-theme="dark"] .search-suggestion-item:hover {
  background: linear-gradient(180deg, rgba(39, 53, 67, 0.96) 0%, rgba(31, 43, 54, 0.96) 100%);
  box-shadow: inset 0 0 0 1px rgba(243, 195, 92, 0.34);
}

html[data-theme="dark"] .language-switcher__option.active,
html[data-theme="dark"] .language-switcher__option:hover {
  background: linear-gradient(180deg, rgba(39, 53, 67, 0.96) 0%, rgba(31, 43, 54, 0.96) 100%);
  border-color: rgba(243, 195, 92, 0.34);
}

html[data-theme="dark"] .header-search button,
html[data-theme="dark"] .topnav a,
html[data-theme="dark"] .link-button {
  color: var(--text);
}

html[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 14% 20%, rgba(91, 158, 240, 0.2), transparent 24%),
    radial-gradient(circle at 78% 22%, rgba(245, 180, 77, 0.14), transparent 18%),
    radial-gradient(circle at 70% 78%, rgba(74, 160, 127, 0.1), transparent 24%),
    linear-gradient(135deg, #182432 0%, #14202b 38%, #101a22 100%);
  border-top-color: rgba(91, 158, 240, 0.18);
  border-bottom-color: rgba(215, 227, 239, 0.08);
}

html[data-theme="dark"] .directory-hero,
html[data-theme="dark"] .finder-panel {
  background: linear-gradient(180deg, rgba(29, 39, 49, 0.95) 0%, rgba(24, 33, 41, 0.95) 100%);
  border-color: rgba(243, 195, 92, 0.46);
  box-shadow:
    inset 0 0 0 1px var(--accent-gold-soft),
    0 0 36px rgba(243, 195, 92, 0.16),
    0 24px 48px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .hero-logo-panel__image--light {
  display: none;
}

html[data-theme="dark"] .hero-logo-panel__image--dark {
  display: block;
}

html[data-theme="dark"] .hero-logo-panel__image {
  filter: saturate(1.08) contrast(1.02) brightness(1) drop-shadow(0 24px 46px rgba(65, 91, 255, 0.42));
}

html[data-theme="dark"] .brand__icon {
  filter:
    drop-shadow(0 10px 18px rgba(86, 114, 255, 0.24))
    drop-shadow(0 0 18px rgba(83, 116, 255, 0.18));
}

html[data-theme="dark"] .search-field input,
html[data-theme="dark"] .field-stack input,
html[data-theme="dark"] .field-stack select,
html[data-theme="dark"] .field-stack textarea {
  background: #141d25;
  border-color: rgba(215, 227, 239, 0.1);
  color: var(--text);
}

html[data-theme="dark"] .search-field input:focus,
html[data-theme="dark"] .field-stack input:focus,
html[data-theme="dark"] .field-stack select:focus,
html[data-theme="dark"] .field-stack textarea:focus {
  border-color: rgba(91, 158, 240, 0.46);
}

html[data-theme="dark"] .primary-button {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .secondary-button,
html[data-theme="dark"] .ghost-button {
  background: linear-gradient(180deg, #22303d 0%, #1c2731 100%);
  border-color: rgba(243, 195, 92, 0.5);
  box-shadow:
    inset 0 0 0 1px var(--accent-gold-soft),
    0 0 22px rgba(243, 195, 92, 0.14);
  color: var(--text);
}

html[data-theme="dark"] .trust-strip,
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .payment-card,
html[data-theme="dark"] .advantage-card,
html[data-theme="dark"] .escrow-card,
html[data-theme="dark"] .detail-header-card,
html[data-theme="dark"] .detail-side-card,
html[data-theme="dark"] .detail-info-card,
html[data-theme="dark"] .detail-empty,
html[data-theme="dark"] .service-line,
html[data-theme="dark"] .seller-launch-card,
html[data-theme="dark"] .booking-card,
html[data-theme="dark"] .seller-card,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .auth-summary,
html[data-theme="dark"] .auth-status-card,
html[data-theme="dark"] .account-summary-card,
html[data-theme="dark"] .admin-stat-card,
html[data-theme="dark"] .seller-stack-card {
  background: linear-gradient(180deg, #1a242d 0%, #151e26 100%);
  border-color: rgba(215, 227, 239, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .trust-strip span,
html[data-theme="dark"] .service-pill__icon,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .price-tag,
html[data-theme="dark"] .card-tags span,
html[data-theme="dark"] .service-preview,
html[data-theme="dark"] .card-open-label,
html[data-theme="dark"] .account-summary-item,
html[data-theme="dark"] .certificate-item,
html[data-theme="dark"] .certificate-public-card,
html[data-theme="dark"] .seller-sector-card,
html[data-theme="dark"] .admin-row,
html[data-theme="dark"] .admin-role,
html[data-theme="dark"] .detail-highlights span,
html[data-theme="dark"] .detail-avatar {
  background: linear-gradient(180deg, #22303b 0%, #1b252e 100%);
  border-color: rgba(215, 227, 239, 0.1);
  color: var(--text);
}

html[data-theme="dark"] .service-pill__icon {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

html[data-theme="dark"] .service-pill__icon::before {
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01) 56%),
    linear-gradient(180deg, rgba(31, 42, 56, 0.96) 0%, rgba(22, 30, 40, 0.98) 100%);
  border-color: rgba(240, 201, 120, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 14px 28px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .service-pill:hover .service-pill__icon::before,
html[data-theme="dark"] .service-pill.active .service-pill__icon::before {
  border-color: rgba(240, 201, 120, 0.4);
}

html[data-theme="dark"] .category-card__badge {
  background: linear-gradient(180deg, rgba(240, 201, 120, 0.18) 0%, rgba(240, 201, 120, 0.1) 100%);
  border-color: rgba(240, 201, 120, 0.24);
}

html[data-theme="dark"] .detail-breadcrumbs,
html[data-theme="dark"] .detail-subtitle,
html[data-theme="dark"] .detail-facts,
html[data-theme="dark"] .detail-list,
html[data-theme="dark"] .service-line p,
html[data-theme="dark"] .service-line-meta span {
  color: rgba(215, 227, 239, 0.72);
}

html[data-theme="dark"] .language-switcher__toggle,
html[data-theme="dark"] .account-button,
html[data-theme="dark"] .theme-switcher {
  border-color: rgba(243, 195, 92, 0.56);
  box-shadow:
    inset 0 0 0 1px var(--accent-gold-soft),
    0 0 24px rgba(243, 195, 92, 0.18);
}

html[data-theme="dark"] .language-switcher__menu {
  background: linear-gradient(180deg, rgba(25, 34, 43, 0.99) 0%, rgba(18, 25, 33, 0.99) 100%) !important;
  border-color: rgba(243, 195, 92, 0.42) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 225, 150, 0.1),
    0 18px 36px rgba(0, 0, 0, 0.38),
    0 0 24px rgba(243, 195, 92, 0.14) !important;
}

html[data-theme="dark"] .language-switcher__option {
  background: linear-gradient(180deg, rgba(32, 43, 54, 0.98) 0%, rgba(24, 34, 43, 0.98) 100%);
  border-color: rgba(243, 195, 92, 0.18);
  color: #f4f7fb;
}

html[data-theme="dark"] .header-search {
  border-color: rgba(243, 195, 92, 0.26);
  box-shadow:
    inset 0 0 0 1px rgba(243, 195, 92, 0.18),
    0 0 18px rgba(243, 195, 92, 0.08);
}

html[data-theme="dark"] .service-card-link:hover,
html[data-theme="dark"] .category-card:hover,
html[data-theme="dark"] .auth-choice-card:hover,
html[data-theme="dark"] .seller-sector-card:hover {
  background: linear-gradient(180deg, #202c37 0%, #1a242d 100%);
  border-color: rgba(243, 195, 92, 0.54);
  box-shadow:
    inset 0 0 0 1px rgba(255, 231, 168, 0.18),
    0 0 28px rgba(243, 195, 92, 0.14),
    0 22px 44px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .service-card-link:hover .price-tag,
html[data-theme="dark"] .service-card-link:hover .service-preview,
html[data-theme="dark"] .service-card-link:hover .card-open-label {
  background: linear-gradient(180deg, #273543 0%, #202b36 100%);
  border-color: rgba(91, 158, 240, 0.2);
}

html[data-theme="dark"] .auth-modal__dialog {
  background: rgba(23, 31, 39, 0.98);
  border-color: rgba(215, 227, 239, 0.12);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .auth-modal__close {
  background: #1b252f;
  border-color: rgba(215, 227, 239, 0.12);
  color: var(--text);
}

html[data-theme="dark"] .auth-modal--account .auth-modal__close,
html[data-theme="dark"] #profile-modal .auth-modal__close {
  background: transparent;
}

html[data-theme="dark"] .account-summary-card__icon {
  background: linear-gradient(180deg, #243240 0%, #1c2832 100%);
  border-color: rgba(215, 227, 239, 0.12);
  color: var(--text);
}

html[data-theme="dark"] .certificate-item__preview,
html[data-theme="dark"] .certificate-public-card__preview {
  background: linear-gradient(180deg, #243240 0%, #1d2833 100%);
  border-color: rgba(215, 227, 239, 0.12);
}

html[data-theme="dark"] .seller-sector-card.active,
html[data-theme="dark"] .admin-role--admin,
html[data-theme="dark"] .category-card.active {
  border-color: rgba(91, 158, 240, 0.24);
}

.search-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(180px, 0.9fr) auto;
  gap: 14px;
  align-items: center;
}

.search-shell--city-only {
  grid-template-columns: minmax(220px, 360px) auto;
  justify-content: end;
}

.search-field {
  display: grid;
}

.search-field span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.search-field input {
  width: 100%;
  min-height: 58px;
  padding: 0 22px;
  border: 1.5px solid #c7d6e4;
  border-radius: var(--radius-input);
  background: #ffffff;
  font: inherit;
  color: var(--text);
}

.search-field input:focus {
  outline: 3px solid rgba(69, 127, 188, 0.18);
  border-color: #80a6cb;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: var(--radius-button);
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-blue) 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(47, 97, 84, 0.18);
  border-color: var(--accent-gold-soft);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.chip:hover,
.service-card:hover,
.category-card:hover,
.payment-card:hover,
.advantage-card:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent-blue-strong) 100%);
}

.primary-button.compact,
.ghost-button {
  min-height: 46px;
  padding-inline: 18px;
}

.secondary-button,
.ghost-button {
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
  border-color: rgba(24, 29, 36, 0.14);
  box-shadow:
    inset 0 0 0 1px var(--accent-gold-soft),
    0 0 12px rgba(240, 201, 120, 0.04);
}

.service-pills {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.service-pill,
.badge,
.chip,
.price-tag,
.card-tags span,
.trust-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
}

.service-pill {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: transform 180ms ease, opacity 180ms ease;
}

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

.service-pill--icon {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.service-pill__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  transition: transform 180ms ease;
}

.service-pill__icon::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 56%),
    linear-gradient(180deg, rgba(30, 42, 55, 0.9) 0%, rgba(18, 26, 35, 0.97) 100%);
  border: 1.5px solid rgba(240, 201, 120, 0.24);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 12px 26px rgba(11, 18, 26, 0.16);
  transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.service-pill__icon img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1.12);
  filter: saturate(1.08) drop-shadow(0 8px 18px rgba(70, 94, 255, 0.18));
}

.service-pill__label {
  max-width: 13ch;
  font-size: 0.96rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}

.service-pill.active .service-pill__icon::before {
  border-color: rgba(240, 201, 120, 0.54);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 16px 30px rgba(16, 24, 34, 0.24);
}

.service-pill.active .service-pill__icon img {
  filter: saturate(1.14) drop-shadow(0 8px 16px rgba(255, 255, 255, 0.18));
}

.service-pill:hover .service-pill__icon {
  transform: translateY(-3px) scale(1.02);
}

.service-pill:hover .service-pill__icon::before {
  border-color: rgba(240, 201, 120, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 16px 28px rgba(16, 24, 34, 0.22);
  transform: scale(1.03);
}

.chip-row {
  flex-wrap: wrap;
  margin-top: 16px;
}

.chip-row--finder {
  justify-content: center;
}

.chip {
  padding: 11px 16px;
  border: 1.5px solid rgba(24, 29, 36, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  cursor: pointer;
}

.chip.active {
  background: linear-gradient(135deg, var(--accent-blue-strong) 0%, var(--accent) 100%);
  border-color: transparent;
  color: #ffffff;
}

.trust-strip,
.category-card,
.service-card,
.payment-card,
.advantage-card,
.escrow-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1.5px solid rgba(24, 29, 36, 0.12);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.trust-strip {
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 18px 0 18px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f2f7fb 100%);
}

.trust-strip p {
  margin: 0;
  max-width: 58ch;
  font-weight: 700;
}

.trust-strip div {
  flex-wrap: wrap;
}

.trust-strip span {
  padding: 10px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #edf3f8 100%);
  border: 1.5px solid rgba(24, 29, 36, 0.1);
}

.section {
  padding: 42px 0 10px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading.compact {
  grid-template-columns: 1fr;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.section h3 {
  margin: 0;
  font-size: 1.3rem;
}

.section-text,
.payment-card p,
.advantage-card p,
.category-card span,
.service-card p,
.footer p {
  line-height: 1.65;
}

.services-showcase {
  padding-top: 12px;
}

.category-grid,
.advantage-grid,
.payment-layout,
.cards-grid {
  display: grid;
  gap: 14px;
}

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

.category-card,
.advantage-card,
.payment-card {
  padding: 22px;
}

.category-card {
  appearance: none;
  display: grid;
  gap: 10px;
  width: 100%;
  min-height: 258px;
  position: relative;
  overflow: hidden;
  align-content: start;
  text-align: left;
  color: inherit;
  cursor: pointer;
  font: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 253, 0.98) 100%);
}

.category-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 28px;
  margin-top: 4px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(240, 201, 120, 0.22) 0%, rgba(240, 201, 120, 0.12) 100%);
  border: 1px solid rgba(240, 201, 120, 0.3);
  color: var(--accent-gold-strong);
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.category-card strong {
  font-size: clamp(1.48rem, 1.9vw, 1.9rem);
  line-height: 1.1;
}

.category-card span {
  max-width: 22ch;
}

.category-card__media {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 58%;
  height: 68%;
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
  pointer-events: none;
}

.category-card--auto .category-card__media {
  width: 63%;
  height: 56%;
  right: -20px;
  bottom: -2px;
  background-image: url("/assets/graphics/category-auto-neon.png");
  background-size: 100% auto;
  background-position: right bottom;
}

.category-card--home .category-card__media {
  width: 60%;
  height: 64%;
  right: -12px;
  bottom: 0;
  background-image: url("/assets/graphics/category-home-neon.png");
  background-size: 100% auto;
  background-position: right bottom;
}

.category-card--electronics .category-card__media {
  width: 58%;
  height: 54%;
  right: -10px;
  bottom: 0;
  background-image: url("/assets/graphics/category-computer-neon.png");
  background-size: 100% auto;
  background-position: right bottom;
}

.category-card--appliance .category-card__media {
  width: 48%;
  height: 58%;
  right: -2px;
  bottom: 10px;
  background-image: url("/assets/graphics/category-appliance-neon.png");
  background-size: contain;
  background-position: right bottom;
}

.category-card--beauty .category-card__media {
  width: 60%;
  height: 52%;
  right: -8px;
  bottom: 2px;
  background-image: url("/assets/graphics/category-beauty-neon.png");
  background-size: 100% auto;
  background-position: right bottom;
}

.category-card--urgent .category-card__media {
  width: 54%;
  height: 64%;
  right: -8px;
  bottom: -2px;
  background-image: url("/assets/graphics/category-urgent-neon.png");
  background-size: contain;
  background-position: right bottom;
}

.results-header {
  justify-content: space-between;
  margin-top: 34px;
}

.results-count {
  color: var(--muted);
  font-weight: 800;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card h4 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.card-meta {
  align-items: flex-start;
}

.avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px 14px 8px 14px;
  background: linear-gradient(135deg, #eef4f8 0%, #dce8f2 100%);
  color: #5f7287;
  font-weight: 800;
}

.meta-stack {
  flex: 1;
}

.price-tag {
  padding: 10px 12px;
  background: linear-gradient(180deg, #eaf2f9 0%, #dde9f4 100%);
  color: var(--text);
  border: 1px solid rgba(24, 29, 36, 0.08);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span {
  padding: 7px 10px;
  background: linear-gradient(180deg, #f7fafc 0%, #eef4f8 100%);
  border: 1.5px solid rgba(24, 29, 36, 0.08);
  color: var(--muted);
}

.service-preview {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius-card-tight);
  background: linear-gradient(180deg, #f6fafd 0%, #eef4f8 100%);
  border: 1.5px solid rgba(24, 29, 36, 0.08);
}

.service-preview strong {
  font-size: 0.96rem;
}

.service-preview span {
  color: var(--muted);
  font-size: 0.9rem;
}

.card-footer {
  justify-content: space-between;
  margin-top: auto;
}

.card-actions {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.status {
  margin: 0;
  color: var(--success);
  font-weight: 800;
}

.card-open-label {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #edf4fa 0%, #e1ebf5 100%);
  border: 1.5px solid rgba(24, 29, 36, 0.1);
  color: var(--text);
  font-weight: 800;
}

.service-card-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.service-card-link:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f2f7fb 100%);
  border-color: rgba(31, 94, 164, 0.28);
  box-shadow: 0 22px 44px rgba(24, 33, 41, 0.14);
}

.service-card-link:hover .price-tag,
.service-card-link:hover .service-preview,
.service-card-link:hover .card-open-label {
  background: #eaf2f9;
  border-color: rgba(31, 94, 164, 0.18);
}

.service-card-link:hover .avatar {
  background: linear-gradient(135deg, #edf3f7 0%, #dce8f2 100%);
}

.category-card:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fc 100%);
  border-color: var(--accent-gold);
  box-shadow:
    inset 0 0 0 1px rgba(255, 216, 141, 0.22),
    0 18px 34px rgba(24, 33, 41, 0.12);
}

.category-card.active {
  background: linear-gradient(135deg, #2f6599 0%, #284753 52%, #2f6154 100%);
  border-color: #2f6599;
  box-shadow: 0 22px 44px rgba(24, 33, 41, 0.18);
}

.category-card.active strong,
.category-card.active span {
  color: #f4fbff;
}

.split-section {
  display: grid;
  gap: 28px;
}

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

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

.seller-launch-card,
.booking-card,
.seller-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.seller-launch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
}

.seller-launch-card--admin {
  background: linear-gradient(180deg, rgba(247, 250, 252, 0.98) 0%, rgba(239, 245, 249, 0.98) 100%);
}

.portal-grid,
.admin-layout {
  display: grid;
  gap: 18px;
}

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

.portal-grid--accounts {
  align-items: start;
}

.seller-layout,
.seller-overview,
.booking-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

.auth-section {
  padding-top: 10px;
}

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

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

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.auth-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 30, 38, 0.56);
  backdrop-filter: blur(8px);
}

.auth-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 24px;
  border-radius: var(--radius-modal);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(37, 43, 51, 0.08);
  box-shadow: 0 32px 80px rgba(15, 23, 31, 0.22);
}

.auth-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px 14px 9px 14px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.auth-modal__panel,
.auth-modal__summary {
  display: grid;
  gap: 20px;
}

.auth-modal__summary--account {
  max-width: 430px;
  margin: 0 auto;
  width: min(430px, 100%);
}

.auth-modal__actions,
.auth-modal__message {
  margin-top: 10px;
}

.auth-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-modal-brand {
  display: inline-grid;
  grid-template-columns: 44px auto;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  margin-bottom: 22px;
  color: var(--text);
}

.auth-modal-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(46, 99, 255, 0.26));
}

.auth-modal-brand span {
  display: grid;
  gap: 3px;
}

.auth-modal-brand strong {
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.auth-modal-brand small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-card,
.auth-summary {
  padding: 24px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.auth-card--narrow,
.auth-status-card {
  max-width: 720px;
}

.auth-status-card {
  padding: 24px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.auth-entry-card {
  gap: 22px;
}

.auth-entry-card--admin {
  background: linear-gradient(180deg, rgba(247, 250, 252, 0.98) 0%, rgba(239, 245, 249, 0.98) 100%);
}

.auth-entry-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.auth-choice-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  text-align: left;
  border-radius: 20px 20px 10px 20px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.auth-choice-card h3,
.auth-choice-card p {
  margin: 0;
}

.auth-choice-card:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: #d5dfe8;
  box-shadow: 0 18px 40px rgba(24, 33, 41, 0.08);
}

.auth-flow-card {
  max-width: 720px;
}

.auth-info-card {
  max-width: 920px;
}

.auth-summary p {
  margin: 0;
}

.account-summary-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.account-summary-card__head {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.account-summary-card__icon {
  width: 76px;
  height: 76px;
  padding: 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 43, 51, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  color: #22272f;
}

.account-summary-card__head h2,
.account-summary-card__head p {
  margin: 0;
}

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

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

.account-avatar-manager__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-upload-button {
  position: relative;
  overflow: hidden;
}

.account-summary-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius-card-tight);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.account-summary-item span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.account-summary-item strong,
.account-summary-item p {
  margin: 0;
  line-height: 1.45;
}

.account-summary-item p {
  color: var(--text);
  font-weight: 700;
}

.account-summary-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-modal--account .auth-modal__dialog,
#profile-modal .auth-modal__dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.auth-modal--account .auth-modal__close,
#profile-modal .auth-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 2rem;
  line-height: 1;
}

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

.admin-stat-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.admin-stat-card span {
  color: var(--muted);
  font-weight: 800;
}

.admin-stat-card strong {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.finance-stats {
  margin-bottom: 18px;
}

.finance-stat-card strong {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

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

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border-radius: var(--radius-card-tight);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

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

.admin-row__actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.admin-action-stack {
  display: grid;
  gap: 8px;
  width: 100%;
  justify-items: end;
}

.admin-danger-button {
  border-color: rgba(196, 70, 70, 0.38);
  color: #a94141;
}

html[data-theme="dark"] .admin-danger-button {
  border-color: rgba(255, 119, 119, 0.46);
  color: #ff9d9d;
  box-shadow:
    inset 0 0 0 1px rgba(255, 152, 152, 0.08),
    0 0 18px rgba(201, 72, 72, 0.1);
}

.finance-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(220px, auto);
}

.finance-table .section-text {
  margin: 0;
}

.admin-role {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-role--admin {
  background: linear-gradient(180deg, #eff7f4 0%, #e3f1eb 100%);
  border-color: rgba(47, 97, 84, 0.2);
  color: var(--accent-strong);
}

.seller-layout,
.seller-overview {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.booking-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.seller-card,
.booking-card {
  padding: 24px;
}

.seller-card--aside {
  align-content: start;
}

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

.seller-sector-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card-tight);
  background: #ffffff;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.seller-sector-card:hover {
  transform: translateY(-2px);
  border-color: #d1dce6;
  box-shadow: 0 14px 28px rgba(22, 30, 38, 0.08);
}

.seller-sector-card.active {
  border-color: rgba(47, 97, 84, 0.34);
  background: linear-gradient(180deg, #f7fbf9 0%, #eef7f2 100%);
  box-shadow: 0 16px 32px rgba(34, 57, 50, 0.1);
}

.seller-sector-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px 12px 8px 12px;
  background: var(--surface-strong);
  color: #5b7084;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.seller-sector-card.active .seller-sector-card__icon {
  background: var(--accent);
  color: #ffffff;
}

.seller-sector-card__text {
  font-weight: 800;
  line-height: 1.3;
}

.seller-stack-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 20px 20px 10px 20px;
  background: #f9fbfd;
  border: 1px solid var(--line);
}

.seller-stack-card--soft {
  background: linear-gradient(180deg, #fbfdff 0%, #f5f8fb 100%);
}

.seller-stack-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.seller-stack-card__head h3 {
  margin: 0 0 6px;
}

.seller-stack-card__head .section-text {
  margin: 0;
}

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

.certificate-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.certificate-item__preview {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfdff 0%, #f2f6fa 100%);
}

.certificate-item__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.certificate-item__placeholder,
.certificate-public-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.certificate-item__meta {
  display: grid;
  gap: 8px;
}

.certificate-item__meta strong {
  line-height: 1.35;
}

.seller-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.seller-summary-row--stack {
  display: grid;
  gap: 8px;
}

.seller-summary-row p {
  margin: 0;
}

.seller-form,
.booking-form {
  display: grid;
  gap: 16px;
}

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

.field-stack {
  display: grid;
  gap: 8px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 94px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--text);
  border-color: #d1dce6;
}

.field-stack span,
.field-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
}

.field-stack input,
.field-stack select,
.field-stack textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.field-stack textarea {
  min-height: 120px;
  resize: vertical;
}

.field-stack input:focus,
.field-stack select:focus,
.field-stack textarea:focus {
  outline: 3px solid rgba(47, 97, 84, 0.14);
  border-color: #9db7ad;
}

.service-editor-grid {
  display: grid;
  gap: 12px;
}

.service-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(120px, 0.7fr)) auto;
  gap: 10px;
  align-items: center;
}

.service-editor-row input {
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.service-editor-row input:focus {
  outline: 3px solid rgba(47, 97, 84, 0.14);
  border-color: #9db7ad;
}

.service-editor-remove {
  min-width: 120px;
}

.service-editor-remove[disabled] {
  opacity: 0.42;
  cursor: not-allowed;
}

.section-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.section-pills span {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 800;
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #252b33;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
}

.escrow-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
}

.escrow-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.escrow-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.escrow-card dt {
  color: var(--muted);
}

.escrow-card dd {
  margin: 0;
  font-weight: 800;
}

.payment-summary-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 20px 20px 10px 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfdff 0%, #f3f7fb 100%);
}

.payment-summary-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.payment-summary-card__head h3 {
  margin: 0;
}

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

.payment-summary-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.payment-summary-list dt {
  color: var(--muted);
}

.payment-summary-list dd {
  margin: 0;
  font-weight: 800;
}

.footer {
  display: block;
  margin-top: 54px;
  padding: 30px 24px 18px;
  border-radius: 22px 22px 10px 22px;
  background: linear-gradient(180deg, #202a33 0%, #151d24 100%);
  border: 1.5px solid rgba(243, 195, 92, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(255, 224, 149, 0.08),
    0 22px 44px rgba(0, 0, 0, 0.28);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(160px, 1fr));
  gap: 28px;
  align-items: start;
}

.footer-column {
  display: grid;
  gap: 12px;
}

.footer-column h4 {
  margin: 0;
  color: #f6f8fb;
  font-size: 1rem;
  font-weight: 800;
}

.footer-column--brand {
  gap: 14px;
}

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

.footer-brand__icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter:
    drop-shadow(0 10px 18px rgba(86, 114, 255, 0.26))
    drop-shadow(0 0 16px rgba(83, 116, 255, 0.14));
}

.footer-brand strong {
  display: block;
  color: #ffffff;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.footer-brand__tagline {
  margin: 4px 0 0;
  color: rgba(215, 227, 239, 0.72);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.footer-copy {
  margin: 0;
  max-width: 34ch;
  color: rgba(215, 227, 239, 0.76);
  line-height: 1.6;
}

.footer-links,
.footer-contact-list {
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-contact-list a {
  color: rgba(244, 247, 251, 0.88);
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.footer-links a:hover,
.footer-contact-list a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(215, 227, 239, 0.64);
  font-size: 0.88rem;
}

.detail-hero,
.detail-grid {
  display: grid;
  gap: 18px;
}

.detail-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  padding-top: 12px;
}

.detail-main,
.detail-sidebar,
.detail-info-card,
.detail-side-card,
.detail-header-card,
.service-line,
.detail-empty {
  animation: fade-up 0.55s ease both;
}

.detail-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.detail-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.detail-header-card,
.detail-side-card,
.detail-info-card,
.service-line,
.detail-empty {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.detail-header-card,
.detail-side-card,
.detail-info-card,
.detail-empty {
  padding: 24px;
}

.detail-profile {
  align-items: flex-start;
  justify-content: flex-start;
}

.detail-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 16px 16px 10px 16px;
  background: linear-gradient(135deg, #eef4f8 0%, #dce8f2 100%);
  color: #5f7287;
  font-size: 1.2rem;
  font-weight: 800;
}

.detail-subtitle {
  margin: 8px 0 0;
  font-size: 1rem;
}

.detail-description {
  margin: 18px 0 0;
  line-height: 1.7;
}

.detail-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-highlights span {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 800;
}

.detail-price-row strong {
  font-size: 1.9rem;
}

.detail-price-row span {
  font-weight: 800;
}

.detail-facts,
.detail-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.certificate-public-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.certificate-public-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.certificate-public-card strong {
  line-height: 1.35;
}

.certificate-public-card__preview {
  min-height: 140px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfdff 0%, #f2f6fa 100%);
}

.certificate-public-card__preview img {
  width: 100%;
  min-height: 140px;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-actions {
  margin-top: 20px;
  align-items: stretch;
}

.detail-actions a {
  flex: 1;
}

.service-list {
  display: grid;
  gap: 14px;
}

.service-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 22px;
}

.service-line h3 {
  margin-bottom: 8px;
}

.service-line-meta {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 6px;
}

.service-line-meta strong {
  font-size: 1.15rem;
}

.service-line-meta span {
  color: var(--muted);
  font-weight: 700;
}

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

.detail-empty {
  display: grid;
  gap: 16px;
  max-width: 640px;
}

.detail-empty h1,
.detail-info-card h2 {
  max-width: none;
}

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

.calendar-toolbar,
.calendar-nav,
.seller-calendar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.calendar-day {
  min-height: 106px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card-tight);
  background: #ffffff;
  color: var(--text);
  display: grid;
  align-content: space-between;
  justify-items: start;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.calendar-day span {
  font-size: 1.46rem;
  font-weight: 800;
  line-height: 1;
}

.calendar-day small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.calendar-day--muted {
  visibility: hidden;
}

.calendar-day--disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.calendar-day--active {
  border-color: #cddce5;
  background: linear-gradient(180deg, #ffffff 0%, #f6fafc 100%);
}

.calendar-day--selected {
  border-color: var(--accent);
  background: rgba(47, 97, 84, 0.08);
}

.slot-block {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px 20px 10px 20px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.schedule-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 20px 20px 10px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 252, 0.96) 100%);
  border: 1px solid var(--line);
}

.schedule-panel__grid,
.appointment-reschedule__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.schedule-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.slot-button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px 12px 8px 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.slot-button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.slot-empty {
  margin: 0;
  color: var(--muted);
}

.booking-notice {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-card-tight);
  background: var(--accent-soft);
  border: 1px solid rgba(47, 97, 84, 0.12);
  color: var(--accent-strong);
  font-weight: 700;
}

.booking-notice--error {
  background: #fff1f1;
  border-color: rgba(170, 60, 60, 0.14);
  color: #9f3333;
}

.appointment-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.seller-calendar-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.seller-calendar-page-grid--workspace {
  align-items: start;
}

.seller-calendar-workspace-head {
  display: grid;
  gap: 18px;
  margin-bottom: 10px;
}

.seller-calendar-workspace-head__copy {
  display: grid;
  gap: 8px;
}

.seller-calendar-workspace-head .section-text {
  max-width: 64ch;
}

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

.seller-calendar-summary__card {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 20px 20px 10px 20px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fb 100%);
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px rgba(24, 33, 41, 0.08);
}

.seller-calendar-summary__card strong {
  font-size: 2rem;
  line-height: 1;
}

.seller-calendar-summary__label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seller-calendar-summary__card small {
  color: var(--muted);
}

.seller-card--calendar-main {
  padding: 22px;
}

.seller-calendar-side {
  position: sticky;
  top: 112px;
}

.availability-panel {
  display: grid;
  gap: 18px;
}

.appointment-item {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 18px 18px 10px 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.appointment-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.appointment-item__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 6px;
  gap: 8px;
}

.appointment-item__meta {
  display: grid;
  gap: 4px;
}

.appointment-reschedule {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.appointment-item strong,
.profile-row strong {
  font-size: 1rem;
}

.appointment-item span,
.profile-row p,
.appointment-item p,
.appointment-item small {
  color: var(--muted);
}

.appointment-item--active {
  border-color: rgba(47, 97, 84, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f4faf7 100%);
}

.booking-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.booking-status--confirmed {
  border-color: rgba(47, 97, 84, 0.16);
  background: rgba(47, 97, 84, 0.08);
  color: var(--accent-strong);
}

.booking-status--rejected {
  border-color: rgba(170, 60, 60, 0.18);
  background: #fff2f2;
  color: #a33b3b;
}

.booking-status--held,
.booking-status--pending {
  border-color: rgba(82, 112, 160, 0.2);
  background: #eef5fb;
  color: #42688d;
}

.booking-status--paid_out,
.booking-status--sent {
  border-color: rgba(47, 97, 84, 0.16);
  background: #eef8f3;
  color: #2c6958;
}

body[data-theme="dark"] .schedule-panel {
  background: linear-gradient(180deg, rgba(31, 41, 52, 0.96) 0%, rgba(22, 29, 38, 0.98) 100%);
  border-color: rgba(228, 191, 96, 0.2);
}

body[data-theme="dark"] .appointment-reschedule {
  border-top-color: rgba(228, 191, 96, 0.16);
}

html[data-theme="dark"] .calendar-weekdays {
  color: rgba(215, 227, 239, 0.68);
}

html[data-theme="dark"] .calendar-day {
  background: linear-gradient(180deg, rgba(26, 36, 45, 0.98) 0%, rgba(21, 30, 38, 0.98) 100%);
  border-color: rgba(215, 227, 239, 0.12);
  color: #f6f8fb;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

html[data-theme="dark"] .calendar-day small {
  color: rgba(215, 227, 239, 0.72);
}

html[data-theme="dark"] .calendar-day--active {
  background: linear-gradient(180deg, rgba(29, 41, 51, 0.98) 0%, rgba(23, 32, 40, 0.98) 100%);
  border-color: rgba(243, 195, 92, 0.18);
}

html[data-theme="dark"] .calendar-day--disabled {
  background: linear-gradient(180deg, rgba(22, 29, 36, 0.94) 0%, rgba(17, 23, 29, 0.94) 100%);
  border-color: rgba(215, 227, 239, 0.08);
}

html[data-theme="dark"] .calendar-day--selected {
  background:
    linear-gradient(180deg, rgba(36, 55, 64, 0.98) 0%, rgba(27, 42, 49, 0.98) 100%);
  border-color: rgba(111, 214, 180, 0.6);
  box-shadow:
    inset 0 0 0 1px rgba(111, 214, 180, 0.16),
    0 0 0 1px rgba(243, 195, 92, 0.1);
}

html[data-theme="dark"] .slot-block,
html[data-theme="dark"] .appointment-item,
html[data-theme="dark"] .appointment-item--active {
  background: linear-gradient(180deg, rgba(27, 38, 47, 0.98) 0%, rgba(20, 28, 35, 0.98) 100%);
  border-color: rgba(215, 227, 239, 0.12);
}

html[data-theme="dark"] .seller-calendar-summary__card,
html[data-theme="dark"] .seller-card--calendar-main {
  background: linear-gradient(180deg, rgba(27, 38, 47, 0.98) 0%, rgba(20, 28, 35, 0.98) 100%);
  border-color: rgba(215, 227, 239, 0.12);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .seller-calendar-summary__label,
html[data-theme="dark"] .seller-calendar-summary__card small {
  color: rgba(215, 227, 239, 0.7);
}

html[data-theme="dark"] .seller-calendar-summary__card strong {
  color: #f6f8fb;
}

html[data-theme="dark"] .slot-button {
  background: linear-gradient(180deg, rgba(29, 41, 51, 0.98) 0%, rgba(22, 31, 39, 0.98) 100%);
  border-color: rgba(215, 227, 239, 0.1);
  color: #eef3f8;
}

html[data-theme="dark"] .slot-button.active {
  background: linear-gradient(180deg, #79c796 0%, #66b488 100%);
  border-color: rgba(243, 195, 92, 0.28);
  color: #11231b;
}

html[data-theme="dark"] .appointment-item span,
html[data-theme="dark"] .appointment-item p,
html[data-theme="dark"] .appointment-item small,
html[data-theme="dark"] .section-text {
  color: rgba(215, 227, 239, 0.78);
}

.booking-status--refund_pending,
.booking-status--cancelled {
  border-color: rgba(170, 60, 60, 0.18);
  background: #fff2f2;
  color: #a33b3b;
}

.danger-button {
  color: #a33b3b;
  border-color: rgba(170, 60, 60, 0.2);
  background: #fff7f7;
}

.danger-button:hover {
  border-color: rgba(170, 60, 60, 0.34);
  background: #fff0f0;
}

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

.seller-empty-state {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 20px 20px 10px 20px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f8fb 100%);
  border: 1px solid var(--line);
}

.seller-empty-state strong {
  font-size: 1.1rem;
}

.seller-empty-state p {
  margin: 0;
}

.seller-empty-state__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seller-empty-state__chips span {
  padding: 10px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--muted);
}

.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-card-tight);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.profile-row p {
  margin: 6px 0 0;
}

.profile-row-actions {
  display: flex;
  gap: 10px;
}

.seller-form-actions {
  margin-top: 0;
}

.appointment-list--seller {
  margin-top: 22px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@media (max-width: 1180px) {
  .hero-inner,
  .directory-hero,
  .service-pills,
  .section-heading,
  .category-grid,
  .advantage-grid,
  .cards-grid,
  .payment-layout,
  .escrow-card,
  .detail-hero,
  .detail-grid,
  .related-grid,
  .seller-layout,
  .seller-overview,
  .seller-calendar-page-grid,
  .booking-layout,
  .field-grid,
  .seller-sector-grid,
  .auth-grid,
  .auth-choice-grid,
  .portal-grid,
  .admin-layout,
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .search-shell .primary-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .page-shell {
    width: min(100% - 24px, 1340px);
  }

  .topbar {
    position: static;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .brand {
    flex: 1 1 260px;
  }

  .header-search {
    order: 2;
    flex: 1 1 100%;
    width: 100%;
    min-height: 44px;
  }

  .topnav {
    order: 3;
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .topnav a {
    justify-content: center;
    min-height: 44px;
    padding-inline: 12px;
    text-align: center;
  }

  .language-slot,
  [data-language-slot],
  .theme-slot,
  [data-theme-slot],
  .top-actions {
    order: 4;
  }

  .top-actions,
  .results-header,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-inner,
  .service-pills,
  .section-heading,
  .category-grid,
  .advantage-grid,
  .cards-grid,
  .payment-layout,
  .escrow-card,
  .search-shell,
  .detail-hero,
  .detail-grid,
  .related-grid,
  .service-line,
  .seller-layout,
  .seller-overview,
  .seller-calendar-page-grid,
  .booking-layout,
  .field-grid,
  .seller-sector-grid,
  .service-editor-row,
  .auth-grid,
  .auth-choice-grid,
  .portal-grid,
  .admin-layout,
  .admin-stats,
  .admin-row {
    grid-template-columns: 1fr;
  }

  .seller-calendar-side {
    position: static;
  }

  .service-pills {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 10px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .service-pill {
    flex: 0 0 132px;
    scroll-snap-align: start;
  }

  .service-pill__icon {
    width: 92px;
    height: 92px;
  }

  .service-pill__label {
    font-size: 0.92rem;
  }

  .seller-stack-card__head,
  .seller-summary-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .page-scenery {
    height: min(36vh, 280px);
    opacity: 0.18;
  }

  .hero-inner {
    width: min(100% - 24px, 1340px);
    min-height: auto;
    padding: 34px 0;
  }

  .hero-logo-panel {
    min-height: 0;
    padding: 0;
    justify-content: center;
    width: 100%;
  }

  .hero-logo-panel__image {
    width: min(100%, 560px);
    max-height: none;
    margin-left: 0;
  }

  h1,
  .section h2,
  .lead {
    max-width: none;
  }

  .search-shell .primary-button {
    grid-column: auto;
  }

  .seller-launch-card,
  .auth-entry-card__head,
  .profile-row,
  .calendar-toolbar,
  .seller-calendar-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .schedule-panel__grid,
  .appointment-reschedule__grid {
    grid-template-columns: 1fr;
  }

  .auth-modal__dialog {
    width: min(100vw - 24px, 760px);
    padding: 20px;
    border-radius: 22px 22px 12px 22px;
  }

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

@media (max-width: 560px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-shell {
    width: min(100% - 16px, 1340px);
    padding-top: 8px;
  }

  .topbar {
    padding: 12px;
    margin-bottom: 6px;
    border-radius: 16px 16px 8px 16px;
  }

  .brand {
    width: 100%;
    gap: 10px;
  }

  .brand__icon {
    width: 38px;
    height: 38px;
  }

  .brand small {
    display: block;
    max-width: 24ch;
    overflow: hidden;
    font-size: 0.54rem;
    letter-spacing: 0.16em;
    text-overflow: ellipsis;
  }

  .header-search {
    min-height: 46px;
    padding-inline: 14px 8px;
  }

  .search-suggestions {
    left: 50%;
    width: min(310px, calc(100vw - 32px));
    max-height: min(360px, 56vh);
    transform: translate(-50%, -8px);
  }

  .search-suggestions--open {
    transform: translate(-50%, 0);
  }

  .search-suggestions--closing {
    transform: translate(-50%, -8px);
  }

  .search-suggestion-item {
    min-height: auto;
    padding: 12px;
  }

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

  .topnav a,
  .language-switcher__toggle,
  .theme-switcher,
  .ghost-button {
    min-height: 42px;
    border-radius: 13px 13px 7px 13px;
  }

  [data-language-slot],
  [data-theme-slot],
  .top-actions {
    min-width: 0;
  }

  [data-language-slot] {
    flex: 1 1 0;
  }

  [data-theme-slot] {
    flex: 0 0 56px;
  }

  .top-actions {
    flex: 0 0 88px;
    width: auto;
    align-items: stretch;
  }

  .top-actions .ghost-button,
  .language-switcher__toggle,
  .theme-switcher {
    width: 100%;
    padding-inline: 10px;
  }

  .hero-inner {
    width: min(100% - 16px, 1340px);
    padding: 34px 0 28px;
    gap: 22px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
    line-height: 0.98;
  }

  .hero-copy .section-text {
    font-size: 1rem;
    line-height: 1.45;
  }

  .hero-logo-panel__image {
    width: min(100%, 430px);
    margin-inline: 0;
  }

  .hero-logo-panel img {
    width: min(100%, 430px);
  }

  .finder-panel,
  .trust-strip,
  .category-card,
  .service-card,
  .payment-card,
  .advantage-card,
  .escrow-card,
  .detail-header-card,
  .detail-side-card,
  .detail-info-card,
  .detail-empty {
    border-radius: 20px 20px 10px 20px;
  }

  .service-pills,
  .chip-row,
  .trust-strip div {
    width: 100%;
  }

  .service-pills {
    gap: 14px;
    margin-inline: -2px;
  }

  .service-pill {
    flex-basis: 118px;
  }

  .service-pill__icon {
    width: 88px;
    height: 88px;
  }

  .service-pill__label {
    max-width: 11ch;
    font-size: 0.86rem;
  }

  .chip-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .auth-modal {
    padding: 12px;
  }

  .auth-modal__dialog {
    width: 100%;
    max-height: calc(100svh - 24px);
    padding: 18px;
    border-radius: 20px 20px 10px 20px;
    overflow-y: auto;
  }

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

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

  .card-meta,
  .card-footer,
  .detail-price-row,
  .detail-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-actions,
  .service-line-meta,
  .admin-row__actions {
    justify-items: start;
  }

  .service-line-meta {
    display: flex;
  }

  .search-shell {
    gap: 10px;
  }

  .finder-panel {
    padding: 16px 12px;
  }

  .category-grid,
  .cards-grid,
  .advantage-grid {
    gap: 12px;
  }

  .category-card {
    min-height: 230px;
    padding: 20px;
  }

  .category-card strong {
    max-width: 12ch;
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }

  .category-card span {
    max-width: 17ch;
    font-size: 0.98rem;
  }

  .category-card__badge {
    position: static;
    margin-top: 0;
  }

  .category-card__media {
    width: 62%;
    height: 58%;
    right: -8px;
    bottom: 0;
  }

  .category-card--auto .category-card__media,
  .category-card--electronics .category-card__media,
  .category-card--home .category-card__media,
  .category-card--appliance .category-card__media,
  .category-card--beauty .category-card__media,
  .category-card--urgent .category-card__media {
    width: 62%;
    height: 56%;
    right: -10px;
    bottom: 2px;
    background-size: contain;
  }

  .section {
    padding-block: 28px;
  }

  .section h2 {
    font-size: clamp(2.3rem, 11vw, 3.4rem);
    line-height: 1;
  }

  .footer {
    padding: 24px 18px 18px;
    border-radius: 18px 18px 9px 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

}
