@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Manrope:wght@400;500;600&display=swap");

:root {
  --bg-900: #060405;
  --bg-850: #0c0709;
  --bg-800: #120b0f;
  --panel-900: #110b0f;
  --panel-850: #171015;
  --panel-800: #1d141a;
  --stroke-weak: #2f141c;
  --stroke: #47202a;
  --stroke-strong: #5c2832;
  --accent-700: #7b1821;
  --accent-600: #a9252e;
  --accent-500: #ce333c;
  --accent-400: #e04a53;
  --text-main: #f5ecee;
  --text-soft: #ccb9be;
  --mouse-x: 50%;
  --mouse-y: 20%;
  --left: 260px;
  --header: 120px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(1200px circle at 84% -10%, rgba(224, 74, 83, 0.16), transparent 46%),
    radial-gradient(980px circle at -12% 116%, rgba(123, 24, 33, 0.2), transparent 48%),
    linear-gradient(160deg, var(--bg-850) 0%, var(--bg-900) 100%);
  color: var(--text-main);
  font-family: "Manrope", sans-serif;
  padding: 14px;
}

.layout {
  min-height: calc(100dvh - 28px);
  display: grid;
  grid-template-columns: var(--left) minmax(0, 1fr);
  grid-template-rows: var(--header) minmax(0, 1fr);
  grid-template-areas:
    "header header"
    "sidebar content";
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  box-shadow:
    0 30px 64px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(224, 74, 83, 0.06) inset;
}

.layout::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px circle at var(--mouse-x) var(--mouse-y), rgba(201, 51, 60, 0.14), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.layout::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.24) 100%);
  pointer-events: none;
  z-index: 0;
}

.header {
  grid-area: header;
  border-bottom: 1px solid var(--stroke-strong);
  background: linear-gradient(180deg, #080607 0%, #030303 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  position: relative;
  overflow: visible;
  z-index: 2;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(201, 51, 60, 0.13) 55%, transparent 100%);
  pointer-events: none;
}

.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(224, 74, 83, 0.72) 50%, transparent 100%);
}

.site-title {
  display: inline-block;
  font-family: "Cinzel", serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: transparent;
  background: linear-gradient(105deg, #fffdfd 16%, #f5ecef 38%, #fff8f9 58%, #f2e6e9 80%, #fffefe 100%);
  background-size: 230% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 8px rgba(169, 37, 46, 0.2),
    0 2px 10px rgba(0, 0, 0, 0.65);
  position: relative;
  z-index: 1;
  animation: title-sheen 13s linear infinite;
}

.site-title::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -8px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(224, 74, 83, 0.48) 50%, transparent 100%);
  box-shadow: 0 0 8px rgba(169, 37, 46, 0.2);
  opacity: 0.58;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 24px;
  position: relative;
  z-index: 4;
}

.lang-switcher-wrap {
  position: relative;
}

.lang-switcher-btn {
  min-width: 124px;
  padding-inline: 16px;
}

.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 184px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(224, 74, 83, 0.3);
  border-radius: 13px;
  background:
    radial-gradient(320px circle at 115% -25%, rgba(224, 74, 83, 0.2), transparent 56%),
    linear-gradient(180deg, rgba(24, 13, 18, 0.98) 0%, rgba(11, 7, 9, 0.98) 100%);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.54),
    0 0 0 1px rgba(224, 74, 83, 0.12) inset,
    0 0 24px rgba(169, 37, 46, 0.12);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 60;
}

.lang-switcher-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.lang-switcher-item {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid rgba(224, 74, 83, 0.26);
  border-radius: 10px;
  background:
    radial-gradient(120px circle at var(--bx, 50%) var(--by, 50%), rgba(224, 74, 83, 0.17), transparent 70%) padding-box,
    linear-gradient(180deg, rgba(20, 11, 15, 0.95), rgba(10, 7, 9, 0.95)) padding-box,
    linear-gradient(130deg, rgba(123, 24, 33, 0.88) 0%, rgba(224, 74, 83, 0.9) 50%, rgba(123, 24, 33, 0.88) 100%) border-box;
  color: #f7e8eb;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
}

.lang-switcher-item:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  border-color: rgba(255, 166, 175, 0.66);
}

.lang-switcher-item.is-active {
  border-color: rgba(255, 185, 193, 0.92);
  box-shadow:
    0 8px 14px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 171, 180, 0.24) inset;
}

.mobile-filters-toggle {
  display: none;
}

.mobile-filters-backdrop {
  display: none;
}

#google_translate_element,
.goog-te-gadget,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
body > .skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}

.admin-menu-wrap {
  position: relative;
  isolation: isolate;
}

.register-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background:
    radial-gradient(140px circle at var(--bx, 50%) var(--by, 50%), rgba(224, 74, 83, 0.18), transparent 70%) padding-box,
    linear-gradient(180deg, #160b10 0%, #0c0609 100%) padding-box,
    linear-gradient(130deg, rgba(123, 24, 33, 0.95) 0%, rgba(224, 74, 83, 0.95) 50%, rgba(123, 24, 33, 0.95) 100%) border-box;
  color: #f6eaec;
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border-radius: 15px;
  padding: 10px 25px;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(224, 74, 83, 0.1),
    0 0 16px rgba(169, 37, 46, 0.16);
  overflow: hidden;
  user-select: none;
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.register-btn.mobile-filters-toggle {
  display: none;
}

.register-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 12%, rgba(255, 224, 224, 0.2) 46%, transparent 78%);
  transform: translateX(-120%);
  transition: transform 0.62s ease;
  pointer-events: none;
}

