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

:root {
  --panel-bg: #f7f3ec;
  --panel-card: #ffffff;
  --panel-text: #1a1f1c;
  --panel-muted: #5c655f;
  --panel-primary: #0b3d2e;
  --panel-accent: #ff6b35;
  --panel-border: #e6ded0;
  --panel-shadow: 0 12px 30px rgba(11, 61, 46, 0.08);
  --panel-header-height: 72px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background: var(--panel-bg);
  color: var(--panel-text);
}

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

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

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.panel-header {
  background: #fffaf2;
  border-bottom: 1px solid var(--panel-border);
  padding: 16px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(11, 61, 46, 0.08);
}

.panel-header .brand {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.panel-header nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--panel-muted);
}

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

.panel-header + main.container {
  padding-top: calc(var(--panel-header-height) + 20px) !important;
}

.page-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 243, 236, 0.7);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 999;
}

.page-loader.is-active {
  opacity: 1;
  pointer-events: all;
}

.page-loader__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #fff;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: var(--panel-shadow);
  font-weight: 600;
  color: var(--panel-primary);
}

.page-loader__ring {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(11, 61, 46, 0.18);
  border-top-color: var(--panel-accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.panel-main {
  padding: calc(var(--panel-header-height) + 20px) 0 60px;
}

.panel-card {
  background: var(--panel-card);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--panel-shadow);
}

.panel-hero {
  background: linear-gradient(120deg, #0b3d2e 0%, #1f6f52 55%, #2b8a63 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(200px, 260px);
  gap: 20px;
  margin-bottom: 20px;
  box-shadow: var(--panel-shadow);
}

.panel-hero h1 {
  margin: 6px 0 8px;
  font-family: 'Sora', sans-serif;
  font-size: 28px;
}

.panel-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  max-width: 460px;
}

.panel-hero .eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--panel-muted);
}

.builder-card {
  display: grid;
  gap: 18px;
}

.builder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.builder-tip {
  background: #fff4d6;
  border: 1px solid #f5b01f;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  max-width: 260px;
}

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

.builder-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 1fr) minmax(240px, 1fr);
}

.builder-section h4 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--panel-muted);
}

.builder-section .full-width textarea {
  min-height: 160px;
}

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

.panel-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.ad-builder {
  display: grid;
  gap: 16px;
}

.ad-cover {
  height: 160px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.ad-cover .status-pill {
  position: absolute;
  top: 12px;
  left: 12px;
}

.ad-summary h3 {
  margin: 0 0 6px;
}

.ad-summary {
  display: grid;
  gap: 4px;
}

.inline-form {
  display: inline-flex;
}

.panel-modal-large {
  width: min(980px, 92vw);
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.ad-modal-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 1.1fr) minmax(220px, 0.9fr);
}
.ad-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.ad-meta {
  font-size: 13px;
  color: var(--panel-muted);
}

.ad-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.ad-body {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 1.2fr) minmax(240px, 0.8fr);
}

.ad-gallery h4 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--panel-muted);
}

.photo-upload {
  display: grid;
  gap: 10px;
}

.upload-drop {
  border: 1px dashed var(--panel-border);
  border-radius: 14px;
  padding: 16px;
  background: #fffaf2;
  font-size: 13px;
  color: var(--panel-muted);
  cursor: pointer;
  text-align: center;
}

.upload-drop input {
  display: none;
}

.upload-preview {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
}

.photo-preview-item {
  width: 100%;
  padding-top: 100%;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--panel-border);
}

.photo-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
}

.photo-thumb {
  position: relative;
  width: 100%;
  padding-top: 100%;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--panel-border);
  cursor: pointer;
  overflow: hidden;
}

.photo-delete {
  position: absolute;
  top: 6px;
  right: 6px;
}

.photo-delete button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
}

.photo-empty {
  font-size: 13px;
  color: var(--panel-muted);
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.photo-lightbox.open {
  display: flex;
}

.photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.7);
}

.photo-lightbox-content {
  position: relative;
  z-index: 2;
  max-width: min(900px, 92vw);
  max-height: 86vh;
}

.photo-lightbox-content img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: var(--panel-shadow);
  background: #fff;
}

