:root {
  --ac-blue: #1c2f5a;
  --ac-blue-2: #243a6b;
  --ac-orange: #f97316;
  --ac-orange-dark: #ea580c;
  --ac-cream: #faf8f5;
  --ac-text: #0f172a;
  --ac-muted: #64748b;
  --ac-line: #e2e8f0;
  --ac-radius: 12px;
  --ac-shadow: 0 10px 30px rgba(28, 47, 90, 0.08);
  --ac-font: "DM Sans", system-ui, -apple-system, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

.ac-body {
  font-family: var(--ac-font);
  color: var(--ac-text);
  background: var(--ac-cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ac-main {
  flex: 1;
}

.ac-container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.ac-container--wide {
  width: min(100%, 100% - 1.5rem);
  max-width: none;
}

.ac-narrow {
  width: min(520px, 100% - 2rem);
}

.ac-header {
  background: var(--ac-blue);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--ac-shadow);
}

.ac-header__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.65rem 0;
  min-height: calc(var(--ac-logo-h, 64px) + 1.1rem);
}

.ac-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.25rem;
  flex: 0 1 auto;
  min-width: 0;
}

.ac-nav--left {
  flex-wrap: wrap;
}

.ac-header__subnav {
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0;
}

.ac-nav--below {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.ac-nav-below__item {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
}

.ac-nav-below__item:hover,
.ac-nav-below__item.is-active {
  background: rgba(255, 255, 255, 0.1);
}

.ac-nav-below__item.is-active {
  color: #fdba74;
}

.ac-nav-below__item--home {
  gap: 0.4rem;
}

.ac-nav-below__icon {
  flex-shrink: 0;
  opacity: 0.95;
}

.ac-nav-below__sep {
  display: inline-block;
  align-self: center;
  height: 1.15rem;
  margin: 0 0.15rem;
  border-left: 1px dashed rgba(255, 255, 255, 0.45);
}

.ac-page-content {
  margin-bottom: 2rem;
}

.ac-page-content .ac-prose,
.ac-prose {
  line-height: 1.65;
  font-size: 1rem;
  color: var(--ac-text);
}

.ac-prose h2,
.ac-prose h3,
.ac-prose h4 {
  color: var(--ac-blue);
  margin: 1.25rem 0 0.65rem;
  line-height: 1.3;
}

.ac-prose h2 {
  font-size: 1.35rem;
}

.ac-prose h3 {
  font-size: 1.15rem;
}

.ac-prose p {
  margin: 0 0 0.85rem;
}

.ac-prose ul,
.ac-prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.ac-prose li {
  margin-bottom: 0.35rem;
}

.ac-prose a {
  color: var(--ac-blue);
  text-decoration: underline;
}

.ac-prose blockquote {
  margin: 0 0 1rem;
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 3px solid var(--ac-orange);
  color: var(--ac-muted);
}

.ac-field--editor .tox-tinymce {
  border-radius: 10px;
  border-color: var(--ac-line) !important;
}

.ac-editor-source {
  min-height: 320px;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}

.ac-footer__col {
  flex: 1 1 240px;
}

.ac-footer__copy {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1.25rem;
  padding: 0.75rem 0 0;
  text-align: center;
}

.ac-footer__copy p {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.ac-footer-link-row {
  margin-bottom: 0.5rem;
}

.ac-header__banner {
  flex: 1 1 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 900px) {
  .ac-header__banner {
    flex: 1 1 320px;
    max-width: 760px;
  }
}

@media (max-width: 640px) {
  .ac-header__banner {
    flex: 1 1 100%;
    order: 10;
  }
}

.ac-logo {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.35rem 0.85rem;
  border-radius: 12px;
  flex-shrink: 0;
}

.ac-logo__img {
  display: block;
  height: var(--ac-logo-h, 64px);
  width: auto;
  max-width: min(320px, 55vw);
  object-fit: contain;
}

.ac-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ac-nav > a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
}

.ac-nav > a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ac-nav__cta {
  background: var(--ac-orange);
  color: #fff !important;
  padding: 0.45rem 0.85rem !important;
}

.ac-nav__cta:hover {
  background: var(--ac-orange-dark);
}

.ac-nav__form {
  display: inline;
  margin: 0;
}

.ac-nav__linkbtn {
  background: transparent;
  border: 0;
  color: #e2e8f0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
}

.ac-nav__linkbtn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ac-flash {
  margin: 0.75rem auto;
  padding: 0.75rem 1rem;
  border-radius: var(--ac-radius);
  font-weight: 600;
}

.ac-flash--ok {
  background: #dcfce7;
  color: #166534;
}

.ac-flash--err {
  background: #fee2e2;
  color: #991b1b;
}

.ac-flash--warn {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.ac-offline-banner__link {
  margin-left: 0.5rem;
  color: inherit;
  font-weight: 700;
}

.ac-hero {
  background: linear-gradient(135deg, var(--ac-blue) 0%, var(--ac-blue-2) 55%, #0f172a 100%);
  color: #fff;
  padding: 2.5rem 0 3rem;
}

.ac-hero--compact {
  padding: 2rem 0;
}

.ac-hero__grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .ac-hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.ac-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fdba74;
  margin: 0 0 0.5rem;
}

.ac-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.ac-lead {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin: 0 0 1.25rem;
  max-width: 36ch;
}

.ac-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ac-hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.25rem;
  backdrop-filter: blur(8px);
}

.ac-hero-card__title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.ac-quicksearch {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ac-quicksearch__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.ac-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ac-field span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
}

.ac-quicksearch .ac-field span {
  color: #e2e8f0;
}

.ac-field input,
.ac-field select,
.ac-field textarea {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.55rem 0.65rem;
  font: inherit;
  background: rgba(15, 23, 42, 0.35);
  color: #fff;
}

.ac-form .ac-field span {
  color: var(--ac-text);
}

.ac-form .ac-field input,
.ac-form .ac-field select,
.ac-form .ac-field textarea {
  background: #fff;
  color: var(--ac-text);
  border-color: var(--ac-line);
}

/* Form dentro hero (login, registrazione, account in attesa) */
.ac-hero .ac-form .ac-field span {
  color: #e2e8f0;
}

.ac-hero .ac-form .ac-field input,
.ac-hero .ac-form .ac-field select,
.ac-hero .ac-form .ac-field textarea {
  background: #fff;
  color: var(--ac-text);
  border-color: var(--ac-line);
}

.ac-hero .ac-muted {
  color: #cbd5e1;
}

.ac-hero .ac-muted a {
  color: #fdba74;
  font-weight: 600;
}

.ac-hero .ac-fieldset {
  border-color: rgba(255, 255, 255, 0.28);
}

.ac-hero .ac-fieldset legend,
.ac-hero .ac-radio {
  color: #e2e8f0;
}

.ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 0;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.ac-btn--primary {
  background: var(--ac-orange);
  color: #fff;
}

.ac-btn--primary:hover {
  background: var(--ac-orange-dark);
}

.ac-btn--secondary {
  background: var(--ac-blue);
  color: #fff;
}

.ac-btn--secondary:hover {
  background: #152447;
}

.ac-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.ac-form .ac-btn--ghost,
.ac-table__actions .ac-btn--ghost,
.ac-filters .ac-btn--ghost {
  color: var(--ac-blue);
  border-color: var(--ac-line);
  background: #fff;
}

.ac-table__actions .ac-btn--ghost:hover,
.ac-filters .ac-btn--ghost:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.ac-btn--block {
  width: 100%;
}

.ac-btn--sm {
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
}

.ac-section {
  padding: 2.5rem 0;
}

.ac-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.ac-section__head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.ac-link {
  color: var(--ac-orange-dark);
  font-weight: 700;
  text-decoration: none;
}

.ac-grid {
  display: grid;
  gap: 1rem;
}

.ac-grid--cards {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.ac-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--ac-shadow);
  display: flex;
  flex-direction: column;
}

