.admin-body {
  background: #f6f2f9;
  font-size: 12px;
}
.admin-body h1 {
  font-size: 43px;
}
.admin-body h2 {
  font-size: 28px;
}
.admin-body .button {
  font-size: 11px;
}
.admin-field {
  display: grid;
  gap: 8px;
  font-size: 11px;
  color: #725c80;
}
.admin-field input:not([type="checkbox"]),
.admin-field textarea,
.admin-field select,
.leads-filters input,
.leads-filters select,
.status-form select {
  background: #fff;
  border: 1px solid #dfd2e8;
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--ink);
  font-size: 12px;
  width: 100%;
  min-width: 0;
}
.admin-field textarea {
  resize: vertical;
  line-height: 1.7;
}
.admin-form {
  display: grid;
  gap: 22px;
}
.admin-form > .button {
  justify-self: start;
}
.admin-check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-check input {
  accent-color: var(--purple);
  width: 17px;
  height: 17px;
}
.admin-alert {
  border: 1px solid #c9decf;
  border-radius: 10px;
  background: #eff8f1;
  color: #477153;
  padding: 14px 18px;
  margin: 0 0 24px;
  font-size: 12px;
}
.admin-alert.error {
  background: #fff1f5;
  color: #994364;
  border-color: #efcbd9;
}
.login-shell {
  min-height: 100dvh;
  display: grid;
}
.login-art {
  display: none;
}
.login-main {
  display: grid;
  place-items: center;
  padding: 50px 25px;
}
.login-card {
  width: 100%;
  max-width: 360px;
}
.login-card > .icon-box {
  margin-bottom: 32px;
  width: 50px;
  height: 50px;
}
.login-card > .eyebrow {
  font-size: 8px;
}
.login-card > h2 {
  font-size: 49px;
  margin: 12px 0 20px;
}
.login-card > p {
  font-size: 12px;
  margin-bottom: 30px;
}
.login-card .button {
  width: 100%;
  justify-content: space-between;
  margin-top: 5px;
}
.login-card > .text-link {
  margin-top: 28px;
  font-size: 10px;
}
.admin-sidebar {
  background: #fffafd;
  border-bottom: 1px solid var(--line);
  padding: 22px 20px;
}
.admin-sidebar > .brand {
  margin-bottom: 23px;
}
.admin-sidebar .brand-name {
  font-size: 28px;
}
.admin-sidebar .brand-name small {
  font-size: 6px;
  letter-spacing: 1.8px;
}
.admin-sidebar .brand-symbol {
  width: 38px;
  height: 40px;
}
.sidebar-caption {
  display: block;
  font-size: 7px;
  color: #ac96b9;
  letter-spacing: 1.7px;
  margin: 24px 10px 10px;
}
.admin-sidebar > .sidebar-caption {
  display: none;
}
.admin-sidebar nav {
  display: flex;
  overflow-x: auto;
  gap: 7px;
  padding-bottom: 5px;
}
.admin-sidebar nav > .sidebar-caption {
  display: none;
}
.admin-sidebar nav > a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  color: #80698e;
  font-size: 10px;
  white-space: nowrap;
  border-radius: 8px;
}
.admin-sidebar nav > a.active {
  background: #eee3f6;
  color: var(--purple);
  font-weight: 600;
}
.admin-sidebar nav > a:hover {
  background: #f5eff9;
}
.admin-sidebar nav > a .icon {
  width: 16px;
  height: 16px;
}
.sidebar-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}
.sidebar-bottom .text-link {
  font-size: 10px;
}
.logout-button {
  border: 0;
  background: none;
  color: #a288af;
  font-size: 10px;
  padding: 9px;
}
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 7px;
  letter-spacing: 1.4px;
  color: #a18bac;
  background: #fcf9fe;
}
.admin-user {
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: 0;
  font-size: 9px;
}
.admin-user > .icon {
  width: 15px;
  height: 15px;
  color: #956fae;
}
.admin-content {
  padding: 32px 20px;
}
.admin-heading {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.admin-heading .eyebrow {
  font-size: 7px;
  letter-spacing: 1.6px;
}
.admin-heading h1 {
  margin-top: 9px;
  font-size: 37px;
}
.admin-heading > .button {
  font-size: 9px;
  padding: 12px;
  min-height: 43px;
}
.dashboard-welcome {
  background: #eaddf3;
  border: 1px solid #dcc9e8;
  border-radius: 16px;
  padding: 29px;
  margin-bottom: 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}
.dashboard-welcome h2 {
  font-size: 39px;
  margin: 12px 0 16px;
}
.dashboard-welcome .eyebrow {
  font-size: 7px;
}
.dashboard-welcome p {
  font-size: 10px;
}
.dashboard-welcome > .icon {
  display: none;
}
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 25px;
}
.dashboard-stats article {
  padding: 21px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
}
.dashboard-stats article > .icon {
  position: absolute;
  right: 16px;
  top: 20px;
  width: 20px;
  height: 20px;
  color: #b899ca;
}
.dashboard-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
}
.dashboard-stats article > span {
  display: block;
  font-size: 9px;
  color: #97849f;
  margin-top: 11px;
}
.dashboard-panels {
  display: grid;
  gap: 22px;
}
.admin-panel {
  border: 1px solid var(--line);
  background: #fffdff;
  border-radius: 14px;
  padding: 23px;
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
.panel-heading > h2 {
  font-size: 27px;
}
.panel-heading > a,
.panel-heading > span {
  font-size: 9px;
  color: #987aab;
}
.panel-description {
  font-size: 11px;
  margin: 13px 0 25px;
}
.empty-state {
  padding: 36px 10px;
  text-align: center;
}
.empty-state > .icon {
  width: 34px;
  height: 34px;
  color: #bda2ce;
  margin-bottom: 18px;
}
.empty-state h3 {
  font-size: 25px;
  line-height: 1.2;
  margin-bottom: 13px;
}
.empty-state p {
  font-size: 10px;
}
.setup-item {
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #eee7f3;
  padding: 13px 0;
  font-size: 10px;
  color: #836391;
}
.setup-item:last-child {
  border: 0;
}
.setup-item > .icon {
  margin-left: auto;
  width: 14px;
  height: 14px;
}
.setup-dot {
  width: 23px;
  height: 23px;
  background: #f0e7f6;
  color: #9770b1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.setup-dot.done {
  background: #e6f3e9;
  color: #5b8e66;
}
.recent-lead {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.recent-lead:last-child {
  border: 0;
}
.recent-lead strong {
  font-size: 11px;
}
.recent-lead small {
  display: block;
  color: #a38eac;
  font-size: 9px;
}
.recent-lead > .status-badge {
  margin-left: auto;
}
.status-badge {
  font-size: 8px;
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  background: #ede3f5;
  color: #8b62a4;
  white-space: nowrap;
}
.status-badge.inactive {
  background: #f2eff4;
  color: #a493ad;
}
.admin-table-wrap {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
}
.admin-table th {
  color: #a18baa;
  font-size: 8px;
  letter-spacing: 0.8px;
  font-weight: 500;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}
.admin-table td {
  padding: 18px 14px;
  border-bottom: 1px solid #eee7f3;
}
.admin-table td:first-child {
  min-width: 180px;
  max-width: 420px;
  white-space: normal;
}
.admin-table td > strong {
  font-size: 12px;
  font-weight: 500;
}
.admin-table small {
  display: block;
  font-size: 9px;
  color: #a28ead;
  margin-top: 5px;
}
.admin-table tr:last-child td {
  border-bottom: 0;
}
.table-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.edit-link,
.delete-link {
  border: 0;
  background: none;
  padding: 5px 0;
  font-size: 10px;
}
.edit-link {
  color: var(--purple);
}
.delete-link {
  color: #af8193;
}
.editor-panel {
  max-width: 760px;
}
.editor-panel > .panel-heading {
  margin-bottom: 28px;
}
.editor-panel .admin-form > .button {
  margin-top: 12px;
}
.editor-actions {
  display: flex;
  gap: 22px;
  align-items: center;
  padding-top: 10px;
}
.editor-actions .text-link {
  font-size: 10px;
}
.leads-toolbar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}
.leads-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.leads-filters input {
  min-width: 180px;
  flex: 2;
}
.leads-filters select {
  flex: 1;
  min-width: 125px;
}
.leads-filters button {
  min-height: 41px;
  padding-block: 10px;
}
.leads-toolbar > form:last-child > .button {
  min-height: 41px;
  padding-block: 10px;
}
.leads-table a {
  display: block;
  font-size: 10px;
  color: #9873ad;
  margin-top: 3px;
}
.leads-table td {
  vertical-align: top;
}
.status-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.status-form select {
  font-size: 9px;
  padding: 7px;
  width: auto;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 10px;
  color: #9571a9;
  padding-top: 25px;
}
.admin-footer {
  padding-top: 35px;
  color: #b09bbc;
  font-size: 8px;
  text-align: center;
}
@media (min-width: 760px) {
  .login-shell {
    grid-template-columns: 1fr 1fr;
  }
  .login-art {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 55px;
    background: var(--purple-deep);
    position: relative;
    overflow: hidden;
    color: white;
  }
  .login-art::before {
    content: "";
    position: absolute;
    border: 1px solid #9a77b335;
    border-radius: 50%;
    width: 550px;
    height: 800px;
    top: 10%;
    left: -250px;
    transform: rotate(-30deg);
    pointer-events: none;
  }
  .login-art > * {
    position: relative;
  }
  .login-art .brand-symbol {
    border-color: #9374a8;
    color: #d9bce8;
  }
  .login-art .brand-name {
    color: #f3e7fc;
  }
  .login-art .eyebrow {
    color: #bca0ce;
    font-size: 8px;
  }
  .login-art h1 {
    font-size: 57px;
    margin: 25px 0;
  }
  .login-art h1 em {
    color: #c6a1de;
  }
  .login-art p {
    color: #b7a1c7;
    font-size: 11px;
    line-height: 1.9;
  }
  .login-signature {
    font-family: var(--serif);
    font-style: italic;
    color: #bfa2ce;
    font-size: 23px;
  }
  .admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 220px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    overflow-y: auto;
  }
  .admin-sidebar nav {
    display: block;
    overflow: visible;
  }
  .admin-sidebar nav > a {
    margin-bottom: 3px;
    font-size: 10px;
    padding: 12px;
  }
  .admin-sidebar nav > .sidebar-caption,
  .admin-sidebar > .sidebar-caption {
    display: block;
  }
  .admin-sidebar > .sidebar-caption {
    margin-top: 10px;
  }
  .sidebar-bottom {
    display: block;
    margin-top: auto;
    padding-top: 24px;
  }
  .sidebar-bottom form {
    margin-top: 10px;
  }
  .admin-main {
    margin-left: 220px;
  }
  .admin-topbar {
    padding: 23px 35px;
  }
  .admin-content {
    padding: 35px;
  }
  .admin-heading h1 {
    font-size: 42px;
  }
  .dashboard-welcome {
    padding: 35px;
  }
  .dashboard-welcome h2 {
    font-size: 46px;
  }
  .dashboard-welcome > .icon {
    display: block;
    width: 100px;
    height: 100px;
    color: #b49ac6;
    stroke-width: 0.6;
    transform: rotate(-15deg);
  }
  .dashboard-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .dashboard-stats article {
    padding: 23px 16px;
  }
  .dashboard-stats article > .icon {
    width: 16px;
    height: 16px;
    right: 10px;
  }
  .dashboard-stats article > span {
    font-size: 8px;
  }
  .admin-panel {
    padding: 28px;
  }
  .leads-toolbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  .leads-toolbar > form:last-child {
    flex-shrink: 0;
  }
  .admin-heading > .button {
    font-size: 10px;
    padding: 13px 20px;
  }
}
@media (min-width: 1200px) {
  .admin-sidebar {
    width: 245px;
    padding: 35px 23px;
  }
  .admin-main {
    margin-left: 245px;
  }
  .admin-content {
    max-width: 1400px;
    margin: auto;
    padding: 40px 48px;
  }
  .admin-topbar {
    padding-inline: 48px;
  }
  .dashboard-panels {
    grid-template-columns: 1.3fr 1fr;
  }
  .dashboard-stats {
    gap: 20px;
  }
  .dashboard-stats article {
    padding: 27px;
  }
  .dashboard-stats article > .icon {
    width: 22px;
    height: 22px;
    right: 24px;
    top: 25px;
  }
  .dashboard-stats article > span {
    font-size: 10px;
  }
  .dashboard-welcome {
    padding: 36px 42px;
  }
  .dashboard-welcome > .icon {
    margin-right: 40px;
    width: 120px;
    height: 120px;
  }
  .login-art {
    padding: 65px 75px;
  }
  .login-art h1 {
    font-size: 70px;
  }
}

