:root {
  --ink: #0f172a;
  --muted: #77748c;
  --line: #e9e7f1;
  --purple: #AAFF00;
  --purple-dark: #15803d;
  --purple-pale: #f1ffd6;
  --mint: #dff9eb;
  --green: #188a60;
  --orange-pale: #fff1df;
  --orange: #ad651e;
  --red-pale: #ffebeb;
  --red: #b93838;
  --surface: #f8faf5;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Tahoma, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px max(22px, calc((100vw - 1180px) / 2));
  color: #fff;
  background:
    radial-gradient(circle at 12% 0%, rgba(113, 100, 232, 0.28), transparent 35%),
    linear-gradient(135deg, #0b1320 0%, #152238 60%, #1f3622 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 28px rgba(22, 18, 63, 0.16);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  min-width: 205px;
  padding: 8px 13px 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.admin-brand:hover {
  border-color: rgba(216, 210, 255, 0.48);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.admin-brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  overflow: hidden;
  border-radius: 14px 14px 14px 5px;
  background: linear-gradient(145deg, #AAFF00, #DFFF00);
  box-shadow: 0 8px 18px rgba(113, 100, 232, 0.34);
  font-size: 1.35rem;
}

.admin-brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1);
}

.admin-brand strong,
.admin-brand small {
  display: block;
}

.admin-brand strong {
  font-size: 1.02rem;
  letter-spacing: -0.03em;
}

.admin-brand small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.61rem;
}

.admin-header-actions {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  padding: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(8, 7, 25, 0.22);
}

.admin-header-actions > span {
  display: inline-flex;
  min-height: 37px;
  align-items: center;
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  white-space: nowrap;
}

.logout-link {
  display: inline-flex;
  min-height: 37px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  color: #fff;
  border: 1px solid rgba(255, 151, 151, 0.28);
  border-radius: 10px;
  background: rgba(185, 56, 56, 0.15);
  font-size: 0.67rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.logout-link:hover {
  border-color: rgba(255, 174, 174, 0.5);
  background: rgba(185, 56, 56, 0.32);
  transform: translateY(-1px);
}

.admin-nav-link {
  display: inline-flex;
  min-height: 37px;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.admin-nav-link:hover {
  color: #fff;
  border-color: rgba(216, 210, 255, 0.2);
  background: rgba(113, 100, 232, 0.28);
  transform: translateY(-1px);
}

.admin-container {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 42px 0 70px;
}

.admin-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.admin-kicker {
  color: var(--purple);
  font-size: 0.68rem;
  font-weight: 700;
}

.admin-intro h1 {
  margin: 10px 0 8px;
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  letter-spacing: -0.06em;
}

.admin-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.public-site-link {
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 700;
}

.flash {
  margin-bottom: 20px;
  padding: 13px 15px;
  border-radius: 10px;
  font-size: 0.72rem;
}

.flash.success {
  color: var(--green);
  background: var(--mint);
}

.flash.error {
  color: var(--red);
  background: var(--red-pale);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.stat-card {
  display: block;
  padding: 18px;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover,
.stat-card:focus-visible {
  border-color: #c7c0ff;
  box-shadow: 0 8px 20px rgba(73, 62, 180, 0.12);
  outline: 0;
  transform: translateY(-2px);
}

.stat-card small,
.stat-card strong {
  display: block;
}

.stat-card small {
  color: var(--muted);
  font-size: 0.65rem;
}

.stat-card strong {
  margin-top: 13px;
  color: var(--purple);
  font-size: 1.55rem;
}

.stat-card.highlight {
  background: var(--purple);
  border-color: var(--purple);
}

.stat-card.highlight small,
.stat-card.highlight strong {
  color: #fff;
}

.analytics-panel {
  margin-bottom: 30px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
}

.analytics-toolbar {
  align-items: center;
}

.analytics-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.analytics-export-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 10px;
  color: var(--purple-dark);
  border: 1px solid #cfcaf4;
  border-radius: 7px;
  background: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.analytics-export-link:hover {
  background: var(--purple-pale);
}

.panel-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.62rem;
}

.analytics-note {
  color: var(--muted);
  font-size: 0.61rem;
}

.analytics-warning {
  margin: 18px 20px 20px;
  padding: 13px 15px;
  color: #8b765d;
  border: 1px solid #f2cf9e;
  border-radius: 10px;
  background: #fff8ed;
  font-size: 0.68rem;
  line-height: 1.8;
}

.analytics-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 20px 0;
}

.analytics-stat {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfcfe;
}

.analytics-stat small,
.analytics-stat strong {
  display: block;
}

.analytics-stat small {
  color: var(--muted);
  font-size: 0.62rem;
}

.analytics-stat strong {
  margin-top: 10px;
  color: var(--purple);
  font-size: 1.35rem;
}

.analytics-daily-details {
  color: var(--purple-dark);
  font-size: 0.65rem;
}

.analytics-daily-details summary {
  cursor: pointer;
  font-weight: 700;
}

.analytics-today-details {
  margin-top: 10px;
}

.analytics-today-details p {
  margin: 8px 0 0;
  color: var(--muted);
}

.analytics-visitor-ip-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  max-height: 230px;
  overflow-y: auto;
}

.analytics-visitor-ip-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 10px;
  padding: 6px 2px;
  border-bottom: 1px solid var(--line);
}

.analytics-visitor-ip-list li:last-child {
  border-bottom: 0;
}

.analytics-visitor-ip-list span[dir="ltr"] {
  font-family: Consolas, "Courier New", monospace;
  white-space: nowrap;
}

.analytics-visitors-panel {
  margin: 18px 20px 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfcff;
}

.analytics-visitors-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.analytics-visitors-heading h3 {
  margin: 0;
  font-size: 0.8rem;
}

.analytics-visitors-table {
  min-width: 760px;
}

.analytics-visitor-phone,
.analytics-visitor-ip {
  direction: ltr;
  font-family: Consolas, "Courier New", monospace;
  white-space: nowrap;
}

.analytics-visitor-listing-title,
.analytics-visitor-listing-location {
  display: block;
}

.analytics-visitor-listing-title {
  font-weight: 700;
}

.analytics-listing-link {
  color: var(--purple-dark);
  text-decoration: none;
}

.analytics-listing-link:hover {
  color: var(--purple);
  text-decoration: underline;
}

.analytics-visitor-listing-location {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.58rem;
}

.analytics-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
  gap: 18px;
  padding: 18px 20px 20px;
}

