/**
 * Painel do revendedor (/admin no domínio filho) — extras sobre gf-painel-admin-theme.
 *
 * A sidebar do cliente (.gf-side) tem mais respiro; o /admin herdava o shell
 * denso do admin da matriz (14px, margin miúdo, fundo #18181b) + card de saldo,
 * e parecia “mais junto”. Abaixo espelhamos o ritmo do menu do cliente.
 */

:root {
  --gf-adm-side-w: 17.25rem;
}

body.gf-adm .gf-adm-side {
  background: #121212;
  border-right-color: rgba(255, 255, 255, 0.08);
}

body.gf-adm .gf-adm-side__brand {
  height: 4rem;
  min-height: 4rem;
  padding: 0 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

body.gf-adm .gf-adm-side__nav {
  padding: 0.55rem 0 1.25rem;
}

body.gf-adm .gf-adm-side__sep,
body.gf-adm h6.gf-adm-side__sep {
  margin: 1.25rem 0 0.55rem !important;
  padding: 0 1.15rem !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #71717a !important;
  background: transparent !important;
  border: 0 !important;
}

body.gf-adm .gf-adm-side__nav > .gf-adm-side__sep:first-child,
body.gf-adm .gf-adm-side__nav > h6.gf-adm-side__sep:first-child {
  margin-top: 0.45rem !important;
}

body.gf-adm .gf-adm-side__link {
  min-height: 2.75rem !important;
  margin: 0.18rem 0.65rem !important;
  padding: 0.5rem 0.9rem 0.5rem 0.75rem !important;
  gap: 0.8rem !important;
  border-radius: 0.55rem !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #a1a1aa !important;
}

body.gf-adm .gf-adm-side__icon {
  width: 2.1rem !important;
  height: 2.1rem !important;
  min-width: 2.1rem !important;
  border-radius: 0.5rem !important;
  font-size: 0.9rem !important;
}

body.gf-adm .gf-adm-side__icon i {
  font-size: 0.9rem !important;
  line-height: 1 !important;
}

body.gf-adm .gf-adm-side__icon .fas,
body.gf-adm .gf-adm-side__icon .far,
body.gf-adm .gf-adm-side__icon .fab {
  font-size: 0.88rem !important;
}

body.gf-adm .gf-adm-side__icon .fa-external-link-alt {
  font-size: 0.82rem !important;
}

body.gf-adm .gf-adm-side__foot {
  padding: 0.75rem 0.65rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.gf-adm .gf-adm-side__foot .gf-adm-side__link {
  margin-top: 0.35rem !important;
}

.gf-rv-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: #f4f4f5;
  text-decoration: none;
}
.gf-rv-brand__mark {
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.55rem;
  background: var(--gf-gradient);
  box-shadow: 0 6px 16px rgba(225, 48, 108, 0.35);
}
.gf-rv-brand__name {
  font-family: "Sora", "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gf-rv-brand-img {
  max-height: 2.4rem !important;
  height: auto !important;
}

.gf-adm-side img[src*="turbo-seguidores"],
.gf-adm-side .gf-rv-brand-img[src*="turbo-seguidores"] {
  filter: brightness(0) invert(1) !important;
}

.gf-rv-saldo-card {
  margin: 0 0.15rem 0.35rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.22), rgba(225, 48, 108, 0.12));
  color: #f4f4f5;
}
.gf-rv-saldo-card.is-low {
  border-color: rgba(239, 68, 68, 0.45);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(127, 29, 29, 0.25));
}
.gf-rv-saldo-card__lbl {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
  margin-bottom: 0.15rem;
}
.gf-rv-saldo-card__val {
  display: block;
  font-family: "Sora", "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
}
.gf-rv-saldo-card__hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #fecaca;
}

.gf-rv-domain {
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.85;
  cursor: default;
}
.gf-rv-chip-txt { margin-left: 0.25rem; }
@media (max-width: 767px) {
  .gf-rv-chip-txt,
  .gf-rv-domain { display: none; }
}

.gf-rv-alert { margin-bottom: 1rem; }

/* Cards / boxes das views */
.gf-rv__box {
  border: 1px solid var(--gf-border);
  border-radius: var(--gf-radius-sm);
  padding: 1rem 1.1rem;
  background: var(--gf-surface);
  box-shadow: var(--gf-shadow);
  margin-bottom: 1rem;
  color: var(--gf-text);
}

