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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #020B1F;
    color: white;
    min-height: 100vh;
}

/* =========================
   CABEÇALHO
========================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 11, 31, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    height: 85px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-mark {
    width: 145px;
    font-size: 24px;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
}

.brand-mark span {
    color: #FF8A00;
}

/* =========================
   CONTEÚDO
========================= */

.container {
    width: min(100% - 40px, 1200px);
    margin: 0 auto;
    padding: 125px 0 60px;
}

.hero {
    text-align: center;
    padding: 70px 20px 55px;
    background:
        radial-gradient(
            circle at center,
            #08316E 0%,
            #020B1F 65%
        );
    border-radius: 18px;
    margin-bottom: 35px;
}

.eyebrow,
.tag {
    color: #FF8A00;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 4px;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 65px);
    line-height: 1.05;
    margin: 22px 0;
}

.subtitle {
    max-width: 700px;
    margin: auto;
    color: #AAB6CA;
    font-size: 18px;
    line-height: 1.7;
}

/* =========================
   CARDS
========================= */

.card {
    background:
        linear-gradient(
            145deg,
            #091B3A,
            #061329
        );
    border: 1px solid #14325E;
    border-radius: 15px;
    padding: 35px;
    margin-bottom: 25px;
    transition: 0.3s;
    box-shadow: none;
}

.card:hover {
    border-color: #FF8A00;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.step {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,138,0,0.12);
    border: 1px solid rgba(255,138,0,0.35);
    color: #FF8A00;
    font-weight: bold;
}

h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.section-heading p,
.card p {
    color: #8F9DB1;
    line-height: 1.6;
}

.format-help {
    margin-top: 18px;
    color: #8795AA;
    font-size: 13px;
}

code {
    padding: 4px 7px;
    border-radius: 5px;
    background: #020B1F;
    color: #FF8A00;
    border: 1px solid #14325E;
}

/* =========================
   BOTÕES
========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 14px 24px;
    border-radius: 6px;
    border: 0;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary {
    background: #FF8A00;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,138,0,0.30);
}

.btn-secondary {
    border: 1px solid #31527F;
    background: transparent;
    color: white;
}

.btn-secondary:hover {
    border-color: #FF8A00;
    color: #FF8A00;
}

.btn-guide {
    margin-top: 12px;
    background: #FF8A00;
    color: white;
    border: 1px solid #FF8A00;
}

.btn-guide:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,138,0,0.30);
}

.btn-outline {
    border: 1px solid #31527F;
    background: transparent;
    color: white;
}

.btn-outline:hover {
    border-color: #FF8A00;
    color: #FF8A00;
}

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

.action-row {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.guide-actions {
    justify-content: flex-start;
}

/* =========================
   UPLOAD
========================= */

.drop-zone {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 25px;
    border: 2px dashed #31527F;
    border-radius: 10px;
    color: #8F9DB1;
    text-align: center;
    cursor: pointer;
    transition: .3s;
    background: rgba(2,11,31,.35);
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: #FF8A00;
    background: rgba(255,138,0,.04);
}

.drop-zone strong {
    color: white;
}

.drop-zone small {
    color: #66758C;
}

.upload-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 5px;
    border-radius: 50%;
    background: rgba(255,138,0,.12);
    color: #FF8A00;
    font-size: 24px;
    font-weight: bold;
}

.file-info {
    margin-top: 15px;
    padding: 13px 15px;
    border-radius: 8px;
    background: #020B1F;
    border: 1px solid #14325E;
    color: #AAB6CA;
    font-size: 14px;
}

.validation {
    margin-top: 13px;
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 14px;
}

.validation.error {
    color: #ffb0b0;
    background: rgba(201,54,54,.10);
    border: 1px solid rgba(201,54,54,.35);
}

.validation.success {
    color: #9be2c2;
    background: rgba(19,138,89,.10);
    border: 1px solid rgba(19,138,89,.35);
}

/* =========================
   TABELAS / RESULTADO
========================= */

.hidden {
    display: none !important;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 18px;
}

.stat {
    padding: 16px;
    border: 1px solid #14325E;
    border-radius: 10px;
    background: rgba(2,11,31,.45);
}

.stat strong {
    display: block;
    font-size: 24px;
    color: white;
}

.stat span {
    color: #8795AA;
    font-size: 12px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid #14325E;
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #061329;
}

