/* ============================================================
   PGTBoardView — estilo do site
   Paleta (paridade com o app desktop):
   fundo #0A0A0A · cards #141414 · verde #2E7D32 · verde claro #4CAF50
   Sóbrio: sem neon, sem transparência exagerada.
   ============================================================ */
:root {
  --bg: #0A0A0A;
  --card: #141414;
  --card-border: #242424;
  --green: #2E7D32;
  --green-light: #4CAF50;
  --green-dark: #1B5E20;
  --text: #F2F2F2;
  --text-muted: #9E9E9E;
  --danger: #C62828;
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--green-light); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--green-light);
  outline-offset: 2px;
  border-radius: 4px;
}

[hidden] { display: none !important; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(10, 10, 10, 0.97);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { height: 38px; width: auto; border-radius: 6px; }
.brand .brand-green { color: var(--green-light); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex-wrap: wrap;
}
.main-nav a { color: var(--text-muted); font-size: 0.95rem; }
.main-nav a:hover { color: var(--text); text-decoration: none; }

.lang-switch { display: flex; gap: 6px; margin-left: 8px; }
.lang-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 3px 5px;
  cursor: pointer;
  line-height: 0;
  opacity: 0.55;
}
.lang-btn svg { width: 24px; height: 17px; border-radius: 2px; display: block; }
.lang-btn:hover { opacity: 0.9; }
.lang-btn.active { opacity: 1; border-color: var(--green); }

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: var(--radius);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-light); }
.btn-outline {
  background: transparent;
  color: var(--green-light);
  border: 1px solid var(--green);
}
.btn-outline:hover { background: rgba(46, 125, 50, 0.15); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--card-border); }
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-block { display: block; width: 100%; }
.muted { color: var(--text-muted); }
.btn-lg { padding: 14px 34px; font-size: 1.08rem; }
.checkout-or { text-align: center; color: var(--text-muted); margin: 14px 0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 70px;
  text-align: center;
  /* brilho verde + grade sutil estilo PCB */
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(46, 125, 50, 0.22), transparent),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(46, 125, 50, 0.055) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(46, 125, 50, 0.055) 39px 40px),
    var(--bg);
}
.hero-badge {
  display: inline-block;
  border: 1px solid var(--green);
  color: var(--green-light);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.85rem;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  line-height: 1.25;
  max-width: 860px;
  margin: 0 auto 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero p {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 32px;
  font-size: 1.08rem;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-logo { height: 110px; width: auto; margin-bottom: 26px; border-radius: 14px; }

.format-chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.chip {
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 0.85rem;
  color: var(--green-light);
  background: rgba(46, 125, 50, 0.12);
  border: 1px solid #1E4620;
  border-radius: 6px;
  padding: 4px 12px;
}

/* ---------- Seções ---------- */
.section { padding: 70px 0; }
.section-alt { background: #0E0E0E; border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.section h2 { font-size: 1.9rem; text-align: center; margin-bottom: 10px; }
.section .section-sub {
  color: var(--text-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 46px;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
}
.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: rgba(46, 125, 50, 0.18);
  color: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-card .icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Como funciona ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px;
}
.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--green-light);
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 20px 16px; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Reveal ao rolar ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .feature-card, .feature-card:hover { transform: none; }
  .plan-tier, .plan-tier:hover { transform: none; transition: none; }
  .plan-tier::before { transition: none; }
}

/* ---------- Screenshots ---------- */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.shot {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Preço ---------- */
.price-card {
  background: var(--card);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  max-width: 420px;
  margin: 0 auto;
  padding: 34px;
  text-align: center;
  transition: max-width .25s ease, padding .25s ease;
}
.price-card.plan-catalog-open { max-width: 1100px; padding: 34px 28px 38px; }
.price-card.checkout-focused { max-width: 520px; }
.price-card.plan-catalog-open > h3,
.price-card.plan-catalog-open > ul,
.price-card.plan-catalog-open > #need-account,
.price-card.checkout-focused > h3,
.price-card.checkout-focused > ul,
.price-card.checkout-focused > #need-account { display: none; }
.price-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.price-value { font-size: 2.6rem; font-weight: 700; color: var(--green-light); }
.price-value small { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.price-card ul { list-style: none; margin: 22px 0 26px; text-align: left; }
.price-card li {
  padding: 7px 0 7px 28px;
  color: var(--text-muted);
  position: relative;
}
.price-card li::before {
  content: "✓";
  color: var(--green-light);
  position: absolute;
  left: 4px;
  font-weight: 700;
}
.price-note { color: var(--text-muted); font-size: 0.85rem; margin-top: 14px; }

.plan-picker {
  margin-top: 20px;
  padding-top: 20px;
  text-align: left;
  border-top: 1px solid var(--card-border);
}
.plan-catalog-open .plan-picker { margin-top: 0; padding-top: 0; border-top: 0; }
.plan-picker[hidden] { display: none; }
.plan-picker-heading { margin-bottom: 20px; text-align: center; }
.plan-picker-heading h4 { margin: 5px 0 7px; font-size: clamp(1.25rem, 2vw, 1.65rem); }
.plan-picker-heading p { margin: 0; color: var(--text-muted); font-size: .84rem; line-height: 1.5; }
.plan-picker-kicker { color: var(--green-light); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
/* ── Seletor de período ────────────────────────────────────────────────────
   O período é uma escolha GLOBAL, não uma propriedade de cada plano. Antes cada
   um dos 4 planos listava os 4 períodos: 16 blocos de preço, 16 CTAs e 16 selos
   "Economize". As colunas ficavam com alturas diferentes e nada se destacava.
   Com o seletor aqui em cima, cada plano mostra UM preço e as 4 colunas casam. */
/* Cada período é uma pastilha COM superfície, borda e círculo de seleção. Antes
   só a opção ativa tinha fundo; as outras eram texto solto sobre um trilho quase
   invisível e não se liam como clicáveis. O círculo é o que torna óbvio, à
   primeira vista, que ali se escolhe uma opção. */
.plan-periods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin: 0 auto 26px;
}
.plan-period {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 17px 10px 13px;
  color: var(--text);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
/* o rádio nativo some, mas continua sendo ele que recebe foco e teclado */
.plan-period input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.plan-period-dot {
  flex: none;
  width: 15px;
  height: 15px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.plan-period:hover { background: rgba(46, 125, 50, .12); border-color: rgba(76, 175, 80, .55); }
.plan-period:hover .plan-period-dot { border-color: var(--green-light); }
.plan-period:has(input:focus-visible) { outline: 2px solid var(--green-light); outline-offset: 2px; }
.plan-period:has(input:checked) {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 6px 18px rgba(46, 125, 50, .3);
}
.plan-period:has(input:checked) .plan-period-dot {
  background: #fff;
  border-color: #fff;
  box-shadow: inset 0 0 0 2.5px var(--green);
}
.plan-period-save { font-size: .62rem; font-weight: 800; color: var(--green-light); }
.plan-period:has(input:checked) .plan-period-save { color: rgba(255, 255, 255, .88); }

/* ── Grade dos planos ───────────────────────────────────────────────────── */
.plan-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  padding-top: 11px; /* espaço para o selo "Mais escolhido" sobre a borda */
}
.plan-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 18px 18px;
  text-align: left;
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  border: 1px solid var(--card-border);
  border-radius: 16px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.plan-tier:hover {
  transform: translateY(-3px);
  border-color: rgba(76, 175, 80, .45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .3);
}
/* Realce ao passar o mouse: um FRAGMENTO da tela do app (assets/img/plans/),
   não a imagem inteira. Ancorado no rodapé do cartão e dissolvido para cima
   pela máscara, então o texto e o preço nunca competem com ele.
   Sem overflow:hidden no cartão — isso cortaria o selo "Mais escolhido", que
   fica acima da borda; por isso o arredondamento vai aqui embaixo. */
.plan-tier::before {
  content: "";
  position: absolute;
  /* canto inferior DIREITO: o texto do cartão é alinhado à esquerda, então
     assim o fragmento realça sem passar por trás das linhas de benefício */
  inset: auto 0 0 auto;
  width: 66%;
  height: 58%;
  background-image: var(--plan-art, none);
  background-position: center;
  background-size: cover;
  border-radius: 0 0 15px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  /* screen: o preto do print some e só as trilhas/pads claros acendem. Sobre um
     cartão escuro, uma imagem escura a 18% simplesmente não aparecia. */
  mix-blend-mode: screen;
  filter: saturate(1.15);
  /* dissolve na diagonal, em direção ao texto */
  -webkit-mask-image: linear-gradient(to top left, #000 0%, rgba(0, 0, 0, .4) 45%, transparent 82%);
  mask-image: linear-gradient(to top left, #000 0%, rgba(0, 0, 0, .4) 45%, transparent 82%);
}
.plan-tier:hover::before,
.plan-tier:focus-within::before { opacity: var(--plan-art-opacity, .62); }
/* o conteúdo fica acima do fragmento */
.plan-tier > * { position: relative; z-index: 1; }
.plan-tier.featured {
  background: linear-gradient(160deg, rgba(46, 125, 50, .16), rgba(255, 255, 255, .015));
  border-color: rgba(76, 175, 80, .6);
}
.plan-tier-popular {
  position: absolute;
  top: -11px;
  left: 18px;
  padding: 4px 11px;
  color: #071208;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--green-light);
  border-radius: 999px;
}
.plan-tier h5 { margin: 0 0 5px; font-size: 1.06rem; }
/* duas linhas reservadas: é o único texto de altura variável, e sem isso as
   quatro colunas voltam a começar o preço em alturas diferentes */
.plan-tier-description {
  min-height: 2.9em;
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: .74rem;
  line-height: 1.45;
}
.plan-tier-devices { display: flex; align-items: baseline; gap: 6px; margin: 0 0 16px; }
.plan-tier-devices strong { color: var(--green-light); font-size: 1.5rem; font-weight: 800; line-height: 1; }
.plan-tier-devices span { color: var(--text-muted); font-size: .73rem; font-weight: 700; }
.plan-tier-price {
  /* altura reservada para o preço + a linha do valor por mês: sem isso a grade
     inteira pula de altura ao trocar de período */
  min-height: 84px;
  padding: 15px 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}
.plan-tier-amount {
  display: block;
  font-size: clamp(1.5rem, 2.3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.plan-tier-equivalent { display: block; margin-top: 8px; color: var(--text-muted); font-size: .71rem; }
.plan-tier-benefits {
  display: grid;
  gap: 8px;
  margin: 16px 0 20px;
  color: var(--text-muted);
  font-size: .73rem;
  line-height: 1.35;
}
.plan-tier-benefits span { display: flex; gap: 8px; }
.plan-tier-benefits span::before { content: "✓"; color: var(--green-light); font-weight: 900; }

/* uma única chamada por plano, ancorada no rodapé do cartão */
.plan-option {
  width: 100%;
  margin-top: auto;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  font-size: .83rem;
  font-weight: 800;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.plan-option:hover:not(:disabled) { color: #fff; background: var(--green); border-color: var(--green); }
.plan-tier.featured .plan-option { color: #fff; background: var(--green); border-color: var(--green); }
.plan-tier.featured .plan-option:hover:not(:disabled) { color: #071208; background: var(--green-light); border-color: var(--green-light); }
.plan-option:focus-visible { outline: 2px solid var(--green-light); outline-offset: 2px; }
.plan-option:disabled { cursor: not-allowed; opacity: .48; }
.plan-payment-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; color: var(--text-muted); font-size: .76rem; text-align: center; }
.payment-picker {
  margin-top: 20px;
  padding-top: 16px;
  text-align: left;
  border-top: 1px solid var(--card-border);
}
.payment-picker[hidden] { display: none; }
.payment-back {
  margin: 0 0 16px;
  padding: 0;
  color: var(--text-muted);
  font: inherit;
  font-size: .78rem;
  cursor: pointer;
  background: transparent;
  border: 0;
}
.payment-back:hover { color: var(--green-light); }
.payment-back::before { content: "←"; margin-right: 6px; }
.payment-options { display: grid; gap: 10px; }
.payment-option {
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 67px;
  padding: 12px 14px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--card-border);
  border-radius: 11px;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.payment-option:hover { transform: translateY(-2px); background: rgba(46,125,50,.12); border-color: var(--green); }
.payment-option:focus-visible { outline: 2px solid var(--green-light); outline-offset: 2px; }
.payment-option[aria-busy="true"] { opacity: .72; cursor: wait; }
.payment-option > span:nth-child(2) { min-width: 0; }
.payment-option strong, .payment-option small { display: block; }
.payment-option strong { font-size: .94rem; }
.payment-option small { margin-top: 3px; color: var(--text-muted); font-size: .7rem; line-height: 1.35; }
.payment-option-icon { display: grid; place-items: center; width: 38px; height: 28px; }
.payment-option-icon.pix-br-flag { width: 34px; height: 24px; }
.payment-card-icon { color: var(--green-light); background: rgba(46,125,50,.12); border: 1px solid rgba(80,232,120,.25); border-radius: 7px; }
.payment-card-icon svg { width: 24px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.payment-option-arrow { color: var(--green-light); font-size: 1.45rem; line-height: 1; }

@media (max-width: 900px) {
  .plan-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .price-card, .price-card.plan-catalog-open { padding: 26px 16px; }
  .plan-options { grid-template-columns: 1fr; }
  /* uma coluna por linha: nada para alinhar, o texto volta a ocupar o que precisa */
  .plan-tier-description { min-height: 0; }
  /* Pastilhas em grade: auto-fit em vez de 2 colunas fixas — com "3 meses
     Economize 5%" numa coluna de 160px o conteúdo estourava para fora da tela.
     Abaixo de ~330px de grade elas passam a ocupar a linha inteira. */
  .plan-periods { display: grid; grid-template-columns: repeat(auto-fit, minmax(146px, 1fr)); gap: 8px; }
  .plan-period { justify-content: center; gap: 7px; padding: 9px 10px; font-size: .78rem; }
  .plan-period-dot { width: 14px; height: 14px; }
  .plan-period-save { font-size: .58rem; }
}

/* ---------- CTA final ---------- */
.cta-final { text-align: center; }
.cta-final h2 { margin-bottom: 10px; }
.cta-final p { color: var(--text-muted); margin-bottom: 28px; }

/* ---------- Formulários / páginas de auth ---------- */
.auth-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
}
.auth-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px;
  width: 100%;
  max-width: 440px;
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-card .auth-sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 26px; }
.auth-card .auth-links { margin-top: 20px; font-size: 0.92rem; color: var(--text-muted); text-align: center; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: #0F0F0F;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.field textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1.15em), calc(100% - 15px) calc(1.15em);
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 38px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-light);
}

.form-msg {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.93rem;
  margin-bottom: 16px;
}
.form-msg.error { background: rgba(198, 40, 40, 0.14); border: 1px solid var(--danger); color: #EF9A9A; }
.form-msg.success { background: rgba(46, 125, 50, 0.14); border: 1px solid var(--green); color: #A5D6A7; }

/* ---------- Conta ---------- */
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 50px 0;
  align-items: stretch;
}
@media (max-width: 720px) {
  .account-grid { grid-template-columns: 1fr; }
}
/* Lista de computadores com rolagem quando passar de ~4 PCs */
.dev-list { max-height: 300px; overflow-y: auto; margin-right: -8px; padding-right: 8px; }
.dev-list::-webkit-scrollbar { width: 8px; }
.dev-list::-webkit-scrollbar-track { background: transparent; }
.dev-list::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 4px; }
.dev-list::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }
.panel {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
}
.panel h2 { font-size: 1.15rem; margin-bottom: 18px; }
.panel .row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #1D1D1D; font-size: 0.95rem; }
.panel .row:last-of-type { border-bottom: none; }
.panel .row .label { color: var(--text-muted); }

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.badge-active { background: rgba(76, 175, 80, 0.18); color: var(--green-light); border: 1px solid var(--green); }
.badge-inactive { background: rgba(198, 40, 40, 0.15); color: #EF9A9A; border: 1px solid var(--danger); }

.refund-status {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: .86rem;
  line-height: 1.5;
}
.refund-status.is-open { border-color: #d49a27; background: rgba(212,154,39,.09); color: #ffd27a; }
.refund-status.is-success { border-color: var(--green); background: rgba(46,125,50,.12); color: #a5d6a7; }
.refund-status.is-danger { border-color: var(--danger); background: rgba(198,40,40,.10); color: #ef9a9a; }
.refund-payment { color: var(--text-muted); font-size: .8rem; margin: -3px 0 12px; }

/* Chat dos chamados de suporte (usado em conta.html e admin.html) */
.sup-thread { border: 1px solid var(--card-border); border-radius: 10px; padding: 12px; background: rgba(255,255,255,.02); }
.sup-thread-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.sup-thread-head strong { font-size: .95rem; }
.sup-msgs { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; padding: 4px; }
.sup-msg { max-width: 80%; padding: 8px 11px; border-radius: 12px; font-size: .9rem; line-height: 1.45; word-break: break-word; white-space: pre-wrap; }
.sup-msg .sup-meta { display: block; font-size: .68rem; opacity: .6; margin-top: 4px; white-space: normal; }
.sup-msg img { max-width: 220px; max-height: 220px; border-radius: 8px; margin-top: 6px; display: block; cursor: pointer; }
.sup-msg-user { align-self: flex-start; background: rgba(255,255,255,.06); border: 1px solid var(--card-border); }
.sup-msg-admin { align-self: flex-end; background: rgba(46,125,50,.20); border: 1px solid rgba(46,125,50,.5); }
.sup-empty { color: var(--text-muted); font-size: .85rem; padding: 8px 4px; }
.sup-reply { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.sup-reply-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sup-reply textarea, .sup-reply input[type="text"] {
  width: 100%; background: #0F0F0F; border: 1px solid var(--card-border);
  border-radius: 8px; padding: 10px 12px; color: var(--text);
  font-size: .95rem; font-family: inherit;
}
.sup-reply textarea:focus, .sup-reply input:focus { outline: none; border-color: var(--green-light); }
.sup-reply input[type="file"] { flex: 1; min-width: 150px; color: var(--text-muted); font-size: .82rem; }
.sup-reply input[type="file"]::file-selector-button {
  background: var(--panel-2, #1a1a1a); color: var(--text); border: 1px solid var(--card-border);
  border-radius: 6px; padding: 6px 10px; margin-right: 10px; cursor: pointer; font-size: .82rem;
}
.sup-preview { max-height: 56px; border-radius: 6px; border: 1px solid var(--card-border); }
.sup-ticket-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--card-border); border-radius: 8px; margin-bottom: 8px; cursor: pointer; }
.sup-ticket-item:hover { background: rgba(255,255,255,.03); }
/* Chamado com resposta nova: destaque forte pra não passar batido */
.sup-ticket-unread { border-color: rgba(46,125,50,.6); background: rgba(46,125,50,.12); align-items: center; }
.sup-ticket-unread:hover { background: rgba(46,125,50,.18); }
.sup-badge-new { display: inline-flex; align-items: center; gap: 6px; background: var(--green); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; }
.sup-badge-new .sup-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; display: inline-block; }
.sup-open-hint { color: var(--green-light); font-size: .8rem; font-weight: 600; white-space: nowrap; margin-left: 10px; }

.page-title { padding: 50px 0 0; }
.page-title h1 { font-size: 1.8rem; }
.page-title p { color: var(--text-muted); }

.account-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; position: relative; }
.account-alert-actions { display: flex; align-items: center; gap: 10px; margin-top: 50px; }
.account-admin-alerts { position: relative; z-index: 30; }
.account-admin-alerts:not([hidden]) { display: inline-flex; align-items: center; gap: 10px; }
#admin-link { margin: 0; }
.account-admin-alert-button {
  position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); background: var(--panel); border: 1px solid var(--card-border); border-radius: 12px;
  font-size: 1.18rem; cursor: pointer; transition: border-color .15s, background .15s, transform .15s;
}
.account-admin-alert-button:hover,
.account-admin-alert-button[aria-expanded="true"] { border-color: var(--green); background: rgba(46,125,50,.12); }
.account-admin-alert-button:active { transform: translateY(1px); }
.account-admin-alert-button:focus-visible { outline: 2px solid var(--green-light); outline-offset: 3px; }
.account-admin-alert-count {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  color: #fff; background: #d9363e; border: 2px solid var(--bg); font-size: .67rem; font-weight: 800;
}
.account-admin-alert-panel {
  position: absolute; top: calc(100% + 10px); right: 0; width: min(370px, calc(100vw - 40px));
  padding: 16px; color: var(--text); background: #121412; border: 1px solid var(--card-border);
  border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.account-admin-alert-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 2px 12px; }
.account-admin-alert-heading strong { font-size: .95rem; }
.account-admin-alert-heading span { color: var(--text-muted); font-size: .75rem; }
.account-admin-alert-list { display: grid; gap: 8px; }
.account-admin-alert-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%;
  padding: 12px; color: var(--text); text-decoration: none; background: rgba(255,255,255,.025);
  border: 1px solid var(--card-border); border-radius: 9px; font: inherit; text-align: left; cursor: pointer;
}
.account-admin-alert-item:hover { border-color: rgba(46,125,50,.7); background: rgba(46,125,50,.1); }
.account-admin-alert-item strong { display: block; margin-bottom: 3px; font-size: .88rem; }
.account-admin-alert-item span { color: var(--text-muted); font-size: .79rem; }
.account-admin-alert-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #e14d55; box-shadow: 0 0 0 4px rgba(225,77,85,.12); }
.account-admin-alert-empty { padding: 14px 12px; color: var(--text-muted); text-align: center; font-size: .84rem; border: 1px dashed var(--card-border); border-radius: 9px; }

.loading { text-align: center; padding: 80px 0; color: var(--text-muted); }

/* ---------- Rodapé ---------- */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 34px 0;
  margin-top: 60px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
}

/* ---------- Responsivo ---------- */
@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .main-nav { margin-left: 0; width: 100%; justify-content: flex-start; }
  .hero { padding: 50px 0 46px; }
  .hero-logo { height: 84px; }
  .section { padding: 50px 0; }
  .auth-card { padding: 26px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .account-title-row { display: block; }
  .account-title-row .page-title { padding-top: 34px; }
  .account-title-row .page-title h1 { margin-bottom: 8px; font-size: 1.9rem; }
  .account-title-row .page-title p { margin-bottom: 0; }
  .account-alert-actions { width: 100%; margin-top: 18px; flex-wrap: wrap; align-items: center; gap: 8px; }
  #account-admin-alerts { order: 1; }
  #account-support-alerts { order: 2; }
  #admin-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 14px; }
  .account-admin-alert-panel { position: fixed; top: 116px; right: 16px; left: 16px; width: auto; max-height: calc(100vh - 136px); overflow-y: auto; }
}