/* Dica / nota (evita fundo claro + texto branco no dark) */
.gf-rv__hint {
  background: rgba(193, 53, 132, 0.08);
  border-color: rgba(193, 53, 132, 0.22);
  box-shadow: none;
  color: var(--gf-text);
}
.gf-rv__hint-tit {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gf-text);
}
.gf-rv__hint-txt {
  font-size: 0.83rem !important;
  line-height: 1.5 !important;
  margin: 0.35rem 0 0 !important;
  color: var(--gf-muted);
}
html.theme-dark .gf-rv__hint,
body.dark-mode .gf-rv__hint,
body.theme-dark .gf-rv__hint {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}
html.theme-dark .gf-rv__hint-tit,
body.dark-mode .gf-rv__hint-tit,
body.theme-dark .gf-rv__hint-tit {
  color: #f4f4f5;
}
html.theme-dark .gf-rv__hint-txt,
body.dark-mode .gf-rv__hint-txt,
body.theme-dark .gf-rv__hint-txt {
  color: #a1a1aa !important;
}
.gf-rv__num {
  font-family: "Sora", "DM Sans", sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  display: block;
  line-height: 1.15;
  margin: 0.15rem 0 0.2rem;
}
.gf-rv__lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gf-muted);
  font-weight: 600;
}
.gf-rv__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
}

.gf-rv-stat {
  position: relative;
  overflow: hidden;
}
.gf-rv-stat::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--gf-gradient);
  border-radius: 3px 0 0 3px;
}

.gf-rv-cta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  background:
    radial-gradient(900px 180px at 0% 0%, rgba(131, 58, 180, 0.16), transparent 55%),
    radial-gradient(700px 160px at 100% 0%, rgba(225, 48, 108, 0.12), transparent 50%),
    var(--gf-surface);
  border-color: rgba(193, 53, 132, 0.22);
}
.gf-rv-cta h4 {
  margin: 0 0 0.35rem;
  font-family: "Sora", "DM Sans", sans-serif;
  font-weight: 700;
}
.gf-rv-cta p {
  margin: 0 0 0.9rem;
  max-width: 40rem;
  color: var(--gf-muted);
  font-size: 0.92rem;
}
.gf-rv-cta__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.gf-rv-hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.gf-rv-hero__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.gf-rv-sec {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: "Sora", "DM Sans", sans-serif;
}
.gf-rv-help {
  font-size: 0.85rem;
  color: var(--gf-muted);
  margin: 0 0 1rem;
  max-width: 48rem;
}

.gf-rv-theme {
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--gf-border);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  cursor: default;
  background: var(--gf-surface);
  height: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.gf-rv-theme:has(form) {
  cursor: pointer;
}
.gf-rv-theme:hover {
  border-color: rgba(193, 53, 132, 0.35);
}
.gf-rv-theme.is-on {
  border-color: var(--gf-accent-2);
  box-shadow: 0 0 0 3px rgba(225, 48, 108, 0.18);
}
.gf-rv-theme input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.gf-rv-theme__shot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #0f0f12;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--gf-border);
  flex-shrink: 0;
}
.gf-rv-theme__shot-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0.85rem;
  font-weight: 600;
  color: #71717a;
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.18), rgba(225, 48, 108, 0.12));
}
.gf-rv-theme__body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem 0.95rem;
  flex: 1;
  min-height: 5.25rem;
}
.gf-rv-theme__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  min-width: 0;
  flex: 1;
}
.gf-rv-theme__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #fef3c7;
  color: #92400e;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  margin: 0;
}
.gf-rv-theme__badge--free {
  background: #dcfce7;
  color: #166534;
}
html.theme-dark .gf-rv-theme__badge,
body.dark-mode .gf-rv-theme__badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}
html.theme-dark .gf-rv-theme__badge--free,
body.dark-mode .gf-rv-theme__badge--free {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}
.gf-rv-theme__name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0;
  line-height: 1.25;
  word-break: break-word;
}
.gf-rv-theme__meta {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 0.75rem;
  color: var(--gf-muted);
  line-height: 1.35;
}
.gf-rv-theme__meta a {
  text-decoration: underline;
}
.gf-rv-theme--locked {
  cursor: default;
  opacity: 0.96;
}
.gf-rv-theme__badge--owned {
  background: #dbeafe;
  color: #1e40af;
}
html.theme-dark .gf-rv-theme__badge--owned,
body.dark-mode .gf-rv-theme__badge--owned {
  background: rgba(59, 130, 246, 0.22);
  color: #93c5fd;
}
.gf-rv-theme__badge--demo {
  background: #ede9fe;
  color: #5b21b6;
}
html.theme-dark .gf-rv-theme__badge--demo,
body.dark-mode .gf-rv-theme__badge--demo {
  background: rgba(139, 92, 246, 0.22);
  color: #c4b5fd;
}
.gf-rv-theme__buy {
  flex-shrink: 0;
  padding: 0;
  margin-left: auto;
  align-self: flex-end;
}
.gf-rv-theme__buy-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  margin: 0;
}
.gf-rv-theme__buy-form .btn {
  white-space: nowrap;
  min-width: 6.5rem;
  font-weight: 600;
}
.gf-rv-theme__buy-off {
  font-size: 0.75rem;
  color: var(--gf-muted);
  text-align: right;
}
.gf-rv-theme__use {
  opacity: 0.75;
  pointer-events: none;
}
.gf-rv-theme form {
  margin: 0;
  flex-shrink: 0;
}
.gf-rv-theme form .btn {
  white-space: nowrap;
  font-weight: 700;
  min-width: 5.5rem;
}