.ac-card__media img,
.ac-card__media .ac-card__ph {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  display: block;
}

.ac-card__ph {
  background: linear-gradient(120deg, #e2e8f0, #f1f5f9);
}

.ac-card__body {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ac-card__meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ac-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ac-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.ac-card__title a {
  color: inherit;
  text-decoration: none;
}

.ac-card__title a:hover {
  color: var(--ac-orange-dark);
}

.ac-card__price {
  margin: 0.35rem 0 0;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ac-blue);
}

.ac-card__sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ac-muted);
}

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

.ac-small {
  font-size: 0.85rem;
}

.ac-center {
  text-align: center;
}

.ac-toolbar {
  background: #fff;
  border-bottom: 1px solid var(--ac-line);
  padding: 1.25rem 0;
}

.ac-toolbar__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
}

.ac-toolbar__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  width: 100%;
}

.ac-toolbar__head > h1,
.ac-toolbar__stack > h1 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--ac-blue);
  flex: 1 1 auto;
  min-width: 0;
}

.ac-toolbar__stack > .ac-subnav {
  width: 100%;
}

.ac-toolbar__nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

/* compatibilità pagine non ancora migrate */
.ac-toolbar__row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
}

.ac-toolbar__row > h1 {
  margin: 0;
  font-size: 1.35rem;
  width: 100%;
  line-height: 1.25;
}

.ac-toolbar__row > .ac-subnav,
.ac-toolbar__actions {
  width: 100%;
}

.ac-badge {
  background: #fff7ed;
  color: #9a3412;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.ac-search-layout {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 0 3rem;
}

@media (min-width: 960px) {
  .ac-search-layout {
    grid-template-columns: minmax(280px, 320px) 1fr;
    align-items: start;
  }
}

.ac-filters {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--ac-shadow);
  border: 1px solid var(--ac-line);
}

.ac-filters h2 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--ac-blue);
}

.ac-filters__form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ac-filters .ac-field span {
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
}

.ac-filters .ac-field input,
.ac-filters .ac-field select,
.ac-filters .ac-field textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: #fff;
  color: var(--ac-text);
  border: 1px solid var(--ac-line);
  padding: 0.55rem 0.65rem;
}

