body {
    font-family: Arial, sans-serif;
    background: linear-gradient(120deg, #0074D9 60%, #145A32 100%);
    margin: 0;
    padding: 0;
    color: #222;
}

/* entregador.php: tornar tabelas responsivas no mobile */
@media (max-width: 640px) {
  /* Entregador principal */
  #tabela-entregador { min-width: 100% !important; border-collapse: separate; border-spacing: 0; }
  #tabela-entregador thead { display: none; }
  #tabela-entregador tr { display: block; background: #ffffff; margin: 10px 0; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
  #tabela-entregador td { display: grid; grid-template-columns: 48% 1fr; align-items: start; gap: 8px; padding: 10px 12px !important; border: none !important; border-bottom: 1px solid #eef2f7 !important; text-align: left !important; line-height: 1.35; word-break: break-word; white-space: normal; }
  #tabela-entregador td:last-child { border-bottom: none !important; }
  #tabela-entregador td::before { content: attr(data-label); font-weight: 700; color: #374151; grid-column: 1; text-align: left; }
  /* Reorder fields for better reading: Entregador, Empresa, Cidade, IDI */
  #tabela-entregador td { order: 0; }
  #tabela-entregador td:nth-child(2) { order: 1; }
  #tabela-entregador td:nth-child(3) { order: 2; }
  #tabela-entregador td:nth-child(4) { order: 3; }
  #tabela-entregador td:nth-child(1) { order: 4; }

  /* Resumo de Unidades */
  #tabela-resumo { min-width: 100% !important; border-collapse: separate; border-spacing: 0; }
  #tabela-resumo thead { display: none; }
  #tabela-resumo tr { display: block; background: #ffffff; margin: 10px 0; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
  #tabela-resumo td { display: flex; justify-content: flex-start; align-items: center; gap: 8px; padding: 10px 12px !important; border: none !important; border-bottom: 1px solid #eef2f7 !important; text-align: left !important; }
  #tabela-resumo td:last-child { border-bottom: none !important; }
  #tabela-resumo td::before { content: attr(data-label); font-weight: 700; color: #374151; flex: 0 0 48%; max-width: 52%; text-align: left; }
}

/* Bonus table: transform into card list on small screens */
@media (max-width: 640px) {
  #bonus .table-wrap { overflow-x: visible; }
  #bonus .table-wrap table { min-width: 100% !important; }
  #bonus .table-precos { width: 100%; border-collapse: separate; border-spacing: 0; }
  #bonus .table-precos thead { display: none; }
  #bonus .table-precos tr { display: block; background: #ffffff; margin: 10px 0; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
  #bonus .table-precos td { display: flex; justify-content: flex-start; align-items: center; gap: 8px; padding: 10px 12px; border: none; border-bottom: 1px solid #eef2f7; text-align: left; }
  #bonus .table-precos td:last-child { border-bottom: none; }
  #bonus .table-precos td::before { content: attr(data-label); font-weight: 700; color: #374151; flex: 0 0 42%; max-width: 46%; text-align: left; }
  /* preco.php responsive table */
  #precos .table-wrap { overflow-x: visible; }
  #precos .table-wrap table { min-width: 100% !important; }
  #precos .table-precos { width: 100%; border-collapse: separate; border-spacing: 0; }
  #precos .table-precos thead { display: none; }
  #precos .table-precos tr { display: block; background: #ffffff; margin: 10px 0; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
  #precos .table-precos td { display: flex; justify-content: flex-start; align-items: center; gap: 8px; padding: 10px 12px; border: none; border-bottom: 1px solid #eef2f7; text-align: left; }
  #precos .table-precos td:last-child { border-bottom: none; }
  #precos .table-precos td::before { content: attr(data-label); font-weight: 700; color: #374151; flex: 0 0 42%; max-width: 46%; text-align: left; }
}
header {
    background: #004080;
    color: #fff;
    padding: 20px 16px; /* padding lateral para respiro à esquerda */
    text-align: left; /* alinha conteúdo do header à esquerda */
}

/* Títulos responsivos */
h1, h2, h3 {
    line-height: 1.2;
}
h2 {
    font-size: clamp(1.15rem, 1.1rem + 1.2vw, 1.8rem);
}

/* Subtítulos responsivos */
h3 {
    font-size: clamp(1.05rem, 0.95rem + 1vw, 1.4rem);
}

/* ==============================
   Entregador - Botões de Bônus
   ============================== */
.btn-bonus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 7px;
    padding: 12px 20px;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform .08s ease, box-shadow .2s ease, background .2s ease, filter .2s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    width: 100%;           /* ocupa toda a célula da grade */
    height: 48px;          /* altura uniforme no desktop */
    box-sizing: border-box;
}
.btn-bonus:hover { transform: translateY(-1px); }
.btn-bonus:active { transform: translateY(0); }

