:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-2: #f1f4f3;
  --card: #ffffff;
  --card-strong: #fff8df;
  --ink: #17212b;
  --text: #17212b;
  --muted: #7b8491;
  --line: #e4e9ee;
  --blue: #2f9fd7;
  --deep-blue: #e8f4fa;
  --gold: #ffc928;
  --green: #55bd72;
  --orange: #f5a623;
  --red: #ef4444;
  --shadow: 0 10px 24px rgba(23, 33, 43, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior: none;
  background: var(--bg);
  color-scheme: light;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
}

body.modal-open {
  overflow: hidden;
}

body.modal-open .app-shell {
  overflow: hidden;
}

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

button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: 100%;
  max-width: min(620px, 100%);
  height: 100dvh;
  min-height: 100svh;
  margin: 0 auto;
  overflow-x: clip;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 calc(88px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.hidden {
  display: none !important;
}

.search-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px 10px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(228, 233, 238, 0.92);
  box-shadow: 0 8px 24px rgba(23, 33, 43, 0.05);
  backdrop-filter: blur(14px);
}

.search-box {
  min-width: 0;
  height: 44px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 14px;
  background: #f1f3f4;
  border: 1px solid var(--line);
  box-shadow: none;
}

.search-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  position: relative;
}

.search-mark::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--muted);
  transform: rotate(45deg);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 14px;
  font-weight: 750;
}

.search-box input::placeholder {
  color: var(--muted);
}

.currency-switcher {
  height: 40px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 14px;
  background: #f1f3f4;
  border: 1px solid var(--line);
}

.currency-button {
  min-width: 34px;
  height: 32px;
  padding: 0 8px;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.currency-button.active {
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 6px 14px rgba(85, 189, 114, 0.24);
}

.icon-button {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: 14px;
  background: #f1f3f4;
  border: 1px solid var(--line);
  box-shadow: none;
}

.filter-bar {
  margin: 0;
  padding: 18px 14px 8px;
  position: relative;
  z-index: 25;
  background:
    linear-gradient(180deg, #ffffff 0%, #f6f8f7 100%);
  border-bottom: 1px solid rgba(228, 233, 238, 0.78);
  box-shadow: 0 10px 26px rgba(23, 33, 43, 0.05);
}

.category-filter-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.category-back-inline {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(23, 33, 43, 0.06);
}

.category-back-inline span {
  font-size: 32px;
  line-height: 1;
  transform: translateY(-1px);
}

.category-filter-heading p,
.category-filter-heading h1 {
  margin: 0;
}

.category-filter-heading p {
  color: var(--green);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 950;
  text-transform: uppercase;
}

.category-filter-heading h1 {
  color: var(--ink);
  font-size: clamp(24px, 6vw, 34px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.filter-bar-scroll {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  padding: 0;
  overflow: visible;
}

.filter-bar-scroll::-webkit-scrollbar {
  display: none;
}

.filter-select {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
}

.filter-picker {
  position: relative;
  min-width: 0;
}

.filter-trigger {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 24px;
  padding: 0 16px;
  color: var(--green);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(23, 33, 43, 0.08);
}

.filter-trigger strong {
  min-width: 0;
  color: var(--ink);
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-trigger:disabled {
  opacity: 0.45;
  color: var(--muted);
  cursor: default;
  background: #f8faf9;
}

.filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
  max-height: 270px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px rgba(23, 33, 43, 0.14);
}

.filter-option {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-size: 12px;
  font-weight: 850;
}

.filter-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.filter-option.active,
.filter-option:hover {
  background: rgba(85, 189, 114, 0.12);
}

.filter-select {
  flex: 0 0 auto;
  min-height: 34px;
  max-width: 148px;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--green);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  color-scheme: light;
}

.filter-select:disabled {
  opacity: 0.45;
  color: var(--muted);
}

.filter-reset {
  min-height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 18px;
  padding: 0 12px;
  color: #ffffff;
  background: var(--green);
  border: 1px solid rgba(85, 189, 114, 0.5);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.filter-reset {
  color: #ffffff;
  background: var(--green);
  border-color: rgba(85, 189, 114, 0.5);
  grid-column: 1 / -1;
}

.filter-chips {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  min-height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 0 11px;
  color: var(--green);
  background: #edf8f1;
  border: 1px solid #d4eddd;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.filter-chip strong {
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}

.notify-button svg {
  width: 22px;
  height: 22px;
  display: block;
  color: var(--green);
  filter: none;
}

.notify-button path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notify-button {
  position: relative;
}

.notify-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--red);
  border: 2px solid #ffffff;
}

.category-band,
.content-section {
  padding: 16px 14px 18px;
}

.category-band {
  background: transparent;
  padding-top: 12px;
  padding-bottom: 8px;
}

.content-section {
  background: transparent;
}

.content-section + .content-section {
  padding-top: 8px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title h1,
.section-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 5.3vw, 26px);
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: 0;
}

.section-title span {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green);
  font-size: 13px;
  font-weight: 850;
}