@media (max-width: 480px) {
  .gf-rv-theme__body {
    flex-direction: column;
    align-items: stretch;
  }
  .gf-rv-theme__buy {
    margin-left: 0;
    width: 100%;
  }
  .gf-rv-theme__buy-form {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .gf-rv-theme__buy-form .btn {
    flex: 1;
    min-width: 0;
  }
}

.gf-adm-user-dd .gf-admin-topbar__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  position: relative;
  z-index: 1;
}
/* Inicial atrás da foto; se a imagem falhar (onerror → is-fallback), fica visível */
.gf-admin-topbar__inicial {
  display: inline-flex;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-family: "Sora", "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  background: var(--gf-gradient);
  border-radius: inherit;
  z-index: 0;
}
.gf-admin-topbar__avatar.is-fallback img {
  display: none !important;
}

/* Bootstrap 3 pinta <a> de azul — anula no pill do usuário */
body.gf-adm .gf-adm-top__actions .gf-admin-topbar__user,
body.gf-adm .gf-adm-top__actions .gf-admin-topbar__user:hover,
body.gf-adm .gf-adm-top__actions .gf-admin-topbar__user:focus,
body.gf-adm .gf-adm-top__actions .gf-admin-topbar__hello,
body.gf-adm .gf-adm-top__actions .gf-admin-topbar__hello strong {
  color: inherit !important;
  text-decoration: none !important;
}
html.theme-dark body.gf-adm .gf-adm-top__actions .gf-admin-topbar__hello,
body.dark-mode .gf-adm-top__actions .gf-admin-topbar__hello {
  color: #a1a1aa !important;
}
html.theme-dark body.gf-adm .gf-adm-top__actions .gf-admin-topbar__hello strong,
body.dark-mode .gf-adm-top__actions .gf-admin-topbar__hello strong {
  color: #f4f4f5 !important;
}

body.gf-adm .gf-adm-top__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.gf-rv-dd-domain {
  cursor: default;
  opacity: 0.75;
  pointer-events: none;
  font-size: 0.82rem !important;
}

/* Itens do menu da loja (settings) — rótulo + caixa alinhados */
.gf-rv-check {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  font-weight: 400;
  margin: 0 0 0.55rem;
  cursor: pointer;
  color: var(--gf-text);
  line-height: 1.35;
}
.gf-rv-check span {
  user-select: none;
}

html body.gf-adm .gf-adm-content > .container-fluid {
  padding-left: 0;
  padding-right: 0;
  width: 100%;
  max-width: none;
}