.register-btn:hover {
  filter: brightness(1.05) saturate(1.03);
  transform: translateY(-1px);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(224, 74, 83, 0.13),
    0 0 20px rgba(169, 37, 46, 0.2);
}

.register-btn:hover::before {
  transform: translateX(120%);
}

.register-btn:active {
  transform: translateY(0) scale(0.985);
}

.register-btn:focus-visible {
  outline: 2px solid rgba(224, 74, 83, 0.44);
  outline-offset: 2px;
}

.admin-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 228px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(224, 74, 83, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(320px circle at 115% -25%, rgba(224, 74, 83, 0.18), transparent 56%),
    linear-gradient(180deg, rgba(24, 13, 18, 0.98) 0%, rgba(11, 7, 9, 0.98) 100%);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.54),
    0 0 0 1px rgba(224, 74, 83, 0.12) inset,
    0 0 24px rgba(169, 37, 46, 0.12);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 50;
}

.admin-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.admin-menu::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 9px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(224, 74, 83, 0.56) 50%, transparent 100%);
  pointer-events: none;
  opacity: 0.78;
}

.admin-menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 12px;
  min-height: 40px;
  text-decoration: none;
  color: #f6eaec;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 10px;
  background:
    radial-gradient(120px circle at var(--bx, 50%) var(--by, 50%), rgba(224, 74, 83, 0.18), transparent 70%) padding-box,
    linear-gradient(180deg, #160b10 0%, #0c0609 100%) padding-box,
    linear-gradient(130deg, rgba(123, 24, 33, 0.95) 0%, rgba(224, 74, 83, 0.95) 50%, rgba(123, 24, 33, 0.95) 100%) border-box;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(224, 74, 83, 0.1),
    0 0 12px rgba(169, 37, 46, 0.16);
  overflow: hidden;
  user-select: none;
  appearance: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.admin-menu-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 12%, rgba(255, 224, 224, 0.2) 46%, transparent 78%);
  transform: translateX(-120%);
  transition: transform 0.62s ease;
  pointer-events: none;
}

.admin-menu-link:hover {
  filter: brightness(1.07) saturate(1.04);
  transform: translateY(-1px);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(224, 74, 83, 0.13),
    0 0 18px rgba(169, 37, 46, 0.2);
}

.admin-menu-link:hover::before {
  transform: translateX(120%);
}

.admin-menu-link:active {
  transform: translateY(0) scale(0.985);
}

.btn-ripple {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 214, 214, 0.32), rgba(224, 74, 83, 0.13) 62%, transparent 100%);
  transform: scale(0);
  animation: button-ripple 620ms ease-out forwards;
  pointer-events: none;
}

.sidebar {
  grid-area: sidebar;
  background:
    linear-gradient(180deg, var(--panel-850) 0%, var(--panel-900) 100%);
  border-right: 1px solid var(--stroke);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.sidebar::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 12px;
  right: 12px;
  bottom: 14px;
  border: 1px solid rgba(224, 74, 83, 0.14);
  border-radius: 14px;
  pointer-events: none;
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(224, 74, 83, 0.036) 0,
    rgba(224, 74, 83, 0.036) 1px,
    transparent 1px,
    transparent 24px
  );
  opacity: 0.55;
  pointer-events: none;
}

.filters-panel {
  position: absolute;
  top: 14px;
  left: 12px;
  right: 12px;
  bottom: 14px;
  z-index: 2;
  border: 1px solid rgba(224, 74, 83, 0.26);
  border-radius: 18px;
  background:
    radial-gradient(340px circle at 110% -10%, rgba(224, 74, 83, 0.2), transparent 58%),
    radial-gradient(240px circle at -20% 120%, rgba(143, 32, 41, 0.15), transparent 58%),
    linear-gradient(180deg, rgba(22, 13, 18, 0.86) 0%, rgba(9, 6, 8, 0.9) 100%);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(224, 74, 83, 0.08) inset;
  padding: 13px 13px 14px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 145, 156, 0.62) rgba(17, 10, 13, 0.92);
}

.filters-header {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(224, 74, 83, 0.24);
}

.filters-title {
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 4px;
  letter-spacing: 0.25px;
}

.filters-subtitle {
  color: #e5c9cf;
  font-size: 13px;
  line-height: 1.35;
}

.filters-reset-btn {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(224, 74, 83, 0.42);
  border-radius: 12px;
  color: #ffeef0;
  background:
    radial-gradient(150px circle at 20% 45%, rgba(255, 131, 143, 0.2), transparent 68%),
    linear-gradient(180deg, rgba(27, 13, 18, 0.95), rgba(12, 7, 9, 0.96));
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  margin-bottom: 13px;
  transition: border-color 0.2s ease, background-color 0.2s ease, filter 0.2s ease;
}

.filters-reset-btn:not(:disabled):hover {
  border-color: rgba(255, 159, 168, 0.62);
  filter: brightness(1.06);
}

.filters-reset-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.filters-sections {
  display: grid;
  gap: 11px;
}

.filters-section {
  border: 1px solid rgba(224, 74, 83, 0.26);
  border-radius: 14px;
  background:
    radial-gradient(200px circle at 100% -10%, rgba(224, 74, 83, 0.15), transparent 62%),
    linear-gradient(180deg, rgba(15, 9, 12, 0.86), rgba(8, 6, 8, 0.88));
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(224, 74, 83, 0.08) inset;
  padding: 9px;
}