/* Readable supporting labels throughout the management area. */
.sidebar-caption,
.logout-button,
.admin-topbar,
.dashboard-stats article > span,
.panel-heading > a,
.panel-heading > span,
.admin-footer,
.admin-table th,
.admin-table small,
.recent-lead small {
  color: #795e8a;
}
.status-badge {
  color: #75508b;
}
.delete-link {
  color: #985069;
}
.status-badge.inactive {
  color: #796985;
}
.leads-table a {
  color: #805894;
}

.content-tabs{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.content-tabs .active{color:#5c2c85;font-weight:700}.content-field small{color:#786b83;font-size:12px;overflow-wrap:anywhere}.content-field[hidden]{display:none}.content-field textarea{resize:vertical}

/* ── Image manager ─────────────────────────── */
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 24px; }
.image-card { background: #fff; border: 1px solid #e8e0ef; border-radius: 14px; overflow: hidden; }
.image-preview { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #f4f0f8; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-badge { position: absolute; top: 8px; right: 8px; background: #7040e9; color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.image-info { padding: 14px 16px; }
.image-info strong { display: block; font-size: 11px; color: #3d2d4e; margin-bottom: 10px; line-height: 1.4; }
.image-upload-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.file-pick { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.file-pick input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-pick span { background: #f4f0f8; border: 1px solid #c9b8e0; border-radius: 8px; color: #5a3d7a; font-size: 11px; font-weight: 600; padding: 6px 12px; white-space: nowrap; }
.file-pick:hover span { background: #ece6f7; }


/* Image Manager Styles */
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.image-card { background: #fff; border: 1px solid #e9e3ef; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 14px rgba(112,64,233,.04); transition: transform .18s ease, box-shadow .18s ease; }
.image-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(112,64,233,.08); }
.image-preview { position: relative; aspect-ratio: 16/11; overflow: hidden; background: #f6f2f9; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-badge { position: absolute; top: 10px; right: 10px; background: #7040e9; color: #fff; font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.image-badge-default { background: rgba(30, 20, 50, .6); backdrop-filter: blur(4px); }
.image-info { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; gap: 12px; }
.image-info strong { display: block; font-size: 13px; color: #221831; line-height: 1.4; font-weight: 600; }
.image-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.file-pick { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.file-pick input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-pick span { background: #7040e9; color: #fff; font-size: 12px; font-weight: 600; padding: 8px 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; transition: background .15s ease; }
.file-pick:hover span { background: #5c30cc; }
.button-small { padding: 6px 12px; font-size: 11px; }


/* ─── Galeria de Imagens do Site ─── */
.image-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.gallery-card {
  background: #ffffff;
  border: 1px solid #e7dfef;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(112, 64, 233, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(112, 64, 233, 0.10);
  border-color: #cfbee5;
}
.gallery-card.is-custom {
  border-color: #a478f7;
}
.gallery-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f5f0f9;
}
.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-card:hover .gallery-thumb {
  transform: scale(1.03);
}
.gallery-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.gallery-badges .badge {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge-custom {
  background: #7040e9;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(112, 64, 233, 0.4);
}
.badge-default {
  background: rgba(20, 10, 35, 0.65);
  color: #ffffff;
  backdrop-filter: blur(6px);
}
.gallery-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  gap: 16px;
}
.gallery-meta h3 {
  font-size: 15px;
  font-weight: 700;
  color: #211532;
  margin: 0 0 6px;
  line-height: 1.3;
}
.gallery-desc {
  font-size: 12px;
  color: #6d5b7c;
  margin: 0;
  line-height: 1.45;
}
.gallery-specs {
  background: #fbf9fd;
  border: 1px dashed #d9cae8;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.spec-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}
.spec-label {
  color: #5c4470;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.spec-label .icon {
  width: 14px;
  height: 14px;
  color: #7040e9;
}
.spec-value {
  color: #7040e9;
  font-weight: 800;
  font-size: 13px;
  background: #f0e9fa;
  padding: 3px 8px;
  border-radius: 6px;
}
.spec-sub {
  color: #79668d;
  font-weight: 500;
  font-size: 11px;
}
.gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 4px;
}
.btn-pick-file {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}
.btn-pick-file input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.btn-pick-file span {
  background: #7040e9;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(112, 64, 233, 0.25);
  transition: all 0.15s ease;
}
.btn-pick-file:hover span {
  background: #5d2cd7;
  transform: translateY(-1px);
}
.btn-reset {
  background: transparent;
  color: #7e6992;
  border: 1px solid #d4c4e5;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-reset:hover {
  background: #fee;
  color: #c33;
  border-color: #fcc;
}