/* Textos do tema — form + prévia */
.gf-rv-slots {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
@media (min-width: 1100px) {
  .gf-rv-slots {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 38%);
  }
  .gf-rv-slots__preview {
    position: sticky;
    top: 1rem;
  }
}
.gf-rv-slots__field {
  margin-bottom: 1rem;
}
.gf-rv-slots__field:last-child {
  margin-bottom: 0;
}
.gf-rv-slots__labrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .3rem;
}
.gf-rv-slots__labrow label {
  margin: 0;
  font-weight: 600;
  font-size: .88rem;
}
.gf-rv-slots__preview-bar {
  padding: .55rem .85rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  opacity: .7;
  border-bottom: 1px solid rgba(127,127,127,.18);
}
.gf-rv-slots__iframe {
  display: block;
  width: 100%;
  height: 70vh;
  min-height: 420px;
  border: 0;
  background: #fff;
}

.gf-rv-slots-tabs {
  display: flex;
  gap: .35rem;
  margin: 0 0 1rem;
  padding: .25rem;
  width: fit-content;
  max-width: 100%;
  background: rgba(127, 127, 127, .12);
  border-radius: .7rem;
}
.gf-rv-slots-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  font-size: .9rem;
  padding: .45rem .9rem;
  border-radius: .55rem;
  cursor: pointer;
  opacity: .7;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.gf-rv-slots-tab.is-on {
  background: var(--gf-adm-card, #1c1c20);
  opacity: 1;
  box-shadow: 0 1px 0 rgba(0,0,0,.12);
}
.gf-rv-slots-tab__n {
  font-size: .72rem;
  font-weight: 700;
  opacity: .55;
  min-width: 1.4rem;
  text-align: center;
  padding: .05rem .35rem;
  border-radius: 999px;
  background: rgba(127,127,127,.18);
}
.gf-rv-slots-tab.is-on .gf-rv-slots-tab__n {
  opacity: .85;
}

/* Upload de logo / favicon (Identidade) */
.gf-rv-upload {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.gf-rv-upload__file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.gf-rv-upload__name {
  font-size: .82rem;
  opacity: .65;
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gf-rv-upload__preview {
  display: block;
  max-height: 48px;
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  padding: 4px;
}
.gf-rv-upload__preview.is-empty {
  display: none;
}

/* ------------------------------------------------------------------
 * Orientação: cabeçalho de página + hero + atalhos + pedidos
 * O revendedor precisa saber O QUE FAZER em cada tela — não só o título.
 * ----------------------------------------------------------------*/

.gf-rv-page {
  margin: 0 0 1.15rem;
}
.gf-rv-page__eyebrow {
  display: inline-block;
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gf-accent-2);
}
.gf-rv-page__title {
  margin: 0 0 0.4rem;
  font-family: "Sora", "DM Sans", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gf-text);
}
.gf-rv-page__lead {
  margin: 0;
  max-width: 40rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--gf-muted);
}