/* P13 Amarelo (mais vivo) */
.btn-p13-amarelo { background: #f59e0b; color: #222; }
.btn-p13-amarelo:hover { filter: brightness(0.95) saturate(1.05); background-color: #eab308; }

/* P13 "Azul" (verde ainda mais vibrante) */
.btn-p13-azul { background: #10b981; background-color: #10b981; color: #fff; }
.btn-p13-azul:hover { background: #22c55e; background-color: #22c55e; }

/* P20 Amarelo (mais vivo) */
.btn-p20-amarelo { background: #f59e0b; color: #222; }
.btn-p20-amarelo:hover { filter: brightness(0.95) saturate(1.05); background-color: #e08e0f; }

/* P20 "Azul" (verde ainda mais vibrante) */
.btn-p20-azul { background: #10b981; background-color: #10b981; color: #fff; }
.btn-p20-azul:hover { background: #22c55e; background-color: #22c55e; }

/* (removidos) estilos de badge/seleção/desabilitado revertidos */

/* P45 Variantes */
.btn-p45-amarelo { background: #f59e0b; color: #222; }
.btn-p45-amarelo:hover { filter: brightness(0.95) saturate(1.05); background-color: #e0a000; }
.btn-p45-azul { background: #10b981; background-color: #10b981; color: #fff; }
.btn-p45-azul:hover { background: #22c55e; background-color: #22c55e; }

/* Grid 2x6 para botões de bônus */
.bonus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colunas no desktop (matriz 2x6) */
    gap: 12px;            /* respiro levemente maior */
    align-items: stretch;   /* células mesmas alturas */
    justify-items: stretch; /* botões expandem nas células */
}
@media (max-width: 900px) {
    .bonus-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .bonus-grid { grid-template-columns: repeat(2, 1fr); }
    .btn-bonus { height: 46px; } /* ajuste no mobile */
}

/* ==============================
   Entregador - Layout de Form
   ============================== */
.ent-form {
    display: grid;
    grid-template-columns: 1fr; /* coluna única em todas as larguras para manter alinhamento consistente */
    gap: 16px;
    width: 100%;
    max-width: 760px;
    margin: 0 auto; /* centraliza no desktop */
    align-items: start;
}
.ent-card {
    background:#f8fafc;
    padding:18px 20px;
    border-radius:12px;
    box-shadow:0 2px 12px rgba(0,0,0,0.05);
}
.ent-field input.cpf-input,
.ent-field input[type="text"],
.ent-field input[type="password"],
.ent-field select {
    width: 100%;
    box-sizing: border-box;
}
.ent-input {
    padding:11px 12px;
    border:1.5px solid #bbb;
    border-radius:7px;
    font-size:1.1rem;
}
.ent-id {
    font-weight:600;
    color:#333;
}
.bonus-wrapper { grid-column: 1 / -1; }
.ent-actions { grid-column: 1 / -1; justify-self: start; }
/* Logo do topo */
.logo {
    display: block;
    margin: 0; /* sem margem; header já fornece padding à esquerda */
    height: auto;
    width: auto; /* tamanho natural */
    max-width: 100%;
}


/* ==============================
   Overrides para hovers dos botões de bônus
   (evita que regras genéricas como button:hover mudem para azul)
   ============================== */
.btn-p13-azul:hover,
.btn-p20-azul:hover,
.btn-p45-azul:hover {
    background: #22c55e !important; 
    background-color: #22c55e !important; /* verde vibrante no hover */
}
.btn-p13-amarelo:hover {
    background: #eab308 !important; 
    background-color: #eab308 !important; /* amarelo ligeiramente mais escuro */
}
.btn-p20-amarelo:hover {
    background: #e08e0f !important; 
    background-color: #e08e0f !important; /* ajuste do tom no hover */
}
/* Global responsive images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: #6B2CB3;
    padding: 10px 0;
}
body.admin-page nav {
    background: #6B2CB3;
}
nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 18px;
    font-weight: bold;
    transition: color 0.2s;
    font-size: 1.1em;
    padding: 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
nav a:hover {
    color: #145A32;
    background: #e0f2e9;
    border-radius: 4px;
    padding: 8px 10px;
}
/* Destaque do item de menu ativo */
nav a.active {
    color: #145A32;
    background: #e0f2e9;
    border-radius: 4px;
    padding: 8px 10px;
}

/* Icone padrão do menu */
.nav-icon {
    width: 20px;  /* base mobile */
    height: 20px;
    display: inline-block;
    transition: transform .15s ease, filter .2s ease, opacity .2s ease;
}
@media (min-width: 900px) {
    .nav-icon {
        width: 24px; /* desktop */
        height: 24px;
    }
}

/* Interações dos ícones no menu */
nav a:hover .nav-icon {
    transform: translateY(-1px);
}
nav a.active .nav-icon {
    transform: scale(1.12);
    /* mantém brilho + deixa mais claro/saturado */
    filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.45)) saturate(1.15) brightness(1.1);
}

/* Destaque especial para o item Admin */
nav a[href="admin.php"]:hover {
    background: #f8bbd0;   /* rosa claro */
    color: #6a1b9a;        /* roxo elegante */
}
nav a[href="admin.php"].active {
    background: #fce4ec;   /* destaque ativo mais claro */
    color: #880e4f;        /* tom marcante para ativo */
    border-radius: 6px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.container {
    max-width: 1100px;
    margin: 30px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 32px;
    width: 90%;
}

/* Page-specific containers aligned with admin.php width */
#bonus { max-width: 960px; margin: 28px auto 0 auto; padding: 16px 12px 48px 12px; }
#precos { max-width: 960px; margin: 28px auto 0 auto; padding: 16px 12px 48px 12px; }
#entregador { max-width: 1200px; margin: 28px auto 0 auto; padding: 16px 12px 48px 12px; }
/* Entregador page: use full container width for tables (avoid cutting words) */
#entregador .table-wrap { max-width: 100%; margin: 0 auto; }

/* Entregador: ampliar largura visual da tabela de identificacao */
#tabela-entregador {
    width: 100%;
    min-width: 720px; /* desktop default */
    table-layout: auto;
}
#tabela-entregador th,
#tabela-entregador td {
    padding: 12px 14px !important; /* sobrepõe inline para ampliar o respiro */
}
#tabela-entregador th:nth-child(1),
#tabela-entregador td:nth-child(1) { width: 12%; }
#tabela-entregador th:nth-child(2),
#tabela-entregador td:nth-child(2) { width: 28%; }
#tabela-entregador th:nth-child(3),
#tabela-entregador td:nth-child(3) { width: 30%; }
#tabela-entregador th:nth-child(4),
#tabela-entregador td:nth-child(4) { width: 30%; }

/* Blocos de texto centralizados e legíveis */
.text-block {
    max-width: 900px;
    margin: 20px auto; /* mais respiro entre blocos */
    text-align: center;
}
.text-block h2, .text-block h3 {
    margin: 12px 0 8px;
    color: #1a2540;
}
.text-block p {
    margin: 8px 0 16px;
    color: #34495e;
}
.text-block ul {
    list-style: disc;
    text-align: left;
    margin: 0 auto 16px auto;
    padding-left: 18px;
    max-width: 800px;
}

/* Espaçamento entre linhas para melhor leitura */
.text-block p,
.text-block li {
    line-height: 1.5;
}
/* Entrelinhas mais justas para o bloco do texto do ímã */
.imas-copy p { line-height: 1.35; }
.imas-copy p + p { margin-top: 8px; }
/* Espaçamento entre itens da lista para melhor leitura */
.text-block li { margin-bottom: 6px; }

/* Seção 'Para o comerciante' alinhada à esquerda com margem no título */
.text-block.comerciantes {
    text-align: left;
}
.text-block.comerciantes h3 {
    margin-left: 12px;
}
.text-block.comerciantes h2 {
    margin-left: 12px;
}
.text-block.comerciantes p {
    margin-left: 12px;
}

/* Seção 'Para o comprador' alinhada à esquerda com a mesma margem no título */
.text-block.compradores {
    text-align: left;
}
.text-block.compradores h3 {
    margin-left: 12px;
}

/* Imagem hero principal (5.png) */
.hero-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 900px; /* limite máximo no desktop */
    margin: 0 auto 14px auto;
    border-radius: 10px;
}

/* Imagens de destaque (1.png e 3.png) */
.feature-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 700px; /* ajuste solicitado */
    margin: 14px auto 20px auto; /* mais respiro acima/abaixo no desktop */
    border-radius: 10px;
}

/* Vídeo responsivo 16:9 */
.responsive-video {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 12px auto 20px auto;
  /* Fallback 16:9 para navegadores sem aspect-ratio */
  padding-top: 56.25%;
    border-radius: 10px;
    overflow: hidden;
    background: #000; /* fallback enquanto carrega */
}
.responsive-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;      /* mantém proporção sem cortar no mobile */
    object-position: center;  /* centraliza o conteúdo */
}
/* Suporte a embeds (YouTube/Vimeo) via iframe */
  .responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
  }

  /* Compatibilidade com Bootstrap 5 ratio: evita conflito quando usamos ambas classes */
  .ratio.responsive-video {
    padding-top: 0 !important; /* ratio já controla a proporção */
    height: auto;
  }
  .ratio.responsive-video > iframe,
  .ratio.responsive-video > video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

/* Moderno: usa aspect-ratio quando disponível e remove o truque do padding */
@supports (aspect-ratio: 16/9) {
  .responsive-video {
    padding-top: 0 !important; /* ratio já controla a proporção */
    height: auto;
    max-width: 100vw; /* evita quebra em telas pequenas */
  }
  .responsive-video video {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: contain; /* evita transbordo e cortes em telas pequenas */
  }
  .responsive-video iframe {
    position: static;
    width: 100%;
    height: 100%;
  }
}

/* Utilitário: largura de 2/3 do container, centralizado */
.w-2-3 {
    width: 55%;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 700px) {
    /* Em telas pequenas, permitir 100% para melhor legibilidade */
    .w-2-3 { width: 100%; }
}
.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 18px;
    margin: 30px 0 20px 0;
}
.buttons button {
    background: #0074D9;
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
    min-width: 140px;
}
.buttons button:hover {
    background: #145A32;
}
img.multas {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    margin: 18px auto;
    display: block;
    height: auto;
}
/* Mapa removido, pode excluir se quiser */
.table-precos {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1em;
}
.table-precos th, .table-precos td {
    border: 1px solid #0074D9;
    padding: 10px;
    text-align: center;
}
.table-precos th {
    background: #0074D9;
    color: #fff;
}

/* Wrapper responsivo para tabelas longas */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-wrap table {
    min-width: 520px; /* evita quebra apertada em telas estreitas */
}
.testimonials, .faq {
    margin: 30px 0;
    padding: 20px;
    background: #f6f6f6;
    border-radius: 8px;
}


    button:not(.btn-bonus) {
      background-color: #007bff;
      color: #fff;
      border: none;
      padding: 12px 20px;
      font-size: 16px;
      border-radius: 8px;
      cursor: pointer;
      transition: 0.3s;
    }
    button:not(.btn-bonus):hover {
      background-color: #0056b3;
    }

/* Estilo para o card de CPF do balanço */
.cpf-card {
    max-width: 350px;
    margin: 40px auto 0 auto;
    background: #f7fafd;
    border-radius: 16px;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.08), 0 1.5px 4px 0 rgba(0,0,0,0.05);
    padding: 32px 24px 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e1e6ea;
}
.cpf-title {
    margin-bottom: 18px;
    font-size: 1.25rem;
    color: #1a2540;
    font-weight: 600;
    text-align: center;
}
.cpf-label {
    margin-bottom: 10px;
    color: #34495e;
    font-size: 1rem;
    display: block;
    text-align: left;
}
.cpf-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #bfc9d1;
    border-radius: 8px;
    font-size: 1.1rem;
    margin-bottom: 18px;
    transition: border 0.2s;
    background: #fff;
    box-sizing: border-box;
}
.cpf-input:focus {
    border-color: #3a7afe;
    outline: none;
    background: #f0f6ff;
}
.cpf-btn {
    width: 100%;
    padding: 10px 0;
    background: linear-gradient(90deg, #3a7afe 60%, #1a2540 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    margin-bottom: 8px;
}
.cpf-btn:hover {
    background: linear-gradient(90deg, #1a2540 0%, #3a7afe 90%);
}
.cpf-erro {
    display: block;
    color: #d7263d;
    background: #fff6f6;
    border-radius: 6px;
    padding: 7px 0 7px 0;
    margin-top: 2px;
    font-size: 1rem;
    text-align: center;
    width: 100%;
    font-weight: 500;
}

/* Botão Sair mais estiloso */
.btn-logout {
    width: 100%;
    padding: 10px 0;
    background: linear-gradient(90deg, #3a7afe 60%, #1a2540 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 4px 12px rgba(58, 122, 254, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-logout:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(58, 122, 254, 0.32);
    background: linear-gradient(90deg, #1a2540 0%, #3a7afe 90%);
}
.btn-logout .icon {
    font-size: 1.2rem;
}

/* Container do botão de logout alinhado à direita */
.logout-form {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}
.logout-form .btn-logout {
    width: auto;
    padding: 10px 16px;
    min-width: 140px;
}

/* Responsividade */
@media (max-width: 900px) {
    .container {
        padding: 18px;
    }
    .buttons {
        flex-direction: column;
        align-items: stretch;
    }
    nav {
        flex-direction: column;
        align-items: center;
    }
    nav a {
        margin: 6px 0;
        font-size: 1em;
        width: 100%;
        text-align: center;
    }
}
@media (max-width: 600px) {
    .container {
        padding: 8px;
        width: 98%;
    }
    /* Ajustes finos de tipografia e espaçamento no mobile */
    .text-block { margin: 14px auto; }
    .text-block li { margin-bottom: 8px; line-height: 1.6; }
    /* Logo mantém tamanho natural também no mobile */
    .buttons button {
        font-size: 1em;
        padding: 12px 0;
        min-width: unset;
        width: 100%;
    }
    .table-precos th, .table-precos td {
        padding: 6px;
        font-size: 0.95em;
    }
    /* No mobile o botão de logout ocupa toda a largura */
    .logout-form {
        justify-content: stretch;
    }
    .logout-form .btn-logout {
        width: 100%;
    }
    img.multas {
        max-width: 98vw;
    }
    .hero-img {
        max-width: 100%;
        width: 100%; /* no mobile ocupar 100% */
        border-radius: 8px;
    }
    .feature-img {
        max-width: 100%;
        border-radius: 8px;
        margin: 10px auto 18px auto; /* melhora transição entre blocos no mobile */
    }
    .responsive-video { border-radius: 8px; max-width: 100% !important; width: 100% !important; }
    .text-block ul {
        padding-left: 16px;
    }
    /* Mantém o comportamento original no mobile (sem centralizar a logo) */
}

/* Overrides: centralizar o menu no responsivo (após regras anteriores) */
@media (max-width: 900px) {
    nav {
        flex-direction: row;      /* volta a ser linha para permitir centralização */
        flex-wrap: wrap;
        justify-content: center;  /* centraliza itens */
        align-items: center;
    }
    nav a {
        width: auto;              /* remove width:100% anterior */
        display: inline-flex;     /* mantém alinhamento interno */
        text-align: center;
        margin: 6px 10px;         /* espaço lateral para centralização visual */
    }
}
@media (max-width: 600px) {
    nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }
    nav a {
        width: auto;
        display: inline-flex;
        text-align: center;
        margin: 6px 10px;
    }
}


/* ==============================
   Device-scoped layout tweaks
   (classes set on <html>/<body>: is-mobile | is-desktop)
   ============================== */
html.is-desktop #inicio {
    /* Dá respiro e presença visual da primeira dobra em telas grandes */
    min-height: 68vh;
}
html.is-mobile #inicio {
    min-height: auto;
}
html.is-mobile .container {
    /* Reforça conforto no mobile além do @media existente */
    width: 98%;
    padding: 8px;
}
html.is-desktop .container {
    /* Garante largura confortável em desktop */
    max-width: 1100px;
}
/* Video: pequenos ajustes de margem por dispositivo */
html.is-desktop .responsive-video {
    margin: 16px auto 24px auto;
}
html.is-mobile .responsive-video {
    margin: 10px auto 16px auto;
}

/* Full-bleed utility for desktop only */
html.is-desktop .full-bleed-desktop {
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}
/* Optionally remove rounded corners when full-bleed */
html.is-desktop .full-bleed-desktop.responsive-video {
    border-radius: 0;
}

/* ==============================
   Contact Section (Contatos)
   ============================== */
.contact-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.contact-title {
    margin: 0 0 6px 0;
    color: #1a2540;
}
.contact-subtitle {
    margin-top: 0;
    color: #4a5a6a;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
@media (min-width: 700px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
.contact-card {
    background: #fff;
    border: 1px solid #e1e6ea;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
    padding: 22px;
}
.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
.contact-info {
    flex: 1 1 260px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.contact-item {
    background: #f7fafc;
    border: 1px solid #e7edf3;
    border-radius: 10px;
    padding: 12px 14px;
}
.contact-label {
    display: block;
    font-size: 0.85rem;
    letter-spacing: .3px;
    color: #5b6b7b;
    margin-bottom: 4px;
}
.contact-link {
    color: #0b63d1;
    text-decoration: none;
    font-weight: 700;
}
.contact-link:hover { text-decoration: underline; }

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-whatsapp {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
}
.btn-whatsapp:hover { background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%); }

.btn-email {
    background: linear-gradient(90deg, #3a7afe 0%, #1a2540 100%);
    color: #fff;
}
.btn-email:hover { background: linear-gradient(90deg, #1a2540 0%, #3a7afe 100%); }

.contact-note {
    margin-top: 10px;
    color: #62778c;
    font-size: .95rem;
}

@media (max-width: 600px) {
    .contact-card { padding: 16px; }
    .contact-actions { gap: 10px; }
    .btn { width: 100%; padding: 12px; }
}

/* Centro absoluto do menu em telas pequenas */
@media (max-width: 900px) {
    nav { justify-content: center; }
    nav a { text-align: center; }
}
@media (max-width: 600px) {
    nav { justify-content: center; }
    nav a { text-align: center; }
}

/* ==============================
   Bonus buttons: hard overrides
   ============================== */
.bonus-grid .btn-bonus { background-image: none !important; }
.bonus-grid .btn-bonus:hover { background-image: none !important; }

/* ==============================
   Resumo de Unidades (entregador.php)
   Linhas listradas em tons de azul
   ============================== */
#tabela-resumo {
    border-collapse: collapse;
}
#tabela-resumo thead th {
    background: #3b82f6; /* azul principal do card */
    color: #ffffff;
    font-weight: 800;
    border-bottom: 2px solid #2563eb; /* linha de base mais forte */
}
#tabela-resumo tbody tr:nth-child(odd) {
    background: #e3eeff; /* azul claro com contraste maior */
}
#tabela-resumo tbody tr:nth-child(even) {
    background: #cfe0ff; /* azul um pouco mais forte para alternância */
}
#tabela-resumo tbody td {
    border-bottom: 1px solid #b5c8ff; /* divisória um pouco mais marcada */
}
#tabela-resumo tfoot tr {
    background: #cfe0ff; /* destaca total com contraste */
}
#tabela-resumo tfoot td {
    font-weight: 800;
    color: #1f2937;
}

