/* © Austin — IV JOFAI 2026 */
:root {

    --dark: #101313;
    --dark-2: #171b1b;

    --cream: #f2eee6;
    --white: #ffffff;

    --green: #8da68c;
    --green-dark: #627a65;

    --gray: #777d7a;

    --line: rgba(16, 19, 19, 0.15);

    --max-width: 1240px;
}


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


html {
    scroll-behavior: smooth;
}


body {

    font-family: "DM Sans", Arial, sans-serif;

    background: var(--cream);

    color: var(--dark);

    line-height: 1.55;

    overflow-x: hidden;
}


button,
input,
select {
    font: inherit;
}


button {
    cursor: pointer;
}


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


img {
    max-width: 100%;
    display: block;
}


.container {

    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    margin: auto;
}


.section {
    padding: 110px 0;
}


.section-dark {

    background: #32453d;

    color: var(--cream);

    padding: 110px 0;
}


.section-label {

    font-size: 11px;

    letter-spacing: .18em;

    font-weight: 700;

    margin-bottom: 55px;

    color: var(--gray);
}


.section-label.light {
    color: #aeb6b1;
}


h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}


h2 {

    font-size: clamp(
        44px,
        7vw,
        92px
    );

    line-height: .95;

    letter-spacing: -.055em;

    font-weight: 500;
}


h2 em,
h1 em,
.footer-title em {

    font-family:
        "Playfair Display",
        serif;

    font-weight: 500;
}


.lead {

    font-size: clamp(
        18px,
        2vw,
        23px
    );

    line-height: 1.45;
}


/* =====================================================
   HEADER
===================================================== */

.site-header {

    position: fixed;

    z-index: 50;

    top: 0;
    left: 0;
    right: 0;

    height: 82px;

    padding: 0 28px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: #fff;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.35),
            transparent
        );

    transition: .3s;
}


.site-header.scrolled {

    background:
        rgba(128,152,136,.31);

    backdrop-filter: blur(12px);
}


.brand {

    display: flex;

    align-items: center;

    gap: 11px;

    font-size: 11px;

    line-height: 1.05;

    font-weight: 700;

    letter-spacing: .06em;
}


.brand img {

    width: 40px;

    height: 40px;

    border-radius: 50%;

    object-fit: cover;
}


.brand small {

    font-size: 8px;

    opacity: .72;

    letter-spacing: .08em;
}


.menu {

    display: flex;

    align-items: center;

    gap: 25px;

    font-size: 12px;

    font-weight: 600;
}


.menu a {

    opacity: .88;

    transition: .2s;
}


.menu a:hover {
    opacity: 1;
}


.menu-button {

    padding: 11px 17px;

    border: 1px solid
        rgba(255,255,255,.45);

    border-radius: 100px;
}


.menu-toggle {

    display: none;

    background: none;

    border: 0;

    width: 42px;

    height: 42px;
}


.menu-toggle span {

    display: block;

    width: 24px;

    height: 1px;

    background: #fff;

    margin: 6px auto;
}


/* =====================================================
   HERO
===================================================== */

.hero {

    position: relative;

    min-height: 100svh;

    background: var(--dark);

    color: #fff;

    display: flex;

    align-items: flex-end;

    overflow: hidden;
}


.hero-bg {

    position: absolute;

    inset: 0;

    background:
        url("assets/banner.png")
        center / cover no-repeat;

    transform: scale(1.03);
}


.hero-overlay {

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            90deg,
            rgba(16,19,19,.9) 0%,
            rgba(16,19,19,.54) 50%,
            rgba(16,19,19,.22) 100%
        ),

        linear-gradient(
            0deg,
            rgba(16,19,19,.82),
            transparent 60%
        );
}


.hero-content {

    position: relative;

    padding-top: 150px;

    padding-bottom: 80px;
}


.eyebrow {

    font-size: 11px;

    letter-spacing: .2em;

    font-weight: 700;

    margin-bottom: 24px;
}


.hero h1 {

    font-size:
        clamp(
            54px,
            10vw,
            125px
        );

    line-height: .84;

    letter-spacing: -.065em;

    font-weight: 500;

    max-width: 900px;
}


.hero-copy {

    font-size: 16px;

    max-width: 500px;

    margin-top: 30px;

    color:
        rgba(255,255,255,.82);
}