.photo-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  box-shadow: var(--panel-shadow);
}

.panel-hero .hero-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 14px;
  align-content: center;
}

.panel-hero .hero-metric span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.panel-hero .hero-metric strong {
  font-size: 26px;
}

.table-wrap {
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  overflow: auto;
  background: #fffaf2;
}

.panel-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag.pending {
  background: #fff1db;
  color: #9a5b00;
}

.tag.confirming {
  background: #fef3c7;
  color: #92400e;
}

.tag.paid {
  background: #dcfce7;
  color: #166534;
}

.tag.danger {
  background: #fee2e2;
  color: #991b1b;
}

.plan-status {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.builder {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.builder-nav {
  position: sticky;
  top: 90px;
  background: var(--panel-card);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--panel-shadow);
  display: grid;
  gap: 10px;
}

.builder-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  color: var(--panel-muted);
}

.builder-nav a:hover,
.builder-nav a:focus-visible {
  border-color: var(--panel-border);
  color: var(--panel-text);
}

.builder-section {
  scroll-margin-top: 110px;
}

.field-color {
  display: grid;
  gap: 8px;
}

.color-input {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 10px;
  align-items: center;
}

.color-input input[type="color"] {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: transparent;
}

.color-preview {
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
}

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

.section-title h3 {
  margin: 0;
}

@media (max-width: 960px) {
  .builder {
    grid-template-columns: 1fr;
  }

  .builder-nav {
    position: relative;
    top: auto;
  }
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--panel-card);
}

.table th,
.table td {
  border-bottom: 1px solid var(--panel-border);
  padding: 10px 8px;
  text-align: left;
}

.table th {
  font-weight: 700;
  background: #fffaf2;
  position: sticky;
  top: 0;
  z-index: 1;
}

.table tbody tr:hover {
  background: #fff7eb;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  border: 1px solid transparent;
}

.status-pendente,
.status-novo,
.status-em_analise,
.status-em {
  background: #fff3cc;
  color: #8a5b00;
  border-color: #f5c04e;
}

.status-aprovado,
.status-confirmado {
  background: #e5f6ed;
  color: #0b6b43;
  border-color: #8ed5b1;
}

.status-tratativas {
  background: #e7f0ff;
  color: #1b4b7a;
  border-color: #a8c6f5;
}

.status-cancelado,
.status-recusado {
  background: #fde8e8;
  color: #a63a3a;
  border-color: #f3b4b4;
}

.status-fechado,
.status-respondido {
  background: #eef1f4;
  color: #5c655f;
  border-color: #cfd6dc;
}

.panel-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.panel-modal.open {
  display: grid;
}

.panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 22, 0.55);
}

.panel-modal-card {
  position: relative;
  width: min(420px, 92vw);
  background: var(--panel-card);
  border-radius: 18px;
  border: 1px solid var(--panel-border);
  padding: 20px;
  box-shadow: var(--panel-shadow);
  z-index: 2;
  display: grid;
  gap: 14px;
}

.panel-modal-card .icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  color: var(--panel-text);
  background: #fffaf2;
  border: 1px solid var(--panel-border);
  cursor: pointer;
}

.panel-modal-card .icon-btn:hover {
  background: #fff1db;
}

.admin-hero .hero-card {
  display: grid;
  gap: 12px;
}

.admin-ads-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.admin-ads-card {
  background: var(--panel-card);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--panel-shadow);
  display: grid;
  gap: 12px;
}

.admin-ads-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.admin-ads-head h3 {
  margin: 0;
  font-size: 17px;
}

.admin-ads-meta {
  display: grid;
  gap: 8px;
}

.admin-ads-meta-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--panel-muted);
}

.admin-ads-meta-item strong {
  color: var(--panel-text);
  font-weight: 600;
}

.admin-ads-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-action-btn {
  min-width: 140px;
}

.admin-action-modal {
  width: min(520px, 92vw);
  gap: 16px;
}

.admin-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.admin-modal-meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--panel-muted);
}

.admin-modal-info {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  background: #fffaf2;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 12px;
  font-size: 12px;
  color: var(--panel-muted);
}

