:root {
  --navy: #071b33;
  --blue: #155eef;
  --blue-dark: #0d47bd;
  --gold: #f4b942;
  --ink: #172033;
  --muted: #667085;
  --line: #e6eaf0;
  --soft: #f5f8fc;
  --white: #fff;
  --success: #087a55;
  --danger: #b42318;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(7, 27, 51, 0.1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button,
input,
textarea,
select {
  font: inherit;
}
.container {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}
.container-narrow {
  width: min(820px, calc(100% - 36px));
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: #fff;
  padding: 12px;
  z-index: 999;
}
.skip-link:focus {
  left: 8px;
}
.topbar {
  background: var(--navy);
  color: #c7d7ee;
  font-size: 0.82rem;
}
.topbar .container {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar a {
  color: #fff;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--navy);
}
.brand small {
  display: block;
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--blue), var(--navy));
  color: #fff;
  box-shadow: 0 8px 18px rgba(21, 94, 239, 0.22);
}
.brand-logo {
  width: auto;
  height: 50px;
  max-width: 210px;
  object-fit: contain;
}
.brand-logo-footer {
  filter: brightness(0) invert(1);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 23px;
  font-size: 0.92rem;
  font-weight: 700;
}
.main-nav > a:hover {
  color: var(--blue);
}
.nav-account {
  padding: 10px 17px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff !important;
}
.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 9px 13px;
}
.flash {
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid;
}
.flash-success {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #067647;
}
.flash-warning {
  background: #fffaeb;
  border-color: #fedf89;
  color: #93370d;
}
.flash-error {
  background: #fef3f2;
  border-color: #fecdca;
  color: #b42318;
}
.hero {
  overflow: hidden;
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(21, 94, 239, 0.18),
      transparent 34%
    ),
    linear-gradient(135deg, #f7faff, #eef4ff);
  padding: 74px 0 68px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 64px;
}
.hero h1,
.page-hero h1 {
  font-size: clamp(2.35rem, 5vw, 4.45rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  color: var(--navy);
  margin: 12px 0 22px;
}
.hero p {
  font-size: 1.16rem;
  color: #45546a;
  max-width: 700px;
}
.hero-kicker,
.eyebrow {
  color: var(--blue);
  font-weight: 850;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 29px 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 47px;
  padding: 0 21px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
}
.button:hover {
  transform: translateY(-1px);
}
.button-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 94, 239, 0.22);
}
.button-primary:hover {
  background: var(--blue-dark);
}
.button-secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}
.button-outline {
  background: #fff;
  color: var(--blue);
  border: 1px solid #b8ccfb;
}
.button-gold {
  background: var(--gold);
  color: #201600;
}
.trust-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: #475467;
  font-size: 0.88rem;
  font-weight: 700;
}
.hero-panel {
  background: var(--navy);
  color: #fff;
  padding: 29px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero-panel h2 {
  font-size: 1.65rem;
  line-height: 1.2;
  margin: 9px 0 19px;
}
.hero-panel > a {
  display: block;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}
.hero-panel strong,
.hero-panel small {
  display: block;
}
.hero-panel small {
  color: #b7c8dd;
  margin-top: 3px;
}
.section {
  padding: 78px 0;
}
.section-soft {
  background: var(--soft);
}
.section-dark {
  background: var(--navy);
  color: #fff;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.section-head h2,
.split h2,
.cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -0.04em;
  color: var(--navy);
  margin: 7px 0;
}
.text-link {
  color: var(--blue);
  font-weight: 800;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: 0.2s;
  min-width: 0;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-image {
  display: block;
  aspect-ratio: 16/9;
  background: #dce6f4;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  padding: 21px;
}
.card h3 {
  font-size: 1.18rem;
  line-height: 1.3;
  margin: 8px 0;
}
.card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 15px;
}
.card .text-link {
  display: block;
  margin-top: 12px;
}
.price {
  font-size: 1.12rem;
  color: var(--navy);
  display: block;
}
.eyebrow-light {
  color: #8fb5ff;
}
.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.split h2,
.cta h2 {
  color: #fff;
}
.split p {
  color: #c1cee0;
}
.mini-list {
  display: grid;
  gap: 10px;
}
.mini-list a {
  padding: 17px 19px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
}
.mini-list span,
.mini-list strong,
.mini-list small {
  display: block;
}
.mini-list span {
  font-size: 0.73rem;
  color: #9fb4ce;
  text-transform: uppercase;
}
.mini-list small {
  color: var(--gold);
  margin-top: 4px;
}
.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.listing-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.listing-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #e9f0fb, #d5e1f4);
  color: #879bb8;
  font-weight: 900;
}
.listing-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.listing-card > div:last-child {
  padding: 16px;
}
.listing-card span {
  color: var(--muted);
  font-size: 0.75rem;
}
.listing-card h2,
.listing-card h3 {
  font-size: 1rem;
  line-height: 1.25;
  margin: 6px 0 12px;
}
.listing-card strong {
  color: var(--blue);
  font-size: 1.05rem;
}
.cta {
  padding: 54px 0;
  background: linear-gradient(120deg, #155eef, #07317e);
  color: #fff;
}
.cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta p {
  margin: 0;
  color: #d7e3ff;
}
.page-hero {
  padding: 62px 0;
  background: linear-gradient(135deg, #f7faff, #edf3fd);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  margin-bottom: 14px;
}
.page-hero p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 750px;
}
.page-hero .button {
  margin-top: 15px;
}
.article-head {
  padding: 66px 0 34px;
  background: linear-gradient(180deg, #f5f8fd, #fff);
}
.article-head h1,
.detail h1 {
  font-size: clamp(2rem, 5vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  color: var(--navy);
  margin: 12px 0 18px;
}
.article-head p {
  font-size: 1.13rem;
  color: var(--muted);
}
.article-meta,
.detail-meta {
  font-size: 0.85rem;
  color: var(--muted);
}
.article-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.prose {
  padding-top: 40px;
  padding-bottom: 58px;
  font-size: 1.06rem;
}
.prose h2 {
  font-size: 1.85rem;
  line-height: 1.2;
  color: var(--navy);
  margin-top: 2em;
}
.prose h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-top: 1.7em;
}
.prose p,
.prose li {
  color: #344054;
}
.prose a {
  color: var(--blue);
  text-decoration: underline;
}
.prose img {
  border-radius: 16px;
  margin: 28px auto;
}
.prose blockquote {
  border-left: 4px solid var(--blue);
  padding: 10px 20px;
  margin: 25px 0;
  background: var(--soft);
}
.article-cta {
  margin-bottom: 70px;
  padding: 30px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.ad-wrap,
.ad-placeholder {
  width: min(1180px, calc(100% - 36px));
  margin: 25px auto;
  text-align: center;
  min-height: 100px;
}
.ad-wrap > span {
  display: block;
  color: #98a2b3;
  font-size: 0.65rem;
  text-transform: uppercase;
}
.ad-placeholder {
  display: grid;
  place-items: center;
  border: 1px dashed #cbd5e1;
  color: #94a3b8;
  background: #f8fafc;
}
.prose .managed-ad {
  width: 100%;
  margin: 32px 0;
  position: relative !important;
  inset: auto !important;
  z-index: auto !important;
  float: none !important;
  clear: both;
  transform: none !important;
  overflow: visible;
}
.prose .managed-ad .adsbygoogle {
  width: 100%;
  max-width: 100%;
  position: static !important;
}
.local-ad a,
.local-ad img {
  display: block;
  margin-inline: auto;
}
.local-ad img {
  width: auto;
  max-width: 100%;
  border-radius: 12px;
  object-fit: contain;
}
.ad-format-horizontal img {
  max-height: 260px;
}
.ad-format-retangulo img,
.ad-format-auto img {
  max-height: 520px;
}
.ad-format-vertical img {
  max-height: 720px;
}
.ad-device-mobile {
  display: none;
}
.demand-list {
  display: grid;
  gap: 14px;
}
.demand-card {
  display: flex;
  justify-content: space-between;
  gap: 35px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.demand-card:hover {
  border-color: #a9c3fb;
  box-shadow: 0 12px 30px rgba(7, 27, 51, 0.07);
}
.demand-card h2 {
  font-size: 1.25rem;
  margin: 8px 0;
}
.demand-card p {
  color: var(--muted);
  margin: 0 0 10px;
}
.demand-card > strong {
  white-space: nowrap;
  color: var(--blue);
}
.tag {
  display: inline-block;
  padding: 5px 10px;
  background: #edf3ff;
  color: var(--blue);
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
}
.detail {
  padding: 65px 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: start;
}
.detail-aside {
  position: sticky;
  top: 115px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 25px;
  box-shadow: var(--shadow);
}
.detail-aside h2 {
  font-size: 1.15rem;
  margin-top: 0;
}
.detail-price {
  display: block;
  font-size: 1.8rem;
  color: var(--blue);
  margin: 12px 0;
}
.classified-gallery {
  margin-bottom: 24px;
}
.classified-main-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: contain;
  background: #f2f4f7;
}
.classified-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.classified-thumbs button {
  overflow: hidden;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 9px;
  background: #eef2f6;
  cursor: pointer;
}
.classified-thumbs button:hover,
.classified-thumbs button.is-active {
  border-color: var(--blue);
}
.classified-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.classified-photo-manager {
  display: grid;
  gap: 10px;
}
.classified-photo-manager > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.classified-photo-manager label {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.classified-photo-manager img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.classified-photo-manager span {
  display: block;
  padding: 8px;
}
.moderation-note {
  display: block;
  margin-top: 5px;
  color: #b54708;
}
.detail-image {
  width: 100%;
  max-height: 530px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 25px;
}
.form {
  display: grid;
  gap: 17px;
}
.form label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 750;
  color: #344054;
}
.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid #cfd6e1;
  border-radius: 10px;
  padding: 11px 13px;
  background: #fff;
  color: var(--ink);
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 3px solid rgba(21, 94, 239, 0.12);
  border-color: var(--blue);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.form-box {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.form-error {
  padding: 12px 14px;
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: var(--danger);
  border-radius: 10px;
  margin-bottom: 15px;
}
.auth-section,
.form-page {
  min-height: 66vh;
  padding: 70px 0;
  background: var(--soft);
}
.auth-card {
  width: min(500px, calc(100% - 36px));
  margin: auto;
  padding: 35px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.auth-card h1,
.form-page h1 {
  color: var(--navy);
  line-height: 1.15;
}
.dashboard {
  padding: 60px 0;
  background: var(--soft);
  min-height: 70vh;
}
.dashboard-head,
.dashboard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.dashboard-head h1 {
  margin: 5px 0 20px;
}
.dashboard-actions {
  justify-content: flex-start;
  margin-bottom: 30px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.panel h2 {
  font-size: 1.2rem;
  margin-top: 0;
}
.panel-row {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.panel-row strong,
.panel-row small {
  display: block;
}
.panel-row small {
  color: var(--muted);
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 55px 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  background: #fff;
}
.site-footer {
  background: #06172d;
  color: #c3d0e0;
  padding: 55px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 1fr;
  gap: 60px;
}
.brand-light {
  color: #fff;
}
.site-footer h2 {
  color: #fff;
  font-size: 1rem;
}
.site-footer a:not(.brand) {
  display: block;
  color: #d9e4f2;
  margin: 7px 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 35px;
  padding-top: 20px;
  font-size: 0.8rem;
}
.footer-bottom a {
  display: inline !important;
  margin-left: 12px !important;
}
.admin-body {
  background: var(--soft);
}
.admin-shell {
  display: grid;
  grid-template-columns: 245px 1fr;
  min-height: 100vh;
}
.admin-nav {
  background: var(--navy);
  color: #fff;
  padding: 25px 18px;
}
.admin-nav .brand {
  color: #fff;
  margin-bottom: 30px;
}
.admin-nav > a {
  display: block;
  padding: 11px 13px;
  border-radius: 9px;
  color: #c2d0e1;
}
.admin-nav > a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.admin-main {
  padding: 35px;
}
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.stat strong {
  font-size: 1.8rem;
  display: block;
  color: var(--navy);
}
.table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.88rem;
}
.table th,
.table td {
  padding: 13px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.table th {
  background: #f8fafc;
}
.status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2f6;
  font-size: 0.7rem;
  font-weight: 800;
}
.table-subline {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.table-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.table-actions form {
  margin: 0;
}
.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
}
.ad-stats {
  margin-bottom: 22px;
}
.ad-manager-form h2 {
  margin: 25px 0 2px;
}
.smtp-test {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}
.moderation-actions,
.moderation-form > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.moderation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.moderation-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.moderation-card > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 11px;
  background: #eef2f6;
}
.moderation-card h3 {
  margin: 10px 0 4px;
}
.moderation-card p {
  margin: 6px 0;
}
.moderation-form {
  margin-top: 14px;
}
.auth-forgot {
  justify-self: start;
  margin-top: -6px;
}
.seo-preview {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.seo-preview span {
  display: block;
  color: #188038;
  font-size: 0.88rem;
}
.seo-preview strong {
  display: block;
  margin: 5px 0;
  color: #1a0dab;
  font-size: 1.25rem;
  font-weight: 500;
}
.seo-preview p {
  max-width: 680px;
  margin: 0;
  color: #4d5156;
}
.seo-image-preview img {
  max-width: 420px;
  aspect-ratio: 1200/630;
  object-fit: cover;
}
.ad-runtime,
.ad-google-warning {
  padding: 13px 16px;
  border: 1px solid #fedf89;
  border-radius: 12px;
  background: #fffaeb;
  color: #7a2e0e;
}
.ad-runtime {
  max-width: 900px;
  margin: 0 0 18px;
}
.ad-runtime-ativo {
  border-color: #abefc6;
  background: #ecfdf3;
  color: #067647;
}
.ad-runtime-inativo,
.ad-runtime-encerrado {
  border-color: #d0d5dd;
  background: #f2f4f7;
  color: #475467;
}
.ad-google-warning {
  margin: 12px 0 18px;
}
.datetime-action {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.datetime-action input {
  min-width: 0;
}
.button-small {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  white-space: nowrap;
}
.status-agendado,
.status-encerrado,
.status-inativo {
  background: #f2f4f7;
  color: #475467;
}
.ad-fields-local,
.ad-fields-google {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}
.ad-fields-local h2,
.ad-fields-google h2 {
  margin-top: 0;
}
.ad-image-preview {
  display: block;
  width: min(520px, 100%);
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.ad-image-preview img {
  max-height: 260px;
  margin-inline: auto;
  object-fit: contain;
}
.admin-form {
  max-width: 900px;
}
.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #06172d, #123b7b);
}
.logo-preview {
  display: grid;
  place-items: center;
  width: min(420px, 100%);
  min-height: 130px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fafc, #e8eef7);
}
.logo-preview img {
  max-width: 320px;
  max-height: 100px;
}
.media-upload {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr auto;
  align-items: end;
  gap: 15px;
  margin-bottom: 22px;
}
.media-search {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}
.media-search input {
  flex: 1;
  border: 1px solid #cfd6e1;
  border-radius: 10px;
  padding: 11px 13px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
}
.media-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.media-preview {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: #edf1f6;
  cursor: pointer;
}
.media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-info {
  padding: 12px;
}
.media-info strong,
.media-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-info small {
  margin: 3px 0 9px;
  color: var(--muted);
}
.media-info .button {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
}
.media-info details {
  margin-top: 8px;
}
.media-info summary {
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
}
.media-edit {
  margin-top: 12px;
}
.media-delete {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--danger);
  cursor: pointer;
}
.media-embed {
  background: var(--soft);
}
.media-embed .admin-main {
  padding: 22px;
}
.editor-shell {
  overflow: hidden;
  border: 1px solid #cfd6e1;
  border-radius: 12px;
  background: #fff;
}
.editor-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 9px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}
.editor-toolbar button {
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid #d8dee8;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.editor-toolbar button:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.visual-editor,
.source-editor {
  width: 100%;
  min-height: 520px;
  padding: 25px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font:
    1rem/1.7 ui-sans-serif,
    system-ui,
    sans-serif;
}
.visual-editor h2,
.visual-editor h3 {
  color: var(--navy);
}
.visual-editor img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.visual-editor figure {
  margin: 25px 0;
}
.visual-editor figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}
.source-editor {
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.88rem;
}
.cover-picker {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}
.cover-picker-head strong,
.cover-picker-head small {
  display: block;
}
.cover-picker-head small,
.cover-file-name {
  margin-top: 4px;
  color: var(--muted);
}
.cover-preview {
  display: grid;
  place-items: center;
  width: min(620px, 100%);
  min-height: 190px;
  overflow: hidden;
  border: 1px dashed #b8c2d1;
  border-radius: 12px;
  background: #eef2f6;
  color: var(--muted);
}
.cover-preview img {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  background: #fff;
}
.cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cover-upload {
  position: relative;
  cursor: pointer;
}
.cover-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.button-quiet {
  border: 0;
  background: transparent;
  color: var(--danger);
}
.cover-actions [hidden] {
  display: none;
}
.media-modal[hidden] {
  display: none;
}
.media-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 15, 31, 0.76);
}
.media-modal-dialog {
  position: relative;
  width: min(1200px, 96vw);
  height: min(820px, 92vh);
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}
.media-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.media-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 4;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-open {
  overflow: hidden;
}
.update-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 22px;
  align-items: start;
}
.css-admin-head {
  gap: 24px;
}
.css-admin-head p {
  margin: 6px 0 0;
  color: var(--muted);
}
.css-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}
.css-editor-form {
  max-width: none;
  padding: 0;
  overflow: hidden;
}
.css-editor-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 17px;
  background: #111827;
  color: #fff;
}
.css-editor-topbar span {
  color: #a7b4c8;
  font-size: 0.78rem;
}
.css-code-editor {
  display: block;
  width: 100%;
  min-height: 610px;
  resize: vertical;
  border: 0;
  border-radius: 0;
  padding: 20px;
  background: #0b1220;
  color: #d7e4f5;
  caret-color: #fff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.65;
  tab-size: 2;
  outline: 0;
}
.css-options {
  display: grid;
  gap: 9px;
  padding: 17px 20px 5px;
}
.check-line {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 9px;
  font-weight: 650;
}
.check-line input {
  width: 18px;
  height: 18px;
}
.css-form-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 20px 20px;
}
.css-form-actions small,
.css-help-card small {
  color: var(--muted);
}
.css-sidebar {
  display: grid;
  gap: 16px;
}
.css-help-card h2 {
  margin-top: 0;
  font-size: 1.05rem;
}
.css-help-card p {
  color: var(--muted);
  font-size: 0.9rem;
}
.css-snippet {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fafc;
  color: var(--navy);
  text-align: left;
  font-weight: 750;
  cursor: pointer;
}
.css-snippet:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.css-safe-link {
  display: block;
  margin-bottom: 14px;
  word-break: break-word;
}
.visual-admin-head p {
  margin: 6px 0 0;
  color: var(--muted);
}
.visual-customizer {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(7, 27, 51, 0.07);
  overflow: hidden;
}
.customizer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}
.customizer-tabs,
.preview-devices {
  display: flex;
  gap: 6px;
}
.customizer-tabs button,
.preview-devices button {
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 9px 13px;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
  cursor: pointer;
}
.customizer-tabs button.is-active,
.preview-devices button.is-active {
  border-color: #c9d8fb;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 4px 12px rgba(7, 27, 51, 0.06);
}
.visual-customizer-grid {
  display: grid;
  grid-template-columns: minmax(330px, 410px) minmax(0, 1fr);
  min-height: 740px;
}
.customizer-controls {
  max-height: 790px;
  padding: 20px;
  border-right: 1px solid var(--line);
  overflow: auto;
}
.control-group {
  display: grid;
  gap: 14px;
  padding: 0 0 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.control-group:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}
