:root {
  --bg: #0a0a0e;
  --surface: #14141c;
  --surface-2: #1c1c26;
  --border: #2a2a36;
  --text: #ffffff;
  --muted: #a1a1aa;
  --accent: #ff6b00;
  --accent-hover: #ff8533;
  --wa: #25d366;
  --success: #3dd68c;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --site-top-height: 4.25rem;
  --site-footer-height: 6.5rem;
}

html {
  scroll-padding-top: calc(var(--site-top-height) + 1rem);
}

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

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: var(--site-footer-height);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 107, 44, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255, 107, 44, 0.08), transparent);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--accent);
}

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

.container {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
}

/* —— Top bar —— */
.site-top {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10, 10, 14, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-top__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}

.site-top__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.new-offers-btn--brand {
  position: relative;
  overflow: visible;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: var(--muted);
}

.new-offers-btn--brand:hover {
  color: var(--text);
  border: none;
}

.new-offers-btn--brand.has-pending {
  color: var(--accent);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
}

.site-logo__wordmark {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-logo__accent {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  flex: 1;
  flex-wrap: wrap;
}

.site-nav__link {
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav__link:hover {
  color: var(--accent);
}

.site-nav__link.is-active {
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
  border-radius: 0;
}

.site-nav__welcome {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-input--multi {
  min-width: 10rem;
  min-height: 5.5rem;
}

.panel-own-name {
  margin-top: 0.65rem;
}

.panel-form--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem;
}

.panel-field--inline {
  flex: 1 1 12rem;
  margin: 0;
}

.site-nav__link--btn {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  text-align: inherit;
}

.site-top__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex-shrink: 0;
}

.status-api {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  line-height: 0;
}

.status-api.ok {
  color: var(--success);
  border-color: rgba(61, 214, 140, 0.4);
  background: rgba(61, 214, 140, 0.08);
}

.status-api.err {
  color: #ff7b7b;
  border-color: rgba(255, 123, 123, 0.4);
  background: rgba(255, 123, 123, 0.08);
}

.status-api.loading {
  color: var(--muted);
}

.status-api__icon--loading {
  animation: status-api-spin 0.9s linear infinite;
}

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

.site-wa-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  padding: 0.45rem 0.85rem 0.45rem 0.65rem;
  text-decoration: none;
  border: 1px solid rgba(37, 211, 102, 0.55);
  border-radius: 10px;
  background: rgba(37, 211, 102, 0.06);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.site-wa-cta:hover {
  border-color: var(--wa);
  background: rgba(37, 211, 102, 0.12);
  transform: translateY(-1px);
}

.site-wa-cta__icon {
  display: flex;
  color: var(--wa);
}

.site-wa-cta__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-wa-cta__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--wa);
}

.site-wa-cta__desc {
  font-size: 0.68rem;
  color: var(--text);
}

.site-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.site-nav-toggle__bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: 2.5rem 0 1rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 75% 40%, rgba(255, 107, 0, 0.22), transparent 60%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(240px, 42%);
  align-items: center;
  gap: 2rem;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero__title-accent {
  color: var(--accent);
}

.hero__subtitle {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  color: var(--muted);
  line-height: 1.55;
}

.hero__badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  max-width: 36rem;
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1 1 9rem;
  min-width: 0;
}

.hero__badge-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  line-height: 0;
}

.hero__badge-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.25;
}

.hero__badge-line {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: #d4d4dc;
  white-space: nowrap;
}

.hero__figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__figure-img {
  display: block;
  width: 100%;
  max-width: min(520px, 100%);
  height: auto;
  object-fit: contain;
}

/* —— Filter panel (mock) —— */
.filter-panel {
  position: sticky;
  top: var(--site-top-height);
  z-index: 150;
  margin: 0 0 1.75rem;
  padding: 1rem 1.1rem;
  background: rgba(20, 20, 28, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.filter-panel.is-stuck {
  border-color: rgba(255, 107, 0, 0.25);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.filter-panel-sticky-marker {
  height: 1px;
  margin: 0;
  pointer-events: none;
  visibility: hidden;
}

.catalog-filters.is-filtering {
  border-left: none;
  padding-left: 0;
  margin-left: 0;
}

.new-offers-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.new-offers-btn:hover {
  color: var(--text);
  border-color: rgba(255, 107, 44, 0.45);
}

.new-offers-btn.has-pending {
  color: var(--accent);
  border-color: rgba(255, 107, 44, 0.55);
}

.new-offers-btn.is-highlight {
  animation: new-offers-pulse 1.4s ease-in-out 3;
}

@keyframes new-offers-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 44, 0);
    transform: translateY(0);
  }
  35% {
    box-shadow: 0 0 0 8px rgba(255, 107, 44, 0.28);
    transform: translateY(2px);
  }
  70% {
    box-shadow: 0 0 0 2px rgba(255, 107, 44, 0.12);
    transform: translateY(0);
  }
}

