:root {
  --color-primary: #c026d3;
  --color-primary-hover: #a21caf;
  --color-primary-light: #faf5ff;
  --color-secondary: #25d366;
  --color-surface: #f8fafc;
  --color-body: #1f2937;
  --max-w: 80rem;
  --page-gutter: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;
  --shadow-card: 0 10px 15px -3px rgb(226 232 240 / 0.6);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--color-surface);
  color: var(--color-body);
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100%;
}

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

img { max-width: 100%; display: block; }

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

.cn-container,
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  box-sizing: border-box;
  /* fallback fixo — Android/Samsung se calc/env falhar */
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-left: calc(var(--page-gutter) + env(safe-area-inset-left, 0px));
  padding-right: calc(var(--page-gutter) + env(safe-area-inset-right, 0px));
}

@media (min-width: 640px) {
  :root { --page-gutter: 2rem; }
}

@media (min-width: 1024px) {
  :root { --page-gutter: 2.5rem; }
}

.text-primary { color: var(--color-primary); }
.bg-primary { background-color: var(--color-primary); }
.bg-primary-light { background-color: var(--color-primary-light); }
.border-primary { border-color: var(--color-primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: 0.2s;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.btn-primary:hover { background: var(--color-primary-hover); }

.btn-outline {
  background: #fff;
  color: #334155;
  border: 1px solid #e2e8f0;
  padding: 0.75rem 1.25rem;
}

.btn-outline:hover { border-color: #cbd5e1; }

.header-user-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.header-user-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-primary) 12%, #f8fafc);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid color-mix(in srgb, var(--color-primary) 18%, #e2e8f0);
}

.header-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-mobile-wrap .header-user-avatar {
  width: 1.875rem;
  height: 1.875rem;
  font-size: 0.75rem;
}

.nav-account {
  display: inline-flex;
  align-items: stretch;
  height: 2.25rem;
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: 0 4px 10px -2px color-mix(in srgb, var(--color-primary) 18%, transparent);
}

.nav-account-link {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: none;
  padding: 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
}

.nav-account-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  padding: 0;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-left: 1px solid color-mix(in srgb, #fff 22%, transparent);
  cursor: pointer;
  transition: 0.2s;
  flex-shrink: 0;
}

.nav-account-logout:hover {
  background: var(--color-primary-hover);
}

.nav-account-logout svg {
  display: block;
}

.nav-mobile-wrap .nav-account {
  height: 2rem;
}

.nav-mobile-wrap .nav-account-link {
  font-size: 0.6875rem;
  padding: 0 0.75rem;
  white-space: nowrap;
}

.nav-mobile-wrap .nav-account-logout {
  width: 2rem;
}

.input {
  width: 100%;
  margin-top: 0.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  outline: none;
}

.input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.label { display: block; font-size: 0.875rem; font-weight: 600; color: #334155; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #e2e8f0;
  background: rgb(255 255 255 / 0.95);
  backdrop-filter: blur(12px);
  max-width: 100%;
  overflow-x: clip;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.user-city-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
  margin-right: 0.25rem;
}

.user-city-badge {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}

.user-city-badge--active {
  background: var(--badge-color);
  color: #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
}

.user-city-badge--inactive {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.5625rem;
  background: color-mix(in srgb, var(--badge-color) 14%, #f8fafc);
  color: color-mix(in srgb, var(--badge-color) 40%, #94a3b8);
  border: 1px solid color-mix(in srgb, var(--badge-color) 26%, #e2e8f0);
  box-shadow: none;
  font-weight: 600;
  opacity: 0.72;
}
.user-city-badge--pick {
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, opacity 0.15s;
}
.user-city-badge--pick:hover {
  transform: scale(1.06);
}
.user-city-badge--pick.user-city-badge--inactive:hover {
  opacity: 1;
}
.user-city-badges--admin {
  flex-wrap: wrap;
  max-width: 14rem;
}
.nav-mobile-cities {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}
.nav-mobile-cities .user-city-badges--admin {
  max-width: none;
  flex-wrap: wrap;
}

/* Bolinha de cidade (menu, admin, etc.) */
.city-badge {
  flex-shrink: 0;
  border-radius: 50%;
  font-weight: 800;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}
.city-badge--md {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.625rem;
}
.city-badge--sm {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.5625rem;
}
.city-badge--active {
  background: var(--badge-color);
  color: #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
}
.city-badge--inactive {
  background: color-mix(in srgb, var(--badge-color) 14%, #f8fafc);
  color: color-mix(in srgb, var(--badge-color) 40%, #94a3b8);
  border: 1px solid color-mix(in srgb, var(--badge-color) 26%, #e2e8f0);
  font-weight: 600;
  opacity: 0.85;
}
}

.nav-links .user-city-badges + .nav-link { margin-left: 0; }

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #0f172a;
  min-width: 0;
}

.logo-img {
  display: block;
  height: 5.5rem;
  width: auto;
  max-width: min(440px, 72vw);
  object-fit: contain;
}

.logo-img--footer {
  height: 6.5rem;
  max-width: min(480px, 90vw);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 1rem;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-desktop { display: none; align-items: center; gap: 0.75rem; }
.nav-links { display: flex; align-items: center; gap: 0.375rem; }
.nav-mobile-wrap { display: flex; align-items: center; gap: 0.5rem; }
.menu-btn {
  width: 3.33rem;
  height: 3.33rem;
  padding: 0;
  font-size: 1.17rem;
  line-height: 1;
}
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .nav-mobile-wrap { display: none !important; }
}

.file-warning {
  background: #fef3c7;
  color: #92400e;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  border-bottom: 1px solid #fcd34d;
}
.file-warning code { background: rgb(255 255 255 / 0.6); padding: 0.125rem 0.375rem; border-radius: 0.25rem; }

.nav-link {
  display: inline-flex;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}

.nav-link:hover {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.nav-mobile {
  display: none;
  border-top: 1px solid #e2e8f0;
  padding: 1rem 0 1.5rem;
}
.nav-mobile.open { display: block; }

/* Footer */
.site-footer {
  border-top: 1px solid #e2e8f0;
  background: #fff;
  padding: 2.5rem 0;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

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

@media (min-width: 640px) {
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2.5rem;
  }

  .footer-links {
    flex: 1;
    max-width: 36rem;
    margin-left: auto;
  }
}

.footer-contact-name {
  font-size: 0.875rem;
  color: #475569;
  margin: 0 0 0.5rem;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-google:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.footer-col h3 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #64748b;
  margin: 0 0 1rem;
}

.footer-col a { display: block; font-size: 0.875rem; color: #475569; margin-bottom: 0.5rem; }
.footer-col a:hover { color: #1e293b; }

/* Cards */
.card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-card);
}

.ad-card {
  display: flex;
  flex-direction: column;
  height: 520px;
  overflow: hidden;
}

.ad-card--business {
  border-color: var(--ad-city-border);
  background: var(--ad-city-surface);
  box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--ad-city-primary) 16%, transparent);
}

.ad-card-img { height: 12rem; background: #f1f5f9; object-fit: cover; width: 100%; }
.ad-card-body { flex: 1; display: flex; flex-direction: column; padding: 1.5rem; }

.ad-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ad-card-meta {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.ad-card-star-slot {
  display: inline-flex;
  align-items: center;
}

.ad-card-meta .engagement-btn--compact {
  padding: 0.125rem 0.375rem;
  font-size: 0.75rem;
  line-height: 1;
}

.star-rating-trigger [data-avg] {
  font-weight: 700;
  min-width: 1.5rem;
  text-align: center;
}

.star-rating-picker {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 30;
  min-width: 10.5rem;
  padding: 0.625rem;
  border-radius: 0.875rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 10px 25px -8px rgb(15 23 42 / 0.25);
}

.star-rating-picker-title {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.star-rating-picker-options {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.25rem;
}

.star-rating-option {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #f8fafc;
  padding: 0.35rem 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
}

.star-rating-option:hover { border-color: #fcd34d; background: #fffbeb; }
.star-rating-option.selected {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #b45309;
}

.ad-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  color: #f59e0b;
  line-height: 0;
}

.ad-card-title {
  margin: 1rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  color: #334155;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-card-city {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-card-location {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  color: #475569;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-card-engagement { margin-top: auto; padding-top: 1rem; }

.ad-detail-btn {
  margin-top: 1rem;
  width: 100%;
  border-radius: var(--radius-full);
  padding: 0.75rem 1rem;
}

.carousel-empty {
  width: 100%;
  border-radius: var(--radius-xl);
  background: #f8fafc;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: #64748b;
  margin: 0;
}

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
}

.footer-wa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex-shrink: 0;
}

.footer-wa-text {
  line-height: 1.25;
}

.footer-wa svg {
  display: block;
}

.footer-wa:hover { color: var(--color-primary-hover); }

.badge {
  border-radius: var(--radius-full);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.city-label {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgb(0 0 0 / 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--page-gutter);
}

.modal-overlay.open { display: flex; }

.modal {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 28rem;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.modal--compact {
  max-width: 26rem;
  padding: 1.25rem 1.5rem 1.5rem;
}

.modal--scroll {
  max-height: min(90vh, 40rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.modal--scroll::-webkit-scrollbar {
  width: 8px;
}
.modal--scroll::-webkit-scrollbar-track {
  background: transparent;
}
.modal--scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
  border: 2px solid #fff;
}
.modal--scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Diálogos padronizados */
.modal--dialog {
  max-width: 26rem;
  padding: 1.75rem;
}
.modal-dialog-text {
  margin: 0.5rem 0 1.5rem;
  color: #64748b;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.modal-dialog-actions {
  display: flex;
  gap: 0.75rem;
}
.modal-dialog-actions .btn {
  flex: 1;
}
.modal-dialog-actions--single {
  justify-content: flex-end;
}
.modal-dialog-actions--single .btn {
  flex: 0 0 auto;
  min-width: 8rem;
}
.btn-danger {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #fff !important;
}
.btn-danger:hover {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
}
.dialog-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.dialog-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.dialog-field span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
}
.modal--dialog-wide {
  max-width: 32rem;
}
.dialog-check {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: #334155;
  cursor: pointer;
}
.dialog-check input {
  margin-top: 0.2rem;
  accent-color: var(--color-primary);
}
.dialog-textarea {
  min-height: 6.5rem;
  resize: vertical;
}
.dialog-error { margin: 0; }
.dialog-error[hidden] { display: none !important; }

.dialog-message-preview {
  margin: 0;
  padding: 0.75rem 0.875rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 12rem;
  overflow-y: auto;
}

.modal--compact .modal-title {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.form-grid--compact {
  gap: 0.75rem;
}

.form-grid--compact .label {
  font-size: 0.8125rem;
}

.form-grid--compact .input {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.form-grid--compact .photo-upload-field {
  margin: 0;
}

.form-grid--compact .admin-photo-preview {
  width: 3.5rem;
  height: 3.5rem;
}

/* Carousel */
.carousel-wrap {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}
.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
  width: 100%;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.carousel-btn.prev { left: 0.5rem; }
.carousel-btn.next { right: 0.5rem; }
.carousel-btn.hidden { display: none; }

/* Map */
.map-section { border-top: 1px solid #e2e8f0; background: #fff; overflow: hidden; }
.map-header { padding: 2rem 0; }
#cities-map { height: 420px; width: 100%; max-width: 100%; }
.leaflet-container { max-width: 100%; }
.city-map-pin { background: transparent !important; border: none !important; }

.filter-pill {
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid var(--chip-color, var(--color-primary));
  background: transparent;
  color: var(--chip-color, var(--color-primary));
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.filter-pill.active {
  background: var(--chip-color, var(--color-primary));
  color: #fff;
  border-color: var(--chip-color, var(--color-primary));
}

.filter-pill:hover:not(.active) { opacity: 0.85; }

.filter-pill-input {
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid var(--chip-color, var(--color-primary));
  background: transparent;
  color: var(--chip-color, var(--color-primary));
  outline: none;
  width: var(--ads-filter-pill-width, 9.5rem);
  box-sizing: border-box;
}
.filter-pill-input::placeholder { color: color-mix(in srgb, var(--chip-color, var(--color-primary)) 55%, #94a3b8); opacity: 1; }
.filter-pill-input:focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--chip-color, var(--color-primary)) 20%, transparent); }

.filter-pill-select-wrap { display: inline-flex; }
.filter-pill-select {
  appearance: none;
  padding-right: 1.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  width: var(--ads-filter-pill-width, 9.5rem);
  text-overflow: ellipsis;
}
.filter-pill-select.active { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }

.section-title { font-size: 1.875rem; font-weight: 700; color: #334155; margin: 0.75rem 0 0; }
.section-title-lg { font-size: 1.875rem; font-weight: 700; color: #334155; margin: 0.75rem 0 0; line-height: 1.2; }
.section-head { margin-bottom: 2rem; }
.section-head .section-title-lg { margin-top: 0.75rem; }
.section-categories { margin-top: 4rem; }
.section-destaques { margin-top: 4rem; }
.section-eyebrow { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.32em; color: #64748b; margin: 0; }

.hidden { display: none !important; }

/* Page layout */
.page-main { padding: 2rem 0 4rem; }
.page-section { margin-top: 4rem; }
.scroll-target { scroll-margin-top: 6rem; }
.mt-8 { margin-top: 2rem; }

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.5fr 1fr; }
}

.hero-copy { display: flex; flex-direction: column; gap: 1.5rem; }

.hero-badge {
  display: inline-flex;
  align-self: flex-start;
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  color: #334155;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: #334155;
  margin: 0;
  letter-spacing: -0.02em;
}

.hero-text {
  max-width: 36rem;
  font-size: 1.125rem;
  color: #334155;
  margin: -1.5rem 0 0;
  line-height: 2;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; align-items: center; }
.hero-btn-main {
  margin-right: 0;
  min-height: 2.75rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  box-sizing: border-box;
}
.hero-btn-classificados {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: none;
  text-decoration: none;
}
.hero-btn-classificados:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.category-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

@media (min-width: 1024px) {
  .category-grid { grid-template-columns: repeat(5, 1fr); }
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 2rem;
  padding: 1.5rem 1rem 1.75rem;
  text-align: center;
  box-shadow: 0 10px 15px -3px rgb(226 232 240 / 0.4);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 2px solid transparent;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 20px -5px rgb(226 232 240 / 0.55);
}

.category-card.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
}

.category-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  min-width: 7.5rem;
  padding: 0 0.75rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.category-count {
  margin: 2rem 0 0;
  font-size: 3rem;
  font-weight: 700;
  color: #475569;
  line-height: 1;
}

@media (min-width: 640px) {
  .category-count { font-size: 3rem; }
}

.category-city {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
}

.city-switcher {
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 20px 25px -5px rgb(226 232 240 / 0.5), 0 0 0 1px #e2e8f0;
}

.city-switcher-signup-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--color-primary-light, #faf5ff);
  border-radius: 1.5rem;
  padding: 1.25rem;
  box-sizing: border-box;
}

.city-switcher-signup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 0.35em;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 0;
  padding: calc(0.75rem + 2px) 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--color-primary) 25%, transparent);
}

.city-switcher-signup-line {
  display: inline;
}

@media (max-width: 640px) {
  .city-switcher-signup {
    flex-direction: column;
    gap: 0.15rem;
    line-height: 1.25;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .city-switcher-signup-line {
    display: block;
    width: 100%;
    text-align: center;
  }
}

.city-switcher-signup:hover {
  filter: brightness(1.05);
}

.city-switcher-nav {
  margin-top: 1.25rem;
  border-radius: 1.5rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.city-nav-btn {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
  background: #fff;
  cursor: pointer;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.city-nav-btn:hover { border-color: #cbd5e1; }

.city-nav-label {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  font-size: clamp(0.6875rem, 2.8vw, 1.125rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.destaques-head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .destaques-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.cta-banner {
  border-radius: var(--radius-xl);
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  color: #fff;
  padding: 3rem 2rem;
  box-shadow: 0 25px 50px -12px color-mix(in srgb, var(--color-primary) 20%, transparent);
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .cta-banner { grid-template-columns: 2fr 1fr; align-items: center; }
}

.cta-eyebrow { text-transform: uppercase; letter-spacing: 0.32em; font-size: 0.875rem; opacity: 0.8; margin: 0; }
.cta-title { font-size: 1.875rem; font-weight: 700; margin: 1rem 0 0; }
.cta-text { max-width: 36rem; line-height: 1.7; opacity: 0.9; margin: 1rem 0 0; }

.btn-white {
  background: #fff;
  color: var(--color-primary);
  padding: 1.5rem 3rem;
  font-size: 1.125rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  display: inline-flex;
  align-self: start;
  justify-content: center;
}

.btn-white:hover { background: #f1f5f9; }

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-align: center;
  display: block;
}

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgb(37 211 102 / 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgb(37 211 102 / 0.55);
}

.whatsapp-float:focus-visible {
  outline: 2px solid #25d366;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 3.25rem;
    height: 3.25rem;
  }
}

.map-header-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .map-header-row { flex-direction: row; align-items: center; justify-content: space-between; }
}

.map-city-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.map-city-btn {
  border-radius: var(--radius-full);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid var(--chip-color, var(--color-primary));
  background: transparent;
  color: var(--chip-color, var(--color-primary));
  transition: background 0.15s, color 0.15s;
}

.map-city-btn.active {
  background: var(--chip-color, var(--color-primary));
  color: #fff;
  border-color: var(--chip-color, var(--color-primary));
}

.engagement-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.engagement-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: var(--radius-full);
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  color: #334155;
  transition: border-color 0.15s, background 0.15s;
}

.engagement-btn span[data-count] { color: #334155; }

.engagement-btn.active-like { border-color: #fca5a5; background: #fef2f2; }
.engagement-btn.active-up { border-color: #86efac; background: #f0fdf4; }
.engagement-btn.active-down { border-color: #fca5a5; background: #fef2f2; }
.engagement-btn.active-star { border-color: #fcd34d; background: #fffbeb; }
.engagement-btn.share-btn:hover { border-color: #86efac; }

.category-grid { min-height: 12rem; }

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  color: #94a3b8;
  cursor: pointer;
}

.ad-detail-modal {
  background: #fff;
  border-radius: var(--radius-xl);
  max-width: 48rem;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  position: relative;
}

.ad-detail-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
  border: none;
  background: rgb(255 255 255 / 0.9);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  font-size: 1.25rem;
}

.ad-detail-grid {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .ad-detail-grid { flex-direction: row; }
}

.ad-detail-img {
  width: 100%;
  height: 13rem;
  object-fit: cover;
  display: block;
}

.ad-detail-gallery {
  width: 100%;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .ad-detail-gallery { width: 42%; }
  .ad-detail-img { width: 100%; min-height: 420px; height: auto; }
}

.ad-detail-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ad-detail-thumb {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.625rem;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s;
}

.ad-detail-thumb.active,
.ad-detail-thumb:hover {
  border-color: var(--color-primary);
}

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

@media (min-width: 768px) {
  .ad-detail-grid > .ad-detail-img { width: 42%; min-height: 420px; height: auto; }
}

.ad-photo-picker { display: grid; gap: 0.625rem; }

.ad-photo-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
  width: 100%;
}

.ad-photo-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-width: 0;
  min-height: 0;
}

.ad-photo-slot-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ad-photo-slot-btn.is-loading::after {
  content: 'Carregando…';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(15 23 42 / 0.6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.ad-photo-slot.is-main .ad-photo-slot-btn {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.ad-photo-slot-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ad-photo-slot--add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-width: 0;
  border: 2px dashed #cbd5e1;
  border-radius: 1rem;
  background: #f8fafc;
  color: var(--color-primary);
  cursor: pointer;
  padding: 0;
  font: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.ad-photo-slot--add span {
  font-size: 2rem;
  line-height: 1;
}

.ad-photo-slot--add small {
  font-size: 0.75rem;
  color: #64748b;
}

.ad-photo-slot--add:hover {
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 6%, #fff);
}

.ad-photo-slot--empty {
  border: 2px dashed #e2e8f0;
  border-radius: 1rem;
  background: #fafafa;
}

.ad-photo-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  align-items: center;
}

.ad-photo-thumb-item {
  position: relative;
}

.ad-photo-thumb-btn {
  width: 4.25rem;
  height: 4.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s, transform 0.15s;
}

.ad-photo-thumb-btn.active,
.ad-photo-thumb-item.is-main .ad-photo-thumb-btn {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

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

.ad-photo-remove {
  position: absolute;
  top: -0.375rem;
  right: -0.375rem;
  width: 1.25rem;
  height: 1.25rem;
  border: none;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ad-photo-add {
  width: 4.25rem;
  height: 4.25rem;
  border: 2px dashed #cbd5e1;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: var(--color-primary);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.15s, background 0.15s;
}

.ad-photo-add:hover {
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 6%, #fff);
}

.ad-photo-hint { margin: 0; }
.ad-photo-error[hidden] { display: none !important; }

.profile-photo-size-hint { margin: 0.375rem 0 0; text-align: center; }

.ad-detail-body { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.ad-detail-title { font-size: 1.5rem; font-weight: 700; color: #1e293b; margin: 0; }
.ad-detail-price { font-size: 1.125rem; font-weight: 600; color: var(--color-primary); margin: 0; }
.ad-detail-location { color: #475569; margin: 0; font-size: 0.875rem; }
.ad-detail-desc { background: #f8fafc; border-radius: 1rem; padding: 0.75rem; font-size: 0.875rem; margin: 0; }
.ad-detail-rows {
  display: grid;
  gap: 0.375rem;
  background: #f8fafc;
  border-radius: 1rem;
  padding: 0.75rem;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .ad-detail-rows { grid-template-columns: 1fr 1fr; }
}

.ad-detail-meta { text-align: center; font-size: 0.75rem; color: #64748b; margin: 0; }
.business-tag {
  border-radius: var(--radius-full);
  background: var(--ad-city-surface);
  color: var(--ad-city-text);
  border: 1px solid var(--ad-city-border);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  padding: var(--page-gutter);
}

.auth-card {
  width: 100%;
  max-width: 28rem;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin: 0 0 1.25rem;
}
.logo-img--auth {
  height: 7rem;
  max-width: min(520px, 90vw);
}
.auth-title { text-align: center; font-size: 1.5rem; font-weight: 700; color: #334155; margin: 0 0 0.5rem; }
.auth-hint { text-align: center; font-size: 0.875rem; color: #64748b; margin: 0 0 1.5rem; }
.auth-error {
  text-align: center;
  color: #b91c1c;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}
.auth-error:empty { display: none; margin: 0; }
.auth-success {
  text-align: center;
  color: #047857;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}
.auth-success.hidden { display: none; }
.auth-forgot-row { text-align: right; margin: 0.375rem 0 0; }
.auth-forgot-link { font-size: 0.8125rem; color: var(--color-primary); font-weight: 600; padding: 0; }

.auth-page--register {
  align-items: flex-start;
  padding-top: clamp(1rem, 3vh, 2rem);
  padding-bottom: clamp(1rem, 3vh, 2rem);
}

.auth-card--register {
  max-width: 42rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.auth-card--register .auth-hint {
  margin-bottom: 1rem;
}

.form-grid--register {
  gap: 0.75rem;
}

.register-section {
  border: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.625rem;
  min-inline-size: 0;
}

.register-section .profile-section-title {
  margin-bottom: 0.125rem;
}

.register-section--business {
  padding: 0.875rem 1rem;
  gap: 0.625rem;
}

.form-grid--register .form-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.35;
}

.register-photo-block {
  display: grid;
  gap: 0.375rem;
}

.register-photo-block .profile-photo-picker {
  max-width: none;
  width: 100%;
}

.register-photo-block .profile-photo-dropzone-label,
.register-photo-block .profile-photo-size-hint {
  font-size: 0.6875rem;
}

.register-photo-block .profile-photo-size-hint {
  white-space: nowrap;
  text-align: left;
}

.register-photo-block .profile-photo-circle {
  width: 4.5rem;
  height: 4.5rem;
}

.register-terms {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}

.register-terms input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.register-actions {
  display: grid;
  gap: 0.625rem;
}

.register-actions .btn-primary {
  width: 100%;
}

.register-footer {
  text-align: center;
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: #475569;
}

.register-footer--back {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
}

.register-footer--back a {
  color: #64748b;
  text-decoration: none;
}

.register-footer--back a:hover {
  color: var(--color-primary);
}

.form-grid--register select.input {
  cursor: pointer;
  appearance: auto;
  min-height: 2.5rem;
}

.page-placeholder {
  padding: 4rem 0;
  text-align: center;
  color: #64748b;
}

.page-placeholder h1 { color: #334155; margin-bottom: 0.5rem; }

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}
.footer-title { font-size: 1.125rem; font-weight: 700; color: #1e293b; margin: 0; }
.footer-desc { margin: 0.5rem 0 0; max-width: 24rem; color: #475569; line-height: 1.6; }

.modal-title { font-size: 1.5rem; font-weight: 700; color: #334155; margin: 0; }
.modal-text { margin: 0.5rem 0 1.5rem; color: #64748b; font-size: 0.875rem; }
.modal-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.modal-btn { width: 100%; }

.carousel-track .ad-card {
  border-radius: 2rem;
  width: 320px;
  flex: 0 0 320px;
}

@media (min-width: 1024px) {
  .page-main { padding-top: 2rem; }
}

/* Conta */
.conta-header { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .conta-header { flex-direction: row; align-items: center; justify-content: space-between; } }
.conta-user { display: flex; gap: 1rem; align-items: center; }
.conta-user h1 { margin: 0; font-size: 1.5rem; color: #1e293b; }
.conta-user p { margin: 0.25rem 0 0; color: #475569; }
.conta-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.conta-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; border-bottom: 1px solid #e2e8f0; padding-bottom: 1rem; margin-bottom: 1.5rem; }
.tab-btn { border: none; background: transparent; border-radius: var(--radius-full); padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 700; color: #475569; cursor: pointer; }
.tab-btn.active { border: 2px solid var(--color-primary); color: var(--color-primary); }
.conta-panel { padding: 1.5rem; }
@media (min-width: 640px) { .conta-panel { padding: 2rem; } }
.profile-photo-row { display: grid; gap: 0.75rem; }
.profile-photo-picker { width: 100%; max-width: 6.75rem; }
.profile-photo-dropzone {
  display: grid;
  gap: 0.5rem;
  width: fit-content;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.profile-photo-circle {
  position: relative;
  width: 6.25rem;
  height: 6.25rem;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--color-primary) 6%, #f8fafc);
  transition: background 0.15s, transform 0.15s;
}
.profile-photo-dropzone:hover .profile-photo-circle,
.profile-photo-dropzone:focus-visible .profile-photo-circle {
  background: color-mix(in srgb, var(--color-primary) 12%, #f8fafc);
  transform: scale(1.02);
}
.profile-photo-circle img,
.profile-photo-circle [data-photo-thumb] {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-photo-circle-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--color-primary) 55%, #94a3b8);
  pointer-events: none;
}
.profile-photo-plus {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-primary);
}
.profile-photo-dropzone-label {
  font-size: 0.75rem;
  color: #64748b;
}

.profile-photo-replace {
  display: block;
  margin: 0.25rem 0 0;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.profile-photo-replace:hover {
  color: color-mix(in srgb, var(--color-primary) 80%, #1e293b);
}

.photo-crop-modal { max-width: 22rem; }
.photo-crop-modal--rect { max-width: 28rem; }
.photo-crop-stage {
  position: relative;
  width: 280px;
  height: 280px;
  max-width: 100%;
  margin: 0 auto;
  border: 2px dashed color-mix(in srgb, var(--color-primary) 40%, #cbd5e1);
  border-radius: 1rem;
  background: #f1f5f9;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.photo-crop-stage--rect {
  width: 100%;
  max-width: 360px;
  height: auto;
  aspect-ratio: 4 / 3;
}
.photo-crop-stage:active,
.photo-crop-stage.is-dragging { cursor: grabbing; }
.photo-crop-stage img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  user-select: none;
  pointer-events: none;
  max-width: none;
}
.photo-crop-circle-guide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160px;
  height: 160px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px dashed var(--color-primary);
  pointer-events: none;
  box-shadow: 0 0 0 999px rgb(15 23 42 / 0.45);
}
.photo-crop-rect-guide {
  position: absolute;
  inset: 0;
  border: 2px dashed var(--color-primary);
  pointer-events: none;
  box-shadow: inset 0 0 0 999px rgb(15 23 42 / 0.18);
}
.photo-crop-zoom-label {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}
.photo-crop-zoom { width: 100%; accent-color: var(--color-primary); }

.ad-card-img-wrap { position: relative; }
.ad-card-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 9999px;
  background: rgb(15 23 42 / 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.ad-card-nav:hover { background: rgb(15 23 42 / 0.78); }
.ad-card-nav--prev { left: 0.5rem; }
.ad-card-nav--next { right: 0.5rem; }
.ad-card-nav-count {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 2;
  background: rgb(15 23 42 / 0.65);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
}
.ad-card-zoom,
.ad-detail-zoom {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 9999px;
  background: rgb(15 23 42 / 0.65);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  opacity: 1;
  transition: background 0.15s, transform 0.15s;
}
.ad-card-zoom:hover,
.ad-detail-zoom:hover {
  background: rgb(15 23 42 / 0.85);
  transform: scale(1.06);
}
.ad-detail-gallery-main { position: relative; }
.ad-detail-zoom {
  left: auto;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 2.35rem;
  height: 2.35rem;
}

.ad-photo-main-badge {
  position: absolute;
  left: 0.35rem;
  bottom: 0.35rem;
  z-index: 2;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.4rem;
  border-radius: 9999px;
  pointer-events: none;
}
.ad-photo-set-main {
  position: absolute;
  left: 0.35rem;
  bottom: 0.35rem;
  z-index: 2;
  width: 1.6rem;
  height: 1.6rem;
  border: none;
  border-radius: 9999px;
  background: rgb(15 23 42 / 0.7);
  color: #fbbf24;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.ad-photo-set-main:hover {
  background: rgb(15 23 42 / 0.88);
}
.ad-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 9999px;
  background: rgb(15 23 42 / 0.55);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.ad-gallery-nav--prev { left: 0.5rem; }
.ad-gallery-nav--next { right: 0.5rem; }
.admin-transfer-box {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
}
.admin-actions .act.transfer {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0369a1;
  border-color: #7dd3fc;
  background: #e0f2fe;
}

.profile-avatar { width: 4rem; height: 4rem; border-radius: 50%; background: color-mix(in srgb, var(--color-primary) 10%, transparent); color: var(--color-primary); font-weight: 700; font-size: 1.25rem; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.profile-avatar.large { width: 4rem; height: 4rem; font-size: 1.25rem; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar--pick {
  border: 2px dashed color-mix(in srgb, var(--color-primary) 35%, #e2e8f0);
  padding: 0;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.profile-avatar--pick:hover {
  border-color: var(--color-primary);
  transform: scale(1.02);
}
.profile-avatar-plus {
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
}
.profile-photo-copy { display: grid; gap: 0.25rem; }
.profile-photo-label { font-size: 0.875rem; font-weight: 600; color: #334155; }
.profile-photo-hint { margin: 0; }
.tab-heading h2 { margin: 0; font-size: 1.25rem; color: #1e293b; }
.tab-heading p { margin: 0.25rem 0 1.5rem; font-size: 0.875rem; color: #64748b; }
.loading-text { color: #64748b; }

/* Forms */
.form-grid { display: grid; gap: 1.25rem; }
.form-row-2 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.form-row-street { display: grid; gap: 1rem; grid-template-columns: 2fr 1fr; }
.form-preview { margin-top: 0.75rem; height: 12rem; width: 100%; object-fit: cover; border-radius: 1.5rem; }
.info-box { border-radius: 1.5rem; background: color-mix(in srgb, var(--color-primary) 5%, transparent); padding: 1.25rem; font-size: 0.875rem; color: #334155; }
.info-box .hint { font-size: 0.75rem; color: #64748b; margin-top: 0.25rem; }
.plan-box { border-radius: 1.5rem; border: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent); background: color-mix(in srgb, var(--color-primary) 5%, transparent); padding: 1.25rem; }
.plan-box .plan-grid { margin-bottom: 1.5rem; }
.plan-box-renew { margin-top: 0.25rem; }
.plan-box-hint { margin-top: 1rem; }
.plan-box-checkout {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--color-primary) 14%, transparent);
}
.plan-box-coupon { display: grid; gap: 0.5rem; }
.plan-checkout-col {
  display: grid;
  gap: 0.375rem;
  align-content: start;
}
.plan-checkout-label {
  margin: 0;
  font-size: 0.875rem;
}
.plan-checkout-col--coupon {
  justify-items: start;
}
.coupon-inline {
  display: flex;
  gap: 0.375rem;
  align-items: center;
  flex: 0 0 auto;
}
.coupon-input {
  width: 22.5rem;
  max-width: 22.5rem;
  min-width: 0;
  margin-top: 0;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}
.coupon-apply-btn {
  flex-shrink: 0;
  white-space: nowrap;
}
.coupon-applied {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-primary);
  font-weight: 600;
}
.coupon-price-old {
  text-decoration: line-through;
  color: #94a3b8;
  font-weight: 400;
  margin-right: 0.35rem;
}
.plan-box-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2cm;
  align-items: flex-end;
  justify-content: flex-start;
}
.plan-box-pay-btn {
  margin-top: 0;
  min-width: 18rem;
  max-width: 30rem;
  width: 100%;
}
.plan-title { font-weight: 600; color: #1e293b; margin: 0 0 0.75rem; font-size: 0.875rem; }
.plan-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.plan-grid-2 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.plan-card { border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1rem; background: #fff; cursor: pointer; text-align: left; }
.plan-card.active { border-color: var(--color-primary); box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); }
.plan-label { font-weight: 700; color: var(--color-primary); margin: 0; }
.pay-ok { color: var(--color-primary); font-weight: 600; font-size: 0.875rem; margin: 0; }
.form-submit { width: 100%; padding: 1rem; }
.form-hint { font-size: 0.75rem; color: #64748b; margin: 0; }
.form-message { background: #f1f5f9; border-radius: 1.5rem; padding: 0.75rem 1rem; font-size: 0.875rem; color: #334155; margin: 0; }

.password-field {
  position: relative;
  display: block;
  margin-top: 0.5rem;
}
.password-field .input {
  margin-top: 0;
  padding-right: 2.75rem;
  width: 100%;
}
.password-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0;
  line-height: 0;
}
.password-toggle:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.app-toast-host {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 10050;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}
.app-toast {
  pointer-events: auto;
  padding: 0.9rem 1.1rem;
  border-radius: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.app-toast.is-in {
  transform: translateX(0);
  opacity: 1;
}
.app-toast.is-out {
  transform: translateX(120%);
  opacity: 0;
}
.app-toast--error {
  background: #7f1d1d;
  color: #fff;
}
.app-toast--success {
  background: #065f46;
  color: #fff;
}
.app-toast--info {
  background: #0f172a;
  color: #fff;
}
.label-required { color: #dc2626; font-weight: 700; }
.label-optional { font-weight: 400; color: #94a3b8; font-size: 0.8125em; }
.plan-box-validation { margin: 0.75rem 0 0; }
.alert-amber { border-radius: 1.5rem; border: 1px solid #fcd34d; background: #fffbeb; padding: 1rem; font-size: 0.875rem; color: #92400e; }
.checkbox-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: #334155; }
.password-box { border-radius: 1.5rem; border: 1px solid #e2e8f0; background: #f8fafc; padding: 1.25rem; }
.password-box h3 { margin: 0 0 0.5rem; font-size: 0.875rem; color: #1e293b; }
.profile-section {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid #e2e8f0;
}
.profile-section:first-child { border-top: none; padding-top: 0; }
.profile-section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}
.profile-section-optional {
  font-weight: 600;
  color: #94a3b8;
  font-size: 0.875rem;
}
.profile-section-desc { margin: 0; }
.profile-section--business {
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid var(--ad-city-border, #e2e8f0);
  background: var(--ad-city-surface, #f8fafc);
}
.profile-section--business .profile-section-title {
  color: var(--ad-city-text, #1e293b);
}
fieldset.profile-section--business {
  border: 1px solid var(--ad-city-border, #e2e8f0);
}

/* Ad publisher mode chooser */
.ad-mode-chooser { display: grid; gap: 1.25rem; }
.ad-mode-title { margin: 0; font-size: 1.125rem; color: #1e293b; }
.ad-mode-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .ad-mode-grid { grid-template-columns: 1fr 1fr; } }
.ad-mode-card {
  display: grid;
  gap: 0.5rem;
  text-align: left;
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 2px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  transition: 0.2s;
}
.ad-mode-card:hover { border-color: var(--color-primary); box-shadow: 0 4px 12px rgb(0 0 0 / 0.06); }
.ad-mode-card--business:hover { border-color: var(--color-primary); }
.ad-mode-card h4 { margin: 0; font-size: 1rem; color: #1e293b; }
.ad-mode-card p { margin: 0; font-size: 0.875rem; color: #64748b; line-height: 1.45; }
.ad-mode-hint { font-size: 0.75rem !important; color: #94a3b8 !important; }
.ad-mode-footnote { margin: 0; font-size: 0.8125rem; color: #64748b; line-height: 1.5; }
.ad-mode-badge {
  display: inline-block;
  width: fit-content;
  padding: 0.2rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ad-mode-badge--free { background: #dcfce7; color: #166534; }
.ad-mode-badge--paid { background: color-mix(in srgb, var(--color-primary) 12%, #fff); color: var(--color-primary-hover); }

/* Como funciona */
.how-it-works-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .how-it-works-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .how-it-works-grid { grid-template-columns: repeat(4, 1fr); } }
.how-card { padding: 1.25rem; display: grid; gap: 0.5rem; align-content: start; }
.how-card h3 { margin: 0; font-size: 1rem; color: #1e293b; }
.how-card p { margin: 0; font-size: 0.8125rem; color: #64748b; line-height: 1.5; }
.how-step {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.input.compact { margin-top: 0; padding: 0.5rem 0.75rem; }
.btn.compact { padding: 0.5rem 1rem; font-size: 0.75rem; }
.modal-actions-row { display: flex; gap: 0.75rem; }
.modal-actions-row .modal-btn { flex: 1; }

/* User ads table */
.empty-state { border: 2px dashed #e2e8f0; border-radius: 1.5rem; background: #f8fafc; padding: 2.5rem; text-align: center; color: #64748b; }
.ads-table-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: 0.875rem; color: #64748b; }
.ads-table-list { display: grid; gap: 1rem; }
.user-ad-row { display: grid; gap: 1rem; border-radius: 1.5rem; border: 1px solid #e2e8f0; background: #fff; padding: 1rem; box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); }
@media (min-width: 640px) { .user-ad-row { grid-template-columns: 120px 1fr auto; } }
.user-ad-row.business {
  border-color: var(--ad-city-border);
  background: var(--ad-city-surface);
}
.user-ad-row .zoomable-thumb { width: 100%; }
.user-ad-thumb { height: 7rem; width: 100%; border-radius: 1rem; object-fit: cover; background: #f1f5f9; }
@media (min-width: 640px) {
  .user-ad-row .zoomable-thumb { width: 120px; }
  .user-ad-thumb { height: 7rem; width: 120px; }
}
.user-ad-info h3 { margin: 0.5rem 0 0; font-size: 1.125rem; color: #1e293b; }
.user-ad-desc { font-size: 0.875rem; color: #64748b; margin: 0.25rem 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.user-ad-meta { font-size: 0.75rem; color: #64748b; margin: 0.25rem 0 0; }
.user-ad-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.status-pill { border-radius: var(--radius-full); padding: 0.125rem 0.5rem; font-size: 0.75rem; font-weight: 600; }
.status-approved { background: #d1fae5; color: #047857; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-rejected { background: #fee2e2; color: #b91c1c; }
.status-pill.business { background: color-mix(in srgb, var(--ad-city-primary) 12%, #fff); color: var(--ad-city-text); border: 1px solid var(--ad-city-border); }
.user-ad-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
@media (min-width: 640px) { .user-ad-actions { flex-direction: column; } }
.btn.danger { color: #dc2626; border-color: #fecaca; }
.renew-hint { font-size: 0.75rem; font-weight: 600; color: var(--color-primary); margin: 0.25rem 0 0; }
.close-reasons { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; background: #f8fafc; border-radius: 1rem; padding: 1rem; }
.btn-text { border: none; background: none; color: #64748b; cursor: pointer; font-size: 0.875rem; }

/* Ads page */
.page-h1 { font-size: 1.875rem; font-weight: 700; color: #1e293b; margin: 0; }
.page-sub { margin: 0.5rem 0 0; color: #64748b; }

/* legal-page: mesma largura e gutter lateral que .cn-container (página principal) */
.cartoonz-brand-link { font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cartoonz-brand-link:hover { color: var(--color-primary); }
.terms-accept-row { align-items: flex-start; font-weight: 400; margin-top: 0.25rem; }
.terms-accept-row input[type="checkbox"] { margin-top: 0.2rem; flex-shrink: 0; }
.terms-accept-row .text-primary { font-weight: 600; }
.legal-updated { margin: -0.5rem 0 1.25rem; font-size: 0.875rem; color: #64748b; }
.legal-content { padding: 2rem; line-height: 1.7; color: #475569; }
.legal-content h2 { font-size: 1.125rem; color: #1e293b; margin: 1.5rem 0 0.5rem; }
.legal-content h3 { font-size: 1rem; color: #334155; margin: 1rem 0 0.35rem; }
.legal-content ul { margin: 0.5rem 0 0.75rem; padding-left: 1.25rem; }
.legal-content li { margin: 0.35rem 0; }
.legal-content p { margin: 0.5rem 0; }
.legal-content code { font-size: 0.85em; background: #f1f5f9; padding: 0.1rem 0.35rem; border-radius: 0.25rem; }
.legal-note { margin-top: 1.5rem; padding: 1rem; border-radius: 1rem; background: #fffbeb; color: #92400e; font-size: 0.875rem; }

.ads-head { margin-bottom: 0; }

.ads-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  --ads-pill-height: 2.625rem;
  --ads-pill-font-size: 0.875rem;
  --ads-city-label-width: 13.25rem;
}
@media (min-width: 768px) {
  .ads-layout {
    display: grid;
    grid-template-columns: 1fr minmax(22rem, 1fr);
    grid-template-rows: auto auto;
    gap: 0.75rem 1.5rem;
    align-items: end;
    overflow: visible;
  }
  .ads-head {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }
  .ads-city-switcher--head {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    min-width: 0;
  }
  .ads-filters {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
  }
  .ads-head-search {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    width: 100%;
    min-width: 0;
  }
}

.ads-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}

.ads-filters .filter-pill {
  flex-shrink: 0;
  white-space: nowrap;
}
.ads-page .ads-filters .filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ads-pill-height);
  padding: 0.5rem 1rem;
  font-size: var(--ads-pill-font-size);
  box-sizing: border-box;
}

.ads-head-search {
  width: 100%;
}
.ads-search-field {
  position: relative;
  width: 100%;
}
.ads-page .ads-search-field .filter-pill-input {
  width: 100%;
  max-width: none;
  min-height: var(--ads-pill-height);
  height: auto;
  padding: 0.5rem 2.75rem 0.5rem 1rem;
  font-size: var(--ads-pill-font-size);
  font-weight: 700;
  line-height: 1.25;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}
.ads-page .ads-search-field .filter-pill-input::placeholder {
  color: #94a3b8;
  opacity: 1;
  font-weight: 600;
}
.ads-page .ads-search-field .filter-pill-input::-webkit-search-cancel-button,
.ads-page .ads-search-field .filter-pill-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.ads-page .ads-search-field .filter-pill-input::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}
.ads-search-action {
  position: absolute;
  top: 50%;
  right: 0.625rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--chip-color, var(--color-primary));
  cursor: pointer;
  line-height: 0;
  border-radius: 50%;
}
.ads-search-action:hover {
  opacity: 0.75;
}
.ads-page .ads-city-switcher--head {
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .ads-page .ads-city-switcher--head {
    margin-bottom: 1.25rem;
  }
}

.ads-city-switcher {
  flex: 0 1 auto;
  min-width: 0;
}
.ads-page .ads-city-switcher--head {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}
.ads-page .ads-city-switcher--head .city-switcher-inline--filter {
  width: auto;
  max-width: 50%;
  min-width: 0;
  height: auto;
  min-height: var(--ads-pill-height);
  max-height: none;
  padding: 0.5rem 0.75rem;
  margin: 0;
  box-sizing: border-box;
}
.ads-page .ads-city-switcher--head .city-switcher-inline-label {
  flex: 0 0 var(--ads-city-label-width);
  width: var(--ads-city-label-width);
  min-width: var(--ads-city-label-width);
  max-width: var(--ads-city-label-width);
  font-size: var(--ads-pill-font-size);
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ads-page .ads-city-switcher--head .city-nav-btn--xs {
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .ads-page .ads-city-switcher--head .city-switcher-inline--filter {
    padding: 0.5rem 0.75rem;
  }
  .ads-page .ads-city-switcher--head .city-nav-btn--xs {
    width: 1.75rem;
    height: 1.75rem;
  }
}

.city-switcher-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--chip-color, var(--color-primary));
  padding: 0.125rem 0.375rem;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.city-switcher-inline--filter {
  padding: 0.5rem 0.75rem;
  min-height: 2.625rem;
  width: auto;
  min-width: 14rem;
  max-width: 22rem;
}
.city-switcher-inline-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 0.25rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.city-switcher-inline--filter .city-switcher-inline-label {
  font-size: 0.875rem;
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
  flex: 0 1 auto;
}
.city-nav-btn--xs {
  width: 1.75rem;
  height: 1.75rem;
  border-width: 1px;
  flex-shrink: 0;
}
.city-switcher-inline--filter .city-nav-btn--xs {
  width: 2rem;
  height: 2rem;
}
.city-nav-btn--xs svg { width: 0.75rem; height: 0.75rem; }

.ads-search-pill { display: inline-flex; width: 100%; }
.ads-search-pill--head { width: 100%; }

.ads-price-pill {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 var(--ads-search-width, 10.667rem);
  width: var(--ads-search-width, 10.667rem);
  height: 2.625rem;
  min-height: 2.625rem;
  max-height: 2.625rem;
  padding: 0 0.75rem;
  box-sizing: border-box;
  cursor: default;
  overflow: visible;
}
@media (min-width: 768px) {
  .ads-price-pill {
    width: calc(100% - var(--ads-col2-left-inset, calc(2cm - 0.25mm)) - var(--ads-clear-slot, calc(2.625rem + 0.5rem)));
    max-width: none;
    flex: none;
    min-width: 0;
    margin-left: var(--ads-col2-left-inset, calc(2cm - 0.25mm));
    margin-right: 0;
    box-sizing: border-box;
  }
}
.ads-price-pill-label {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  line-height: 1.1;
  color: var(--chip-color, var(--color-primary));
  background: #fff;
  padding: 0 0.35rem;
}
.ads-price-pill.active .ads-price-pill-label {
  color: var(--chip-color, var(--color-primary));
  background: #fff;
}
@media (min-width: 768px) {
  .ads-filters-right {
    overflow: visible;
  }
  #ads-filter-controls {
    overflow: visible;
  }
}

.dual-range--pill {
  position: relative;
  flex: 0 0 auto;
  height: 0.625rem;
  --range-left: 0%;
  --range-width: 100%;
}
.dual-range--pill input[type='range'] {
  height: 0.625rem;
}
.dual-range--pill input[type='range']::-webkit-slider-thumb {
  width: 0.625rem;
  height: 0.625rem;
  border-width: 1.5px;
}
.dual-range--pill input[type='range']::-moz-range-thumb {
  width: 0.625rem;
  height: 0.625rem;
  border-width: 1.5px;
}
.ads-price-pill.active .dual-range-track {
  background: color-mix(in srgb, #fff 35%, transparent);
}
.ads-price-pill.active .dual-range-fill {
  background: #fff;
}
.ads-price-pill.active .dual-range input[type='range']::-webkit-slider-thumb {
  background: #fff;
  border-color: color-mix(in srgb, var(--chip-color, var(--color-primary)) 30%, #fff);
}
.ads-price-pill.active .dual-range input[type='range']::-moz-range-thumb {
  background: #fff;
  border-color: color-mix(in srgb, var(--chip-color, var(--color-primary)) 30%, #fff);
}

.dual-range {
  position: relative;
  height: 1.25rem;
  --range-left: 0%;
  --range-width: 100%;
}
.dual-range-track,
.dual-range-fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 3px;
  border-radius: 999px;
  pointer-events: none;
}
.dual-range-track {
  left: 0;
  right: 0;
  background: #e2e8f0;
}
.dual-range-fill {
  left: var(--range-left);
  width: var(--range-width);
  background: var(--chip-color, var(--color-primary));
}
.dual-range input[type='range'] {
  position: absolute;
  left: 0;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  pointer-events: none;
  appearance: none;
  background: transparent;
  height: 4px;
  z-index: 2;
}
.dual-range input[type='range']:last-of-type { z-index: 3; }
.dual-range input[type='range']::-webkit-slider-thumb {
  appearance: none;
  pointer-events: auto;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--chip-color, var(--color-primary));
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.18);
  cursor: pointer;
}
.dual-range input[type='range']::-moz-range-thumb {
  pointer-events: auto;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--chip-color, var(--color-primary));
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.18);
  cursor: pointer;
}

.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;
}
.ads-panel { overflow: hidden; }
.ads-grid { display: grid; gap: 1.5rem; padding: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.empty-grid { padding: 3rem; text-align: center; color: #64748b; grid-column: 1 / -1; }
.ad-list-card { height: 540px; width: 100%; }
.ad-list-title { margin: 1rem 0 0; font-size: 1.125rem; font-weight: 600; color: #334155; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-list-city { margin: 0.5rem 0 0; font-weight: 700; text-transform: uppercase; font-size: 1rem; }
.ad-list-location { margin: 0.25rem 0 0; color: #475569; }
.ad-list-price { margin: 0.25rem 0 0; font-weight: 600; color: #1e293b; font-size: 0.875rem; }
.ad-list-engagement { margin-top: auto; padding-top: 1rem; }

/* Pagination */
.pagination-bar { display: flex; flex-direction: column; gap: 0.75rem; border-top: 1px solid #e2e8f0; padding: 1rem 1.25rem; }
@media (min-width: 640px) { .pagination-bar { flex-direction: row; align-items: center; justify-content: space-between; } }
.pagination-info { font-size: 0.75rem; color: #64748b; margin: 0; }
.pagination-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.pagination-size { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: #64748b; }
.pagination-size select { border-radius: 0.5rem; border: 1px solid #e2e8f0; padding: 0.25rem 0.5rem; font-weight: 600; }
.pagination-btns { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.pagination-btns button { border-radius: var(--radius-full); border: 1px solid #e2e8f0; background: #fff; padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 600; cursor: pointer; color: #334155; }
.pagination-btns button.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pagination-btns button:disabled { opacity: 0.4; cursor: not-allowed; }

/* Admin */
.admin-body { background: #f1f5f9; }
.admin-main {
  max-width: 80rem;
  margin: 0 auto;
  padding-top: 2rem;
  padding-bottom: 2rem;
  padding-left: calc(var(--page-gutter) + env(safe-area-inset-left, 0px));
  padding-right: calc(var(--page-gutter) + env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}
.admin-shell { display: grid; gap: 1.5rem; min-width: 0; max-width: 100%; }
#admin-content { min-width: 0; max-width: 100%; }
.admin-top { padding: 1rem 1.5rem; min-width: 0; }
.admin-top-row { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 1024px) {
  .admin-top-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 1.5rem; }
}
.admin-top-left { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.admin-top h1 { margin: 0; font-size: 1.25rem; font-weight: 900; color: #1e293b; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.admin-tab-btn {
  border: 2px solid var(--color-primary); background: transparent; border-radius: var(--radius-full);
  padding: 0.5rem 1rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  color: var(--color-primary); cursor: pointer; transition: background 0.15s, color 0.15s;
}
.admin-tab-btn:hover:not(.active) { opacity: 0.85; }
.admin-tab-btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.admin-tab-btn--link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.admin-tab-btn--link:hover { opacity: 0.85; }
.admin-search-wrap { width: 100%; }
.admin-search-wrap input {
  width: 100%; border-radius: var(--radius-full); border: 1px solid #e2e8f0; background: #f8fafc;
  padding: 0.5rem 0.875rem; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; outline: none;
}
.admin-search-wrap input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent); }
.admin-search-wrap input:disabled { opacity: 0.5; cursor: not-allowed; }
@media (min-width: 1024px) {
  .admin-search-wrap { flex: 0 1 13rem; max-width: 13rem; margin-left: auto; }
}
.admin-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}
@media (min-width: 900px) {
  .admin-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.stat-card {
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  min-width: 0;
  overflow: hidden;
}
.stat-card p { margin: 0; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; }
.stat-card strong { display: block; margin-top: 0.25rem; font-size: 1.875rem; color: #1e293b; }
.stat-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem;
  margin-top: 0.25rem;
  min-width: 0;
  flex-wrap: wrap;
}
.stat-card-body strong { margin-top: 0; flex-shrink: 0; line-height: 1; }

.stat-sales-zoom-btn {
  width: 2.33rem;
  height: 2.33rem;
  border: 1px solid #e9d5ff;
  border-radius: 50%;
  background: #faf5ff;
  color: #9333ea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s, border-color 0.15s;
}
.stat-sales-zoom-btn:hover {
  background: #f3e8ff;
  border-color: #d8b4fe;
  transform: scale(1.06);
}

.media-lightbox-panel--sales {
  width: min(48rem, 96vw);
  max-height: none;
  overflow: visible;
}
.sales-summary-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  padding-right: 2rem;
}
.sales-summary-subtitle {
  margin: 0.5rem 0 1rem;
  font-size: 0.875rem;
  color: #64748b;
}
.sales-summary-filters { margin-bottom: 1.25rem; }
.sales-summary-filter-label {
  margin: 0 0 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}
.sales-summary-filter-label + .sales-summary-periods { margin-bottom: 0.85rem; }
.sales-summary-filters .sales-summary-periods:last-child { margin-bottom: 0; }
.sales-summary-periods {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  overflow: visible;
}
.sales-summary-period-btn {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  border-radius: 9999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  flex: 0 0 auto;
}
.sales-summary-period-btn:hover { border-color: #d8b4fe; color: #7e22ce; }
.sales-summary-period-btn.active {
  background: #9333ea;
  border-color: #9333ea;
  color: #fff;
}
.sales-summary-table-wrap {
  overflow: visible;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}
.media-lightbox-panel--sales .media-lightbox-content {
  overflow: visible;
}
.sales-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.sales-summary-table th,
.sales-summary-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}
.sales-summary-table th {
  background: #f8fafc;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.sales-summary-table td:nth-child(2),
.sales-summary-table th:nth-child(2),
.sales-summary-table td:nth-child(3),
.sales-summary-table th:nth-child(3),
.sales-summary-table td:nth-child(4),
.sales-summary-table th:nth-child(4),
.sales-summary-table tfoot td {
  text-align: right;
  white-space: nowrap;
}
.sales-summary-table tbody tr.is-zero { color: #94a3b8; }
.sales-summary-table tfoot td {
  border-bottom: none;
  background: #faf5ff;
  color: #1e293b;
}
.sales-summary-waived {
  margin: 1rem 0 0.35rem;
  font-size: 0.875rem;
  color: #475569;
}
.sales-summary-waived-hint { color: #94a3b8; }
.sales-summary-note {
  margin: 0;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.4;
}
.sales-summary-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.category-pie-chart {
  position: relative;
  flex-shrink: 0;
  line-height: 0;
}
.category-pie-chart svg { display: block; pointer-events: none; }
.category-pie-slice-label {
  pointer-events: none;
  user-select: none;
}
.category-pie-zoom-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  border-radius: 50%;
  background: rgb(15 23 42 / 0.78);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  padding: 0;
  z-index: 2;
}
.category-pie-chart:hover .category-pie-zoom-btn { opacity: 1; }
.category-pie-zoom-btn:hover { transform: translate(-50%, -50%) scale(1.06); }
.category-pie-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
  padding: 0.25rem;
}
.category-pie--with-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.category-pie-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  min-width: 10rem;
}
.category-pie-legend li {
  display: grid;
  grid-template-columns: 0.75rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #334155;
}
.category-pie-legend strong { font-size: 0.875rem; color: #1e293b; }
.category-pie-swatch {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.category-pie-lightbox-title {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  color: #1e293b;
  text-align: center;
}
.category-pie-lightbox-total {
  margin: 0 0 1.25rem;
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
}

.zoomable-thumb {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  max-width: 100%;
}
.zoomable-thumb-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgb(15 23 42 / 0.78);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  padding: 0;
  z-index: 1;
}
.zoomable-thumb:hover .zoomable-thumb-btn { opacity: 1; }
.zoomable-thumb-btn:hover { transform: translate(-50%, -50%) scale(1.06); }

.media-lightbox {
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.media-lightbox-panel {
  position: relative;
  max-width: min(92vw, 56rem);
  max-height: 92vh;
  background: #fff;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 25px 50px rgb(0 0 0 / 0.25);
  overflow: auto;
}
.media-lightbox-panel.media-lightbox-panel--sales {
  width: min(48rem, 96vw);
  max-width: min(48rem, 96vw);
  max-height: none;
  overflow: visible;
}
.media-lightbox-panel--content { padding: 1.5rem 1.75rem 1.75rem; }
.media-lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s;
}
.media-lightbox-close:hover { background: #e2e8f0; }
.media-lightbox-img {
  display: block;
  max-width: min(88vw, 52rem);
  max-height: calc(92vh - 3rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 0.75rem;
  object-fit: contain;
}
.media-lightbox-content { padding-top: 1.5rem; }

.text-amber { color: #d97706 !important; }
.text-orange { color: #ea580c !important; }
.admin-filters { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) {
  .admin-filters { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
  .admin-filter-group--actions { margin-left: auto; justify-content: flex-end; }
}
.admin-new-ad-btn {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}
.admin-ad-modal { max-width: 42rem; width: 100%; }
.filter-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.admin-filter-btn {
  border: 2px solid var(--color-primary); background: transparent; border-radius: var(--radius-full);
  padding: 0.5rem 1rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  color: var(--color-primary); cursor: pointer; transition: background 0.15s, color 0.15s;
}
.admin-filter-btn:hover:not(.active) { opacity: 0.85; }
.admin-filter-btn.active {
  background: var(--color-primary); color: #fff; border-color: var(--color-primary);
  box-shadow: 0 4px 6px color-mix(in srgb, var(--color-primary) 20%, transparent);
}
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}
.admin-table-wrap--spaced {
  padding: 1rem;
  background: #f8fafc;
  border: none;
  box-shadow: none;
}
@media (min-width: 640px) {
  .admin-table-wrap--spaced { padding: 1.25rem 1.5rem 1.5rem; }
}
.admin-panel-head { display: flex; flex-direction: column; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid #e2e8f0; }
@media (min-width: 640px) { .admin-panel-head { flex-direction: row; justify-content: space-between; align-items: center; } }
.admin-panel-head h2 { margin: 0; font-size: 1.125rem; color: #1e293b; }
.admin-panel-head p { margin: 0.25rem 0 0; font-size: 0.875rem; color: #64748b; }
.admin-table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 0.875rem; text-align: left; }
.admin-table thead tr { border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.admin-table th { padding: 1rem 1.25rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; }
.admin-table td { padding: 1rem 1.25rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.admin-table.admin-table--spaced {
  border-collapse: separate;
  border-spacing: 0 1.5rem;
}
.admin-table.admin-table--spaced thead tr {
  background: transparent;
  border-bottom: none;
}
.admin-table.admin-table--spaced thead th {
  background: transparent;
  border-bottom: none;
  padding-top: 0;
  padding-bottom: 0.75rem;
}
.admin-table.admin-table--spaced tbody td {
  border: 1px solid #e2e8f0;
  border-left: none;
  border-right: none;
  background: #fff;
  padding: 1.125rem 1.25rem;
}
.admin-table.admin-table--spaced tbody td:first-child {
  border-left: 1px solid #e2e8f0;
  border-radius: 1rem 0 0 1rem;
}
.admin-table.admin-table--spaced tbody td:last-child {
  border-right: 1px solid #e2e8f0;
  border-radius: 0 1rem 1rem 0;
}
.admin-table.admin-table--spaced tbody tr.row-business td,
.admin-table.admin-table--spaced tbody tr.row-city td,
.admin-table.admin-table--spaced tbody tr.row-featured td {
  background: var(--ad-city-surface, #fff);
}
.admin-table .mono { font-family: ui-monospace, monospace; font-size: 0.75rem; color: #64748b; }
.row-business { background: var(--ad-city-surface); }
.row-city { background: var(--ad-city-surface); }
.row-featured { background: color-mix(in srgb, var(--color-primary) 5%, transparent); }
.admin-ad-cell { display: flex; gap: 0.75rem; align-items: center; position: relative; }
.admin-ad-cell .city-badge { flex-shrink: 0; }
.admin-ad-cell-thumb { position: relative; flex-shrink: 0; }
.admin-ad-cell-thumb .zoomable-thumb img { width: 3rem; height: 3rem; border-radius: 0.75rem; object-fit: cover; border: 1px solid #e2e8f0; }
.admin-ad-cell img { width: 3rem; height: 3rem; border-radius: 0.75rem; object-fit: cover; border: 1px solid #e2e8f0; }
.admin-ad-cell > div:last-child { min-width: 0; flex: 1; }
.admin-ad-cell strong {
  display: block;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-ad-cell small {
  display: block;
  color: #64748b;
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.star-badge { position: absolute; left: 2.5rem; top: -0.25rem; color: #fbbf24; font-size: 0.75rem; }
.sub { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.status-select { border-radius: var(--radius-full); border: 1px solid; padding: 0.375rem 0.75rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; cursor: pointer; appearance: auto; }
.status-select option { background: #fff; color: #334155; font-weight: 600; }
.status-pending { border-color: #fcd34d; background: #fffbeb; color: #92400e; }
.status-approved { border-color: #6ee7b7; background: #ecfdf5; color: #047857; }
.status-rejected { border-color: #fca5a5; background: #fef2f2; color: #b91c1c; }
.admin-actions { display: flex; flex-wrap: nowrap; gap: 0.375rem; justify-content: center; align-items: center; }
.admin-actions .act {
  width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid #e2e8f0; background: #fff;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.15s, background 0.15s; padding: 0; color: #64748b;
}
.admin-actions .act:hover { transform: scale(1.05); }
.admin-actions .act svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.admin-actions .act.ok { border-color: #a7f3d0; background: #ecfdf5; color: #059669; }
.admin-actions .act.ok:hover { background: #d1fae5; }
.admin-actions .act.no { border-color: #fecaca; background: #fef2f2; color: #dc2626; }
.admin-actions .act.no:hover { background: #fee2e2; }
.admin-actions .act.star-on { border-color: #fcd34d; background: #fffbeb; color: #f59e0b; }
.admin-actions .act.star-off { color: #94a3b8; }
.admin-actions .act.star-off:hover { color: #f59e0b; border-color: #fcd34d; }
.admin-actions .act.view { border-color: color-mix(in srgb, var(--color-primary) 30%, #e2e8f0); background: color-mix(in srgb, var(--color-primary) 5%, #fff); color: var(--color-primary); }
.admin-actions .act.view:hover { background: color-mix(in srgb, var(--color-primary) 10%, #fff); }
.admin-actions .act.edit:hover { border-color: var(--color-primary); color: var(--color-primary); }
.admin-actions .act.del { color: #ef4444; border-color: #fecaca; }
.admin-actions .act.del:hover { background: #fef2f2; }
.row-admin { background: color-mix(in srgb, var(--color-primary) 4%, #fff); }
.admin-user-cell { display: flex; align-items: center; gap: 0.75rem; }
.admin-user-contact { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.admin-user-contact strong { line-height: 1.3; }
.admin-user-email,
.admin-user-phone { display: block; color: #64748b; font-size: 0.8125rem; line-height: 1.35; }
.admin-user-edit-modal { max-width: 36rem; }
.admin-user-photo { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; border: 1px solid #e2e8f0; }
.admin-user-avatar {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--color-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; flex-shrink: 0;
}
.admin-profile-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.25rem;
  margin-top: 0.25rem;
  border-top: 1px solid #eef2f7;
}
.admin-profile-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .admin-profile-grid { grid-template-columns: repeat(2, 1fr); } }
.admin-profile-card { padding-bottom: 1.5rem; }
.admin-profile-form { padding: 0 1.25rem 1rem; }
.featured-reason-tag { display: block; margin-top: 0.2rem; font-size: 0.7rem; font-weight: 600; color: #b45309; }
.row-featured-plan td { background: #fafbff; }
.plan-box-featured { margin-top: 0.75rem; align-items: flex-start; }
.ad-card-img-wrap { position: relative; }
.ad-featured-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  background: #fbbf24;
  color: #78350f;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.ad-featured-badge--inline { position: static; display: inline-block; }
.star-rating-trigger[aria-disabled="true"] { cursor: default; }
.admin-profile-form .profile-photo-picker {
  padding-top: 1.25rem;
  margin-top: 0.25rem;
  max-width: none;
  width: fit-content;
}
.admin-profile-form .profile-photo-size-hint {
  margin: 0.375rem 0 0;
  text-align: left;
  white-space: nowrap;
  font-size: 0.6875rem;
}
.password-fieldset { border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1rem; margin: 0; display: grid; gap: 0.75rem; }
.password-fieldset legend { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: #64748b; padding: 0 0.25rem; }
.form-message.success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.form-message.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.color-preview { display: inline-block; border-radius: var(--radius-full); padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 700; color: #fff; }
.color-preview-round { width: 2rem; height: 2rem; padding: 0; border-radius: 50%; border: 2px solid #e2e8f0; display: inline-block; vertical-align: middle; }
.color-hex { margin-left: 0.5rem; font-size: 0.75rem; color: #64748b; vertical-align: middle; }
.city-color-ball-wrap { display: inline-flex; cursor: pointer; vertical-align: middle; }
.city-color-ball {
  -webkit-appearance: none;
  appearance: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
  background: transparent;
}
.city-color-ball::-webkit-color-swatch-wrapper { padding: 0; }
.city-color-ball::-webkit-color-swatch { border: none; border-radius: 50%; }
.city-color-ball::-moz-color-swatch { border: none; border-radius: 50%; }
.color-swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  align-items: center;
}
.color-swatch-grid--inline {
  gap: 0.35rem;
}
.color-swatch-grid--bolinhas {
  gap: 0.55rem;
}
.color-swatch {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  min-height: 2.25rem;
  border-radius: 50% !important;
  border: 2px solid #e2e8f0;
  background-color: var(--swatch, #cbd5e1);
  cursor: pointer;
  padding: 0 !important;
  margin: 0;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease, filter 0.12s ease;
}
.color-swatch-grid--inline .color-swatch {
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  min-height: 1.5rem;
}
.color-swatch:hover:not(:disabled) {
  transform: scale(1.08);
}
.color-swatch.is-selected {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0f172a;
  border-color: #0f172a;
}
.color-swatch.is-disabled,
.color-swatch:disabled {
  /* Mantém a cor original, só reduz vivacidade — ainda dá para reconhecer */
  opacity: 0.42;
  filter: saturate(0.55) brightness(1.08);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  position: relative;
}
.color-swatch.is-disabled::after,
.color-swatch:disabled::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 3px,
    rgba(255, 255, 255, 0.55) 3px 5px
  );
  pointer-events: none;
}
.color-swatch-hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
}
.choice-dialog-options {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
}
.choice-dialog-options .choice-dialog-option {
  width: 100%;
  text-align: center;
  white-space: normal;
  line-height: 1.35;
  padding: 0.75rem 1rem;
}
.paid-city-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px #fff;
  vertical-align: middle;
}
.map-pin-status {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.map-pin-status.is-on {
  color: #047857;
  background: #ecfdf5;
}
.map-pin-status.is-off {
  color: #b45309;
  background: #fffbeb;
}
.admin-hint {
  margin: 0.75rem 1.25rem 0;
  font-size: 0.8rem;
  color: #64748b;
}
.photo-upload-field { display: grid; gap: 0.5rem; }
.photo-upload-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.admin-photo-preview {
  width: 4rem; height: 4rem; border-radius: 50%; overflow: hidden;
  border: 2px solid #e2e8f0; display: flex; align-items: center; justify-content: center; background: #f8fafc;
}
.admin-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-upload-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.admin-actions .act:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

/* Admin — lista de anúncios em cards (mobile) */
@media (max-width: 639px) {
  .admin-table-wrap--ads {
    overflow-x: visible;
    padding: 0.5rem 0 0;
    background: transparent;
  }

  .admin-table.admin-table--ads {
    min-width: 0;
    width: 100%;
    border-spacing: 0;
    border-collapse: separate;
  }

  .admin-table.admin-table--ads thead {
    display: none;
  }

  .admin-table.admin-table--ads tbody {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .admin-table.admin-table--ads tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "id category"
      "ad ad"
      "status status"
      "actions actions";
    gap: 0.625rem 0.75rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: var(--ad-city-surface, #fff);
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
  }

  .admin-table.admin-table--ads tbody td {
    display: block;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    width: auto !important;
  }

  .admin-table.admin-table--ads tbody td:nth-child(1) {
    grid-area: id;
    align-self: center;
  }

  .admin-table.admin-table--ads tbody td:nth-child(1) .mono,
  .admin-table.admin-table--ads tbody td:nth-child(1) {
    font-family: ui-monospace, monospace;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #64748b;
  }

  .admin-table.admin-table--ads tbody td:nth-child(2) {
    grid-area: ad;
    width: 100%;
  }

  .admin-table.admin-table--ads tbody td:nth-child(3) {
    grid-area: category;
    text-align: right;
    align-self: center;
    font-size: 0.8125rem;
    line-height: 1.35;
  }

  .admin-table.admin-table--ads tbody td:nth-child(3) strong {
    display: block;
    color: #1e293b;
    font-size: 0.8125rem;
  }

  .admin-table.admin-table--ads tbody td:nth-child(3) .sub {
    display: block;
    font-size: 0.75rem;
  }

  .admin-table.admin-table--ads tbody td:nth-child(4) {
    grid-area: status;
    width: 100%;
    padding-top: 0.25rem !important;
  }

  .admin-table.admin-table--ads tbody td:nth-child(4) .status-select {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .admin-table.admin-table--ads tbody td:nth-child(5) {
    grid-area: actions;
    width: 100%;
    padding-top: 0.625rem !important;
    margin-top: 0.125rem;
    border-top: 1px solid #e2e8f0 !important;
  }

  .admin-table.admin-table--ads .admin-ad-cell {
    display: grid;
    grid-template-columns: 4.25rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0.375rem 0.75rem;
    align-items: start;
    width: 100%;
  }

  .admin-table.admin-table--ads .admin-ad-cell .city-badge {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
  }

  .admin-table.admin-table--ads .admin-ad-cell-thumb {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
  }

  .admin-table.admin-table--ads .admin-ad-cell-thumb .zoomable-thumb img,
  .admin-table.admin-table--ads .admin-ad-cell img {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 0.75rem;
  }

  .admin-table.admin-table--ads .admin-ad-cell > div:last-child {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
  }

  .admin-table.admin-table--ads .admin-ad-cell strong,
  .admin-table.admin-table--ads .admin-ad-cell small {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
  }

  .admin-table.admin-table--ads .admin-ad-cell strong {
    font-size: 0.9375rem;
    line-height: 1.3;
    margin-bottom: 0.125rem;
  }

  .admin-table.admin-table--ads .admin-ad-cell small {
    line-height: 1.4;
  }

  .admin-table.admin-table--ads .admin-ad-cell small a {
    word-break: break-all;
  }

  .admin-table.admin-table--ads .star-badge {
    left: 3.5rem;
    top: -0.125rem;
  }

  .admin-table.admin-table--ads .admin-actions {
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.25rem;
    width: 100%;
  }

  .admin-table.admin-table--ads .admin-actions .act {
    flex: 1 1 0;
    width: 2.125rem;
    height: 2.125rem;
    max-width: 2.5rem;
    min-width: 0;
    margin: 0;
  }
}
.type-pill { border-radius: var(--radius-full); padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 700; background: #f1f5f9; color: #334155; }
.type-pill.admin { background: color-mix(in srgb, var(--color-primary) 12%, #fff); color: var(--color-primary); }
.type-pill.business { background: #f1f5f9; color: #475569; }
.text-center { text-align: center; }

/* ========== Mobile (até 639px) ========== */
@media (max-width: 639px) {
  :root { --page-gutter: 1.5rem; }

  .cn-container,
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-left: calc(1.5rem + env(safe-area-inset-left, 0px));
    padding-right: calc(1.5rem + env(safe-area-inset-right, 0px));
  }

  .site-header,
  .site-footer,
  .page-main,
  .hero-copy,
  .city-switcher,
  .destaques-head,
  .filter-row {
    max-width: 100%;
    min-width: 0;
  }

  .header-inner { padding: 0.75rem 0; gap: 0.5rem; min-width: 0; }
  .logo {
    gap: 0;
    min-width: 0;
    flex-shrink: 1;
  }
  .logo-img {
    height: 2.87rem;
    max-width: min(224px, 39vw);
  }
  .logo-img--footer {
    height: 3.33rem;
  }
  .logo-badge {
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    flex-shrink: 0;
  }
  .nav-mobile-wrap { gap: 0.375rem; flex-shrink: 0; min-width: 0; }
  .nav-mobile-wrap .btn { font-size: 0.6875rem; padding: 0.4375rem 0.625rem; white-space: nowrap; }
  .menu-btn {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    padding: 0;
    font-size: 1.08rem;
  }

  .hero-badge { font-size: 0.8125rem; word-break: break-word; }

  .page-main { padding: 1.25rem 0 3rem; }
  .page-section { margin-top: 2.5rem; }
  .section-title-lg { font-size: 1.5rem; }
  .hero-grid { gap: 1.5rem; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1.25rem; }
  .category-count { font-size: 2.25rem; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .category-card { padding: 1rem 0.5rem; border-radius: 1.5rem; }
  .category-badge { min-width: 0; width: 100%; padding: 0 0.5rem; font-size: 0.6875rem; }

  .cta-banner { padding: 2rem 1.25rem; }
  .cta-eyebrow { letter-spacing: 0.2em; }
  .btn-white { width: 100%; padding: 1.25rem 1.5rem; font-size: 1rem; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; margin-right: 0 !important; }
  .section-eyebrow { letter-spacing: 0.2em; word-break: break-word; }

  .carousel-wrap { padding: 0; }
  .carousel-track .ad-card {
    flex: 0 0 calc(100% - 0.5rem);
    width: calc(100% - 0.5rem);
    max-width: 100%;
  }
  .carousel-btn { width: 2rem; height: 2rem; }
  .carousel-btn.prev { left: 0.375rem; }
  .carousel-btn.next { right: 0.375rem; }

  .ad-card,
  .ad-list-card { height: auto; min-height: 0; }
  .ad-card-img { height: 10rem; }

  #cities-map { height: 280px; }

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

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

  .conta-panel { padding: 1rem; }
  .conta-tabs { gap: 0.375rem; }
  .tab-btn { font-size: 0.8125rem; padding: 0.4375rem 0.75rem; }

  .modal { padding: 1.25rem; }
  .modal-actions-row { flex-direction: column; }
  .modal-actions-row .btn { flex: none !important; width: 100%; }

  .ad-detail-modal { max-height: 95vh; border-radius: 1.25rem; }
  .ad-detail-body { padding: 1rem; }
  .ad-detail-title { font-size: 1.25rem; }

  .admin-main { padding-top: 1rem; padding-bottom: 1rem; }
  .admin-top { padding: 1rem; }
  .admin-top-left { flex-direction: column; align-items: stretch; width: 100%; }
  .admin-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.375rem;
    padding-bottom: 0.125rem;
    scrollbar-width: none;
  }
  .admin-tabs::-webkit-scrollbar { display: none; }
  .admin-tab-btn { flex-shrink: 0; }
  .admin-filters .filter-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.125rem;
  }
  .admin-filters .filter-group::-webkit-scrollbar { display: none; }
  .admin-filter-btn { flex-shrink: 0; }
  .admin-filter-group--actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
  }
  .admin-filter-group--actions::-webkit-scrollbar { display: none; }
  .admin-new-ad-btn { flex-shrink: 0; }
  .admin-table:not(.admin-table--ads) { min-width: 34rem; }
  .admin-table th,
  .admin-table td { padding: 0.75rem 0.625rem; }
  .admin-stats { grid-template-columns: 1fr; }
  .stat-card-body { justify-content: flex-start; }
  .admin-tab-btn,
  .admin-filter-btn { font-size: 0.6875rem; padding: 0.4375rem 0.75rem; }

  .engagement-btn {
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: 0.375rem 0.625rem;
  }

  .admin-actions .act { width: 2.75rem; height: 2.75rem; }

  .legal-content { padding: 1.25rem; }

  .ad-photo-slots { gap: 0.5rem; }

  .plan-box-pay-row { gap: 1rem; flex-direction: column; align-items: stretch; }
  .plan-checkout-col--coupon { margin-left: 0; justify-items: stretch; width: 100%; }
  .plan-box-pay-btn { min-width: 0; max-width: 100%; }
  .coupon-inline { width: 100%; }
  .coupon-input { width: 100%; max-width: 100%; flex: 1; }

  .auth-card { padding: 1.5rem; }
  .pagination-bar { padding: 0.875rem 1rem; }

  .filter-pill,
  .scope-btn,
  .map-city-btn { font-size: 0.75rem; padding: 0.4375rem 0.75rem; }
}

@media (max-width: 400px) {
  :root { --page-gutter: 1.25rem; }

  .cn-container,
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-left: calc(1.25rem + env(safe-area-inset-left, 0px));
    padding-right: calc(1.25rem + env(safe-area-inset-right, 0px));
  }
}