.category-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 98px);
  grid-auto-columns: 76px;
  gap: 12px 14px;
  margin: 0 -14px;
  padding: 0 14px 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.category-grid::-webkit-scrollbar,
.horizontal-list::-webkit-scrollbar {
  display: none;
}

.category-item {
  width: 76px;
  min-width: 76px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  color: var(--ink);
  background: transparent;
  scroll-snap-align: start;
}

.category-item::after {
  content: "";
  width: 22px;
  height: 3px;
  margin-top: -4px;
  border-radius: 999px;
  background: transparent;
}

.category-item.active::after {
  background: var(--green);
}

.category-all.active::after,
.category-services.active::after,
.category-rent.active::after,
.category-free.active::after {
  background: var(--red);
}

.category-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(23, 33, 43, 0.06);
}

.category-icon svg {
  width: 25px;
  height: 25px;
  display: block;
}

.category-png {
  width: 58px;
  height: 58px;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.category-icon path,
.category-icon rect,
.category-icon circle,
.category-icon line,
.category-icon polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-item.active .category-icon {
  color: #ffffff;
  background: var(--green);
  border-color: rgba(85, 189, 114, 0.86);
  box-shadow:
    0 0 0 2px rgba(85, 189, 114, 0.18),
    0 10px 20px rgba(85, 189, 114, 0.14);
}

.category-all .category-icon,
.category-services .category-icon,
.category-rent .category-icon,
.category-free .category-icon,
.category-work .category-icon,
.category-fashion .category-icon,
.category-tech .category-icon,
.category-auto .category-icon,
.category-home .category-icon,
.category-help .category-icon,
.category-parts .category-icon,
.category-sport .category-icon,
.category-exchange .category-icon,
.category-realty .category-icon,
.category-animals .category-icon,
.category-kids .category-icon,
.category-all.active .category-icon,
.category-services.active .category-icon,
.category-rent.active .category-icon,
.category-free.active .category-icon,
.category-work.active .category-icon,
.category-fashion.active .category-icon,
.category-tech.active .category-icon,
.category-auto.active .category-icon,
.category-home.active .category-icon,
.category-help.active .category-icon,
.category-parts.active .category-icon,
.category-sport.active .category-icon,
.category-exchange.active .category-icon,
.category-realty.active .category-icon,
.category-animals.active .category-icon,
.category-kids.active .category-icon {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
  color: inherit;
  overflow: hidden;
  background: #f3f8f5;
  border-color: #dceee3;
  box-shadow: 0 8px 18px rgba(23, 33, 43, 0.06);
}

.category-all.active .category-icon,
.category-services.active .category-icon,
.category-rent.active .category-icon,
.category-free.active .category-icon,
.category-work.active .category-icon,
.category-fashion.active .category-icon,
.category-tech.active .category-icon,
.category-auto.active .category-icon,
.category-home.active .category-icon,
.category-help.active .category-icon,
.category-parts.active .category-icon,
.category-sport.active .category-icon,
.category-exchange.active .category-icon,
.category-realty.active .category-icon,
.category-animals.active .category-icon,
.category-kids.active .category-icon {
  border-color: rgba(85, 189, 114, 0.28);
  box-shadow: 0 10px 20px rgba(85, 189, 114, 0.12);
}

.category-title {
  width: 76px;
  max-width: 76px;
  min-height: 36px;
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.12;
  font-weight: 750;
  text-align: center;
  hyphens: auto;
  overflow-wrap: normal;
  word-break: normal;
}

.category-tech .category-title {
  font-size: 10px;
}

.category-item.active .category-title {
  color: var(--ink);
}

.category-back .category-icon,
.category-sub .category-icon {
  color: var(--green);
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 8px 18px rgba(23, 33, 43, 0.06);
}

.category-back .category-icon {
  font-size: 34px;
  line-height: 1;
  font-weight: 500;
}

.category-sub.active .category-icon {
  color: #ffffff;
  background: var(--green);
  border-color: rgba(85, 189, 114, 0.86);
  box-shadow:
    0 0 0 2px rgba(85, 189, 114, 0.18),
    0 10px 20px rgba(85, 189, 114, 0.14);
}

.category-sub.active .category-title {
  color: var(--green);
}

.category-all.active .category-title,
.category-services.active .category-title,
.category-rent.active .category-title,
.category-free.active .category-title,
.category-work.active .category-title,
.category-fashion.active .category-title,
.category-tech.active .category-title,
.category-auto.active .category-title,
.category-home.active .category-title,
.category-help.active .category-title,
.category-parts.active .category-title,
.category-sport.active .category-title,
.category-exchange.active .category-title,
.category-realty.active .category-title,
.category-animals.active .category-title,
.category-kids.active .category-title {
  color: var(--red);
}

.category-all .category-title,
.category-services .category-title,
.category-rent .category-title,
.category-free .category-title,
.category-work .category-title,
.category-fashion .category-title,
.category-tech .category-title,
.category-auto .category-title,
.category-home .category-title,
.category-help .category-title,
.category-parts .category-title,
.category-sport .category-title,
.category-exchange .category-title,
.category-realty .category-title,
.category-animals .category-title,
.category-kids .category-title {
  width: 58px;
  max-width: 58px;
  align-self: center;
}

.horizontal-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(184px, 42%);
  gap: 12px;
  margin: 0 -14px;
  padding: 0 14px 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.featured-list,
.top-list,
.regular-grid {
  display: grid;
  gap: 12px;
}

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

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

.top-list .listing-card:first-child {
  grid-column: 1 / -1;
}

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

.listing-card {
  min-width: 0;
  overflow: hidden;
  position: relative;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.recent-card {
  scroll-snap-align: start;
}

.vip-card,
.top-card:first-child {
  display: grid;
  grid-template-columns: 43% minmax(0, 1fr);
  min-height: 154px;
}

.vip-card {
  background: var(--card-strong);
  border-color: rgba(255, 201, 40, 0.72);
  box-shadow: 0 14px 30px rgba(179, 130, 0, 0.12);
}

.is-top {
  border-color: rgba(47, 159, 215, 0.34);
}

.listing-media {
  position: relative;
  min-height: 132px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #f7faf8 0%, #edf4f0 100%);
}

.regular-card .listing-media,
.recent-card .listing-media,
.top-card:not(:first-child) .listing-media {
  aspect-ratio: 1.18;
}

.item-symbol {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--green);
  background: #e8f6ed;
  font-size: 28px;
  font-weight: 1000;
  border: 1px solid rgba(85, 189, 114, 0.22);
  box-shadow: none;
}

.listing-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.is-vip .item-symbol {
  color: #8a6200;
  background: var(--gold);
  border-color: rgba(250, 204, 21, 0.78);
}

.listing-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  font-size: 10px;
  font-weight: 900;
}

