* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f0f2f5;
  color: #333;
  min-height: 100vh;
  padding-bottom: 50px;
}

/* ===== TELAS ===== */
.tela { display: none; }
.tela.ativa { display: block; }

/* ===== LOGIN ===== */
.login-container {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo {
  text-align: center;
  margin-bottom: 30px;
}

.logo i {
  font-size: 60px;
  color: #f59e0b;
  margin-bottom: 10px;
}

.logo-marca {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 24px;
  margin-bottom: 12px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .22);
}

.logo h1 {
  font-size: 28px;
  color: #1e293b;
}

.logo .empresa {
  font-size: 14px;
  color: #f59e0b;
  font-weight: 600;
  margin-top: 4px;
}

.logo .cnpj {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.empresa-responsavel {
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  margin-top: 4px;
}

.perfis-entrada {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: -10px 0 18px;
}

.perfil-entrada {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 8px;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  background: #0a0a0a;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
}

.perfil-entrada i {
  color: #f5b83a;
  font-size: 22px;
}

.perfil-entrada span {
  font-size: 13px;
  font-weight: 800;
}

.perfil-entrada small {
  color: #fde68a;
  font-size: 10px;
  line-height: 1.2;
}

.admin-identidade {
  display: inline-flex;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #0a0a0a;
  color: #f5b83a;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

#form-login, #form-cadastro {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

#form-login h2, #form-cadastro h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #1e293b;
}

/* ===== CAMPOS ===== */
.campo {
  margin-bottom: 15px;
}

.campo label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 5px;
}

.campo input, .campo select, .campo textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  outline: none;
}

.campo input:focus, .campo select:focus, .campo textarea:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.campo textarea {
  height: 80px;
  resize: vertical;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.termos-box {
  display: grid;
  gap: 10px;
  margin: 15px 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.termos-box label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
}

.termos-box input {
  width: auto;
  margin-top: 2px;
}

.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  line-height: 1.65;
}

.legal-page h1 {
  color: #1e293b;
  margin-bottom: 8px;
}

.legal-page h2 {
  color: #334155;
  font-size: 18px;
  margin: 24px 0 8px;
}

/* ===== BOTÕES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: #f59e0b;
  color: #fff;
}
.btn-primary:hover { background: #d97706; }

.btn-secondary {
  background: #e2e8f0;
  color: #475569;
}
.btn-secondary:hover { background: #cbd5e1; }

.btn-success {
  background: #22c55e;
  color: #fff;
}
.btn-success:hover { background: #16a34a; }

.btn-danger {
  background: #ef4444;
  color: #fff;
}
.btn-danger:hover { background: #dc2626; }

.btn-outline {
  background: transparent;
  border: 2px solid #f59e0b;
  color: #f59e0b;
}
.btn-outline:hover { background: #f59e0b; color: #fff; }

.btn-small {
  padding: 8px 14px;
  font-size: 12px;
  width: auto;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #fff;
  padding: 5px;
}

.row-btns {
  display: flex;
  gap: 10px;
}
.row-btns .btn { flex: 1; }

.link {
  text-align: center;
  margin-top: 15px;
  color: #64748b;
  font-size: 13px;
  cursor: pointer;
}
.link strong { color: #f59e0b; }

/* ===== HEADER ===== */
header {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}

.header-info i { color: #f59e0b; font-size: 22px; }

.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 56px;
  z-index: 99;
}