.control-group h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--navy);
}
.control-group > label,
.color-control-grid > label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 0.83rem;
  font-weight: 750;
}
.control-group select,
.color-control-grid input[data-color-text] {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #ccd5e2;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}
.color-control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.color-control-grid label > span {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 7px;
}
.color-control-grid input[type="color"] {
  width: 44px;
  height: 42px;
  padding: 3px;
  border: 1px solid #ccd5e2;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}
.range-control {
  grid-template-columns: 1fr auto;
  align-items: center;
}
.range-control output {
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.range-control input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--blue);
}
.customizer-advanced .css-code-editor {
  min-height: 620px;
}
.customizer-advanced > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.83rem;
}
.live-preview-card {
  min-width: 0;
  padding: 18px;
  background: #e9eef6;
}
.preview-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 12px;
}
.preview-label span {
  color: var(--muted);
  font-size: 0.8rem;
}
.preview-frame-wrap {
  width: 100%;
  height: 690px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #c8d2e0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 15px 38px rgba(7, 27, 51, 0.12);
  transition: width 0.25s;
}
.preview-frame-wrap.is-mobile {
  width: min(390px, 100%);
}
.preview-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.customizer-savebar {
  position: sticky;
  bottom: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}
.customizer-savebar > div:first-child {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.savebar-actions,
.customizer-footer-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.customizer-footer-tools {
  margin-top: 18px;
}
.search-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 10px;
  margin: 24px 0 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(7, 27, 51, 0.06);
}
.search-bar input {
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 9px 12px;
  outline: 0;
}
.search-bar .button {
  margin: 0;
}
.page-hero .search-bar + .button {
  margin-top: 12px;
}
@media (max-width: 980px) {
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 112px;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav.is-open {
    display: flex;
  }
  .menu-button {
    display: block;
  }
  .hero-grid,
  .split,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .hero-panel {
    max-width: 620px;
  }
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-aside {
    position: static;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-nav {
    position: static;
  }
  .admin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .media-upload,
  .update-grid,
  .css-panel-grid,
  .visual-customizer-grid {
    grid-template-columns: 1fr;
  }
  .moderation-grid {
    grid-template-columns: 1fr;
  }
  .customizer-controls {
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .live-preview-card {
    min-height: 650px;
  }
  .preview-frame-wrap {
    height: 610px;
  }
  .search-bar {
    grid-template-columns: 1fr 1fr;
  }
  .search-bar input {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 640px) {
  .ad-device-desktop {
    display: none;
  }
  .ad-device-mobile {
    display: block;
  }
  .topbar span {
    display: none;
  }
  .topbar .container {
    justify-content: center;
  }
  .nav-wrap {
    min-height: 70px;
  }
  .main-nav {
    top: 104px;
  }
  .hero {
    padding: 48px 0;
  }
  .hero-grid {
    gap: 30px;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .section {
    padding: 54px 0;
  }
  .section-head,
  .cta .container {
    align-items: flex-start;
    flex-direction: column;
  }
  .card-grid,
  .listing-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .demand-card {
    flex-direction: column;
    gap: 8px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .dashboard-head {
    align-items: flex-start;
  }
  .admin-main {
    padding: 20px;
  }
  .css-admin-head,
  .css-form-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .visual-admin-head,
  .customizer-toolbar,
  .customizer-savebar,
  .customizer-footer-tools {
    align-items: stretch;
    flex-direction: column;
  }
  .customizer-savebar > div:first-child,
  .savebar-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .color-control-grid {
    grid-template-columns: 1fr;
  }
  .preview-devices button,
  .customizer-tabs button {
    flex: 1;
  }
  .css-code-editor {
    min-height: 480px;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .search-bar {
    grid-template-columns: 1fr;
  }
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .classified-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .classified-photo-manager > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .moderation-card,
  .smtp-test {
    grid-template-columns: 1fr;
  }
  .editor-toolbar {
    position: static;
  }
  .visual-editor,
  .source-editor {
    min-height: 420px;
    padding: 16px;
  }
}