.is-top .listing-badge {
  background: var(--blue);
}

.listing-body {
  min-width: 0;
  position: relative;
  padding: 12px;
}

.listing-body h3 {
  min-height: 48px;
  margin: 0 36px 9px 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.16;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.regular-card .listing-body h3,
.recent-card .listing-body h3,
.top-card:not(:first-child) .listing-body h3 {
  min-height: 62px;
  font-size: 16px;
}

.listing-body strong {
  display: block;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 23px;
  line-height: 1.05;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.listing-body p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
}

.favorite-button {
  position: absolute;
  right: 12px;
  top: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  font-size: 26px;
  line-height: 1;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.favorite-button.is-favorite {
  color: var(--red);
  background: rgba(239, 68, 68, 0.11);
  border-color: rgba(239, 68, 68, 0.24);
}

.favorite-button:active {
  transform: scale(0.94);
}

.listing-detail-sheet {
  height: min(94dvh, 820px);
  max-height: min(94dvh, 820px);
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.listing-detail-gallery {
  position: relative;
  aspect-ratio: 1.08;
  margin: 0 -14px 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #eef4f1;
  overscroll-behavior: contain;
  touch-action: pan-x;
}

.listing-detail-gallery.is-empty {
  margin-top: -2px;
}

.listing-detail-photos {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.22s ease;
}

.listing-detail-photo {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  display: block;
  padding: 0;
  background: transparent;
}

.listing-detail-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #eef4f1;
}

.listing-detail-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.listing-detail-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.listing-detail-dots span.active {
  width: 20px;
  background: #ffffff;
}

.listing-detail-main {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.listing-detail-main strong {
  color: var(--red);
  font-size: 28px;
  line-height: 1.05;
  font-weight: 950;
}

.listing-detail-main p,
.listing-detail-section p,
.listing-message-status {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.42;
  font-weight: 600;
}

.listing-detail-main h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.14;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.listing-detail-section {
  margin: 0 0 16px;
}

.listing-detail-section h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.15;
  font-weight: 900;
}

.listing-detail-contacts {
  display: grid;
  gap: 8px;
}

.listing-detail-contacts a,
.listing-detail-contacts span {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--ink);
  background: #f7f9f8;
  border: 1px solid var(--line);
  font-weight: 850;
  text-decoration: none;
}

.listing-message-button {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  border-radius: 12px;
  color: #ffffff;
  background: var(--green);
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(85, 189, 114, 0.18);
}

.listing-telegram-button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--green);
  background: #edf8f1;
  border: 1px solid #d4eddd;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.listing-message-status {
  min-height: 22px;
  margin-top: 8px;
  text-align: center;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 56px 8px calc(24px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 13, 18, 0.94);
  overscroll-behavior: none;
  touch-action: pan-x;
}