.gf-rv-welcome {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
  gap: 1.25rem;
  align-items: stretch;
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(193, 53, 132, 0.28);
  background:
    radial-gradient(720px 220px at 8% -10%, rgba(131, 58, 180, 0.28), transparent 55%),
    radial-gradient(520px 200px at 95% 110%, rgba(225, 48, 108, 0.2), transparent 50%),
    linear-gradient(155deg, #141418 0%, #1a1218 55%, #121214 100%);
  color: #f4f4f5;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}
html:not(.theme-dark) body:not(.dark-mode):not(.theme-dark) .gf-rv-welcome {
  background:
    radial-gradient(720px 220px at 8% -10%, rgba(131, 58, 180, 0.14), transparent 55%),
    radial-gradient(520px 200px at 95% 110%, rgba(225, 48, 108, 0.1), transparent 50%),
    linear-gradient(155deg, #1c1520 0%, #221820 60%, #161418 100%);
}
.gf-rv-welcome__copy h2 {
  margin: 0 0 0.45rem;
  font-family: "Sora", "DM Sans", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
}
.gf-rv-welcome__copy p {
  margin: 0 0 1rem;
  max-width: 34rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(244, 244, 245, 0.78);
}
.gf-rv-welcome__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.gf-rv-welcome__actions .btn-primary {
  font-weight: 700;
  border: 0;
  background: var(--gf-gradient);
  box-shadow: 0 8px 18px rgba(225, 48, 108, 0.28);
}
.gf-rv-welcome__actions .btn-default {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f4f4f5;
}
.gf-rv-welcome__actions .btn-default:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.gf-rv-welcome__side {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  justify-content: center;
}
.gf-rv-welcome__pill {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.gf-rv-welcome__pill-ico {
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #f9a8d4;
}
.gf-rv-welcome__pill strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.2;
}
.gf-rv-welcome__pill span {
  display: block;
  font-size: 0.75rem;
  opacity: 0.7;
  line-height: 1.3;
}
.gf-rv-welcome__pill.is-ok .gf-rv-welcome__pill-ico { color: #4ade80; }
.gf-rv-welcome__pill.is-warn .gf-rv-welcome__pill-ico { color: #fbbf24; }
.gf-rv-welcome__pill.is-bad .gf-rv-welcome__pill-ico { color: #f87171; }

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

.gf-rv-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
@media (max-width: 1100px) {
  .gf-rv-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .gf-rv-steps { grid-template-columns: 1fr; }
}
.gf-rv-step {
  display: block;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--gf-border);
  background: var(--gf-surface);
  box-shadow: var(--gf-shadow);
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  min-height: 100%;
}
.gf-rv-step:hover {
  border-color: rgba(193, 53, 132, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.gf-rv-step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  margin-bottom: 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: var(--gf-gradient);
}
.gf-rv-step__tit {
  display: block;
  margin-bottom: 0.25rem;
  font-family: "Sora", "DM Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gf-text);
}
.gf-rv-step__txt {
  display: block;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--gf-muted);
}
.gf-rv-step.is-done {
  border-color: rgba(34, 197, 94, 0.35);
}
.gf-rv-step.is-done .gf-rv-step__n {
  background: #16a34a;
}
.gf-rv-step.is-urgent {
  border-color: rgba(245, 158, 11, 0.45);
  background:
    linear-gradient(180deg, rgba(245, 158, 11, 0.08), transparent 60%),
    var(--gf-surface);
}

.gf-rv-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
@media (max-width: 1100px) {
  .gf-rv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .gf-rv-stats { grid-template-columns: 1fr; }
}
.gf-rv-statcard {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.05rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--gf-border);
  background: var(--gf-surface);
  box-shadow: var(--gf-shadow);
}
.gf-rv-statcard::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--gf-gradient);
}
.gf-rv-statcard__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.gf-rv-statcard__ico {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(193, 53, 132, 0.12);
  color: var(--gf-accent-2);
  font-size: 0.9rem;
}
.gf-rv-statcard .gf-rv__num {
  font-size: 1.5rem;
}
.gf-rv-statcard small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--gf-muted);
  line-height: 1.35;
}

.gf-rv-section {
  margin-bottom: 1.1rem;
}
.gf-rv-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}
.gf-rv-section__head h3 {
  margin: 0;
  font-family: "Sora", "DM Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}
.gf-rv-section__head p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--gf-muted);
}

