/* ══════════════════════════════════════════════════════════════════════════
   FAZ A CONTA — versão simples
   Tudo escopado em .faz-conta-app para não vazar estilos no WordPress.
   ══════════════════════════════════════════════════════════════════════════ */

/* Aplica o fundo total somente quando o app é a página principal. */
html:has(body > .faz-conta-app),
body:has(> .faz-conta-app) {
  min-height: 100%;
  margin: 0;
  background: #07162F;
  transition: background-color .25s ease;
}
html:has(body > .faz-conta-app[data-theme="light"]),
body:has(> .faz-conta-app[data-theme="light"]) {
  background: #E8EAF0;
}

.faz-conta-app *,
.faz-conta-app *::before,
.faz-conta-app *::after { box-sizing: border-box; margin: 0; padding: 0; }
.faz-conta-app [hidden] { display: none !important; }

.faz-conta-app {
  --bg: #07162F;
  --card: #10233F;
  --ink: #F7F9FC;
  --muted: #A8B6CA;
  --line: #29405F;
  --soft: #172D4A;
  --button-bg: #132945;
  --button-hover: #1A3454;
  --shadow: rgba(0, 8, 24, .22);
  --green: #16A34A;
  --red: #DC2626;
  --mc: #EE4D2D;   /* accent padrão = laranja da marca Shopee (aba inicial) */
  --radius: 20px;

  /* O reset acima só atinge os descendentes (.faz-conta-app *); o próprio
     container precisa de border-box para que width:100% + padding não
     ultrapassem a viewport e gerem scroll horizontal no mobile. */
  box-sizing: border-box;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--mc) 7%, transparent), transparent 28rem),
    var(--bg);
  width: 100%;
  max-width: 1180px;
  min-height: 100vh;
  min-height: 100dvh; /* respeita a barra de endereço dos navegadores mobile */
  margin: 0 auto;
  padding: 28px 28px 36px;
  line-height: 1.5;
  /* clip (em vez de hidden) impede scroll horizontal SEM criar um scroll container,
     que quebraria o position:sticky do card de resultado em .fc-main. */
  overflow-x: clip;
  transition: background .25s ease;
}
.faz-conta-app[data-theme="light"] {
  --bg: #E8EAF0;          /* Athens Gray */
  --card: #FFFFFF;
  --ink: #1C2130;         /* quase-preto frio */
  --muted: #5B6478;
  --line: #D3D8E4;
  --soft: #EFF1F6;        /* fundo de inputs, um cinza frio bem claro */
  --button-bg: rgba(255,255,255,.82);
  --button-hover: #FFFFFF;
  --shadow: rgba(28, 36, 64, .07);
}

/* ═══ HEADER ═══ */
.fc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);   /* divisor sutil header ↔ corpo */
}
.fc-brand-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}
.fc-logo {
  width: 82px; height: 58px;
  border-radius: 0;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: none;
}
.fc-logo-img { width: 100%; height: 100%; object-fit: contain; }
.fc-brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.fc-project-name {
  color: var(--ink);
  font-size: clamp(21.6px, 2.4vw, 28.8px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
  white-space: nowrap;
}
.fc-project-tagline {
  color: var(--muted);
  font-size: clamp(12.4px, 1.15vw, 13.8px);
  font-weight: 500;
  letter-spacing: -.005em;
  line-height: 1.25;
}
/* Cluster à direita: abas (segmented control) + ações utilitárias */
.fc-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
.fc-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.fc-reset,
.fc-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--button-bg);
  color: var(--muted);
  cursor: pointer;
  font: 700 14.4px/1 'DM Sans', system-ui, sans-serif;
  padding: 11px 14px;
  transition: .15s ease;
}
.fc-reset:hover,
.fc-theme-toggle:hover { color: var(--ink); background: var(--button-hover); }
.fc-theme-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.fc-theme-icon svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;   /* raios do sol podem passar levemente do viewBox ao escalar */
}
.fc-theme-icon .ti-sun,
.fc-theme-icon .ti-moon {
  transition: opacity .2s ease;
}
/* Estado em repouso por tema — funciona sem JS / com prefers-reduced-motion:
   navy → lua, branco → sol. A animação GSAP assume durante a troca. */