.analytics-subpanel {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.analytics-subpanel h3 {
  margin: 0 0 13px;
  font-size: 0.77rem;
}

.analytics-table-wrap {
  overflow-x: auto;
}

.analytics-table {
  width: 100%;
  min-width: 430px;
  border-collapse: collapse;
}

.analytics-table.compact {
  min-width: 260px;
}

.analytics-table th,
.analytics-table td {
  padding: 10px 8px;
  text-align: right;
  border-bottom: 1px solid #f0eff5;
  font-size: 0.62rem;
  line-height: 1.7;
}

.analytics-table th {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 600;
}

.analytics-table tr:last-child td {
  border-bottom: 0;
}

.analytics-status {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 0.58rem;
  font-weight: 700;
  white-space: nowrap;
}

.analytics-status-active {
  color: var(--green);
  background: var(--mint);
}

.analytics-status-deleted {
  color: var(--red);
  background: var(--red-pale);
}

.analytics-delete-button {
  min-height: 32px;
  padding: 6px 9px;
  color: #fff;
  border: 0;
  border-radius: 7px;
  background: var(--red);
  cursor: pointer;
  font: inherit;
  font-size: 0.58rem;
  font-weight: 700;
  white-space: nowrap;
}

.analytics-delete-button:hover {
  background: #a92828;
}

.analytics-delete-all {
  color: var(--red);
  border: 1px solid #f1c7c7;
  background: var(--red-pale);
}

.analytics-delete-all:hover {
  color: #fff;
  background: var(--red);
}

.analytics-deleted-panel {
  margin: 0 20px 20px;
  padding: 16px;
  border: 1px solid #f1c7c7;
  border-radius: 12px;
  background: #fffafa;
}

.analytics-deleted-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.analytics-deleted-heading h3 {
  margin: 0;
  color: var(--red);
  font-size: 0.8rem;
}

.listing-countdown {
  display: inline-block;
  padding: 5px 8px;
  color: var(--green);
  border-radius: 7px;
  background: var(--mint);
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
}

.listing-countdown.pending {
  color: var(--muted);
  background: #f1f0f6;
}

.listing-countdown.expired {
  color: var(--red);
  background: var(--red-pale);
}

.analytics-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.9;
}

.listing-panel {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 14px 35px rgba(39, 32, 105, 0.06);
}

.listing-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #fbfaff 100%);
}

.listing-panel-toolbar h2 {
  margin: 0;
  font-size: 0.95rem;
}

.listing-search-summary {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.65rem;
}

.listing-search-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  width: min(100%, 620px);
}

.listing-search-city {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
}

.listing-search-city select {
  min-width: 130px;
  padding: 4px 7px;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.68rem;
  font-weight: 700;
}

.listing-search-form input {
  flex: 1 1 280px;
  min-width: 0;
  min-height: 38px;
  padding: 8px 11px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: #fff;
  font-size: 0.7rem;
}

.listing-search-form input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(113, 100, 232, 0.1);
}

.listing-search-form button,
.listing-search-clear {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.listing-search-form button {
  color: #fff;
  border: 0;
  background: var(--purple);
}

.listing-search-form button:hover {
  background: var(--purple-dark);
}

.listing-search-clear {
  color: var(--muted);
  border: 1px solid var(--line);
  background: #fff;
}

.listing-search-clear:hover {
  color: var(--ink);
  border-color: #c9c4e9;
}

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

.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-toolbar h2 {
  margin: 0;
  font-size: 0.95rem;
}

.status-filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.status-filters a {
  padding: 7px 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.62rem;
}

.status-filters a.active,
.status-filters a:hover {
  color: var(--purple);
  border-color: #d7d2ff;
  background: var(--purple-pale);
}

.listings-table-wrap {
  overflow-x: auto;
}

.listings-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.listings-table th,
.listings-table td {
  padding: 15px 18px;
  text-align: right;
  vertical-align: top;
  border-bottom: 1px solid #f0eff5;
  font-size: 0.68rem;
}

.listings-table th {
  color: var(--muted);
  background: #f9f8fd;
  font-size: 0.62rem;
  font-weight: 600;
}

.listings-table tbody tr:not(.listing-details-row) td {
  transition: background 0.2s ease;
}

.listings-table tbody tr:not(.listing-details-row):hover td {
  background: #fcfbff;
}

.listings-table tr:last-child td {
  border-bottom: 0;
}

.listing-title {
  max-width: 240px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.7;
}

.listing-owner-name {
  font-weight: 700;
}

.listing-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.58rem;
}

.listing-view-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  padding: 4px 8px;
  color: #5146b8;
  border: 1px solid #e2defb;
  border-radius: 999px;
  background: #f6f4ff;
  font-size: 0.6rem;
  line-height: 1.4;
  white-space: nowrap;
}

.listing-view-count strong {
  font-size: 0.68rem;
  font-weight: 800;
}

.listing-details-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 9px;
  padding: 6px 9px;
  color: var(--purple);
  border: 1px solid #ddd8f7;
  border-radius: 8px;
  background: var(--purple-pale);
  cursor: pointer;
  font: inherit;
  font-size: 0.59rem;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.listing-details-toggle:hover {
  border-color: #bdb3f6;
  background: #eae6ff;
  transform: translateY(-1px);
}

.listing-details-toggle span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.listing-details-toggle[aria-expanded="true"] span {
  transform: rotate(-90deg);
}

.listing-details-row[hidden] {
  display: none;
}

.listing-details-cell {
  padding: 0 18px 18px !important;
  border-bottom: 1px solid #f0eff5;
}

.listing-details-panel {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding: 20px;
  color: var(--muted);
  border: 1px solid #e7e3f7;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #fbfaff 100%);
  box-shadow: 0 12px 28px rgba(48, 39, 115, 0.07);
  font-size: 0.64rem;
  line-height: 1.9;
}

.listing-details-group {
  display: grid;
  align-content: start;
  gap: 0;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #ece9f7;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.82);
}

.listing-details-group h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
}

.listing-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 34px;
  border-bottom: 1px solid #f0eef7;
}

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

.listing-detail-item span {
  color: var(--muted);
}

.listing-detail-item strong {
  max-width: 66%;
  color: var(--ink-soft, #53516c);
  font-weight: 700;
  text-align: left;
  overflow-wrap: anywhere;
}

.listing-details-media {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
}

.listing-details-primary-image {
  display: block;
  overflow: hidden;
  border: 1px solid #e3def7;
  border-radius: 14px;
  background: #f3f1fb;
  box-shadow: 0 8px 20px rgba(55, 45, 135, 0.1);
}

.listing-details-primary-image:hover {
  border-color: #bdb3f6;
}

.listing-details-content {
  display: grid;
  gap: 15px;
  min-width: 0;
}

.listing-details-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ece9f7;
}

.listing-details-heading > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.listing-details-eyebrow {
  color: var(--purple);
  font-size: 0.58rem;
  font-weight: 800;
}

.listing-details-heading strong {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.8;
}