.new-offers-btn__badge {
  position: absolute;
  top: -0.2rem;
  right: -0.15rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(255, 107, 44, 0.45);
}

.source-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.source-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.source-filter:hover {
  color: var(--text);
  border-color: rgba(255, 107, 44, 0.4);
}

.source-filter.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.source-filter__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.source-filter.is-active .source-filter__icon {
  opacity: 1;
}

.source-filter__icon--shopee .source-filter__logo {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: cover;
}

.source-filter__icon--ml .source-filter__logo {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.source-filter__icon--amazon .source-filter__logo {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
}

.source-filter__count {
  min-width: 1.35rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.source-filter.is-active .source-filter__count {
  background: rgba(0, 0, 0, 0.22);
}

.filter-panel.is-filtering {
  border-color: rgba(255, 107, 0, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 107, 0, 0.2);
}

.catalog-filters.is-filtering {
  border: none;
  box-shadow: none;
}

.catalog-filters.is-filtering .search-bar__input {
  border-color: rgba(255, 107, 44, 0.55);
}

.search-bar {
  position: relative;
  margin: 0;
  max-width: none;
}

.search-bar__icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  display: flex;
}

.search-bar__input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-bar__input::placeholder {
  color: var(--muted);
}

.store-link-filter {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.store-link-filter__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: uppercase;
}

.store-link-filter__select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: rgba(12, 12, 18, 0.85);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.store-link-filter__select:focus {
  outline: 2px solid rgba(255, 107, 0, 0.45);
  outline-offset: 1px;
  border-color: rgba(255, 107, 0, 0.35);
}

.search-bar__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.2);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  padding-bottom: 1rem;
}

.load-more-sentinel {
  min-height: 3rem;
  padding: 1rem 0 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.load-more-sentinel:not([hidden]) {
  display: block;
}

.offer-card {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.offer-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-hover);
  box-shadow: 0 14px 44px rgba(255, 107, 44, 0.22);
}

@keyframes offer-card-like-pulse {
  0% {
    transform: translateY(0);
    border-color: var(--accent);
    box-shadow: var(--shadow);
  }
  40% {
    transform: translateY(-4px);
    border-color: var(--accent-hover);
    box-shadow: 0 14px 44px rgba(255, 107, 44, 0.22);
  }
  70% {
    transform: translateY(-2px);
    border-color: var(--accent-hover);
    box-shadow: 0 10px 32px rgba(255, 107, 44, 0.18);
  }
  100% {
    transform: translateY(0);
    border-color: var(--accent);
    box-shadow: var(--shadow);
  }
}

.offer-card.is-like-pulse {
  animation: offer-card-like-pulse 0.6s ease;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .offer-card.is-like-pulse {
    animation: none;
    transform: translateY(-4px);
    border-color: var(--accent-hover);
    box-shadow: 0 14px 44px rgba(255, 107, 44, 0.22);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }
}

.offer-card__image-wrap {
  position: relative;
  aspect-ratio: 1;
  background: #121218;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.offer-card__image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-card__image-wrap .placeholder {
  display: none;
  color: var(--muted);
  font-size: 3rem;
}

.offer-card__image-wrap.image-failed .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.offer-card__image-wrap.image-failed img {
  display: none;
}

.offer-like-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.55rem;
  border: none;
  border-radius: 999px;
  background: rgba(10, 10, 14, 0.72);
  color: #fff;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.offer-like-btn:hover {
  background: rgba(10, 10, 14, 0.9);
  transform: scale(1.04);
}

.offer-like-btn.is-liked {
  color: #ff6b4a;
}

.offer-like-btn__icon {
  display: flex;
  line-height: 0;
}