.ac-filters .ac-field input:focus,
.ac-filters .ac-field select:focus {
  outline: none;
  border-color: var(--ac-orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.ac-filters__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.ac-filters__pair .ac-field {
  min-width: 0;
}

@media (max-width: 959px) {
  .ac-filters__pair {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .ac-filters__pair {
    grid-template-columns: 1fr;
  }
}

.ac-filters .ac-btn--ghost {
  background: #fff;
}

.ac-filters .ac-btn--block + .ac-btn--block {
  margin-top: 0.25rem;
}

.ac-results__empty {
  grid-column: 1 / -1;
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--ac-muted);
  box-shadow: var(--ac-shadow);
  border: 1px dashed var(--ac-line);
  font-size: 1rem;
}

.ac-footer {
  background: var(--ac-blue);
  color: #cbd5e1;
  padding: 2rem 0;
  margin-top: 0;
}

.ac-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.ac-footer strong {
  color: #fff;
}

.ac-footer__tag {
  margin: 0.35rem 0 0;
  max-width: 40ch;
}

.ac-footer__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.ac-footer a {
  color: #fdba74;
  font-weight: 600;
  text-decoration: none;
}

.ac-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ac-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.ac-req {
  color: var(--ac-orange-dark);
  font-style: normal;
}

.ac-contact-form {
  max-width: 36rem;
}

.ac-form--inline {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem;
}

.ac-fieldset {
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius);
  padding: 0.75rem 1rem;
}

.ac-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 1rem;
  font-weight: 600;
}

.ac-detail-head {
  background: #fff;
  border-bottom: 1px solid var(--ac-line);
  padding: 1.5rem 0;
}

.ac-detail-head__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.ac-detail-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ac-orange-dark);
  margin: 0.5rem 0 0;
}

.ac-detail {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 0 3rem;
}

@media (min-width: 900px) {
  .ac-detail {
    grid-template-columns: 1.4fr 0.9fr;
  }

  .ac-detail__desc {
    grid-column: 1 / -1;
  }
}

.ac-gallery__main img {
  width: 100%;
  border-radius: 16px;
  max-height: 420px;
  object-fit: cover;
  background: #e2e8f0;
}

.ac-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.ac-thumb {
  border: 2px solid transparent;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
}

.ac-thumb.is-active {
  border-color: var(--ac-orange);
}

.ac-thumb img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  display: block;
}

.ac-gallery__empty {
  background: #e2e8f0;
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  color: var(--ac-muted);
}

.ac-panel {
  background: #fff;
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  box-shadow: var(--ac-shadow);
}

.ac-panel--accent {
  border: 2px solid rgba(249, 115, 22, 0.35);
}