.fc-theme-icon .ti-sun  { opacity: 0; }
.fc-theme-icon .ti-moon { opacity: 1; }
.faz-conta-app[data-theme="light"] .fc-theme-icon .ti-sun  { opacity: 1; }
.faz-conta-app[data-theme="light"] .fc-theme-icon .ti-moon { opacity: 0; }

/* ═══ ABAS — segmented control ═══ */
/* "Casca" única que agrupa as abas como um controle segmentado coeso. */
.fc-tabs {
  display: inline-flex;
  align-items: stretch;
  gap: 4px;
  padding: 4px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: inset 0 1px 2px var(--shadow);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.fc-tabs::-webkit-scrollbar { display: none; }
/* Aba oculta via flag de visibilidade (enabled:false no objeto MP em app.js).
   Garante que o atributo [hidden] vença o display:inline-flex abaixo. */
.fc-tab[hidden] { display: none !important; }

.fc-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  padding: 9px 16px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15.6px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  flex-shrink: 0;
}
.fc-tab-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--tab-color);
  flex-shrink: 0;
}
.fc-tab:hover { color: var(--ink); background: color-mix(in srgb, var(--button-hover) 55%, transparent); }
.fc-tab.active,
.fc-tab.active:hover {
  color: var(--ink);
  background: var(--card);
  border-color: color-mix(in srgb, var(--tab-color) 50%, var(--line));
  box-shadow: 0 2px 10px color-mix(in srgb, var(--tab-color) 16%, transparent);
}

/* ═══ LAYOUT PRINCIPAL ═══ */
.fc-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  align-items: start;
}

/* ═══ CARDS ═══ */
.fc-card {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 14px 40px var(--shadow);
}
.fc-card-head {
  margin: -4px -4px 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.fc-mp-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 15.6px;
  font-weight: 800;
  color: #fff;
  background: var(--mc);
}
.fc-mp-hint { font-size: 15px; color: var(--muted); margin-top: 10px; max-width: 680px; }
.fc-mp-reference { margin-top: 5px; }

/* ═══ CAMPOS ═══ */
.fc-field { margin-bottom: 19px; }
.fc-form-card > .fc-field:last-child { margin-bottom: 0; }
#marketplaceExtras:empty { display: none; }
#marketplaceExtras:not(:empty) {
  margin-top: 4px;
}
.fc-label {
  display: block;
  font-size: 15.6px;
  font-weight: 700;
  margin-bottom: 8px;
}
.fc-input-wrap { position: relative; display: flex; align-items: center; }
.fc-input {
  width: 100%;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.fc-input:focus {
  outline: none;
  border-color: var(--mc);
  background: var(--card);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mc) 12%, transparent);
}
.fc-input[aria-invalid="true"] { border-color: var(--red); }
.fc-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(220,38,38,.1); }
.fc-input.has-prefix { padding-left: 42px; }
.fc-input.has-suffix { padding-right: 38px; }
.fc-prefix, .fc-suffix {
  position: absolute;
  font-size: 16.8px;
  font-weight: 700;
  color: var(--muted);
  pointer-events: none;
}
.fc-prefix { left: 14px; }
.fc-suffix { right: 14px; }
select.fc-input { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.fc-note { font-size: 13.8px; color: var(--muted); margin-top: 7px; line-height: 1.45; }
.fc-note.is-error { color: var(--red); font-weight: 600; }
.fc-note.fc-ml-super-note {
  margin-top: 9px;
  padding: 9px 11px;
  border: 1px solid color-mix(in srgb, var(--mc) 38%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--mc) 10%, var(--soft));
  color: color-mix(in srgb, var(--mc) 30%, var(--ink));
}
.fc-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  vertical-align: 1px;
  cursor: help;
}
.fc-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 8px);
  width: min(260px, 72vw);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 8px 22px var(--shadow);
  font-size: 12.6px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  transform: translateX(-50%) translateY(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
}
.fc-tooltip:hover::after,
.fc-tooltip:focus::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.fc-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15.6px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}
.fc-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--mc);
}
.fc-goal-field {
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--mc) 38%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--mc) 5%, var(--soft));
}

