@import url('../assets/vendor/leaflet/leaflet.css');

:root {
  --app-max: min(1860px, 98vw);
  --surface: #ffffff;
  --surface-soft: #f7f9ff;
  --ink: #1f2430;
  --ink-muted: #697386;
  --accent: #0bb6fe;
  --accent-2: #36d7ff;
}

body {
  background:
    radial-gradient(1000px 380px at 0% -15%, rgba(11, 182, 254, .14), transparent 70%),
    radial-gradient(900px 320px at 100% -10%, rgba(255, 101, 132, .11), transparent 72%),
    #f6f8fc;
  color: var(--ink);
}

.site-header {
  backdrop-filter: saturate(160%) blur(6px);
  background: rgba(248, 249, 250, .96);
  border-bottom: 1px solid rgba(11, 182, 254, .12);
  box-shadow: 0 2px 12px rgba(31, 36, 48, .05);
}

.header-container {
  max-width: var(--app-max);
  height: 90px;
}

.site-logo-image {
  width: auto;
  height: auto;
  max-height: 88px;
  max-width: 360px;
  border-radius: 0;
  object-fit: contain;
  margin-right: .45rem;
  box-shadow: none;
  background: transparent;
  display: block;
}

.site-header .logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2d3436;
}

.site-header .logo:hover {
  color: #0bb6fe;
}

.logo-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  margin-right: .45rem;
  font-size: 1.35rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.notification-menu {
  position: relative;
}

.notification-trigger {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(11, 182, 254, .3);
  background: #fff;
  color: #0b6f9b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: border-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.notification-trigger:hover {
  border-color: rgba(11, 182, 254, .5);
  box-shadow: 0 4px 12px rgba(11, 182, 254, .2);
}

.notification-menu .notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 4px;
  font-size: .67rem;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #ef4444;
  border: 2px solid #fff;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  width: min(360px, 88vw);
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(11, 182, 254, .22);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .2s ease;
  z-index: 1300;
}

.notification-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notification-dropdown-header {
  padding: .7rem .8rem;
  border-bottom: 1px solid #e7eef6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
}

.notification-mark-all {
  border: 0;
  background: transparent;
  color: #0369a1;
  font-weight: 600;
  font-size: .82rem;
  cursor: pointer;
}

.notification-dropdown-list {
  max-height: 340px;
  overflow-y: auto;
  display: grid;
}

.notification-item {
  display: block;
  padding: .7rem .8rem;
  border-bottom: 1px solid #eef3f8;
  color: #1f2937;
  text-decoration: none;
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item.is-unread {
  background: #f0f9ff;
}

.notification-item:hover {
  background: #f8fbff;
}

.notification-item-title {
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.25;
}

.notification-item-message {
  margin-top: .22rem;
  font-size: .82rem;
  color: #475569;
  line-height: 1.35;
}

.notification-item-time {
  display: block;
  margin-top: .25rem;
  color: #64748b;
  font-size: .74rem;
}

.notification-empty {
  margin: 0;
  padding: .9rem .8rem;
  color: #64748b;
  font-size: .86rem;
}

.notification-dropdown-footer {
  padding: .6rem .8rem;
  border-top: 1px solid #e7eef6;
}

.notification-dropdown-footer a {
  font-size: .84rem;
  font-weight: 600;
  color: #0369a1;
}

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
}

.nav-item {
  margin-left: 0;
}

.nav-link {
  padding: 0;
  border-radius: 0;
  color: #636e72;
  font-weight: 500;
  background: transparent;
  transition: color .2s ease;
}

.nav-link:hover {
  background: transparent;
  color: #0bb6fe;
}

.nav-link.active {
  background: transparent;
  color: #0bb6fe;
}

.page-shell {
  max-width: var(--app-max);
  margin: 0 auto;
  padding: 120px 1rem 2.8rem;
  min-height: calc(100vh - 240px);
}

.flash-stack {
  display: grid;
  gap: .75rem;
  margin-bottom: 1rem;
}

