/* =========================================================
   Área do cliente: login, cadastro e painel
   ========================================================= */

/* ===== Variáveis ===== */
:root {
  --blue: #1a6cff;
  --blue-dark: #0f4fd6;
  --blue-soft: #eaf2ff;
  --cyan: #22d3ee;
  --navy: #0b1d3a;
  --text: #0b1d3a;
  --muted: #5b6b85;
  --faint: #8a97ad;
  --border: #e3e9f3;
  --bg: #ffffff;
  --bg-soft: #f4f8ff;
  --bg-app: #f6f8fc;
  --green: #22c55e;
  --green-dark: #15803d;
  --green-soft: #e9f9ef;
  --amber: #f59e0b;
  --amber-soft: #fff6e5;
  --red: #ef4444;
  --red-soft: #fdecec;

  --gradient: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  --shadow-sm: 0 2px 8px rgba(11, 29, 58, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 29, 58, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 29, 58, 0.16);
  --radius: 14px;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

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

/* ícones em linha (mesmo traço do site) */
.i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  border: 1.5px solid transparent;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s, opacity 0.2s;
}

.btn .i {
  width: 17px;
  height: 17px;
}

.btn--primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 6px 16px rgba(26, 108, 255, 0.25);
}

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

.btn--primary:disabled {
  color: #8a97ad;
  background: #e6ecf5;
  box-shadow: none;
  cursor: not-allowed;
}

.btn--outline {
  color: var(--navy);
  background: #fff;
  border-color: var(--border);
}

.btn--outline:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.btn--ghost {
  color: var(--muted);
}

.btn--ghost:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.btn--danger {
  color: #fff;
  background: var(--red);
}

.btn--danger:hover {
  background: #dc2626;
}

.btn--sm {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 0.84rem;
  border-radius: 8px;
}

.btn--icon {
  width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 9px;
}

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

.btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ===== Campos ===== */
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}

.field > label,
.field__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.field__label small,
.field > label small {
  font-weight: 500;
  color: var(--faint);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  font-size: 0.95rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.textarea {
  min-height: 112px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: #9aa6ba;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: #cfd8e6;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26, 108, 255, 0.12);
}

.input.is-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.select {
  appearance: none;
  padding-right: 38px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
}

.field__hint {
  font-size: 0.8rem;
  color: var(--faint);
}

.field__error {
  display: none;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--red);
}

.field.has-error .field__error {
  display: block;
}

.field.has-error .input {
  border-color: var(--red);
}

/* campo com sufixo, como "@suaempresa.com.br" */
.input-group {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26, 108, 255, 0.12);
}

.input-group .input,
.input-group .select {
  min-width: 0;
  border: 0;
  box-shadow: none !important;
}

.input-group__addon {
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
  background: var(--bg-soft);
}

.input-group__addon:first-child {
  border-right: 1.5px solid var(--border);
  border-radius: 9px 0 0 9px;
}

.input-group .select {
  max-width: 55%;
  border-left: 1.5px solid var(--border);
  border-radius: 0 9px 9px 0;
  background-color: var(--bg-soft);
}

/* ===== Chave liga/desliga ===== */
.switch {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 24px;
  background: #d5dde9;
  border-radius: 999px;
  transition: background 0.2s;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(11, 29, 58, 0.25);
  transition: transform 0.2s;
}

.switch[aria-checked="true"] {
  background: var(--green);
}

.switch[aria-checked="true"]::after {
  transform: translateX(18px);
}

/* ===== Selos ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--muted);
  background: #eef2f8;
  border-radius: 999px;
}

.badge--green {
  color: var(--green-dark);
  background: var(--green-soft);
}

.badge--blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.badge--amber {
  color: #b45309;
  background: var(--amber-soft);
}

.badge--red {
  color: #b91c1c;
  background: var(--red-soft);
}

.badge--dot::before {
  content: "";
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
}

/* ===== Avisos (toast) ===== */
.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: var(--navy);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.3s ease;
}

.toast .i {
  margin-top: 1px;
  color: #4ade80;
}

.toast--error .i {
  color: #f87171;
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* =========================================================
   ACESSO (entrar ou criar conta)
   ========================================================= */
/* a tela inteira cabe em 100vh, sem rolagem da página */
.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 24px;
  height: 100vh;
  height: 100dvh;
  padding: 20px;
  overflow: hidden;
}

.auth__form-side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 40px 24px;
  overflow-y: auto; /* só em telas muito baixas, o formulário rola por dentro */
  isolation: isolate;
}

/* textura de pontinhos no canto, como na referência */
.auth__form-side::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0; /* dentro da coluna, para não criar rolagem */
  z-index: -1;
  width: 70%;
  height: 45%;
  background-image: radial-gradient(#cfd8e6 1px, transparent 1.2px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse at bottom left, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at bottom left, #000 10%, transparent 70%);
}

.auth__box {
  width: 100%;
  max-width: 440px;
  margin: auto 0; /* centraliza sem cortar o topo quando o conteúdo passa da altura */
}

.auth__logo {
  display: block;
  width: fit-content;
  margin: 0 auto 28px;
}

/* mesmo tamanho da logo no site (css/style.css: .header__logo) */
.auth__logo img {
  height: 46px;
  width: auto;
  mix-blend-mode: multiply; /* remove o fundo branco da imagem */
}