.listing-details-id {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: var(--purple-dark);
  border-radius: 8px;
  background: var(--purple-pale);
  direction: ltr;
  font-size: 0.62rem;
  font-weight: 800;
}

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

.listing-details-media-caption {
  color: var(--muted);
  font-size: 0.56rem;
  text-align: center;
}

.listing-details-thumbnails {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.listing-details-thumbnails a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f5f3fb;
}

.listing-details-thumbnails a:hover {
  border-color: #bdb3f6;
}

.listing-image-preview {
  width: 100%;
  height: 178px;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.listing-details-primary-image:hover .listing-image-preview,
.listing-details-thumbnails a:hover .listing-image-thumb {
  transform: scale(1.035);
}

.listing-image-thumb {
  width: 100%;
  height: 74px;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.listing-details-no-image {
  display: grid;
  width: 100%;
  height: 178px;
  place-items: center;
  color: var(--muted);
  border: 1px dashed #d8d2ed;
  border-radius: 14px;
  background: #f8f7fc;
}

.listing-details-group div {
  overflow-wrap: anywhere;
}

.badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 0.56rem;
  font-weight: 700;
}

.badge.pending {
  color: var(--orange);
  background: var(--orange-pale);
}

.badge.approved {
  color: var(--green);
  background: var(--mint);
}

.badge.rejected {
  color: var(--red);
  background: var(--red-pale);
}

.badge.needs-edit {
  color: #6555c7;
  background: var(--purple-pale);
}

.badge.paid {
  color: var(--green);
  background: var(--mint);
}

.badge.unpaid {
  color: var(--red);
  background: var(--red-pale);
}

.actions-cell {
  min-width: 260px;
}

.action-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.action-form input {
  width: 100%;
  max-width: 260px;
  box-sizing: border-box;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  font-size: 0.61rem;
}

.action-form input:focus {
  border-color: var(--purple);
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
}

.action-destructive-buttons {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
}

.action-form button {
  padding: 8px 9px;
  color: #fff;
  border: 0;
  border-radius: 7px;
  font-size: 0.6rem;
  font-weight: 700;
}

.action-form button[name="action"][value="approve"] {
  background: var(--green);
}

.action-form button[name="action"][value="telegram_send"] {
  background: #086b9c;
  color: #fff;
  cursor: pointer;
  font-size: 0.72rem;
  padding: 9px 12px;
}

.action-form button[name="action"][value="telegram_send"]:hover {
  background: #07567d;
}

.action-form button[name="action"][value="telegram_send"]:focus-visible {
  outline: 3px solid #086b9c;
  outline-offset: 3px;
}

.action-form button[name="action"][value="reject"] {
  color: var(--red);
  background: var(--red-pale);
}

.action-form button[name="action"][value="needs_edit"] {
  color: #6555c7;
  background: var(--purple-pale);
}

.action-form button[name="action"][value="approve_without_payment"] {
  color: #6f5314;
  background: #fff2c9;
}

.action-form button[name="action"][value="delete"] {
  color: #fff;
  background: var(--red);
}

.listing-edit-link {
  display: inline-flex;
  width: 38px;
  min-width: 38px;
  height: 38px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--purple-dark);
  border: 1px solid #d9d4ff;
  border-radius: 7px;
  background: var(--purple-pale);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.listing-edit-link:hover {
  color: #fff;
  background: var(--purple);
}

.empty-listings {
  padding: 60px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 0.75rem;
}

.admin-edit-page {
  padding-bottom: 50px;
}

.admin-edit-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(31, 27, 72, 0.06);
}

.admin-settings-page {
  padding-bottom: 55px;
}

.settings-panel {
  margin-bottom: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
}

.site-settings-form {
  display: grid;
  gap: 22px;
}

.site-settings-form .settings-panel {
  margin-bottom: 0;
}

.site-color-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  padding: 20px;
}

.site-color-field {
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px 13px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.site-color-field > span {
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
}

.site-color-field input[type="color"] {
  width: 48px;
  height: 34px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.site-color-field code {
  grid-column: 1 / -1;
  color: var(--muted);
  direction: ltr;
  text-align: left;
  font: 0.67rem/1.2 Consolas, monospace;
}

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

.site-banner-field {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.site-banner-field > span:first-child {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
}

.site-banner-field input[type="file"] {
  width: 100%;
  padding: 9px;
  color: var(--muted);
  border: 1px dashed #cbc7e8;
  border-radius: 9px;
  background: #fbfaff;
  font-size: 0.67rem;
}

.site-banner-preview {
  width: 100%;
  height: 170px;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface);
}

.site-banner-empty {
  min-height: 170px;
  display: grid;
  place-items: center;
  padding: 15px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.68rem;
}

.site-banner-remove {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--red);
  font-size: 0.65rem;
}

.site-settings-submit {
  width: 100%;
  min-height: 48px;
  padding-inline: 20px;
  border: 0;
  border-radius: 10px;
  background: var(--purple);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.site-settings-submit:hover {
  background: var(--purple-dark);
}

.contact-messages-panel {
  margin-top: 8px;
}

.contact-messages-table {
  min-width: 900px;
}

.contact-messages-table .contact-message-text {
  min-width: 260px;
  max-width: 420px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-edit-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 12px 14px;
  color: var(--muted);
  border: 1px solid #e5e1ff;
  border-radius: 10px;
  background: #fbfaff;
  font-size: 0.72rem;
}

.admin-edit-summary strong {
  color: var(--ink);
}

.admin-edit-featured {
  color: var(--purple-dark);
  font-weight: 700;
}

.admin-edit-form {
  display: grid;
  gap: 20px;
}

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

.admin-edit-form label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft, #53516c);
  font-size: 0.72rem;
  font-weight: 700;
}

.admin-edit-form input,
.admin-edit-form select {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #fff;
  font-size: 0.76rem;
}

.admin-edit-form input:focus,
.admin-edit-form select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(113, 100, 232, 0.1);
}

.admin-edit-section {
  display: grid;
  gap: 14px;
  padding-top: 19px;
  border-top: 1px solid #efedf6;
}

.admin-edit-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.admin-edit-rent-fields[hidden],
.admin-edit-buy-fields[hidden] {
  display: none;
}

.admin-edit-buy-fields,
.admin-edit-rent-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.admin-edit-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-edit-image-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfcff;
}