.ac-panel--nested {
  background: var(--ac-bg, #f8fafc);
  box-shadow: none;
  border: 1px solid var(--ac-border, #e2e8f0);
}

.ac-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.ac-dl {
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.ac-dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.5rem;
  font-size: 0.92rem;
}

.ac-dl dt {
  color: var(--ac-muted);
  font-weight: 600;
}

.ac-dl dd {
  margin: 0;
}

.ac-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #e2e8f0;
}

.ac-pill--ok {
  background: #dcfce7;
  color: #166534;
}

.ac-pill--sold {
  background: #ffedd5;
  color: #9a3412;
}

.ac-pill--off {
  background: #e2e8f0;
  color: #475569;
}

.ac-pill--sm {
  font-size: 0.75rem;
}

.ac-pill--xs {
  font-size: 0.68rem;
  padding: 2px 6px;
}

.ac-pill--warn {
  background: #fef9c3;
  color: #854d0e;
}

.ac-pill--renewed {
  background: #dbeafe;
  color: #1e40af;
}

.ac-pill--expired {
  background: #fce7f3;
  color: #9d174d;
}

.ac-pill--mt-xs {
  margin-top: 2px;
}

.ac-mt-xs {
  margin-top: 4px;
}

.ac-table-row--faded td {
  opacity: 0.55;
}

.ac-text--err {
  color: #dc2626;
  font-weight: 600;
}

.ac-text--warn {
  color: #d97706;
  font-weight: 600;
}

.ac-select--sm {
  font-size: 0.8rem;
  padding: 3px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.ac-share {
  margin: 0;
}

.ac-share__label {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ac-muted, #64748b);
}

.ac-share__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ac-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border: 1.5px solid currentColor;
  border-radius: 8px;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.ac-share__btn:hover {
  opacity: 0.88;
  text-decoration: none;
}

.ac-share__icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.ac-share__btn--facebook {
  color: #111827;
}

.ac-share__btn--instagram {
  color: #9b1b30;
}

.ac-share__btn--whatsapp {
  color: #1a7f37;
}

.ac-share__btn--telegram {
  color: #229ed9;
}

.ac-share__toast {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  color: var(--ac-primary, #1e3a5f);
}

.ac-panel--share {
  padding: 1rem 1.15rem;
}

@media (max-width: 480px) {
  .ac-share__buttons {
    flex-direction: column;
  }

  .ac-share__btn {
    justify-content: center;
    width: 100%;
  }
}

.ac-detail-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ac-phone a {
  color: var(--ac-blue);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
}

.ac-dash .ac-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.ac-kpi {
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.15rem;
  box-shadow: var(--ac-shadow);
  border-top: 4px solid var(--ac-blue);
}

.ac-kpi--orange {
  border-top-color: var(--ac-orange);
}

.ac-kpi--muted {
  border-top-color: #94a3b8;
}

.ac-kpi__n {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ac-blue);
}

.ac-kpi__l {
  font-size: 0.85rem;
  color: var(--ac-muted);
  font-weight: 600;
}

.ac-kpis--5 {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.ac-kpis--4 {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.ac-kpis--3 {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.ac-pill--xs {
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  margin-right: 0.2rem;
}

.ac-filters__pair--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .ac-filters__pair--3 {
    grid-template-columns: 1fr;
  }
}

.ac-charts--brand .ac-panel {
  max-width: 100%;
}

.ac-charts {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 900px) {
  .ac-charts {
    grid-template-columns: 1fr 1fr;
  }

  .ac-charts--2 {
    grid-template-columns: 1fr 1fr;
  }

  .ac-charts--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ac-table--compact td,
.ac-table--compact th {
  font-size: 0.85rem;
  padding: 0.5rem 0.65rem;
}

.ac-code {
  font-size: 0.8rem;
  background: #f1f5f9;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.ac-code--path {
  display: block;
  max-width: 100%;
  white-space: normal;
  word-break: break-all;
  overflow-wrap: anywhere;
  line-height: 1.35;
  padding: 0.2rem 0.4rem;
}

.ac-cell-wrap {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ac-stats-geo {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .ac-stats-geo {
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
    align-items: stretch;
  }
}

.ac-stats-geo__map,
.ac-stats-geo__countries {
  margin-bottom: 0;
}

.ac-stats-geo__countries h2 {
  margin-bottom: 0.75rem;
}

.ac-map-scale {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--ac-muted);
}

.ac-map-scale__bar {
  flex: 1;
  max-width: 140px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #dbeafe, #1c2f5a);
}

.ac-top-countries {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ac-top-countries__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

a.ac-top-countries__row:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

a.ac-top-countries__row.is-active {
  background: #eff6ff;
  border-color: #93c5fd;
}

.ac-stats-country-filter {
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
}

.ac-world-map .jvm-region {
  cursor: pointer;
}

.ac-top-countries__label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.ac-top-countries__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ac-text);
  line-height: 1.25;
}

.ac-top-countries__code {
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--ac-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ac-top-countries__badge {
  display: inline-block;
  min-width: 2.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #dbeafe;
  color: var(--ac-blue);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.ac-panel--table h2 {
  margin-bottom: 0.75rem;
}

.ac-table-wrap--visits-detail {
  overflow-x: hidden;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  margin-bottom: 0;
}

.ac-table--visit-detail {
  table-layout: fixed;
  font-size: 0.78rem;
}

.ac-table--visit-detail th,
.ac-table--visit-detail td {
  vertical-align: top;
  padding: 0.55rem 0.5rem;
  line-height: 1.35;
}

.ac-table--visit-detail th {
  font-size: 0.7rem;
  white-space: nowrap;
}

.ac-visit-when {
  white-space: nowrap;
  width: 10.5rem;
  color: var(--ac-muted);
}

.ac-visit-ip {
  width: 9rem;
  color: #db2777;
  font-weight: 600;
  word-break: break-all;
}

.ac-visit-geo {
  width: 17%;
  min-width: 7.5rem;
}

.ac-visit-device {
  width: 5.5rem;
  white-space: nowrap;
}

.ac-visit-os {
  width: 8%;
  min-width: 5.5rem;
  word-break: break-word;
}

.ac-visit-browser {
  width: 9%;
  min-width: 6rem;
  word-break: break-word;
}

.ac-visit-referrer {
  width: 14%;
  min-width: 5rem;
}

.ac-visit-url {
  width: auto;
  min-width: 8rem;
}

.ac-visit-stack {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ac-visit-stack strong {
  font-weight: 600;
  color: var(--ac-ink);
}

.ac-visit-link {
  color: var(--ac-blue);
  text-decoration: none;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.ac-visit-link:hover {
  text-decoration: underline;
}

.ac-visit-route {
  font-size: 0.72rem;
  color: #db2777;
  background: transparent;
  padding: 0;
  word-break: break-all;
}

.ac-panel--map h2 {
  margin-bottom: 0.35rem;
}

.ac-world-map {
  width: 100%;
  height: 340px;
  min-height: 280px;
}

.ac-world-map--sm {
  height: 200px;
  min-height: 180px;
}

.ac-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--ac-muted);
}

.ac-map-legend__code {
  display: inline-block;
  min-width: 1.75rem;
  font-weight: 700;
  color: var(--ac-blue);
}

.ac-charts--compact {
  gap: 0.75rem;
}

.ac-panel--chart-sm {
  padding: 0.85rem 1rem;
}

.ac-panel--chart-sm h2 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.ac-chart-wrap {
  position: relative;
  height: 150px;
}

.ac-chart-wrap canvas {
  max-height: 150px !important;
}

@media (min-width: 900px) {
  .ac-charts--compact.ac-charts--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ac-table-wrap {
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--ac-shadow);
  margin-bottom: 2rem;
}

.ac-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.ac-table th,
.ac-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--ac-line);
  text-align: left;
  vertical-align: middle;
}

.ac-table th {
  background: #f8fafc;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ac-muted);
}

.ac-table--center th,
.ac-table--center td {
  text-align: center;
  vertical-align: middle;
}

.ac-table--center .ac-table__actions {
  justify-content: center;
}

.ac-table__title {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.ac-table__thumb {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
}

.ac-table__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  justify-content: flex-end;
}

.ac-table__actions .ac-inline-form {
  display: inline-flex;
  margin: 0;
}

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

.ac-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ac-subnav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ac-blue);
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.ac-subnav a:hover {
  background: #fff7ed;
}

.ac-subnav a.is-active {
  background: var(--ac-orange);
  color: #fff;
}

.ac-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1rem;
}

.ac-tab {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  color: var(--ac-blue);
  background: #fff;
  border: 1px solid var(--ac-line);
  font-size: 0.88rem;
}

.ac-tab.is-active {
  background: var(--ac-blue);
  color: #fff;
  border-color: var(--ac-blue);
}

.ac-panel--form {
  margin-bottom: 1.25rem;
}

.ac-panel__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.ac-panel__head h2 {
  margin: 0;
}

.ac-h3 {
  margin: 1rem 0 0.5rem;
  font-size: 0.95rem;
}

.ac-mt {
  margin-top: 0.75rem;
}

.ac-thumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ac-thumb-row__img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--ac-line);
}