.hero-actions {

    display: flex;

    align-items: center;

    gap: 26px;

    margin-top: 35px;
}


.button {

    border: 0;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 20px;

    padding: 16px 22px;

    border-radius: 100px;

    font-size: 13px;

    font-weight: 700;

    transition: .25s;
}


.button span {
    font-size: 17px;
}


.button:hover {

    transform:
        translateY(-2px);
}


.button-light {

    background: #fff;

    color: var(--dark);
}


.button-dark {

    background: var(--dark);

    color: #fff;
}


.full {
    width: 100%;
}


.text-link,
.arrow-link {

    font-size: 13px;

    font-weight: 700;

    border-bottom:
        1px solid currentColor;

    padding-bottom: 4px;
}


.hero-meta {

    display: flex;

    gap: 55px;

    margin-top: 65px;
}


.hero-meta div {

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.hero-meta span {

    font-size: 9px;

    letter-spacing: .18em;

    opacity: .55;
}


.hero-meta strong {

    font-size: 12px;

    letter-spacing: .05em;
}


.hero-scroll {

    position: absolute;

    right: 25px;

    bottom: 28px;

    font-size: 9px;

    letter-spacing: .2em;

    opacity: .65;

    writing-mode: vertical-rl;
}


/* =====================================================
   EVENTO
===================================================== */

.about-grid,
.location-grid {

    display: grid;

    grid-template-columns:
        1.05fr .95fr;

    gap: 100px;
}


.about-grid > div {
    max-width: 600px;
}


.about-grid p + p {
    margin-top: 20px;
}


.about-grid .lead {
    margin-bottom: 25px;
}


.arrow-link {

    display: inline-flex;

    gap: 12px;

    margin-top: 32px;
}


.arrow-link span {
    font-size: 18px;
}


/* =====================================================
   NÚMEROS
===================================================== */

.numbers-grid {

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 30px;
}


.numbers-grid div {

    border-top:
        1px solid
        rgba(255,255,255,.2);

    padding-top: 20px;
}


.numbers-grid strong {

    display: block;

    font-size:
        clamp(
            48px,
            6vw,
            80px
        );

    font-weight: 500;

    letter-spacing: -.06em;
}


.numbers-grid span {

    font-size: 12px;

    color: #aeb6b1;
}


/* =====================================================
   TÍTULOS
===================================================== */

.section-heading {

    display: flex;

    align-items: end;

    justify-content: space-between;

    gap: 40px;

    margin-bottom: 65px;
}


.section-heading p {

    max-width: 380px;

    color: var(--gray);
}


.light-heading p {
    color: #aeb6b1;
}


/* =====================================================
   PALESTRANTES
===================================================== */

.speaker-grid {

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 18px;
}


.speaker-card {
    position: relative;
}


.speaker-photo {

    aspect-ratio: 4/5;

    background: #ddd;

    overflow: hidden;
}


.speaker-photo img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: .6s;
}


.speaker-card:hover
.speaker-photo img {

    transform: scale(1.04);
}


.speaker-card > span {

    display: block;

    color: var(--gray);

    font-size: 10px;

    margin-top: 15px;
}


.speaker-card h3 {

    font-size: 19px;

    font-weight: 600;

    margin-top: 6px;
}


.speaker-card p {

    font-size: 12px;

    color: var(--gray);

    margin-top: 3px;
}


/* =====================================================
   PROGRAMAÇÃO
===================================================== */

.schedule {

    border-top:
        1px solid
        rgba(255,255,255,.18);
}


.day {

    border-bottom:
        1px solid
        rgba(255,255,255,.18);

    padding: 30px 0;
}


.day-head {

    display: grid;

    grid-template-columns:
        150px 1fr;

    margin-bottom: 15px;
}


.day-head span {

    font-size: 11px;

    letter-spacing: .15em;

    color: #aeb6b1;
}


.day-head strong {

    font-size: 12px;

    letter-spacing: .15em;
}


.schedule-item {

    display: grid;

    grid-template-columns:
        150px 1fr;

    padding: 14px 0;
}


.schedule-item time {

    font-size: 12px;

    color: #aeb6b1;
}


.schedule-item b {

    font-size: 16px;

    font-weight: 500;
}