.admin-edit-image-card img,
.admin-edit-no-image {
  width: 100%;
  height: 155px;
  display: grid;
  place-items: center;
  object-fit: cover;
  color: var(--muted);
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.admin-edit-image-card input[type="file"] {
  min-height: 42px;
  padding: 8px;
  font-size: 0.68rem;
}

.admin-edit-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.admin-edit-submit,
.admin-edit-cancel {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

.admin-edit-submit {
  color: #fff;
  border: 0;
  background: var(--purple);
}

.admin-edit-submit:hover {
  background: var(--purple-dark);
}

.admin-edit-cancel {
  color: var(--muted);
  border: 1px solid var(--line);
  background: #fff;
}

.admin-edit-cancel:hover {
  color: var(--ink);
  border-color: #c9c4e9;
}

.setup-warning {
  max-width: 680px;
  margin: 40px auto;
  padding: 23px;
  border: 1px solid #f2cf9e;
  border-radius: 15px;
  background: #fff8ed;
}

.setup-warning h2 {
  margin: 0 0 10px;
  color: #8a541d;
  font-size: 1rem;
}

.setup-warning p,
.setup-warning li {
  color: #8b765d;
  font-size: 0.72rem;
  line-height: 1.9;
}

.sms-settings-panel {
  max-width: 760px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
}

.site-otp-settings-panel {
  margin-top: 22px;
}

.sms-settings-notice {
  margin-bottom: 22px;
  padding: 15px 17px;
  color: #76551d;
  border: 1px solid #f2cf9e;
  border-radius: 11px;
  background: #fff8ed;
  font-size: 0.75rem;
  line-height: 2;
}

.sms-settings-notice code,
.sms-settings-steps code {
  direction: ltr;
  unicode-bidi: plaintext;
  padding: 2px 5px;
  border-radius: 5px;
  background: #f0edf8;
  color: var(--purple-dark);
  font-family: Consolas, monospace;
}

.sms-settings-form {
  display: grid;
  gap: 8px;
}

.sms-settings-form label {
  margin-top: 9px;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
}

.sms-settings-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  direction: ltr;
  text-align: left;
  font-size: 0.78rem;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  padding-left: 48px;
}

.password-toggle {
  position: absolute;
  left: 9px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  color: var(--purple-dark);
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 1rem;
  line-height: 1;
}

.password-toggle:hover,
.password-toggle.is-visible {
  background: var(--purple-pale);
}

.sms-settings-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: #fff;
  font: inherit;
  font-size: 0.78rem;
}

.sms-settings-form input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(113, 100, 232, 0.12);
}

.sms-settings-form select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(113, 100, 232, 0.12);
}

.otp-settings-divider {
  margin-top: 20px;
  padding-top: 16px;
  color: var(--purple-dark);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 800;
}

.telegram-settings-status {
  display: grid;
  gap: 5px;
  margin: 8px 0 16px;
  padding: 12px 14px;
  border: 1px solid #f2cf9e;
  border-radius: 10px;
  background: #fff8ed;
  color: #8b5c20;
  font-size: 0.72rem;
  line-height: 1.8;
}

.telegram-settings-status.is-ready {
  border-color: #bfe8d2;
  background: #f1fff6;
  color: #176c43;
}

.telegram-settings-status ul {
  margin: 0;
  padding-right: 20px;
}

.otp-webhook-form {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px dashed #d9d5f5;
}

.sms-settings-form small {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.8;
}

.sms-settings-submit {
  min-height: 45px;
  margin-top: 18px;
  padding: 10px 15px;
  color: #fff;
  border: 0;
  border-radius: 9px;
  background: var(--purple);
  font-size: 0.76rem;
  font-weight: 700;
}

.sms-settings-submit:hover {
  background: var(--purple-dark);
}

.owner-password-panel {
  max-width: 760px;
  margin-bottom: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
}

.owner-password-notice {
  margin-bottom: 20px;
  padding: 14px 16px;
  color: #76551d;
  border: 1px solid #f2cf9e;
  border-radius: 11px;
  background: #fff8ed;
  font-size: 0.75rem;
  line-height: 2;
}

.owner-password-form {
  display: grid;
  gap: 9px;
}

.owner-password-form label {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
}

.owner-password-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  direction: ltr;
  text-align: left;
  font-size: 0.78rem;
}

.owner-password-form input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(113, 100, 232, 0.12);
}

.owner-password-list-panel {
  margin-top: 24px;
}

.owner-password-table {
  min-width: 980px;
}

.owner-password-toggle-form {
  margin: 0;
}

.owner-password-toggle {
  min-height: 34px;
  padding: 7px 10px;
  color: var(--purple-dark);
  border: 1px solid #cfcaf4;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
}

.owner-password-toggle:hover {
  background: var(--purple-pale);
}

.sms-settings-steps {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.sms-settings-steps h2 {
  margin: 0 0 10px;
  font-size: 0.9rem;
}

.sms-settings-steps ol {
  margin: 0;
  padding-right: 20px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 2.1;
}

.users-panel {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
}

.users-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.users-tools-panel {
  margin-bottom: 20px;
}

.users-summary .stat-card {
  min-width: 170px;
  flex: 1;
}

.user-group-stat {
  border-color: #e3e0f2;
}

.user-group-stat-agency {
  border-color: #cfc7ff;
  background: #f8f7ff;
}

.user-group-stat-consultant {
  border-color: #bfead8;
  background: #f6fffb;
}

.user-group-stat-user {
  border-color: #e4e2ee;
  background: #fff;
}

.user-group-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.user-group-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(43, 36, 94, 0.1);
}

.user-group-link-action {
  display: block;
  margin-top: 8px;
  color: var(--purple);
  font-size: 0.68rem;
  font-weight: 700;
}

.user-groups {
  display: grid;
  gap: 20px;
}

.user-group-panel {
  min-width: 0;
}

.user-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.user-group-heading h2 {
  margin: 0;
  font-size: 1rem;
}

.user-group-heading .panel-subtitle {
  margin-bottom: 0;
}