.admin-modal-info strong {
  display: block;
  margin-top: 4px;
  color: var(--panel-text);
  font-size: 13px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.admin-modal-reason {
  display: none;
  gap: 8px;
  font-size: 13px;
}

.admin-modal-reason.is-visible {
  display: grid;
}

.admin-modal-reason textarea {
  min-height: 90px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  padding: 10px 12px;
  resize: vertical;
}

.admin-modal-reason textarea.is-error {
  border-color: #e25555;
  box-shadow: 0 0 0 3px rgba(226, 85, 85, 0.18);
}

.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-open {
  overflow: hidden;
}

.admin-notify {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 80;
}

.admin-notify__btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(11, 61, 46, 0.2);
  background: #0b3d2e;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 30px rgba(11, 61, 46, 0.2);
  cursor: pointer;
  position: relative;
}

.admin-notify__btn svg {
  width: 22px;
  height: 22px;
}

.admin-notify__btn.is-alert {
  animation: pulse 1.6s ease infinite;
}

.admin-notify__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff6b35;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(255, 107, 53, 0.35);
}

.admin-notify__panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: min(360px, 90vw);
  background: var(--panel-card);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  box-shadow: var(--panel-shadow);
  padding: 16px;
  display: none;
}

.admin-notify__panel.is-open {
  display: grid;
  gap: 12px;
}

.admin-notify__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.admin-notify__head h4 {
  margin: 4px 0 0;
}

.admin-notify__list {
  max-height: 260px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
}

.admin-notify__item {
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 6px;
  background: #fffaf2;
}

.admin-notify__item strong {
  font-size: 14px;
}

.admin-notify__item span {
  font-size: 12px;
  color: var(--panel-muted);
}

.admin-notify__item a {
  font-size: 12px;
  color: var(--panel-primary);
  text-decoration: none;
  font-weight: 600;
}

.admin-notify__empty {
  font-size: 13px;
  color: var(--panel-muted);
  text-align: center;
}

@media (max-width: 640px) {
  .admin-notify {
    right: 14px;
    bottom: 16px;
  }

  .admin-notify__btn {
    width: 48px;
    height: 48px;
  }

  .admin-notify__panel {
    right: 0;
    bottom: 62px;
  }
}

.admin-adv-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.admin-adv-card {
  background: var(--panel-card);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--panel-shadow);
  display: grid;
  gap: 12px;
}

.admin-adv-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.admin-adv-head h3 {
  margin: 0;
  font-size: 17px;
}

.admin-adv-meta {
  display: grid;
  gap: 8px;
}

.admin-adv-meta-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--panel-muted);
}

.admin-adv-meta-item strong {
  color: var(--panel-text);
  font-weight: 600;
}

.admin-adv-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-adv-action-btn {
  min-width: 140px;
}

.chat-modal-card {
  position: relative;
  width: min(780px, 94vw);
  background: var(--panel-card);
  border-radius: 20px;
  border: 1px solid var(--panel-border);
  padding: 20px;
  box-shadow: var(--panel-shadow);
  z-index: 2;
  display: grid;
  gap: 14px;
}

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

.chat-presence {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.presence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--panel-muted);
}

.presence::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cfd6dc;
}

.presence.is-online::before {
  background: #2bb673;
}

.chat-messages {
  background: #fffaf2;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 14px;
  max-height: 360px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
}

.chat-message {
  display: grid;
  gap: 4px;
  max-width: 75%;
}

.chat-message.out {
  margin-left: auto;
  text-align: right;
}

.chat-bubble {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  background: #fff;
  font-size: 13px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.chat-message.out .chat-bubble {
  background: #eaf6f0;
  border-color: #b9e2cd;
}

.chat-meta {
  font-size: 11px;
  color: var(--panel-muted);
}

.chat-input textarea {
  width: 100%;
  border-radius: 14px;
  padding: 10px;
  border: 1px solid var(--panel-border);
  resize: vertical;
}

.chat-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.chat-locked {
  display: none;
  font-size: 12px;
  color: var(--panel-muted);
}

.chat-locked.show {
  display: inline-flex;
}

.chat-profile {
  border: 1px dashed var(--panel-border);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: #fffaf2;
}

.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  background: var(--panel-primary);
  color: #fff;
  display: none;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--panel-shadow);
  z-index: 60;
}