/* ═══ CONFIGURAÇÕES DO MERCADO LIVRE ═══ */
.fc-ml-settings {
  margin: 16px 0 22px;
  padding: 17px;
  border: 1px solid color-mix(in srgb, var(--mc) 32%, var(--line));
  border-radius: 15px;
  background: color-mix(in srgb, var(--mc) 4%, var(--soft));
}
.fc-ml-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 3px;
  font-size: 15.6px;
}
.fc-ml-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #F2B705;
  color: #17181C;
  font-size: 13.2px;
  font-weight: 800;
}
.fc-amz-chip {
  background: #FF9900;
  color: #17181C;
}
.fc-ml-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.fc-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.fc-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
#mlAccountChoices {
  grid-template-columns: repeat(2, minmax(0, 220px));
  justify-content: center;
}
.fc-reputation-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.fc-quick-grid .fc-field { margin-bottom: 0; }
.fc-ml-grid .fc-field { margin-bottom: 0; }
.fc-span-2 { grid-column: 1 / -1; }
.fc-dim-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.fc-advanced {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.fc-advanced summary {
  width: fit-content;
  cursor: pointer;
  color: var(--ink);
  font-size: 15.6px;
  font-weight: 800;
  list-style: none;
  user-select: none;
}
.fc-advanced summary::-webkit-details-marker { display: none; }
.fc-advanced summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  margin-left: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
}
.fc-advanced[open] summary::after { content: "-"; }
.fc-ml-weight-box {
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}
.fc-ml-weight-box span,
.fc-ml-weight-box small {
  color: var(--muted);
}
.fc-ml-weight-box strong {
  color: var(--ink);
  font-size: 18px;
}

/* ═══ ORIGEM DO ENVIO DESABILITADA (frete grátis < R$79) ═══ */
.fc-field.is-disabled { opacity: .55; }
.fc-input:disabled,
.fc-input[disabled] {
  cursor: not-allowed;
  background: var(--soft);
  color: var(--muted);
}

/* ═══ AVISO DE COPARTICIPAÇÃO DE FRETE (regras 2026) ═══ */
.fc-ml-freight-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}
.fc-ml-freight-notice-ic {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  color: #17181C;
  background: var(--muted);
}
.fc-ml-freight-notice.is-shared {
  border-color: var(--mc);
  background: color-mix(in srgb, var(--mc) 14%, var(--card));
}
.fc-ml-freight-notice.is-shared .fc-ml-freight-notice-ic { background: var(--mc); color: #17181C; }
.fc-ml-freight-notice.is-ml {
  border-color: color-mix(in srgb, var(--green) 55%, var(--line));
  background: color-mix(in srgb, var(--green) 14%, var(--card));
}
.fc-ml-freight-notice.is-ml .fc-ml-freight-notice-ic { background: var(--green); color: #fff; }
.fc-ml-freight-notice.is-muted { color: var(--muted); }
.fc-ml-freight-notice.is-muted .fc-ml-freight-notice-ic { background: var(--muted); color: var(--card); }

/* ═══ MODO DE CÁLCULO ═══ */
.fc-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fc-mode-btn {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s ease;
}
.fc-mode-btn:hover { border-color: color-mix(in srgb, var(--line) 55%, var(--ink)); background: var(--card); }
.fc-mode-btn:focus-visible {
  outline: none;
  border-color: var(--mc);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mc) 35%, transparent);
}
.fc-mode-btn strong { display: block; font-size: 16.2px; color: var(--ink); }
.fc-mode-btn span { display: block; font-size: 13.8px; color: var(--muted); margin-top: 2px; }
.fc-reputation-btn strong::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 999px;
  vertical-align: 1px;
  background: var(--rep-color, var(--muted));
}
.fc-reputation-btn[data-ml-reputation="green"] { --rep-color: #22C55E; }
.fc-reputation-btn[data-ml-reputation="yellow"] { --rep-color: #FACC15; }
.fc-reputation-btn[data-ml-reputation="red"] { --rep-color: #EF4444; }
.fc-reputation-btn[data-ml-reputation="no_reputation"] { --rep-color: #9CA3AF; }
.fc-mode-btn.active {
  border-color: var(--mc);
  background: color-mix(in srgb, var(--mc) 12%, var(--card));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mc) 10%, transparent);
}

/* ═══ TIPO DE CONTA (Clássico / Premium): card preenchido quando selecionado ═══ */
#mlAccountChoices .fc-mode-btn {
  position: relative;
  text-align: center;
  padding: 16px 14px;
  border-radius: 14px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
#mlAccountChoices .fc-mode-btn:hover {
  border-color: var(--mc);
  background: var(--card);
  transform: translateY(-2px);
}
#mlAccountChoices .fc-mode-btn.active {
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--mc) 26%, var(--card)),
    color-mix(in srgb, var(--mc) 12%, var(--card)));
  border-color: var(--mc);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--mc) 45%, transparent),
    0 8px 20px color-mix(in srgb, var(--mc) 18%, transparent);
}
#mlAccountChoices .fc-mode-btn.active strong {
  color: color-mix(in srgb, var(--mc) 80%, var(--ink));
}
#mlAccountChoices .fc-mode-btn.active span {
  color: color-mix(in srgb, var(--mc) 55%, var(--ink));
}
/* check no canto do card selecionado */
#mlAccountChoices .fc-mode-btn.active::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 11px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  color: var(--mc);
}