.schedule-item small {

    display: block;

    color: #8f9892;

    font-size: 12px;

    margin-top: 2px;
}


/* =====================================================
   CONTAGEM
===================================================== */

.countdown {
    text-align: center;
}


.countdown .section-label {
    text-align: left;
}


.countdown-box {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 28px;
}


.countdown-box div {

    min-width: 110px;
}


.countdown-box strong {

    display: block;

    font-size:
        clamp(
            48px,
            8vw,
            100px
        );

    font-weight: 500;

    letter-spacing: -.07em;

    line-height: 1;
}


.countdown-box span {

    font-size: 10px;

    letter-spacing: .18em;

    color: var(--gray);

    text-transform: uppercase;
}


.countdown-box i {

    font-style: normal;

    font-size: 50px;

    color: #b2b4af;

    margin-bottom: 15px;
}


/* =====================================================
   PATROCINADORES
===================================================== */

.master-sponsor {

    border-top:
        1px solid
        rgba(255,255,255,.18);

    border-bottom:
        1px solid
        rgba(255,255,255,.18);

    padding: 35px 0;

    display: grid;

    grid-template-columns:
        120px 1fr;

    align-items: center;

    gap: 35px;
}


.master-sponsor > span,
.supporters-title {

    font-size: 10px;

    letter-spacing: .18em;

    color: #aeb6b1;
}


.master-sponsor img {

    max-height: 130px;

    width: auto;

    max-width: 320px;

    object-fit: contain;

    justify-self: center;
}


.logo-grid {

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    border-bottom:
        1px solid
        rgba(255,255,255,.18);
}


.logo-grid img {

    width: 100%;

    height: 150px;

    object-fit: contain;

    padding: 25px;

    border-right:
        1px solid
        rgba(255,255,255,.12);

    border-bottom:
        1px solid
        rgba(255,255,255,.12);

    filter: grayscale(1);

    opacity: .8;
}


.supporters-title {

    padding:
        45px 0 20px;
}


.supporters {

    grid-template-columns:
        repeat(4,1fr);

    border-top:
        1px solid
        rgba(255,255,255,.18);
}


/* =====================================================
   LOCAL
===================================================== */

.location-grid > div:first-child {
    max-width: 580px;
}


.map-card {

    min-height: 430px;

    background:
        linear-gradient(
            135deg,
            #d8d3c8,
            #aaa99f
        );

    display: flex;

    align-items: center;

    justify-content: center;

    color: #555b56;

    font-size: 11px;

    letter-spacing: .15em;

    text-align: center;
}


/* =====================================================
   INSCRIÇÕES
===================================================== */

.registration {

    background: var(--green);

    color: var(--dark);

    padding: 110px 0;
}


.registration-intro {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 80px;

    align-items: end;
}


.registration-intro p {

    max-width: 500px;

    font-size: 17px;
}


.registration-cards {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 18px;

    margin-top: 70px;
}


.registration-card {

    position: relative;

    text-align: left;

    border:
        1px solid
        rgba(16,19,19,.25);

    background: transparent;

    padding: 35px;

    min-height: 290px;

    transition: .3s;

    color: inherit;
}


.registration-card:hover {

    background:
        rgba(255,255,255,.35);

    transform:
        translateY(-5px);
}


.card-number {

    font-size: 10px;

    letter-spacing: .15em;
}


.registration-card h3 {

    font-size: 34px;

    font-weight: 500;

    margin-top: 45px;
}


.registration-card p {

    font-size: 13px;

    color: #505851;

    margin-top: 5px;
}


.registration-card strong {

    display: block;

    margin-top: 30px;

    font-size: 20px;
}