.auth__step {
  text-align: center;
  animation: step-in 0.35s ease;
}

.auth__step[hidden] {
  display: none;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.auth__title {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
}

.auth__text {
  margin: 12px auto 32px;
  max-width: 400px;
  font-size: 1.02rem;
  color: var(--muted);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-google:hover {
  border-color: #cfd8e6;
  background: #fbfcfe;
  box-shadow: var(--shadow-sm);
}

.btn-google img {
  width: 22px;
  height: 22px;
}

.auth__divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
  font-size: 0.9rem;
  color: var(--faint);
}

.auth__divider::before,
.auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth__form {
  text-align: left;
}

.auth__form .input {
  min-height: 56px;
  padding: 14px 16px;
  font-size: 1rem;
  border-radius: 12px;
}

.auth__form .btn--primary {
  min-height: 56px;
  margin-top: 8px;
  font-size: 1.02rem;
  border-radius: 999px;
}

.auth__link {
  font-weight: 700;
  color: var(--blue);
}

.auth__link:hover {
  text-decoration: underline;
}

.auth__terms {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--faint);
  text-align: center;
}

.auth__terms a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* passo do código */
/* "Alterar e-mail" logo abaixo do endereço, antes dos quadradinhos */
.auth__change {
  margin: -20px 0 28px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
}

.auth__change:hover {
  text-decoration: underline;
}

.otp {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.otp input {
  width: 54px;
  height: 62px;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.otp input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26, 108, 255, 0.12);
}

.otp.is-error input {
  border-color: var(--red);
  animation: shake 0.35s;
}

@keyframes shake {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.auth__resend {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.auth__resend button:disabled {
  color: var(--faint);
  cursor: default;
  text-decoration: none;
}

/* botão do Google desenhado pelo próprio Google, centralizado */
.auth__google [data-google-button] {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.auth__google[hidden] {
  display: none;
}

.auth__code-error {
  margin: -8px 0 14px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--red);
}

.auth__code-error[hidden] {
  display: none;
}

.auth__confirm {
  min-height: 56px;
  border-radius: 999px;
}

/* ----- Vitrine do lado direito ----- */
.showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid #edf1f8;
  border-radius: 32px;
}

.showcase__slides {
  position: relative;
  flex: 1;
}

.showcase__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s;
}

.showcase__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.showcase__visual {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 28px 0 0 28px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 96%);
}

.showcase__copy {
  padding: 0 32px 72px;
  text-align: center;
}

.showcase__copy h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--navy);
}

.showcase__copy h2 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.showcase__copy p {
  margin-top: 12px;
  font-size: 1.05rem;
  color: var(--muted);
}

.showcase__dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.showcase__dots button {
  width: 10px;
  height: 10px;
  background: #cfd8e6;
  border-radius: 999px;
  transition: width 0.3s, background 0.3s;
}

.showcase__dots button[aria-current="true"] {
  width: 36px;
  background: var(--blue);
}

/* mini painel desenhado em CSS */
.mock {
  display: flex;
  height: 100%;
  min-height: 420px;
  background: #fff;
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: 22px 0 0 0;
  box-shadow: var(--shadow-md);
}

.mock__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 72px;
  padding: 20px 0;
  border-right: 1px solid var(--border);
  background: #fbfcfe;
  border-radius: 22px 0 0 0;
}

.mock__rail img {
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  object-fit: contain;
}

.mock__rail span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--muted);
  border-radius: 12px;
}

.mock__rail span.is-active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 6px 14px rgba(26, 108, 255, 0.3);
}

.mock__main {
  flex: 1;
  min-width: 0;
  padding: 26px 28px;
}

.mock__chips {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
}

.mock__chips span {
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.mock__chips span.is-active {
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #cfe0ff;
}

.mock__kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 26px;
}

.mock__kpi small {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.mock__kpi strong {
  display: block;
  margin: 2px 0;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.mock__kpi b {
  font-size: 0.8rem;
  color: var(--green-dark);
}

.mock__card {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.mock__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.mock__row small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock__row strong {
  font-size: 1.25rem;
  font-weight: 700;
}

.mock__chart {
  height: 120px;
  margin-top: 18px;
}

.mock__chart svg {
  width: 100%;
  height: 100%;
}

.mock__donut-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
}

.mock__donut {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 170px;
  height: 170px;
  background: conic-gradient(#4285f4 0 32%, #e1306c 0 52%, #f59e0b 0 70%, #14b8a6 0 84%, #25d366 0 93%, #6d5bff 0 100%);
  border-radius: 50%;
}

.mock__donut div {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  text-align: center;
  background: #fff;
  border-radius: 50%;
}

.mock__donut strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1;
}

.mock__donut small {
  font-size: 0.75rem;
  color: var(--muted);
}

.mock__legend {
  flex: 1;
  display: grid;
  gap: 10px;
  font-size: 0.88rem;
}

.mock__legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock__legend i {
  width: 10px;
  height: 10px;
  background: var(--c);
  border-radius: 3px;
}

.mock__legend b {
  margin-left: auto;
}

.mock__mail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.mock__mail:last-child {
  border-bottom: 0;
}

.mock__avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--c, var(--blue));
  border-radius: 50%;
}

.mock__mail div {
  flex: 1;
  min-width: 0;
}