/* ═══ RESULTADO ═══ */
.fc-result-card {
  position: sticky;
  top: 16px;
  align-self: start;                 /* não estica a coluna no grid */
  max-height: calc(100dvh - 32px);   /* resultado alto rola internamente */
  overflow: auto;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--mc) 26%, transparent), transparent 15rem),
    linear-gradient(155deg, #202133 0%, #15161E 72%);
  border: none;
  color: #fff;
  box-shadow: 0 22px 50px rgba(16, 18, 28, .18);
}
.fc-result-card:has(.fc-empty) {
  background: linear-gradient(155deg, #142945 0%, #0D1C33 100%);
  border: 1px solid var(--line);
}
/* No modo branco o card vazio usa o mesmo Athens Gray do fundo, com texto escuro. */
.faz-conta-app[data-theme="light"] .fc-result-card:has(.fc-empty) {
  background: #E8EAF0;
  border: 1px solid var(--line);
}
.faz-conta-app[data-theme="light"] .fc-empty { color: var(--muted); }
.faz-conta-app[data-theme="light"] .fc-empty strong { color: var(--ink); }
.fc-result-label { font-size: 13.2px; font-weight: 800; color: #B7C2D4; text-transform: uppercase; letter-spacing: .08em; }
.fc-result-big {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(37.2px, 3.84vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  margin: 6px 0 4px;
  line-height: 1.1;
}
.fc-result-big.is-positive { color: #6EE7A0; }
.fc-result-big.is-negative { color: #FCA5A5; }
.fc-result-sub { font-size: 15px; color: #A0ABC0; margin-bottom: 20px; }

.fc-breakdown {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 15px;
}
.fc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  font-size: 16.2px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.fc-row:last-child { border-bottom: none; }
.fc-row .lbl { min-width: 0; color: #B6C0D2; }
.fc-row .val { flex-shrink: 0; font-family: 'JetBrains Mono', monospace; font-weight: 600; }
.fc-row.neg .val { color: #FCA5A5; }
.fc-row.credit .val { color: #6EE7A0; }
.fc-row.is-exempt {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}
.fc-row.is-exempt .val { font-size: 13.2px; }
.fc-row.total { padding-top: 10px; margin-top: 2px; border-top: 1.5px solid rgba(255,255,255,.16); border-bottom: none; }
.fc-row.total .lbl { font-weight: 700; color: #fff; }
.fc-row.total .val { font-weight: 800; font-size: 19.2px; }

.fc-profit-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 700;
}
.fc-profit-pill.good { background: rgba(22,163,74,.16); border: 1px solid rgba(22,163,74,.4); }
.fc-profit-pill.bad  { background: rgba(220,38,38,.16); border: 1px solid rgba(220,38,38,.4); }
.fc-profit-pill .pp-lbl { font-size: 15.6px; color: #D1D9E6; }
.fc-profit-pill .pp-val { font-family: 'JetBrains Mono', monospace; font-size: 24px; font-weight: 800; }
.fc-profit-pill.good .pp-val { color: #6EE7A0; }
.fc-profit-pill.bad  .pp-val { color: #FCA5A5; }
.fc-result-metrics {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 3px 0;
  color: #A0ABC0;
  font-size: 13.2px;
}

/* ═══ EXPORTAR PDF ═══ */
.fc-export-pdf { margin-top: 14px; }
.fc-export-pdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: var(--mc);
  /* a cor do texto/ícone vem inline (contraste calculado por marketplace) */
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .15s ease, transform .12s ease, opacity .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.fc-export-pdf-btn svg { flex-shrink: 0; }
.fc-export-pdf-btn:hover { filter: brightness(1.06); }
.fc-export-pdf-btn:active { transform: scale(.98); }
.fc-export-pdf-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mc) 45%, transparent), 0 0 0 5px rgba(255,255,255,.25);
}
.fc-export-pdf-btn[aria-busy="true"],
.fc-export-pdf-btn:disabled { opacity: .7; cursor: wait; }
.fc-export-pdf-msg {
  margin: 8px 2px 0;
  font-size: 13.2px;
  color: #FCA5A5;
}

.fc-warn {
  margin-top: 14px;
  font-size: 14.4px;
  color: #FCD34D;
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.45;
}
.fc-empty { text-align: center; padding: 58px 12px; color: #A0ABC0; font-size: 16.8px; }
.fc-empty svg { opacity: .35; margin-bottom: 12px; }
.fc-empty strong { display: block; color: #fff; font-size: 18px; margin-bottom: 4px; }

/* ═══ FOOTER ═══ */
.fc-footer { margin-top: 28px; text-align: center; padding: 0 12px; }
.fc-footer p { font-size: 13.8px; color: var(--muted); }

/* ═══ RESPONSIVO ═══ */
@media (max-width: 860px) {
  .faz-conta-app { padding: 22px 18px 32px; }
  .fc-main { grid-template-columns: 1fr; }
  .fc-result-card { position: static; max-height: none; overflow: visible; }
  .fc-reputation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .faz-conta-app { padding: 16px 12px 28px; }
  /* Empilha: marca no topo, depois abas full-width, depois ações. */
  .fc-header { flex-direction: column; align-items: stretch; gap: 16px; margin-bottom: 20px; padding-bottom: 16px; }
  .fc-logo { width: 72px; height: 50px; border-radius: 0; }
  .fc-project-name { font-size: 20.4px; }
  .fc-header-right { width: 100%; flex-direction: column; align-items: stretch; gap: 12px; }
  .fc-header-actions { gap: 6px; justify-content: flex-end; }
  .fc-reset,
  .fc-theme-toggle { padding: 9px 10px; }
  .fc-reset { font-size: 0; }
  .fc-reset::after { content: "Limpar"; font-size: 13.2px; }
  .fc-theme-toggle { font-size: 0; }
  .fc-theme-toggle .fc-theme-icon { width: 15px; height: 15px; }
  .fc-tabs { width: 100%; margin-inline: 0; }
  .fc-tab { flex: 1; padding: 10px 13px; font-size: 15.6px; }
  .fc-card { padding: 20px 17px; border-radius: 17px; }
  .fc-result-big { font-size: 38.4px; }
  .fc-mode { grid-template-columns: 1fr; }
  .fc-choice-grid { grid-template-columns: 1fr; }
  .fc-reputation-grid { grid-template-columns: 1fr; }
  .fc-quick-grid { grid-template-columns: 1fr; }
  .fc-ml-grid { grid-template-columns: 1fr; }
  /* a regra #mlAccountChoices (ID) fixa 2×220px e estouraria a tela:
     o ID abaixo tem prioridade sobre a regra base e colapsa em 1 coluna. */
  #mlAccountChoices { grid-template-columns: 1fr; justify-content: stretch; }
  .fc-span-2 { grid-column: auto; }
  .fc-row { gap: 16px; }
  .fc-row .lbl { min-width: 0; }
  .fc-row .val { flex-shrink: 0; }
  .fc-profit-pill { align-items: flex-start; gap: 10px; }
  .fc-profit-pill .pp-val { font-size: 21.6px; }
}