.card-arrow {

    position: absolute;

    right: 30px;

    bottom: 27px;

    font-size: 25px;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {

    background: #0c0e0e;

    color: #fff;

    padding:
        75px 0 25px;
}


.footer-top {

    display: flex;

    justify-content: space-between;

    align-items: end;
}


.footer-title {

    font-size:
        clamp(
            40px,
            6vw,
            76px
        );

    line-height: .85;

    letter-spacing: -.06em;
}


.footer-top p {

    margin-top: 25px;

    color: #8f9892;

    font-size: 12px;
}


.back-top {

    font-size: 11px;

    border-bottom:
        1px solid #69716d;

    padding-bottom: 5px;
}


.footer-bottom {

    border-top:
        1px solid
        rgba(255,255,255,.12);

    margin-top: 75px;

    padding-top: 18px;

    display: flex;

    justify-content: space-between;

    color: #69716d;

    font-size: 10px;
}


/* =====================================================
   MODAIS
===================================================== */

.modal {

    position: fixed;

    inset: 0;

    z-index: 100;

    display: none;

    align-items: flex-end;

    justify-content: center;
}


.modal.open {
    display: flex;
}


.modal-backdrop {

    position: absolute;

    inset: 0;

    background:
        rgba(0,0,0,.7);

    backdrop-filter: blur(7px);
}


.modal-panel {

    position: relative;

    z-index: 1;

    background: var(--cream);

    width:
        min(
            680px,
            100%
        );

    max-height: 92svh;

    overflow: auto;

    padding: 45px;

    border-radius:
        26px 26px 0 0;

    animation:
        modalUp .3s ease;
}


.modal-close {

    position: absolute;

    right: 20px;

    top: 15px;

    border: 0;

    background: none;

    font-size: 34px;

    color: var(--dark);

    line-height: 1;
}


.modal-label {

    font-size: 10px;

    letter-spacing: .18em;

    font-weight: 700;

    color: var(--gray);

    margin-bottom: 25px;
}


.modal-panel h2 {

    font-size:
        clamp(
            48px,
            9vw,
            76px
        );
}


.modal-help {

    font-size: 13px;

    color: var(--gray);

    max-width: 500px;

    margin: 20px 0 30px;
}


.modal-panel form {

    display: grid;

    gap: 16px;
}


.modal-panel label {

    font-size: 11px;

    font-weight: 700;

    display: grid;

    gap: 7px;
}


.modal-panel input,
.modal-panel select {

    width: 100%;

    border:
        1px solid #c9c5bc;

    background: #faf8f3;

    border-radius: 10px;

    padding: 14px 15px;

    outline: 0;
}


.modal-panel input:focus,
.modal-panel select:focus {

    border-color:
        var(--green-dark);
}


.conditional-fields {

    display: grid;

    gap: 16px;
}


.hidden {
    display: none !important;
}


.two-cols {

    display: grid;

    grid-template-columns:
        1fr 120px;

    gap: 12px;
}


.consent {

    display:
        flex !important;

    align-items:
        flex-start;

    font-weight:
        400 !important;

    color: var(--gray);

    line-height: 1.35;

    margin: 4px 0;
}


.consent input {

    width: 17px !important;

    height: 17px !important;

    flex: 0 0 17px;

    margin-top: 1px;
}


/* =====================================================
   PAGAMENTO PIX
===================================================== */

.payment-summary {

    display: grid;

    grid-template-columns:
        1.5fr 1fr .8fr;

    gap: 15px;

    background: #e8e3d9;

    padding: 18px;

    border-radius: 13px;

    margin: 25px 0;
}


.payment-summary span,
.pix-details > span {

    font-size: 8px;

    letter-spacing: .15em;

    color: var(--gray);

    display: block;
}


.payment-summary strong {

    font-size: 14px;

    display: block;

    margin-top: 4px;
}


.pix-box {

    display: grid;

    grid-template-columns:
        180px 1fr;

    gap: 25px;

    align-items: center;
}


.qr-wrap {

    background: #fff;

    border-radius: 15px;

    padding: 12px;
}


.qr-wrap img {

    width: 100%;

    aspect-ratio: 1;

    object-fit: contain;
}


.pix-key {

    background: #e8e3d9;

    border-radius: 9px;

    padding: 13px;

    margin-top: 8px;

    font-size: 11px;

    word-break: break-all;
}


.copy-button {

    margin-top: 8px;

    border: 0;

    background: none;

    text-decoration: underline;

    font-size: 11px;

    font-weight: 700;

    padding: 3px 0;
}


.payment-instructions {

    margin: 25px 0;

    font-size: 13px;
}


.payment-instructions p {

    color: var(--gray);

    margin-top: 4px;
}


.back-edit {

    display: block;

    margin: 15px auto 0;

    border: 0;

    background: none;

    text-decoration: underline;

    font-size: 11px;
}


/* =====================================================
   TOAST
===================================================== */

.toast {

    position: fixed;

    z-index: 200;

    left: 50%;

    bottom: 25px;

    transform:
        translate(-50%,20px);

    background: var(--dark);

    color: #fff;

    padding: 12px 18px;

    border-radius: 100px;

    font-size: 12px;

    opacity: 0;

    pointer-events: none;

    transition: .3s;
}


.toast.show {

    opacity: 1;

    transform:
        translate(-50%,0);
}


/* =====================================================
   ANIMAÇÃO
===================================================== */

@keyframes modalUp {

    from {

        transform:
            translateY(40px);

        opacity: 0;
    }

    to {

        transform:
            translateY(0);

        opacity: 1;
    }
}


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

/* =====================================================
   MENU MOBILE — CORREÇÃO
===================================================== */

@media (max-width: 900px) {

    .site-header {
        height: 72px;
        padding: 0 18px;
        z-index: 9999;
    }

    .brand {
        position: relative;
        z-index: 10001;
    }

    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 10002;

        width: 44px;
        height: 44px;

        align-items: center;
        justify-content: center;

        flex-direction: column;

        border: 0;
        background: transparent;

        padding: 0;
    }

    .menu-toggle span {
        display: block;

        width: 24px;
        height: 2px;

        margin: 4px 0;

        background: #fff;

        transition:
            transform .25s ease,
            opacity .25s ease;
    }

    /* Quando o menu estiver aberto,
       transforma o botão em X */

    .menu-toggle.active span:first-child {
        transform:
            translateY(6px)
            rotate(45deg);
    }

    .menu-toggle.active span:last-child {
        transform:
            translateY(-6px)
            rotate(-45deg);
    }


    /* ================================================
       MENU
    ================================================ */

    .menu {
        position: fixed;

        z-index: 10000;

        top: 0;
        left: 0;

        width: 100%;
        height: 100svh;

        background: rgba(16, 19, 19, .98);

        display: flex;

        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 26px;

        padding: 90px 25px 40px;

        font-size: 22px;

        opacity: 0;

        visibility: hidden;

        pointer-events: none;

        transform:
            translateY(-15px);

        transition:
            opacity .25s ease,
            transform .25s ease,
            visibility .25s ease;

        overflow-y: auto;
    }


    /* MENU ABERTO */

    .menu.open {

        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform:
            translateY(0);
    }


    .menu a {

        display: block;

        color: #fff;

        opacity: 1;

        padding: 5px 10px;

        font-size: 21px;

        text-align: center;
    }


    .menu-button {

        margin-top: 8px;

        padding:
            13px 28px !important;

        border:
            1px solid
            rgba(255,255,255,.5);

        border-radius: 100px;
    }


    /* ================================================
       RESTANTE DO RESPONSIVO
    ================================================ */

    .container {

        width:
            min(
                calc(100% - 30px),
                var(--max-width)
            );
    }


    .section,
    .section-dark,
    .registration {

        padding:
            80px 0;
    }


    .hero-content {

        padding-bottom:
            60px;
    }


    .about-grid,
    .location-grid,
    .registration-intro {

        grid-template-columns:
            1fr;

        gap: 35px;
    }


    .section-heading {

        display: block;

        margin-bottom: 45px;
    }


    .section-heading p {

        margin-top: 25px;
    }


    .speaker-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 28px 14px;
    }


    .numbers-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 35px 18px;
    }


    .schedule-item,
    .day-head {

        grid-template-columns:
            90px 1fr;
    }


    .logo-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .logo-grid img {

        height: 120px;
    }


    .supporters {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .registration-cards {

        grid-template-columns:
            1fr;

        margin-top: 45px;
    }


    .registration-card {

        min-height: 250px;
    }


    .countdown-box {

        gap: 9px;
    }


    .countdown-box div {

        min-width: 64px;
    }


    .countdown-box i {

        font-size: 30px;
    }


    .footer-top {

        align-items: flex-start;

        gap: 30px;

        flex-direction: column;
    }


    .footer-bottom {

        flex-direction: column;

        gap: 8px;
    }


    .map-card {

        min-height: 300px;
    }
}

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