.flash-message {
  border-radius: 12px;
  padding: .85rem 1rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.flash-success { background: #e9f9ef; color: #137c3c; }
.flash-error { background: #ffecec; color: #9d2323; }
.flash-warning { background: #fff5e6; color: #9f6400; }
.flash-info { background: #eaf2ff; color: #224b96; }

.site-safety-note {
  margin: .9rem 0 0;
  padding: .7rem .85rem;
  border: 1px solid rgba(11, 182, 254, .28);
  background: rgba(11, 182, 254, .08);
  border-radius: 10px;
  font-size: .88rem;
  color: #16455e;
}

.page-card {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(34, 49, 86, .09);
  border: 1px solid rgba(11, 182, 254, .07);
  padding: 1.25rem;
}

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

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

.grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.items-list,
.proposals-list-custom,
.chat-list {
  display: grid;
  gap: 1rem;
}

.item-thumb {
  width: 74px;
  height: 74px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #ececec;
}

.thumb-strip {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.gallery-main {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border-radius: 14px;
}

.auth-layout {
  max-width: 860px;
  margin: 0 auto;
}

.auth-layout .auth-card {
  margin: 0 auto;
}

.inline-form {
  display: inline;
}

.status-pill {
  border-radius: 999px;
  padding: .24rem .72rem;
  font-size: .74rem;
  font-weight: 700;
  border: 1px solid #ddd;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.status-ativo { color: #116d2e; border-color: #8ed6a3; background: #effbf3; }
.status-pausado { color: #7a6700; border-color: #f0d666; background: #fffbe8; }
.status-trocado { color: #01506f; border-color: #6bc6e2; background: #edfaff; }
.status-removido { color: #7e1a1a; border-color: #e8a2a2; background: #fff0f0; }
.status-pendente { color: #7a6700; border-color: #f0d666; background: #fffbe8; }
.status-aceita { color: #116d2e; border-color: #8ed6a3; background: #effbf3; }
.status-recusada,
.status-cancelada,
.status-encerrada { color: #7e1a1a; border-color: #e8a2a2; background: #fff0f0; }
.status-aberta { color: #01506f; border-color: #6bc6e2; background: #edfaff; }
.status-concluida { color: #116d2e; border-color: #8ed6a3; background: #effbf3; }
.status-novo { color: #7a6700; border-color: #f0d666; background: #fffbe8; }
.status-lido { color: #01506f; border-color: #6bc6e2; background: #edfaff; }
.status-respondido { color: #116d2e; border-color: #8ed6a3; background: #effbf3; }
.status-banido { color: #8a1f2f; border-color: #efb6c0; background: #fff2f5; }
.status-baixo { color: #0f766e; border-color: #99f6e4; background: #f0fdfa; }
.status-medio { color: #9a3412; border-color: #fdba74; background: #fff7ed; }
.status-alto { color: #991b1b; border-color: #fca5a5; background: #fef2f2; }
.status-revisado { color: #334155; border-color: #cbd5e1; background: #f8fafc; }
.status-descartado { color: #475569; border-color: #cbd5e1; background: #f8fafc; }

.card-line {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.card-line-left {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.matching-zone {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.discover-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1rem;
  align-items: start;
}

.discover-main {
  min-width: 0;
}

.discover-sidebar {
  min-width: 0;
}

.discover-filter-card {
  position: sticky;
  top: 92px;
}

.discover-filter-card .form-group {
  margin-bottom: .85rem;
}

.match-card-dyn {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(11, 182, 254, .08);
}

.match-card-dyn .info {
  padding: 1rem;
}

.hidden {
  display: none !important;
}

.chat-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.chat-box {
  min-height: 420px;
  max-height: 520px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.chat-bubble {
  max-width: 75%;
  padding: .65rem .9rem;
  border-radius: 12px;
}

.chat-bubble.mine {
  margin-left: auto;
  background: var(--gradient-primary);
  color: #fff;
}

.chat-bubble.other {
  margin-right: auto;
  background: #f3f4f6;
  color: #1a1a1a;
}

.chat-time {
  font-size: .75rem;
  opacity: .75;
  margin-top: .35rem;
}

.chat-form {
  display: grid;
  gap: .55rem;
}

.chat-compose-row {
  display: flex;
  gap: .5rem;
}

.chat-compose-tools {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
}

.chat-message-text {
  margin-top: .45rem;
  line-height: 1.5;
}

.chat-upload-feedback {
  min-height: 1.05rem;
  margin: 0;
  font-size: .84rem;
}

.chat-upload-feedback.is-ok {
  color: #137c3c;
}

.chat-upload-feedback.is-warn {
  color: #9d2323;
}

.chat-media-image-btn {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
}

.chat-media-image {
  display: block;
  width: min(100%, 340px);
  max-height: 260px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .35);
}

.chat-media-video {
  display: block;
  width: min(100%, 340px);
  max-height: 280px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .35);
  background: #000;
}

.chat-location-card {
  display: grid;
  gap: .45rem;
  padding: .55rem;
  border-radius: 10px;
  border: 1px solid rgba(11, 182, 254, .28);
  background: rgba(255, 255, 255, .65);
}

.chat-bubble.mine .chat-location-card {
  color: #0f172a;
}

.chat-location-header {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .92rem;
}

.chat-location-map {
  width: min(100%, 340px);
  height: 160px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .34);
  overflow: hidden;
}

.chat-location-coords {
  font-size: .78rem;
  opacity: .84;
}

.chat-location-modal-content {
  max-width: 720px;
}

.chat-location-picker-map {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  border: 1px solid #dbe8f5;
  overflow: hidden;
  margin-bottom: .55rem;
}

.chat-location-picker-coords {
  margin: 0 0 .7rem;
  font-size: .86rem;
}

.chat-map-app-modal-content {
  max-width: 620px;
}

.chat-map-app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin-top: .35rem;
}

.chat-map-coords-wrap {
  margin-top: .75rem;
  display: flex;
  gap: .55rem;
  align-items: center;
  flex-wrap: wrap;
}

.chat-map-coords-wrap code {
  padding: .3rem .5rem;
  border-radius: 8px;
  background: #f4f7fb;
  border: 1px solid #dbe8f5;
}

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

.desktop-only {
  display: inline-flex;
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 1rem;
  background: linear-gradient(140deg, #1f2332, #2f3344);
}

.site-footer .footer-container {
  max-width: var(--app-max);
}

.site-footer .footer-title {
  margin-bottom: .8rem;
}

.site-footer .footer-links li {
  margin-bottom: .45rem;
}

.gallery-thumb-btn {
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.gallery-thumb-btn.active {
  border-color: var(--accent);
}

.gallery-main.clickable,
#match-image.clickable {
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0, 0, 0, .86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.image-lightbox.active {
  display: flex;
}

.lightbox-image {
  max-width: 96vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  border: 0;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
}

.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }

.lightbox-counter {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0, 0, 0, .38);
  border-radius: 999px;
  padding: .25rem .65rem;
  font-size: .85rem;
}

.rating-stars-input {
  display: flex;
  gap: .5rem;
}

.rating-stars-input input[type="radio"] {
  display: none;
}

.rating-stars-input label {
  font-size: 1.8rem;
  color: #d0d0d0;
  cursor: pointer;
}

.rating-stars-input input[type="radio"]:checked ~ label,
.rating-stars-input label:hover,
.rating-stars-input label:hover ~ label {
  color: #f4b400;
}

.auth-card-wide {
  max-width: 780px;
  margin: 0 auto;
}

.auth-tab-link {
  margin-left: .5rem;
}

.auth-tab-link.active {
  background: #0bb6fe;
  color: #fff;
  border-color: #0bb6fe;
}

.auth-submit-full {
  width: 100%;
}

.auth-section-title {
  font-size: 1.1rem;
}

.auth-inline-link-wrap {
  margin: .5rem 0 1rem;
}

.auth-inline-link-wrap-right {
  text-align: right;
}

.auth-inline-link {
  color: #0284c7;
  font-size: .9rem;
  font-weight: 600;
}

.auth-inline-link:hover {
  color: #0369a1;
}

.form-checkbox-label {
  display: inline-flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .92rem;
  color: #334155;
}

.form-checkbox-label input[type="checkbox"] {
  margin-top: .2rem;
}

.admin-page-header {
  margin-bottom: 1rem;
  padding: .95rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(11, 182, 254, .22);
  background: linear-gradient(135deg, #f8fdff, #eef8ff);
}

.admin-page-title {
  margin: 0;
}

.admin-main-grid {
  margin-bottom: 1rem;
}

.admin-mode .page-shell {
  max-width: 1720px;
  margin: 0 auto;
  padding: 1.05rem 1.1rem 2rem;
}

.admin-sidebar {
  position: fixed;
  top: 88px;
  left: 12px;
  bottom: 14px;
  width: 282px;
  border-radius: 18px;
  border: 1px solid rgba(11, 182, 254, .22);
  background: #ffffff;
  box-shadow: 0 20px 36px rgba(15, 23, 42, .11);
  padding: 1rem .85rem .8rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: .9rem;
  overflow: hidden;
  z-index: 1120;
}

.admin-sidebar__head {
  padding: .45rem .45rem .25rem;
  border-bottom: 1px solid #e7eff8;
}

.admin-sidebar__title {
  margin: 0;
  font-size: 1.07rem;
  color: #0b2c44;
}

.admin-sidebar__meta {
  margin: .35rem 0 0;
  color: #64748b;
  font-size: .82rem;
  word-break: break-all;
}

.admin-sidebar__nav {
  overflow-y: auto;
  padding-right: .15rem;
}

.admin-sidebar__link,
.admin-sidebar__aux-link {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  padding: .62rem .72rem;
  border-radius: 10px;
  color: #334155;
  border: 1px solid transparent;
  background: transparent;
  font-weight: 600;
  font-size: .93rem;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.admin-sidebar__link i,
.admin-sidebar__aux-link i {
  width: 16px;
  text-align: center;
}

.admin-sidebar__link:hover,
.admin-sidebar__aux-link:hover {
  background: #f4f9ff;
  border-color: #d6e9fb;
  color: #074a71;
}

.admin-sidebar__link.active {
  background: rgba(11, 182, 254, .15);
  border-color: rgba(11, 182, 254, .4);
  color: #055f8e;
}

.admin-sidebar__foot {
  border-top: 1px solid #e7eff8;
  padding-top: .55rem;
  display: grid;
  gap: .35rem;
}

.admin-sidebar__aux-link--danger {
  color: #8f2432;
}

.admin-sidebar-toggle {
  position: fixed;
  left: 14px;
  bottom: 16px;
  z-index: 1160;
  border: 0;
  border-radius: 999px;
  padding: .62rem .95rem;
  display: none;
  align-items: center;
  gap: .45rem;
  color: #fff;
  background: #0b6f9b;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .26);
  font-weight: 600;
}

.admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1110;
  border: 0;
  background: rgba(2, 6, 23, .35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

.admin-mode.admin-sidebar-open .admin-sidebar-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.admin-overview-grid {
  margin-bottom: 1rem;
}

.admin-overview-card {
  display: grid;
  gap: .5rem;
  align-content: start;
}

.admin-overview-card h2 {
  margin: 0;
  font-size: 1.8rem;
}

.admin-overview-card p {
  margin: 0;
  color: #475569;
}

.admin-overview-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e7f5ff;
  color: #0369a1;
  font-size: 1.05rem;
}

.admin-block-title {
  margin-top: 0;
}

.admin-logo-preview {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.admin-remove-logo-label {
  font-size: .9rem;
}

.admin-inline-row {
  display: flex;
  gap: .5rem;
}

.admin-inline-middle {
  align-items: center;
}

.admin-status-select {
  min-width: 140px;
}

.admin-inline-row .btn.active {
  background: #0bb6fe;
  border-color: #0bb6fe;
  color: #fff;
}

.admin-item-card {
  padding: .9rem;
}

.admin-item-layout {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: .95rem;
  align-items: start;
}

.admin-item-media {
  min-width: 0;
}

.admin-item-main-photo {
  display: block;
  width: 100%;
  border: 1px solid #d7e8f8;
  border-radius: 12px;
  background: #fff;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.admin-item-main-photo img {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
}

.admin-item-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .3rem;
  margin-top: .3rem;
}

.admin-item-thumb-btn {
  border: 1px solid #d7e8f8;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}

.admin-item-thumb-btn img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.admin-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .7rem;
}

.admin-item-content {
  display: grid;
  gap: .45rem;
  min-width: 0;
}

.admin-item-form {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.admin-settings-section {
  margin: 1rem 0 .65rem;
  font-size: 1rem;
  color: #1f2937;
  border-left: 4px solid #0bb6fe;
  padding-left: .55rem;
}

.admin-contact-row {
  align-items: flex-start;
  gap: .9rem;
}

.admin-contact-main {
  min-width: 0;
  flex: 1;
}

.admin-contact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
}

.admin-contact-meta {
  margin-top: .2rem;
  font-size: .85rem;
}

.admin-contact-message {
  margin: .45rem 0 0;
  color: #1f2937;
}

.admin-contact-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-user-row {
  align-items: flex-start;
}

.admin-user-main {
  min-width: 0;
  flex: 1;
}

.admin-user-actions {
  min-width: 320px;
  display: grid;
  justify-items: end;
  gap: .45rem;
}

.admin-user-ban-form {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-end;
}

.admin-user-ban-form .form-control {
  width: auto;
  min-width: 165px;
}

.admin-user-ban-text {
  margin: .35rem 0 0;
  font-size: .86rem;
  color: #8a1f2f;
}

.admin-report-card {
  box-shadow: var(--shadow-sm);
}

.item-report-box {
  border: 1px dashed rgba(11, 182, 254, .35);
}

@media (min-width: 900px) {
  .admin-mode .page-shell {
    padding-left: 310px;
    padding-right: 1.35rem;
  }

  .admin-sidebar-toggle,
  .admin-sidebar-backdrop {
    display: none !important;
  }
}

@media (max-width: 899px) {
  .admin-mode .page-shell {
    padding: 1rem .75rem 2rem;
  }

  .admin-sidebar {
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 0 18px 18px 0;
    transform: translateX(-104%);
    transition: transform .24s ease;
  }

  .admin-mode.admin-sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-sidebar-toggle {
    display: inline-flex;
  }
}

@media (max-width: 820px) {
  .admin-item-layout {
    grid-template-columns: 1fr;
  }

  .admin-item-main-photo img {
    height: 170px;
  }
}

.discover-header-block {
  margin-bottom: 1rem;
}

.discover-filter-meta {
  margin-top: .35rem;
}

.discover-live-status {
  min-height: 1.1rem;
  margin-top: .25rem;
}

.discover-live-status.is-error {
  color: #9d2323;
}

.discover-live-status.is-success {
  color: #137c3c;
}

.match-image-fixed {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.match-title {
  font-size: 1.3rem;
}

.discover-card-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.discover-empty-state {
  margin-top: 1rem;
}

.discover-reset-form {
  margin-top: .75rem;
}

.discover-actions-wrap {
  margin-top: 1rem;
}

.discover-filter-title {
  margin: 0 0 .65rem;
}

.discover-filter-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.discover-offer-card {
  padding: .5rem;
  min-width: 145px;
}

.discover-offer-name {
  font-size: .85rem;
}

.discover-reset-modal-content {
  max-width: 460px;
}

.discover-reset-help {
  margin-top: .35rem;
}

.item-details-title {
  font-size: 1.6rem;
}

.item-details-subtitle {
  font-size: 1.05rem;
}

.item-interest-chips {
  margin-bottom: .5rem;
}

.item-details-note {
  margin: .2rem 0;
}

.item-media-column {
  min-width: 0;
}

.item-report-link-wrap {
  margin-top: .35rem;
  text-align: right;
}

.item-report-trigger {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: .76rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.item-report-trigger:hover {
  color: #0b6f9b;
}

.item-report-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, .52);
  padding: 1rem;
}

.item-report-modal.active {
  display: flex;
}

.item-report-modal-dialog {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 14px;
  border: 1px solid #dbe8f5;
  box-shadow: var(--shadow-lg);
  padding: 1rem;
}

.item-report-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.item-report-modal-title {
  margin: 0;
  font-size: 1.08rem;
}

.item-report-modal-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #475569;
  cursor: pointer;
  padding: 0;
}

.item-report-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
}

body.modal-open {
  overflow: hidden;
}

.item-offer-list {
  margin-bottom: .8rem;
}

.item-offer-tools {
  display: flex;
  justify-content: flex-end;
  margin-top: .25rem;
}

.item-offer-help {
  margin: .18rem 0 .35rem;
  font-size: .84rem;
}

.item-offer-counter {
  margin: 0 0 .5rem;
  font-size: .82rem;
  font-weight: 600;
}

.create-interest-builder {
  display: grid;
  gap: .5rem;
}

.create-interest-builder .grid-2 {
  gap: .75rem;
}

.item-offer-card {
  padding: .5rem;
  min-width: 150px;
}

.item-offer-name {
  font-size: .85rem;
}

.offer-items-modal-content {
  max-width: 860px;
}

.modal.offer-items-modal-top {
  z-index: 2100;
}

.list-header {
  margin-bottom: 1rem;
}

.list-title {
  margin: 0;
}

.negotiation-safety-note-wrap {
  border: 1px solid rgba(11, 182, 254, .26);
  background: rgba(11, 182, 254, .06);
}

.negotiation-safety-note {
  margin: 0;
  font-size: .9rem;
  color: #0f4f67;
  line-height: 1.55;
}

.donation-grid {
  align-items: start;
}

.donation-about,
.donation-methods {
  display: grid;
  gap: .65rem;
}

.donation-text {
  margin: 0;
  color: #1f2937;
  line-height: 1.7;
  white-space: pre-line;
}

.donation-copy-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .5rem;
}

.donation-qr-link {
  display: inline-flex;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #dbe8f5;
  background: #fff;
  width: fit-content;
}

.donation-qr-image {
  display: block;
  width: min(280px, 100%);
  height: auto;
}

.donation-help-note {
  margin: 0;
  font-size: .86rem;
}

.proposal-row-top {
  align-items: flex-start;
}

.proposal-row-title {
  margin: 0;
}

.proposal-row-meta {
  margin: .3rem 0 0;
}

.proposal-offer-card {
  padding: .45rem;
  min-width: 150px;
}

.proposal-offer-name {
  font-size: .85rem;
}

.proposal-message-text {
  margin: .2rem 0 0;
}

.proposal-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.public-discovery-head {
  margin-bottom: 1rem;
}

.public-discovery-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 1.25rem;
  margin-bottom: 1rem;
  align-items: start;
  isolation: isolate;
}

.public-discovery-layout > * {
  min-width: 0;
}

.public-discovery-side {
  display: grid;
  gap: 1rem;
  height: fit-content;
  position: sticky;
  top: 96px;
  align-self: start;
  z-index: 5;
}

.public-discovery-main {
  min-width: 0;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
  contain: layout;
}

.public-discovery-title {
  margin: 0 0 .6rem;
  text-align: left;
  font-size: 1.6rem;
}

.public-discovery-subtitle {
  margin-bottom: 1rem;
}

.public-filter-form {
  align-items: end;
}

.public-filter-panel {
  margin-bottom: 1rem;
}

.public-top-filters {
  margin-bottom: .65rem;
}

.public-multi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}

.public-city-builder {
  display: grid;
  gap: .45rem;
}

.public-city-builder-actions {
  display: flex;
  justify-content: flex-start;
}

.public-active-summary {
  display: grid;
  gap: .3rem;
  margin-bottom: .75rem;
}

.public-active-summary p {
  margin: 0;
}

.selected-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.selected-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #eef8ff;
  border: 1px solid rgba(11, 182, 254, .28);
  border-radius: 999px;
  padding: .22rem .35rem .22rem .62rem;
  font-size: .84rem;
  color: #0b5f84;
  font-weight: 600;
}

.selected-chip-remove {
  border: 0;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 182, 254, .2);
  color: #0b5f84;
  cursor: pointer;
  line-height: 1;
}

.selected-chip-remove:hover {
  background: rgba(11, 182, 254, .34);
}

.public-select-counter {
  margin: .2rem 0 .35rem;
  font-size: .82rem;
}

.public-filter-status {
  min-height: 1.1rem;
  margin-top: .3rem;
}

.public-filter-status.is-error {
  color: #9d2323;
}

.public-filter-status.is-success {
  color: #137c3c;
}

.public-filter-sort {
  grid-column: span 2;
}

.public-filter-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.public-preview-grid {
  margin-bottom: 1rem;
}

.public-preview-card {
  height: 100%;
}

.public-preview-title {
  margin: 0 0 .7rem;
  font-size: 1.12rem;
}

.public-chip-wrap {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.public-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid rgba(11, 182, 254, .18);
  border-radius: 999px;
  padding: .35rem .65rem;
  color: #0369a1;
  background: #f0f9ff;
  font-weight: 600;
}

.public-chip.active {
  border-color: rgba(11, 182, 254, .36);
  box-shadow: inset 0 0 0 1px rgba(11, 182, 254, .2);
}

.public-pick-btn {
  cursor: pointer;
}

.public-chip small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: .05rem .35rem;
  border-radius: 999px;
  background: rgba(11, 182, 254, .16);
  color: #0369a1;
  font-size: .76rem;
  font-weight: 700;
}

.public-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.discover-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  margin-bottom: 1rem;
}

.discover-mode-actions {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
}

.discover-mode-actions .btn.active {
  background: #0bb6fe;
  color: #fff;
  border-color: #0bb6fe;
}

.discover-preview-grid {
  margin-top: 1rem;
}

.public-item-city {
  margin-bottom: .7rem;
  font-size: .86rem;
}

.public-item-actions {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
}

.public-profile-header {
  margin-bottom: 1rem;
}

.public-profile-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.public-profile-info-item {
  border: 1px solid #e3eef7;
  border-radius: 12px;
  padding: .55rem .7rem;
  display: grid;
  gap: .2rem;
}

.profile-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .55rem;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  padding: .22rem .6rem;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .01em;
  border: 1px solid transparent;
}

.profile-badge-info {
  color: #155e75;
  background: #ecfeff;
  border-color: #67e8f9;
}

.profile-badge-success {
  color: #166534;
  background: #f0fdf4;
  border-color: #86efac;
}

.profile-badge-primary {
  color: #075985;
  background: #eff6ff;
  border-color: #93c5fd;
}

.profile-badge-default {
  color: #475569;
  background: #f8fafc;
  border-color: #cbd5e1;
}

.public-review-list {
  max-height: 540px;
  overflow-y: auto;
  display: grid;
  gap: .65rem;
  padding-right: .35rem;
}

.public-review-item {
  border: 1px solid #e7edf4;
  border-radius: 12px;
  padding: .6rem .7rem;
  background: #fff;
}

.public-review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.public-review-stars {
  color: #c7ccd3;
  font-size: .85rem;
  display: inline-flex;
  gap: .1rem;
}

.public-review-stars .is-active {
  color: #f59e0b;
}

.public-review-comment {
  margin: .45rem 0 0;
  color: #1f2937;
  line-height: 1.45;
  word-break: break-word;
}

.public-profile-items-grid {
  display: grid;
  gap: .65rem;
}

.public-profile-item-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: .65rem;
  align-items: start;
}

.public-profile-item-photo {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e7edf4;
}

.negotiation-chat-warning {
  margin: .35rem 0 0;
  font-size: .8rem;
}

@media (max-width: 960px) {
  .desktop-only {
    display: none;
  }

  .discover-layout {
    grid-template-columns: 1fr;
  }

  .discover-filter-card {
    position: static;
  }

  .public-discovery-layout {
    grid-template-columns: 1fr;
  }

  .public-discovery-side {
    position: static;
    top: auto;
  }

  .public-multi-grid {
    grid-template-columns: 1fr;
  }

  .discover-mode-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .public-filter-sort {
    grid-column: auto;
  }

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

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .chat-compose-row {
    flex-direction: column;
  }

  .chat-media-image,
  .chat-media-video,
  .chat-location-map {
    width: 100%;
  }

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

  .public-items-grid {
    grid-template-columns: 1fr;
  }

  .public-profile-item-card {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .public-profile-item-photo {
    width: 70px;
    height: 70px;
  }

  .page-shell {
    padding-top: 112px;
  }

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

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid rgba(11, 182, 254, .12);
    box-shadow: 0 10px 30px rgba(33, 42, 63, .12);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
    z-index: 999;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .8rem 1rem 1rem;
  }

  .nav-item {
    margin: 0;
  }

  .nav-link {
    display: block;
    padding: .8rem;
  }

  .admin-user-actions {
    min-width: 100%;
    justify-items: start;
  }

  .admin-user-ban-form {
    justify-content: flex-start;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .notification-dropdown {
    right: -42px;
    width: min(340px, 92vw);
  }
}