.user-group-count {
  flex: 0 0 auto;
  padding: 7px 12px;
  color: var(--purple-dark);
  background: #f0edff;
  border: 1px solid #ddd6ff;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.users-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.users-table th,
.users-table td {
  padding: 14px 16px;
  text-align: right;
  vertical-align: top;
  border-bottom: 1px solid #f0eff5;
  font-size: 0.7rem;
  line-height: 1.8;
}

.users-table th {
  color: var(--muted);
  background: #fcfcfe;
  font-size: 0.64rem;
  font-weight: 700;
}

.users-table tr:last-child td {
  border-bottom: 0;
}

.user-name {
  font-weight: 800;
}

.user-identity-details summary {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  cursor: pointer;
  list-style: none;
}

.user-identity-details summary::-webkit-details-marker {
  display: none;
}

.user-identity-details summary::after {
  content: '＋';
  color: var(--purple);
  font-size: 0.9rem;
  font-weight: 800;
}

.user-identity-details[open] summary::after {
  content: '−';
}

.user-identity-data {
  display: grid;
  gap: 6px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.user-identity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.user-identity-item small {
  color: var(--muted);
  font-size: 0.62rem;
}

.user-identity-item strong {
  font-size: 0.68rem;
}

.user-muted {
  color: var(--muted);
}

.user-agent {
  max-width: 280px;
  color: var(--muted);
  direction: ltr;
  font-size: 0.62rem;
  overflow-wrap: anywhere;
  text-align: left;
}

.user-ip {
  direction: ltr;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.72rem;
}

.user-wallet-cell {
  min-width: 190px;
}

.user-wallet-cell > strong {
  display: block;
  color: var(--purple-dark);
}

.user-reward-details {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.61rem;
}

.user-reward-details summary {
  width: fit-content;
  color: var(--purple);
  cursor: pointer;
  font-weight: 700;
}

.user-reward-list {
  display: grid;
  gap: 6px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.user-reward-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  padding: 5px 0;
  border-bottom: 1px dashed #eceaf4;
}

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

.user-reward-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.user-reward-item strong {
  color: var(--green);
  white-space: nowrap;
}

.user-reward-item small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.56rem;
}

.admin-wallet-page {
  max-width: 1180px;
}

.wallet-admin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.wallet-admin-stat {
  display: grid;
  gap: 7px;
  min-height: 88px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
}

.wallet-admin-stat small {
  color: var(--muted);
  font-size: 0.68rem;
}

.wallet-admin-stat strong {
  color: var(--ink);
  font-size: 1.15rem;
}

.wallet-admin-stat span {
  color: var(--muted);
  font-size: 0.61rem;
}

.wallet-admin-stat-referral {
  border-top: 4px solid #36a477;
}

.wallet-admin-stat-referral strong {
  color: #16805c;
}

.wallet-admin-stat-cash {
  border-top: 4px solid var(--purple);
}

.wallet-admin-stat-cash strong {
  color: var(--purple-dark);
}

.wallet-admin-stat-gift {
  border-top: 4px solid #e1a62f;
}

.wallet-admin-stat-gift strong {
  color: #9b6c0b;
}

.wallet-admin-stat-highlight {
  background: linear-gradient(135deg, #7568e8, #6053d4);
  border-color: transparent;
}

.wallet-admin-stat-highlight small,
.wallet-admin-stat-highlight strong {
  color: #fff;
}

.wallet-admin-card {
  overflow: hidden;
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
}

.wallet-adjustment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
}

.wallet-adjustment-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
}

.wallet-adjustment-form input,
.wallet-adjustment-form select {
  width: 100%;
  min-height: 43px;
  box-sizing: border-box;
  padding: 9px 11px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #fff;
  font-size: 0.74rem;
}

.wallet-adjustment-form input:focus,
.wallet-adjustment-form select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(113, 100, 232, 0.1);
}

.wallet-adjustment-description,
.wallet-adjustment-form button {
  grid-column: 1 / -1;
}

.wallet-adjustment-form button {
  min-height: 44px;
  border: 0;
}

.wallet-admin-note {
  margin: -6px 20px 19px;
  color: var(--muted);
  font-size: 0.64rem;
}

.wallet-search-form {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wallet-search-form input {
  width: min(280px, 100%);
  min-height: 34px;
  box-sizing: border-box;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  font-size: 0.68rem;
}

.wallet-search-form input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(113, 100, 232, 0.1);
}

.wallet-search-form button,
.wallet-search-form a,
.wallet-select-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  color: var(--purple-dark);
  border: 1px solid #cfcaf4;
  border-radius: 8px;
  background: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.wallet-search-form button:hover,
.wallet-search-form a:hover,
.wallet-select-link:hover {
  background: var(--purple-pale);
}

.wallet-admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.wallet-admin-table th,
.wallet-admin-table td {
  padding: 13px 16px;
  text-align: right;
  vertical-align: middle;
  border-bottom: 1px solid #f0eff5;
  font-size: 0.69rem;
  line-height: 1.8;
}

.wallet-admin-table th {
  color: var(--muted);
  background: #fcfcfe;
  font-size: 0.63rem;
  font-weight: 700;
}

.wallet-admin-table tr:last-child td {
  border-bottom: 0;
}

.wallet-balance-value {
  color: var(--purple-dark);
  white-space: nowrap;
}

.wallet-muted,
.wallet-reference {
  display: block;
  color: var(--muted);
  font-size: 0.61rem;
}

.wallet-transaction-badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.61rem;
  font-weight: 700;
  white-space: nowrap;
}

.wallet-transaction-badge.credit {
  color: #087957;
  background: #e1f8ed;
}

.wallet-transaction-badge.debit {
  color: #a43232;
  background: #fde8e8;
}

.wallet-credit {
  color: #087957;
  font-weight: 800;
  white-space: nowrap;
}

.wallet-debit {
  color: #a43232;
  font-weight: 800;
  white-space: nowrap;
}

.users-empty {
  padding: 55px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 0.8rem;
}

/* خوانایی بیشتر پنل مدیریت */
.admin-header-actions {
  font-size: 0.9rem;
}

.admin-brand small {
  font-size: 0.78rem;
}

.admin-kicker,
.public-site-link,
.flash,
.admin-intro p,
.panel-subtitle,
.analytics-note,
.analytics-warning,
.analytics-table th,
.analytics-table td,
.analytics-empty,
.status-filters a,
.listings-table th,
.listings-table td,
.listing-meta,
.listing-details-toggle,
.listing-details-panel,
.badge,
.action-form input,
.action-form button {
  font-size: calc(0.6rem + 2px);
}

.panel-toolbar h2 {
  font-size: 1.1rem;
}

.stat-card small {
  font-size: calc(0.65rem + 2px);
}

.analytics-stat small {
  font-size: calc(0.62rem + 2px);
}

.listing-title {
  font-size: calc(0.68rem + 2px);
}

.action-form {
  gap: 9px;
}

.action-form input {
  min-height: 38px;
}

.action-form button {
  min-height: 38px;
  padding-inline: 11px;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(circle at 15% 15%, #352b78, transparent 35%), #17152f;
}

.deputy-create-panel {
  padding-bottom: 20px;
}

.admin-deputies-page {
  max-width: 1060px;
}

.deputy-panel-toolbar {
  align-items: center;
}

.deputy-panel-badge,
.deputy-count-badge,
.deputy-selection-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  color: var(--purple-dark);
  border: 1px solid #ddd8ff;
  border-radius: 999px;
  background: var(--purple-pale);
  font-size: 0.64rem;
  font-weight: 800;
  white-space: nowrap;
}

.deputy-count-badge {
  color: var(--green);
  border-color: #c9efdc;
  background: var(--mint);
}

.deputy-form,
.deputy-row {
  padding: 24px;
}

.deputy-form {
  gap: 22px;
}

.deputy-form .admin-edit-grid {
  gap: 16px;
}

.deputy-password-help {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 400;
  line-height: 1.7;
}