.ac-mb {
  margin-bottom: 1.25rem;
}

.ac-logo-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  background: var(--ac-blue);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  margin: 0.5rem 0 0;
}

.ac-logo-preview__img {
  height: var(--ac-logo-h, 64px);
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.ac-logo-size {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ac-line);
}

.ac-logo-size__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.ac-logo-size input[type="range"] {
  flex: 1;
  min-width: 160px;
  accent-color: var(--ac-orange);
}

.ac-logo-size__value {
  font-weight: 700;
  color: var(--ac-blue);
  min-width: 4.5rem;
}

.ac-banner-slot {
  line-height: 0;
}

.ac-banner-slot__link {
  display: inline-block;
  line-height: 0;
}

.ac-banner-slot__img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.ac-banner-slot--above_header {
  width: 100%;
  padding: 0.5rem 1rem 0;
  text-align: center;
  background: #f8fafc;
  border-bottom: 1px solid var(--ac-line);
}

.ac-banner-slot--above_header .ac-banner-slot__link,
.ac-banner-slot--above_header .ac-banner-slot__img {
  margin-left: auto;
  margin-right: auto;
}

.ac-banner-slot--above_header .ac-banner-slot__img {
  max-height: 90px;
  max-width: min(970px, 100%);
}

.ac-banner-slot--header .ac-banner-slot__img {
  max-height: min(90px, var(--ac-logo-h, 64px) + 26px);
  max-width: min(728px, 100%);
}

.ac-banner-slot--below_hero {
  padding: 1rem 1rem 0;
  max-width: min(1120px, 100% - 2rem);
  margin: 0 auto;
  text-align: center;
}

.ac-banner-slot--below_hero .ac-banner-slot__img {
  max-height: 250px;
  border-radius: 12px;
  box-shadow: var(--ac-shadow);
  margin: 0 auto;
}

.ac-banner-slot--footer {
  padding: 1.25rem 1rem 0;
  text-align: center;
}

.ac-banner-slot--footer .ac-banner-slot__img {
  max-height: 90px;
  margin: 0 auto;
}

.ac-banner-hint {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #9a3412;
  margin: -0.25rem 0 0.75rem;
  line-height: 1.45;
}

.ac-banner-sizes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.ac-banner-sizes li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--ac-line);
}

.ac-banner-sizes li:last-child {
  border-bottom: 0;
}

.ac-banner-form-preview {
  margin-bottom: 0.5rem;
}

.ac-banner-form-preview__img {
  max-width: 100%;
  max-height: 120px;
  border-radius: 8px;
  border: 1px solid var(--ac-line);
}

.ac-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.ac-toolbar__actions .ac-btn {
  white-space: nowrap;
}

.ac-toolbar__actions .ac-subnav {
  flex: 1 1 auto;
}

.ac-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 600;
  cursor: pointer;
}

.ac-check input {
  margin-top: 0.2rem;
}

.ac-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.ac-brand-thumb {
  width: 48px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  background: #f8fafc;
  padding: 2px;
}

.ac-brand-form-preview {
  margin-bottom: 0.5rem;
}

.ac-brand-form-preview img {
  max-height: 80px;
  max-width: 200px;
  object-fit: contain;
}

.ac-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ac-line);
  border-radius: 8px;
  background: #fff;
  color: var(--ac-blue);
  cursor: pointer;
  padding: 0;
}

.ac-icon-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.ac-icon-btn--danger {
  color: #b91c1c;
}

.ac-icon-btn--danger:hover {
  background: #fef2f2;
  border-color: #fecaca;
}

.ac-icon-btn--ok {
  color: #15803d;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.ac-icon-btn--ok:hover {
  background: #dcfce7;
}

.ac-table__actions--icons {
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.25rem;
}

.ac-table--attrs .ac-table__actions-col {
  width: 7.5rem;
  min-width: 7.5rem;
}

.ac-table--banners th:nth-child(1),
.ac-table--banners td:nth-child(1) {
  min-width: 8.5rem;
}

.ac-table--banners th:nth-child(2),
.ac-table--banners td:nth-child(2) {
  min-width: 12rem;
}

.ac-table--banners th:nth-child(3),
.ac-table--banners td:nth-child(3) {
  min-width: 13rem;
}

.ac-table--banners th:nth-child(4),
.ac-table--banners td:nth-child(4) {
  white-space: nowrap;
}

.ac-table--banners th:nth-child(5),
.ac-table--banners td:nth-child(5) {
  white-space: nowrap;
}

.ac-table--banners .ac-table__actions-col {
  width: 5.5rem;
  min-width: 5.5rem;
}

.ac-table--pages .ac-table__actions-col {
  width: 7.5rem;
  min-width: 7.5rem;
  text-align: center;
}

.ac-table--pages .ac-table__actions {
  justify-content: center;
}