.chat-fab svg {
  width: 24px;
  height: 24px;
}

.chat-fab .chat-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--panel-accent);
  border: 2px solid #fff;
  display: none;
}

.chat-float {
  position: fixed;
  right: 24px;
  bottom: 90px;
  width: min(360px, 92vw);
  display: none;
  z-index: 60;
}

.chat-float.open {
  display: grid;
}

.chat-float-card {
  background: var(--panel-card);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  box-shadow: var(--panel-shadow);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 140px);
  overflow: hidden;
}

.chat-float-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-float-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  background: #fff;
  cursor: pointer;
  font-size: 18px;
}

.chat-float-card .chat-messages {
  max-height: none;
  flex: 1;
  min-height: 140px;
}

.panel-modal-head h3 {
  margin: 0 0 4px;
}

.panel-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  background: #fff;
  cursor: pointer;
  font-size: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  background: var(--panel-primary);
  color: #fff;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn.ghost {
  background: transparent;
  color: var(--panel-primary);
  border-color: var(--panel-primary);
}

.btn.btn-enter {
  background: transparent;
  border: none;
  color: var(--panel-accent);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none;
}

.btn.btn-enter:hover {
  transform: none;
  box-shadow: none;
  color: var(--panel-primary);
}

.btn.warn {
  background: #b33c3c;
}

.btn.small {
  padding: 6px 10px;
  font-size: 12px;
}

.btn.icon {
  padding: 6px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--panel-primary);
}

.btn.icon svg {
  width: 18px;
  height: 18px;
}

.action-stack {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-btn {
  position: relative;
}

.chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--panel-accent);
  border: 2px solid #fff;
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--panel-muted);
}

input,
select,
textarea {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.alert {
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff4d6;
  border: 1px solid #f5b01f;
  margin-bottom: 16px;
  font-size: 14px;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 0;
  background: radial-gradient(circle at 12% 12%, rgba(255, 107, 53, 0.12), transparent 45%),
    radial-gradient(circle at 85% 18%, rgba(11, 61, 46, 0.18), transparent 42%),
    linear-gradient(135deg, #fbf6ee 0%, #f3ead9 55%, #f7f3ec 100%);
  position: relative;
  overflow: hidden;
}

.login-wrap::before,
.login-wrap::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 65%);
  filter: blur(2px);
  z-index: 0;
}

.login-wrap::before {
  top: -80px;
  left: -60px;
}

.login-wrap::after {
  bottom: -100px;
  right: -80px;
}