.filters-section-title {
  font-size: 17px;
  line-height: 1.2;
  margin-bottom: 9px;
  color: #fff1f3;
  letter-spacing: 0.16px;
  font-weight: 700;
}

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

.filters-section[data-group="metro"] .filters-chip-grid {
  grid-template-columns: 1fr;
}

.filters-select-section {
  padding-bottom: 10px;
}

.filters-select-trigger {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(224, 74, 83, 0.34);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(14, 10, 13, 0.94), rgba(9, 7, 8, 0.95));
  color: #f7e8eb;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  cursor: pointer;
  transition: border-color 0.18s ease, filter 0.18s ease, background-color 0.18s ease;
}

.filters-select-trigger:hover {
  border-color: rgba(255, 160, 169, 0.56);
  filter: brightness(1.05);
}

.filters-select-trigger.is-open {
  border-color: rgba(255, 156, 165, 0.76);
  background: linear-gradient(180deg, rgba(41, 12, 19, 0.95), rgba(19, 8, 12, 0.96));
}

.filters-select-trigger-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filters-select-trigger-caret {
  font-size: 11px;
  opacity: 0.92;
  transition: transform 0.18s ease;
}

.filters-select-trigger.is-open .filters-select-trigger-caret {
  transform: rotate(180deg);
}

.filters-select-options {
  margin-top: 9px;
  border: 1px solid rgba(224, 74, 83, 0.26);
  border-radius: 10px;
  background: rgba(10, 7, 9, 0.94);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.2s ease, opacity 0.2s ease;
}

.filters-select-options.is-open {
  max-height: 280px;
  overflow-y: auto;
  opacity: 1;
  pointer-events: auto;
}

.filters-select-option {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(224, 74, 83, 0.16);
  background: transparent;
  color: #f8e9ec;
  font-size: 13px;
  line-height: 1.25;
  text-align: left;
  padding: 9px 11px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.filters-select-option:last-child {
  border-bottom: 0;
}

.filters-select-option:hover {
  background: rgba(67, 16, 26, 0.52);
}

.filters-select-option.is-active {
  background: linear-gradient(90deg, rgba(112, 26, 39, 0.72), rgba(62, 14, 24, 0.64));
  color: #fff8f9;
}

.filter-chip {
  border: 1px solid rgba(224, 74, 83, 0.31);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(12, 8, 11, 0.94), rgba(7, 5, 7, 0.95));
  color: #f6e2e6;
  font-size: 12px;
  line-height: 1.2;
  padding: 7px 6px;
  min-height: 37px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  text-align: center;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
}

.filter-chip > span {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: rgba(255, 160, 169, 0.62);
  background: linear-gradient(180deg, rgba(31, 11, 17, 0.94), rgba(12, 7, 9, 0.95));
  transform: translateY(-1px);
}

.filter-chip.is-active {
  border-color: rgba(255, 171, 179, 0.92);
  background:
    radial-gradient(160px circle at 50% -20%, rgba(255, 184, 191, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(130, 29, 43, 0.92), rgba(74, 17, 29, 0.94));
  color: #fff9fa;
  box-shadow:
    0 8px 14px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 166, 175, 0.24) inset;
}

.filters-section[data-group="priceHour"] .filter-chip,
.filters-section[data-group="bodyType"] .filter-chip {
  font-size: 11.5px;
  padding-inline: 5px;
}

.filters-empty {
  font-size: 12px;
  color: #d5bcc1;
}

.content {
  grid-area: content;
  background:
    radial-gradient(760px circle at 95% 6%, rgba(169, 37, 46, 0.14), transparent 46%),
    linear-gradient(150deg, var(--panel-800) 0%, var(--bg-800) 100%);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.content::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  bottom: 16px;
  border: 1px solid rgba(224, 74, 83, 0.18);
  border-radius: 16px;
  pointer-events: none;
}

.content::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(169, 37, 46, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 37, 46, 0.038) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.34;
  pointer-events: none;
}

.admin-layout {
  grid-template-columns: 1fr;
  grid-template-rows: var(--header) minmax(0, 1fr);
  grid-template-areas:
    "header"
    "content";
}

.model-layout {
  grid-template-columns: 1fr;
  grid-template-rows: var(--header) minmax(0, 1fr);
  grid-template-areas:
    "header"
    "content";
}

.model-layout .sidebar {
  display: none;
}

.admin-content {
  display: block;
  padding: 26px;
}

.admin-empty-state {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(224, 74, 83, 0.26);
  border-radius: 18px;
  padding: 28px 24px;
  background:
    radial-gradient(360px circle at 110% -30%, rgba(224, 74, 83, 0.2), transparent 60%),
    linear-gradient(180deg, rgba(25, 15, 20, 0.9) 0%, rgba(13, 9, 11, 0.92) 100%);
  box-shadow:
    0 22px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(224, 74, 83, 0.08) inset;
}

.admin-empty-title {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.admin-empty-text {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.45;
}

.listings-shell {
  position: relative;
  z-index: 2;
  height: 100%;
  overflow-y: auto;
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  align-content: start;
}

.home-listings-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}

.home-listings-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
  flex: 1 0 auto;
}

.home-listing-card {
  min-height: 500px;
  aspect-ratio: auto;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 141, 153, 0.34);
  background:
    radial-gradient(380px circle at 110% -15%, rgba(224, 74, 83, 0.24), transparent 58%),
    linear-gradient(180deg, rgba(17, 10, 13, 0.94), rgba(8, 6, 8, 0.98));
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(224, 74, 83, 0.12) inset;
  transform: translateY(0) scale(1);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    filter 0.28s ease;
  animation: home-card-enter 0.56s ease both;
}