/* ==============================
   Footer (Rodapé)
   ============================== */
.site-footer {
    background: #0f172a; /* azul marinho escuro */
    color: #e2e8f0;      /* cinza claro */
    padding: 16px 0;
    margin-top: 28px;
}
.site-footer .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.98rem;
}
.site-footer .footer-sep {
    opacity: 0.6;
}
@media (max-width: 600px) {
    .site-footer .footer-inner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        font-size: 0.95rem;
    }
    .site-footer .footer-sep { display: none; }
}

/* ==============================
   Utilitários globais para formulários e acessibilidade
   ============================== */
/* Apenas para leitores de tela */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Grade simples para formulários empilhados e responsivos */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 420px;
}
.form-grid input[type="text"],
.form-grid input[type="password"],
.form-grid input[type="tel"],
.form-grid input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #bbb;
    border-radius: 7px;
    font-size: 1.05rem;
    box-sizing: border-box;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s ease, transform .08s ease, box-shadow .2s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
.btn-primary:hover { background-color: #0056b3; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.resultado-bloco {
    margin-top: 12px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #1f2937;
}

/* ==============================
   Magnet CTA (home)
   ============================== */
.magnet-cta {
    background: radial-gradient(1200px 600px at 10% 10%, #f9fbff 0%, #eef5ff 40%, #e8f0ff 100%);
    padding: 56px 20px;
    color: #0f172a;
}
.magnet-cta .magnet-inner {
    max-width: 1040px;
    margin: 0 auto;
}
.magnet-cta h1 {
    font-size: clamp(1.5rem, 1.1rem + 2.2vw, 2.6rem);
    line-height: 1.2;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}
.magnet-cta .lead {
    font-size: clamp(1rem, 0.95rem + 0.4vw, 1.25rem);
    color: #334155;
    margin: 0 0 20px;
    line-height: 1.5;
}
.magnet-cta .bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.magnet-cta .bullets li {
    display: flex;
    align-items: flex-start; /* alinha o marcador ao topo da primeira linha */
    gap: 10px;
    margin: 10px 0;
    color: #1f2937;
    font-size: clamp(0.98rem, 0.92rem + 0.5vw, 1.2rem);
    line-height: 1.5;
}
.magnet-cta .bullets li::before {
    content: "";
    flex: 0 0 10px; /* largura fixa do quadradinho */
    width: 10px;
    height: 10px;
    background: #2563eb;
    border-radius: 3px;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    margin-top: 6px; /* pequeno ajuste visual para alinhar com a altura da linha */
}
.magnet-cta .btn-primary {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
    transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.2s ease;
}
.magnet-cta .btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(29, 78, 216, 0.35);
}
.magnet-cta .magnet-inner {
    max-width: 1040px;
    margin: 0 auto;
}
.magnet-cta .magnet-logo {
    width: 40%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 12px;
}
@media (min-width: 768px) {
    .magnet-cta { padding: 72px 24px; }
}
/* Caso a seção use parágrafos (classe .imas-copy), manter responsivo também */
.magnet-cta .imas-copy p { font-size: clamp(0.98rem, 0.92rem + 0.5vw, 1.2rem); line-height: 1.5; }
@media (min-width: 768px) {
  .magnet-cta .imas-copy p { font-size: 1.15rem; }
}
/* Evita quebra estranha do domínio; mantém compacto mas responsivo */
.magnet-cta .bullets li strong { white-space: nowrap; }
@media (max-width: 700px) {
    .magnet-cta .magnet-logo { width: 70%; }
}

/* Melhora de responsividade para textos longos (ex.: domínios) */
.magnet-cta .lead,
.magnet-cta .bullets li {
  overflow-wrap: anywhere; /* evita overflow em telas estreitas */
  word-break: break-word;
}

/* Ajustes extras em telas bem pequenas */
@media (max-width: 480px) {
  .magnet-cta { padding: 36px 14px; }
  .magnet-cta h1 { margin-bottom: 10px; }
  .magnet-cta .lead { margin-bottom: 16px; }
  .magnet-cta .bullets { margin-bottom: 18px; }
  .magnet-cta .bullets li { gap: 8px; }
  .magnet-cta .magnet-logo { width: 82%; }
  /* Permite o domínio quebrar linha quando necessário no mobile muito estreito */
  .magnet-cta .bullets li strong { white-space: normal; word-break: break-word; }
}