@media(max-width: 560px) {

    .brand span {
        font-size: 9px;
    }


    .brand small {
        font-size: 6.5px;
    }


    .hero h1 {

        font-size:
            clamp(
                52px,
                15vw,
                72px
            );
    }


    .hero-overlay {

        background:

            linear-gradient(
                0deg,
                rgba(16,19,19,.92) 0%,
                rgba(16,19,19,.35) 70%,
                rgba(16,19,19,.15) 100%
            );
    }


    .hero-actions {

        flex-direction: column;

        align-items:
            flex-start;

        gap: 20px;
    }


    .hero-meta {

        gap: 22px;

        flex-wrap: wrap;
    }


    .speaker-grid {

        grid-template-columns:
            1fr 1fr;
    }


    .speaker-card h3 {
        font-size: 16px;
    }


    .day {
        padding: 25px 0;
    }


    .schedule-item {
        padding: 11px 0;
    }


    .schedule-item b {
        font-size: 14px;
    }


    .schedule-item small {
        font-size: 11px;
    }


    .master-sponsor {

        grid-template-columns:
            1fr;

        gap: 15px;
    }


    .master-sponsor img {
        justify-self: start;
    }


    .payment-summary {

        grid-template-columns:
            1fr 1fr;
    }


    .payment-summary div:last-child {

        grid-column:
            1 / -1;
    }


    .pix-box {

        grid-template-columns:
            1fr;
    }


    .qr-wrap {

        max-width: 250px;

        margin: auto;
    }


    .modal-panel {

        padding:
            38px 20px 25px;

        border-radius:
            22px 22px 0 0;
    }


    .two-cols {

        grid-template-columns:
            1fr 95px;
    }


    .countdown-box strong {
        font-size: 42px;
    }


    .countdown-box span {
        font-size: 8px;
    }


    .countdown-box i {
        font-size: 20px;
    }
}