.home-listings-grid .home-listing-card:nth-child(1n) { animation-delay: 0.03s; }
.home-listings-grid .home-listing-card:nth-child(2n) { animation-delay: 0.08s; }
.home-listings-grid .home-listing-card:nth-child(3n) { animation-delay: 0.13s; }
.home-listings-grid .home-listing-card:nth-child(4n) { animation-delay: 0.18s; }
.home-listings-grid .home-listing-card:nth-child(5n) { animation-delay: 0.23s; }

.home-listing-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255, 181, 190, 0.7);
  box-shadow:
    0 22px 38px rgba(0, 0, 0, 0.56),
    0 0 0 1px rgba(255, 170, 180, 0.2) inset,
    0 0 26px rgba(224, 74, 83, 0.2);
  filter: saturate(1.02);
}

.home-listing-card::before,
.home-listing-card::after {
  display: none;
}

.home-card-media {
  position: relative;
  height: 64%;
  min-height: 300px;
  padding: 0;
  border-bottom: 1px solid rgba(224, 74, 83, 0.2);
  overflow: hidden;
}

.home-card-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(
    180deg,
    rgba(44, 10, 16, 0) 0%,
    rgba(44, 10, 16, 0.58) 52%,
    rgba(38, 8, 14, 0.92) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.home-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
  border-radius: 0;
  background: transparent;
  transform: scale(1.01);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.home-listing-card:hover .home-card-image {
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.04);
}

.home-card-top-right {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
}

.home-card-media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 26px 12px 12px;
  text-align: center;
}

.home-card-media-name {
  margin: 0;
  font-size: clamp(32px, 2.4vw, 44px);
  line-height: 0.98;
  letter-spacing: 0.3px;
  color: #fff4f6;
  font-weight: 800;
  text-shadow:
    0 6px 14px rgba(0, 0, 0, 0.6),
    0 0 14px rgba(224, 74, 83, 0.24);
}

.home-card-media-phone {
  margin: 6px 0 0;
  font-size: clamp(24px, 1.75vw, 31px);
  line-height: 1;
  color: #ff8f9b;
  font-weight: 800;
  text-shadow:
    0 3px 9px rgba(0, 0, 0, 0.56),
    0 0 12px rgba(224, 74, 83, 0.2);
}

.home-card-body {
  height: 36%;
  min-height: 170px;
  padding: 8px 8px 9px;
  display: grid;
  grid-template-rows: auto auto;
  gap: 5px;
  align-content: start;
  background:
    radial-gradient(230px circle at 100% -12%, rgba(224, 74, 83, 0.15), transparent 60%),
    linear-gradient(180deg, rgba(16, 9, 13, 0.97), rgba(9, 6, 8, 0.99));
}

.home-card-params,
.home-card-prices {
  display: grid;
  gap: 4px;
}

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

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

.home-card-line {
  margin: 0;
  min-height: 28px;
  border: 1px solid rgba(255, 120, 136, 0.34);
  border-radius: 9px;
  background:
    radial-gradient(120px circle at 50% -40%, rgba(255, 104, 120, 0.12), transparent 66%),
    linear-gradient(180deg, rgba(26, 10, 15, 0.96), rgba(11, 6, 9, 0.97));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  text-align: left;
  font-size: 10.5px;
  line-height: 1.15;
  color: #fdeef1;
  font-weight: 600;
  padding: 3px 7px;
  overflow: hidden;
  column-gap: 6px;
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 164, 175, 0.07) inset;
}

.home-card-line-label {
  color: #e4c3ca;
  font-size: 9px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-card-line-value {
  color: #fff8f9;
  font-weight: 700;
  font-size: 11px;
  justify-self: end;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-card-prices .home-card-line {
  min-height: 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  padding: 4px 7px;
}

.home-card-prices .home-card-line-label {
  font-size: 9.5px;
  line-height: 1.1;
  letter-spacing: 0.15px;
  color: #f0cfd5;
  max-width: 100%;
}

.home-card-prices .home-card-line-value {
  font-size: 12.5px;
  line-height: 1.1;
  font-weight: 700;
  text-align: left;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  max-width: 100%;
}

.home-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.home-pagination-btn {
  min-width: 36px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(224, 74, 83, 0.36);
  border-radius: 10px;
  background:
    radial-gradient(150px circle at var(--bx, 50%) var(--by, 50%), rgba(224, 74, 83, 0.14), transparent 70%) padding-box,
    linear-gradient(180deg, rgba(21, 11, 15, 0.92), rgba(10, 7, 9, 0.95)) padding-box;
  color: #ffeff2;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-pagination-btn:hover:not(:disabled) {
  border-color: rgba(255, 166, 174, 0.72);
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.32);
}

.home-pagination-btn:disabled {
  opacity: 0.42;
  cursor: default;
}

.home-pagination-btn.is-active {
  border-color: rgba(255, 180, 187, 0.9);
  background:
    radial-gradient(180px circle at 50% -25%, rgba(255, 182, 189, 0.24), transparent 60%),
    linear-gradient(180deg, rgba(126, 28, 42, 0.92), rgba(72, 16, 28, 0.95));
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(255, 197, 204, 0.2) inset;
}

@keyframes home-card-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-listing-card {
    animation: none;
    transition: none;
  }

  .home-card-image,
  .home-pagination-btn {
    transition: none;
  }
}

