:root {
    --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);
}

*,
*::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__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-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-top: 1rem;
    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);
}

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

.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.65rem 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;
}

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

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

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

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

.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-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

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

.ebooks-panel--standalone {
    margin-top: 1rem;
    padding-top: 0;
    border-top: 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);
}

.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: 50;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.modal[hidden] {
    display: none !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;
}