.tab {
  flex: 1;
  padding: 12px;
  border: none;
  background: none;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.tab i { font-size: 18px; }

.tab.ativa {
  color: #f59e0b;
  border-bottom: 2px solid #f59e0b;
}

.tab-content { display: none; }
.tab-content.ativa { display: block; }

/* ===== CONTEÚDO ===== */
.conteudo {
  max-width: 600px;
  margin: 0 auto;
  padding: 15px;
}

/* ===== CARDS ===== */
.card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.card h3 {
  font-size: 16px;
  color: #1e293b;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card h3 i { color: #f59e0b; }

/* ===== ITEM GUINCHO ===== */
.guincho-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}

.guincho-item:hover { border-color: #f59e0b; }

.guincho-item .nome {
  font-weight: 600;
  font-size: 15px;
  color: #1e293b;
}

.guincho-item .detalhes {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

.guincho-item .distancia {
  font-size: 13px;
  color: #f59e0b;
  font-weight: 600;
  margin-top: 4px;
}

.guincho-item .btn {
  margin-top: 10px;
}

/* ===== PREÇO DETALHADO ===== */
.preco-detalhado {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 15px;
}

.preco-detalhado h4 {
  font-size: 15px;
  color: #1e293b;
  margin-bottom: 12px;
}

.preco-linha {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}

.preco-linha i {
  width: 18px;
  text-align: center;
  color: #94a3b8;
  margin-right: 5px;
}

.preco-valor {
  font-weight: 600;
}

.preco-linha.taxa {
  color: #ef4444;
}

.preco-linha.total {
  border-top: 2px solid #e2e8f0;
  border-bottom: none;
  padding-top: 10px;
  margin-top: 4px;
  font-size: 15px;
}

.total-valor {
  color: #f59e0b;
  font-size: 16px;
}

.preco-linha.motorista-ganho {
  background: #f0fdf4;
  border-radius: 8px;
  padding: 8px;
  margin-top: 8px;
  border-bottom: none;
  color: #065f46;
  font-weight: 600;
}

/* ===== VALORES NO CHAMADO (lista) ===== */
.chamado-valores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
}

.chamado-valores span {
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
  color: #475569;
}

.chamado-valores span i {
  color: #f59e0b;
  margin-right: 3px;
}

/* ===== VALORES MOTORISTA (pendentes) ===== */
.chamado-valores-motorista {
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px;
  margin-top: 10px;
}

.valor-detalhe {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
}

.valor-detalhe i {
  width: 16px;
  text-align: center;
  margin-right: 4px;
  color: #94a3b8;
}

.valor-num {
  font-weight: 600;
  color: #1e293b;
}

.taxa-cor {
  color: #ef4444;
}

.ganho-cor {
  color: #22c55e;
  font-size: 15px;
}

.valor-detalhe.destaque {
  background: #f0fdf4;
  border-radius: 8px;
  padding: 8px;
  margin-top: 6px;
}

/* ===== CHAMADO ITEM ===== */
.chamado-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 10px;
}

.chamado-item .chamado-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.chamado-item .chamado-id {
  font-weight: 700;
  color: #1e293b;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pendente { background: #fef3c7; color: #92400e; }
.status-aceito { background: #dbeafe; color: #1e40af; }
.status-a_caminho { background: #e0e7ff; color: #3730a3; }
.status-no_local { background: #d1fae5; color: #065f46; }
.status-concluido { background: #d1fae5; color: #065f46; }
.status-cancelado { background: #fee2e2; color: #991b1b; }

/* ===== PLANOS ===== */
.plano-card {
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.plano-card:hover, .plano-card.selecionado {
  border-color: #f59e0b;
  background: #fffbeb;
}

.plano-card .plano-nome {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  text-transform: capitalize;
}

.plano-card .plano-valor {
  font-size: 28px;
  font-weight: 700;
  color: #f59e0b;
  margin: 8px 0;
}

.plano-card .plano-desc {
  font-size: 13px;
  color: #64748b;
}

/* ===== PAGAMENTO ===== */
.metodo-pagamento {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 15px;
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}

.metodo-pagamento:hover, .metodo-pagamento.selecionado {
  border-color: #f59e0b;
  background: #fffbeb;
}

.metodo-pagamento i {
  font-size: 22px;
  color: #f59e0b;
  width: 30px;
  text-align: center;
}

.metodo-pagamento .metodo-info {
  flex: 1;
}

.metodo-pagamento .metodo-nome {
  font-weight: 600;
  font-size: 14px;
}

.metodo-pagamento .metodo-desc {
  font-size: 12px;
  color: #64748b;
}

.metodo-pagamento .metodo-desconto {
  font-size: 11px;
  color: #22c55e;
  font-weight: 600;
}

/* ===== CARTÃO CAMPOS ===== */
#campos-cartao {
  background: #f8fafc;
  padding: 15px;
  border-radius: 12px;
  margin-top: 10px;
}

/* ===== ASSINATURA INFO ===== */
.assinatura-ativa {
  background: linear-gradient(135deg, #065f46, #047857);
  color: #fff;
  border-radius: 14px;
  padding: 25px;
  text-align: center;
  margin-bottom: 15px;
}

.assinatura-ativa h3 {
  color: #fff;
  font-size: 18px;
}

.assinatura-ativa .dias {
  font-size: 42px;
  font-weight: 700;
  margin: 10px 0;
}

.assinatura-ativa .label-dias {
  font-size: 14px;
  opacity: 0.9;
}

.assinatura-pendente {
  background: linear-gradient(135deg, #92400e, #b45309);
  color: #fff;
  border-radius: 14px;
  padding: 25px;
  text-align: center;
  margin-bottom: 15px;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-fechar {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #94a3b8;
}

/* ===== PIX BOX ===== */
.pix-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin: 15px 0;
}

.pix-box .pix-chave {
  font-size: 18px;
  font-weight: 700;
  color: #065f46;
  word-break: break-all;
  margin: 10px 0;
}

.boleto-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin: 15px 0;
}

.boleto-box .codigo {
  font-family: monospace;
  font-size: 13px;
  word-break: break-all;
  margin: 10px 0;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 2000;
  display: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-align: center;
  max-width: 90%;
}

.toast.sucesso { background: #065f46; }
.toast.erro { background: #991b1b; }

/* ===== FOOTER ===== */
.footer-fixo {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #1e293b;
  color: #94a3b8;
  text-align: center;
  padding: 10px;
  font-size: 11px;
  z-index: 100;
}

.footer-fixo strong { color: #f59e0b; }

/* ===== PERFIL ===== */
.perfil-header {
  text-align: center;
  padding: 20px;
}

.perfil-avatar {
  width: 80px;
  height: 80px;
  background: #f59e0b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 32px;
  color: #fff;
}

.perfil-info {
  margin-top: 15px;
}

.perfil-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}

.perfil-item .label {
  color: #64748b;
}

.perfil-item .valor {
  font-weight: 600;
  color: #1e293b;
}

/* ===== EMPTY STATE ===== */
.empty {
  text-align: center;
  padding: 30px;
  color: #94a3b8;
}

.empty i {
  font-size: 40px;
  margin-bottom: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .conteudo { padding: 10px; }
  .card { padding: 15px; }
  .modal-content { padding: 20px; margin: 10px; }
}

/* ===== AJUSTES PROFISSIONAIS 2026 ===== */
:root {
  --brand: #f59e0b;
  --brand-dark: #b45309;
  --ink: #111827;
  --muted: #64748b;
  --line: #dbe3ef;
  --surface: #ffffff;
  --page: #eef2f7;
  --success: #15803d;
}

body {
  background: var(--page);
  color: var(--ink);
}

header {
  background: #111827;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22);
}

.tabs {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.card, #form-login, #form-cadastro, .modal-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.logo i, .header-info i, .card h3 i, .tab.ativa, .link strong, .footer-fixo strong {
  color: var(--brand);
}

.btn, .campo input, .campo select, .campo textarea, .guincho-item, .chamado-item,
.metodo-pagamento, .plano-card, .preco-detalhado {
  border-radius: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.28);
}

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

.conteudo {
  max-width: 760px;
}

.guincho-item, .chamado-item {
  background: #fff;
}

.mapa-rota {
  margin-top: 12px;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  position: relative;
}

.mapa-rota iframe {
  width: 100%;
  height: 230px;
  border: 0;
  display: block;
}

.mapa-placeholder {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
  padding: 20px;
}

.mapa-placeholder i {
  font-size: 34px;
  color: var(--brand);
}

.mapa-link {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111827;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
}

.modal-title {
  color: var(--ink);
  font-size: 22px;
  margin-bottom: 16px;
}

.pagamento-resumo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.pagamento-resumo div {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.pagamento-resumo span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.pagamento-resumo strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
}

.pagamento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.pagamento-opcao {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  min-height: 74px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.pagamento-opcao i {
  color: var(--brand);
  font-size: 22px;
}

.pagamento-opcao.selecionado {
  border-color: var(--brand);
  background: #fffbeb;
  color: var(--ink);
}

.pagamento-aprovado {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #14532d;
  border-radius: 8px;
  padding: 22px;
  text-align: center;
  margin-bottom: 14px;
}

.pagamento-aprovado i {
  color: var(--success);
  font-size: 42px;
  margin-bottom: 10px;
}

.pagamento-pendente {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #7c2d12;
}

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

/* ===== LOCALIZAÇÃO APP/PWA ===== */
.localizacao-manual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.localizacao-manual .btn {
  grid-column: 1 / -1;
}

.aviso-localizacao {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c2d12;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.aviso-localizacao i {
  color: #ea580c;
  margin-top: 2px;
}

.regra-preco {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  color: #78350f;
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.chat-box {
  min-height: 240px;
  max-height: 360px;
  overflow-y: auto;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.chat-msg {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
}

.chat-msg.minha {
  background: #fffbeb;
  border-color: #fde68a;
}

.chat-msg strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 4px;
}

.chat-msg p {
  color: #334155;
  font-size: 14px;
  line-height: 1.4;
}

.chat-msg span {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  margin-top: 5px;
}

.perfil-item .valor {
  text-align: right;
  max-width: 58%;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .localizacao-manual { grid-template-columns: 1fr; }
  .perfil-item {
    align-items: flex-start;
    gap: 12px;
  }
}

/* ===== VISUAL PROFISSIONAL - GUINCHO SEMPRE PERTO ===== */
:root {
  --gsp-bg: #eef2f7;
  --gsp-surface: #ffffff;
  --gsp-soft: #f8fafc;
  --gsp-ink: #111827;
  --gsp-muted: #667085;
  --gsp-line: #d9e1ec;
  --gsp-brand: #f59e0b;
  --gsp-brand-dark: #b45309;
  --gsp-navy: #111827;
  --gsp-green: #047857;
  --gsp-red: #b42318;
  --gsp-shadow: 0 18px 42px rgba(15, 23, 42, .09);
}

body {
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, .12), transparent 280px),
    linear-gradient(180deg, #f8fafc 0, var(--gsp-bg) 420px);
  color: var(--gsp-ink);
  padding-bottom: 64px;
}

.login-container {
  width: min(100%, 1040px);
  max-width: 1040px;
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
}

.logo {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(17, 24, 39, .95), rgba(30, 41, 59, .94)),
    #111827;
  color: #fff;
  text-align: left;
  box-shadow: var(--gsp-shadow);
}

.logo i {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin: 0 0 20px;
  border-radius: 8px;
  background: rgba(245, 158, 11, .14);
  color: var(--gsp-brand);
  font-size: 34px;
}

.logo h1 {
  max-width: 360px;
  color: #fff;
  font-size: 34px;
  line-height: 1.05;
}

.logo .empresa {
  margin-top: 14px;
  color: #fbbf24;
  font-size: 15px;
}

.logo .cnpj {
  margin-top: 6px;
  color: #cbd5e1;
  font-size: 12px;
}

.trust-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.trust-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, .06);
  color: #e5edf7;
  font-size: 13px;
  font-weight: 700;
}

.trust-list i {
  color: var(--gsp-brand);
}

.motorista-credibilidade {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 14px;
  background: #fffbeb;
  color: #78350f;
}

.motorista-credibilidade strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #92400e;
}

.motorista-credibilidade span {
  font-size: 13px;
  line-height: 1.45;
}

.status-operacao {
  display: grid;
  gap: 5px;
  margin: 14px 0;
  border: 1px solid var(--gsp-line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.status-operacao strong {
  color: var(--gsp-ink);
  font-size: 15px;
}

.status-operacao span {
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.motorista-online {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.motorista-online strong {
  color: #15803d;
}

.motorista-offline {
  border-color: #fecaca;
  background: #fef2f2;
}

.motorista-offline strong {
  color: #b91c1c;
}

.admin-shell {
  display: grid;
  gap: 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

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

.admin-metricas div,
.admin-list-item {
  border: 1px solid var(--gsp-line);
  border-radius: 8px;
  padding: 13px;
  background: #f8fafc;
}

.admin-metricas span,
.admin-list-item span {
  display: block;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.admin-metricas strong,
.admin-list-item strong {
  display: block;
  margin-top: 4px;
  color: var(--gsp-ink);
  font-size: 18px;
}

.admin-list-item {
  margin-top: 10px;
}

.admin-list-item strong {
  margin-top: 0;
  font-size: 14px;
}

.painel-operacao {
  border-color: rgba(245, 158, 11, .28);
}

.painel-titulo {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.painel-titulo p {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.operacao-metricas {
  margin-bottom: 14px;
}

.monitoramento-grid {
  align-items: start;
}

.monitoramento-grid h4 {
  margin-bottom: 10px;
  color: #111827;
  font-size: 14px;
}

.monitoramento-grid h4 i {
  color: #f59e0b;
}

.monitoramento-item span + span {
  margin-top: 4px;
}

@media (max-width: 800px) {
  .admin-grid,
  .admin-metricas {
    grid-template-columns: 1fr;
  }

  .painel-titulo {
    display: grid;
  }
}

#form-login,
#form-cadastro,
.card,
.modal-content {
  border: 1px solid var(--gsp-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--gsp-shadow);
}

#form-login,
#form-cadastro {
  padding: 28px;
}

#form-login h2,
#form-cadastro h2,
.card h3 {
  color: var(--gsp-ink);
  letter-spacing: 0;
}

.campo {
  margin-bottom: 14px;
}

.campo label {
  color: #475467;
  font-weight: 700;
}

.campo input,
.campo select,
.campo textarea {
  min-height: 44px;
  border-color: var(--gsp-line);
  border-radius: 8px;
  background: #fff;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  border-color: var(--gsp-brand);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .13);
}

.btn {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 800;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gsp-brand), var(--gsp-brand-dark));
  box-shadow: 0 12px 24px rgba(245, 158, 11, .24);
}

.btn-secondary,
.btn-outline {
  border: 1px solid var(--gsp-line);
  background: #fff;
  color: var(--gsp-ink);
}

.btn-outline:hover,
.btn-secondary:hover {
  border-color: var(--gsp-brand);
  background: #fffbeb;
  color: var(--gsp-ink);
}

header {
  min-height: 64px;
  padding: 14px 24px;
  background: rgba(17, 24, 39, .98);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .2);
}

.header-info {
  gap: 12px;
  font-size: 17px;
}

.header-info i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(245, 158, 11, .14);
}

.header-user {
  color: #dbe4ef;
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

.tabs {
  top: 64px;
  max-width: 1040px;
  margin: 0 auto;
  border: 1px solid var(--gsp-line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .07);
  overflow-x: auto;
}

.tab {
  min-width: 118px;
  min-height: 58px;
  color: #667085;
  font-weight: 800;
}

.tab.ativa {
  color: var(--gsp-brand-dark);
  border-bottom: 3px solid var(--gsp-brand);
  background: #fffbeb;
}

.tab:hover {
  background: #f8fafc;
  color: var(--gsp-ink);
}

.conteudo {
  width: min(100%, 1040px);
  max-width: 1040px;
  padding: 20px;
}

.card {
  padding: 22px;
  margin-bottom: 16px;
}

.card h3 {
  margin-bottom: 16px;
  font-size: 18px;
}

.card h3 i {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #fffbeb;
}

.guincho-item,
.chamado-item,
.plano-card,
.metodo-pagamento,
.preco-detalhado,
.chamado-valores-motorista,
.termos-box,
.pix-box,
.boleto-box,
#campos-cartao {
  border: 1px solid var(--gsp-line);
  border-radius: 8px;
  background: #fff;
}

.guincho-item,
.chamado-item {
  padding: 16px;
}

.guincho-item:hover,
.plano-card:hover,
.plano-card.selecionado,
.metodo-pagamento:hover,
.metodo-pagamento.selecionado {
  border-color: var(--gsp-brand);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}

.status-badge,
.badge {
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .02em;
}

.preco-detalhado {
  background: var(--gsp-soft);
}

.preco-linha {
  padding: 8px 0;
}

.preco-linha.total {
  margin-top: 8px;
  padding-top: 12px;
}

.total-valor,
.plano-card .plano-valor,
.link strong,
.footer-fixo strong {
  color: var(--gsp-brand-dark);
}

.assinatura-ativa {
  border-radius: 8px;
  background: linear-gradient(135deg, #065f46, #0f766e);
  box-shadow: var(--gsp-shadow);
}

.assinatura-pendente {
  border-radius: 8px;
  background: linear-gradient(135deg, #92400e, #d97706);
  box-shadow: var(--gsp-shadow);
}

.modal {
  background: rgba(15, 23, 42, .62);
  backdrop-filter: blur(3px);
}

.modal-content {
  max-width: 560px;
}

.toast {
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .22);
}

.footer-fixo {
  background: #111827;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.empty {
  border: 1px dashed var(--gsp-line);
  border-radius: 8px;
  background: #fff;
}

@media (min-width: 860px) {
  .tab-content.ativa .card:nth-child(1):nth-last-child(n + 2),
  .tab-content.ativa .card:nth-child(2) {
    margin-bottom: 18px;
  }

  .form-grid-2 {
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .login-container {
    display: flex;
    max-width: 560px;
    padding: 18px;
  }

  .logo {
    padding: 24px;
    text-align: center;
    align-items: center;
  }

  .perfis-entrada {
    grid-template-columns: 1fr;
  }

  .perfil-entrada {
    min-height: 72px;
  }

  .logo h1 {
    font-size: 28px;
  }

  header {
    padding: 12px 16px;
  }

  .header-info span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .conteudo {
    padding: 14px;
  }

  .tabs {
    border-radius: 0;
  }
}

/* ===== POLIMENTO PIX / PRODUCAO ===== */
.btn:disabled {
  cursor: wait;
  opacity: .72;
  box-shadow: none;
}

.pix-box h3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #065f46;
  margin-bottom: 8px;
}

.pix-box p {
  margin-top: 8px;
  color: #14532d;
  font-size: 13px;
  line-height: 1.45;
}

.pix-instrucao {
  border-top: 1px solid #bbf7d0;
  padding-top: 10px;
  color: #166534 !important;
  font-weight: 700;
}

.pagamento-opcao {
  min-width: 116px;
}

/* ===== PORTAIS SEPARADOS POR SUBDOMINIO ===== */
.portal-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 auto 10px;
  padding: 7px 10px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portal-cliente body,
body.portal-cliente {
  background: #f8fafc;
}

body.portal-cliente .login-container {
  max-width: 620px;
}

body.portal-cliente .portal-badge,
body.portal-cliente .perfil-entrada.portal-acao-principal {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
}

body.portal-cliente .perfil-entrada.portal-acao-principal {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111827;
}

body.portal-cliente .marketing-strip {
  border-color: rgba(245, 158, 11, .45);
  background: #fffbeb;
}

body.portal-motorista {
  background: #f1f5f9;
}

body.portal-motorista .login-container {
  max-width: 620px;
}

body.portal-motorista .portal-badge,
body.portal-motorista .perfil-entrada.portal-acao-principal {
  border-color: #22c55e;
  background: #f0fdf4;
  color: #14532d;
}

body.portal-motorista .perfil-entrada.portal-acao-principal {
  background: linear-gradient(135deg, #16a34a, #14532d);
  color: #fff;
}

body.portal-motorista .perfil-entrada.portal-acao-principal i,
body.portal-motorista .perfil-entrada.portal-acao-principal small {
  color: #dcfce7;
}

body.portal-motorista .marketing-strip {
  border-color: rgba(34, 197, 94, .36);
  background: #f0fdf4;
}

.perfil-entrada.portal-acao-secundaria {
  min-height: 68px;
  opacity: .62;
  box-shadow: none;
}

.perfil-entrada.portal-acao-secundaria small {
  display: none;
}

/* ===== ESTRATEGIA COMERCIAL / CONTRATO ===== */
.marketing-strip {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, .35);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(245, 158, 11, .14), rgba(255, 255, 255, .92));
  text-align: left;
}

.marketing-strip strong {
  color: var(--gsp-ink);
  font-size: 15px;
}

.marketing-strip span,
.cliente-marketing p,
.contrato-motorista p {
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}

.marketing-pontos,
.etapas-simples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.marketing-pontos span,
.etapas-simples span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--gsp-line);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.suite-plataforma {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  text-align: left;
}

.suite-plataforma div {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.suite-plataforma i {
  color: #f59e0b;
  font-size: 21px;
}

.suite-plataforma strong {
  color: #111827;
  font-size: 13px;
}

.suite-plataforma span {
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.operacao-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.operacao-hero.cliente-hero {
  border-color: rgba(245, 158, 11, .34);
  background: linear-gradient(135deg, #fff, #fffbeb);
}

.operacao-hero.motorista-hero {
  border-color: rgba(34, 197, 94, .28);
  background: linear-gradient(135deg, #fff, #f0fdf4);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: #92400e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.operacao-hero h2 {
  color: #111827;
  font-size: 24px;
  line-height: 1.16;
}

.operacao-hero p {
  max-width: 640px;
  margin-top: 8px;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}

.hero-metricas {
  display: grid;
  gap: 8px;
}

.hero-metricas span {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  color: #475569;
  font-size: 12px;
  line-height: 1.35;
}

.hero-metricas strong {
  color: #111827;
  font-size: 18px;
}

.cliente-marketing {
  border-color: rgba(245, 158, 11, .32);
  background: linear-gradient(135deg, #fff, #fffbeb);
}

.resumo-final-aviso {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  color: #78350f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.resumo-final-aviso i {
  margin-top: 2px;
  color: var(--gsp-brand-dark);
}

.final-breakdown {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--gsp-line);
  border-radius: 8px;
  background: #f8fafc;
}

.final-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  font-size: 13px;
}

.final-breakdown div:last-child {
  border-bottom: 0;
}

.final-breakdown span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.final-breakdown strong {
  color: var(--gsp-ink);
  white-space: nowrap;
}

.final-breakdown .final-total {
  margin-top: 4px;
  padding: 12px 0 2px;
  color: var(--gsp-ink);
  font-size: 15px;
}

.final-breakdown .final-total strong {
  color: var(--gsp-brand-dark);
  font-size: 17px;
}

.pagamento-subtitulo {
  margin: 16px 0 10px;
  color: var(--gsp-ink);
  font-size: 15px;
}

.contrato-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.contrato-item {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--gsp-line);
  border-radius: 8px;
  background: #fff;
}

.contrato-item span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.contrato-item strong {
  color: var(--gsp-brand-dark);
  font-size: 22px;
}

.contrato-item small {
  color: #64748b;
  line-height: 1.4;
}

.contrato-alerta {
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  color: #14532d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 620px) {
  .suite-plataforma,
  .operacao-hero {
    grid-template-columns: 1fr;
  }

  .suite-plataforma div {
    min-height: auto;
  }

  .operacao-hero h2 {
    font-size: 21px;
  }

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

  .final-breakdown div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}


