/* ==========================================================
   1. BASE GERAL
   ========================================================== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f4f6;
    color: #111827;
}

.layout {
    display: flex;
}

.content {
    margin-left: 250px;
    padding: 30px;
    width: calc(100% - 250px);
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ==========================================================
   2. MENU LATERAL PROFISSIONAL
   ========================================================== */
.sidebar {
    width: 250px;
    height: 100vh;
    background: linear-gradient(180deg, #064e3b, #022c22);
    color: white;
    padding: 20px;
    position: fixed;
    box-shadow: 4px 0 14px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

.sidebar-logo {
    display: flex;
    justify-content: center;
    align-items: center;

    background: #ffffff;

    margin: -20px -20px 20px -20px;
    padding: 20px 10px;

    border-bottom: 1px solid rgba(134, 239, 172, 0.45);
}

.logo-menu-img {
    width: 210px;
    max-width: 100%;
    height: auto;
    display: block;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ecfdf5;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.menu-item:hover {
    background: rgba(16, 185, 129, 0.22);
    transform: translateX(4px);
}

.menu-icon {
    width: 24px;
    text-align: center;
    font-size: 18px;
}

.menu-text {
    flex: 1;
}

.sidebar-footer {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

.btn-atualizar {
    background: #2563eb !important;
    color: white !important;
    justify-content: center;
    font-weight: bold;
}

/* ==========================================================
   3. CONTAINERS, CARDS E GRID
   ========================================================== */
.container {
    background: white;
    padding: 25px;
    border-radius: 12px;
}

.box,
.card {
    background: #f9fafb;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: auto;
}

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

.bloco-milhar-faltante{
    margin-bottom:20px;
    padding:15px;
    background:#f8fafc;
    border-radius:12px;
    border:1px solid #dbe4ea;
}

.titulo-bicho-faltante{
    font-size:18px;
    font-weight:700;
    color:#0f172a;
    margin-bottom:10px;
}

.lista-milhares-faltantes{
    line-height:2;
    color:#1e293b;
    font-size:15px;
    word-break:break-word;
}

/* ==========================================================
   4. CABEÇALHOS DE PÁGINA
   ========================================================== */
.page-header {
    background: white;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 18px;
    border-left: 6px solid #10b981;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-icon {
    font-size: 36px;
    background: #ecfdf5;
    color: #047857;
    padding: 12px;
    border-radius: 14px;
}

.page-title h1 {
    margin: 0;
    color: #064e3b;
    font-size: 28px;
}

.page-title p {
    margin: 5px 0 0 0;
    color: #555;
}



/* ==========================================================
   5. FILTROS
   ========================================================== */
.filter-bar {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1.2fr 0.8fr 0.8fr auto;
    gap: 15px;
    background: white;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    align-items: end;
}

.filter-item label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    color: #064e3b;
}

.filter-item select,
input[type="date"],
select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px;
    background: white;
    box-sizing: border-box;
}

.filter-item select[multiple] {
    height: 95px;
}

button,
.btn-card {
    padding: 10px 18px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

label {
    margin-right: 15px;
}

/* ==========================================================
   6. MULTISELECT COM CHECKBOX
   ========================================================== */
.multi-select {
    position: relative;
    width: 100%;
}

.multi-select-btn {
    width: 100%;
    background: white;
    color: #111827;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px;
    text-align: left;
    cursor: pointer;
}

.multi-select-options {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    width: 100%;
    max-height: 230px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 5px;
    padding: 8px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.multi-select-options.show {
    display: block;
}

.multi-select-options label {
    display: block;
    padding: 7px;
    cursor: pointer;
    color: #111827;
}

.multi-select-options label:hover {
    background: #ecfdf5;
}

.checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 12px 0 25px 0;
}

.checkbox-row label {
    background: #ecfdf5;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
}

.grupo-acoes {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.dezena-grid th,
.dezena-grid td {
    text-align: center;
    padding: 6px;
}

.dezena-grid button {
    padding: 5px 8px;
    font-size: 12px;
}

.resultado-combinacoes {
    width: 100%;
    height: 220px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
}

.painel-bichos-comb {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.btn-bicho-comb {
    background: #ecfdf5;
    color: #064e3b;
    border: 1px solid #10b981;
    font-weight: bold;
}

.btn-bicho-comb.selecionado {
    background: #16a34a;
    color: white;
}

.btn-bicho-comb.bicho-disabled,
.btn-bicho-comb:disabled {
    background: #e5e7eb !important;
    color: #9ca3af !important;
    border: 1px solid #d1d5db;
    cursor: not-allowed;
}



/* =========================================================
   6.1 BOTÕES DE CLASSIFICAÇÃO - PUXADAS
========================================================= */

.titulo-com-acoes {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.titulo-com-acoes h2 {
    margin: 0;
}

.titulo-com-acoes .btn-card {
    padding: 8px 12px;
    font-size: 14px;
    margin-left: 6px;
}

.btn-bicho-faltante {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #064e3b;
    padding: 9px 14px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.btn-bicho-faltante.selecionado {
    background: #16a34a;
    color: white;
    border-color: #15803d;
}

.contador-milhar {
    margin-left: 12px;
    color: #dc2626;
    font-weight: 700;
    border: 1px solid #dc2626;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.btn-milhar-selecionavel {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    padding: 6px 9px;
    margin: 3px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 700;
}

.btn-milhar-selecionavel:hover {
    background: #dcfce7 !important;
    border-color: #22c55e !important;
}

.btn-milhar-selecionavel.selecionada {
    background: #16a34a !important;
    color: white !important;
    border-color: #15803d !important;
}

.btn-contador-milhar {
    cursor: pointer;
    background: #fff7ed;
}

.btn-contador-milhar:hover {
    background: #fed7aa;
}

.filtros-milhar-bloco {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 10px 0 12px 0;
    align-items: center;
}

.grupo-digitos-milhar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.label-digitos {
    font-weight: 700;
    color: #4b5563;
    margin-right: 4px;
}

.btn-digito-filtro {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    padding: 5px 9px;
    border-radius: 6px;
    font-weight: 700;
}

.btn-digito-filtro.selecionado {
    background: #16a34a !important;
    color: white !important;
    border-color: #15803d !important;
}

.botoes-bichos,
.grade-milhares,
.linha-digitos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.btn-bicho,
.btn-total-bicho,
.btn-digito-milhar,
.btn-digito-centena,
.btn-milhar {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 6px;
    padding: 5px 9px;
    cursor: pointer;
    font-weight: 600;
}

.btn-milhar span {
    color: #e11d48;
    margin-left: 3px;
}

.selecionado {
    background: #22c55e !important;
    color: white !important;
    border-color: #16a34a !important;
}

.bloco-bicho {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #fff;
}

.btn-copiar {
    margin: 15px 0;
    background: #2563eb;
    color: white;
    border: none;
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: bold;
}



/* ==========================================================
   7. TABELAS
   ========================================================== */
table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    background: white;
}

.lista-destaque {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

th,
td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

th {
    background: #111827;
    color: white;
}

.bicho,
td.bicho {
    text-align: left;
    padding-left: 25px;
    white-space: nowrap;
    font-weight: 600;
    color: #1a1a1a;
}

.emoji {
    font-size: 20px;
    margin-right: 8px;
}

.detalhe-atraso {
    text-align: left;
    padding-left: 20px;
}

.frequencia{
    text-align:center;
    width:160px;
}

.badge-freq{
    display:inline-block;
    min-width:70px;
    background:#0d6efd;
    color:white;
    padding:4px 10px;
    border-radius:8px;
    font-weight:bold;
    font-size:14px;
}

.freq-wrap {
    position: relative;
    height: 24px;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    min-width: 120px;
    width: 100%;
}

.freq-barra {
    height: 100%;
    background: linear-gradient(90deg, #059669, #22c55e);
    border-radius: 20px;
    animation: crescerBarraFreq 0.8s ease-out;
}

.freq-wrap span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #111827;
}

@keyframes crescerBarraFreq {
    from {
        width: 0;
    }
}

/* ==========================================================
   8. IA / SCORE / BARRAS
   ========================================================== */
.lista-destaque span {
    display: inline-block;
    background: #ecfdf5;
    color: #064e3b;
    padding: 8px 12px;
    border-radius: 8px;
    margin: 4px;
    font-weight: bold;
}

.ia-table th:first-child,
.ia-table td:first-child {
    width: 40%;
    text-align: left;
    white-space: nowrap;
}

.ia-table th:last-child,
.ia-table td:last-child {
    width: 60%;
}

.barra-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.barra {
    flex: 1;
    height: 12px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    min-width: 90px;
}

.barra-fill {
    height: 100%;
    background: linear-gradient(90deg, #059669, #22c55e);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.barra-fill:hover {
    filter: brightness(1.1);
}

.valor-score {
    min-width: 45px;
    text-align: right;
    font-size: 12px;
}

.top-ranking {
    font-weight: bold;
    color: #064e3b;
    background: #ecfdf5;
}

.badge-top {
    background: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #f59e0b;
}

/* ==========================================================
   9. RESPONSIVIDADE SIMPLES
   ========================================================== */
@media (max-width: 1100px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .sidebar-footer {
        position: static;
        margin-top: 20px;
    }

    .content {
        margin-left: 0;
        width: 100%;
        padding: 15px;
    }

    .layout {
        display: block;
    }

    .grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   10. PÁGINA MILHARES
   ========================================================== */
.filter-bar-milhares {
    grid-template-columns: 1.1fr 1.1fr 1fr 1fr 1fr 1.1fr auto;
}

.card-milhares {
    background: white;
    border: 1px solid #e5e7eb;
}

.cabecalho-bloco-bicho {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.cabecalho-bloco-bicho h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
}

.btn-bicho,
.btn-total-bicho,
.btn-digito-milhar,
.btn-digito-centena,
.btn-milhar {
    background: #f8fafc !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

.btn-bicho:hover,
.btn-total-bicho:hover,
.btn-digito-milhar:hover,
.btn-digito-centena:hover,
.btn-milhar:hover {
    background: #dcfce7 !important;
    border-color: #22c55e !important;
}

.btn-bicho.selecionado,
.btn-total-bicho.selecionado,
.btn-digito-milhar.selecionado,
.btn-digito-centena.selecionado,
.btn-milhar.selecionado {
    background: #16a34a !important;
    color: white !important;
    border-color: #15803d !important;
}

.btn-total-bicho {
    color: #dc2626 !important;
    background: #fff7ed !important;
    border-color: #dc2626 !important;
    font-weight: 800;
    padding: 4px 10px;
}

.btn-milhar {
    min-width: 68px;
    padding: 6px 8px;
    font-size: 13px;
}

.btn-milhar span {
    color: #dc2626;
    margin-left: 2px;
    font-size: 11px;
}

.btn-milhar.selecionado span {
    color: white;
}

.linha-digitos {
    margin-bottom: 12px;
    align-items: center;
}

.linha-digitos strong {
    color: #334155;
    margin: 0 4px;
}

.grade-milhares {
    line-height: 1.8;
}

@media (max-width: 1100px) {
    .filter-bar-milhares {
        grid-template-columns: 1fr 1fr;
    }
}


/* ==========================================================
   11. PAINEL ADMINISTRATIVO
   ========================================================== */
.usuario-logado {
    color: #d1fae5;
    font-size: 13px;
    padding: 8px 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
}

.menu-admin {
    background: rgba(245, 158, 11, 0.24);
}

.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.admin-form {
    max-width: 760px;
}

.admin-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.admin-form label {
    display: block;
    margin: 0;
    font-weight: 700;
    color: #064e3b;
}

.admin-form input,
.admin-form select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px;
    background: white;
    box-sizing: border-box;
    margin-top: 6px;
}

.admin-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.admin-kpi {
    background: white;
    border-radius: 12px;
    padding: 18px;
    border-left: 5px solid #10b981;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
}

.admin-kpi span {
    color: #64748b;
    font-size: 14px;
}

.admin-kpi strong {
    display: block;
    margin-top: 6px;
    font-size: 30px;
    color: #064e3b;
}

.badge-admin,
.badge-user,
.badge-ativo,
.badge-inativo {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
}

.badge-admin { background: #fef3c7; color: #92400e; }
.badge-user { background: #dbeafe; color: #1e40af; }
.badge-ativo { background: #dcfce7; color: #166534; }
.badge-inativo { background: #fee2e2; color: #991b1b; }

.btn-danger { background: #dc2626 !important; }
.btn-warning { background: #f59e0b !important; color: #111827 !important; }
.btn-success { background: #16a34a !important; }

.erro-admin {
    background: #fee2e2;
    color: #991b1b;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 15px;
    font-weight: 700;
}

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


/* ==========================================================
   TEMA PREMIUM / LANDING / AUTH / MOBILE
   ========================================================== */

:root {
    --premium-bg: #071221;
    --premium-bg-2: #0f1b2d;
    --premium-card: rgba(255,255,255,.96);
    --premium-gold: #d6a84f;
    --premium-gold-2: #f6d27a;
    --premium-green: #16a34a;
    --premium-blue: #2563eb;
    --premium-text: #0f172a;
    --premium-muted: #64748b;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

.animate-up {
    animation: animateUp .75s ease both;
}

.animate-fade {
    animation: animateFade 1s ease both;
}

@keyframes animateUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes animateFade {
    from { opacity: 0; transform: scale(.97); }
    to { opacity: 1; transform: scale(1); }
}

/* Auth premium */
.auth-premium-body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 20% 20%, rgba(214,168,79,.18), transparent 26%),
        radial-gradient(circle at 80% 10%, rgba(37,99,235,.16), transparent 28%),
        linear-gradient(135deg, #071221 0%, #0f172a 55%, #020617 100%);
    font-family: Arial, sans-serif;
}

.auth-premium-body::before {
    content: "DB";
    position: fixed;
    inset: auto -70px -120px auto;
    font-size: 340px;
    font-weight: 900;
    letter-spacing: -28px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(214,168,79,.10);
    pointer-events: none;
}

.auth-premium-card {
    width: 100%;
    max-width: 460px;
    padding: 34px;
    border-radius: 22px;
    background: var(--premium-card);
    box-shadow: 0 28px 80px rgba(0,0,0,.36);
    border: 1px solid rgba(214,168,79,.20);
    position: relative;
    z-index: 1;
}

.auth-logo {
    text-align: center;
}

.auth-logo img {
    width: 210px;
    max-width: 100%;
    margin-bottom: 10px;
}

.auth-premium-card h1 {
    margin: 4px 0 6px;
    text-align: center;
    color: #071221;
    font-size: 32px;
}

.auth-premium-card p {
    margin: 0;
    color: var(--premium-muted);
    text-align: center;
}

.gold-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 22px 0;
}

.gold-divider span {
    width: 92px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--premium-gold), transparent);
    position: relative;
}

.gold-divider span::after {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--premium-gold);
    border-radius: 999px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.auth-premium-card label {
    display: block;
    margin-top: 15px;
    font-weight: 800;
    color: #0f172a;
}

.auth-premium-card input {
    width: 100%;
    margin-top: 7px;
    padding: 14px 15px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    outline: none;
    transition: .2s;
}

.auth-premium-card input:focus {
    border-color: var(--premium-gold);
    box-shadow: 0 0 0 4px rgba(214,168,79,.14);
}

.auth-premium-card button {
    width: 100%;
    margin-top: 24px;
    padding: 15px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(22,163,74,.25);
}

.auth-premium-card button:hover {
    transform: translateY(-1px);
}

.auth-separator {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin: 24px 0 14px;
    color: #64748b;
}

.auth-separator span {
    height: 1px;
    background: #e2e8f0;
}

.auth-link-button {
    display: block;
    text-align: center;
    padding: 13px;
    border: 1px solid var(--premium-blue);
    color: var(--premium-blue);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 900;
}

.erro-login,
.erro-admin {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 12px;
    margin: 16px 0;
    font-weight: 700;
}

/* Landing */
.landing-body {
    margin: 0;
    background: #071221;
    color: white;
    font-family: Arial, sans-serif;
}

.landing-header {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-brand img {
    width: 150px;
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.landing-nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 700;
}

.landing-nav-cta {
    background: linear-gradient(135deg, var(--premium-gold), var(--premium-gold-2));
    color: #071221 !important;
    padding: 11px 16px;
    border-radius: 999px;
}

.hero-section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 680px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 46px;
    position: relative;
}

.hero-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    filter: blur(80px);
    opacity: .35;
    border-radius: 50%;
}

.hero-glow-left {
    background: var(--premium-gold);
    left: -100px;
    top: 140px;
}

.hero-glow-right {
    background: #2563eb;
    right: -100px;
    bottom: 80px;
}

.hero-badge {
    display: inline-block;
    padding: 9px 13px;
    border: 1px solid rgba(214,168,79,.38);
    background: rgba(214,168,79,.10);
    color: var(--premium-gold-2);
    border-radius: 999px;
    font-weight: 800;
}

.hero-content h1 {
    font-size: clamp(38px, 6vw, 72px);
    line-height: .98;
    margin: 22px 0;
    letter-spacing: -2px;
}

.hero-content p {
    color: #cbd5e1;
    font-size: 19px;
    line-height: 1.65;
    max-width: 660px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-landing-primary,
.btn-landing-secondary {
    display: inline-block;
    padding: 15px 22px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 900;
}

.btn-landing-primary {
    background: linear-gradient(135deg, var(--premium-gold), var(--premium-gold-2));
    color: #071221;
}

.btn-landing-secondary {
    border: 1px solid rgba(255,255,255,.22);
    color: white;
}

.btn-landing-primary.center {
    margin: 28px auto 0;
    display: table;
}

.hero-proof {
    display: flex;
    gap: 16px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.hero-proof div {
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    border-radius: 16px;
}

.hero-proof strong {
    display: block;
    color: var(--premium-gold-2);
    font-size: 22px;
}

.hero-proof span {
    color: #cbd5e1;
    font-size: 13px;
}

.hero-panel {
    position: relative;
    z-index: 1;
}

.mock-window {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 30px 80px rgba(0,0,0,.30);
    backdrop-filter: blur(12px);
}

.mock-top {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.mock-top span {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.28);
}

.mock-card {
    background: white;
    color: #0f172a;
    padding: 20px;
    border-radius: 18px;
}

.mock-row {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
}

.mock-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
}

.mock-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #16a34a, var(--premium-gold));
    border-radius: 999px;
    animation: fillBar 1.4s ease both;
}

@keyframes fillBar {
    from { width: 0; }
}

.mock-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.mock-grid div {
    background: rgba(255,255,255,.10);
    padding: 16px;
    border-radius: 16px;
}

.features-section,
.plans-preview {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 34px;
}

.section-title span {
    color: var(--premium-gold-2);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title h2 {
    font-size: clamp(30px, 4vw, 48px);
    margin: 10px 0;
}

.section-title p {
    color: #cbd5e1;
}

.features-grid,
.plans-preview-grid,
.dashboard-premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card,
.preview-plan,
.premium-tile {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    padding: 24px;
    color: white;
    text-decoration: none;
    transition: .25s;
}

.feature-card:hover,
.preview-plan:hover,
.premium-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(214,168,79,.42);
}

.feature-card span,
.premium-tile span {
    font-size: 32px;
}

.feature-card p,
.preview-plan p,
.premium-tile p {
    color: #cbd5e1;
    line-height: 1.55;
}

.preview-plan {
    text-align: center;
}

.preview-plan strong {
    font-size: 32px;
    color: var(--premium-gold-2);
}

.preview-plan.featured {
    background: linear-gradient(135deg, rgba(214,168,79,.22), rgba(255,255,255,.08));
}

.landing-footer {
    padding: 34px 20px;
    text-align: center;
    color: #94a3b8;
    border-top: 1px solid rgba(255,255,255,.10);
}

.landing-footer img {
    width: 110px;
}

/* Tema interno premium */
.app-dark .content {
    background:
        radial-gradient(circle at 90% 10%, rgba(214,168,79,.08), transparent 22%),
        #f3f6fb;
}

.premium-header {
    border-left: 5px solid var(--premium-gold);
}

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

.premium-tile {
    background: white;
    color: #0f172a;
    box-shadow: 0 14px 36px rgba(15,23,42,.08);
}

.premium-tile p {
    color: #64748b;
}

/* Menu mobile */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 9999;
    border: 0;
    background: #071221;
    color: white;
    border-radius: 10px;
    padding: 10px 13px;
    font-size: 22px;
    box-shadow: 0 12px 28px rgba(0,0,0,.25);
}

@media (max-width: 1050px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding: 40px 0 70px;
    }

    .features-grid,
    .plans-preview-grid,
    .dashboard-premium-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: block;
    }

    .layout {
        display: block;
    }

    .sidebar {
        transform: translateX(-105%);
        transition: .25s ease;
        z-index: 9998;
        width: 280px;
    }

    body.menu-open .sidebar {
        transform: translateX(0);
    }

    .content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 72px 16px 24px !important;
    }

    .landing-header {
        flex-direction: column;
        gap: 18px;
    }

    .landing-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 680px) {
    .auth-premium-card {
        padding: 24px;
    }

    .auth-logo img {
        width: 170px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .features-grid,
    .plans-preview-grid,
    .dashboard-premium-grid {
        grid-template-columns: 1fr;
    }

    .hero-proof {
        display: grid;
        grid-template-columns: 1fr;
    }

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


/* ==========================================================
   MENU LATERAL SIMPLIFICADO + CENTRAL DE ANÁLISES
   ========================================================== */
.sidebar-user-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: -18px 0 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .10);
    color: #ecfdf5;
}

.sidebar-user-top span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(16, 185, 129, .18);
}

.sidebar-user-top strong {
    display: block;
    font-size: 13px;
    line-height: 1.1;
}

.sidebar-user-top small {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: #a7f3d0;
}

.menu-limpo {
    gap: 12px;
}

.sidebar-footer-limpo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.analise-central-header {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
}

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

.analise-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 190px;
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    text-decoration: none;
    color: #0f172a;
    box-shadow: 0 16px 42px rgba(15, 23, 42, .07);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.analise-card::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -45px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 168, 79, .20), transparent 68%);
}

.analise-card:hover {
    transform: translateY(-6px);
    border-color: #d6a84f;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .13);
}

.analise-card-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #ecfdf5, #eef6ff);
    font-size: 30px;
}

.analise-card h2 {
    margin: 0;
    color: #071221;
    font-size: 23px;
}

.analise-card p {
    margin: 8px 0 0;
    color: #64748b;
    line-height: 1.5;
}

.analise-card strong {
    margin-top: auto;
    color: #2563eb;
    font-weight: 900;
}

.anim-card {
    animation: subirCardAnalise .45s ease both;
}

@keyframes subirCardAnalise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 700px) {
    .analise-cards-grid {
        grid-template-columns: 1fr;
    }
}



/* ==========================================================
   CICLOS - BOTÕES, CENTENAS, MODAL E CÓPIA
   ========================================================== */
.filter-bar-ciclos {
    grid-template-columns: 1.25fr 1.25fr 1.25fr .82fr .82fr .7fr;
    align-items: end;
}

.ciclo-botoes-flutuantes {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 22px 0;
    padding: 16px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(203, 213, 225, .9);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    backdrop-filter: blur(10px);
}

.btn-ciclo-flutuante {
    border: 1px solid #dbe3ef !important;
    background: linear-gradient(135deg, #ffffff, #f8fafc) !important;
    color: #0f172a !important;
    padding: 12px 16px;
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.btn-ciclo-flutuante:hover {
    transform: translateY(-2px);
    border-color: #22c55e !important;
    box-shadow: 0 16px 30px rgba(22, 163, 74, .12);
}

.btn-ciclo-flutuante.ativo {
    background: linear-gradient(135deg, #16a34a, #059669) !important;
    color: white !important;
    border-color: #047857 !important;
}

.btn-ciclo-flutuante.bloqueado {
    opacity: .72;
    cursor: not-allowed;
}

.ciclos-header {
    border-left-color: #2563eb;
}

.ciclo-placeholder {
    background: white;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 34px;
    text-align: center;
    color: #475569;
}

.ciclo-placeholder h2 {
    color: #0f172a;
    margin-top: 0;
}

.ciclo-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.ciclo-kpi {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.ciclo-kpi span {
    display: block;
    color: #64748b;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.ciclo-kpi strong {
    display: block;
    margin: 8px 0 4px;
    color: #064e3b;
    font-size: 34px;
    line-height: 1;
}

.ciclo-kpi small {
    color: #64748b;
    line-height: 1.4;
}

.ciclo-kpi.principal {
    border-left: 5px solid #16a34a;
}

.ciclo-kpi.alerta.alto { border-left: 5px solid #dc2626; }
.ciclo-kpi.alerta.medio { border-left: 5px solid #f59e0b; }
.ciclo-kpi.alerta.baixo { border-left: 5px solid #2563eb; }
.ciclo-kpi.alerta.neutro { border-left: 5px solid #64748b; }

.ciclo-progresso {
    height: 11px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 14px;
}

.ciclo-progresso i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #059669, #22c55e);
    border-radius: 999px;
    animation: crescerBarraFreq .75s ease-out;
}

.ciclo-grid-duplo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}

.ciclo-box {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .05);
}

.badge-ciclo {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 900;
}

.badge-ciclo.faltante {
    background: #fee2e2;
    color: #991b1b;
}

.ciclo-table th {
    background: #0f172a;
}

.ciclo-table small {
    color: #64748b;
    font-weight: 600;
}

.linha-ciclo-aberto td {
    background: #f8fafc;
    font-weight: 800;
    color: #334155;
}

.ciclo-aviso-lista {
    margin: 0 0 12px 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.ciclo-titulo-centenas {
    align-items: flex-start;
}

.acoes-centenas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.btn-centena-acao {
    background: #2563eb !important;
    color: white !important;
    border: 0 !important;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .18);
}

.btn-centena-acao.gerar {
    background: #16a34a !important;
    box-shadow: 0 8px 18px rgba(22, 163, 74, .18);
}

.btn-centena-acao:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.grade-centenas-faltantes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    max-height: 720px;
    overflow-y: auto;
    padding-right: 6px;
}

.grade-centenas-scroll {
    scrollbar-width: thin;
}

.chip-centena-faltante {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chip-centena-faltante strong {
    color: #9a3412;
    font-size: 18px;
}

.chip-centena-faltante span {
    color: #0f172a;
    font-weight: 800;
}

.chip-centena-faltante small {
    color: #475569;
    font-weight: 700;
}

.chip-centena-faltante em {
    color: #64748b;
    font-style: normal;
    font-size: 12px;
    line-height: 1.3;
}

.chip-centena-sorteada {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.chip-centena-sorteada strong {
    color: #047857;
}

.modal-milhares-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .56);
    z-index: 99999;
    padding: 20px;
}

.modal-milhares-overlay.show {
    display: flex;
}

.modal-milhares-card {
    width: min(430px, 96vw);
    background: #ffffff;
    border-radius: 24px;
    padding: 26px;
    position: relative;
    box-shadow: 0 30px 90px rgba(15, 23, 42, .35);
    animation: modalMilharesIn .22s ease both;
}

@keyframes modalMilharesIn {
    from { opacity: 0; transform: translateY(16px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-milhares-card h2 {
    margin: 0 0 8px 0;
    color: #064e3b;
    font-size: 26px;
}

.modal-milhares-card p {
    margin: 0 0 18px 0;
    color: #64748b;
    line-height: 1.45;
}

.modal-fechar {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #f1f5f9 !important;
    color: #0f172a !important;
    font-size: 24px;
    line-height: 1;
    padding: 0;
}

.teclado-digitos {
    width: 245px;
    margin: 0 auto 18px;
    display: grid;
    grid-template-columns: repeat(3, 72px);
    gap: 13px;
    justify-content: center;
}

.teclado-digitos button {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: #f8fafc !important;
    color: #0f172a !important;
    border: 1px solid #dbe3ef !important;
    font-size: 27px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
}

.teclado-digitos button:hover {
    transform: translateY(-2px);
    border-color: #16a34a !important;
}

.teclado-digitos button.selecionado {
    background: #16a34a !important;
    color: #fff !important;
    border-color: #047857 !important;
}

.modal-acoes-digitos {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}

.modal-acoes-digitos button {
    background: #f8fafc !important;
    color: #0f172a !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 999px;
    font-weight: 900;
}

.btn-gerar-milhares-final {
    width: 100%;
    border-radius: 14px;
    background: linear-gradient(135deg, #16a34a, #059669) !important;
    color: white !important;
    font-size: 15px;
    font-weight: 900;
    padding: 13px;
}

#resumoGerarMilhares {
    display: block;
    margin-top: 12px;
    color: #64748b;
    text-align: center;
    font-weight: 700;
}

.toast-ciclos {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: #064e3b;
    color: white;
    padding: 14px 18px;
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .25);
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: .22s ease;
    font-weight: 900;
}

.toast-ciclos.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1200px) {
    .filter-bar-ciclos,
    .ciclo-kpis,
    .ciclo-grid-duplo {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .filter-bar-ciclos,
    .ciclo-kpis,
    .ciclo-grid-duplo {
        grid-template-columns: 1fr;
    }

    .ciclo-botoes-flutuantes {
        gap: 8px;
    }

    .btn-ciclo-flutuante {
        width: 100%;
    }

    .acoes-centenas {
        justify-content: flex-start;
    }
}



/* ==========================================================
   CICLOS - MILHARES
   Complementa a apresentação das 10.000 milhares sem alterar
   os estilos já existentes de bichos e centenas.
   ========================================================== */
.ciclo-milhares-grid .grade-milhares-ciclo {
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    max-height: 760px;
}

.chip-milhar-faltante strong,
.chip-milhar-sorteada strong {
    font-size: 19px;
    letter-spacing: .5px;
}

.chip-milhar-faltante span,
.chip-milhar-sorteada span {
    font-size: 12px;
}

.chip-milhar-faltante small,
.chip-milhar-sorteada small {
    font-size: 12px;
}

.chip-milhar-faltante em,
.chip-milhar-sorteada em {
    font-size: 11px;
}


/* ==========================================================
   CICLOS - DEZENAS ESQUERDA
   ========================================================== */
.ciclo-dezenas-grid .grade-dezenas-ciclo {
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    max-height: 520px;
}

.chip-dezena-esquerda strong {
    font-size: 22px;
    letter-spacing: .6px;
}

.modal-dezenas-card {
    width: min(760px, 96vw);
}

.grade-dezenas-modal {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    max-height: 420px;
    overflow-y: auto;
    padding: 4px 4px 14px;
    margin-bottom: 16px;
}

.grade-dezenas-modal button {
    background: #f8fafc !important;
    color: #0f172a !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 12px;
    padding: 10px 0;
    font-weight: 900;
    font-size: 15px;
}

.grade-dezenas-modal button:hover {
    transform: translateY(-1px);
    border-color: #16a34a !important;
}

.grade-dezenas-modal button.selecionado {
    background: #16a34a !important;
    color: white !important;
    border-color: #047857 !important;
}

#resumoGerarDezenas {
    display: block;
    margin-top: 12px;
    color: #64748b;
    text-align: center;
    font-weight: 700;
}

@media (max-width: 760px) {
    .grade-dezenas-modal {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ==========================================================
   CICLOS - DADOS DO FECHAMENTO NO HISTÓRICO
   ========================================================== */
.fechamento-ciclo {
    min-width: 260px;
    text-align: left !important;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.45;
}

.fechamento-ciclo small,
.fechamento-ciclo span {
    font-weight: 600;
}

.fechamento-aberto {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
}

@media (max-width: 900px) {
    .fechamento-ciclo {
        min-width: 210px;
    }
}

/* ==========================================================
   RESULTADOS PÚBLICOS / CARDS / ATRASADOS
   ========================================================== */
.resultados-header {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.resultados-subtitle {
    margin: 12px 0 24px;
}

.resultados-subtitle h2 {
    margin: 0 0 6px;
    color: #071221;
}

.resultados-subtitle p {
    margin: 0;
    color: #64748b;
}

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

.resultado-loteria-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .08);
    transition: transform .22s ease, box-shadow .22s ease;
}

.resultado-loteria-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .13);
}

.resultado-loteria-topo {
    background: #111827;
    color: #ffffff;
    padding: 10px 14px;
    text-align: center;
    font-weight: 900;
}

.resultado-loteria-corpo {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
}

.resultado-loteria-icone {
    width: 56px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #ecfdf5;
    border: 1px solid #10b981;
    font-size: 27px;
}

.resultado-loteria-principal .milhar {
    color: #2563eb;
    font-size: 22px;
    font-weight: 900;
    margin-right: 6px;
}

.resultado-loteria-principal .bicho {
    color: #2563eb;
    font-size: 18px;
    font-weight: 700;
    padding-left: 0;
}

.resultado-loteria-principal small {
    display: block;
    margin-top: 8px;
    color: #047857;
    font-weight: 800;
}

.resultado-sem-dados {
    width: 100%;
    border: 1px solid #94a3b8;
    padding: 9px 12px;
    border-radius: 7px;
    color: #475569;
    text-transform: uppercase;
    font-size: 13px;
}

.resultado-loteria-acoes {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: #10b981;
}

.btn-ver-resultado,
.btn-ver-atrasados {
    background: #ffffff;
    color: #071221;
    border-radius: 6px;
    padding: 8px 11px;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
}

.btn-ver-resultado:hover,
.btn-ver-atrasados:hover {
    background: #fef3c7;
}

.resultado-dia-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #047857;
    color: #ffffff;
    margin-bottom: 18px;
}

.resultado-dia-data {
    text-align: center;
}

.resultado-dia-data strong,
.resultado-dia-data span {
    display: block;
}

.btn-voltar-resultados,
.btn-ver-atrasados.maior {
    text-decoration: none;
    color: #071221;
    background: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 900;
}

.resultado-horarios-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 18px;
}

.resultado-horario-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #dbe3ef;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .09);
}

.resultado-horario-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #047857);
}

.resultado-horario-topo strong,
.resultado-horario-topo small {
    display: block;
}

.resultado-topo-icone {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,.20);
    font-size: 24px;
}

.resultado-premios-tabela {
    padding: 10px 12px;
}

.resultado-premios-tabela .linha {
    display: grid;
    grid-template-columns: 65px 95px 1fr 58px;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid #e5e7eb;
}

.resultado-premios-tabela .linha:last-child {
    border-bottom: 0;
}

.resultado-premios-tabela .cabecalho {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.premio-badge {
    background: #071221;
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.premio-milhar {
    color: #2563eb;
    letter-spacing: 1px;
    font-size: 18px;
}

.resultado-card-acoes {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: #111827;
}

.resultado-card-acoes button {
    padding: 8px 11px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 900;
}

.acao-png { background: #f59e0b !important; color: #111827 !important; }
.acao-facebook { background: #2563eb !important; }
.acao-whatsapp { background: #16a34a !important; }

.resultado-atrasados-filtros {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr auto;
    gap: 14px;
    align-items: end;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
}

.resultado-atrasados-resumo {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.resultado-atrasados-resumo strong {
    color: #064e3b;
    font-size: 22px;
}

.resultado-publico-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.resultado-atrasados-tabela-wrap,
.cards-bloqueados-resultados {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .07);
}

.resultado-atrasados-tabela-wrap h2,
.cards-bloqueados-resultados h3 {
    margin-top: 0;
}

.resultado-atrasados-tabela th {
    background: #071221;
}

.cards-bloqueados-resultados p {
    color: #64748b;
}

.card-bloqueado {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    color: #0f172a;
    text-decoration: none;
    transition: .2s;
}

.card-bloqueado:hover {
    transform: translateX(4px);
    border-color: #d6a84f;
}

.card-bloqueado span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: #ecfdf5;
    border-radius: 12px;
    font-size: 22px;
}

.card-bloqueado div {
    flex: 1;
}

.card-bloqueado small {
    display: block;
    color: #64748b;
    margin-top: 2px;
}

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

    .resultado-publico-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .resultados-loterias-grid,
    .resultado-horarios-grid,
    .resultado-atrasados-filtros {
        grid-template-columns: 1fr;
    }

    .resultado-dia-toolbar {
        flex-direction: column;
    }
}

/* ==========================================================
   RESULTADOS - TOOLBAR COM CALENDÁRIO DE BICHOS DO DIA
   ========================================================== */
.resultado-dia-toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    flex-wrap:wrap;
}

.resultado-toolbar-esquerda{
    display:flex;
    align-items:center;
    gap:14px;
    min-width:0;
    flex-wrap:wrap;
}

.resultado-dia-data-compacto{
    min-width:120px;
    padding:10px 14px;
}

.resultado-consulta-data{
    flex:0 1 320px;
    min-width:260px;
}

.resultado-bichos-dia-card{
    flex:1 1 540px;
    min-width:340px;
    max-width:100%;
    width:100%;
    background:
        radial-gradient(circle at 20% 0%, rgba(255,255,255,.25), transparent 34%),
        linear-gradient(135deg, rgba(6,78,59,.98), rgba(4,120,87,.92));
    border:1px solid rgba(255,255,255,.18);
    border-radius:18px;
    padding:10px 14px;
    box-shadow:0 18px 44px rgba(4,120,87,.22);
    color:#ffffff;
    box-sizing:border-box;
}

.resultado-bichos-dia-topo{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:8px;
    font-size:12px;
}

.resultado-bichos-dia-topo strong{
    color:#ffffff;
    font-weight:900;
}

.resultado-bichos-dia-topo span{
    color:rgba(255,255,255,.78);
    font-size:11px;
    font-weight:800;
}

.resultado-bichos-dia-grade{
    display:grid;
    grid-template-columns:repeat(5, minmax(72px, 1fr));
    gap:6px 8px;
}

.resultado-bicho-dia-item{
    min-height:30px;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    padding:5px 8px;
    background:rgba(255,255,255,.10);
    color:rgba(255,255,255,.66);
    border:1px solid rgba(255,255,255,.10);
    font-size:12px;
    font-weight:900;
    box-sizing:border-box;
    white-space:nowrap;
}

.resultado-bicho-dia-item.ativo{
    background:linear-gradient(135deg, #f59e0b, #facc15);
    color:#071221;
    border-color:rgba(250,204,21,.95);
    box-shadow:0 10px 24px rgba(245,158,11,.26);
}

.resultado-bicho-numero{
    font-variant-numeric:tabular-nums;
    line-height:1;
}

.resultado-bicho-emoji{
    font-size:15px;
    line-height:1;
}

.resultado-bicho-dia-item small{
    min-width:22px;
    padding:2px 5px;
    border-radius:999px;
    background:rgba(7,18,33,.16);
    color:#071221;
    font-size:10px;
    line-height:1;
    text-align:center;
    font-weight:900;
}

.btn-ver-atrasados.maior{
    flex-shrink:0;
}

@media (max-width:1280px){
    .resultado-dia-toolbar{
        justify-content:center;
    }

    .resultado-bichos-dia-card{
        width:100%;
        order:4;
    }
}

@media (max-width:760px){
    .resultado-dia-toolbar{
        flex-direction:column;
        align-items:stretch;
    }

    .resultado-toolbar-esquerda{
        justify-content:space-between;
    }

    .resultado-consulta-data,
    .resultado-bichos-dia-card,
    .btn-ver-atrasados.maior{
        width:100%;
        max-width:100%;
    }

    .resultado-bichos-dia-grade{
        grid-template-columns:repeat(5, minmax(0, 1fr));
    }

    .resultado-bicho-dia-item{
        gap:4px;
        padding:6px 4px;
        font-size:11px;
    }
}

@media (max-width:520px){
    .resultado-bichos-dia-grade{
        grid-template-columns:repeat(3, minmax(0, 1fr));
    }
}

/* ==========================================================
   RESULTADOS - BANDEIRAS DAS LOTERIAS
   ========================================================== */
.resultado-loteria-bandeira-wrap,
.page-icon-bandeira,
.resultado-topo-bandeira {
    overflow: hidden;
}

.resultado-loteria-bandeira,
.resultado-bandeira-header,
.resultado-bandeira-card {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-icon-bandeira {
    width: 74px;
    height: 58px;
    padding: 0 !important;
    border: 1px solid #10b981;
    background: #ecfdf5;
}

.resultado-bandeira-header {
    border-radius: 13px;
}

.resultado-topo-bandeira {
    padding: 0;
    border: 2px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.18);
}

.resultado-bandeira-card {
    border-radius: 999px;
}

.resultado-loteria-icone {
    overflow: hidden;
}

@media (max-width: 760px) {
    .page-icon-bandeira {
        width: 62px;
        height: 48px;
    }
}


/* ==========================================================
   11.1 ADMIN USUÁRIOS - AÇÕES COM ÍCONES PROFISSIONAIS
   ========================================================== */
.admin-usuarios-table {
    table-layout: auto;
}

.admin-usuarios-table th:last-child,
.admin-usuarios-table td:last-child {
    min-width: 250px;
    width: 250px;
}

.admin-actions,
.admin-actions-inline {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
}

.admin-actions form,
.admin-actions-inline form {
    margin: 0 !important;
    display: inline-flex !important;
}

.btn-admin-action {
    min-width: 72px;
    height: 38px;
    padding: 7px 10px !important;
    border: 0 !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    white-space: nowrap !important;
}

.btn-admin-action:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .16);
}

.btn-admin-action strong {
    font-size: 12px;
    font-weight: 900;
}

.btn-admin-icon {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    font-size: 14px;
    line-height: 1;
}

.btn-admin-edit {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
}

.btn-admin-toggle {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #111827 !important;
}

.btn-admin-delete {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
}

.badge-voce {
    min-width: 64px;
    text-align: center;
}

.admin-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.admin-search-form input[type="text"] {
    min-height: 38px;
    min-width: 260px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    box-sizing: border-box;
}

.admin-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-filter-buttons .btn-card {
    padding: 8px 13px;
    font-size: 14px;
    border-radius: 9px;
}

@media (max-width: 1150px) {
    .admin-usuarios-table th:last-child,
    .admin-usuarios-table td:last-child {
        min-width: 210px;
        width: 210px;
    }

    .btn-admin-action {
        min-width: 40px;
        padding: 8px !important;
    }

    .btn-admin-action strong {
        display: none;
    }

    .btn-admin-icon {
        font-size: 16px;
    }
}

@media (max-width: 760px) {
    .admin-actions,
    .admin-actions-inline {
        flex-wrap: wrap !important;
    }

    .admin-search-form input[type="text"] {
        min-width: 100%;
        width: 100%;
    }
}

.admin-actions{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    flex-wrap:nowrap;
}

.admin-actions form{
    margin:0;
}

.btn-admin-action {
    min-width: auto !important;
    height: 24px !important;
    min-height: 24px !important;
    padding: 3px 9px !important;
    border: none !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}

.btn-admin-action strong {
    font-size: 11px !important;
    font-weight: 700 !important;
}

.admin-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    flex-wrap: nowrap !important;
}

.admin-actions form {
    margin: 0 !important;
    display: inline-flex !important;
}

.btn-admin-edit{
    background:#2563eb;
    color:#fff;
    text-decoration:none;
}

.btn-admin-toggle{
    background:#f59e0b;
    color:#fff;
}

.btn-admin-delete{
    background:#dc2626;
    color:#fff;
}
.ciclo-linhas-master,
.ciclo-colunas-master {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
}

.ciclo-linhas-coluna,
.ciclo-colunas-coluna {
    min-width: 0;
}

@media (max-width: 1200px) {
    .ciclo-linhas-master,
    .ciclo-colunas-master {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================
   GERADOR DE INVERSÕES
   ========================================================== */

.inversoes-form {
    background: white;
    border-left: 5px solid #10b981;
}

.inversoes-input-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.inversoes-input-area label {
    font-weight: 900;
    color: #064e3b;
    min-width: 280px;
}

.inversoes-input-area input {
    display: block;
    width: 380px;
    max-width: 100%;
    height: 52px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 0 16px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1.5px;
    box-sizing: border-box;
}

.inversoes-resultado {
    background: white;
    border: 1px solid #dbe3ef;
    box-shadow: 0 16px 42px rgba(15, 23, 42, .07);
}

.inversao-bloco {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    background: #f8fafc;
}

.inversao-bloco h3 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
}

.inversao-bloco .resultado-combinacoes {
    margin-top: 12px;
    height: 230px;
    background: white;
    font-family: Consolas, monospace;
    line-height: 1.8;
    white-space: pre-wrap;
}

.inversoes-input-area button {
    height: 44px;
    padding: 0 18px;
}

@media (max-width: 760px) {
    .inversoes-input-area {
        align-items: stretch;
    }

    .inversoes-input-area label,
    .inversoes-input-area input {
        width: 100%;
        min-width: 0;
    }
}

/* ==========================================================
   PÁGINAS INSTITUCIONAIS / LEGAIS
   ========================================================== */
.menu-separator {
    margin: 10px 0 2px;
    padding: 0 14px;
    color: #a7f3d0;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .9;
}

.menu-item-legal {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
    font-size: 13px;
}

.institucional-box {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, .07);
    overflow-x: visible;
}

.legal-document {
    max-width: 980px;
    margin: 0 auto;
    color: #0f172a;
    line-height: 1.72;
    font-size: 16px;
}

.legal-document h2 {
    margin: 28px 0 10px;
    color: #064e3b;
    font-size: 22px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.legal-document h3 {
    margin: 18px 0 8px;
    color: #0f172a;
    font-size: 18px;
}

.legal-document p {
    margin: 0 0 13px;
}

.legal-document ul {
    margin: 8px 0 18px 22px;
    padding: 0;
}

.legal-document li {
    margin-bottom: 6px;
}

.legal-update {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 18px;
}

.legal-alert {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 5px solid #f59e0b;
    color: #78350f;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
    margin: 18px 0;
}

.footer-legal {
    margin-top: 34px;
    padding: 18px 10px 4px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

.footer-legal a {
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
    margin: 0 5px;
}

.footer-legal a:hover {
    text-decoration: underline;
}

.footer-legal span {
    color: #cbd5e1;
}

@media (max-width: 760px) {
    .institucional-box {
        padding: 20px;
    }

    .legal-document {
        font-size: 15px;
    }

    .footer-legal {
        line-height: 1.9;
    }
}
.auth-small-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    color: var(--premium-gold);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: .2s;
}

.auth-small-link:hover {
    color: var(--premium-gold-2);
    text-decoration: underline;
}

.sucesso-login {
    background: #dcfce7;
    color: #166534;
    padding: 12px;
    border-radius: 12px;
    margin: 16px 0;
    font-weight: 700;
    border: 1px solid #86efac;
}