.mock__mail strong {
  display: block;
  font-size: 0.92rem;
}

.mock__mail small {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock__mail time {
  font-size: 0.78rem;
  color: var(--faint);
}

.mock__mail.is-unread strong::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  vertical-align: middle;
  background: var(--blue);
  border-radius: 50%;
}

@media (max-width: 1000px) {
  .auth {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .showcase {
    display: none;
  }
}

/* telas baixas: aperta os espaços para tudo caber sem rolar */
@media (max-height: 760px) {
  .auth__logo {
    margin-bottom: 20px;
  }

  .auth__text {
    margin-bottom: 24px;
  }

  .auth__divider {
    margin: 20px 0;
  }

  .auth__form-side {
    padding-block: 24px;
  }
}

@media (max-height: 640px) {
  .auth__logo {
    margin-bottom: 14px;
  }

  .auth__text {
    margin: 8px auto 18px;
  }

  .auth__divider {
    margin: 14px 0;
  }

  .btn-google,
  .auth__form .input,
  .auth__form .btn--primary {
    min-height: 48px;
  }

  .auth__form-side {
    padding-block: 12px;
  }
}

@media (max-width: 480px) {
  .auth__form-side {
    justify-content: flex-start;
    padding: 28px 16px 32px;
  }

  .auth__box {
    margin: 0;
  }

  .otp {
    gap: 6px;
  }

  .otp input {
    width: 46px;
    height: 56px;
  }
}

/* =========================================================
   PAINEL
   ========================================================= */
.app {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--bg-app);
}

/* ----- Menu lateral ----- */
.side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  padding: 22px 16px 18px;
  background: #fff;
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.side__logo {
  display: block;
  padding: 0 10px 22px;
}

.side__logo img {
  height: 46px;
  width: auto;
  mix-blend-mode: multiply;
}

/* como no site: logo um pouco menor em telas até 1140px */
@media (max-width: 1140px) {
  .auth__logo img,
  .side__logo img {
    height: 38px;
  }
}

.side__group + .side__group {
  margin-top: 22px;
}

.side__label {
  padding: 0 12px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.side__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 2px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}

.side__link:hover {
  color: var(--navy);
  background: var(--bg-app);
}

.side__link.is-active {
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-soft);
}

.side__link .badge {
  margin-left: auto;
  padding: 1px 8px;
}

.side__plan {
  margin-top: auto;
  padding: 16px;
  background: var(--bg-soft);
  border: 1px solid #e4ecfa;
  border-radius: 14px;
}

.side__plan small {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
}

.side__plan strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.side__plan .btn {
  width: 100%;
  margin-top: 12px;
}

/* menu estreito: rótulo em cima, valor embaixo, sem cortar nada */
.side__plan .meter__label {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.meter {
  height: 6px;
  overflow: hidden;
  background: #e2e8f2;
  border-radius: 999px;
}

.meter i {
  display: block;
  height: 100%;
  width: var(--v, 0%);
  background: var(--gradient);
  border-radius: inherit;
}

.meter--warn i {
  background: var(--amber);
}

.meter__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* rótulo encolhe com reticências; o valor nunca quebra (ex.: "3 GB de 50 GB") */
.meter__label span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meter__label b {
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--navy);
}

/* ----- Topo ----- */
.main {
  min-width: 0;
}

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 72px;
  padding: 0 32px;
  background: rgba(246, 248, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.top.is-scrolled {
  border-bottom-color: var(--border);
}

.top__menu {
  display: none;
}

.top__title {
  min-width: 0;
  margin-right: auto;
}

.top__title small {
  display: block;
  font-size: 0.78rem;
  color: var(--faint);
}

.top__title strong {
  display: block;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-picker {
  position: relative;
}

.site-picker .select {
  min-height: 40px;
  padding: 8px 38px 8px 36px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  max-width: 240px;
}

.site-picker > .i {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--green);
  transform: translateY(-50%);
  pointer-events: none;
}

.user-menu {
  position: relative;
}

.user-menu__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  transition: background 0.15s;
}

.user-menu__btn:hover {
  background: #fff;
}

.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient);
  border-radius: 50%;
}

.user-menu__name {
  font-size: 0.88rem;
  font-weight: 600;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu__pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}

.user-menu__pop[hidden] {
  display: none;
}

.user-menu__head {
  padding: 8px 10px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.user-menu__head strong {
  display: block;
  font-size: 0.9rem;
}

.user-menu__head small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu__pop a,
.user-menu__pop button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  border-radius: 8px;
}

.user-menu__pop a:hover,
.user-menu__pop button:hover {
  background: var(--bg-app);
}

.user-menu__pop .is-danger {
  color: #b91c1c;
}

/* ----- Conteúdo ----- */
.view {
  max-width: 1240px;
  padding: 8px 32px 56px;
  animation: step-in 0.3s ease;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.page-head h1 {
  font-size: 1.6rem;
  font-weight: 800;
}

.page-head p {
  margin-top: 4px;
  color: var(--muted);
}

.page-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.grid--main {
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
}

.card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card--flush {
  padding: 0;
  overflow: hidden;
}

.card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.card--flush .card__head {
  margin: 0;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
}

.card__title .i {
  color: var(--blue);
}

.card__sub {
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--muted);
}

.section-gap {
  margin-top: 20px;
}

