* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(180deg, #2d1b0e 0%, #5c3a1e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow-x: hidden;
}

.bandeirinhas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    z-index: 0;
}

.bandeirinhas span {
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 26px solid;
    margin-top: -2px;
    opacity: 0.95;
}

.bandeirinhas span:nth-child(1) { border-top-color: #e63946; }
.bandeirinhas span:nth-child(2) { border-top-color: #f1c40f; }
.bandeirinhas span:nth-child(3) { border-top-color: #2a9d8f; }
.bandeirinhas span:nth-child(4) { border-top-color: #f4a259; }
.bandeirinhas span:nth-child(5) { border-top-color: #e63946; }
.bandeirinhas span:nth-child(6) { border-top-color: #2a9d8f; }
.bandeirinhas span:nth-child(7) { border-top-color: #f1c40f; }

.card {
    background: #fff8e7;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    max-width: 420px;
    width: 100%;
    padding: 32px 28px;
    position: relative;
    z-index: 1;
    border: 4px dashed #e63946;
}

.card h1 {
    text-align: center;
    color: #b5651d;
    margin: 0 0 4px;
    font-size: 1.7rem;
}

.card .subtitle {
    text-align: center;
    color: #6b4226;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.emoji-fire {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 4px;
}

label {
    display: block;
    margin-top: 14px;
    margin-bottom: 4px;
    color: #5c3a1e;
    font-weight: 600;
    font-size: 0.9rem;
}

input[type=text], input[type=tel], input[type=password] {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 2px solid #f1c40f;
    font-size: 1rem;
    background: #fffdf6;
}

input:focus { outline: none; border-color: #e63946; }

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.82rem;
    color: #5c3a1e;
}

.checkbox-row input { margin-top: 3px; }

button {
    width: 100%;
    margin-top: 22px;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: #e63946;
    color: #fff8e7;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
}

button:hover { background: #c1121f; }

.erro {
    background: #fdecea;
    border: 1px solid #e63946;
    color: #b00020;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.88rem;
}

.sucesso {
    text-align: center;
    color: #2a9d8f;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 30px 0;
}

.rodape {
    margin-top: 18px;
    text-align: center;
    font-size: 0.75rem;
    color: #8a6240;
}

/* Dashboard */
.dash-body {
    background: #f4f1ea;
    display: block;
    padding: 0;
}

.topbar {
    background: #b5651d;
    color: #fff;
    padding: 16px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar a {
    color: #fff;
    text-decoration: none;
    background: rgba(0,0,0,0.2);
    padding: 8px 14px;
    border-radius: 8px;
}

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

.cards-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-top: 4px solid #e63946;
}

.stat-card .num { font-size: 2rem; font-weight: 800; color: #b5651d; }
.stat-card .lbl { color: #6b4226; font-size: 0.85rem; }

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

th, td { padding: 10px 12px; text-align: left; font-size: 0.87rem; border-bottom: 1px solid #eee; }
th { background: #f1c40f; color: #5c3a1e; }
tr:hover { background: #fff8e7; }

.btn-export {
    display: inline-block;
    margin-bottom: 14px;
    background: #2a9d8f;
    color: #fff;
    padding: 9px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}