.ac-table--pages th,
.ac-table--pages td {
  vertical-align: middle;
}

.ac-table--pages th:nth-child(4),
.ac-table--pages td:nth-child(4),
.ac-table--pages th:nth-child(5),
.ac-table--pages td:nth-child(5),
.ac-table--pages th:nth-child(6),
.ac-table--pages td:nth-child(6),
.ac-table--pages th:nth-child(7),
.ac-table--pages td:nth-child(7) {
  text-align: center;
}

.ac-table--pages th:nth-child(1),
.ac-table--pages td:nth-child(1) {
  min-width: 9rem;
}

.ac-table--pages th:nth-child(2),
.ac-table--pages td:nth-child(2) {
  min-width: 11rem;
}

.ac-hero--centered .ac-container {
  text-align: center;
}

.ac-hero--centered .ac-lead {
  margin-inline: auto;
}

.ac-hero--centered .ac-btn {
  margin-inline: auto;
}

.ac-page-head {
  padding: 1.5rem 0 0.5rem;
}

.ac-page-head__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.ac-blog-list {
  display: grid;
  gap: 1rem;
}

.ac-blog-card h2 {
  margin: 0 0 0.35rem;
}

.ac-blog-replies {
  display: grid;
  gap: 0.75rem;
}

.ac-blog-reply--mod {
  border-color: #fde68a;
  background: #fffbeb;
}

.ac-blog-reply__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.ac-blog-reply__mod {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.ac-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ac-cat-preview__img {
  max-width: 200px;
  max-height: 120px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  margin-bottom: 0.5rem;
}

.ac-sub-edit-row td {
  background: #f8fafc;
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

.ac-sub-edit-form {
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.ac-table__actions-col {
  width: auto;
  min-width: 12rem;
  white-space: nowrap;
}

.ac-table--users .ac-table__actions-col,
.ac-table--users .ac-table__actions {
  position: sticky;
  right: 0;
  z-index: 1;
  background: #fff;
}

.ac-table--users thead .ac-table__actions-col {
  background: #f8fafc;
  z-index: 2;
}

.ac-table--users .ac-table__actions-col {
  min-width: 11.5rem;
  box-shadow: -6px 0 10px rgba(15, 23, 42, 0.06);
}

.ac-table--users .ac-table__actions {
  flex-wrap: nowrap;
  justify-content: center;
}

.ac-table--users.ac-table--center th,
.ac-table--users.ac-table--center td {
  text-align: center;
}

.ac-table__check-col {
  width: 2.5rem;
  text-align: center;
  vertical-align: middle;
}

.ac-table__check-col input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.ac-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1.1rem;
}

.ac-bulk-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ac-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.ac-pagination__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ac-hidden {
  display: none !important;
}

.ac-card__seller {
  margin-top: 6px;
  font-size: 0.86rem;
  color: #64748b;
}

.ac-card--sponsored {
  border: 1px solid #fde68a;
}

.ac-profile-avatar-preview {
  margin-top: 8px;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #dbeafe;
}

.ac-seller-avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #dbeafe;
  margin-bottom: 8px;
}

.ac-seller-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.ac-seller-gallery img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.ac-brand-marquee-wrap {
  background: #fff;
  border-top: 1px solid var(--ac-line);
  border-bottom: 1px solid var(--ac-line);
  padding: 1.25rem 0;
  margin-top: 0;
  overflow: hidden;
}

.ac-brand-marquee {
  overflow: hidden;
  width: 100%;
}

.ac-brand-marquee:hover .ac-brand-marquee__track {
  animation-play-state: paused;
}

.ac-brand-marquee__track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: ac-marquee-scroll 40s linear infinite;
}

.ac-brand-marquee__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  transition: transform 0.2s ease;
}

.ac-brand-marquee__item img {
  height: 56px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.2s ease;
}

.ac-brand-marquee__item:hover img,
.ac-brand-marquee__item:focus img,
.ac-brand-marquee__item.is-active img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}

.ac-brand-marquee__item.is-active img {
  transform: scale(1.05);
}

.ac-brand-marquee__item:hover,
.ac-brand-marquee__item:focus {
  transform: translateY(-2px);
}

.ac-seo-admin .ac-kpi--seo-score .ac-kpi__n {
  color: var(--ac-blue);
}

.ac-kpi__unit {
  font-size: 0.45em;
  font-weight: 600;
  opacity: 0.65;
}

.ac-seo-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ac-seo-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0.85rem;
  border-radius: var(--ac-radius);
  border: 1px solid var(--ac-line);
  background: #fff;
}

.ac-seo-check__badge {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.ac-seo-check--ok .ac-seo-check__badge {
  background: #dcfce7;
  color: #166534;
}

.ac-seo-check--warn .ac-seo-check__badge {
  background: #ffedd5;
  color: #9a3412;
}

.ac-seo-check--error .ac-seo-check__badge {
  background: #fee2e2;
  color: #991b1b;
}

.ac-seo-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ac-seo-pill--ok {
  background: #dcfce7;
  color: #166534;
}

.ac-seo-pill--warn {
  background: #ffedd5;
  color: #9a3412;
}

.ac-seo-pill--error {
  background: #fee2e2;
  color: #991b1b;
}

.ac-chart-wrap--seo {
  height: 128px;
  max-width: 200px;
  margin: 0.25rem auto 0;
}

.ac-chart-wrap--seo canvas {
  max-height: 128px !important;
}

.ac-panel--seo-links h2 {
  margin-bottom: 0.85rem;
}

.ac-seo-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ac-seo-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--ac-line);
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  color: var(--ac-blue);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ac-seo-links a::after {
  content: "→";
  flex-shrink: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ac-orange);
  transition: transform 0.15s ease;
}