.photo-lightbox img {
  width: 100%;
  max-height: calc(100vh - 96px);
  display: block;
  object-fit: contain;
}

.photo-lightbox-close {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.photo-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
}

.load-sentinel {
  height: 1px;
}

.list-end {
  margin: 14px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.simple-header {
  padding: 20px 14px 10px;
  background: transparent;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.simple-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
}

.language-picker {
  position: relative;
  flex: 0 0 auto;
}

.language-trigger {
  min-width: 152px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(23, 33, 43, 0.06);
}

.language-trigger span:first-child,
.language-option span {
  color: var(--green);
  font-weight: 950;
}

.language-trigger strong,
.language-option strong {
  min-width: 0;
  flex: 1;
  color: var(--ink);
  font-size: 12px;
  text-align: left;
  overflow-wrap: anywhere;
}

.language-chevron {
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  width: 160px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px rgba(23, 33, 43, 0.14);
}

.language-option {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.language-option + .language-option {
  border-top: 1px solid rgba(228, 233, 238, 0.9);
}

.language-option em {
  visibility: hidden;
  color: var(--green);
  font-style: normal;
  font-weight: 950;
}

.language-option.active {
  background: rgba(85, 189, 114, 0.12);
}

.language-option.active em {
  visibility: visible;
}

.empty-state,
.profile-card,
.profile-stats,
.profile-rates-card,
.profile-edit-card {
  margin: 14px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.empty-state {
  padding: 22px;
  color: var(--muted);
  font-weight: 700;
}

.profile-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--card);
  border-color: var(--line);
}

.profile-card img {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f4f3;
  border: 3px solid #e4e9ee;
  box-shadow: none;
}

.profile-info {
  min-width: 0;
  flex: 1;
}

.profile-card h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.profile-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.profile-details {
  display: grid;
  gap: 7px;
  margin: 0;
}

.profile-details div {
  min-width: 0;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.profile-details dt,
.profile-details dd {
  margin: 0;
}

.profile-details dt {
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-details dd {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.profile-stats strong,
.profile-stats span {
  display: block;
}

.profile-stats strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.profile-stats span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-rates-card {
  padding: 14px;
}

.profile-rates-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-rates-title h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.profile-rates-title span,
.profile-rates-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.profile-rates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.profile-rates-grid div {
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  background: #f6f8f7;
  border: 1px solid var(--line);
}

.profile-rates-grid span,
.profile-rates-grid strong {
  display: block;
}

.profile-rates-grid span {
  margin-bottom: 4px;
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
}

.profile-rates-grid strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.profile-stats > div,
.profile-stats > button {
  min-height: 64px;
  display: grid;
  grid-template-rows: 26px 24px;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 10px 22px rgba(23, 33, 43, 0.06);
}

.profile-stats > .stat-button {
  padding: 0;
  cursor: pointer;
}

.stat-button:active {
  transform: translateY(1px);
}

.profile-stats > .stat-gold {
  border-color: rgba(250, 204, 21, 0.52);
  background: var(--card-strong);
  box-shadow: 0 10px 22px rgba(179, 130, 0, 0.1);
}

.profile-stats > .stat-gold strong,
.profile-stats > .stat-gold span {
  color: #8a6200;
}

.profile-edit-card {
  padding: 14px;
  background: var(--card);
  border-color: var(--line);
}

.profile-edit-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.profile-edit-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--green);
  background: #f1f4f3;
  border: 1px solid var(--line);
}

.profile-edit-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-edit-title h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.1;
}

.profile-edit-title span,
.profile-public-link {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-edit-title span.is-error {
  color: #ff8c82;
}

.profile-data-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.profile-data-list div {
  min-height: 64px;
  padding: 10px;
  border-radius: 8px;
  background: #f7f9f8;
  border: 1px solid var(--line);
}

.profile-data-list dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-data-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.profile-data-list .profile-data-wide {
  grid-column: 1 / -1;
}

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

.profile-form label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.profile-form-wide,
.profile-public-link,
.profile-save-button {
  grid-column: 1 / -1;
}

.profile-form input,
.profile-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--text);
  background: #f7f9f8;
  outline: 0;
  font-weight: 800;
}

