/* ==========================================================
   RADAR CONECTA — Estilos globais, vitrine pública e painel
   Paleta oficial: Navy #1b2853 · Verde #009b5f · Fundo #f5f8f7
   Mobile-first · componentes de dashboard e tabelas responsivas
   ========================================================== */

:root {
  --navy: #1b2853;
  --navy-dark: #121c3d;
  --navy-soft: #e8ecf6;
  --green: #009b5f;
  --green-dark: #007f4e;
  --green-soft: #e3f4ec;

  --bg: #f5f8f7;
  --surface: #ffffff;
  --surface-2: #eaf2ee;
  --surface-3: #f0f4f2;
  --text: #1b2853;
  --text-soft: #5b6480;
  --text-muted: #8790a6;
  --line: #dfe7e3;
  --line-soft: #eef2f0;

  --ml: #ffe600;
  --ml-dark: #e6cf00;
  --ml-text: #2d3277;
  --ml-soft: #fffbe0;
  --shopee: #ee4d2d;
  --shopee-dark: #d63f21;
  --shopee-soft: #fff0ec;
  --aliexpress: #ff4747;
  --aliexpress-dark: #e03434;
  --aliexpress-soft: #fff0f0;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --facebook: #1877f2;
  --pinterest: #e60023;
  --telegram: #229ed9;
  --tiktok: #111111;
  --danger: #c0392b;
  --danger-soft: #fdecea;
  --warning: #a56a00;
  --warning-soft: #fff7e6;
  --success: #007f4e;
  --success-soft: #e3f4ec;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 1px 2px rgba(27, 40, 83, .05), 0 8px 24px rgba(27, 40, 83, .07);
  --shadow-hover: 0 2px 4px rgba(27, 40, 83, .06), 0 16px 36px rgba(27, 40, 83, .12);
  --shadow-lg: 0 18px 50px rgba(27, 40, 83, .16);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Montserrat", "Inter", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

.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;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-xs);
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: filter .18s, background .18s, border-color .18s, color .18s, transform .1s;
}
.btn:hover { filter: brightness(.96); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: not-allowed; filter: none; transform: none; }