.deputy-cities-field {
  display: grid;
  gap: 14px;
  padding: 17px;
  color: var(--ink);
  border: 1px solid #e3dfff;
  border-radius: 14px;
  background: #fbfaff;
  font-size: 0.72rem;
}

.deputy-cities-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.deputy-cities-header > div {
  display: grid;
  gap: 4px;
}

.deputy-cities-header strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.deputy-cities-header small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 400;
}

.deputy-selection-hint {
  color: var(--muted);
  font-size: 0.61rem;
  white-space: nowrap;
}

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

.deputy-city-group {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.deputy-city-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid #efedf6;
}

.deputy-city-group-heading strong {
  color: var(--ink);
  font-size: 0.7rem;
}

.deputy-select-all {
  padding: 4px 7px;
  color: var(--purple-dark);
  border: 0;
  border-radius: 6px;
  background: var(--purple-pale);
  font-size: 0.58rem;
  font-weight: 700;
}

.deputy-select-all:hover {
  background: #e6e1ff;
}

.deputy-city-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-edit-form .deputy-city-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 9px;
  color: var(--ink);
  border: 1px solid #efedf6;
  border-radius: 8px;
  background: #fdfcff;
  font-size: 0.66rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.admin-edit-form .deputy-city-options label:hover {
  border-color: #cfc9ff;
  background: var(--purple-pale);
  transform: translateY(-1px);
}

.admin-edit-form .deputy-city-options input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  flex: 0 0 16px;
  padding: 0;
  accent-color: var(--purple);
}

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

.deputy-row {
  display: grid;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(28, 24, 78, 0.04);
}

.deputy-row-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.deputy-row-fields label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
}

.deputy-row-fields input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #fff;
  font-size: 0.74rem;
}

.deputy-row-fields input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(113, 100, 232, 0.1);
}

.deputy-row-footer {
  display: flex;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #efedf6;
  gap: 10px;
  flex-wrap: wrap;
}

.deputy-row-footer .admin-edit-submit {
  margin-right: auto;
}

.deputy-status {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
}

.deputy-status.is-active {
  color: var(--green);
  background: var(--mint);
}

.deputy-status.is-inactive {
  color: var(--red);
  background: var(--red-pale);
}

.deputy-empty {
  margin: 0;
  padding: 25px;
}

.deputy-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.deputy-form-actions small {
  color: var(--muted);
  font-size: 0.61rem;
}

.deputy-form-actions .site-settings-submit {
  width: auto;
  min-width: 170px;
}

.login-card {
  width: min(100%, 420px);
  padding: 30px;
  background: #fff;
  border-radius: 19px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

.login-card .admin-brand {
  color: var(--ink);
  margin-bottom: 28px;
}

.login-card .admin-brand small {
  color: var(--muted);
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.login-card > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.8;
}

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

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
}

.login-form input {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  font-size: 0.72rem;
}

.login-form input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(113, 100, 232, 0.1);
}

.login-button {
  min-height: 46px;
  margin-top: 5px;
  color: #fff;
  border: 0;
  border-radius: 9px;
  background: var(--purple);
  font-size: 0.73rem;
  font-weight: 700;
}

.login-button:hover {
  background: var(--purple-dark);
}

.login-footer {
  display: block;
  margin-top: 19px;
  color: var(--muted);
  text-align: center;
  font-size: 0.62rem;
}

/* Ù¾ÙˆÛŒØ§Ø³Ø§Ø²ÛŒ Ù†Ù…Ø§ÛŒØ´ ÙÙ‡Ø±Ø³Øª Ø¢Ú¯Ù‡ÛŒâ€ŒÙ‡Ø§ */
.listing-panel-toolbar h2 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.listing-panel-toolbar h2::before {
  width: 10px;
  height: 10px;
  content: "";
  flex: 0 0 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8f82ff, var(--purple-dark));
  box-shadow: 0 0 0 5px rgba(113, 100, 232, 0.1);
}

.listing-search-form {
  padding: 6px;
  border: 1px solid #eeeafc;
  border-radius: 14px;
  background: #f9f8ff;
  box-shadow: 0 8px 18px rgba(72, 60, 157, 0.05);
}

.listings-table-wrap {
  padding: 0 12px 12px;
}

.listings-table {
  min-width: 1120px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 9px;
  margin-top: -1px;
}

.listings-table th,
.listings-table td {
  border-bottom: 0;
}

.listings-table th {
  padding: 12px 16px 6px;
  background: transparent;
  color: #85819d;
  font-size: 0.61rem;
  font-weight: 800;
}

.listings-table tbody tr.listing-main-row td {
  padding: 14px 16px;
  vertical-align: middle;
  border-top: 1px solid #ebe9f5;
  border-bottom: 1px solid #ebe9f5;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.listings-table tbody tr.listing-main-row td:first-child {
  border-right: 1px solid #ebe9f5;
  border-radius: 0 15px 15px 0;
  box-shadow: 7px 0 16px rgba(47, 39, 117, 0.035);
}

.listings-table tbody tr.listing-main-row td:last-child {
  border-left: 1px solid #ebe9f5;
  border-radius: 15px 0 0 15px;
  box-shadow: -7px 0 16px rgba(47, 39, 117, 0.035);
}