/* status do site em destaque */
.hero-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  margin-bottom: 20px;
  background: linear-gradient(120deg, #ffffff 0%, #f1f6ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hero-status__site {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
  min-width: 0;
}

.hero-status__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--gradient);
  border-radius: 14px;
}

.hero-status__site strong {
  display: block;
  font-size: 1.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-status__site small {
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-status__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* indicadores */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.kpi {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.kpi small {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.kpi small .i {
  width: 16px;
  height: 16px;
}

.kpi strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-dark);
}

.trend .i {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.trend span {
  font-weight: 500;
  color: var(--faint);
}

/* abas em pílula (7 dias, 30 dias…) */
.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.segmented button {
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.segmented button[aria-pressed="true"] {
  color: var(--blue);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

/* gráfico de linha */
.chart {
  position: relative;
  height: 240px;
}

.chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart__grid line {
  stroke: #edf1f7;
  stroke-width: 1;
}

.chart__ylabels {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--faint);
  pointer-events: none;
}

.chart__plot {
  position: absolute;
  inset: 8px 0 8px 40px;
}

.chart__xlabels {
  display: flex;
  justify-content: space-between;
  padding-left: 40px;
  margin-top: 8px;
  font-size: 0.74rem;
  color: var(--faint);
}

.chart__dot {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: #fff;
  border: 3px solid var(--blue);
  border-radius: 50%;
  pointer-events: none;
}

.chart__tip {
  position: absolute;
  padding: 8px 12px;
  font-size: 0.8rem;
  white-space: nowrap;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  transform: translate(-50%, calc(-100% - 14px));
  pointer-events: none;
}

.chart__tip small {
  display: block;
  color: #a9b6cc;
  font-size: 0.72rem;
}

.chart__line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #d5deeb;
  pointer-events: none;
}

/* origem das visitas */
.sources {
  display: flex;
  align-items: center;
  gap: 24px;
}

.donut {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
}

.donut > div {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  text-align: center;
  background: #fff;
  border-radius: 50%;
}

.donut strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.1;
}

.donut small {
  font-size: 0.74rem;
  color: var(--muted);
}

.legend {
  flex: 1;
  display: grid;
  gap: 9px;
  min-width: 0;
  font-size: 0.86rem;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend i {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  background: var(--c);
  border-radius: 3px;
}

.legend span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legend b {
  margin-left: auto;
  font-weight: 700;
}

/* primeiros passos */
.checklist {
  display: grid;
  gap: 4px;
}

.checklist li a,
.checklist li > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 10px;
  transition: background 0.15s;
}

.checklist li a:hover {
  background: var(--bg-app);
}

.checklist__mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: transparent;
  border: 2px solid #cfd8e6;
  border-radius: 50%;
}

.checklist__mark .i {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

.checklist li.is-done .checklist__mark {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.checklist li.is-done strong {
  color: var(--faint);
  text-decoration: line-through;
}

.checklist strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.checklist small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.checklist .i--go {
  margin-left: auto;
  color: var(--faint);
}

.progress-ring {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
}

/* listas e tabelas */
/* coluna única que encolhe com a tela (sem isso, a linha cresce até o texto mais longo) */
.list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}

.row:last-child {
  border-bottom: 0;
}

.row__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 12px;
}

.row__icon--green {
  color: var(--green-dark);
  background: var(--green-soft);
}

.row__icon--amber {
  color: #b45309;
  background: var(--amber-soft);
}

.row__main {
  flex: 1;
  min-width: 0;
}

.row__main strong {
  display: block;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row__main small {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row__meta {
  width: 160px;
  flex-shrink: 0;
}

.row__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* position: relative mantém textos de leitor de tela (.sr-only) dentro da rolagem */
.table-wrap {
  position: relative;
  overflow-x: auto;
}

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

.table th {
  padding: 12px 22px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  color: var(--faint);
  background: #fafbfd;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: 13px 22px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table code,
.mono {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.84rem;
}

.table td.is-wrap {
  max-width: 320px;
  word-break: break-all;
}

/* cartões de site */
.site-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.site-card__top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.site-card__thumb {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--gradient);
  border-radius: 14px;
}

.site-card__top > div {
  flex: 1;
  min-width: 0;
}

.site-card__top strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-card__stats > div {
  min-width: 0;
}

.site-card__stats small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.site-card__stats small {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
}

.site-card__stats strong {
  font-size: 1.02rem;
}

.site-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.add-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 240px;
  padding: 24px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  background: transparent;
  border: 2px dashed #d5deeb;
  border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.add-card:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: #fff;
}

.add-card .i {
  width: 28px;
  height: 28px;
}

.add-card small {
  font-weight: 500;
  color: var(--faint);
}

/* prévia do Google (SEO) */
.serp {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.serp__url {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #4d5156;
}

.serp__fav {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: #f1f3f4;
  border-radius: 50%;
}

.serp__fav img {
  width: 16px;
  height: 16px;
}

.serp__title {
  margin: 8px 0 4px;
  font-size: 1.15rem;
  line-height: 1.3;
  color: #1a0dab;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serp__desc {
  font-size: 0.86rem;
  color: #4d5156;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.counter {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--faint);
}

.counter.is-good {
  color: var(--green-dark);
}

.counter.is-bad {
  color: #b45309;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

/* linhas de opção com chave */
.option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.option:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.option:first-child {
  padding-top: 0;
}

.option__main {
  flex: 1;
  min-width: 0;
}

.option__main strong {
  display: block;
  font-size: 0.92rem;
}

.option__main small {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

/* nota de desempenho */
.score {
  display: flex;
  align-items: center;
  gap: 24px;
}

.score__ring {
  position: relative;
  flex-shrink: 0;
  width: 130px;
  height: 130px;
}

.score__ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score__ring circle {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}

.score__ring div {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.score__ring strong {
  font-size: 2rem;
  line-height: 1;
}

.score__ring small {
  font-size: 0.75rem;
  color: var(--muted);
}

.score__list {
  flex: 1;
  display: grid;
  gap: 10px;
  font-size: 0.88rem;
}

.score__list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score__list b {
  margin-left: auto;
}

/* integrações */
.integ {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.integ__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.integ__logo {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, #fff);
  border-radius: 12px;
}

.integ__logo .i {
  width: 22px;
  height: 22px;
}

.integ__head > div {
  flex: 1;
  min-width: 0;
}

.integ__head strong {
  display: block;
}

.integ__head small {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.integ__body[hidden] {
  display: none;
}

.integ__save {
  display: flex;
  gap: 8px;
}

.integ__save .input {
  min-height: 42px;
}

/* links e QR codes */
.qr-box {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.qr-box svg,
.qr-box img {
  width: 100%;
  height: 100%;
}

.qr-large {
  display: grid;
  place-items: center;
  width: 220px;
  height: 220px;
  margin: 0 auto 16px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.qr-large svg {
  width: 100%;
  height: 100%;
}

.link-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--bg-soft);
  border-radius: 10px;
  word-break: break-all;
}

.link-preview b {
  color: var(--blue);
}

/* estado vazio */
.empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 48px 24px;
  text-align: center;
}

.empty__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 6px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 16px;
}

.empty__icon .i {
  width: 26px;
  height: 26px;
}

.empty strong {
  font-size: 1.02rem;
}

.empty p {
  max-width: 380px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* configuração de e-mail */
.kv {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}

.kv__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.88rem;
  border-bottom: 1px dashed var(--border);
}

.kv__row:last-child {
  border-bottom: 0;
}

.kv__row span {
  width: 120px;
  flex-shrink: 0;
  color: var(--muted);
}

.kv__row code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.86rem;
  font-weight: 600;
}

.copy {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  color: var(--faint);
  border-radius: 8px;
}

.copy:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.copy .i {
  width: 15px;
  height: 15px;
}

/* busca de domínio */
.domain-find {
  display: flex;
  gap: 10px;
}

.domain-find .input-group {
  flex: 1;
}

.domain-results {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.domain-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.domain-result > div {
  flex: 1;
  min-width: 0;
}

.domain-result strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.domain-result small {
  font-size: 0.8rem;
  color: var(--muted);
}

.domain-result b {
  font-size: 0.95rem;
  white-space: nowrap;
}

.domain-result.is-taken {
  background: #fafbfd;
}

.domain-result.is-taken strong {
  color: var(--faint);
}

/* abas do domínio */
.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  padding: 0 22px;
}

.tabs button {
  padding: 14px 4px;
  margin-right: 18px;
  margin-bottom: -1px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.tabs button[aria-selected="true"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* planos */
.plan-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-opt.is-current {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 108, 255, 0.12);
}

.plan-opt h3 {
  font-size: 1.1rem;
}

.plan-opt__price {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plan-opt__price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.plan-opt ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 16px;
  font-size: 0.86rem;
  color: var(--muted);
}

.plan-opt li {
  display: flex;
  gap: 8px;
}

.plan-opt li .i {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--green);
  stroke-width: 2.5;
}

.plan-opt .btn {
  margin-top: auto;
}

.plan-opt > .badge {
  align-self: flex-start;
}

/* ----- Janela (modal) ----- */
.modal {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  color: var(--text);
  background: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: visible;
}

.modal::backdrop {
  background: rgba(11, 29, 58, 0.45);
  backdrop-filter: blur(3px);
}

.modal[open] {
  animation: modal-in 0.25s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

.modal__inner {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 48px);
}

.modal__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 24px 0;
}

.modal__head > div {
  flex: 1;
}

.modal__head h2 {
  font-size: 1.2rem;
}

.modal__head p {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--muted);
}

.modal__body {
  padding: 20px 24px;
  overflow-y: auto;
}

.modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 22px;
  border-top: 1px solid var(--border);
}

.notice {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  font-size: 0.86rem;
  color: #1e3a8a;
  background: var(--blue-soft);
  border-radius: 10px;
}

.notice .i {
  margin-top: 1px;
  color: var(--blue);
}

.notice--amber {
  color: #92400e;
  background: var(--amber-soft);
}

.notice--amber .i {
  color: var(--amber);
}

.notice--red {
  color: #991b1b;
  background: var(--red-soft);
}

.notice--red .i {
  color: var(--red);
}

.backdrop {
  display: none;
}

/* ----- Responsivo ----- */
/* ===== Utilitários do painel ===== */
/* cartões lado a lado ficam com a altura do próprio conteúdo:
   abrir um campo num cartão não estica o vizinho com espaço em branco */
.grid--top {
  align-items: start;
}

.grid--tight {
  gap: 12px;
}

.stack {
  display: grid;
  gap: 16px;
}

/* atalhos da visão geral: blocos quadrados, ícone em cima e nome embaixo */
.shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  aspect-ratio: 1;
  padding: 14px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, color 0.2s;
}

.shortcut:hover {
  color: var(--blue);
  border-color: rgba(26, 108, 255, 0.4);
  box-shadow: 0 10px 24px -12px rgba(26, 108, 255, 0.45);
  transform: translateY(-2px);
}

.shortcut__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 14px;
}