/* =====================================================
   REDUZIR ANIMAÇÕES
===================================================== */

@media(prefers-reduced-motion: reduce) {

    * {

        scroll-behavior:
            auto !important;

        animation: none !important;

        transition: none !important;
    }
}

/* =====================================================
   NOVO SISTEMA — INSCRIÇÃO / ADMIN / CREDENCIAMENTO
===================================================== */

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

.registration-query-link {
    display: block;
    width: fit-content;
    margin: 18px auto 0;
    font-size: 12px;
    border-bottom: 1px solid currentColor;
}

.button:disabled {
    opacity: .55;
    cursor: wait;
    transform: none;
}

/* Páginas do sistema */
.system-page {
    min-height: 100svh;
    background: var(--cream);
    color: var(--dark);
    padding: 110px 20px 50px;
}

.system-shell {
    width: min(1180px, 100%);
    margin: auto;
}

.system-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
    margin-bottom: 45px;
}

.system-title {
    font-size: clamp(42px, 7vw, 80px);
    line-height: .9;
    letter-spacing: -.055em;
    font-weight: 500;
}

.system-title em {
    font-family: "Playfair Display", serif;
    font-weight: 500;
}

.system-card {
    background: #fff;
    border: 1px solid var(--line);
    padding: 28px;
    border-radius: 18px;
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-number {
    display: block;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -.05em;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--gray);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.system-toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.system-input,
.system-select {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 13px 14px;
    min-height: 45px;
    outline: none;
}

.system-input:focus,
.system-select:focus {
    border-color: var(--green-dark);
}

.system-table-wrap {
    overflow-x: auto;
}

.system-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

.system-table th,
.system-table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}

.system-table th {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--gray);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    background: #eceeea;
}

.status-pill.ok {
    background: #dce9dc;
}

.status-pill.pending {
    background: #f1ead7;
}

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

.small-button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 10px;
    font-weight: 700;
}

.login-box {
    width: min(460px, 100%);
    margin: 10vh auto 0;
}

.login-box h1 {
    font-size: 50px;
    line-height: .95;
    letter-spacing: -.05em;
    margin-bottom: 30px;
}

.login-form {
    display: grid;
    gap: 15px;
}

.login-form label {
    display: grid;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.login-form input {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    border: 1px solid var(--line);
    padding: 14px;
    border-radius: 10px;
    background: #fff;
}

.scanner-layout {
    display: grid;
    grid-template-columns: minmax(280px, 520px) 1fr;
    gap: 20px;
}

#reader {
    width: 100%;
    min-height: 300px;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #101313;
}