.ac-seo-links a:hover,
.ac-seo-links a:focus-visible {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transform: translateX(2px);
}

.ac-seo-links a:hover::after,
.ac-seo-links a:focus-visible::after {
  transform: translateX(3px);
}

.ac-table__clip {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ac-role-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.ac-role-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border: 2px solid var(--ac-line);
  border-radius: var(--ac-radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ac-role-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ac-role-card.is-selected,
.ac-role-card:has(input:checked) {
  border-color: var(--ac-orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.ac-role-card__title {
  font-weight: 700;
  color: var(--ac-blue);
}

.ac-role-card__desc {
  font-size: 0.85rem;
  color: var(--ac-muted);
}

.ac-perm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.ac-perm-group + .ac-perm-group {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ac-line);
}

.ac-perm-group__title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--ac-blue);
}

.ac-perm-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.5rem;
}

.ac-check--perm {
  align-items: flex-start;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--ac-line);
  border-radius: 8px;
  background: var(--ac-cream);
}

.ac-check--perm input:disabled + span {
  opacity: 0.75;
}

.ac-perm-item__hint {
  display: block;
  margin-top: 0.15rem;
}

.ac-check--switch {
  font-weight: 600;
}

.ac-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--ac-orange-dark);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
}

.ac-pill--perm {
  background: #e0e7ff;
  color: #3730a3;
  margin-left: 0.25rem;
}

.ac-form__actions--inline {
  padding-top: 0;
  border-top: none;
}

.ac-user-menu {
  position: relative;
  flex-shrink: 0;
}

.ac-user-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.55rem 0.3rem 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ac-user-menu__toggle:hover,
.ac-user-menu.is-open .ac-user-menu__toggle {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(253, 186, 116, 0.55);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.ac-user-menu__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ac-orange), var(--ac-orange-dark));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.ac-user-menu__avatar--lg {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1rem;
}

.ac-user-menu__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  max-width: 9rem;
}

.ac-user-menu__name {
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.ac-user-menu__role {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.8;
}

.ac-user-menu__chev {
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform 0.25s ease;
}

.ac-user-menu.is-open .ac-user-menu__chev {
  transform: rotate(180deg);
}

.ac-user-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: min(280px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(28, 47, 90, 0.18);
  z-index: 500;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.22s ease, visibility 0.2s;
  pointer-events: none;
}

.ac-user-menu.is-open .ac-user-menu__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ac-user-menu__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, var(--ac-blue), var(--ac-blue-2));
  color: #fff;
}

.ac-user-menu__head-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.ac-user-menu__head-role {
  display: block;
  font-size: 0.75rem;
  opacity: 0.85;
}

.ac-user-menu__body {
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ac-user-menu__foot {
  padding: 0.35rem 0.4rem 0.45rem;
  border-top: 1px solid var(--ac-line);
  background: #faf8f5;
}

.ac-user-menu__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  color: var(--ac-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}

.ac-user-menu__item svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.ac-user-menu__item:hover,
.ac-user-menu__item.is-active {
  background: #fff7ed;
  color: var(--ac-orange-dark);
}

.ac-user-menu__item:hover svg,
.ac-user-menu__item.is-active svg {
  opacity: 1;
}

.ac-user-menu__item--cta {
  background: #fff7ed;
  color: var(--ac-orange-dark);
}

.ac-user-menu__item--cta:hover {
  background: var(--ac-orange);
  color: #fff;
}

.ac-user-menu__item--logout {
  color: #64748b;
}

.ac-user-menu__item--logout:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.ac-user-menu__logout {
  margin: 0;
}

.ac-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ac-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e0e7ff;
  color: #3730a3;
  font-size: 0.8rem;
  font-weight: 600;
}

.ac-option-list {
  margin: 0;
  padding-left: 1.1rem;
  columns: 2;
  gap: 0.25rem 1.5rem;
}

.ac-admin-attrs-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 1rem;
  align-items: start;
}

@media (max-width: 900px) {
  .ac-admin-attrs-grid {
    grid-template-columns: 1fr;
  }
}

.ac-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.ac-table tr.is-highlight td {
  background: color-mix(in srgb, var(--ac-primary) 8%, transparent);
}

.ac-optional-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.35rem 0.75rem;
}

.ac-photo-section {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ac-line);
}

.ac-photo-existing__title {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ac-blue);
}

.ac-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.65rem;
}

.ac-photo-card {
  position: relative;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--ac-line);
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
}

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

.ac-photo-card__remove {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.65rem;
  height: 1.65rem;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ac-photo-card__remove:hover {
  background: #dc2626;
}

.ac-upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #faf8f5 100%);
  padding: 1.25rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ac-upload-zone.is-dragover,
.ac-upload-zone:hover {
  border-color: var(--ac-orange);
  background: #fffbf7;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.ac-upload-zone.has-files {
  padding-bottom: 0.85rem;
}

.ac-upload-zone__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.ac-upload-zone__drop {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.ac-upload-zone.has-files .ac-upload-zone__drop {
  padding-top: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--ac-line);
  margin-bottom: 0.85rem;
}

.ac-upload-zone__icon {
  color: var(--ac-orange);
  opacity: 0.9;
}

.ac-upload-zone__lead {
  margin: 0;
  color: var(--ac-text);
  font-size: 0.95rem;
}

.ac-upload-zone__hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ac-muted);
}