.shortcut__icon .i {
  width: 22px;
  height: 22px;
}

@media (max-width: 560px) {
  .shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* visitas ao site */
.kpis.kpis--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
}

.kpi__note {
  font-size: 0.8rem;
  color: var(--muted);
}

.visits {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 28px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 180px;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--border);
}

.bars__bar {
  flex: 1;
  min-width: 2px;
  height: max(var(--h), 2px);
  background: linear-gradient(180deg, #4f8dff, var(--blue));
  border-radius: 4px 4px 0 0;
  transition: opacity 0.2s;
}

.bars__bar:hover {
  opacity: 0.75;
}

.bars__labels {
  display: flex;
  gap: 3px;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--faint);
}

.bars__labels span {
  flex: 1;
  min-width: 0;
  overflow: visible;
  white-space: nowrap;
}

.visits__sources h3 {
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.visits__sources ul {
  display: grid;
  gap: 12px;
}

.visits__sources li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.88rem;
}

.visits__sources li span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visits__sources li i {
  flex-basis: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--blue) var(--w), #edf1f7 var(--w));
  border-radius: 999px;
}

@media (max-width: 900px) {
  .visits {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .kpis.kpis--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.kpis--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 560px;
  margin-bottom: 20px;
}

.notice--spaced {
  margin-bottom: 20px;
}

.notice--narrow {
  max-width: 880px;
}

.card__notice {
  padding: 18px 22px 0;
}

.side__link > span:first-of-type {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* saúde do e-mail (checagem do DNS) */
.health {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.health__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.health__item:last-child {
  border-bottom: 0;
}

.health__mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.health__mark .i {
  width: 16px;
  height: 16px;
}

.health__mark--ok {
  color: var(--green-dark);
  background: var(--green-soft);
}

.health__mark--erro {
  color: var(--red);
  background: var(--red-soft);
}

.health__mark--aviso {
  color: #b45309;
  background: var(--amber-soft);
}

.health__text {
  flex: 1;
  min-width: 0;
}

.health__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
  margin-bottom: 2px;
}

.health__head strong {
  font-size: 0.92rem;
}

.health__text small {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  overflow-wrap: break-word;
}

.health__fix {
  margin-top: 4px;
  color: var(--navy) !important;
}

.health__msg {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.health__when {
  margin-top: 12px;
}

/* passo a passo de e-mail no Gmail/Outlook/iPhone */
.mail-guide__tabs {
  margin-bottom: 18px;
}

.steps-list {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  counter-reset: passo;
  font-size: 0.9rem;
  color: var(--muted);
}

.steps-list li {
  display: flex;
  gap: 12px;
  counter-increment: passo;
}

.steps-list li::before {
  content: counter(passo);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 50%;
}

.steps-list b {
  color: var(--navy);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* rótulo em cima, valor embaixo: cabe no cartão estreito ao lado do passo a passo */
.kv--stacked .kv__row {
  flex-wrap: wrap;
  row-gap: 2px;
}

.kv--stacked .kv__row span {
  width: 100%;
  font-size: 0.8rem;
}

.kv--stacked .kv__row code {
  flex: 1;
}

/* uma coluna: abrir o campo de um item só empurra os de baixo, sem vãos */
.integ-list {
  display: grid;
  gap: 14px;
  max-width: 880px;
}

/* status da integração logo abaixo do nome */
.integ__head .badge {
  margin-top: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integ .field {
  margin: 0;
}

.inline-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--muted);
  white-space: nowrap;
}

.table__actions {
  text-align: right;
  white-space: nowrap;
}

.table__actions .btn + .btn {
  margin-left: 6px;
}

.table__empty {
  text-align: center;
  color: var(--muted);
}

.row__value {
  display: block;
  font-size: 0.95rem;
}

.link-url {
  color: var(--blue);
}

.checklist--tips .checklist__mark {
  color: var(--blue);
  border-color: var(--blue);
}

.field--options {
  margin: 0;
  padding: 0;
  border: 0;
}

.field--options legend {
  margin-bottom: 6px;
}

.option--radio {
  cursor: pointer;
}

.option--radio input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.input-group__btn {
  flex-shrink: 0;
  margin: 4px;
}

/* domínio / slug: o select vem antes e divide a borda com o resto */
.input-group--link .select {
  max-width: 55%;
  border-left: 0;
  border-right: 1.5px solid var(--border);
  border-radius: 9px 0 0 9px;
}

.input-group--link .input-group__addon {
  padding: 0 2px 0 8px;
  background: #fff;
}

.input-group--link .input {
  padding-left: 2px;
}

.link-preview--between {
  justify-content: space-between;
}

.modal__hint {
  margin: 12px 0 14px;
  font-size: 0.88rem;
  text-align: center;
  color: var(--muted);
}

.domain-results__msg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 4px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* carregamento inicial do painel */
.view-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50vh;
  color: var(--muted);
}

.spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@media (max-width: 1180px) {
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--main {
    grid-template-columns: 1fr;
  }
}

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

  .side {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-lg);
  }

  .app.side-open .side {
    transform: none;
  }

  .backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: block;
    background: rgba(11, 29, 58, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
  }

  .app.side-open .backdrop {
    opacity: 1;
    visibility: visible;
  }

  .top {
    padding: 0 16px;
    height: 64px;
  }

  .top__menu {
    display: grid;
  }

  .user-menu__name,
  .user-menu__btn > .i {
    display: none;
  }

  .view {
    padding: 8px 16px 48px;
  }

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

  .row__meta {
    display: none;
  }
}