.admin-listings-shell {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.admin-listing-card {
  cursor: default;
  min-height: 430px;
  aspect-ratio: 4 / 6.2;
}

.admin-listing-card .listing-card-info {
  border-radius: 12px;
  padding: 7px 7px 6px;
}

.admin-listing-card .listing-card-name {
  font-size: clamp(24px, 2vw, 35px);
  margin-bottom: 4px;
}

.admin-listing-card .listing-card-phone {
  font-size: clamp(16px, 1.6vw, 31px);
  margin-bottom: 6px;
}

.admin-listing-card .listing-card-stats {
  gap: 4px;
}

.admin-listing-card .listing-card-stat {
  min-height: 33px;
  padding: 3px 4px 4px;
}

.admin-listing-card .listing-card-stat-label {
  font-size: 8px;
  letter-spacing: 0.36px;
}

.admin-listing-card .listing-card-stat-value {
  font-size: 11.5px;
}

.listings-empty {
  border: 1px solid rgba(224, 74, 83, 0.24);
  border-radius: 16px;
  padding: 20px;
  background:
    radial-gradient(280px circle at 110% -30%, rgba(224, 74, 83, 0.15), transparent 62%),
    linear-gradient(180deg, rgba(24, 14, 18, 0.88) 0%, rgba(10, 7, 9, 0.9) 100%);
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.4;
}

.listing-card {
  position: relative;
  min-height: 400px;
  aspect-ratio: 4 / 5.7;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(224, 74, 83, 0.32);
  background:
    radial-gradient(560px circle at 82% -20%, rgba(224, 74, 83, 0.2), transparent 52%),
    linear-gradient(180deg, #190b10 0%, #070507 100%);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(224, 74, 83, 0.1) inset;
  transform: translateY(0);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  isolation: isolate;
}

.listing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 142, 151, 0.58);
  box-shadow:
    0 20px 34px rgba(0, 0, 0, 0.56),
    0 0 0 1px rgba(255, 142, 151, 0.18) inset;
}

.listing-card-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 50% 40%;
  filter: saturate(0.94) contrast(1.06) brightness(0.93);
  transform: scale(1.01);
  transition: transform 0.36s ease, filter 0.36s ease;
}

.listing-card:hover .listing-card-image {
  transform: scale(1.04);
  filter: saturate(0.98) contrast(1.08) brightness(0.95);
}

.listing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(220px circle at 80% 12%, rgba(255, 157, 165, 0.1), transparent 62%),
    linear-gradient(180deg, rgba(7, 4, 6, 0.1) 0%, rgba(8, 5, 7, 0.2) 46%, rgba(14, 6, 10, 0.82) 100%);
  z-index: 1;
}

.listing-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background:
    linear-gradient(180deg, rgba(35, 7, 14, 0) 0%, rgba(35, 7, 14, 0.3) 58%, rgba(35, 7, 14, 0.64) 100%);
  z-index: 2;
  pointer-events: none;
}

.listing-card-top {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
}

.listing-card-top-left {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.listing-card-top-right {
  display: inline-flex;
}

.listing-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 160, 169, 0.32);
  background:
    linear-gradient(180deg, rgba(18, 9, 12, 0.7), rgba(10, 7, 9, 0.7));
  color: #ffe8ec;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.14px;
  backdrop-filter: blur(2px);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(224, 74, 83, 0.1) inset;
}

.listing-meta-pill-photos {
  border-color: rgba(255, 188, 194, 0.58);
  background:
    linear-gradient(180deg, rgba(32, 12, 17, 0.92), rgba(13, 7, 10, 0.92));
}

.listing-card-info {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 4;
  border: 1px solid rgba(255, 158, 167, 0.24);
  border-radius: 14px;
  padding: 8px 8px 7px;
  background:
    radial-gradient(220px circle at 100% 0%, rgba(224, 74, 83, 0.1), transparent 62%),
    linear-gradient(180deg, rgba(20, 9, 14, 0.42), rgba(9, 6, 8, 0.5));
  backdrop-filter: blur(2px);
  box-shadow:
    0 8px 14px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(224, 74, 83, 0.1) inset;
  text-align: center;
}

.listing-card-name {
  font-size: clamp(30px, 2.4vw, 40px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.16px;
  margin-bottom: 6px;
  color: #fff4f6;
  text-shadow:
    0 6px 12px rgba(0, 0, 0, 0.55),
    0 0 14px rgba(224, 74, 83, 0.16);
}

.listing-card-phone {
  color: #ff95a0;
  font-size: clamp(20px, 1.95vw, 30px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.1px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  margin-bottom: 8px;
}

.listing-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 0;
}

.listing-card-stat {
  display: grid;
  gap: 2px;
  border-radius: 9px;
  padding: 4px 5px 5px;
  border: 1px solid rgba(224, 74, 83, 0.2);
  background: rgba(12, 7, 9, 0.42);
  min-height: 38px;
}

.listing-card-stat-label {
  font-size: 9px;
  line-height: 1.1;
  color: #d2b5ba;
  text-transform: uppercase;
  letter-spacing: 0.44px;
}

.listing-card-stat-value {
  font-size: 13px;
  line-height: 1.15;
  color: #fff7f8;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.32);
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: center;
}

.listing-card:focus-visible {
  outline: 2px solid rgba(255, 162, 171, 0.72);
  outline-offset: 2px;
}

.admin-listings-shell {
  padding-top: 14px;
}

.admin-listing-card {
  cursor: default;
}

.admin-card-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  gap: 7px;
}