th, td {
    padding: 13px 15px;
    text-align: left;
    border-bottom: 1px solid #14325E;
}

th {
    background: #091B3A;
    color: #FF8A00;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

td {
    color: #D7DEEA;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: rgba(255,138,0,.035);
}

.result-card {
    border-color: #31527F;
}

.result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.success-badge {
    display: inline-block;
    margin-bottom: 9px;
    padding: 5px 9px;
    border-radius: 99px;
    background: rgba(19,138,89,.12);
    color: #72d7ad;
    font-size: 12px;
    font-weight: bold;
}

.result-header h2 {
    margin-bottom: 6px;
}

.result-header p {
    margin-bottom: 0;
    color: #8F9DB1;
    font-size: 13px;
}

.draw-code {
    padding: 8px 10px;
    border-radius: 6px;
    background: #020B1F;
    border: 1px solid #14325E;
    color: #8795AA;
    font-family: monospace;
    font-size: 12px;
    white-space: nowrap;
}

/* =========================
   RODAPÉ / TOAST
========================= */

footer {
    border-top: 1px solid #122B51;
    padding: 35px 4px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #66758C;
    font-size: 11px;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 20;
    max-width: calc(100% - 30px);
    padding: 12px 16px;
    border-radius: 6px;
    color: white;
    background: #091B3A;
    border: 1px solid #31527F;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    transform: translate(-50%, 100px);
    opacity: 0;
    transition: .25s ease;
    pointer-events: none;
    font-size: 14px;
}

.toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

/* =========================
   CELULAR
========================= */

@media (max-width: 700px) {
    .container {
        width: min(100% - 20px, 1200px);
        padding-top: 105px;
    }

    .hero {
        padding: 55px 18px 45px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .subtitle {
        font-size: 16px;
    }

    .card {
        padding: 22px;
    }

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

    .result-header {
        flex-direction: column;
    }

    .action-row {
        flex-direction: column;
    }

    .action-row .btn {
        width: 100%;
    }

    footer {
        flex-direction: column;
    }
}


/* DNA DEV — CABEÇALHO / LOGO / RODAPÉ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 11, 31, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-container {
    width: 90%;
    max-width: 1200px;
    height: 85px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo img {
    width: 145px;
    height: auto;
    display: block;
}
.header nav {
    display: flex;
    align-items: center;
    gap: 35px;
}
.header nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: .3s;
}
.header nav a:hover { color: #FF8A00; }

.container { padding-top: 125px; }

.hero-brand { margin-bottom: 8px; }
.hero-brand .tag { color: #FF8A00; }
.brand-mark { display: none; }

footer {
    position: relative;
    align-items: center;
    padding: 38px 0 70px;
}
.footer-brand img {
    width: 145px;
    height: auto;
    display: block;
}
.footer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.footer-actions {
    display: flex;
    gap: 10px;
}
.footer-icon,
.back-top {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #31527F;
    border-radius: 6px;
    background: #091B3A;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: .3s;
}
.footer-icon:hover,
.back-top:hover {
    color: #FF8A00;
    border-color: #FF8A00;
    transform: translateY(-3px);
}
.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    background: rgba(9,27,58,.95);
    backdrop-filter: blur(8px);
}
@media (max-width: 700px) {
    .header nav { display: none; }
    .nav-container { height: 75px; }
    .logo img { width: 130px; }
    .container { padding-top: 105px; }
    footer {
        align-items: center;
        flex-direction: column;
        text-align: center;
        padding-bottom: 90px;
    }
    .footer-info { align-items: center; }
    .back-top { right: 16px; bottom: 16px; }
}

/* Histórico de sorteios DNA DEV */
.history-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid #e4eaf2}
.history-entry strong{display:block;color:#12233d;font-size:14px;overflow-wrap:anywhere}
.history-entry small{display:block;color:#63728b;margin-top:5px}
.history-buttons{display:flex;gap:8px;flex-wrap:wrap}
.history-buttons .btn{padding:9px 13px;font-size:12px}
.history-empty,.storage-notice{font-size:13px;color:#63728b;line-height:1.65}
.storage-notice{margin-top:16px}
@media(max-width:640px){.history-entry{align-items:stretch;flex-direction:column}.history-buttons .btn{flex:1}}