@media (max-width: 640px) {
  .top__title small {
    display: none;
  }

  .site-picker .select {
    max-width: 150px;
  }

  .kpis,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .kpi {
    padding: 14px;
  }

  .kpi strong {
    font-size: 1.3rem;
  }

  .trend span {
    display: none;
  }

  .page-head h1 {
    font-size: 1.35rem;
  }

  .page-head__actions,
  .page-head__actions .btn {
    width: 100%;
  }

  .card {
    padding: 18px;
  }

  .row {
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .row__actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  /* nome ocupa a primeira linha inteira; selo e botões descem juntos */
  .row--wrap .row__main {
    flex: 1 1 calc(100% - 60px);
  }

  .row--wrap > .badge + .row__actions {
    width: auto;
    margin-left: auto;
  }

  .sources,
  .score {
    flex-direction: column;
    align-items: stretch;
  }

  .donut,
  .score__ring {
    margin: 0 auto;
  }

  .chart {
    height: 200px;
  }

  .domain-find {
    flex-direction: column;
  }

  .table th,
  .table td {
    padding: 11px 14px;
  }

  .modal__foot {
    flex-direction: column-reverse;
  }

  .modal__foot .btn {
    width: 100%;
  }

  .kv__row span {
    width: 90px;
  }
}

.mail-guide__health {
  margin-top: 14px;
}

.mail-guide__health a {
  font-weight: 600;
  color: var(--blue);
}

/* =========================================================
   Checkout da fatura (js/checkout.js)
   ========================================================= */
.invoice-discount {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--green-dark);
}