.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); filter: none; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); filter: none; }
.btn--ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--navy);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green-dark); filter: none; }
.btn--soft { background: var(--green-soft); color: var(--green-dark); }
.btn--soft:hover { background: #d5eee1; filter: none; }
.btn--danger { background: var(--danger-soft); color: var(--danger); border-color: #f3c9c4; }
.btn--danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); filter: none; }
.btn--ml { background: var(--ml); color: var(--ml-text); }
.btn--ml:hover { background: var(--ml-dark); filter: none; }
.btn--shopee { background: var(--shopee); color: #fff; }
.btn--shopee:hover { background: var(--shopee-dark); filter: none; }
.btn-loja.aliexpress { background: #ff4747; color: #ffffff; }
.btn-loja.aliexpress:hover { background: #e03434; filter: none; }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: var(--whatsapp-dark); filter: none; }
.btn--facebook { background: var(--facebook); color: #fff; }
.btn--pinterest { background: var(--pinterest); color: #fff; }
.btn--telegram { background: var(--telegram); color: #fff; }
.btn--sm { min-height: 36px; padding: 7px 12px; font-size: .84rem; border-radius: 10px; }
.btn--xs { min-height: 30px; padding: 5px 9px; font-size: .76rem; border-radius: 8px; }
.btn--block { width: 100%; }

:where(.btn, .filter, .admin-tab, .chip, input, select, textarea):focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.badge--green { background: var(--green-soft); color: var(--green-dark); }
.badge--navy { background: var(--navy-soft); color: var(--navy); }
.badge--ml { background: var(--ml); color: var(--ml-text); }
.badge--shopee { background: var(--shopee-soft); color: var(--shopee-dark); }
.badge--aliexpress { background: var(--aliexpress-soft); color: var(--aliexpress-dark); }
.badge--internacional { background: #fff0f0; color: #d93838; border: 1px solid #ffd0d0; }
.product-card__body .badge--internacional { align-self: flex-start; }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--soft { background: var(--surface-2); color: var(--text-soft); }

/* ---------- Avisos ---------- */
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-soft);
  font-size: .86rem;
  line-height: 1.45;
}
.notice strong { color: var(--text); }
.notice--info { background: #eef4ff; border-color: #cfdcf7; color: #33456f; }
.notice--warning { background: var(--warning-soft); border-color: #f2d79b; color: #6b4e10; }
.notice--success { background: var(--success-soft); border-color: #b8e2cd; color: var(--green-dark); }
.notice--danger { background: var(--danger-soft); border-color: #f3c9c4; color: var(--danger); }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field__label {
  font-size: .76rem;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: .045em;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: .92rem;
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: #9aa3b7; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 155, 95, .15);
}
.field__help { margin: 0; font-size: .76rem; color: var(--text-muted); }
.field__error { margin: 0; font-size: .76rem; font-weight: 600; color: var(--danger); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.form-grid--2 { grid-template-columns: 1fr; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.money-input { position: relative; }
.money-input > span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: .86rem;
  font-weight: 600;
  pointer-events: none;
}
.money-input input { padding-left: 38px; }

/* ---------- Cabeçalho público ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.logo__img {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--line);
}
.logo__text { display: flex; flex-direction: column; min-width: 0; }
.logo__text strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--navy);
}
.logo__text strong span { color: var(--green); }
.logo__text small {
  font-size: .68rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-nav { display: none; align-items: center; gap: 24px; }
.site-nav a {
  color: var(--text-soft);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .18s;
}
.site-nav a:hover { color: var(--green-dark); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.header__cta {
  flex: none;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s;
}
.header__cta:hover { background: var(--whatsapp-dark); }
.btn--install { white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 30px;
  background:
    radial-gradient(circle at 88% 8%, rgba(0, 155, 95, .32), transparent 38%),
    radial-gradient(circle at 4% 100%, rgba(0, 155, 95, .16), transparent 42%),
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 72%);
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  right: -110px;
  top: -90px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 46px solid rgba(255, 255, 255, .04);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 860px; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .85);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 6.4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: #5fe0a8; }
.hero__subtitle {
  margin: 0 0 20px;
  max-width: 620px;
  color: rgba(255, 255, 255, .78);
  font-size: .96rem;
}
.hero__stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero__stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .8);
  font-size: .76rem;
  font-weight: 500;
}
.hero__stat strong { color: #fff; }

/* ---------- Busca / filtros ---------- */
.search { position: relative; max-width: 620px; }
.search__icon {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  pointer-events: none;
}
.search__input {
  width: 100%;
  height: 54px;
  padding: 0 18px 0 49px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  transition: border-color .2s, box-shadow .2s;
}
.search__input::placeholder { color: #97a0b5; }
.search__input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 155, 95, .28), 0 12px 30px rgba(0, 0, 0, .18);
}

.filters-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 20px;
}
.filters {
  display: flex;
  gap: 8px;
  margin: 0 -16px;
  padding: 3px 16px 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: .85rem;
  font-weight: 600;
  transition: background .18s, color .18s, border-color .18s;
}
.filter:hover { border-color: var(--green); color: var(--green-dark); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filters__selects { display: flex; flex-wrap: wrap; gap: 8px; }
.select-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: .78rem;
  color: var(--text-soft);
}
.select-mini select {
  border: 0;
  background: transparent;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  outline: none;
}

/* ---------- Seções ---------- */
.produtos { padding-top: 24px; padding-bottom: 42px; }
.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 16px;
}
.section-head__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.section-kicker {
  display: inline-block;
  color: var(--green-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.28rem, 4vw, 1.6rem);
  letter-spacing: -.02em;
}
.section-head p { margin: 0; color: var(--text-soft); font-size: .9rem; max-width: 640px; }
.count { color: var(--text-soft); font-size: .82rem; white-space: nowrap; }

/* ---------- Grade de produtos ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: fadeUp .35s ease both;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  overflow: hidden;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 4px 12px rgba(0, 155, 95, .3);
}
.product-card__cat {
  position: absolute;
  top: 12px;
  right: 12px;
  max-width: 62%;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  color: var(--navy);
  font-size: .7rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 15px;
}
.product-card__title {
  margin: 0;
  font-size: .98rem;
  font-weight: 650;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 9px; }
.product-card__old { color: var(--text-soft); font-size: .82rem; text-decoration: line-through; }
.product-card__new {
  font-family: var(--font-display);
  font-size: 1.34rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
}
.product-card__actions { display: grid; gap: 7px; margin-top: auto; padding-top: 3px; }
.product-card__actions .btn { min-height: 42px; font-size: .87rem; }
.store-mark { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 5px; font-size: .64rem; font-weight: 900; letter-spacing: -.03em; }
.store-mark--ml { background: rgba(45, 50, 119, .12); color: var(--ml-text); }
.store-mark--shopee { background: rgba(255, 255, 255, .22); color: #fff; }
.store-mark--aliexpress { background: rgba(255, 255, 255, .22); color: #fff; }

/* ---------- Cupons ---------- */
.cupons-section {
  padding-top: 6px;
  padding-bottom: 44px;
  scroll-margin-top: 80px;
}
.coupons-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.coupon-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 155, 95, .09), transparent 58%),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.coupon-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--store-color, var(--green));
}
.coupon-card--ml { --store-color: var(--ml); }
.coupon-card--shopee { --store-color: var(--shopee); }
.coupon-card--aliexpress { --store-color: var(--aliexpress); }
.coupon-card--link .coupon-card__actions .btn { width: 100%; }
.coupon-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.coupon-card__title { margin: 0; font-family: var(--font-display); font-size: 1.03rem; font-weight: 800; line-height: 1.25; }
.coupon-card__rule { margin: 0; color: var(--text-soft); font-size: .8rem; line-height: 1.45; flex: 1; }
.coupon-card__code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px dashed #b9c6c0;
  border-radius: 10px;
  background: var(--surface-3);
}
.coupon-code {
  font-family: var(--font-mono);
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--navy);
  overflow-wrap: anywhere;
}
.coupon-card__actions { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.coupon-card__hint { margin: 0; color: var(--text-muted); font-size: .72rem; }

/* ---------- VIP / footer ---------- */
.vip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 48px;
  padding: 28px 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 155, 95, .45), transparent 55%),
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  scroll-margin-top: 80px;
}
.vip::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 30px solid rgba(255, 255, 255, .05);
  pointer-events: none;
}
.vip__content { position: relative; z-index: 1; }
.vip__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.vip__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.34rem, 5vw, 1.95rem);
  line-height: 1.15;
}
.vip__text { margin: 0; color: rgba(255, 255, 255, .8); max-width: 520px; font-size: .92rem; }
.vip .btn--whatsapp {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .35);
}
.vip .btn--whatsapp:hover { background: var(--whatsapp-dark); filter: none; }