.admin-card-action-btn {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 10px;
}

.admin-card-delete-btn {
  background:
    radial-gradient(120px circle at var(--bx, 50%) var(--by, 50%), rgba(255, 120, 126, 0.22), transparent 70%) padding-box,
    linear-gradient(180deg, #1f090d 0%, #11060a 100%) padding-box,
    linear-gradient(130deg, rgba(129, 20, 28, 0.98) 0%, rgba(235, 65, 76, 0.98) 50%, rgba(129, 20, 28, 0.98) 100%) border-box;
}

.create-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.create-modal[hidden] {
  display: none;
}

.create-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 2, 3, 0.7);
  backdrop-filter: blur(3px);
}

.create-modal-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  border: 1px solid rgba(224, 74, 83, 0.34);
  border-radius: 18px;
  background:
    radial-gradient(420px circle at 112% -28%, rgba(224, 74, 83, 0.25), transparent 62%),
    linear-gradient(180deg, rgba(22, 12, 16, 0.98) 0%, rgba(8, 6, 8, 0.98) 100%);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(224, 74, 83, 0.12) inset;
  padding: 22px;
  z-index: 1;
}

.create-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(224, 74, 83, 0.34);
  background: rgba(14, 10, 12, 0.85);
  color: #f8ecee;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.create-modal-title {
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: 18px;
}

.create-listing-form {
  display: grid;
  gap: 12px;
}

.form-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, 1fr));
  gap: 12px;
  align-items: start;
}

.form-meta-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  align-content: start;
}

.form-messenger-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.form-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #f1dde2;
}

.form-checkbox-label input {
  accent-color: var(--accent-500);
}

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

.form-meta-field-phone .form-help-text {
  max-width: 52ch;
  line-height: 1.35;
}

.form-label {
  font-size: 15px;
  color: #f4e2e5;
}

.form-input,
.form-file-input {
  width: 100%;
  min-height: 44px;
  border-radius: 11px;
  border: 1px solid rgba(224, 74, 83, 0.28);
  background: rgba(10, 7, 8, 0.86);
  color: #f9eff1;
  padding: 10px 12px;
  font-size: 14px;
}

select.form-input {
  padding-right: 34px;
}

.form-input:focus-visible,
.form-file-input:focus-visible {
  outline: 2px solid rgba(224, 74, 83, 0.46);
  outline-offset: 1px;
}

.form-file-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.form-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choose-photos-btn {
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 12px;
}

.form-file-status {
  font-size: 13px;
  color: var(--text-soft);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.form-help-text {
  color: var(--text-soft);
  font-size: 13px;
}

.form-error-text {
  color: #ff949b;
  font-size: 13px;
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 8px;
  max-height: 146px;
  overflow-y: auto;
}

.photo-preview-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid rgba(224, 74, 83, 0.28);
  overflow: hidden;
  background: rgba(9, 7, 8, 0.8);
}

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

.photo-remove-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 145, 153, 0.9);
  background: rgba(52, 8, 14, 0.92);
  color: #ffe8ea;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.photo-remove-btn:hover {
  filter: brightness(1.08);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 12px;
  position: sticky;
  bottom: -1px;
  padding-top: 10px;
  background: linear-gradient(180deg, rgba(11, 7, 9, 0), rgba(11, 7, 9, 0.96) 35%);
}

.form-cancel-btn {
  opacity: 0.9;
}

.model-page-content {
  padding: 24px;
  overflow-y: auto;
}

.model-shell {
  position: relative;
  z-index: 2;
}

.model-profile-card {
  border: 1px solid rgba(224, 74, 83, 0.26);
  border-radius: 18px;
  background:
    radial-gradient(520px circle at 110% -30%, rgba(224, 74, 83, 0.2), transparent 62%),
    linear-gradient(180deg, rgba(24, 14, 18, 0.92) 0%, rgba(10, 7, 9, 0.92) 100%);
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(224, 74, 83, 0.1) inset;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 18px;
}

.model-main-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(224, 74, 83, 0.3);
  background: rgba(15, 8, 10, 0.8);
}

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

.model-thumb-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
}

.model-thumb-button {
  appearance: none;
  border: 1px solid rgba(224, 74, 83, 0.28);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: rgba(11, 7, 9, 0.84);
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.model-thumb-button.is-active {
  border-color: rgba(255, 155, 164, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 155, 164, 0.4) inset;
}

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

.model-title {
  font-size: 38px;
  line-height: 1.05;
  margin-bottom: 8px;
}

.model-phone {
  display: inline-flex;
  margin-bottom: 14px;
  font-size: 21px;
  line-height: 1.2;
  color: #ff8f9b;
  font-weight: 700;
  text-decoration: none;
}

.model-phone:hover {
  color: #ffadb5;
}

.model-contacts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.model-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(224, 74, 83, 0.32);
  text-decoration: none;
  color: #fff3f5;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  background:
    radial-gradient(140px circle at 20% 40%, rgba(224, 74, 83, 0.14), transparent 68%),
    linear-gradient(180deg, rgba(19, 10, 14, 0.94), rgba(8, 6, 8, 0.94));
}

.model-contact-btn:hover {
  filter: brightness(1.08);
}

