*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #0A0A0F;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

.layout {
    min-height: 100vh;
}

.page-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

/* Login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: #E8C84A;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 8px;
}

.login-titulo {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.login-subtitulo {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-top: -8px;
}

/* Form */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .form-group label {
        color: #888;
        font-size: 13px;
    }

.input {
    background: #1A1A24;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: box-shadow 0.2s;
    width: 100%;
}

    .input:focus {
        box-shadow: 0 0 0 2px #E8C84A;
    }

/* Botões */
.btn-login {
    background: #E8C84A;
    color: #0A0A0F;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
    transition: opacity 0.2s;
    display: block;
    text-align: center;
}

    .btn-login:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .btn-login:hover:not(:disabled) {
        opacity: 0.9;
    }

a.btn-logout {
    background: transparent;
    border: 1px solid #2A2A38;
    border-radius: 8px;
    color: #888;
    padding: 8px 14px;
    font-size: 13px;
}

a.btn-voltar {
    font-size: 22px;
    color: #E8C84A;
    padding: 4px 8px;
}

a.btn-refresh {
    font-size: 22px;
    color: #E8C84A;
    padding: 4px 8px;
}

.btn-mesas {
    width: 100%;
    background: transparent;
    border: 1px solid #E8C84A;
    border-radius: 12px;
    color: #E8C84A;
    padding: 14px;
    font-size: 14px;
    cursor: pointer;
    margin: 8px 0 16px;
    transition: background 0.2s;
}

    .btn-mesas:hover {
        background: rgba(232,200,74,0.08);
    }

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.header-tipo {
    color: #E8C84A;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
}

.header-titulo {
    font-size: 20px;
    font-weight: 700;
}

.subtitulo {
    color: #888;
    font-size: 13px;
    margin-bottom: 16px;
}

/* Casas */
.casas-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

a.casa-card {
    background: #1A1A24;
    border: 1px solid #2A2A38;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: border-color 0.2s;
}

    a.casa-card:hover {
        border-color: #E8C84A;
    }