.domain-result b .domain-result__pix {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  text-align: right;
  color: var(--green-dark);
}

.modal--checkout {
  width: min(800px, calc(100vw - 32px));
  /* topo fixo: a janela não pula ao trocar entre Pix e cartão */
  margin-top: max(24px, 5vh);
}

.modal--done {
  margin-top: auto;
}

.modal--checkout .modal__head p {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
}

.modal--checkout .modal__head p .i {
  width: 14px;
  height: 14px;
  color: var(--green-dark);
}

.modal--checkout .modal__body {
  padding: 18px 0 0;
}

.co [hidden] {
  display: none !important;
}

.co {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  border-top: 1px solid var(--border);
}

/* ----- resumo ----- */
.co-sum {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  border-bottom-left-radius: 18px;
}

.co-sum__eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.co-sum__desc {
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.4;
}

.co-sum__rows {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  font-size: 0.88rem;
  border-top: 1px dashed #d3ddec;
}

.co-sum__rows > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.co-sum__rows dt {
  color: var(--muted);
}

.co-sum__rows dd {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.co-sum__off dt,
.co-sum__off dd {
  color: var(--green-dark);
}

.co-sum__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #d3ddec;
}

.co-sum__total span {
  font-weight: 600;
}

.co-sum__total strong {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.co-sum__note {
  align-self: flex-end;
  font-size: 0.8rem;
  color: var(--muted);
}

.co-secure {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

.co-secure .i {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: var(--green-dark);
}

/* ----- pagamento ----- */
.co-pay {
  min-width: 0;
  padding: 24px;
}

.co-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.co-method {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  text-align: left;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.co-method:hover:not(:disabled) {
  border-color: #b9cdf0;
}

.co-method[aria-checked="true"] {
  background: var(--blue-soft);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 108, 255, 0.12);
}

.co-method:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.co-method:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.co-method__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.co-method__icon .i {
  width: 19px;
  height: 19px;
}

.co-method__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.co-method__text b {
  font-size: 0.95rem;
}

.co-method__text small {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

.co-method__tag {
  position: absolute;
  top: -9px;
  right: 10px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--green-dark);
  border-radius: 999px;
}

/* ----- estados (carregando, expirado, erro) ----- */
.co-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 36px 12px;
  text-align: center;
}

.co-state p {
  max-width: 340px;
  font-size: 0.88rem;
  color: var(--muted);
}

.co-state .btn {
  margin-top: 8px;
}

.co-state__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 50%;
}

.co-state__icon .i {
  width: 22px;
  height: 22px;
}

/* ----- Pix ----- */
.co-pix {
  display: flex;
  align-items: center;
  gap: 20px;
}

.co-qr {
  flex-shrink: 0;
  width: 184px;
  height: 184px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.co-qr img,
.co-qr svg {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.co-pix__side {
  flex: 1;
  min-width: 0;
}

.co-pix__lead {
  font-size: 0.9rem;
  color: var(--muted);
}

.co-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e3a8a;
  background: var(--blue-soft);
  border-radius: 999px;
}

.co-live__dot {
  position: relative;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
}

.co-live__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue);
  border-radius: 50%;
  animation: co-ping 1.6s ease-out infinite;
}