.footer {
  padding: 34px 0 40px;
  border-top: 4px solid var(--green);
  background: var(--navy);
  color: rgba(255, 255, 255, .72);
  font-size: .83rem;
}
.footer p { margin: 0 0 12px; }
.footer strong { color: #fff; }
.footer__grid { display: grid; gap: 22px; }
.footer__brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: .95rem; }
.footer__brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #fff; }
.footer__links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer__links a { color: rgba(255, 255, 255, .78); text-decoration: none; font-weight: 600; }
.footer__links a:hover { color: #fff; text-decoration: underline; }
.footer__legal { max-width: 800px; }
.footer__copy { margin-bottom: 0; color: rgba(255, 255, 255, .5); }
.footer__admin { color: #5fe0a8; text-decoration: none; font-weight: 600; }
.footer__admin:hover { text-decoration: underline; }

/* ---------- Loading / vazio / toast ---------- */
.skeleton {
  min-height: 380px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface-2) 0%, #f4f8f6 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
}
.empty {
  padding: 38px 16px;
  text-align: center;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: .9rem;
}
.empty-mini { padding: 18px 12px; text-align: center; color: var(--text-muted); font-size: .84rem; border: 1px dashed var(--line); border-radius: var(--radius-sm); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 100;
  max-width: min(92vw, 460px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: .86rem;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast--success { background: var(--green-dark); }
.toast--error { background: var(--danger); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================
   PAINEL ADMINISTRATIVO
   ========================================================== */

.admin-body {
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 155, 95, .06), transparent 34%),
    var(--bg);
  min-height: 100vh;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background:
    radial-gradient(circle at 90% 0%, rgba(0, 155, 95, .25), transparent 36%),
    linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
  box-shadow: 0 6px 24px rgba(18, 28, 61, .2);
}
.admin-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 70px;
  padding-block: 10px;
}
.admin-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.admin-brand img {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, .35);
}
.admin-brand__text { display: flex; flex-direction: column; min-width: 0; }
.admin-brand__text strong {
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.admin-brand__text strong span { color: #5fe0a8; }
.admin-brand__text small { color: rgba(255, 255, 255, .62); font-size: .67rem; }
.admin-topbar__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.admin-status {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .75);
  font-size: .7rem;
  font-weight: 600;
}
.admin-dot { width: 7px; height: 7px; border-radius: 50%; background: #5fe0a8; box-shadow: 0 0 0 3px rgba(95, 224, 168, .16); }
.admin-topbar .btn--ghost {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
}
.admin-topbar .btn--ghost:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); color: #fff; }

.admin-tabs-wrap { border-top: 1px solid rgba(255, 255, 255, .08); }
.admin-tabs {
  display: flex;
  gap: 4px;
  margin: 0 -16px;
  padding: 7px 16px 9px;
  overflow-x: auto;
  scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, .65);
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s;
}
.admin-tab:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-tab.is-active {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
}
.admin-tab .badge { padding: 1px 6px; font-size: .62rem; }