.offer-like-btn__icon svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.offer-like-btn:not(.is-liked) .offer-like-btn__icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.offer-card__body {
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.offer-card__source {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}

.offer-card__store {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.offer-card__store a {
  color: inherit;
  text-decoration: none;
}

.offer-card__store a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.offer-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-card__prices .price-current {
  font-variant-numeric: tabular-nums;
}

.offer-card__prices .price-previous {
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
  text-decoration: line-through;
}

.offer-card__prices {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.offer-card__promo {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--accent-hover);
  white-space: pre-line;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--success);
}

.price-previous {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: line-through;
}

.offer-card__date {
  font-size: 0.78rem;
  color: var(--muted);
}

.offer-card__cta {
  margin-top: auto;
  display: inline-block;
  text-align: center;
  padding: 0.65rem 1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.offer-card__cta:hover {
  background: var(--accent-hover);
  color: #fff;
}

.empty-state,
.error-state,
.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}

.error-state code {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text);
  word-break: break-all;
}

/* —— Google AdSense —— */
.ad-banner {
  margin: 0 0 1.25rem;
  padding: 0.75rem 0;
  text-align: center;
}

.ad-banner--inline {
  margin: 0 0 1.5rem;
}

.ad-banner__label {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.adsense-slot {
  min-height: 90px;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.ad-banner--inline .adsense-slot {
  min-height: 100px;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
  background: rgba(10, 10, 14, 0.97);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  padding: 0.5rem 0 0.55rem;
  text-align: center;
}

.site-footer__row {
  margin: 0;
  max-width: 52rem;
  line-height: 1.4;
}

.site-footer__row strong {
  color: var(--accent);
  font-weight: 600;
  margin-right: 0.25rem;
}

.site-footer__phones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  color: var(--text);
}

.site-footer__wa-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.site-footer__wa-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  object-fit: contain;
}

.site-footer__phones a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--wa);
  font-weight: 500;
  text-decoration: none;
}

.site-footer__phones a:hover {
  color: #2ee879;
  text-decoration: underline;
}

.site-footer__sep {
  margin: 0 0.1rem;
  color: var(--border);
  user-select: none;
}

.site-footer__row a:not(.site-footer__phones a) {
  color: var(--accent);
  text-decoration: none;
}

.site-footer__row a:not(.site-footer__phones a):hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

@media (max-width: 640px) {
  :root {
    --site-footer-height: 8.5rem;
  }

  .site-footer {
    font-size: 0.65rem;
  }
}