.login-shell {
  width: min(1020px, 92%);
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 30px 80px rgba(11, 61, 46, 0.15);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 420px);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.login-side {
  background: linear-gradient(140deg, #0b3d2e 0%, #1b6c4c 60%, #2b8a63 100%);
  color: #fff;
  padding: 40px 36px;
  display: grid;
  align-content: center;
  gap: 16px;
}

.login-brand {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.login-title {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: 30px;
  line-height: 1.15;
}

.login-copy {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 320px;
}

.login-highlights {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.login-highlight {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
}

.login-highlight strong {
  display: block;
  font-size: 14px;
}

.login-card {
  padding: 36px;
  display: grid;
  gap: 18px;
  background: #fff;
}

.login-card-head h2 {
  margin: 8px 0 6px;
  font-family: 'Sora', sans-serif;
  font-size: 24px;
}

.login-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(255, 107, 53, 0.12);
  color: #a8431b;
}

.login-subtitle {
  margin: 0;
  color: var(--panel-muted);
  font-size: 14px;
}

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

.login-form label {
  font-size: 13px;
  color: var(--panel-muted);
}

.login-form input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: #fdfbf7;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-form select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: #fdfbf7;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-form input:focus,
.login-form select:focus {
  outline: none;
  border-color: rgba(11, 61, 46, 0.5);
  box-shadow: 0 0 0 3px rgba(11, 61, 46, 0.12);
}

.login-card .btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
}

.login-footnote {
  font-size: 12px;
  color: var(--panel-muted);
  margin: 0;
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-side {
    padding: 32px;
  }

  .login-card {
    padding: 28px;
  }
}

@media (max-width: 700px) {
  .panel-header .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-header .brand {
    font-size: 18px;
  }

  .panel-header nav {
    gap: 10px;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .panel-header nav a {
    white-space: nowrap;
  }

  .panel-card {
    padding: 16px;
    overflow-x: auto;
  }

  .table-wrap {
    border: 0;
    background: transparent;
  }

  .table {
    display: block;
    width: 100%;
    min-width: 0;
    background: transparent;
    border: 0;
  }

  .table thead {
    display: none;
  }

  .table tbody {
    display: grid;
    gap: 12px;
  }

  .table tr {
    display: block;
    background: var(--panel-card);
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    padding: 12px;
    box-shadow: var(--panel-shadow);
  }

  .table td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border: 0;
    font-size: 13px;
  }

  .table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--panel-muted);
    flex: 0 0 auto;
  }

  .table td[colspan] {
    justify-content: center;
  }

  .table td[colspan]::before {
    content: none;
  }

  .table td[data-label="Acoes"],
  .table td[data-label="Acao"] {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .table td details,
  .table td form,
  .table td .btn {
    width: 100%;
  }

  .panel-hero {
    grid-template-columns: 1fr;
    padding: 20px;
    border-radius: 16px;
  }

  .builder-grid,
  .ad-body,
  .ad-modal-grid {
    grid-template-columns: 1fr;
  }

  .builder-tip {
    max-width: 100%;
  }

  .chat-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-messages {
    max-height: 280px;
  }

  .chat-modal-card {
    width: min(96vw, 560px);
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .chat-modal-card .chat-messages {
    max-height: none;
    flex: 1;
    min-height: 180px;
  }

  .chat-fab {
    right: 16px;
    bottom: 16px;
  }

  .chat-float {
    right: 16px;
    bottom: 80px;
    width: min(340px, 94vw);
  }

  .chat-float-card {
    max-height: calc(100vh - 120px);
  }
}

@media (max-width: 480px) {
  .panel-header nav {
    font-size: 13px;
  }

  .panel-card {
    border-radius: 12px;
  }

  .chat-fab {
    width: 50px;
    height: 50px;
  }

  .chat-float {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: 72px;
  }

  .chat-float-card {
    max-height: calc(100vh - 110px);
  }
}

/* ==== Ads Premium UI ==== */
body {
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

:focus-visible {
  outline: 2px solid var(--panel-accent);
  outline-offset: 2px;
}

.ads-page {
  display: grid;
  gap: 20px;
}

.ads-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.ads-header h1 {
  margin: 0 0 6px;
  font-family: 'Sora', sans-serif;
  font-size: clamp(24px, 3.2vw, 32px);
}

.ads-header-actions {
  display: flex;
  gap: 12px;
}

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

.btn.btn-outline {
  background: transparent;
  border: 1px solid var(--panel-primary);
  color: var(--panel-primary);
}

.btn.btn-ghost {
  background: #fff;
  border: 1px solid var(--panel-border);
  color: var(--panel-primary);
}

.btn.btn-danger {
  background: #b33c3c;
  color: #fff;
}

.btn.btn-accent {
  background: var(--panel-accent);
  color: #fff;
}

.btn.btn-success {
  background: #1c7c54;
  color: #fff;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(11, 61, 46, 0.12);
}

.btn.btn-danger:hover {
  box-shadow: 0 10px 20px rgba(179, 60, 60, 0.18);
}

.btn.btn-accent:hover {
  box-shadow: 0 10px 20px rgba(255, 107, 53, 0.22);
}

.btn.btn-outline:hover,
.btn.btn-ghost:hover {
  background: rgba(11, 61, 46, 0.06);
}

.btn-icon-text i {
  font-size: 14px;
}

.btn-icon-text span {
  line-height: 1;
}

.btn.btn-highlight {
  white-space: nowrap;
}

.btn[aria-disabled="true"] {
  opacity: 0.7;
  pointer-events: none;
}

.btn .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}

.btn .btn-icon svg {
  width: 18px;
  height: 18px;
}

.ads-toolbar {
  background: var(--panel-card);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  align-items: start;
  box-shadow: var(--panel-shadow);
}

.ads-toolbar__search,
.ads-toolbar__filters,
.ads-toolbar__sort {
  display: contents;
}

.ads-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--panel-muted);
  width: 100%;
}