@keyframes co-ping {
  to {
    opacity: 0;
    transform: scale(2.6);
  }
}

.co-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.co-timer .i {
  width: 15px;
  height: 15px;
}

.co-timer b {
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.co-steps {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.86rem;
  counter-reset: step;
}

.co-steps li {
  display: flex;
  gap: 10px;
  counter-increment: step;
}

.co-steps li::before {
  content: counter(step);
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 50%;
}

.co-copy {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.co-copy .input {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  color: var(--muted);
  background: var(--bg-app);
}

.co-copy .btn {
  flex-shrink: 0;
}

.co-gap {
  margin-top: 12px;
}

.co-fine {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

.co-test {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #92400e;
  background: var(--amber-soft);
  border: 1px dashed var(--amber);
  border-radius: 8px;
}

.co-test .i {
  width: 14px;
  height: 14px;
}

/* ----- cartão ----- */
.co-card {
  display: grid;
  gap: 14px;
}

.co-card .field {
  margin: 0;
}

.co-card .grid {
  align-items: start;
}

.co-card__frame {
  position: relative;
  min-height: 120px;
}

.co-card__loading .co-state {
  padding: 28px 12px;
}

.co-error {
  margin: 0;
}

.co-paybtn {
  min-height: 50px;
  font-size: 1rem;
}

.co-wait .co-state {
  padding: 48px 12px;
}

/* ----- pagamento confirmado ----- */
.modal--done {
  width: min(440px, calc(100vw - 32px));
}

.co-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 0 4px;
  text-align: center;
}

.co-done p {
  font-size: 0.9rem;
  color: var(--muted);
}

.co-done__check {
  width: 76px;
  height: 76px;
  margin-bottom: 8px;
  animation: co-pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.co-done__check svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.co-done__check circle {
  fill: var(--green-soft);
  stroke: var(--green);
  stroke-width: 2.5;
}

.co-done__check path {
  stroke: var(--green-dark);
  stroke-width: 4;
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
  animation: co-draw 0.4s 0.25s ease-out forwards;
}

@keyframes co-pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}

@keyframes co-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.co-done__amount {
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.co-done .co-done__next {
  margin-top: 10px;
  padding: 10px 14px;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .co-live__dot::after,
  .co-done__check,
  .co-done__check path {
    animation: none;
  }

  .co-done__check path {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 760px) {
  .co {
    grid-template-columns: minmax(0, 1fr);
  }

  .co-sum {
    padding: 16px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .co-sum__rows {
    margin-top: 12px;
    padding-top: 12px;
  }

  .co-secure {
    display: none;
  }

  .co-pay {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  .co-methods {
    gap: 8px;
  }

  .co-method {
    padding: 10px;
  }

  .co-method__icon {
    display: none;
  }

  .co-pix {
    flex-direction: column;
    gap: 16px;
  }

  .co-pix__side {
    width: 100%;
  }

  /* no celular não dá para escanear a própria tela: o copia e cola vem primeiro */
  .co-panel[data-panel="pix"] {
    display: flex;
    flex-direction: column;
  }

  .co-copy {
    flex-direction: column;
    order: -1;
    margin: 0 0 18px;
  }

  .co-copy .btn {
    min-height: 48px;
  }

  .co-qr {
    width: 156px;
    height: 156px;
  }

  .co-sum__eyebrow {
    display: none;
  }

  .co-sum__desc {
    margin-top: 0;
  }
}

/* ----- Sites: endereço com subdomínio e registro DNS a criar ----- */
[data-field="host"] .input-group__addon {
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-card__dns {
  display: grid;
  gap: 10px;
  padding: 14px;
  font-size: 0.85rem;
  color: #92400e;
  background: var(--amber-soft);
  border-radius: 12px;
}

.site-card__dns .kv__row {
  border-bottom-color: #f5d9a8;
}

.site-card__dns .kv__row span {
  width: 52px;
  color: #92400e;
}

.site-card__dns code {
  color: var(--text);
}

/* ----- Prévia do compartilhamento no WhatsApp (SEO do site) ----- */
.wa {
  padding: 16px;
  background: #efeae2;
  border-radius: 12px;
}

.wa__bubble {
  max-width: 360px;
  margin-left: auto;
  padding: 4px 4px 8px;
  background: #d9fdd3;
  border-radius: 10px 0 10px 10px;
  box-shadow: 0 1px 1px rgba(11, 20, 26, 0.13);
}

.wa__card {
  overflow: hidden;
  background: #cfe9c7;
  border-radius: 7px;
}

.wa__card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  background: #0b1d3a;
}

.wa__text {
  display: grid;
  gap: 2px;
  padding: 8px 10px 10px;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #111b21;
}

.wa__text strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.wa__text span {
  display: -webkit-box;
  overflow: hidden;
  color: #54656f;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.wa__text span:empty {
  display: none;
}

.wa__text small {
  font-size: 0.75rem;
  color: #667781;
}

.wa__link {
  display: block;
  padding: 6px 6px 0;
  overflow: hidden;
  font-size: 0.84rem;
  color: #027eb5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* quebra de linha do texto do login só em telas largas */
@media (max-width: 480px) {
  .auth__br { display: none; }
}