.admin-main { padding-top: 22px; padding-bottom: 48px; }
.tab-panel { animation: fadeUp .25s ease both; }
.panel-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.panel-head__text { min-width: 0; }
.panel-head h1,
.panel-head h2 {
  margin: 2px 0 4px;
  font-family: var(--font-display);
  font-size: clamp(1.34rem, 4.6vw, 1.72rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.panel-head p { margin: 0; color: var(--text-soft); font-size: .88rem; max-width: 720px; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }

/* ---------- KPIs ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.kpi {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(27, 40, 83, .04);
  overflow: hidden;
}
.kpi::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--kpi-accent, var(--navy));
}
.kpi--navy { --kpi-accent: var(--navy); background: linear-gradient(180deg, #fbfcff, #fff); }
.kpi--green { --kpi-accent: var(--green); }
.kpi--ml { --kpi-accent: #f0d900; background: linear-gradient(180deg, #fffef3, #fff); }
.kpi--shopee { --kpi-accent: var(--shopee); background: linear-gradient(180deg, #fff8f5, #fff); }
.kpi--aliexpress { --kpi-accent: var(--aliexpress); background: linear-gradient(180deg, #fff7f7, #fff); }
.kpi--coupon { --kpi-accent: #7c5cff; background: linear-gradient(180deg, #faf8ff, #fff); }
.kpi--ctr { --kpi-accent: #0f9bb8; background: linear-gradient(180deg, #f5fcfe, #fff); }
.kpi__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.kpi__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface-2);
  font-size: .9rem;
}
.kpi--ml .kpi__icon { background: var(--ml-soft); }
.kpi--shopee .kpi__icon { background: var(--shopee-soft); }
.kpi--aliexpress .kpi__icon { background: var(--aliexpress-soft); }
.kpi--green .kpi__icon { background: var(--green-soft); }
.kpi--coupon .kpi__icon { background: #f0ecff; }
.kpi--ctr .kpi__icon { background: #e5f6fa; }
.kpi__label {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.kpi__value {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 6vw, 1.85rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--navy);
  overflow-wrap: anywhere;
}
.kpi--shopee .kpi__value { color: var(--shopee-dark); }
.kpi--aliexpress .kpi__value { color: var(--aliexpress-dark); }
.kpi__hint { color: var(--text-muted); font-size: .7rem; line-height: 1.3; }

/* ---------- Cards do dashboard ---------- */
.dashboard-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.panel-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 0;
}
.panel-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.panel-card__sub { margin: 2px 0 0; color: var(--text-muted); font-size: .74rem; }
.panel-card__body { padding: 14px 16px 16px; }
.panel-card--full { grid-column: 1 / -1; }

.channel-layout { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.channel-donut {
  --pct-ml: 0;
  --pct-shopee: 0;
  position: relative;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(
    var(--ml) calc(var(--pct-ml) * 1%),
    var(--shopee) 0 calc((var(--pct-ml) + var(--pct-shopee)) * 1%),
    var(--aliexpress) 0
  );
  box-shadow: inset 0 0 0 1px rgba(27, 40, 83, .06);
}
.channel-donut.is-empty { background: var(--surface-2); }
.channel-donut::before {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.channel-donut__center { position: relative; z-index: 1; text-align: center; line-height: 1.15; }
.channel-donut__center strong { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.channel-donut__center span { display: block; color: var(--text-muted); font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.channel-list { display: flex; flex-direction: column; gap: 13px; flex: 1; min-width: 190px; }
.channel-row__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; font-size: .8rem; }
.channel-row__head strong { font-family: var(--font-display); font-size: .98rem; }
.channel-row__pct { color: var(--text-muted); font-size: .72rem; font-weight: 600; }
.bar { height: 9px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar--thin { height: 6px; }
.bar__fill { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--bar-color, var(--green)); transition: width .55s ease; }
.bar__fill--ml { --bar-color: var(--ml); }
.bar__fill--shopee { --bar-color: var(--shopee); }
.bar__fill--aliexpress { --bar-color: var(--aliexpress); }
.bar__fill--green { --bar-color: var(--green); }
.bar__fill--navy { --bar-color: var(--navy); }

/* Ranking de produtos */
.ranking { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ranking__item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-soft);
}
.ranking__item:last-child { border-bottom: 0; padding-bottom: 0; }
.ranking__pos {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 800;
}
.ranking__item:first-child .ranking__pos { background: var(--green-soft); color: var(--green-dark); }
.ranking__body { min-width: 0; }
.ranking__name {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranking__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; color: var(--text-muted); font-size: .67rem; }
.ranking__meta b { color: var(--text-soft); font-weight: 700; }
.ranking__bar { margin-top: 4px; }
.ranking__value { text-align: right; }
.ranking__value strong { display: block; font-family: var(--font-display); font-size: .95rem; line-height: 1.1; }
.ranking__value small { color: var(--text-muted); font-size: .64rem; }

/* Origens de tráfego */
.source-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.source-item__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; font-size: .78rem; }
.source-item__name { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; }
.source-item__name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-item__value { color: var(--text-soft); font-size: .72rem; white-space: nowrap; }
.source-item__value b { color: var(--navy); }
.source-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--green); }
.source-dot--fb { background: var(--facebook); }
.source-dot--pin { background: var(--pinterest); }
.source-dot--meta { background: #0866ff; }
.source-dot--google { background: #ea4335; }
.source-dot--whats { background: var(--whatsapp); }
.source-dot--direct { background: #8b95aa; }

/* ---------- Financeiro ---------- */
.finance-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.finance-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 14px;
  border: 1px solid #c9e7d9;
  border-radius: 13px;
  background: linear-gradient(135deg, #effaf5, #fff);
}
.finance-summary span { color: var(--green-dark); font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.finance-summary strong { font-family: var(--font-display); font-size: 1.55rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.finance-summary small { color: var(--text-soft); font-size: .7rem; }
.finance-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.finance-mini__item { padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-3); }
.finance-mini__item span { display: block; color: var(--text-muted); font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.finance-mini__item strong { display: block; margin-top: 1px; font-family: var(--font-display); font-size: .98rem; color: var(--navy); }
.finance-note { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; color: var(--text-muted); font-size: .7rem; }

/* Ações de dados */
.data-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.data-actions__text { min-width: 0; }
.data-actions__text strong { display: block; font-size: .86rem; }
.data-actions__text span { color: var(--text-muted); font-size: .74rem; }
.action-group { display: flex; flex-wrap: wrap; gap: 8px; }

@media (min-width: 540px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .coupons-grid { grid-template-columns: repeat(2, 1fr); }
  .vip .btn--whatsapp { width: auto; }
  .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panel-actions { width: auto; justify-content: flex-end; }
  .finance-mini { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  .container { padding: 0 24px; }
  .header__inner { min-height: 70px; }
  .site-nav { display: flex; }
  .btn--install { display: inline-flex; }
  .hero { padding: 54px 0 46px; }
  .hero__subtitle { font-size: 1.02rem; }
  .produtos { padding-top: 32px; }
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 18px; }
  .section-head > div { min-width: 0; }
  .filters-bar { flex-direction: row; align-items: center; justify-content: space-between; }
  .filters { margin: 0; padding: 3px 0 6px; flex-wrap: wrap; overflow: visible; }
  .filters__selects { flex: none; }
  .vip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 40px 44px;
  }
  .vip .btn--whatsapp { flex: none; }
  .footer__grid { grid-template-columns: 1.1fr .9fr; align-items: start; }
  .footer__legal { grid-column: 1 / -1; }
  .admin-status { display: inline-flex; }
  .admin-main { padding-top: 28px; }
  .panel-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-card--wide { grid-column: 1 / -1; }
  .finance-grid { grid-template-columns: 1fr 1fr; }
  .data-actions { flex-direction: row; align-items: center; justify-content: space-between; }
  .admin-topbar__inner { min-height: 76px; }
}

@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .coupons-grid { grid-template-columns: repeat(4, 1fr); }
  .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpi { padding: 15px; }
  .panel-card__body { padding: 16px 18px 18px; }
  .admin-tab { padding: 9px 14px; font-size: .82rem; }
}

@media (min-width: 1100px) {
  .hero__inner { max-width: 920px; }
  .dashboard-grid { grid-template-columns: 1.1fr .9fr; }
  .panel-card--wide { grid-column: 1 / -1; }
}

/* ---------- Layouts de conteúdo ---------- */
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
.admin-grid--sidebar { grid-template-columns: 1fr; }
.admin-sidebar { position: static; }
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 1px;
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: 800;
}
.card-sub { margin: 0 0 12px; color: var(--text-muted); font-size: .75rem; }
.card-body { padding: 16px; }
.card-body--flush { padding: 0; }
.divider { height: 1px; margin: 14px 0; background: var(--line-soft); border: 0; }

/* ---------- Aba Copys ---------- */
.copys-layout { display: grid; grid-template-columns: 1fr; gap: 14px; }
.copy-config { padding: 16px; }
.copy-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.trend-mini {
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-3);
}
.trend-mini__title { margin: 0 0 6px; color: var(--text-soft); font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.trend-mini__list { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 0; list-style: none; }
.trend-mini__item { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .75rem; }
.trend-mini__item span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trend-mini__item b { color: var(--green-dark); font-size: .72rem; white-space: nowrap; }

.copy-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.copy-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.copy-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-3);
}
.copy-card__head strong { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; }
.copy-card textarea {
  width: 100%;
  min-height: 210px;
  flex: 1;
  padding: 13px 14px;
  border: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: .82rem;
  line-height: 1.55;
  resize: vertical;
}
.copy-card textarea:focus { outline: none; box-shadow: inset 0 0 0 2px rgba(0, 155, 95, .25); }
#copy-pinterest-title,
#copy-hashtags { min-height: 120px; }
.copy-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-top: 1px solid var(--line-soft);
  background: #fcfdfc;
}
.char-count { color: var(--text-muted); font-size: .68rem; }
.char-count.is-over { color: var(--danger); font-weight: 700; }
.share-card { padding: 16px; }
.radar-card { padding-bottom: 16px; }
.radar-card > :not(.copy-card__head) { margin-left: 16px; margin-right: 16px; }
.radar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin: 10px 0 4px; }
.radar-btn { justify-content: flex-start; text-align: left; white-space: normal; }
.radar-subtitle { margin: 18px 0 2px; font-size: 1rem; }
.radar-respostas { display: grid; gap: 12px; margin-top: 10px; }
.radar-resposta { display: grid; gap: 6px; }
.radar-resposta textarea { width: 100%; min-height: 72px; resize: vertical; }
.radar-resposta .btn { justify-self: start; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.share-row .btn { flex: 1 1 auto; }
.copy-tips { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: .78rem; color: var(--text-soft); }
.copy-tips li { display: flex; gap: 7px; align-items: flex-start; }
.copy-tips li::before { content: "•"; color: var(--green); font-weight: 900; }

/* ---------- Central de Cupons ---------- */
.coupon-admin-list { display: flex; flex-direction: column; gap: 10px; }
.coupon-admin-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--store-color, var(--green));
  border-radius: 12px;
  background: var(--surface);
}
.coupon-admin-item--ml { --store-color: var(--ml); }
.coupon-admin-item--shopee { --store-color: var(--shopee); }
.coupon-admin-item__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.coupon-admin-item__title { margin: 0; font-size: .86rem; font-weight: 700; line-height: 1.3; }
.coupon-admin-item__rule { margin: 0; color: var(--text-soft); font-size: .74rem; line-height: 1.4; }
.coupon-admin-item__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.coupon-admin-item__code {
  padding: 4px 8px;
  border: 1px dashed #b9c6c0;
  border-radius: 6px;
  background: var(--surface-3);
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
}
.coupon-admin-item__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.store-filter { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.store-filter select { min-height: 34px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: .78rem; }
.form-hint { margin: 8px 0 0; color: var(--text-muted); font-size: .72rem; line-height: 1.45; }

/* ---------- Ads Hub ---------- */
.ads-grid { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
.preset-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: .73rem;
  font-weight: 600;
  transition: background .16s, border-color .16s, color .16s;
}
.chip:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-soft); }
.utm-output {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed #b9c6c0;
  border-radius: 10px;
  background: var(--surface-3);
}
.utm-output code {
  display: block;
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: .72rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  user-select: all;
}
.output-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.link-history { display: flex; flex-direction: column; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.link-history__item { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.link-history__item div { min-width: 0; flex: 1; }
.link-history__item strong { display: block; font-size: .72rem; }
.link-history__item span { display: block; color: var(--text-muted); font-size: .64rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creative-result { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.creative-block { padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-3); }
.creative-block__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.creative-block__head span { color: var(--text-soft); font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.creative-block p { margin: 0; font-size: .8rem; line-height: 1.5; white-space: pre-line; }
.roas-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.roas-item { padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-3); }
.roas-item span { display: block; color: var(--text-muted); font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.roas-item strong { display: block; margin-top: 2px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; color: var(--navy); overflow-wrap: anywhere; }
.roas-item--good strong { color: var(--green-dark); }
.roas-item--bad strong { color: var(--danger); }
.roas-note { margin: 10px 0 0; color: var(--text-muted); font-size: .7rem; line-height: 1.45; }

/* ---------- Produtos / tabelas ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: .78rem; }
.data-table th {
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-3);
  color: var(--text-soft);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.data-table td { padding: 9px 11px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfdfc; }
.table-product { display: flex; align-items: center; gap: 9px; min-width: 220px; }
.table-product img { width: 40px; height: 40px; flex: none; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.table-product strong { display: block; font-size: .78rem; font-weight: 600; line-height: 1.3; max-width: 280px; }
.table-product small { display: block; color: var(--text-muted); font-size: .64rem; }
.store-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.store-tag { display: inline-flex; align-items: center; padding: 3px 6px; border-radius: 5px; font-size: .6rem; font-weight: 800; letter-spacing: .02em; }
.store-tag--ml { background: var(--ml); color: var(--ml-text); }
.store-tag--shopee { background: var(--shopee-soft); color: var(--shopee-dark); }
.store-tag--aliexpress { background: var(--aliexpress-soft); color: var(--aliexpress-dark); }
.store-tag--off { background: var(--surface-2); color: var(--text-muted); }
.table-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.export-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- Rodapé admin ---------- */
.admin-footer {
  padding: 20px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: .72rem;
  text-align: center;
}
.admin-footer a { color: var(--green-dark); font-weight: 600; text-decoration: none; }
.admin-footer a:hover { text-decoration: underline; }

/* ---------- Responsivo dos componentes ---------- */
@media (min-width: 640px) {
  .copy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .copy-card--wide { grid-column: 1 / -1; }
  .roas-results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .admin-grid--sidebar { grid-template-columns: 360px minmax(0, 1fr); }
  .admin-sidebar { position: sticky; top: 148px; }
  .ads-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ads-grid .panel-card--full { grid-column: 1 / -1; }
}

/* Entre 900px e 1099px a aba Copys ainda é uma coluna: o painel lateral não pode grudar e cobrir os cards */
@media (min-width: 900px) and (max-width: 1099px) {
  .copys-layout > .admin-sidebar { position: static; }
}

@media (min-width: 1100px) {
  .copys-layout { grid-template-columns: 330px minmax(0, 1fr); align-items: start; }
  .copy-config { position: sticky; top: 148px; }
}

/* ---------- Impressão ---------- */
@media print {
  .admin-topbar, .admin-footer, .data-actions, .panel-actions, .toast { display: none !important; }
  body { background: #fff; }
  .panel-card, .kpi { box-shadow: none; break-inside: avoid; }
}

/* ---------- 7 KPIs em uma linha nas telas largas ---------- */
@media (min-width: 1280px) {
  .kpi-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

/* ---------- Tela de bloqueio do painel (PIN) ---------- */
.pin-lock {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #1b2853;
}
.pin-lock[hidden] { display: none !important; }
.pin-lock__card {
  width: min(360px, 100%);
  padding: 28px 24px 22px;
  border-radius: 20px;
  background: #fff;
  color: var(--navy);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.pin-lock__logo { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; }
.pin-lock__title { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; }
.pin-lock__sub { margin: 0 0 18px; color: var(--text-muted); font-size: .88rem; }
.pin-lock__input {
  width: 100%;
  height: 56px;
  border: 2px solid var(--line, #dfe7e3);
  border-radius: 14px;
  background: #f5f8f7;
  color: var(--navy);
  font: 800 1.6rem/1 var(--font-display);
  letter-spacing: .6em;
  text-align: center;
  text-indent: .6em;
}
.pin-lock__input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 155, 95, .18); }
.pin-lock__erro { min-height: 1.2em; margin: 10px 0 0; color: #d93838; font-size: .85rem; font-weight: 600; }
.pin-lock__acoes { display: grid; gap: 8px; margin-top: 14px; }
.pin-lock__acoes .btn { width: 100%; min-height: 46px; }
.pin-lock.is-shake .pin-lock__card { animation: pin-shake .35s; }
@keyframes pin-shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
body.is-locked { overflow: hidden; }