.profile-form textarea {
  resize: vertical;
  min-height: 84px;
}

.profile-form input:focus,
.profile-form textarea:focus {
  border-color: rgba(85, 189, 114, 0.72);
  box-shadow: 0 0 0 3px rgba(85, 189, 114, 0.12);
}

.profile-public-link {
  min-height: 18px;
  margin: 0;
  overflow-wrap: anywhere;
}

.profile-save-button {
  min-height: 46px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--green);
  font-weight: 850;
}


.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 50;
  width: 100%;
  max-width: 620px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  transform: translateX(-50%);
  padding: 8px 8px calc(9px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(228, 233, 238, 0.92);
  box-shadow: 0 -12px 28px rgba(23, 33, 43, 0.08);
  backdrop-filter: blur(14px);
}

.nav-item {
  min-width: 0;
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 4px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 650;
}

.nav-item.active {
  color: var(--green);
  font-weight: 800;
}

.nav-icon {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-icon path,
.nav-icon circle {
  vector-effect: non-scaling-stroke;
}

.create-nav {
  min-height: 64px;
}

.create-nav .create-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: var(--green);
  font-size: 32px;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(85, 189, 114, 0.22);
}

.create-nav .nav-icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.4;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  background: rgba(23, 33, 43, 0.36);
  overflow: hidden;
  overscroll-behavior: none;
}