.gf-rv-empty {
  text-align: center;
  padding: 2rem 1.25rem;
}
.gf-rv-empty__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: rgba(193, 53, 132, 0.12);
  color: var(--gf-accent-2);
  font-size: 1.15rem;
}
.gf-rv-empty h4 {
  margin: 0 0 0.35rem;
  font-family: "Sora", "DM Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}
.gf-rv-empty p {
  margin: 0 auto 1rem;
  max-width: 28rem;
  font-size: 0.88rem;
  color: var(--gf-muted);
  line-height: 1.5;
}

.gf-rv-order {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--gf-border);
}
.gf-rv-order:last-child { border-bottom: 0; padding-bottom: 0; }
.gf-rv-order:first-child { padding-top: 0; }
.gf-rv-order__id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--gf-muted);
}
.gf-rv-order__main strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}
.gf-rv-order__meta {
  font-size: 0.78rem;
  color: var(--gf-muted);
  line-height: 1.4;
}
.gf-rv-order__side {
  text-align: right;
  white-space: nowrap;
}
.gf-rv-order__val {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
@media (max-width: 640px) {
  .gf-rv-order {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .gf-rv-order__side { text-align: left; }
}

.gf-rv-badge {
  display: inline-block;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(113, 113, 122, 0.18);
  color: var(--gf-muted);
}
.gf-rv-badge--ok { background: rgba(34, 197, 94, 0.16); color: #16a34a; }
.gf-rv-badge--warn { background: rgba(245, 158, 11, 0.18); color: #d97706; }
.gf-rv-badge--run { background: rgba(59, 130, 246, 0.16); color: #2563eb; }
.gf-rv-badge--bad { background: rgba(239, 68, 68, 0.16); color: #dc2626; }
html.theme-dark .gf-rv-badge--ok,
body.dark-mode .gf-rv-badge--ok { color: #4ade80; }
html.theme-dark .gf-rv-badge--warn,
body.dark-mode .gf-rv-badge--warn { color: #fbbf24; }
html.theme-dark .gf-rv-badge--run,
body.dark-mode .gf-rv-badge--run { color: #93c5fd; }
html.theme-dark .gf-rv-badge--bad,
body.dark-mode .gf-rv-badge--bad { color: #f87171; }

.gf-rv-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
}
.gf-rv-toolbar__grow { flex: 1 1 12rem; min-width: 10rem; }
.gf-rv-toolbar__count {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--gf-muted);
}

/* Filtros /admin/services do revendedor */
.gf-rv-srv-desk { margin: 0.85rem 0 0; }
.gf-rv-srv-desk__label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gf-muted);
  margin-bottom: 0.45rem;
}
.gf-rv-srv-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.4rem;
}
.gf-rv-srv-cat {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--gf-border);
  background: var(--gf-surface, #fff);
  color: var(--gf-text, #18181b);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.gf-rv-srv-cat i { font-size: 0.9rem; }
.gf-rv-srv-cat__name {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gf-rv-srv-cat__n {
  font-size: 0.7rem;
  font-weight: 800;
  opacity: 0.65;
}
.gf-rv-srv-cat:hover { border-color: #a1a1aa; }
.gf-rv-srv-cat.is-on {
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
}
.gf-rv-srv-cat.is-on i { color: #fff !important; }
.gf-rv-srv-cat.is-on .gf-rv-srv-cat__n { opacity: 0.95; }

.gf-rv-srv-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.gf-rv-srv-type {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--gf-border);
  background: var(--gf-surface, #fff);
  color: var(--gf-text, #18181b);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.gf-rv-srv-type.is-on {
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
}
@media (max-width: 767.98px) {
  .gf-rv-srv-cats,
  .gf-rv-srv-types {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gf-rv-srv-cats::-webkit-scrollbar,
  .gf-rv-srv-types::-webkit-scrollbar { display: none; }
  .gf-rv-srv-cat { flex: 0 0 auto; min-width: 9.5rem; }
  .gf-rv-srv-type { white-space: nowrap; flex: 0 0 auto; }
}

/* ---- Whitelabel Total (badge + upsell + modal) --------------------------- */

.gf-rv-theme__wl {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
  font-size: 0.75rem;
}
.gf-rv-theme__wl a {
  text-decoration: underline;
  color: var(--gf-accent-2);
}
.gf-rv-theme__badge--wl {
  background: #fce7f3;
  color: #9d174d;
}
html.theme-dark .gf-rv-theme__badge--wl,
body.dark-mode .gf-rv-theme__badge--wl {
  background: rgba(236, 72, 153, 0.2);
  color: #f9a8d4;
}
.gf-rv-theme__wl-add {
  padding: 0;
  font-size: 0.75rem;
}

.gf-rv-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.gf-rv-modal[hidden] { display: none; }
.gf-rv-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 20, 0.55);
}
.gf-rv-modal__box {
  position: relative;
  width: 100%;
  max-width: 26rem;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--gf-surface);
  color: var(--gf-text);
  border: 1px solid var(--gf-border);
  border-radius: var(--gf-radius-sm);
  box-shadow: var(--gf-shadow);
  padding: 1.25rem 1.4rem 1.4rem;
}
.gf-rv-modal__x {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  background: none;
  border: 0;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--gf-muted);
  cursor: pointer;
}
.gf-rv-modal__addon {
  align-items: flex-start;
  border: 1px solid var(--gf-border);
  border-radius: var(--gf-radius-sm);
  padding: 0.75rem 0.85rem;
  margin: 0 0 1rem;
}
.gf-rv-modal__addon input { margin-top: 0.2rem; }
.gf-rv-modal__beneficios {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gf-muted);
}
.gf-rv-modal__beneficios li { margin-bottom: 0.25rem; }
.gf-rv-modal__total {
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}
.gf-rv-modal__form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