.ads-field__label {
  font-weight: 600;
}

.ads-input-icon {
  position: relative;
  display: block;
}

.ads-input-icon svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--panel-muted);
}

.ads-input-icon input {
  padding-left: 40px;
}

@media (min-width: 640px) {
  .ads-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ads-field--search {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .ads-toolbar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
  }

  .ads-field--search {
    grid-column: span 2;
  }
}

@media (min-width: 1200px) {
  .ads-toolbar {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .ads-field--search {
    grid-column: span 2;
  }
}

.ads-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.ad-card {
  background: var(--panel-card);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 26px rgba(11, 61, 46, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ad-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(11, 61, 46, 0.14);
}

.ad-card.is-hidden {
  display: none;
}

.ad-card__media {
  position: relative;
  height: 180px;
  background: #f1ebe2;
}

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

.ad-card__media.is-placeholder {
  display: grid;
  place-items: center;
  color: var(--panel-muted);
}

.ad-card__placeholder {
  display: grid;
  place-items: center;
  gap: 6px;
  font-size: 12px;
}

.ad-card__placeholder svg {
  width: 36px;
  height: 36px;
}

.ad-card__body {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.ad-card__title {
  margin: 0;
  font-size: 18px;
}

.ad-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--panel-muted);
}

.ad-card__price {
  font-weight: 600;
  color: var(--panel-primary);
}

.ad-card__actions {
  padding: 12px 16px 16px;
  display: grid;
  gap: 10px;
  align-items: center;
}

.ad-card__actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.ad-card__actions-row .inline-form {
  display: inline-flex;
  margin: 0;
}

.ad-card__actions-row .btn {
  flex: 0 0 auto;
  width: 92px;
  justify-content: center;
  text-align: center;
}

.ad-card__highlight {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.ad-card__highlight .btn {
  min-width: 190px;
  padding: 9px 18px;
  font-size: 12px;
  border-radius: 999px;
}

.ad-card__actions .btn {
  padding: 7px 12px;
  font-size: 12px;
  min-height: 36px;
  min-width: 92px;
  border-radius: 999px;
}

.ad-card__actions .btn-icon-text i {
  font-size: 12px;
}

.ad-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
}

.ad-chip--status {
  position: absolute;
  top: 12px;
  left: 12px;
}

.ad-chip--category {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--panel-primary);
  border-color: var(--panel-border);
}

.ad-chip--highlight {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 107, 53, 0.14);
  color: #b3411a;
  border-color: rgba(255, 107, 53, 0.35);
}

.ad-card--skeleton {
  display: none;
}

.ads-grid.is-loading .ad-card--skeleton {
  display: block;
}

.ads-grid.is-loading .ad-card[data-title] {
  display: none;
}

.skeleton-line {
  height: 12px;
  background: #ece4d8;
  border-radius: 999px;
  animation: pulse 1.4s ease infinite;
}

.skeleton-line.short {
  width: 60%;
}

.skeleton-pill {
  height: 32px;
  background: #ece4d8;
  border-radius: 999px;
  animation: pulse 1.4s ease infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ads-empty {
  display: none;
  padding: 20px 0 40px;
}

.ads-empty.is-visible,
.ads-empty[data-visible="true"] {
  display: block;
}

.ads-empty__card {
  border: 1px dashed var(--panel-border);
  border-radius: 18px;
  padding: 26px;
  text-align: center;
  background: #fffaf2;
  display: grid;
  gap: 12px;
}

.ads-empty__card h3 {
  margin: 0;
  font-size: 20px;
}

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

  .ad-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (min-width: 780px) {
  .ads-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .ads-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --panel-header-height: 64px;
  }

  .ads-header-actions,
  .ad-card__actions {
    width: 100%;
  }

  .ad-card__actions .btn {
    width: auto;
  }

  .ad-card__actions-row {
    flex-wrap: nowrap;
    justify-content: center;
  }

  .ad-card__actions-row .btn,
  .ad-card__actions-row .inline-form {
    flex: 0 0 auto;
  }

  .ad-card__actions-row .btn {
    width: 92px;
  }
}