.model-contact-btn.is-whatsapp {
  border-color: rgba(110, 225, 160, 0.6);
  background:
    radial-gradient(150px circle at 20% 40%, rgba(67, 226, 143, 0.14), transparent 68%),
    linear-gradient(180deg, rgba(16, 18, 13, 0.96), rgba(7, 10, 7, 0.96));
}

.model-contact-btn.is-telegram {
  border-color: rgba(126, 197, 255, 0.65);
  background:
    radial-gradient(150px circle at 20% 40%, rgba(85, 185, 255, 0.16), transparent 68%),
    linear-gradient(180deg, rgba(12, 16, 22, 0.96), rgba(6, 9, 12, 0.96));
}

.model-contact-missing {
  color: #d5bcc1;
  font-size: 13px;
  line-height: 1.3;
}

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

.model-info-item {
  border: 1px solid rgba(224, 74, 83, 0.22);
  border-radius: 12px;
  padding: 10px;
  background: rgba(13, 8, 10, 0.7);
}

.model-info-label {
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #d3b4b8;
  margin-bottom: 3px;
}

.model-info-value {
  font-size: 16px;
  line-height: 1.2;
  color: #fff1f3;
  font-weight: 700;
}

.site-toast-root {
  position: fixed;
  bottom: 22px;
  right: 18px;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.site-toast-root.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.site-toast {
  border: 1px solid rgba(224, 74, 83, 0.44);
  border-radius: 14px;
  background:
    radial-gradient(300px circle at 100% 0%, rgba(224, 74, 83, 0.34), transparent 58%),
    linear-gradient(180deg, rgba(20, 10, 13, 0.97), rgba(7, 5, 7, 0.97));
  color: #fff0f3;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 14px 18px;
  min-width: 250px;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(224, 74, 83, 0.2) inset,
    0 0 24px rgba(169, 37, 46, 0.2);
}

@keyframes button-ripple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

@keyframes title-sheen {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 230% 50%;
  }
}

