:root {
    --bg: #0d1411;
    --panel: #ffffff;
    --text: #17211f;
    --muted: #66736f;
    --line: #dfe7e4;
    --primary: #16a34a;
    --primary-dark: #0f7a37;
    --accent: #f8d34a;
    --danger: #b42318;
    --shadow: 0 18px 45px rgba(4, 9, 7, .16);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Rubik, Arial, sans-serif;
    color: var(--text);
    background: #eef5f3;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
}

.site-top {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px max(18px, calc((100vw - 1120px) / 2));
    background: rgba(13, 20, 17, .94);
    color: #fff;
    backdrop-filter: blur(12px);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
}

.site-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.site-top nav,
.site-footer,
.client-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.site-top nav a,
.client-nav a {
    padding: 8px 10px;
    border-radius: 8px;
    color: #e9f4f2;
    font-size: 14px;
    font-weight: 700;
}

.site-top nav a:hover,
.client-nav a {
    background: rgba(255, 255, 255, .1);
}

.site-top nav .manager-link {
    background: var(--accent);
    color: #101713;
}

.site-main {
    width: min(1120px, calc(100vw - 28px));
    margin: 0 auto;
    padding: 18px 0 36px;
}

.hero {
    min-height: 430px;
    display: grid;
    align-content: end;
    gap: 18px;
    padding: 34px;
    border-radius: 0 0 14px 14px;
    color: #fff;
    background:
        radial-gradient(circle at 86% 18%, rgba(248, 211, 74, .42), transparent 24%),
        linear-gradient(135deg, #0d1411 0%, #17351f 58%, #0f7a37 100%);
    box-shadow: var(--shadow);
}

.hero h1,
.panel h1,
.panel h2,
.card h3,
.metric strong {
    font-family: Rajdhani, Rubik, Arial, sans-serif;
    letter-spacing: 0;
}

.hero h1 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(42px, 7vw, 74px);
    line-height: .95;
}

.hero p {
    max-width: 640px;
    margin: 0;
    color: #d7e7e3;
    font-size: 18px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.btn-light {
    background: #fff;
    color: #101713;
}

.btn-full {
    width: 100%;
}

.panel {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 12px 30px rgba(4, 9, 7, .08);
}

.panel h1,
.panel h2 {
    margin: 0 0 14px;
}

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

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

.card,
.metric {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.metric span,
.muted {
    color: var(--muted);
}

.metric strong {
    display: block;
    margin-top: 6px;
    font-size: 34px;
}

.winner-photo,
.prize-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    background: #e5e7eb;
}

.prize-photo {
    object-fit: contain;
    padding: 12px;
}

.steps {
    counter-reset: step;
}

.step {
    position: relative;
    padding-left: 52px;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 16px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #101713;
    font-weight: 800;
}

.form {
    display: grid;
    gap: 12px;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.status {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #ecfccb;
    color: #365314;
    font-size: 12px;
    font-weight: 800;
}

.status-pendente {
    background: #ffedd5;
    color: #c2410c;
}

.status-gerada {
    background: #f1f5f9;
    color: #334155;
}

.status-enviada {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-aberta {
    background: #ccfbf1;
    color: #0f766e;
}

.status-raspada {
    background: #ede9fe;
    color: #6d28d9;
}

.status-retirado,
.status-premio-retirado,
.status-premiada {
    background: #dcfce7;
    color: #15803d;
}

.status-nao-premiada,
.status-expirada {
    background: #f1f5f9;
    color: #64748b;
}

.status-erro-envio,
.status-cancelado,
.status-desclassificado {
    background: #fee2e2;
    color: #b91c1c;
}

.site-alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #e0f2fe;
    color: #075985;
}

.site-alert-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.site-alert-success {
    background: #dcfce7;
    color: #15803d;
}

.client-nav {
    margin-top: 18px;
    padding: 10px;
    border-radius: 8px;
    background: #101713;
}

.qr-box {
    display: grid;
    place-items: center;
    gap: 10px;
    width: min(280px, 100%);
    margin: 12px auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #101713;
    font-weight: 800;
    text-align: center;
}

.qr-image {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 4px;
}

.site-footer {
    justify-content: center;
    padding: 24px;
    color: #d7e7e3;
    background: #0d1411;
}

.site-footer a {
    color: #fff;
}

@media (max-width: 820px) {
    .site-top {
        align-items: flex-start;
        flex-direction: column;
    }
    .hero {
        min-height: 360px;
        padding: 24px;
    }
    .grid,
    .cards-3 {
        grid-template-columns: 1fr;
    }
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