.checkin-result {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.checkin-result.success {
    border-color: var(--green-dark);
}

.checkin-result.error {
    border-color: #9a6666;
}

.result-code {
    font-size: 28px;
    letter-spacing: .04em;
    margin-top: 12px;
}

.result-name {
    font-size: 30px;
    line-height: 1;
    margin-top: 7px;
}

.manual-check {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.manual-check input {
    flex: 1;
}

.empty-state {
    padding: 35px;
    text-align: center;
    color: var(--gray);
}

.notice {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f1ead7;
    font-size: 12px;
}

@media (max-width: 900px) {
    .registration-cards {
        grid-template-columns: 1fr;
    }

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

    .scanner-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .system-header {
        display: block;
    }

    .system-header .button {
        margin-top: 20px;
    }

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

    .system-card {
        padding: 20px;
    }

    .manual-check {
        flex-direction: column;
    }
}


/* Complementos IV JOFAI 2026 */
.scientific .button{margin-top:18px}.hidden{display:none!important}

/* =========================================================
   NOVO FLUXO DE INSCRIÇÃO — © Austin
========================================================= */
.registration-cards-three{grid-template-columns:repeat(3,1fr)}
.field-help,.proof-upload small{display:block;color:var(--gray);font-size:12px;margin-top:6px}
.photo-preview-wrap{display:flex;justify-content:center;margin:12px 0 22px}.photo-preview-wrap img{width:130px;height:130px;object-fit:cover;border-radius:50%;border:1px solid var(--line)}
.payment-flow-panel{max-width:760px}.coupon-box{padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:20px 0}.coupon-row{display:flex;gap:10px;margin-top:8px}.coupon-row input{flex:1}.coupon-status{font-size:13px;margin-top:8px}.coupon-status.ok{color:#47724f}.coupon-status.error{color:#a34444}.important-payment{margin:20px 0}.proof-upload{display:block;margin:20px 0}.proof-upload input{display:block;width:100%;margin-top:8px}.success-message{padding:20px;border:1px solid var(--line);margin:20px 0}.success-message p{margin-top:10px}.registration-ticket{display:grid;grid-template-columns:120px 1fr 160px;gap:20px;align-items:center;padding:20px;border:1px solid var(--line);background:#fff}.registration-ticket>img{width:110px;height:110px;border-radius:50%;object-fit:cover}.registration-ticket span{font-size:10px;letter-spacing:.12em;color:var(--gray)}.registration-ticket strong{display:block;font-size:22px;margin:5px 0}.registration-qr{width:150px;height:150px}.save-card-note{margin:18px 0}.success-panel .button+.button{margin-top:10px}.copyright{text-align:center;padding:0 20px 25px;font-size:12px;opacity:.7}
@media(max-width:800px){.registration-cards-three{grid-template-columns:1fr}.coupon-row{flex-direction:column}.registration-ticket{grid-template-columns:1fr;text-align:center}.registration-ticket>img,.registration-qr{margin:auto}}

/* Modal interno dos Termos e da Política de Reembolso — © Austin */
.legal-reading-modal{z-index:180;align-items:center;padding:20px}.legal-reading-panel{width:min(620px,calc(100% - 24px));max-height:min(78svh,720px);border-radius:22px;padding:34px;animation:modalUp .22s ease}.legal-reading-content{max-height:52svh;overflow-y:auto;padding:4px 10px 18px 0;margin:8px 0 22px;overscroll-behavior:contain}.legal-reading-content h3{font-size:clamp(28px,5vw,42px);line-height:1.05;margin:0 0 20px}.legal-reading-content h4{font-size:15px;margin:22px 0 7px}.legal-reading-content p{font-size:14px;line-height:1.7;color:#4f5552;margin:0 0 12px}.consent a,[data-legal-modal]{text-decoration:underline;text-underline-offset:3px;font-weight:700}@media(max-width:600px){.legal-reading-modal{padding:12px}.legal-reading-panel{padding:28px 20px 20px;max-height:86svh;border-radius:18px}.legal-reading-content{max-height:62svh}}