@media (max-width: 900px) {
  :root {
    --site-top-height: 3.75rem;
  }

  .site-top {
    padding-top: max(0.35rem, env(safe-area-inset-top, 0px));
  }

  .site-top__bar {
    position: relative;
    flex-wrap: nowrap;
    gap: 0.45rem;
    min-height: 3.25rem;
  }

  .site-top__brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .site-logo__wordmark {
    font-size: clamp(0.82rem, 3.2vw, 1rem);
  }

  .site-top__actions {
    margin-left: 0;
    flex-shrink: 0;
    gap: 0.35rem;
  }

  .new-offers-btn__badge {
    top: 0.05rem;
    right: -0.2rem;
  }

  .site-nav-toggle {
    display: flex;
    margin-left: 0;
    width: 2.25rem;
    height: 2.25rem;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    flex-direction: column;
    align-items: stretch;
    padding: 0.35rem 0 0.5rem;
    gap: 0.25rem;
    background: rgba(10, 10, 14, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__link {
    text-align: center;
    padding: 0.65rem;
  }

  .site-wa-cta__desc {
    display: none;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__title {
    width: 100%;
    max-width: 100%;
    font-size: clamp(1.45rem, 6.2vw, 2.1rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
    text-wrap: balance;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }

  .hero__subtitle {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0.15rem;
    text-align: center;
    text-wrap: pretty;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }

  .hero__badges {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.55rem;
    max-width: 22rem;
    margin-inline: auto;
    overflow: visible;
  }

  .hero__badge {
    display: contents;
  }

  .hero__badge-icon svg {
    width: 26px;
    height: 26px;
  }

  .hero__badge-text {
    display: contents;
  }

  .hero__badge-line {
    display: block;
    white-space: normal;
    font-size: clamp(0.68rem, 2.8vw, 0.8rem);
    text-align: left;
    line-height: 1.3;
  }

  .hero__badge:nth-child(1) .hero__badge-icon {
    grid-row: 1 / 3;
    grid-column: 1;
    align-self: center;
  }

  .hero__badge:nth-child(1) .hero__badge-line:first-child {
    grid-row: 1;
    grid-column: 2;
  }

  .hero__badge:nth-child(1) .hero__badge-line:last-child {
    grid-row: 2;
    grid-column: 2;
  }

  .hero__badge:nth-child(2) .hero__badge-icon {
    grid-row: 1 / 3;
    grid-column: 3;
    align-self: center;
  }

  .hero__badge:nth-child(2) .hero__badge-line:first-child {
    grid-row: 1;
    grid-column: 4;
  }

  .hero__badge:nth-child(2) .hero__badge-line:last-child {
    grid-row: 2;
    grid-column: 4;
  }

  .source-filters {
    flex-wrap: nowrap;
    gap: 0.35rem;
  }

  .source-filter {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    padding: 0.45rem 0.55rem;
    gap: 0.3rem;
  }

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

  .hero__figure {
    order: -1;
  }

  .hero__figure-img {
    max-width: min(400px, 100%);
  }

}

@media (max-width: 480px) {
  .site-wa-cta__text {
    display: none;
  }

  .site-wa-cta {
    padding: 0.45rem;
  }

  .status-api {
    width: 2rem;
    height: 2rem;
  }

  .source-filter {
    padding: 0.4rem 0.35rem;
  }
}

/* ——— Painel (auth / loja / admin) ——— */
.panel-page {
  background: var(--bg);
}

.panel-main {
  padding: 1.5rem 1rem 3rem;
}

.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  max-width: 960px;
  margin: 0 auto;
}

.panel-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.panel-help {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.panel-help--small {
  font-size: 0.82rem;
  margin-top: 1rem;
}

.panel-error {
  color: #c0392b;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.panel-success {
  color: #15803d;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.panel-auth-links {
  margin-top: 0.75rem;
}

.panel-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent, #e85d04);
  font: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.panel-link:hover {
  opacity: 0.85;
}

.panel-form {
  display: grid;
  gap: 0.85rem;
  max-width: 420px;
}

.panel-form--grid {
  max-width: none;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin-bottom: 1.25rem;
}

.panel-field--wide {
  grid-column: 1 / -1;
}

.panel-field--checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1.5rem;
}

.panel-field--checkbox input {
  width: auto;
}

.panel-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
}

.panel-field[hidden] {
  display: none !important;
}

.panel-field--inline {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
}

.panel-field input,
.panel-field select,
.panel-input {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  font: inherit;
  background: var(--bg);
  color: var(--text);
}

.panel-input--prio {
  width: 5.5rem;
}

.panel-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.panel-btn {
  border: none;
  border-radius: 10px;
  padding: 0.55rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

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

.panel-btn--small {
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
}

.panel-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.panel-badge--ok {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

.panel-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.panel-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.panel-tab {
  border: none;
  background: none;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.panel-tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.panel-tab-panel {
  display: none;
}

.panel-tab-panel.is-active {
  display: block;
}

.panel-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.75rem;
}

.panel-table-wrap {
  overflow-x: auto;
}

.panel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.panel-table th,
.panel-table td {
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.panel-table__title {
  max-width: 28rem;
}

/* —— Páginas de conteúdo (Sobre, guias, legal) —— */
body.content-page {
  padding-bottom: 0;
}

body.content-page .site-footer {
  position: static;
  margin-top: 2.5rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.85rem;
  margin-bottom: 0.2rem;
}

.site-footer__nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.site-footer__nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.content-main {
  padding: 1.75rem 0 2rem;
}

.content-article {
  max-width: 42rem;
  margin: 0 auto;
}

.content-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.content-article h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.content-lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.55;
}

.content-article h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.2rem;
}

.content-article p,
.content-article li {
  color: #d4d4d8;
}

.content-article ul,
.content-article ol {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.content-article li {
  margin-bottom: 0.35rem;
}

.content-related {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.content-related h2 {
  margin-top: 0;
  font-size: 1rem;
}

.content-cta {
  display: inline-flex;
  margin-top: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #111 !important;
  font-weight: 700;
  text-decoration: none !important;
}

.content-cta:hover {
  background: var(--accent-hover);
}

/* Home: editorial + disclaimer afiliado */
.affiliate-disclaimer {
  margin: 0.75rem auto 0;
  max-width: 40rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 107, 0, 0.35);
  border-radius: 10px;
  background: rgba(255, 107, 0, 0.08);
  color: #e4e4e7;
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: left;
}

.affiliate-disclaimer a {
  color: var(--accent);
  font-weight: 600;
}

.editorial {
  padding: 1.5rem 0 0.25rem;
}

.editorial__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .editorial__grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.editorial__card {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(20, 20, 28, 0.85);
}

.editorial__card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
}

.editorial__card p,
.editorial__card li {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.editorial__card ul {
  margin: 0.35rem 0 0.75rem;
  padding-left: 1.15rem;
}

.editorial__card a {
  font-weight: 600;
}

.editorial__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-top: 0.35rem;
}

.editorial__links a {
  font-size: 0.9rem;
}
