:root {
    /* v28 — cache bust */
    --graphite: #1e1e22;
    --graphite-mid: #2a2c32;
    --graphite-light: #3a3d47;
    --navy: #0f1f3a;
    --navy-soft: #162a4d;
    --gold: #d4af37;
    --gold-dim: rgba(212, 175, 55, 0.35);
    --text: #f4f6fb;
    --text-muted: rgba(244, 246, 251, 0.72);
    --border: rgba(255, 255, 255, 0.20);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --radius: 14px;
    --font: "DM Sans", system-ui, sans-serif;
    --font-display: "Outfit", var(--font);
    --ebook-placeholder-border: #e8dcc8;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/**
 * Degrade no html (nao height:100% no html + fundo no body), senao o fundo
 * repete a cada altura da viewport ao rolar a pagina.
 */
html {
    min-height: 100%;
    background: radial-gradient(120% 80% at 50% 0%, var(--navy-soft) 0%, var(--graphite) 42%, #0f0f12 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-color: #0f0f12;
}

body.page {
    margin: 0;
    min-height: 100%;
    font-family: var(--font);
    color: var(--text);
    background: transparent;
    color-scheme: dark;
}

/* Poeira dourada - camadas leves */
.dust {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 10% 20%, var(--gold-dim) 50%, transparent 52%),
        radial-gradient(1px 1px at 85% 40%, rgba(212, 175, 55, 0.25) 50%, transparent 52%),
        radial-gradient(1.2px 1.2px at 40% 75%, rgba(212, 175, 55, 0.2) 50%, transparent 52%),
        radial-gradient(1px 1px at 70% 10%, rgba(212, 175, 55, 0.25) 50%, transparent 52%),
        radial-gradient(1.2px 1.2px at 25% 55%, rgba(212, 175, 55, 0.18) 50%, transparent 52%);
    background-size: 100% 100%;
    opacity: 0.55;
    animation: drift 80s linear infinite;
}

.dust--slow {
    opacity: 0.35;
    animation-duration: 120s;
    animation-direction: reverse;
    filter: blur(0.5px);
}

@keyframes drift {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 120px 80px, -40px 60px, 60px -30px, -80px 40px, 30px 90px;
    }
}

.topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(15, 31, 58, 0.35), transparent);
}

.topbar__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.topbar__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, var(--gold));
    box-shadow: 0 0 12px var(--gold-dim);
}

.topbar__title {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.topbar__preview-hint {
    margin: 0;
    font-size: 0.78rem;
    color: var(--gold);
    line-height: 1.3;
    max-width: 16rem;
    text-align: right;
}

.topbar__right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem 1rem;
}

.topbar__live-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.topbar__live-pulse {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(52, 211, 153, 0);
    }
}

.topbar__live-count-wrap {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
}