.ads-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
}

.ads-modal.is-open {
  display: flex;
}

.ads-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 18, 0.55);
  backdrop-filter: blur(6px);
}

.ads-modal__panel {
  position: relative;
  width: min(960px, 94vw);
  max-height: 85vh;
  background: var(--panel-card);
  border-radius: 20px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 24px 60px rgba(15, 20, 18, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

.ads-modal__panel--payment {
  width: min(1100px, 96vw);
  max-height: 90vh;
}

.ads-modal__loader {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.ads-modal__loader.is-active {
  opacity: 1;
  pointer-events: all;
}

.ads-modal__loader-ring {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(11, 61, 46, 0.18);
  border-top-color: var(--panel-accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.ads-modal__header,
.ads-modal__footer {
  padding: 16px 20px;
  background: var(--panel-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.ads-modal__header {
  border-bottom: 1px solid var(--panel-border);
}

.ads-modal__footer {
  border-top: 1px solid var(--panel-border);
  gap: 12px;
  flex-wrap: wrap;
}

.ads-modal__body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 20px 20px;
}

.ads-modal__body--payment {
  padding: 0;
  background: #f6efe6;
}

.ads-payment-frame {
  width: 100%;
  height: 70vh;
  border: 0;
  display: block;
}

.ads-modal__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.ads-modal__aside {
  display: grid;
  gap: 16px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: #fff;
  cursor: pointer;
  font-size: 20px;
}

.ads-section {
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 12px;
  background: #fffaf2;
}

.ads-section__toggle {
  border: none;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: var(--panel-text);
}

.ads-section__content {
  display: grid;
  gap: 12px;
}

.ads-section.is-collapsed .ads-section__content {
  display: none;
}

.ads-section__icon {
  font-size: 18px;
}

.ads-input-prefix {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: #fff;
  padding-left: 12px;
  gap: 6px;
}

.ads-input-prefix span {
  color: var(--panel-muted);
  font-weight: 600;
}

.ads-input-prefix input {
  border: none;
  padding: 10px 12px 10px 0;
}

.ads-field__hint {
  font-size: 12px;
  color: var(--panel-muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.ads-preview {
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  display: grid;
}

.ads-preview__media {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.ads-preview__body {
  padding: 14px;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--panel-muted);
}

.ads-preview__body h4 {
  margin: 0;
  font-size: 16px;
  color: var(--panel-text);
}

.ads-preview__category {
  font-weight: 600;
  color: var(--panel-primary);
}

.ads-photo-block {
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 10px;
  background: #fffaf2;
}

.ads-photo-block h4 {
  margin: 0;
  font-size: 14px;
}

.ads-upload {
  border: 1px dashed var(--panel-border);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--panel-muted);
  cursor: pointer;
  background: #fff;
}

.ads-upload input {
  display: none;
}

.ads-photo-preview,
.ads-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
}

.ads-photo-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: #fff;
  display: grid;
  place-items: center;
}

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

.ads-photo-thumb.is-cover {
  box-shadow: 0 0 0 2px rgba(11, 61, 46, 0.45);
}

.ads-photo-remove,
.ads-photo-cover {
  position: absolute;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 6px 8px;
  font-size: 11px;
}

.ads-photo-remove {
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
}

.ads-photo-cover {
  bottom: 6px;
  left: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--panel-primary);
}

.ads-photo-empty {
  font-size: 13px;
  color: var(--panel-muted);
}

.ads-video-block {
  gap: 12px;
}

.ads-video-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.ads-video-actions {
  display: grid;
  gap: 8px;
}

.ads-video-platform-info {
  font-size: 12px;
  color: var(--panel-muted);
}

.ads-video-status {
  font-size: 12px;
  color: var(--panel-muted);
  line-height: 1.45;
}

.ads-video-status.is-error {
  color: #b33c3c;
  font-weight: 600;
}

.ads-video-status.is-success {
  color: #1c7c54;
  font-weight: 600;
}

.ads-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 140;
}

.ads-lightbox.is-open {
  display: flex;
}

.ads-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 18, 0.7);
}

.ads-lightbox__content {
  position: relative;
  z-index: 2;
  max-width: min(900px, 92vw);
  max-height: 86vh;
}

.ads-lightbox__content img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
}