.sheet {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 10px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: 18px 18px 0 0;
  background: var(--surface);
  border: 1px solid var(--line);
}

.sheet-handle {
  width: 46px;
  height: 5px;
  margin: 2px auto 14px;
  border-radius: 999px;
  background: var(--line);
}

.sheet-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sheet-title h2 {
  margin: 0;
  color: var(--ink);
}

.sheet-title button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--muted);
  background: #f1f4f3;
  font-weight: 900;
}

.sheet label,
.sheet .create-field {
  display: grid;
  gap: 7px;
  margin-bottom: 11px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.sheet input,
.sheet textarea,
.sheet select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  background: #f7f9f8;
  outline: 0;
}

.create-sheet-form {
  max-height: min(92vh, 760px);
  overflow-y: auto;
}

.create-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 0 0 14px;
}

.create-steps span {
  height: 4px;
  border-radius: 999px;
  background: var(--line);
}

.create-steps span.active {
  background: var(--green);
}

.create-step {
  display: none;
}

.create-step.active {
  display: block;
}

.create-picker .location-trigger {
  min-height: 46px;
}

.create-picker .location-trigger:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.65;
}

.create-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.create-currency-select {
  height: 45px;
  display: flex;
  gap: 3px;
  padding: 4px;
  border-radius: 10px;
  background: #f1f3f4;
  border: 1px solid var(--line);
}

.create-currency-select button {
  min-width: 38px;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-weight: 950;
}

.create-currency-select button.active {
  color: #ffffff;
  background: var(--green);
}

.create-check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.create-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}

.create-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
  margin: 8px 0 14px;
}

.create-photo-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f4f3;
  border: 1px solid var(--line);
}

.create-photo-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.create-photo-remove {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(23, 33, 43, 0.72);
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
}

.create-photo-order {
  position: absolute;
  left: 7px;
  bottom: 7px;
  display: flex;
  gap: 6px;
}

.create-photo-order button {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(23, 33, 43, 0.72);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.create-photo-order button:disabled {
  opacity: 0.36;
}

.create-step[data-create-step="3"] input[type="file"] {
  min-height: 66px;
  padding: 14px;
}

.create-step[data-create-step="3"] input[type="file"]::file-selector-button {
  min-height: 42px;
  margin-right: 12px;
  padding: 0 16px;
  border: 1px solid #8d949e;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 850;
}

.create-status {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.create-status.is-error {
  color: var(--red);
}

.create-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.create-secondary {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 8px;
  color: var(--ink);
  background: #f1f4f3;
  font-weight: 850;
}

.create-secondary.hidden + .publish-button {
  grid-column: 1 / -1;
}

.publish-button:disabled,
.create-secondary:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  box-shadow: none;
}

.sheet select {
  color-scheme: light;
}

.filters-sheet {
  max-height: min(88vh, 620px);
  overflow-y: auto;
}

.location-picker {
  position: relative;
}

.location-trigger {
  width: 100%;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  background: #f7f9f8;
  text-align: left;
  font-weight: 850;
}

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

.location-menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(23, 33, 43, 0.18);
}

.location-option {
  width: 100%;
  display: grid;
  gap: 3px;
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 850;
}

.location-option strong {
  font-size: 13px;
}

.location-option span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.location-option.active,
.location-option:hover {
  background: rgba(85, 189, 114, 0.12);
}

.profile-sheet {
  max-height: min(88vh, 720px);
  overflow-y: auto;
}

.notifications-sheet {
  max-height: min(80vh, 560px);
  overflow-y: auto;
}

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