.listings-table tbody tr.listing-main-row:hover td {
  border-color: #ddd8f5;
  background: linear-gradient(180deg, #ffffff 0%, #f8f6ff 100%);
}

.listings-table tbody tr.listing-details-row td {
  border: 0;
  background: transparent;
}

.listing-summary-cell {
  width: 21%;
  min-width: 0;
}

.listing-owner-cell {
  width: 13%;
  min-width: 0;
}

.listing-payment-cell {
  width: 11%;
  min-width: 0;
}

.listing-status-cell {
  width: 11%;
  min-width: 0;
}

.listing-date-cell {
  width: 12%;
  min-width: 0;
}

.listing-expiry-cell {
  width: 14%;
  min-width: 0;
  white-space: normal;
}

.listing-title {
  max-width: 270px;
  font-size: 0.77rem;
  letter-spacing: -0.015em;
  line-height: 1.8;
}

.listing-meta {
  line-height: 1.7;
}

.listing-owner-cell .listing-owner-name {
  display: inline-block;
  margin-bottom: 2px;
  color: var(--ink);
}

.listing-view-count {
  min-width: 78px;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 9px 5px 7px;
  color: var(--purple-dark);
  border-color: #ded9fb;
  border-radius: 10px;
  background: linear-gradient(135deg, #faf9ff 0%, #efecff 100%);
  box-shadow: 0 5px 13px rgba(81, 70, 198, 0.1);
  font-size: 0.59rem;
  font-weight: 700;
}

.listing-view-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 18px;
  color: var(--purple);
  border-radius: 6px;
  background: rgba(113, 100, 232, 0.12);
}

.listing-view-icon svg {
  width: 13px;
  height: 13px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.listing-view-count strong {
  min-width: 1.2em;
  color: var(--purple-dark);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.listing-details-toggle {
  box-shadow: 0 4px 10px rgba(81, 70, 198, 0.06);
}

.badge,
.listing-countdown {
  border: 1px solid transparent;
  box-shadow: 0 4px 10px rgba(43, 37, 103, 0.05);
}

.badge.approved,
.badge.paid,
.listing-countdown {
  border-color: #c9f0dd;
}

.badge.pending,
.listing-countdown.pending {
  border-color: #f2dfbd;
}

.badge.rejected,
.badge.unpaid,
.listing-countdown.expired {
  border-color: #f5cccc;
}

.listing-date-cell {
  color: #5f5b76;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}

.action-form input {
  min-height: 34px;
  background: #fbfaff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.action-form input:focus {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(113, 100, 232, 0.1);
}

.action-form button,
.listing-edit-link {
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.action-form button:hover,
.listing-edit-link:hover {
  filter: saturate(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(45, 37, 117, 0.1);
}

.actions-cell {
  width: 18%;
  min-width: 0;
}

.action-form {
  width: 100%;
}

.action-buttons {
  justify-content: center;
  flex-wrap: wrap;
  overflow: visible;
  gap: 5px;
}

.action-destructive-buttons {
  gap: 5px;
}

.action-form button {
  min-height: 34px;
  padding-inline: 7px;
  font-size: 0.57rem;
}

.listing-edit-link {
  width: 34px;
  min-width: 34px;
  height: 34px;
}

@media (max-width: 760px) {
  .listings-table-wrap {
    padding-inline: 8px;
  }

  .listings-table {
    border-spacing: 0 7px;
  }

  .listings-table tbody tr.listing-main-row td {
    padding: 12px 13px;
  }

  .listing-title {
    max-width: 230px;
  }

  .listing-search-form {
    padding: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .listings-table tbody tr.listing-main-row td,
  .action-form button,
  .listing-edit-link,
  .action-form input {
    transition: none;
  }
}

@media (max-width: 760px) {
  .admin-container {
    width: min(100% - 28px, 1180px);
    padding-top: 25px;
  }

  .admin-header {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    padding-inline: 14px;
  }

  .admin-brand,
  .admin-header-actions {
    width: 100%;
  }

  .admin-brand {
    min-width: 0;
  }

  .admin-header-actions {
    justify-content: flex-start;
  }

  .admin-header-actions > span {
    display: none;
  }

  .admin-intro {
    align-items: start;
    flex-direction: column;
  }

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

  .analytics-stats,
  .analytics-columns {
    grid-template-columns: 1fr;
  }

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

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

  .wallet-adjustment-description,
  .wallet-adjustment-form button {
    grid-column: auto;
  }

  .analytics-visitors-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .analytics-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .analytics-toolbar-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .panel-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .wallet-search-form {
    justify-content: flex-start;
    width: 100%;
  }

  .wallet-search-form input {
    flex: 1 1 210px;
  }

  .user-group-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .listing-panel-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .listing-search-form {
    width: 100%;
  }

  .listing-search-city {
    flex: 1 1 100%;
  }

  .listing-search-city select {
    flex: 1 1 auto;
  }

  .listing-details-panel {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 15px;
  }

  .listing-details-media {
    width: 100%;
  }

  .listing-details-groups {
    grid-template-columns: 1fr;
  }

  .listing-image-preview,
  .listing-details-no-image {
    height: 205px;
  }

  .admin-edit-card {
    padding: 17px;
  }

  .site-color-grid,
  .site-banner-grid {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .admin-edit-grid,
  .admin-edit-amenities-grid,
  .admin-edit-images {
    grid-template-columns: 1fr;
  }

  .deputy-row-fields {
    grid-template-columns: 1fr;
  }

  .deputy-city-groups {
    grid-template-columns: 1fr;
  }

  .deputy-cities-header,
  .deputy-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .deputy-selection-hint,
  .deputy-form-actions .site-settings-submit {
    width: 100%;
  }

  .deputy-form-actions .site-settings-submit {
    min-width: 0;
  }

  .admin-edit-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-edit-submit,
  .admin-edit-cancel {
    width: 100%;
    text-align: center;
  }
}

/* Telegram actions and compact resend confirmation */
.action-form button.telegram-send-button {
  color: #fff;
  background: #086b9c;
  border: 1px solid #075a85;
  cursor: pointer;
  font-size: .72rem;
  padding: 9px 12px;
}
.action-form button.telegram-send-button:hover { background: #07567d; }
.listing-code {
  display: inline-block;
  margin-block: 6px;
  padding: 3px 9px;
  border-radius: 7px;
  color: #394060;
  background: #eef0f8;
  font-size: .75rem;
  font-weight: 700;
}
.telegram-confirm-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  background: #e9e8f2;
}
.telegram-confirm-card {
  box-sizing: border-box;
  width: min(100%, 420px);
  padding: 26px;
  background: #fff;
  border: 1px solid #dddbea;
  border-radius: 20px;
  box-shadow: 0 18px 60px rgba(29, 23, 67, .17);
  text-align: right;
}
.telegram-confirm-card h1 { margin: 0 0 12px; font-size: 1.15rem; }
.telegram-confirm-card p { font-size: .85rem; line-height: 1.9; overflow-wrap: anywhere; }
.telegram-confirm-listing { font-weight: 700; }
.telegram-confirm-actions { display: flex; gap: 10px; margin-top: 16px; }
.telegram-confirm-actions > * { flex: 1; text-align: center; }
.telegram-confirm-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  color: #433c65;
  background: #eeecf7;
  border-radius: 7px;
  text-decoration: none;
}
.telegram-confirm-actions > *:focus-visible { outline: 3px solid #086b9c; outline-offset: 3px; }

/* Independent listing cards: no table layout or overlapping cells. */
.admin-property-list { padding: 14px; }
.admin-property-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; align-items: start; }
.admin-property-card { min-width: 0; box-sizing: border-box; padding: 16px; border: 1px solid #e2def0; border-radius: 14px; background: #fff; }
.admin-property-main { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-areas: 'summary summary' 'owner payment' 'status expiry' 'date date' 'actions actions'; gap: 10px 14px; }
.admin-property-main > div { min-width: 0; width: auto; margin: 0; padding: 0; }
.admin-property-main .listing-summary-cell { grid-area: summary; display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #eeeaf5; }
.admin-property-main .listing-title { grid-column: 1 / 3; grid-row: 1; font-size: .88rem; line-height: 1.7; margin: 0; overflow-wrap: anywhere; }
.admin-property-main .listing-code { grid-column: 3; grid-row: 1; margin: 0; white-space: nowrap; font-size: .67rem; }
.admin-property-main .listing-view-count { grid-column: 1; grid-row: 2; justify-self: start; margin: 0; font-size: .68rem; }
.admin-property-main .listing-details-toggle { grid-column: 2; grid-row: 2; margin: 0; font-size: .68rem; padding: 7px 9px; white-space: nowrap; }
.admin-property-main .listing-edit-link { grid-column: 3; grid-row: 2; justify-self: end; margin: 0; width: 30px; min-width: 30px; height: 30px; }
.admin-property-main .listing-owner-cell { grid-area: owner; text-align: right; font-size: .75rem; line-height: 1.85; overflow-wrap: anywhere; }
.admin-property-main .listing-payment-cell { grid-area: payment; text-align: left; }
.admin-property-main .listing-payment-cell .badge { display: table; margin: 7px 0 4px auto; }
.admin-property-main .listing-payment-cell .listing-meta { font-size: .66rem; line-height: 1.8; }
.admin-property-main .listing-status-cell { grid-area: status; }
.admin-property-main .listing-expiry-cell { grid-area: expiry; text-align: left; }
.admin-property-main .listing-date-cell { grid-area: date; color: #77718b; font-size: .68rem; }
.admin-property-main .listing-date-cell::before { content: 'تاریخ ثبت: '; }
.admin-property-main .actions-cell { grid-area: actions; min-width: 0; border-top: 1px solid #eeeaf5; padding-top: 10px; }
.admin-property-main .action-form { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; width: 100%; }
.admin-property-main .action-form > input[name="note"] { box-sizing: border-box; flex: 1 1 130px; width: 130px; min-width: 0; min-height: 32px; margin: 0; font-size: .68rem; }
.admin-property-main .action-buttons { flex: 1 1 auto; display: flex; flex-wrap: wrap; width: auto; justify-content: flex-end; gap: 5px; margin: 0; }
.admin-property-main .action-form button { min-height: 30px; padding: 6px 9px; font-size: .66rem; }
.admin-property-main .telegram-send-button { background: #086b9c; color: #fff; border: 0; border-radius: 8px; padding: 9px 12px; font: inherit; font-size: .72rem; cursor: pointer; white-space: nowrap; }
.telegram-send-button:disabled { opacity: .65; cursor: wait; }
.admin-property-details[hidden] { display: none; }
.admin-property-details { margin-top: 12px; border-top: 1px solid #eeeaf5; padding-top: 12px; }
.admin-property-card .listing-details-cell { display: block; width: 100%; min-width: 0; padding: 0; }
.admin-property-card .listing-details-panel { display: grid; grid-template-columns: minmax(0,1fr); padding: 10px; gap: 12px; }
.admin-property-card .listing-details-groups { display: grid; grid-template-columns: minmax(0,1fr); }
.admin-property-card .listing-details-content { min-width: 0; }
.admin-property-card .listing-details-primary-image img { max-height: 220px; object-fit: cover; }
@media (max-width: 760px) {
  .admin-property-grid { grid-template-columns: minmax(0,1fr); }
  .admin-property-list { padding: 10px; }
  .admin-property-card { padding: 12px; }
}
.telegram-inline-dialog { width: min(420px, calc(100% - 32px)); border: 0; padding: 0; background: transparent; overflow: visible; }
.telegram-inline-dialog::backdrop { background: rgba(20, 17, 43, .48); }
.telegram-inline-dialog .telegram-confirm-card { width: 100%; }
.telegram-inline-dialog .telegram-confirm-actions button { white-space: nowrap; min-width: 125px; }
.telegram-inline-result { position: fixed; z-index: 2000; bottom: 20px; left: 50%; transform: translateX(-50%); width: min(650px, calc(100% - 32px)); box-sizing: border-box; background: #fff; border: 1px solid #d4cdeb; border-radius: 12px; padding: 16px; box-shadow: 0 8px 30px #221a4933; }

/* Fixed 5-column x 4-row layout for each listing. */
.admin-property-card { padding: 10px; }
.listing-matrix-form { display: block; margin: 0; width: 100%; min-width: 0; }
.listing-matrix-scroll { overflow-x: auto; }
.listing-matrix { width: 100%; min-width: 470px; table-layout: fixed; border-collapse: collapse; font-size: .69rem; }
.listing-matrix td { height: 43px; padding: 6px 4px; vertical-align: middle; text-align: center; border: 0; border-bottom: 1px solid #efedf6; overflow-wrap: anywhere; box-sizing: border-box; }
.listing-matrix tr:last-child td { border-bottom: 0; height: 53px; }
.listing-matrix .matrix-title { text-align: right; font-weight: 700; font-size: .76rem; line-height: 1.7; }
.matrix-code, .matrix-views { display: inline-block; border-radius: 6px; padding: 4px 6px; background: #f0eef9; color: #514779; font-size: .65rem; }
.listing-matrix .matrix-muted { font-size: .62rem; color: #77718a; line-height: 1.6; }
.listing-matrix .matrix-phone { color: #686078; }
.listing-matrix button, .listing-matrix .matrix-edit { display: inline-flex; align-items: center; justify-content: center; min-height: 29px; border: 0; border-radius: 7px; padding: 6px 7px; font: inherit; font-size: .64rem; line-height: 1.4; text-decoration: none; cursor: pointer; margin: 2px 0; background: #efecff; color: #6956c9; }
.listing-matrix .listing-details-toggle { width: auto; gap: 0; box-shadow: none; }
.listing-matrix .matrix-edit { width: 29px; padding: 4px; font-size: 1rem; }
.listing-matrix button.telegram-send-button { color: white; background: #086b9c; white-space: nowrap; padding: 9px 10px; }
.listing-matrix button[value="delete"] { color: white; background: #bd343b; }
.listing-matrix button[value="reject"] { color: #b33342; background: #fff0f2; }
.listing-matrix button[value="approve"] { color: #087452; background: #dcf8ec; }
.listing-matrix button[value="approve_without_payment"] { color: #755b10; background: #fff2c9; }
.matrix-review-actions { display: flex; flex-wrap: nowrap; justify-content: center; gap: 4px; }
.listing-matrix .matrix-note { display: block; box-sizing: border-box; width: 100%; height: 34px; min-height: 34px; max-height: 34px; margin: 0; padding: 6px 8px; border: 1px solid #e3def4; border-radius: 7px; background: #faf9ff; font: inherit; font-size: .66rem; text-align: right; }
.listing-matrix .badge, .listing-matrix .listing-countdown { display: inline-block; margin: 0; padding: 5px; font-size: .62rem; white-space: normal; line-height: 1.4; }
.listing-matrix button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 1050px) { .admin-property-grid { grid-template-columns: minmax(0,1fr); } }