.topbar__live-count-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.topbar__live-count-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.topbar__admin {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.topbar__admin:hover {
    color: var(--text);
    border-color: rgba(212, 175, 55, 0.35);
    background: rgba(255, 255, 255, 0.04);
}

.shell {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .shell {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: stretch;
        min-height: calc(100vh - 72px);
    }
}

.panel {
    background: linear-gradient(145deg, rgba(42, 44, 50, 0.92), rgba(26, 39, 77, 0.35));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.15rem 1.25rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.panel__head {
    margin-bottom: 0.85rem;
}

.panel__title {
    margin: 0 0 0.25rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.panel__hint {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.video-play-cta {
    margin: 0 0 0.75rem;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #00ff4c;
    text-transform: uppercase;
}

.video-wrap {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* YouTube: controles nativos no iframe + leitura de tempo na plataforma */
.video-wrap--youtube {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.video-wrap--youtube .video-wrap__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-wrap--youtube .video-wrap__stage iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.yt-time-readout {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.65rem 0.85rem;
    background: linear-gradient(180deg, #1e1e22, #141416);
    border-top: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text-muted);
}

.yt-time-readout__label {
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: rgba(212, 175, 55, 0.95);
}

.yt-time-readout__value {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
}

.yt-time-readout__current {
    color: #f0f0f4;
}

.yt-time-readout__slash {
    margin: 0 0.35rem;
    font-weight: 500;
    color: var(--text-muted);
}

.yt-time-readout__total {
    color: rgba(255, 255, 255, 0.82);
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
}

.purchase-slot {
    margin-top: 1rem;
    display: none;
}

.purchase-slot.is-visible {
    display: block;
}

.purchase-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #0a6cff 0%, #3d5afe 45%, #b1a3fb 100%);
    box-shadow: 0 10px 28px rgba(10, 108, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.purchase-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(10, 108, 255, 0.45);
}

.purchase-btn:active {
    transform: translateY(0);
}

.whatsapp-slot {
    margin: 0 0 0.65rem;
    display: none;
}

.whatsapp-slot.is-visible {
    display: block;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #128c7e 0%, #25d366 55%, #5fe48a 100%);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.whatsapp-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45);
}

.whatsapp-btn:active {
    transform: translateY(0);
}

.certificate-slot {
    margin: 0 0 0.85rem;
    display: none;
}

.certificate-slot[hidden] {
    display: none !important;
}

.certificate-slot.is-visible {
    display: block;
}

.certificate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    outline: none;
    box-sizing: border-box;
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgb(120, 50, 5);
    text-shadow: 0 2px 2px rgba(250, 227, 133, 1);
    cursor: pointer;
    user-select: none;
    border: 1px solid #a55d07;
    background-image: linear-gradient(160deg, #a54e07, #b47e11, #fef1a2, #bc881b, #a54e07);
    background-size: 100% 100%;
    background-position: center;
    box-shadow:
        0 3px 6px rgba(0, 0, 0, 0.16),
        0 3px 6px rgba(110, 80, 20, 0.4),
        inset 0 -2px 5px 1px rgba(139, 66, 8, 1),
        inset 0 -1px 1px 3px rgba(250, 227, 133, 1);
    transition: all 0.2s ease-in-out;
}

.certificate-btn:focus,
.certificate-btn:hover {
    background-size: 150% 150%;
    color: rgba(120, 50, 5, 0.8);
    border: 1px solid rgba(165, 93, 7, 0.6);
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.19),
        0 6px 6px rgba(0, 0, 0, 0.23),
        inset 0 -2px 5px 1px #b17d10,
        inset 0 -1px 1px 3px rgba(250, 227, 133, 1);
}

.certificate-btn:active {
    box-shadow:
        0 3px 6px rgba(0, 0, 0, 0.16),
        0 3px 6px rgba(110, 80, 20, 0.4),
        inset 0 -2px 5px 1px #b17d10,
        inset 0 -1px 1px 3px rgba(250, 227, 133, 1);
}

.certificate-btn:disabled {
    pointer-events: none;
    opacity: 0.65;
    color: #7e7e7e;
    background: #dcdcdc;
    box-shadow: none;
    text-shadow: none;
    border-color: #c2c2c2;
}

.certificate-modal__box {
    max-width: 640px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.quiz-modal__box {
    max-width: 640px;
    width: min(640px, 100%);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 1.5rem 1.35rem 1.25rem;
    background:
        radial-gradient(ellipse 120% 80% at 10% -20%, rgba(212, 175, 55, 0.14), transparent 55%),
        radial-gradient(ellipse 90% 60% at 100% 0%, rgba(22, 42, 77, 0.55), transparent 50%),
        var(--graphite-mid);
    border: 1px solid rgba(212, 175, 55, 0.22);
    box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.quiz-modal__header {
    margin-bottom: 1.15rem;
}

.quiz-modal__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.quiz-modal__title {
    margin-bottom: 0.4rem;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.45rem);
}

.quiz-modal__lead {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.quiz-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quiz-progress__track {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.quiz-progress__fill {
    height: 100%;
    width: 20%;
    border-radius: inherit;
    background: linear-gradient(90deg, #a88620, var(--gold));
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
    transition: width 0.35s ease;
}

.quiz-progress__label {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.quiz-question-panel {
    min-height: 12rem;
}

.quiz-question {
    animation: quizFadeIn 0.28s ease;
}

@keyframes quizFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.quiz-question__text {
    margin: 0 0 1rem;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.quiz-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    padding: 0.85rem 0.95rem;
    text-align: left;
    cursor: pointer;
    color: var(--text);
    font: inherit;
    font-size: 0.92rem;
    line-height: 1.4;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.quiz-option:hover {
    border-color: rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.08);
    transform: translateY(-1px);
}

.quiz-option:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.quiz-option.is-selected {
    border-color: rgba(212, 175, 55, 0.85);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(15, 31, 58, 0.35));
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25), 0 8px 24px rgba(0, 0, 0, 0.25);
}

.quiz-option__letter {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #141418;
    background: rgba(244, 246, 251, 0.88);
    transition: background 0.2s ease, color 0.2s ease;
}

.quiz-option.is-selected .quiz-option__letter {
    background: linear-gradient(145deg, var(--gold), #a88620);
    color: #141418;
}

.quiz-option__label {
    flex: 1;
    padding-top: 0.15rem;
}

.quiz-modal__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.quiz-modal__dismiss {
    display: block;
    width: 100%;
    margin-top: 0.85rem;
}

.quiz-view--result {
    text-align: center;
    padding: 0.5rem 0 0.25rem;
}

.quiz-result__icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.quiz-result--pass .quiz-result__icon {
    color: #141418;
    background: linear-gradient(145deg, var(--gold), #a88620);
    box-shadow: 0 0 28px rgba(212, 175, 55, 0.4);
}

.quiz-result--fail .quiz-result__icon {
    color: #ffb4b4;
    background: rgba(255, 120, 120, 0.12);
    border: 1px solid rgba(255, 155, 155, 0.35);
}

.quiz-result__score {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text);
}

.quiz-result__msg {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.quiz-result__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.certificate-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.certificate-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.25rem;
}

.certificate-result {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.certificate-placeholder {
    margin: 0;
    padding: 1.15rem 1rem;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.18);
    color: var(--text-muted);
    text-align: center;
    font-size: 0.92rem;
    line-height: 1.45;
}

.certificate-placeholder[hidden],
.certificate-preview-img[hidden],
.certificate-modal__actions[hidden],
.certificate-public-actions[hidden] {
    display: none !important;
}

.certificate-preview-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border);
}

.chat-gate.is-hidden {
    display: none;
}

.panel--chat.is-anonymous .chat-gate {
    margin-bottom: 0.85rem;
}

.chat-app.is-hidden {
    display: none;
}

.gate-form__intro {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0 0 0.85rem;
}

.field {
    display: block;
    margin-bottom: 0.75rem;
}

.field__label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.field__input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    font: inherit;
}

.field__input:focus {
    outline: 2px solid rgba(212, 175, 55, 0.35);
    outline-offset: 1px;
}

.check {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin: 0.55rem 0 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.check__input {
    margin-top: 0.2rem;
    accent-color: var(--gold);
}

.link {
    color: #9cb8ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.btn {
    font: inherit;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1rem;
}

.btn--primary {
    width: 100%;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.95), #a88620);
    color: #141418;
    font-weight: 600;
}

.btn--primary:hover {
    filter: brightness(1.05);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    margin-top: 0.75rem;
}

.form-error {
    margin: 0.55rem 0 0;
    font-size: 0.85rem;
    color: #ff9b9b;
}

.chat-userbar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin: 0 0 0.5rem;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    background: rgba(15, 31, 58, 0.45);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.chat-userbar.is-hidden {
    display: none;
}

.chat-userbar__label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.chat-userbar__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold);
}

.chat-log {
    height: min(360px, 48vh);
    overflow-y: auto;
    padding: 0.35rem 0.5rem 0.75rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--border);
    margin-bottom: 0.65rem;
}

.panel--chat.is-anonymous .chat-log {
    height: auto;
    min-height: 100px;
    max-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel--chat.is-anonymous .chat-log.has-messages {
    display: block;
    align-items: stretch;
    justify-content: flex-start;
}

.chat-log__empty {
    margin: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-muted);
    text-align: center;
}

.chat-log.has-messages .chat-log__empty {
    display: none;
}

@media (min-width: 900px) {
    .chat-log {
        height: min(420px, calc(100vh - 280px));
    }

    .panel--chat.is-identified .chat-log {
        height: min(420px, calc(100vh - 280px));
    }
}

.chat-msg {
    margin-bottom: 0.55rem;
    font-size: 0.88rem;
    line-height: 1.4;
}

.chat-msg__badge {
    display: inline-block;
    margin-right: 0.4rem;
    padding: 0.08rem 0.42rem;
    border-radius: 999px;
    background: #22c55e;
    color: #052e16;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.35;
    text-transform: lowercase;
    vertical-align: middle;
}

.chat-msg__name {
    color: var(--gold);
    font-weight: 600;
    margin-right: 0.35rem;
}

.chat-msg__text {
    color: var(--text);
    word-break: break-word;
}

.chat-msg--admin .chat-msg__text {
    color: #7dd3fc;
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-form__input {
    resize: vertical;
    min-height: 64px;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    font: inherit;
}

.chat-form__send {
    width: auto;
    align-self: flex-end;
    min-width: 120px;
    background: linear-gradient(180deg, #2a4a8a, var(--navy));
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.chat-form__send:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ebooks-panel {
    margin-bottom: 1.15rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ebooks-panel[hidden] {
    display: none !important;
}

.ebooks-placeholder {
    border: 3px dashed var(--ebook-placeholder-border);
    border-radius: 8px;
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 4.5rem;
}

.ebooks-placeholder__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--ebook-placeholder-border);
}

.ebooks-placeholder__highlight {
    color: #f9ba05;
    font-weight: 700;
}

.panel--chat--no-chat .ebooks-panel {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.panel--chat--no-chat .whatsapp-slot.is-visible {
    margin-top: 1rem;
}

.panel--chat--no-chat .certificate-slot.is-visible {
    margin-top: 0.25rem;
    margin-bottom: 0.85rem;
}

.ebooks-panel--standalone {
    margin-top: 1rem;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top: none;
    border-bottom: none;
}

.signup-promo-banner {
    text-align: center;
}

.signup-promo-banner__link {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.35;
    color: var(--text);
    text-decoration: none;
    text-shadow: 0 1px 12px rgba(212, 175, 55, 0.15);
    transition: color 0.15s ease;
}

.signup-promo-banner__link:hover {
    color: var(--gold);
}

.ebook-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.15);
}

.ebook-title {
    font-size: 0.9rem;
    color: var(--text);
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}

.ebook-title strong {
    font-weight: 700;
    margin-right: 0.25rem;
}

.btn-ebook {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    color: #0a2e1a;
    background: linear-gradient(180deg, #b8f5d0 0%, #7fe8a8 45%, #4ecf7a 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 6px 20px rgba(56, 190, 120, 0.28);
    transition: filter 0.15s ease;
}

.btn-ebook:hover {
    filter: brightness(1.05);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

body.signup-bg {
    min-height: 100vh;
    background-image:
        linear-gradient(rgba(8, 10, 14, 0.58), rgba(8, 10, 14, 0.68)),
        url("../../img/bg-inscricao.jpg");
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}

.signup-back {
    width: min(460px, 100%);
    margin: 0 auto 0.75rem;
    font-size: 0.88rem;
}

.signup-back a {
    color: var(--text-muted);
    text-decoration: none;
}

.signup-back a:hover {
    color: var(--text);
}

.signup-learn {
    margin: 0.85rem 0 0;
}

.signup-learn__title {
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.signup-learn__list {
    margin: 0;
    padding-left: 1.15rem;
    color: rgba(244, 246, 251, 0.88);
    line-height: 1.5;
    font-size: 0.95rem;
}

.signup-learn__list li + li {
    margin-top: 0.35rem;
}

.signup-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: max(1.25rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.signup-card {
    width: min(460px, 100%);
    padding: 1.25rem 1.2rem 1.35rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.68);
    box-shadow: var(--shadow);
}

.signup-title {
    margin: 0 0 0.45rem;
    font-family: var(--font-display);
    font-size: 2rem;
}

.signup-tagline {
    margin: 0 0 0.7rem;
    font-size: 1.1rem;
    color: #fff;
    line-height: 1.45;
}

.signup-card--checkout .signup-title {
    margin-bottom: 0.55rem;
}

.checkout-subtitle {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: 1.25em;
    font-weight: 600;
    line-height: 1.42;
    color: var(--gold);
    text-shadow: 0 1px 16px rgba(212, 175, 55, 0.28);
}

/* Pré-checkout — tema azul da plataforma (sem imagem de fundo) */
body.signup-checkout {
    min-height: 100vh;
    background: transparent;
}

.signup-card--checkout {
    background: rgba(14, 20, 30, 0.94);
    border-color: rgba(59, 130, 246, 0.22);
    box-shadow:
        var(--shadow),
        0 0 0 1px rgba(59, 130, 246, 0.08);
}

.signup-card--checkout .signup-title {
    color: var(--text);
}

.signup-card--checkout .checkout-subtitle {
    font-size: 1.28em;
    color: #93c5fd;
    text-shadow: 0 1px 16px rgba(59, 130, 246, 0.28);
}

.signup-card--checkout .field__input {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.signup-card--checkout .field__input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.signup-card--checkout .btn--checkout {
    margin-top: 0.25rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, #0a6cff 0%, #3d5afe 45%, #b1a3fb 100%);
    box-shadow: 0 10px 28px rgba(10, 108, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.signup-card--checkout .btn--checkout:hover {
    filter: none;
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(10, 108, 255, 0.45);
}

.signup-card--checkout .btn--checkout:active {
    transform: translateY(0);
}

.signup-case-block {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.signup-case__title {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--gold);
}

.signup-case-form {
    margin: 0;
}

.signup-case-form .btn--primary {
    margin-top: 0.35rem;
}

.signup-case__success {
    margin: 0 0 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(130, 220, 170, 0.5);
    background: rgba(22, 48, 36, 0.65);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    color: #c8f5d8;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.field__input--textarea {
    display: block;
    min-height: 7.5rem;
    resize: vertical;
}

.signup-yt-cta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.signup-yt-cta__hint {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.btn--youtube-cta {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, #ff4e4e 0%, #d92525 45%, #b01010 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 22px rgba(180, 20, 20, 0.35);
    transition: filter 0.15s ease;
}

.btn--youtube-cta:hover {
    filter: brightness(1.08);
}

.signup-live-date {
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: linear-gradient(135deg, rgba(15, 31, 58, 0.92) 0%, rgba(30, 30, 34, 0.88) 100%);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.35),
        0 8px 24px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.signup-live-date__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.25rem;
    font-family: var(--font-display);
}

.signup-live-date__label--spaced {
    margin-top: 0.55rem;
}

.signup-live-date__value {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.35;
    color: var(--text);
    text-shadow: 0 1px 12px rgba(212, 175, 55, 0.15);
}

.signup-sub {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.signup-form .btn--primary {
    margin-top: 0.25rem;
}

@media (max-width: 899px) {
    body.signup-bg {
        background-size: auto 100%;
        background-position: 78% top;
    }
}
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.modal[hidden] {
    display: none !important;
}

.modal.is-open {
    display: grid !important;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.modal__box {
    position: relative;
    z-index: 1;
    max-width: 480px;
    width: 100%;
    padding: 1.25rem 1.25rem 1rem;
    border-radius: var(--radius);
    background: var(--graphite-mid);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.modal__title {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.modal__body {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.modal__body p {
    margin: 0 0 0.65rem;
}

.modal__box.certificate-modal__box {
    max-width: 640px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.certificate-modal__actions .btn,
.certificate-modal__actions a.btn {
    width: auto;
    margin-top: 0;
}

.site-loading {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    background: rgba(8, 10, 16, 0.72);
    backdrop-filter: blur(2px);
}

.site-loading[hidden] {
    display: none !important;
}

.site-loading__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 1.25rem 1.5rem;
}

.site-loading__spinner {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 3px solid rgba(254, 241, 162, 0.25);
    border-top-color: #fef1a2;
    border-right-color: #bc881b;
    animation: site-loading-spin 0.8s linear infinite;
}

.site-loading__text {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: #fef1a2;
    text-align: center;
}

@keyframes site-loading-spin {
    to { transform: rotate(360deg); }
}