.notification-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 42px 12px 12px;
  background: #f7f9f8;
}

.notification-item.unread {
  border-color: rgba(239, 68, 68, 0.32);
  background: #fffafa;
}

.notification-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.notification-item strong {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.notification-delete {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: #eef2f1;
  border: 1px solid var(--line);
  font-size: 16px;
  line-height: 1;
  font-weight: 950;
}

.notification-delete:active {
  transform: scale(0.94);
}

.notification-item p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.notification-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.notifications-empty {
  margin: 0;
}

.back-inline-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--ink);
  background: #f1f4f3;
  font-weight: 900;
}

.user-listings-list {
  display: grid;
  gap: 12px;
  padding: 0 14px 22px;
}

.user-listing-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 10px 22px rgba(23, 33, 43, 0.06);
}

.user-listing-main {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.user-listing-media {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
  background: var(--green);
  font-size: 24px;
  font-weight: 950;
}

.user-listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-listing-info h3 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.15;
}

.user-listing-info p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.user-listing-info strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 15px;
}

.user-listing-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.user-listing-actions button {
  min-height: 42px;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 900;
}

.edit-listing-button {
  background: var(--green);
}

.delete-listing-button {
  background: var(--red);
}

.delete-listing-button.is-confirming {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}

.publish-button {
  width: 100%;
  min-height: 56px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--green);
  font-size: 16px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(85, 189, 114, 0.26);
}

@media (max-width: 390px) {
  .search-box {
    height: 40px;
  }

  .search-box input {
    font-size: 13px;
  }

  .category-grid {
    grid-auto-columns: 72px;
    grid-template-rows: repeat(2, 96px);
  }

  .category-item {
    width: 72px;
    min-width: 72px;
  }

  .category-icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .category-png {
    width: 56px;
    height: 56px;
  }

  .category-services .category-icon,
  .category-rent .category-icon,
  .category-free .category-icon,
  .category-all .category-icon,
  .category-work .category-icon,
  .category-fashion .category-icon,
  .category-tech .category-icon,
  .category-auto .category-icon,
  .category-home .category-icon,
  .category-help .category-icon,
  .category-parts .category-icon,
  .category-sport .category-icon,
  .category-exchange .category-icon,
  .category-realty .category-icon,
  .category-animals .category-icon,
  .category-kids .category-icon,
  .category-services.active .category-icon,
  .category-rent.active .category-icon,
  .category-free.active .category-icon,
  .category-all.active .category-icon,
  .category-work.active .category-icon,
  .category-fashion.active .category-icon,
  .category-tech.active .category-icon,
  .category-auto.active .category-icon,
  .category-home.active .category-icon,
  .category-help.active .category-icon,
  .category-parts.active .category-icon,
  .category-sport.active .category-icon,
  .category-exchange.active .category-icon,
  .category-realty.active .category-icon,
  .category-animals.active .category-icon,
  .category-kids.active .category-icon {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .category-title {
    width: 72px;
    max-width: 72px;
    font-size: 9.5px;
  }

  .category-services .category-title,
  .category-rent .category-title,
  .category-free .category-title,
  .category-all .category-title,
  .category-work .category-title,
  .category-fashion .category-title,
  .category-tech .category-title,
  .category-auto .category-title,
  .category-home .category-title,
  .category-help .category-title,
  .category-parts .category-title,
  .category-sport .category-title,
  .category-exchange .category-title,
  .category-realty .category-title,
  .category-animals .category-title,
  .category-kids .category-title {
    width: 56px;
    max-width: 56px;
  }

  .horizontal-list {
    grid-auto-columns: 184px;
  }

  .listing-body h3,
  .regular-card .listing-body h3,
  .recent-card .listing-body h3,
  .top-card:not(:first-child) .listing-body h3 {
    font-size: 15px;
  }

  .listing-body strong {
    font-size: 20px;
  }

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

  .profile-data-list {
    grid-template-columns: 1fr;
  }
}