.ads-lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
}

@media (min-width: 980px) {
  .ads-modal__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
}

@media (max-width: 720px) {
  .ads-modal__panel {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .ads-modal__body {
    padding: 16px;
  }

  .ads-modal__footer {
    padding: 12px 16px;
  }

  .ads-modal__panel--payment {
    height: 100dvh;
    max-height: 100dvh;
  }

  .ads-modal__body--payment {
    padding: 0;
  }

  .ads-payment-frame {
    height: 100%;
  }
}

.ads-page .btn,
.ads-modal .btn {
  min-height: 44px;
}

.ads-page input,
.ads-page select,
.ads-page textarea,
.ads-modal input,
.ads-modal select,
.ads-modal textarea {
  min-height: 44px;
}


.ads-modal__body {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ==== Premium Luxe Overrides (Anuncios) ==== */
.ads-page {
  position: relative;
}

.ads-page::before {
  content: '';
  position: absolute;
  inset: -120px -40px auto -40px;
  height: 260px;
  background: radial-gradient(circle at 18% 20%, rgba(255, 107, 53, 0.18), transparent 55%),
    radial-gradient(circle at 78% 10%, rgba(11, 61, 46, 0.24), transparent 58%),
    linear-gradient(120deg, rgba(11, 61, 46, 0.06), transparent 55%);
  z-index: -1;
}

.ads-header {
  padding: 6px 0 10px;
  gap: 20px;
}

.ads-header h1 {
  letter-spacing: -0.02em;
}

.ads-header .muted {
  max-width: 560px;
}

.ads-header-actions .btn.btn-primary {
  box-shadow: 0 14px 28px rgba(11, 61, 46, 0.18);
}

.ads-toolbar {
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 242, 0.9));
  box-shadow: 0 20px 40px rgba(11, 61, 46, 0.08);
  border: 1px solid rgba(230, 222, 208, 0.7);
}

.ads-field select,
.ads-field input {
  background: #fff;
  border: 1px solid rgba(230, 222, 208, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ads-field input:focus,
.ads-field select:focus,
.ads-field textarea:focus {
  outline: none;
  border-color: rgba(11, 61, 46, 0.55);
  box-shadow: 0 0 0 3px rgba(11, 61, 46, 0.14);
}

.ads-grid {
  gap: 20px;
}

.ad-card {
  border-radius: 22px;
  border: 1px solid rgba(230, 222, 208, 0.8);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 242, 0.92));
}

.ad-card__media {
  height: 190px;
}

.ad-card__title {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
}

.ad-card__price {
  font-size: 15px;
  font-weight: 700;
}

.ad-card__actions {
  gap: 10px;
}

.ad-chip {
  backdrop-filter: blur(6px);
}

.ad-chip--status {
  box-shadow: 0 8px 18px rgba(11, 61, 46, 0.14);
}

.ad-chip--category {
  font-weight: 700;
  border-color: rgba(230, 222, 208, 0.8);
  background: rgba(255, 255, 255, 0.96);
}

.ads-modal__panel {
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(255, 250, 242, 0.95));
  box-shadow: 0 30px 80px rgba(11, 61, 46, 0.2);
}

.ads-modal__header h2 {
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.01em;
}

.ads-section {
  border-radius: 18px;
  background: #ffffff;
}

.ads-preview {
  border-radius: 18px;
  box-shadow: 0 16px 30px rgba(11, 61, 46, 0.12);
}

.ads-preview__media {
  height: 180px;
}

.ads-photo-block {
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(11, 61, 46, 0.08);
}

.ads-upload {
  background: linear-gradient(180deg, #ffffff, #fffaf2);
}

.ads-photo-thumb {
  border-radius: 14px;
  box-shadow: 0 8px 16px rgba(11, 61, 46, 0.08);
}

.ads-lightbox__content img {
  box-shadow: 0 30px 60px rgba(11, 61, 46, 0.25);
}

@media (max-width: 720px) {
  .ads-toolbar {
    border-radius: 18px;
  }

  .ad-card {
    border-radius: 18px;
  }

  .ads-modal__panel {
    border-radius: 0;
  }
}


