/* =====================================================================
   GPETS Brasil — assets/css/style.css
   ===================================================================== */

:root {
  --gp-primary: #1BA39C;
  --gp-primary-dark: #158A84;
  --gp-primary-soft: #E6F5F4;
  --gp-dark: #12343B;
  --gp-ink: #22303C;
  --gp-muted: #6B7A86;
  --gp-accent: #FFB020;
  --gp-danger: #E14D4D;
  --gp-bg: #F6F8F9;
  --gp-radius: 16px;
  --gp-shadow: 0 2px 14px rgba(18, 52, 59, .07);
  --gp-shadow-lg: 0 12px 34px rgba(18, 52, 59, .12);
}

body {
  background: var(--gp-bg);
  color: var(--gp-ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

a { color: var(--gp-primary-dark); text-decoration: none; }
a:hover { color: var(--gp-primary); text-decoration: underline; }

/* ---------------------------------------------------------- Navbar */
.gp-navbar {
  background: #fff;
  box-shadow: var(--gp-shadow);
  padding-top: .6rem;
  padding-bottom: .6rem;
}
.gp-navbar .navbar-brand { font-size: 1.35rem; color: var(--gp-dark); letter-spacing: -.5px; }
.gp-navbar .navbar-brand:hover { text-decoration: none; }
.gp-brand-tail { color: var(--gp-primary); font-weight: 600; }
.gp-logo { font-size: 1.3rem; }
.gp-navbar .nav-link { color: var(--gp-ink); font-weight: 500; }
.gp-navbar .nav-link:hover,
.gp-navbar .nav-link.active { color: var(--gp-primary); }
.gp-navbar-admin { border-top: 3px solid var(--gp-dark); }

/* ---------------------------------------------------------- Botões */
.btn-gp-primary {
  background: var(--gp-primary);
  border-color: var(--gp-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
}
.btn-gp-primary:hover, .btn-gp-primary:focus {
  background: var(--gp-primary-dark);
  border-color: var(--gp-primary-dark);
  color: #fff;
}
.btn-gp-outline {
  border: 2px solid var(--gp-primary);
  color: var(--gp-primary-dark);
  font-weight: 600;
  border-radius: 10px;
  background: transparent;
}
.btn-gp-outline:hover { background: var(--gp-primary); color: #fff; }
.btn-gp-whats { background: #25D366; border-color: #25D366; color: #fff; font-weight: 700; border-radius: 10px; }
.btn-gp-whats:hover { background: #1DB455; color: #fff; }

/* ------------------------------------------------------------ Hero */
.gp-hero {
  background: linear-gradient(135deg, #12343B 0%, #1BA39C 100%);
  color: #fff;
  padding: 68px 0 76px;
  position: relative;
  overflow: hidden;
}
.gp-hero h1 { font-weight: 800; letter-spacing: -1px; line-height: 1.12; }
.gp-hero .lead { opacity: .93; }
.gp-hero-paws { position: absolute; inset: 0; opacity: .07; font-size: 90px; pointer-events: none; }
.gp-hero-card {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--gp-radius);
  backdrop-filter: blur(4px);
  padding: 22px;
}

/* ---------------------------------------------------------- Cartões */
.gp-card {
  background: #fff;
  border: 0;
  border-radius: var(--gp-radius);
  box-shadow: var(--gp-shadow);
}
.gp-card-hover { transition: transform .18s ease, box-shadow .18s ease; }
.gp-card-hover:hover { transform: translateY(-3px); box-shadow: var(--gp-shadow-lg); }

.gp-step-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gp-primary-soft);
  color: var(--gp-primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.15rem;
  margin-bottom: 14px;
}

.gp-stat { text-align: center; padding: 18px 10px; }
.gp-stat-num { font-size: 2rem; font-weight: 800; color: var(--gp-primary-dark); line-height: 1; }
.gp-stat-label { color: var(--gp-muted); font-size: .88rem; margin-top: 4px; }

.section-title { font-weight: 800; letter-spacing: -.6px; color: var(--gp-dark); }
.section-sub { color: var(--gp-muted); }

/* ------------------------------------------------------- Pet cards */
.gp-pet-photo {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--gp-radius) var(--gp-radius) 0 0;
  background: var(--gp-primary-soft);
}
.gp-pet-avatar {
  width: 92px; height: 92px; object-fit: cover;
  border-radius: 50%; border: 4px solid #fff; box-shadow: var(--gp-shadow);
  background: var(--gp-primary-soft);
}
.gp-badge-lost {
  background: var(--gp-danger); color: #fff; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
}

/* -------------------------------------------------------- Página QR */
.gp-qr-page { background: linear-gradient(180deg, #12343B 0%, #1BA39C 260px, var(--gp-bg) 260px); min-height: 100vh; }
.gp-qr-card { max-width: 560px; margin: 0 auto; }
.gp-qr-hero-photo {
  width: 160px; height: 160px; object-fit: cover; border-radius: 50%;
  border: 6px solid #fff; box-shadow: var(--gp-shadow-lg); background: #fff;
}
.gp-qr-alert {
  background: #FFF4E5; border-left: 5px solid var(--gp-accent);
  border-radius: 10px; padding: 14px 16px;
}
.gp-data-row { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid #EEF1F3; }
.gp-data-row:last-child { border-bottom: 0; }
.gp-data-icon { width: 26px; color: var(--gp-primary); text-align: center; flex: 0 0 26px; }
.gp-data-label { color: var(--gp-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .4px; }
.gp-data-value { font-weight: 600; }

.gp-qr-preview { background: #fff; padding: 12px; border-radius: 12px; box-shadow: var(--gp-shadow); display: inline-block; }
.gp-qr-preview img { display: block; width: 200px; height: 200px; image-rendering: pixelated; }

/* ---------------------------------------------------------- Premium */
.gp-premium-box {
  background: linear-gradient(135deg, #FFF7E6, #FFFDF7);
  border: 1px solid #FFE2A8; border-radius: var(--gp-radius);
}
.gp-progress { height: 9px; border-radius: 6px; background: #EEF1F3; }
.gp-progress-bar { height: 100%; border-radius: 6px; background: var(--gp-primary); }

/* ----------------------------------------------------------- Footer */
.gp-footer { background: var(--gp-dark); color: #C6D3D8; padding: 44px 0 22px; }
.gp-footer a { color: #C6D3D8; }
.gp-footer a:hover { color: #fff; text-decoration: none; }
.gp-footer-title { color: #fff; font-weight: 700; margin-bottom: 10px; }
.gp-footer-hr { border-color: rgba(255, 255, 255, .12); margin: 26px 0 14px; }
.gp-footer-bottom { color: #93A6AE; gap: 8px; }
.gp-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); margin-right: 8px; color: #fff;
}
.gp-social a:hover { background: var(--gp-primary); }

/* ------------------------------------------------- Banner instalação */
.gp-install-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1080;
  background: #fff; border-radius: 14px; box-shadow: var(--gp-shadow-lg);
  padding: 12px 14px;
}
.gp-install-inner { display: flex; align-items: center; gap: 12px; }
.gp-install-icon { font-size: 1.6rem; }
@media (min-width: 768px) {
  .gp-install-banner { left: auto; right: 20px; bottom: 20px; max-width: 420px; }
}

/* ------------------------------------------------------------ Utils */
.gp-bg-soft { background: var(--gp-primary-soft); }
.text-gp { color: var(--gp-primary-dark); }
.gp-divider { height: 1px; background: #E7ECEE; margin: 22px 0; }
.form-control:focus, .form-select:focus {
  border-color: var(--gp-primary);
  box-shadow: 0 0 0 .2rem rgba(27, 163, 156, .18);
}
.gp-empty { text-align: center; padding: 46px 18px; color: var(--gp-muted); }
.gp-empty i { font-size: 3rem; color: #CBD6DA; margin-bottom: 12px; }
.table > :not(caption) > * > * { padding: .7rem .75rem; }
.gp-sticky-actions { position: sticky; bottom: 0; background: #fff; padding: 12px 0; border-top: 1px solid #E7ECEE; }

/* =====================================================================
   PAINEL DE GESTÃO — MENU LATERAL  (v1.3.0)
   ===================================================================== */

.gp-admin {
  display: flex;
  min-height: 100vh;
  background: #f2f6f7;
}

/* ------------------------------------------------------------ Sidebar */
.gp-side {
  width: 258px;
  flex: 0 0 258px;
  background: linear-gradient(180deg, #12343B 0%, #0d272d 100%);
  color: #cfe3e4;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1040;
}

.gp-side-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.gp-side-brand a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
}
.gp-side-brand-text span { color: #1BA39C; font-weight: 600; }
.gp-side-close {
  background: none;
  border: 0;
  color: #cfe3e4;
  font-size: 1.15rem;
  line-height: 1;
}

.gp-side-nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 10px 20px;
}
.gp-side-nav::-webkit-scrollbar { width: 6px; }
.gp-side-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 3px; }

.gp-side-group {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #7fa3a8;
  font-weight: 700;
  padding: 16px 12px 7px;
}
.gp-side-group:first-child { padding-top: 4px; }

.gp-side-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #cfe3e4;
  text-decoration: none;
  font-size: .91rem;
  font-weight: 500;
  transition: background .16s, color .16s;
}
.gp-side-link i { width: 19px; text-align: center; font-size: .95rem; opacity: .85; }
.gp-side-link span { flex: 1; }
.gp-side-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.gp-side-link.active {
  background: #1BA39C;
  color: #fff;
  box-shadow: 0 4px 12px rgba(27, 163, 156, .3);
}
.gp-side-link.active i { opacity: 1; }

.gp-side-badge {
  background: #e6484a;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  min-width: 21px;
  text-align: center;
}
.gp-side-badge-soft { background: rgba(255, 255, 255, .18); }
.gp-side-link.active .gp-side-badge-soft { background: rgba(0, 0, 0, .22); }

.gp-side-sub {
  margin: 2px 0 8px 30px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, .13);
  display: flex;
  flex-direction: column;
}
.gp-side-sub a {
  color: #9dbfc4;
  text-decoration: none;
  font-size: .82rem;
  padding: 6px 8px;
  border-radius: 7px;
}
.gp-side-sub a i { width: 15px; font-size: .75rem; margin-right: 3px; opacity: .8; }
.gp-side-sub a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.gp-side-sub a.active { color: #fff; background: rgba(27, 163, 156, .28); }

.gp-side-foot {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 12px 10px 14px;
}
.gp-side-foot a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 12px;
  color: #9dbfc4;
  text-decoration: none;
  font-size: .85rem;
  border-radius: 8px;
}
.gp-side-foot a i { width: 19px; text-align: center; }
.gp-side-foot a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.gp-side-version {
  text-align: center;
  font-size: .7rem;
  color: #5d8288;
  padding-top: 8px;
}

/* --------------------------------------------------------- Área principal */
.gp-admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.gp-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  padding: 12px 22px;
  border-bottom: 1px solid #e3ecee;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.gp-topbar-burger {
  background: none;
  border: 0;
  font-size: 1.2rem;
  color: #12343B;
  display: none;
}
.gp-topbar-title { flex: 1; min-width: 0; }
.gp-topbar-title h1 {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0;
  color: #12343B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gp-topbar-date { font-size: .76rem; color: #7b8f95; }

.gp-topbar-actions { display: flex; align-items: center; gap: 6px; }
.gp-topbar-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4c6a71;
  text-decoration: none;
  transition: background .15s;
}
.gp-topbar-icon:hover { background: #eef4f5; color: #12343B; }
.gp-dot {
  position: absolute;
  top: 3px;
  right: 2px;
  background: #e6484a;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.gp-topbar-user {
  background: #f2f6f7;
  border: 0;
  border-radius: 10px;
  padding: 8px 13px;
  font-size: .87rem;
  font-weight: 600;
  color: #12343B;
  display: flex;
  align-items: center;
  gap: 7px;
}
.gp-topbar-user:hover { background: #e6eef0; }

.gp-admin-flash { padding: 14px 22px 0; }
.gp-admin-flash:empty { display: none; }

/* As páginas internas usam .container: dentro do painel ocupa todo o ancho */
.gp-admin-main .container {
  max-width: 100%;
  width: 100%;
  padding-left: 22px;
  padding-right: 22px;
}

/* ------------------------------------------------------------ Responsive */
.gp-side-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 20, 24, .5);
  z-index: 1035;
}

@media (max-width: 991.98px) {
  .gp-side {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform .22s ease;
    box-shadow: 0 0 30px rgba(0, 0, 0, .3);
  }
  .gp-admin.gp-side-open .gp-side { transform: translateX(0); }
  .gp-admin.gp-side-open .gp-side-backdrop { display: block; }
  .gp-topbar-burger { display: inline-flex; }
  .gp-admin-main .container { padding-left: 14px; padding-right: 14px; }
  .gp-admin-flash { padding: 12px 14px 0; }
  .gp-topbar { padding: 10px 14px; }
}

/* Sidebar recolhida no desktop (só ícones) */
@media (min-width: 992px) {
  .gp-admin.gp-side-mini .gp-side { width: 74px; flex: 0 0 74px; }
  .gp-admin.gp-side-mini .gp-side-brand-text,
  .gp-admin.gp-side-mini .gp-side-link span,
  .gp-admin.gp-side-mini .gp-side-group,
  .gp-admin.gp-side-mini .gp-side-sub,
  .gp-admin.gp-side-mini .gp-side-foot a span,
  .gp-admin.gp-side-mini .gp-side-version { display: none; }
  .gp-admin.gp-side-mini .gp-side-link,
  .gp-admin.gp-side-mini .gp-side-foot a { justify-content: center; }
  .gp-admin.gp-side-mini .gp-side-badge {
    position: absolute;
    margin-left: 26px;
    margin-top: -16px;
    padding: 1px 5px;
    font-size: .6rem;
  }
  .gp-admin.gp-side-mini .gp-side-brand { justify-content: center; }
  .gp-topbar-burger { display: inline-flex; }
}

@media print {
  .gp-side, .gp-topbar, .gp-side-backdrop { display: none !important; }
  .gp-admin-main .container { padding: 0; }
}

/* Botão do Facebook Login (atualização 005) */
.btn-gp-facebook {
  background: #1877F2;
  border: 1px solid #1877F2;
  color: #fff;
  font-weight: 600;
}
.btn-gp-facebook:hover,
.btn-gp-facebook:focus {
  background: #0f63d2;
  border-color: #0f63d2;
  color: #fff;
}

/* Recorte da foto do pet (atualização 008) */
.gp-crop-palco {
  position: relative;
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f3;
  touch-action: none;
}
.gp-crop-canvas { display: block; cursor: grab; }
.gp-crop-canvas:active { cursor: grabbing; }
.gp-crop-mascara {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85), inset 0 0 0 9999px rgba(18, 52, 59, .18);
  border-radius: 50%;
}
.gp-crop-zoom { flex: 1; }

/* =====================================================================
   LOGO OFICIAL (atualização 012)
   ===================================================================== */

/* Barras de navegação: o logo manda no tamanho, o texto sai de cena */
.gp-brand-img {
  height: 72px;
  width: auto;
  display: block;
  max-width: 100%;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
  padding-bottom: 2px;
  margin-right: 0;
}
/* A barra cresce junto com o logo */
.gp-navbar { padding-top: .3rem; padding-bottom: .3rem; }

/* Nas barras escuras o logo tem fundo branco próprio: uma leve
   moldura clara evita que "flutue" sobre o azul */
.gp-navbar-panel .gp-brand-img,
.gp-navbar-empresa .gp-brand-img {
  background: #fff;
  border-radius: 10px;
  padding: 4px 10px;
}

/* Menu lateral da gestão */
.gp-side-brand-img {
  height: 52px;
  width: auto;
  background: #fff;
  border-radius: 9px;
  padding: 4px 9px;
}
.gp-admin.gp-side-mini .gp-side-brand-img {
  height: 34px;
  padding: 3px 5px;
}
.gp-side-brand { padding-top: 14px; padding-bottom: 14px; }

/* Rodapé */
.gp-footer-logo {
  height: 84px;
  width: auto;
  background: #fff;
  border-radius: 10px;
  padding: 7px 12px;
}

/* Convite para instalar o app */
.gp-install-icon-img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex: 0 0 56px;
}

/* Tablet */
@media (max-width: 991.98px) {
  .gp-brand-img { height: 60px; }
  .gp-side-brand-img { height: 46px; }
}

/* Celular: o logo continua bem maior que antes, mas sem empurrar o
   botão do menu para fora da tela */
@media (max-width: 575.98px) {
  .gp-brand-img { height: 52px; }
  .gp-navbar-panel .gp-brand-img,
  .gp-navbar-empresa .gp-brand-img { padding: 3px 7px; }
  .gp-footer-logo { height: 66px; }
  .gp-brand-tail { font-size: .85rem; }
}

/* Telas muito estreitas (iPhone SE e similares) */
@media (max-width: 359.98px) {
  .gp-brand-img { height: 44px; }
}

/* Bloco de localização e aviso de privacidade na página do QR (Secure Scan) */
.gp-geo-box {
  background: #f3f8f8;
  border: 1px solid #d7e6e6;
  border-radius: 12px;
  padding: 18px;
}
.gp-privacy-note {
  border-top: 1px solid #e6eef0;
  padding-top: 12px;
  line-height: 1.5;
}
.gp-privacy-note code {
  background: #eef2f3;
  padding: 1px 6px;
  border-radius: 4px;
}

/* Faixa da demonstração na página do QR */
.gp-demo-banner {
  background: linear-gradient(90deg, #0D7A3E, #1BA39C);
  color: #fff;
  padding: 12px 0;
  font-size: .9rem;
  text-align: center;
}
.gp-demo-cta {
  display: inline-block;
  background: #fff;
  color: #0D7A3E !important;
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 700;
  text-decoration: none;
  margin-left: 10px;
  font-size: .84rem;
}
.gp-demo-cta:hover { background: #f0f7f4; }
@media (max-width: 575.98px) {
  .gp-demo-banner { font-size: .82rem; padding: 10px 12px; }
  .gp-demo-cta { display: block; margin: 8px auto 0; max-width: 260px; }
}

/* =====================================================================
   HOME — arte do hero e contadores (correção do layout mobile)
   ===================================================================== */

/* A imagem OG no lugar do card de texto */
.gp-hero-art {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
  line-height: 0;
  background: #fff;
}
.gp-hero-art img {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------- Contadores
   O problema no celular: três colunas fixas com números de 7 dígitos.
   "1.267.957" não cabe em um terço da tela e quebra o layout inteiro.
   Agora: empilhados no celular, e o tamanho da fonte acompanha a tela. */
.gp-counters {
  background: #fff;
  border-bottom: 1px solid #eef2f3;
}
.gp-counter {
  padding: 14px 10px;
  border-radius: 12px;
  background: #f7fafa;
  height: 100%;
}
.gp-counter-icon {
  color: #1BA39C;
  font-size: 1.1rem;
  margin-bottom: 6px;
  display: block;
}
.gp-counter-num {
  font-weight: 800;
  color: #12343B;
  line-height: 1.1;
  /* Nunca menor que 1.5rem nem maior que 2.4rem, escalando com a tela */
  font-size: clamp(1.5rem, 6vw, 2.4rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
  white-space: nowrap;
}
.gp-counter-label {
  font-size: .82rem;
  color: #6B7A86;
  margin-top: 2px;
}

/* Celular: um embaixo do outro, em linha e sem quebrar */
@media (max-width: 575.98px) {
  .gp-counter {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 12px 14px;
  }
  .gp-counter-icon {
    margin-bottom: 0;
    font-size: 1.25rem;
    width: 26px;
    flex: 0 0 26px;
  }
  .gp-counter-num {
    font-size: 1.45rem;
    flex: 0 0 auto;
  }
  .gp-counter-label {
    margin-top: 0;
    font-size: .8rem;
  }
}

/* Tablet: cabem três, mas com números menores */
@media (min-width: 576px) and (max-width: 991.98px) {
  .gp-counter-num { font-size: clamp(1.2rem, 3.4vw, 1.8rem); }
  .gp-counter-label { font-size: .75rem; }
}

/* Observações de manejo na ficha médica do QR */
.gp-med-notes {
  background: #fff8e6;
  border-left: 3px solid #f0ad4e;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: .88rem;
}

/* =====================================================================
   AJUSTES GERAIS DE MOBILE
   ===================================================================== */

/* Rede de segurança: nada empurra a página para os lados.
   Um número, uma tabela ou uma URL longa não devem gerar scroll lateral. */
html, body { overflow-x: hidden; }

/* Números grandes dentro de cards do painel */
.gp-stat-num {
  font-size: clamp(1.3rem, 5vw, 2rem);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.gp-stat-label {
  font-size: clamp(.7rem, 2.6vw, .82rem);
  line-height: 1.25;
}

/* Palavras e e-mails longos não estouram o card */
.gp-card, .gp-data-value, .gp-stat { overflow-wrap: anywhere; }

@media (max-width: 575.98px) {
  /* Títulos do hero e das seções */
  .gp-hero h1 { font-size: clamp(1.6rem, 7.5vw, 2.2rem); line-height: 1.2; }
  .gp-hero { padding-top: 1.75rem; padding-bottom: 1.75rem; }

  /* Botões grandes empilhados ocupam a largura toda */
  .gp-hero .btn-lg { width: 100%; }
  .gp-hero .d-flex.gap-2,
  .gp-hero .d-flex.gap-3 { flex-direction: column; }

  /* Cards com menos respiro lateral para ganhar largura útil */
  .gp-card { padding-left: 1rem; padding-right: 1rem; }

  /* Tabelas do painel: fonte menor antes de recorrer ao scroll */
  .table-responsive table { font-size: .82rem; }

  /* Grupos de botões que não cabem lado a lado */
  .btn-group-sm { flex-wrap: wrap; }
}

/* =====================================================================
   CABEÇALHO DA PÁGINA DE EMPRESA
   O nome ficava POR CIMA da faixa colorida, com contraste ruim.
   Agora só o logo invade a faixa; o texto fica embaixo, no branco.
   ===================================================================== */
.gp-emp-banner {
  background: linear-gradient(135deg, #12343B, #1BA39C);
  height: 96px;
}
.gp-emp-logo {
  margin-top: -46px;
  border: 4px solid #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
  background: #fff;
  position: relative;
  z-index: 2;
}
.gp-emp-head {
  margin-top: 14px;
}

@media (max-width: 575.98px) {
  .gp-emp-banner { height: 72px; }
  .gp-emp-logo { margin-top: -38px; }
  .gp-emp-head { margin-top: 12px; }
  .gp-emp-head h1 { font-size: clamp(1.25rem, 6vw, 1.6rem); }
}

/* =====================================================================
   ÍNDICE DE CATEGORIAS DO DIRETÓRIO
   ===================================================================== */
.gp-cat-card {
  display: block;
  height: 100%;
  padding: 18px 12px;
  border: 1px solid #e6eef0;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.gp-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(18, 52, 59, .1);
  border-color: #1BA39C;
  color: inherit;
}
.gp-cat-icon {
  font-size: 1.6rem;
  color: #1BA39C;
  display: block;
  margin-bottom: 10px;
}
.gp-cat-name {
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.25;
  color: #12343B;
}
.gp-cat-count {
  font-size: .78rem;
  color: #6B7A86;
  margin-top: 4px;
}
@media (max-width: 575.98px) {
  .gp-cat-card { padding: 14px 8px; }
  .gp-cat-icon { font-size: 1.35rem; margin-bottom: 7px; }
  .gp-cat-name { font-size: .84rem; }
}

/* O que a assinatura libera, na tela de cadastro da empresa */
.gp-plano-inclui {
  background: #f3f8f8;
  border: 1px solid #d7e6e6;
  border-left: 4px solid #0D7A3E;
  border-radius: 12px;
  padding: 16px 18px;
}
.gp-plano-inclui .row > div { line-height: 1.45; }

/* Linhas de contato no perfil da empresa */
.gp-contato-linha { padding-bottom: 4px; border-bottom: 1px dashed #eef2f3; }
.gp-contato-linha:last-child { border-bottom: 0; }

/* Redes sociais na página da empresa */
.gp-social-row { display: flex; gap: 8px; flex-wrap: wrap; }
.gp-social-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #e6eef0; border-radius: 10px;
  color: #12343B; text-decoration: none; font-size: 1.05rem;
  transition: all .15s ease;
}
.gp-social-btn:hover { background: #0D7A3E; border-color: #0D7A3E; color: #fff; }

/* =====================================================================
   CUPOM DE PROMOÇÃO
   ===================================================================== */
.gp-cupom-promo,
.gp-cupom-ativo {
  border-radius: 16px;
  padding: 26px;
  color: #fff;
}
.gp-cupom-promo { background: linear-gradient(135deg, #0D7A3E, #1BA39C); }
.gp-cupom-ativo { background: linear-gradient(135deg, #12343B, #0D7A3E); }
.gp-cupom-promo h1 { font-size: clamp(1.35rem, 4.5vw, 1.9rem); line-height: 1.25; }
.gp-cupom-num {
  font-size: clamp(1.6rem, 6vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.gp-cupom-pct {
  font-size: clamp(2.4rem, 11vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}
.gp-cupom-ativo code {
  background: rgba(255, 255, 255, .18);
  color: #fff;
  padding: 1px 7px;
  border-radius: 5px;
}
@media (max-width: 575.98px) {
  .gp-cupom-promo, .gp-cupom-ativo { padding: 20px 18px; }
}

/* Escolha de perfil quando o e-mail tem duas contas */
.gp-perfil-card {
  background: #fff;
  border: 1px solid #e6eef0;
  border-radius: 14px;
  padding: 26px 18px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.gp-perfil-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(18, 52, 59, .12);
  border-color: #1BA39C;
}
.gp-perfil-icone { font-size: 2.2rem; display: block; margin-bottom: 12px; }

/* Prefixo fixo do país e campo de DDD */
.gp-pais-fixo { font-weight: 600; background: #f3f8f8; }
.gp-ddd-campo { max-width: 84px; text-align: center; }

/* Explicação do preço de lançamento */
.gp-preco-explica {
  background: #f3f8f8;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  line-height: 1.45;
  color: #4a5b64;
}