@media (max-width: 1080px) {
  body {
    padding: 10px;
  }

  .layout {
    min-height: calc(100dvh - 20px);
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .site-title {
    font-size: 40px;
  }

  .home-listings-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .admin-listings-shell {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 780px) {
  :root {
    --header: 114px;
  }

  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: var(--header) minmax(0, 1fr);
    grid-template-areas:
      "header"
      "content";
  }

  .admin-layout {
    grid-template-columns: 1fr;
    grid-template-rows: var(--header) minmax(0, 1fr);
    grid-template-areas:
      "header"
      "content";
  }

  .header {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    align-content: center;
    padding: 9px 12px 12px;
    gap: 8px;
  }

  .site-title {
    font-size: clamp(28px, 6.1vw, 34px);
    line-height: 1.04;
    letter-spacing: 0.65px;
    width: 100%;
    text-align: center;
  }

  .register-btn {
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 12px;
  }

  .header-actions {
    width: min(100%, 480px);
    margin-right: 0;
    margin-top: 3px;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
  }

  .header-actions .lang-switcher-wrap,
  .header-actions .admin-menu-wrap,
  .header-actions > .register-btn {
    flex: 1 1 0;
    min-width: 0;
    max-width: 154px;
  }

  .header-actions .admin-menu-wrap > .register-btn {
    width: 100%;
  }

  .lang-switcher-btn {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
    font-size: 13px;
  }

  .register-btn.mobile-filters-toggle {
    display: inline-flex;
  }

  .mobile-filters-toggle {
    min-width: 0;
    justify-content: center;
  }

  .header-actions .register-btn {
    width: 100%;
    min-height: 40px;
  }

  .mobile-filters-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 91;
    border: 0;
    background: rgba(7, 3, 5, 0.72);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  body.mobile-filters-open {
    overflow: hidden;
  }

  body.mobile-filters-open .mobile-filters-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar {
    position: fixed;
    top: calc(var(--header) + 12px);
    left: 10px;
    bottom: 10px;
    width: min(344px, calc(100vw - 20px));
    border-radius: 16px;
    z-index: 95;
    transform: translateX(-108%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
    box-shadow:
      0 24px 52px rgba(0, 0, 0, 0.58),
      0 0 0 1px rgba(224, 74, 83, 0.14);
  }

  .layout.is-mobile-filters-open .sidebar {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar::before,
  .sidebar::after {
    display: none;
  }

  .lang-switcher-menu {
    min-width: 152px;
    right: 0;
    padding: 7px;
    gap: 4px;
  }

  .lang-switcher-item {
    min-height: 31px;
    font-size: 12px;
    padding: 5px 7px;
  }

  .filters-panel {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 7px;
    border-radius: 16px;
  }

  .filters-title {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .filters-subtitle {
    font-size: 11px;
  }

  .filters-section-title {
    font-size: 15px;
  }

  .filters-reset-btn {
    min-height: 36px;
    font-size: 13px;
  }

  .filters-sections {
    gap: 8px;
  }

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

  .filter-chip {
    font-size: 10.5px;
    padding: 6px 4px;
    min-height: 32px;
  }

  .admin-content {
    padding: 16px;
  }

  .listings-shell {
    padding: 10px;
    grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
  }

  .home-listings-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: center;
  }

  .home-listings-grid .home-listing-card {
    width: min(100%, 430px);
    min-height: 452px;
  }

  .home-card-media {
    min-height: 270px;
  }

  .home-card-body {
    min-height: 164px;
    gap: 6px;
    padding: 8px;
  }

  .home-card-params,
  .home-card-prices {
    gap: 6px;
  }

  .home-card-media-caption {
    padding: 13px 10px 8px;
  }

  .home-card-media-name {
    font-size: clamp(24px, 6.8vw, 31px);
    line-height: 1.02;
  }

  .home-card-media-phone {
    font-size: clamp(18px, 5.1vw, 23px);
  }

  .home-card-line {
    min-height: 36px;
    font-size: 12px;
    padding: 6px 8px;
    column-gap: 6px;
    border-radius: 12px;
  }

  .home-card-line-label {
    font-size: 11px;
  }

  .home-card-line-value {
    font-size: 13px;
  }

  .home-card-prices .home-card-line {
    min-height: 40px;
    align-items: flex-start;
    gap: 2px;
    padding: 5px 8px;
  }

  .home-card-prices .home-card-line-label {
    font-size: 10.5px;
    line-height: 1.2;
  }

  .home-card-prices .home-card-line-value {
    justify-self: start;
    font-size: 12.5px;
    line-height: 1.2;
    text-align: left;
  }

  .home-pagination {
    gap: 6px;
  }

  .home-pagination-btn {
    min-width: 33px;
    min-height: 32px;
    font-size: 12px;
    border-radius: 9px;
    padding: 0 8px;
  }

  .listing-card {
    min-height: 330px;
    border-radius: 16px;
  }

  .listing-card-name {
    font-size: clamp(38px, 10vw, 52px);
  }

  .listing-card-phone {
    font-size: clamp(26px, 7.5vw, 34px);
  }

  .listing-card-stats {
    gap: 4px;
  }

  .listing-card-stat-value {
    font-size: 12px;
  }

  .listing-card-stat {
    min-height: 36px;
    padding: 3px 4px 4px;
  }

  .listing-card-top {
    left: 9px;
    right: 9px;
    top: 9px;
  }

  .listing-meta-pill {
    min-height: 20px;
    padding: 3px 7px;
    font-size: 10px;
  }

  .listing-card-info {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 7px;
  }

  .admin-card-actions {
    top: 8px;
    right: 8px;
    gap: 6px;
  }

  .admin-card-action-btn {
    font-size: 12px;
    padding: 7px 10px;
  }

  .admin-listings-shell {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
  }

  .admin-listing-card {
    min-height: 340px;
  }

  .admin-listing-card .listing-card-name {
    font-size: clamp(20px, 6.6vw, 32px);
  }

  .admin-listing-card .listing-card-phone {
    font-size: clamp(14px, 5.2vw, 25px);
  }

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

  .model-page-content {
    padding: 16px;
  }

  .model-profile-card {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 12px;
  }

  .model-title {
    font-size: 31px;
  }

  .model-phone {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .model-info-grid {
    grid-template-columns: 1fr;
  }

  .create-modal-dialog {
    width: min(760px, 100%);
    padding: 14px;
  }

  .admin-menu {
    min-width: 190px;
    padding: 9px;
    gap: 7px;
  }

  .admin-menu-link {
    min-height: 36px;
    font-size: 13px;
  }

  .site-toast-root {
    bottom: 10px;
    right: 10px;
    left: auto;
  }

  .site-toast {
    width: auto;
    min-width: 220px;
    font-size: 15px;
    padding: 12px 16px;
    text-align: left;
  }
}

@media (max-width: 480px) {
  :root {
    --header: 104px;
  }

  body {
    padding: 6px;
  }

  .layout {
    min-height: calc(100dvh - 12px);
  }

  .header {
    padding: 4px 8px 10px;
    gap: 8px;
  }

  .site-title {
    font-size: clamp(24px, 8vw, 29px);
    letter-spacing: 0.5px;
  }

  .header-actions {
    width: min(100%, 420px);
    justify-content: center;
    gap: 6px;
  }

  .header-actions .lang-switcher-wrap,
  .header-actions .admin-menu-wrap,
  .header-actions > .register-btn {
    max-width: none;
  }

  .register-btn {
    font-size: 13px;
    padding: 7px 10px;
  }

  .lang-switcher-btn,
  .mobile-filters-toggle {
    min-width: 0;
    font-size: 12px;
  }

  .header-actions .register-btn {
    min-height: 38px;
  }

  .sidebar {
    top: calc(var(--header) + 8px);
    left: 6px;
    bottom: 6px;
    width: calc(100vw - 12px);
  }

  .listings-shell {
    padding: 8px;
  }

  .home-listings-grid .home-listing-card {
    width: 100%;
    min-height: 430px;
  }

  .home-card-media {
    min-height: 250px;
  }

  .home-card-media-caption {
    padding: 11px 9px 8px;
  }

  .home-card-media-name {
    font-size: clamp(22px, 8vw, 28px);
  }

  .home-card-media-phone {
    font-size: clamp(16px, 5.6vw, 21px);
  }

  .home-card-body {
    min-height: 156px;
    padding: 7px;
    gap: 6px;
  }

  .home-card-line {
    min-height: 34px;
    font-size: 11px;
    padding: 5px 7px;
    column-gap: 6px;
  }

  .home-card-line-label {
    font-size: 10px;
  }

  .home-card-line-value {
    font-size: 12px;
  }

  .home-card-prices .home-card-line {
    min-height: 36px;
    padding: 4px 7px;
  }

  .home-card-prices .home-card-line-label {
    font-size: 9.5px;
  }

  .home-card-prices .home-card-line-value {
    font-size: 11.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .register-btn,
  .site-title {
    transition: none;
  }

  .site-title {
    animation: none;
  }
}