.ac-upload-zone__count {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ac-blue);
}

.ac-upload-zone__preview {
  margin-top: 0.25rem;
}

@keyframes ac-marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

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

.ac-newsletter {
  background: linear-gradient(135deg, var(--ac-blue) 0%, #0a3d6b 100%);
  color: #fff;
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.ac-newsletter__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.ac-newsletter__title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  color: #fff;
}

.ac-newsletter__lead {
  margin: 0;
  opacity: 0.92;
  max-width: 32rem;
}

.ac-newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  flex: 1 1 280px;
  max-width: 520px;
}

.ac-newsletter__field {
  flex: 1 1 200px;
  margin: 0;
}

.ac-newsletter__field input {
  width: 100%;
}

@media (max-width: 640px) {
  .ac-newsletter__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .ac-newsletter__form {
    max-width: none;
  }
}

/* Admin: layout sidebar verticale */
.ac-body--admin .ac-main--admin {
  padding-top: 0;
}

.ac-admin-shell {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  align-items: start;
  min-height: calc(100vh - var(--ac-logo-h, 48px) - 120px);
  background: #f1f5f9;
}

.ac-admin-main {
  min-width: 0;
  padding: 0 1rem 1.5rem 0;
  --ac-admin-inset: 1.25rem;
}

.ac-admin-main .ac-container,
.ac-admin-main .ac-container--wide {
  width: min(1120px, 100%);
  max-width: 1120px;
  margin-inline: 0;
  padding-inline: var(--ac-admin-inset);
  box-sizing: border-box;
}

.ac-admin-main .ac-container--wide {
  max-width: none;
  width: 100%;
}

.ac-admin-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0.85rem 1.25rem;
  background: #fff;
  border-right: 1px solid var(--ac-line);
  box-shadow: 2px 0 12px rgba(15, 23, 42, 0.04);
}

.ac-admin-sidebar__brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.25rem 0.5rem 0.65rem;
  border-bottom: 1px solid var(--ac-line);
  margin-bottom: 0.15rem;
}

.ac-admin-sidebar__brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ac-blue);
}

.ac-admin-sidebar__brand-site {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ac-orange);
  text-decoration: none;
}

.ac-admin-sidebar__brand-site:hover {
  text-decoration: underline;
}

.ac-admin-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.ac-admin-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem;
  border-radius: 12px;
}

.ac-admin-nav-group--1 {
  background: #eff6ff;
}

.ac-admin-nav-group--2 {
  background: #f0fdf4;
}

.ac-admin-nav-group--3 {
  background: #fff7ed;
}

.ac-admin-nav-group--4 {
  background: #f5f3ff;
}

.ac-admin-sidebar__link {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ac-blue);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.ac-admin-sidebar__link:hover {
  background: rgba(255, 255, 255, 0.65);
}

.ac-admin-sidebar__link.is-active {
  background: var(--ac-orange);
  color: #fff;
}

.ac-admin-sidebar__foot {
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--ac-line);
}

.ac-admin-sidebar__logout {
  margin: 0;
}

.ac-admin-sidebar__link--logout {
  width: 100%;
  text-align: left;
  border: 1px solid var(--ac-line);
  background: #f8fafc;
  cursor: pointer;
  font-family: inherit;
}

.ac-admin-sidebar__link--logout:hover {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.ac-toolbar--admin {
  margin-bottom: 0;
}

.ac-admin-main .ac-toolbar--admin .ac-container {
  padding-top: 1rem;
  padding-bottom: 0.85rem;
}

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

  .ac-admin-sidebar {
    position: relative;
    height: auto;
    max-height: none;
  }

  .ac-admin-sidebar__nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ac-admin-nav-group {
    flex: 1 1 140px;
  }
}

/* Preferiti, confronto, messaggi */
.ac-listing-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.ac-listing-tools .ac-btn.is-active {
  color: var(--ac-orange, #e85d04);
  border-color: var(--ac-orange, #e85d04);
}

.ac-card__tools {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.ac-compare-wrap {
  overflow-x: auto;
}

.ac-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.ac-compare-table th,
.ac-compare-table td {
  padding: 0.65rem 0.75rem;
  border: 1px solid #e2e8f0;
  vertical-align: top;
  text-align: left;
}

.ac-compare-table thead th {
  background: #f8fafc;
  min-width: 10rem;
}

.ac-compare-table tbody th {
  background: #f1f5f9;
  font-weight: 600;
  white-space: nowrap;
}

.ac-compare-remove {
  margin-top: 0.35rem;
}

.ac-msg-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ac-msg-item {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ac-msg-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.ac-msg-item--unread {
  border-left: 3px solid var(--ac-orange, #e85d04);
}

.ac-msg-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.ac-msg-item__preview {
  margin: 0.35rem 0 0;
  color: #475569;
  font-size: 0.9rem;
}

.ac-msg-thread {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 42rem;
}

.ac-msg-bubble {
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.ac-msg-bubble--mine {
  background: #eff6ff;
  border-color: #bfdbfe;
  margin-left: 2rem;
}

.ac-msg-bubble__meta {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
}
