/* ==========================================================================
   Studio VT Hair — tema escuro com dourado metálico
   ========================================================================== */

:root {
    --dourado: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
    --amarelo: #f1c40f;
    --fundo: #0f0f12;
    --cartao: rgba(22, 22, 28, 0.95);
    --campo: #121216;
    --borda: #3d3d4a;
    --texto: #f1f1f1;
    --texto-suave: #a8a8b3;
    --perigo: #dc3545;
    --sucesso: #25d366;
}

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

body {
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--texto);
    background:
        linear-gradient(rgba(15, 15, 18, 0.88), rgba(15, 15, 18, 0.92)),
        url('../img/fundo.jpg') center / cover no-repeat fixed,
        var(--fundo);
    display: flex;
    justify-content: center;
    padding: 24px 16px;
}

.pagina {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
    max-width: 520px;
}

body.body--largo .pagina {
    max-width: 900px;
}

/* --- Marca ---------------------------------------------------------------- */

.marca {
    text-align: center;
}

.marca__logo {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--amarelo);
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.55);
    transition: transform 0.3s ease;
}

.marca__logo:hover {
    transform: scale(1.04);
}

.marca__nome {
    margin-top: 10px;
    font-size: 26px;
    letter-spacing: 0.5px;
}

.marca__subtitulo {
    color: var(--texto-suave);
    font-size: 14px;
}

/* --- Dourado cintilante --------------------------------------------------- */

@keyframes brilho-dourado {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.dourado {
    background: var(--dourado);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: brilho-dourado 4s ease infinite;
    font-weight: bold;
}

@media (prefers-reduced-motion: reduce) {
    .dourado,
    .botao--dourado {
        animation: none;
    }
}

/* --- Cartão --------------------------------------------------------------- */

.cartao {
    width: 100%;
    background: var(--cartao);
    padding: 28px;
    border-radius: 16px;
    border: 1px solid rgba(241, 196, 15, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
}

.cartao--estreito {
    max-width: 420px;
    margin: 0 auto;
}

.cartao h2 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 18px;
}

.cartao h3 {
    font-size: 16px;
    margin: 26px 0 12px;
}

/* --- Formulários ---------------------------------------------------------- */

label {
    display: block;
    margin: 15px 0 5px;
    color: #d1d1d1;
    font-weight: 600;
    font-size: 14px;
}

label.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

label.checkbox input {
    width: auto;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--campo);
    border: 1px solid var(--borda);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #fff;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}

input:focus,
select:focus {
    border-color: var(--amarelo);
    box-shadow: 0 0 8px rgba(241, 196, 15, 0.4);
}

/* --- Botões --------------------------------------------------------------- */

.botao {
    display: inline-block;
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.25s, transform 0.25s;
}

.botao:hover:not(:disabled) {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.botao:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(80%);
    transform: none;
}

.botao--dourado {
    background: var(--dourado);
    background-size: 200% auto;
    animation: brilho-dourado 4s ease infinite;
    color: #121216;
    box-shadow: 0 4px 15px rgba(179, 135, 40, 0.4);
}

.botao--neutro {
    background-color: #333342;
    color: #eee;
}

.botao--perigo {
    background-color: var(--perigo);
    color: #fff;
}

.botao--whatsapp {
    background-color: var(--sucesso);
    color: #fff;
}

.botao--cancelar {
    background-color: rgba(220, 53, 69, 0.18);
    color: #ff6b6b;
    border: 1px solid var(--perigo);
}

.botao--cancelar:hover {
    background-color: var(--perigo);
    color: #fff;
}

.botao--pequeno {
    width: auto;
    margin-top: 0;
    padding: 8px 12px;
    font-size: 13px;
}

/* --- Grade de horários ---------------------------------------------------- */

.grade-horarios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.horario {
    padding: 10px;
    background-color: var(--campo);
    color: var(--texto);
    border: 1px solid var(--borda);
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.horario:hover:not(:disabled) {
    border-color: var(--amarelo);
    color: var(--amarelo);
    box-shadow: 0 0 8px rgba(241, 196, 15, 0.3);
}

.horario[aria-pressed="true"] {
    background: var(--dourado);
    background-size: 200% auto;
    color: #121216;
    border-color: var(--amarelo);
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.6);
}

.horario:disabled {
    background-color: rgba(255, 255, 255, 0.05);
    color: #555566;
    border-color: #2a2a35;
    cursor: not-allowed;
    opacity: 0.5;
}

/* --- Avisos --------------------------------------------------------------- */

.aviso {
    margin: 16px 0;
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.aviso ul {
    padding-left: 18px;
}

.aviso--sucesso {
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.5);
}

.aviso--erro {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #ffb3b3;
}

.aviso__detalhe {
    margin-top: 6px;
    color: var(--texto-suave);
}

.nota {
    color: var(--texto-suave);
    font-size: 13px;
    margin-top: 6px;
}

.nota--destaque {
    margin: 12px 0;
    text-transform: capitalize;
}

/* --- Painel --------------------------------------------------------------- */

.topo {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid #333342;
}

.topo h2 {
    text-align: left;
    margin-bottom: 0;
}

.topo__acoes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.topo__acoes form {
    display: inline;
}

.filtro {
    margin-top: 18px;
}

.filtro__linha {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.filtro__linha input[type="date"] {
    width: auto;
    flex: 1 1 170px;
}

.agendamento {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--sucesso);
    border-radius: 8px;
}

.agendamento--bloqueio {
    border-left-color: var(--perigo);
}

.agendamento--cancelado {
    border-left-color: #555566;
    opacity: 0.75;
}

.agendamento__info {
    flex: 1 1 240px;
    font-size: 14px;
    line-height: 1.6;
}

.agendamento__servico {
    color: var(--texto-suave);
}

/* --- Tabela --------------------------------------------------------------- */

.tabela {
    width: 100%;
    margin-top: 16px;
    border-collapse: collapse;
    font-size: 14px;
}

.tabela th,
.tabela td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #2a2a35;
}

.tabela th {
    color: var(--texto-suave);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tabela__acao {
    text-align: right;
}

.colunas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 10px;
}

/* --- Modais --------------------------------------------------------------- */

.modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal[hidden] {
    display: none;
}

.modal__caixa {
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    background: #16161c;
    border: 1px solid rgba(241, 196, 15, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.modal__caixa h3 {
    margin: 0 0 14px;
    text-align: center;
}

.modal__par {
    display: flex;
    gap: 10px;
}

.modal__par > div {
    flex: 1;
}

.modal__botoes {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.modal__botoes .botao {
    flex: 1;
    margin-top: 0;
}

/* --- Rodapé --------------------------------------------------------------- */

.rodape {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--texto-suave);
    font-size: 12px;
}

.rodape a {
    color: var(--texto-suave);
}

/* --- Responsivo ----------------------------------------------------------- */

@media (max-width: 480px) {
    .cartao {
        padding: 20px;
    }

    .grade-horarios {
        grid-template-columns: repeat(2, 1fr);
    }

    .topo,
    .topo__acoes {
        width: 100%;
    }

    .topo__acoes .botao {
        flex: 1 1 auto;
    }
}