.casa-icon {
    width: 44px;
    height: 44px;
    background: rgba(232,200,74,0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.casa-nome {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
}

.casa-seta {
    color: #555566;
    font-size: 22px;
}

/* Secções */
.secao-label {
    color: #888;
    font-size: 11px;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin: 20px 0 12px;
}

/* Cards pequenos */
.cards-row {
    display: flex;
    gap: 12px;
    margin-bottom: 4px;
}

.small-card {
    flex: 1;
    background: #1A1A24;
    border: 1px solid #2A2A38;
    border-radius: 14px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.card-valor {
    font-size: 24px;
    font-weight: 700;
}

.card-label {
    font-size: 11px;
    color: #888;
    text-align: center;
}

.verde .card-valor {
    color: #4AE89E;
}

.vermelho .card-valor {
    color: #E84A4A;
}

.amarelo .card-valor {
    color: #E8C84A;
}

.azul .card-valor {
    color: #4A9EE8;
}

.rosa .card-valor {
    color: #E84A9E;
}

.roxo .card-valor {
    color: #9E4AE8;
}

.laranja .card-valor {
    color: #E8774A;
}

/* Cards grandes */
.big-card {
    width: 100%;
    background: #1A1A24;
    border: 1px solid #2A2A38;
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.big-card-label {
    color: #888;
    font-size: 14px;
}

.big-card-valor {
    font-size: 18px;
    font-weight: 700;
}

    .big-card-valor.grande {
        font-size: 22px;
    }

.verde-card .big-card-valor {
    color: #4AE89E;
}

.azul-card .big-card-valor {
    color: #4A9EE8;
}

.roxo-card .big-card-valor {
    color: #9E4AE8;
}

.cinzento-card .big-card-valor {
    color: #888;
}

.amarelo-card .big-card-valor {
    color: #E8C84A;
}

.destaque {
    background: rgba(232,200,74,0.08);
    border-color: rgba(232,200,74,0.4);
}

    .destaque .big-card-label {
        color: #E8C84A;
        font-weight: 700;
    }

/* Mesas */
.mesas-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.mesa-card {
    background: #0A0A0F;
    border: 1px solid #2A2A38;
    border-radius: 14px;
    overflow: hidden;
}

.mesa-header {
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 600;
}

    .mesa-header:hover {
        background: rgba(255,255,255,0.03);
    }

.mesa-total {
    color: #E8C84A;
}

.mesa-produtos {
    padding: 0 16px 12px;
}

.produto-linha {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-top: 1px solid #1A1A24;
    color: #888;
    font-size: 14px;
}

/* Estados */
.loading {
    text-align: center;
    color: #888;
    padding: 60px 0;
    font-size: 16px;
}

.erro {
    color: #E05C5C;
    font-size: 14px;
    text-align: center;
}

.erro-bloco {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

    .erro-bloco p {
        color: #E05C5C;
    }

.sem-sessao {
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sem-sessao-icon {
    font-size: 48px;
}

.sem-sessao h3 {
    font-size: 20px;
    font-weight: 700;
}

.sem-sessao p {
    color: #888;
    font-size: 14px;
}

@media (max-width: 400px) {
    .cards-row {
        gap: 8px;
    }

    .small-card {
        padding: 12px 8px;
    }

    .card-valor {
        font-size: 20px;
    }
}

/* Efeito de clique nos cards das mesas */
.mesa-header {
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 14px;
}

    .mesa-header:hover {
        background-color: rgba(232, 200, 74, 0.08);
    }

    .mesa-header:active {
        transform: scale(0.99);
    }

/* Estilos adicionais para a página de detalhe */
.mesa-card {
    margin-bottom: 20px;
}

.btn-fechar-mesa {
    background: #E84A4A;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 16px;
    transition: opacity 0.2s;
}

    .btn-fechar-mesa:hover {
        opacity: 0.9;
    }

    .btn-fechar-mesa:active {
        transform: scale(0.98);
    }

/* Estilos melhorados para produtos */
.mesa-produtos {
    padding: 0 16px 16px;
}

.produto-linha {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid #1A1A24;
    color: #888;
    font-size: 14px;
}

    .produto-linha:first-of-type {
        border-top: none;
    }

/* Botão Ver Mesas Centralizado */
.btn-mesas-central {
    background: linear-gradient(135deg, #E8C84A 0%, #D4B43A 100%);
    color: #0A0A0F;
    border: none;
    border-radius: 40px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 200, 74, 0.3);
    width: auto;
    min-width: 250px;
}

    .btn-mesas-central:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(232, 200, 74, 0.4);
        background: linear-gradient(135deg, #EED15A 0%, #E0C04A 100%);
    }

    .btn-mesas-central:active {
        transform: translateY(0px);
    }

/* ── Cartões discoteca ────────────────────────────────────── */
.cartao-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

    .cartao-header:hover {
        background: rgba(255,255,255,0.03);
    }

    .cartao-header.expandido {
        background: rgba(232,200,74,0.05);
    }

.cartao-header-esq {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cartao-header-dir {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cartao-numero {
    font-weight: 600;
    color: #fff;
    font-size: 15px;
}

.cartao-tipo {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.tipo-azul {
    background: rgba(74,158,232,0.15);
    color: #4A9EE8;
}

.tipo-rosa {
    background: rgba(232,74,158,0.15);
    color: #E84A9E;
}

.tipo-roxo {
    background: rgba(158,74,232,0.15);
    color: #9E4AE8;
}

.cartao-seta {
    color: #555566;
    font-size: 12px;
}

/* Cabeçalho das colunas dos produtos */
.produto-cabecalho {
    font-size: 11px !important;
    color: #555566 !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding-bottom: 4px;
    border-bottom: 1px solid #2A2A38;
    margin-bottom: 4px;
}

.produto-detalhe {
    color: #ccc !important;
}

.produto-total {
    color: #E8C84A !important;
    font-weight: 600;
}

/* Linha de produto com 4 colunas (cartões) */
.produto-detalhe.produto-linha {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 12px;
    text-align: right;
}

    .produto-detalhe.produto-linha span:first-child {
        text-align: left;
    }

    /* Linha de produto com 3 colunas (mesas) */
    .produto-cabecalho.produto-linha,
    .produto-detalhe.produto-linha:has(span:nth-child(3):last-child) {
        grid-template-columns: 1fr auto auto;
    }

/* Botão mesas centrado */
a.btn-mesas {
    display: block;
    text-align: center;
    text-decoration: none;
}

/* Adicionar ao fim do app.css existente */

/* ── Links de mesa/cartão ─────────────────────────────────── */
a.mesa-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

    a.mesa-card-link:hover .mesa-card {
        border-color: #E8C84A;
    }

/* ── Header dos cartões/mesas ─────────────────────────────── */
.cartao-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

.cartao-header-esq {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cartao-header-dir {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cartao-numero {
    font-weight: 600;
    color: #fff;
    font-size: 15px;
}

.cartao-tipo {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.tipo-azul {
    background: rgba(74,158,232,0.15);
    color: #4A9EE8;
}

.tipo-rosa {
    background: rgba(232,74,158,0.15);
    color: #E84A9E;
}

.tipo-roxo {
    background: rgba(158,74,232,0.15);
    color: #9E4AE8;
}

.cartao-seta {
    color: #E8C84A;
    font-size: 20px;
    font-weight: 300;
}

/* ── Botão mesas/cartões centrado ─────────────────────────── */
a.btn-mesas {
    display: block;
    text-align: center;
    text-decoration: none;
    margin: 8px 0 16px;
}

/* Estilos para cartões */
.cartao-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
}

.cartao-header-esq {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cartao-numero {
    font-weight: 600;
    font-size: 16px;
}

.cartao-header-dir {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cartao-seta {
    color: #E8C84A;
    font-size: 20px;
}

.tipo-azul {
    background: rgba(74, 158, 232, 0.15);
    color: #4A9EE8;
}

.tipo-rosa {
    background: rgba(232, 74, 158, 0.15);
    color: #E84A9E;
}

.tipo-roxo {
    background: rgba(158, 74, 232, 0.15);
    color: #9E4AE8;
}

.mesa-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

    .mesa-card-link:hover {
        text-decoration: none;
    }

/* Tabela de todas as casas */
.tabela-container {
    overflow-x: auto;
    margin-top: 16px;
    border-radius: 16px;
    border: 1px solid #2A2A38;
    background: #1A1A24;
}

.tabela-casas {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .tabela-casas th {
        background: #0A0A0F;
        padding: 14px 12px;
        text-align: left;
        color: #E8C84A;
        font-weight: 600;
        font-size: 12px;
        letter-spacing: 0.5px;
        border-bottom: 1px solid #2A2A38;
    }

    .tabela-casas td {
        padding: 12px;
        border-bottom: 1px solid #2A2A38;
        color: #ccc;
    }

    .tabela-casas tr:hover td {
        background: rgba(232, 200, 74, 0.05);
    }

.sessao-fechada td {
    opacity: 0.6;
    background: rgba(0, 0, 0, 0.3);
}

.total-row td {
    background: #0A0A0F;
    border-top: 2px solid #E8C84A;
    font-weight: bold;
    color: #fff;
}

.texto-centro {
    text-align: center;
}

.texto-direita {
    text-align: right;
}

.texto-azul {
    color: #4A9EE8;
}

.texto-rosa {
    color: #E84A9E;
}

.texto-amarelo {
    color: #E8C84A;
}

.casa-nome-tabela {
    font-weight: 600;
    color: #fff;
}

.btn-ver-cartoes {
    background: rgba(232, 200, 74, 0.15);
    color: #E8C84A;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

    .btn-ver-cartoes:hover {
        background: rgba(232, 200, 74, 0.3);
        text-decoration: none;
    }

.btn-todas {
    background: rgba(232, 200, 74, 0.15);
    color: #E8C84A;
    border: 1px solid #E8C84A;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

    .btn-todas:hover {
        background: rgba(232, 200, 74, 0.3);
        text-decoration: none;
    }

/* ── Todas as discotecas ──────────────────────────────────── */
.todas-card {
    background: #1A1A24;
    border: 1px solid #2A2A38;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}

.todas-card-fechada {
    opacity: 0.5;
    border-color: #1A1A24;
}

.todas-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.todas-card-titulo {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.todas-casa-nome {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.badge-aberta {
    font-size: 11px;
    color: #4AE89E;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge-fechada {
    font-size: 11px;
    color: #555566;
    font-weight: 600;
}

.todas-card-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.todas-total-valor {
    font-size: 20px;
    font-weight: 700;
    color: #E8C84A;
}

.btn-ver-mini {
    background: rgba(232,200,74,0.12);
    border: 1px solid rgba(232,200,74,0.3);
    border-radius: 8px;
    color: #E8C84A;
    padding: 4px 10px;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}

    .btn-ver-mini:hover {
        background: rgba(232,200,74,0.2);
    }

.todas-stats-row {
    display: flex;
    gap: 0;
    justify-content: space-between;
}

.todas-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 2px;
}

.todas-stat-val {
    font-size: 16px;
    font-weight: 700;
}

.todas-stat-label {
    font-size: 10px;
    color: #555566;
    text-align: center;
}

.verde-txt {
    color: #4AE89E;
}

.vermelho-txt {
    color: #E84A4A;
}

.azul-txt {
    color: #4A9EE8;
}

.rosa-txt {
    color: #E84A9E;
}

.roxo-txt {
    color: #9E4AE8;
}

.laranja-txt {
    color: #E8774A;
}

.branco-txt {
    color: #fff;
}

/* Barra de género */
.barra-genero {
    display: flex;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background: #0A0A0F;
}

.barra-segmento {
    height: 100%;
}

.barra-homens {
    background: #4A9EE8;
}

.barra-ladies {
    background: #E84A9E;
}

.barra-gorjas {
    background: #9E4AE8;
}

.barra-legenda {
    display: flex;
    gap: 12px;
    font-size: 11px;
    margin-top: 4px;
    justify-content: flex-end;
}

/* Botão todas nas casas */
.btn-todas {
    background: rgba(232,200,74,0.12);
    border: 1px solid rgba(232,200,74,0.3);
    border-radius: 8px;
    color: #E8C84A;
    padding: 8px 14px;
    font-size: 13px;
    text-decoration: none;
}

    .btn-todas:hover {
        background: rgba(232,200,74,0.2);
    }

/* Select de vista */
.select-vista {
    background: #1A1A24;
    border: 1px solid #2A2A38;
    border-radius: 8px;
    padding: 8px 12px;
    color: #E8C84A;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

    .select-vista:hover {
        border-color: #E8C84A;
    }


/* Select de vista */
.select-vista {
    background: #1A1A24;
    border: 1px solid #2A2A38;
    border-radius: 8px;
    padding: 8px 12px;
    color: #E8C84A;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

    .select-vista:hover {
        border-color: #E8C84A;
    }

/* Cards */
.todas-card {
    background: #1A1A24;
    border: 1px solid #2A2A38;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}

.todas-card-fechada {
    opacity: 0.5;
    border-color: #1A1A24;
}

.todas-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.todas-card-titulo {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.todas-casa-nome {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.badge-aberta {
    font-size: 11px;
    color: #4AE89E;
    font-weight: 600;
}

.badge-fechada {
    font-size: 11px;
    color: #555566;
    font-weight: 600;
}

.todas-card-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.todas-total-valor {
    font-size: 20px;
    font-weight: 700;
    color: #E8C84A;
}

.btn-ver-mini {
    background: rgba(232,200,74,0.12);
    border: 1px solid rgba(232,200,74,0.3);
    border-radius: 8px;
    color: #E8C84A;
    padding: 4px 10px;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}

    .btn-ver-mini:hover {
        background: rgba(232,200,74,0.2);
    }

.todas-stats-row {
    display: flex;
    gap: 0;
    justify-content: space-between;
}

.todas-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 2px;
}

.todas-stat-val {
    font-size: 14px;
    font-weight: 700;
}

.todas-stat-label {
    font-size: 10px;
    color: #555566;
    text-align: center;
}

/* Cores */
.verde-txt {
    color: #4AE89E;
}

.vermelho-txt {
    color: #E84A4A;
}

.azul-txt {
    color: #4A9EE8;
}

.rosa-txt {
    color: #E84A9E;
}

.roxo-txt {
    color: #9E4AE8;
}

.laranja-txt {
    color: #E8774A;
}

.branco-txt {
    color: #fff;
}

/* Barra de género */
.barra-genero {
    display: flex;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background: #0A0A0F;
}

.barra-segmento {
    height: 100%;
}

.barra-homens {
    background: #4A9EE8;
}

.barra-ladies {
    background: #E84A9E;
}

.barra-gorjas {
    background: #9E4AE8;
}

.barra-legenda {
    display: flex;
    gap: 12px;
    font-size: 11px;
    margin-top: 4px;
    justify-content: flex-end;
}

/* Tabela */
.tabela-container {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #2A2A38;
    background: #1A1A24;
}

.tabela-casas {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .tabela-casas th {
        background: #0A0A0F;
        padding: 12px;
        text-align: left;
        color: #E8C84A;
        font-weight: 600;
        border-bottom: 1px solid #2A2A38;
    }

    .tabela-casas td {
        padding: 10px 12px;
        border-bottom: 1px solid #2A2A38;
        color: #ccc;
    }

.sessao-fechada td {
    opacity: 0.6;
    background: rgba(0,0,0,0.3);
}

.total-row td {
    background: #0A0A0F;
    border-top: 2px solid #E8C84A;
    font-weight: bold;
    color: #fff;
}

.texto-centro {
    text-align: center;
}

.texto-direita {
    text-align: right;
}

.casa-nome-tabela {
    font-weight: 600;
    color: #fff;
}

.texto-amarelo {
    color: #E8C84A;
}

/* Select de vista */
.select-vista {
    background: #1A1A24;
    border: 1px solid #2A2A38;
    border-radius: 8px;
    padding: 8px 12px;
    color: #E8C84A;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

    .select-vista:hover {
        border-color: #E8C84A;
    }

/* Cards */
.todas-card {
    background: #1A1A24;
    border: 1px solid #2A2A38;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}

.todas-card-fechada {
    opacity: 0.5;
    border-color: #1A1A24;
}

.todas-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.todas-card-titulo {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.todas-casa-nome {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.badge-aberta {
    font-size: 11px;
    color: #4AE89E;
    font-weight: 600;
}

.badge-fechada {
    font-size: 11px;
    color: #555566;
    font-weight: 600;
}

.todas-card-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.todas-total-valor {
    font-size: 20px;
    font-weight: 700;
    color: #E8C84A;
}

.btn-ver-mini {
    background: rgba(232,200,74,0.12);
    border: 1px solid rgba(232,200,74,0.3);
    border-radius: 8px;
    color: #E8C84A;
    padding: 4px 10px;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}

    .btn-ver-mini:hover {
        background: rgba(232,200,74,0.2);
    }

.todas-stats-row {
    display: flex;
    gap: 0;
    justify-content: space-between;
}

.todas-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 2px;
}

.todas-stat-val {
    font-size: 14px;
    font-weight: 700;
}

.todas-stat-label {
    font-size: 10px;
    color: #555566;
    text-align: center;
}

/* Cores */
.verde-txt {
    color: #4AE89E;
}

.vermelho-txt {
    color: #E84A4A;
}

.azul-txt {
    color: #4A9EE8;
}

.rosa-txt {
    color: #E84A9E;
}

.roxo-txt {
    color: #9E4AE8;
}

.branco-txt {
    color: #fff;
}

/* Barra de género */
.barra-genero {
    display: flex;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background: #0A0A0F;
}

.barra-segmento {
    height: 100%;
}

.barra-homens {
    background: #4A9EE8;
}

.barra-ladies {
    background: #E84A9E;
}

.barra-gorjas {
    background: #9E4AE8;
}

.barra-legenda {
    display: flex;
    gap: 12px;
    font-size: 11px;
    margin-top: 4px;
    justify-content: flex-end;
}

/* Tabela */
.tabela-container {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #2A2A38;
    background: #1A1A24;
}

.tabela-casas {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .tabela-casas th {
        background: #0A0A0F;
        padding: 12px;
        text-align: left;
        color: #E8C84A;
        font-weight: 600;
        border-bottom: 1px solid #2A2A38;
    }

    .tabela-casas td {
        padding: 10px 12px;
        border-bottom: 1px solid #2A2A38;
        color: #ccc;
    }

.sessao-fechada td {
    opacity: 0.6;
    background: rgba(0,0,0,0.3);
}

.total-row td {
    background: #0A0A0F;
    border-top: 2px solid #E8C84A;
    font-weight: bold;
    color: #fff;
}

.texto-centro {
    text-align: center;
}

.texto-direita {
    text-align: right;
}

.casa-nome-tabela {
    font-weight: 600;
    color: #fff;
}

.texto-amarelo {
    color: #E8C84A;
}

/* Select de vista */
.select-vista {
    background: #1A1A24;
    border: 1px solid #2A2A38;
    border-radius: 8px;
    padding: 8px 12px;
    color: #E8C84A;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

    .select-vista:hover {
        border-color: #E8C84A;
    }

/* Tabela */
.tabela-container {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #2A2A38;
    background: #1A1A24;
}

.tabela-casas {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .tabela-casas th {
        background: #0A0A0F;
        padding: 12px;
        text-align: left;
        color: #E8C84A;
        font-weight: 600;
        border-bottom: 1px solid #2A2A38;
    }

    .tabela-casas td {
        padding: 10px 12px;
        border-bottom: 1px solid #2A2A38;
        color: #ccc;
    }

.sessao-fechada td {
    opacity: 0.6;
    background: rgba(0,0,0,0.3);
}

.total-row td {
    background: #0A0A0F;
    border-top: 2px solid #E8C84A;
    font-weight: bold;
    color: #fff;
}

.texto-centro {
    text-align: center;
}

.texto-direita {
    text-align: right;
}

.casa-nome-tabela {
    font-weight: 600;
    color: #fff;
}

.texto-amarelo {
    color: #E8C84A;
}

.btn-alternar {
    background: rgba(232,200,74,0.12);
    border: 1px solid rgba(232,200,74,0.3);
    border-radius: 8px;
    color: #E8C84A;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
}

    .btn-alternar:hover {
        background: rgba(232,200,74,0.2);
    }

.btn-alternar {
    background: rgba(232,200,74,0.12);
    border: 1px solid rgba(232,200,74,0.3);
    border-radius: 8px;
    color: #E8C84A;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
}

    .btn-alternar:hover {
        background: rgba(232,200,74,0.2);
    }

.btn-alternar {
    background: rgba(232,200,74,0.12);
    border: 1px solid rgba(232,200,74,0.3);
    border-radius: 8px;
    color: #E8C84A;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
}

    .btn-alternar:hover {
        background: rgba(232,200,74,0.2);
    }

    .btn-alternar.ativo {
        background: rgba(232,200,74,0.3);
        border-color: #E8C84A;
        font-weight: bold;
    }

.select-vista {
    background: #1A1A24;
    border: 1px solid #2A2A38;
    border-radius: 8px;
    padding: 8px 12px;
    color: #E8C84A;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

    .select-vista:hover {
        border-color: #E8C84A;
    }

.btn-alternar {
    background: rgba(232,200,74,0.12);
    border: 1px solid rgba(232,200,74,0.3);
    border-radius: 8px;
    color: #E8C84A;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

    .btn-alternar:hover {
        background: rgba(232,200,74,0.2);
    }

    .btn-alternar.ativo {
        background: rgba(232,200,74,0.3);
        border-color: #E8C84A;
        font-weight: bold;
    }

.tabela-container {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #2A2A38;
    background: #1A1A24;
}

.tabela-casas {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .tabela-casas th {
        background: #0A0A0F;
        padding: 12px;
        text-align: left;
        color: #E8C84A;
        font-weight: 600;
        border-bottom: 1px solid #2A2A38;
    }

    .tabela-casas td {
        padding: 10px 12px;
        border-bottom: 1px solid #2A2A38;
        color: #ccc;
    }

.sessao-fechada td {
    opacity: 0.6;
    background: rgba(0,0,0,0.3);
}

.total-row td {
    background: #0A0A0F;
    border-top: 2px solid #E8C84A;
    font-weight: bold;
    color: #fff;
}

.texto-centro {
    text-align: center;
}

.texto-direita {
    text-align: right;
}

.casa-nome-tabela {
    font-weight: 600;
    color: #fff;
}

.todas-card {
    background: #1A1A24;
    border: 1px solid #2A2A38;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}

.todas-card-fechada {
    opacity: 0.5;
    border-color: #1A1A24;
}

.todas-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.todas-card-titulo {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.todas-casa-nome {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.badge-aberta {
    font-size: 11px;
    color: #4AE89E;
    font-weight: 600;
}

.badge-fechada {
    font-size: 11px;
    color: #555566;
    font-weight: 600;
}

.todas-card-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.todas-total-valor {
    font-size: 20px;
    font-weight: 700;
    color: #E8C84A;
}

.btn-ver-mini {
    background: rgba(232,200,74,0.12);
    border: 1px solid rgba(232,200,74,0.3);
    border-radius: 8px;
    color: #E8C84A;
    padding: 4px 10px;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}

    .btn-ver-mini:hover {
        background: rgba(232,200,74,0.2);
    }

.todas-stats-row {
    display: flex;
    gap: 0;
    justify-content: space-between;
    margin-top: 8px;
}

.todas-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 2px;
}

.todas-stat-val {
    font-size: 14px;
    font-weight: 700;
}

.todas-stat-label {
    font-size: 10px;
    color: #555566;
    text-align: center;
}

.verde-txt {
    color: #4AE89E;
}

.vermelho-txt {
    color: #E84A4A;
}

.azul-txt {
    color: #4A9EE8;
}

.rosa-txt {
    color: #E84A9E;
}

.roxo-txt {
    color: #9E4AE8;
}

.laranja-txt {
    color: #E8774A;
}

.branco-txt {
    color: #fff;
}

.barra-genero {
    display: flex;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background: #0A0A0F;
    margin-top: 10px;
}

.barra-homens {
    background: #4A9EE8;
}

.barra-ladies {
    background: #E84A9E;
}

.btn-todas {
    background: rgba(232,200,74,0.12);
    border: 1px solid rgba(232,200,74,0.3);
    border-radius: 8px;
    color: #E8C84A;
    padding: 8px 14px;
    font-size: 13px;
    text-decoration: none;
}

/* Responsividade para tabelas de produtos */
@media (max-width: 700px) {
    .produtos-grid {
        font-size: 11px;
    }

    .produtos-grid {
        grid-template-columns: 1fr 0.8fr 0.8fr 1fr 1fr !important;
        gap: 4px !important;
    }
}

.texto-centro {
    text-align: center;
}

.texto-direita {
    text-align: right;
}

/* Pagamentos grid */
.pagamentos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.pagamento-card {
    flex: 1;
    min-width: 120px;
    background: #1A1A24;
    border: 1px solid #2A2A38;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.pagamento-metodo {
    font-size: 12px;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pagamento-valor {
    font-size: 18px;
    font-weight: 700;
}

.pagamento-card.verde-card .pagamento-valor {
    color: #4AE89E;
}

.pagamento-card.azul-card .pagamento-valor {
    color: #4A9EE8;
}

.pagamento-card.roxo-card .pagamento-valor {
    color: #9E4AE8;
}

.pagamento-card.cinzento-card .pagamento-valor {
    color: #888;
}

@media (max-width: 500px) {
    .pagamentos-grid {
        flex-direction: column;
    }

    .pagamento-card {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Pagamentos grid para Discoteca */
.pagamentos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.pagamento-card {
    flex: 1;
    min-width: 120px;
    background: #1A1A24;
    border: 1px solid #2A2A38;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

    .pagamento-card:hover {
        border-color: #E8C84A;
        transform: translateY(-2px);
    }

.pagamento-metodo {
    font-size: 12px;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pagamento-valor {
    font-size: 18px;
    font-weight: 700;
}

/* Cores dos cards de pagamento */
.pagamento-card.verde-card {
    background: rgba(74, 232, 158, 0.08);
    border-color: rgba(74, 232, 158, 0.3);
}

    .pagamento-card.verde-card .pagamento-valor {
        color: #4AE89E;
    }

.pagamento-card.azul-card {
    background: rgba(74, 158, 232, 0.08);
    border-color: rgba(74, 158, 232, 0.3);
}

    .pagamento-card.azul-card .pagamento-valor {
        color: #4A9EE8;
    }

.pagamento-card.roxo-card {
    background: rgba(158, 74, 232, 0.08);
    border-color: rgba(158, 74, 232, 0.3);
}

    .pagamento-card.roxo-card .pagamento-valor {
        color: #9E4AE8;
    }

.pagamento-card.laranja-card {
    background: rgba(232, 119, 74, 0.08);
    border-color: rgba(232, 119, 74, 0.3);
}

    .pagamento-card.laranja-card .pagamento-valor {
        color: #E8774A;
    }

.pagamento-card.cinzento-card {
    background: rgba(136, 136, 136, 0.08);
    border-color: rgba(136, 136, 136, 0.3);
}

    .pagamento-card.cinzento-card .pagamento-valor {
        color: #888;
    }

/* Responsividade */
@media (max-width: 500px) {
    .pagamentos-grid {
        flex-direction: column;
    }

    .pagamento-card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .pagamento-metodo {
        font-size: 13px;
    }

    .pagamento-valor {
        font-size: 16px;
    }
}

.big-card.verde-card {
    margin-top: 5px;
}

/* NavMenu */
.navbar-toggler {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

    .navbar-toggler .navbar-toggler-icon {
        display: inline-block;
        width: 1.5em;
        height: 1.5em;
        vertical-align: middle;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 100%;
    }

.nav-scrollable {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 280px;
    background: #0A0A0F;
    border-right: 1px solid #2A2A38;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
    transform: translateX(-100%);
}

    .nav-scrollable.show {
        transform: translateX(0);
    }

@media (min-width: 768px) {
    .nav-scrollable {
        transform: translateX(0);
    }
}

.nav-section {
    color: #888;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 16px 20px 8px;
    border-bottom: 1px solid #2A2A38;
    margin-bottom: 8px;
}

.nav-icon {
    margin-right: 10px;
    font-size: 18px;
}

.nav-item {
    padding: 4px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #888;
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
    cursor: pointer;
}

    .nav-link:hover {
        background: rgba(255,255,255,0.05);
        color: #fff;
    }

    .nav-link.active {
        background: rgba(232,200,74,0.12);
        color: #E8C84A;
    }

/* Para mobile - esconder menu quando fechado */
@media (max-width: 767.98px) {
    .nav-scrollable:not(.show) {
        display: none;
    }
}


/* ── ADMIN ── */
.admin-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #2A2A38;
    margin-bottom: 20px;
    overflow-x: auto;
    flex-wrap: wrap;
    width: 100%;
}

.admin-tab {
    background: transparent;
    border: none;
    padding: 12px 24px;
    color: #888;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    text-decoration: none;
    display: inline-block;
}

    .admin-tab:hover {
        color: #fff;
        background: rgba(255,255,255,0.03);
        text-decoration: none;
    }

    .admin-tab.active {
        color: #E8C84A;
        border-bottom-color: #E8C84A;
    }

.badge-ativo {
    background: rgba(74,232,158,0.2);
    color: #4AE89E;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.badge-inativo {
    background: rgba(232,74,74,0.2);
    color: #E84A4A;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.btn-acao {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
    display: inline-block;
    text-decoration: none;
}

.btn-editar {
    color: #4A9EE8;
}

.btn-eliminar {
    color: #E84A4A;
}

    .btn-editar:hover, .btn-eliminar:hover {
        opacity: 0.7;
    }

/* Modal Admin */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-card {
    background: #1A1A24;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #2A2A38;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #2A2A38;
}

    .modal-header h3 {
        margin: 0;
    }

.modal-fechar {
    background: transparent;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    text-decoration: none;
}

    .modal-fechar:hover {
        color: #fff;
    }

.modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #2A2A38;
    display: flex;
    justify-content: flex-end;
}

.mensagem-erro {
    background: rgba(232,74,74,0.15);
    border: 1px solid #E84A4A;
    color: #E84A4A;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.mensagem-sucesso {
    background: rgba(74,232,158,0.15);
    border: 1px solid #4AE89E;
    color: #4AE89E;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* Responsividade Admin */
@media (max-width: 700px) {
    .admin-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .admin-tab {
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    .modal-card {
        max-width: 95%;
    }
}

/* ── ADMIN ── */
.btn-acao {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
    display: inline-block;
    text-decoration: none;
}

.btn-editar {
    color: #4A9EE8;
}

.btn-eliminar {
    color: #E84A4A;
}

    .btn-editar:hover, .btn-eliminar:hover {
        opacity: 0.7;
    }

.badge-ativo {
    background: rgba(74,232,158,0.2);
    color: #4AE89E;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.badge-inativo {
    background: rgba(232,74,74,0.2);
    color: #E84A4A;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-card {
    background: #1A1A24;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #2A2A38;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #2A2A38;
}

    .modal-header h3 {
        margin: 0;
    }

.modal-fechar {
    background: transparent;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    text-decoration: none;
}

    .modal-fechar:hover {
        color: #fff;
    }

.modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #2A2A38;
    display: flex;
    justify-content: flex-end;
}

.mensagem-erro {
    background: rgba(232,74,74,0.15);
    border: 1px solid #E84A4A;
    color: #E84A4A;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.mensagem-sucesso {
    background: rgba(74,232,158,0.15);
    border: 1px solid #4AE89E;
    color: #4AE89E;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}