:root {
    --black: #050506;
    --black-2: #0d0f14;
    --card: #11141b;
    --card-2: #171b24;
    --yellow: #ffd51f;
    --yellow-2: #ffed75;
    --red: #e42d34;
    --blue: #0b68ff;
    --green: #24d366;
    --text: #f8f8f8;
    --muted: #aab0bf;
    --line: rgba(255,255,255,.10);
    --shadow: 0 22px 70px rgba(0,0,0,.35);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255,213,31,.12), transparent 35%),
        radial-gradient(circle at top right, rgba(228,45,52,.10), transparent 35%),
        var(--black);
    color: var(--text);
    line-height: 1.6;
}

body.admin-body {
    display: flex;
    min-height: 100vh;
    background: #080a0f;
}

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

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

button, input, select, textarea {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(5,5,6,.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.header-wrap {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand img {
    width: 220px;
    max-height: 70px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-nav a,
.student-nav a,
.admin-sidebar nav a {
    padding: 12px 16px;
    border-radius: 999px;
    color: #e7e9ef;
    transition: .2s ease;
}

.main-nav a:hover,
.main-nav a.active,
.student-nav a:hover,
.student-nav a.active,
.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    background: rgba(255,213,31,.14);
    color: var(--yellow);
}

.btn-mini,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-whats,
.btn-outline,
.btn-copy {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary {
    padding: 15px 22px;
    background: linear-gradient(135deg, var(--yellow), #ff9f1f);
    color: #171000;
    box-shadow: 0 15px 35px rgba(255,213,31,.22);
}

.btn-secondary {
    padding: 15px 22px;
    background: #fff;
    color: #101014;
}

.btn-outline {
    padding: 13px 20px;
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    background: rgba(255,255,255,.04);
}

.btn-danger {
    padding: 12px 18px;
    background: #ff4450;
    color: #fff;
}

.btn-whats {
    padding: 12px 16px !important;
    background: var(--green) !important;
    color: #05270f !important;
}

.btn-mini {
    background: rgba(255,255,255,.09) !important;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-outline:hover,
.btn-danger:hover,
.btn-whats:hover,
.btn-copy:hover {
    transform: translateY(-2px);
}

.menu-toggle,
.admin-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 42px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,213,31,.12);
    color: var(--yellow);
    border: 1px solid rgba(255,213,31,.25);
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    font-size: .78rem;
}

h1, h2, h3 {
    line-height: 1.08;
    margin: 0 0 18px;
}

h1 {
    font-size: clamp(2.5rem, 7vw, 5.8rem);
    letter-spacing: -.06em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -.04em;
}

h3 {
    font-size: 1.35rem;
}

.text-yellow {
    color: var(--yellow);
}

.text-red {
    color: var(--red);
}

.lead {
    font-size: clamp(1.08rem, 1.9vw, 1.35rem);
    color: #d4d8e2;
    max-width: 740px;
}

.hero-actions,
.card-actions,
.form-actions,
.checkout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 26px;
}

.hero-card {
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
    border: 1px solid var(--line);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: auto 24px 24px 24px;
    height: 5px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--yellow), var(--red), #4a8cff);
}

.hero-card img {
    width: 100%;
    height: 470px;
    object-fit: cover;
}

.hero-floating {
    position: absolute;
    left: 26px;
    bottom: 44px;
    right: 26px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.float-item {
    padding: 12px;
    border-radius: 18px;
    background: rgba(5,5,6,.82);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(12px);
}

.float-item strong {
    display: block;
    color: var(--yellow);
    font-size: 1.2rem;
}

.section {
    padding: 76px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section-head p {
    color: var(--muted);
    max-width: 620px;
}

.grid-3,
.course-grid,
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.app-card,
.course-card,
.feature-card,
.panel-card,
.table-card,
.lesson-card,
.checkout-card,
.login-card {
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 45px rgba(0,0,0,.22);
    overflow: hidden;
}

.app-card,
.feature-card,
.panel-card,
.table-card,
.lesson-card,
.checkout-card,
.login-card {
    padding: 24px;
}

.course-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.course-card-body {
    padding: 22px;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    color: #dce1ec;
    font-weight: 700;
    font-size: .86rem;
}

.price {
    display: block;
    color: var(--yellow);
    font-size: 1.75rem;
    font-weight: 900;
    margin: 14px 0;
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(255,213,31,.14);
    color: var(--yellow);
    font-size: 1.7rem;
    margin-bottom: 15px;
}

.split-banner {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 26px;
    align-items: center;
}

.split-banner img {
    border-radius: 30px;
    height: 520px;
    width: 100%;
    object-fit: cover;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.info-list li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    color: #dce1ec;
}

.flash {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.08);
}

.flash-success { border-color: rgba(36,211,102,.35); color: #c9ffd9; }
.flash-error { border-color: rgba(255,68,80,.35); color: #ffd0d4; }
.flash-warning { border-color: rgba(255,213,31,.35); color: #fff1a9; }

.site-footer {
    padding: 54px 0 92px;
    background: #030304;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr .7fr;
    gap: 28px;
}

.footer-logo {
    width: 220px;
    margin-bottom: 14px;
}

.site-footer p,
.site-footer a {
    color: var(--muted);
}

.site-footer a {
    display: block;
    margin: 8px 0;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 26px auto 0;
    padding-top: 20px;
    color: #697082;
    border-top: 1px solid var(--line);
}

.mobile-bottom-nav {
    display: none;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group.full {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
    color: #f0f3f8;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(255,255,255,.06);
    color: #fff;
    border-radius: 16px;
    padding: 14px 15px;
    outline: none;
}

select option {
    background: #11141b;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(255,213,31,.55);
    box-shadow: 0 0 0 4px rgba(255,213,31,.10);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background: radial-gradient(circle at center, rgba(255,213,31,.10), transparent 35%), #050506;
}

.login-card {
    width: min(460px, 100%);
}

.login-card img {
    width: 230px;
    margin: 0 auto 18px;
}

.course-hero {
    padding: 48px 0 24px;
}

.course-detail-grid {
    display: grid;
    grid-template-columns: 1fr 370px;
    gap: 28px;
    align-items: start;
}

.preview-box {
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #0b0d12;
}

.preview-placeholder {
    min-height: 360px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255,213,31,.12), rgba(228,45,52,.10)), #0b0d12;
}

.module-box {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
}

.module-title {
    padding: 16px 18px;
    background: rgba(255,255,255,.06);
    font-weight: 900;
    color: var(--yellow);
}

.lesson-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
}

.lesson-row span {
    color: var(--muted);
    font-size: .92rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 24px;
    align-items: start;
}

.pix-box {
    background: #fff8cf;
    color: #171000;
    border-radius: 22px;
    padding: 22px;
}

.pix-key {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px;
    background: #fff;
    border-radius: 14px;
    margin-top: 12px;
    word-break: break-all;
}

.btn-copy {
    padding: 10px 12px;
    background: #171000;
    color: #fff;
    white-space: nowrap;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 900;
}

.status-pending { background: rgba(255,213,31,.16); color: var(--yellow); }
.status-approved { background: rgba(36,211,102,.16); color: #7cff9f; }
.status-canceled { background: rgba(255,68,80,.16); color: #ff9098; }

.student-header {
    background: #050506;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 30;
}

.student-header-wrap {
    min-height: 78px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.student-brand img {
    width: 210px;
}

.student-nav {
    display: flex;
    gap: 10px;
}

.student-main {
    padding: 36px 0 90px;
}

.video-player {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--line);
}

.video-player video {
    width: 100%;
    max-height: 70vh;
    background: #000;
}

.progress-pill {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,.10);
}

.progress-pill span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--yellow), var(--green));
}

.admin-sidebar {
    width: 280px;
    padding: 22px;
    background: #050506;
    border-right: 1px solid var(--line);
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-logo img {
    width: 220px;
    margin-bottom: 22px;
}

.admin-sidebar nav {
    display: grid;
    gap: 8px;
}

.admin-sidebar nav a {
    border-radius: 16px;
    padding: 13px 14px;
}

.admin-main {
    flex: 1;
    min-width: 0;
}

.admin-topbar {
    min-height: 74px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: rgba(8,10,15,.85);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.admin-topbar span {
    display: block;
    color: var(--muted);
    font-size: .9rem;
}

.admin-content {
    padding: 28px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.stat-card {
    padding: 22px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    color: var(--yellow);
}

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

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

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

th {
    color: var(--yellow);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

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

.small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 11px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.06);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

.small-btn.yellow {
    background: rgba(255,213,31,.14);
    color: var(--yellow);
}

.small-btn.green {
    background: rgba(36,211,102,.15);
    color: #7cff9f;
}

.small-btn.red {
    background: rgba(255,68,80,.15);
    color: #ff9098;
}

.recorder-box {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 22px;
}

.record-preview {
    min-height: 420px;
    border-radius: 24px;
    background: #000;
    border: 1px solid var(--line);
    overflow: hidden;
    display: grid;
    place-items: center;
}

.record-preview video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.record-status {
    color: var(--yellow);
    font-weight: 900;
}

@media (max-width: 980px) {
    .hero-grid,
    .split-banner,
    .course-detail-grid,
    .checkout-grid,
    .recorder-box {
        grid-template-columns: 1fr;
    }

    .grid-3,
    .course-grid,
    .feature-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-sidebar {
        position: fixed;
        left: -300px;
        transition: .25s ease;
        z-index: 60;
    }

    .admin-sidebar.open {
        left: 0;
    }

    .admin-menu-button {
        display: inline-grid;
        place-items: center;
    }

    body.admin-body {
        display: block;
    }
}

@media (max-width: 760px) {
    body {
        padding-bottom: 76px;
    }

    .header-wrap {
        min-height: 72px;
    }

    .brand img,
    .student-brand img {
        width: 170px;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .main-nav {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 82px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: rgba(10,12,18,.97);
        border: 1px solid var(--line);
        border-radius: 24px;
        padding: 12px;
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .hero {
        padding-top: 36px;
    }

    .hero-card img {
        height: 380px;
    }

    .hero-floating {
        grid-template-columns: 1fr;
    }

    .grid-2,
    .grid-3,
    .course-grid,
    .feature-grid,
    .form-grid,
    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        display: block;
    }

    .student-header-wrap {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 0;
    }

    .student-nav {
        width: 100%;
        overflow-x: auto;
    }

    .admin-content,
    .admin-topbar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 70;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        background: rgba(5,5,6,.94);
        border: 1px solid var(--line);
        border-radius: 22px;
        padding: 8px;
        backdrop-filter: blur(16px);
        box-shadow: var(--shadow);
    }

    .mobile-bottom-nav a {
        display: grid;
        place-items: center;
        gap: 2px;
        font-size: 1.15rem;
        color: var(--yellow);
        padding: 6px 2px;
        border-radius: 16px;
    }

    .mobile-bottom-nav span {
        font-size: .72rem;
        color: #d6d9df;
    }
}

/* ===== V2 EAD TL Celulares ===== */
.brand img,
.student-brand img,
.admin-logo img,
.login-card img {
    filter: drop-shadow(0 18px 36px rgba(0,0,0,.42));
}

.course-sales-page {
    padding-top: 42px;
}

.ead-sales-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 32px;
    align-items: start;
}

.ead-sales-main h1,
.ead-course-hero h1,
.ead-lesson-content h1 {
    font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.ead-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.ead-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    color: #f5f6f9;
    font-weight: 800;
}

.ead-preview-player,
.ead-player-card {
    border-radius: 30px;
    padding: 10px;
    background:
        linear-gradient(135deg, rgba(255,213,31,.25), rgba(228,45,52,.16)),
        rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.13);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ead-preview-player video,
.ead-player video,
.ead-preview-player .preview-placeholder,
.ead-player .preview-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    overflow: hidden;
    background: #050506;
    object-fit: cover;
}

.ead-buy-card {
    position: sticky;
    top: 106px;
}

.ead-buy-card > img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 22px;
    margin-bottom: 16px;
}

.ead-course-page {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.ead-course-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 28px;
}

.ead-course-hero,
.ead-progress-card,
.ead-sidebar-card,
.ead-module-card,
.ead-lesson-content {
    border: 1px solid rgba(255,255,255,.12);
    background:
        radial-gradient(circle at top left, rgba(255,213,31,.13), transparent 38%),
        linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
    border-radius: 32px;
    box-shadow: 0 22px 60px rgba(0,0,0,.24);
}

.ead-course-hero {
    padding: 30px;
}

.ead-progress-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.ead-progress-card strong {
    color: var(--yellow);
    font-size: 4rem;
    line-height: 1;
}

.ead-progress-card span {
    color: var(--muted);
    font-weight: 700;
}

.ead-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.ead-sidebar-card {
    padding: 20px;
    position: sticky;
    top: 108px;
}

.ead-sidebar-card img {
    border-radius: 22px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin-bottom: 18px;
}

.ead-sidebar-card p {
    color: var(--muted);
}

.ead-curriculum {
    display: grid;
    gap: 18px;
}

.public-curriculum {
    margin-top: 24px;
}

.ead-module-card {
    padding: 22px;
}

.ead-module-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.ead-module-head span {
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
    font-weight: 900;
}

.ead-module-head h2 {
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    margin-bottom: 0;
}

.ead-module-head strong {
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(255,213,31,.13);
    color: var(--yellow);
    border: 1px solid rgba(255,213,31,.24);
    padding: 9px 13px;
}

.ead-lesson-link {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(0,0,0,.19);
    margin-top: 10px;
    transition: .2s ease;
}

.ead-lesson-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255,213,31,.34);
    background: rgba(255,213,31,.065);
}

.ead-lesson-link.is-done {
    border-color: rgba(36,211,102,.32);
    background: rgba(36,211,102,.06);
}

.ead-lesson-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #06070a;
    border: 1px solid rgba(255,255,255,.12);
    font-size: 1.2rem;
}

.ead-lesson-link small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.ead-lesson-link em {
    font-style: normal;
    color: #141006;
    background: var(--yellow);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
    white-space: nowrap;
}

.public-lock {
    pointer-events: none;
}

.public-lock em {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.ead-watch-shell {
    width: min(1440px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    min-height: calc(100vh - 92px);
}

.ead-watch-sidebar {
    padding: 22px;
    background: #080a0f;
    border-right: 1px solid rgba(255,255,255,.10);
    position: sticky;
    top: 0;
    align-self: start;
    min-height: calc(100vh - 92px);
}

.ead-watch-sidebar h2 {
    font-size: 1.55rem;
    margin-top: 22px;
}

.ead-watch-sidebar p {
    color: var(--muted);
}

.ead-watch-list {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.ead-watch-module {
    color: var(--yellow);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .75rem;
    margin-top: 14px;
}

.ead-watch-lesson {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    color: #e9ebf2;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
}

.ead-watch-lesson strong {
    font-size: .92rem;
    line-height: 1.25;
}

.ead-watch-lesson.active {
    background: rgba(255,213,31,.13);
    border-color: rgba(255,213,31,.32);
    color: var(--yellow);
}

.ead-watch-lesson.done {
    border-color: rgba(36,211,102,.25);
}

.ead-watch-main {
    padding: 28px;
    min-width: 0;
}

.ead-player-card {
    margin-bottom: 24px;
}

.ead-lesson-content {
    padding: 28px;
}

.ead-lesson-content .form-actions {
    margin-top: 22px;
}

@media (max-width: 980px) {
    .ead-sales-grid,
    .ead-course-hero,
    .ead-layout,
    .ead-watch-shell {
        grid-template-columns: 1fr;
    }

    .ead-buy-card,
    .ead-sidebar-card,
    .ead-watch-sidebar {
        position: static;
    }

    .ead-watch-sidebar {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.10);
    }
}

@media (max-width: 640px) {
    .ead-course-page,
    .ead-watch-main {
        width: calc(100% - 20px);
        padding-left: 0;
        padding-right: 0;
    }

    .ead-course-hero,
    .ead-progress-card,
    .ead-sidebar-card,
    .ead-module-card,
    .ead-lesson-content,
    .ead-watch-sidebar {
        border-radius: 22px;
        padding: 18px;
    }

    .ead-lesson-link {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .ead-lesson-link em {
        grid-column: 2;
        width: fit-content;
    }

    .ead-module-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ===== V3 ajustes solicitados: logo oficial, fundo black uniforme e curso mais EAD ===== */
:root {
    --logo-bg: #000000;
    --logo-bg-soft: #020305;
    --ead-panel: rgba(8, 10, 15, .96);
}

.site-header,
.student-header,
.admin-sidebar,
.site-footer {
    background: var(--logo-bg) !important;
}

.site-header {
    border-bottom: 1px solid rgba(255, 213, 31, .22);
    box-shadow: 0 18px 45px rgba(0,0,0,.38);
}

.site-footer {
    border-top: 1px solid rgba(255, 213, 31, .20);
}

.header-wrap {
    min-height: 104px;
}

.brand,
.student-brand,
.admin-logo,
.footer-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand img,
.student-brand img,
.admin-logo img,
.login-card img,
.footer-logo {
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(0,0,0,.55));
}

.brand img {
    width: 156px;
    max-height: 92px;
}

.student-brand img {
    width: 150px;
    max-height: 86px;
}

.admin-logo img {
    width: 168px;
    max-height: 136px;
    margin-left: auto;
    margin-right: auto;
}

.login-card img {
    width: 190px;
    max-height: 150px;
    margin: 0 auto 18px;
}

.footer-logo {
    width: 170px;
    max-height: 140px;
    object-fit: contain;
}

.main-nav a,
.student-nav a,
.admin-sidebar nav a {
    border: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.025);
}

.main-nav a.btn-whats,
.student-nav a.btn-whats {
    background: linear-gradient(135deg, #23d366, #0a9f4a);
    color: #041207;
    border-color: transparent;
}

.course-sales-page,
.ead-course-page,
.ead-watch-shell {
    background:
        radial-gradient(circle at 12% 0%, rgba(255,213,31,.12), transparent 30%),
        radial-gradient(circle at 82% 5%, rgba(228,45,52,.10), transparent 28%);
}

.ead-sales-main,
.ead-course-hero,
.ead-progress-card,
.ead-sidebar-card,
.ead-module-card,
.ead-lesson-content,
.checkout-card,
.stat-card,
.admin-card,
.table-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
        var(--ead-panel) !important;
    border: 1px solid rgba(255,255,255,.12);
}

.ead-sales-main {
    border-radius: 34px;
    padding: 30px;
}

.ead-preview-player,
.ead-player-card {
    background:
        linear-gradient(135deg, rgba(255,213,31,.30), rgba(228,45,52,.20)),
        #000 !important;
    border: 1px solid rgba(255,213,31,.20);
}

.ead-module-card {
    position: relative;
    overflow: hidden;
}

.ead-module-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--yellow), var(--red));
}

.ead-module-head,
.ead-lesson-link {
    position: relative;
    z-index: 1;
}

.ead-lesson-link {
    background: rgba(0,0,0,.28);
}

.ead-watch-sidebar {
    background: #000 !important;
    border-right: 1px solid rgba(255,213,31,.18);
}

.ead-watch-main {
    background:
        radial-gradient(circle at top right, rgba(255,213,31,.10), transparent 32%),
        #050506;
}

.ead-watch-lesson.active {
    box-shadow: inset 4px 0 0 var(--yellow);
}

.install-card .flash {
    text-align: left;
}

@media (max-width: 980px) {
    .header-wrap {
        min-height: 88px;
    }

    .brand img,
    .student-brand img {
        width: 122px;
        max-height: 76px;
    }

    .main-nav {
        background: #000 !important;
        border: 1px solid rgba(255,213,31,.18);
    }
}


/* ===== V4: header/footer com a mesma cor do fundo da logo + instalador automático ===== */
:root {
    --logo-bg: #000000;
}
.site-header,
.student-header,
.admin-sidebar,
.site-footer,
.login-shell {
    background: #000000 !important;
}
.site-header::before,
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,213,31,.06), transparent 38%, rgba(228,45,52,.06));
}
.site-header,
.site-footer {
    position: relative;
}
.brand img,
.student-brand img,
.admin-logo img,
.login-card img,
.footer-logo {
    background: #000000;
    border-radius: 18px;
    padding: 4px;
}
.brand img {
    width: 190px;
    max-height: 98px;
}
.ead-watch-layout,
.course-player-card,
.lesson-player-card,
.ead-module-card {
    background: rgba(7, 8, 12, .98);
    border-color: rgba(255,213,31,.16);
}

/* ===== V6: login dividido admin/aluno + vídeos por link ou upload ===== */
.login-choice-section {
    min-height: calc(100vh - 104px);
    display: grid;
    align-items: center;
    background:
        radial-gradient(circle at 12% 4%, rgba(255,213,31,.16), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(228,45,52,.13), transparent 28%),
        #050506;
}

.login-choice-wrap {
    display: grid;
    gap: 22px;
}

.login-choice-head {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.login-choice-head img {
    width: min(260px, 70vw);
    margin: 0 auto 18px;
    background: #000;
    border-radius: 24px;
    padding: 6px;
    box-shadow: 0 22px 60px rgba(0,0,0,.35);
}

.login-choice-head h1 {
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    margin-bottom: 10px;
}

.login-choice-head p {
    color: var(--muted);
    font-size: 1.08rem;
}

.login-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.login-role-card {
    width: 100%;
    padding: 28px;
    border-radius: 34px;
    border: 1px solid rgba(255,255,255,.12);
    background:
        linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.03)),
        #0a0d13;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.login-role-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top right, rgba(255,213,31,.12), transparent 34%);
}

.admin-login-card::before {
    background: radial-gradient(circle at top right, rgba(228,45,52,.16), transparent 34%);
}

.login-role-card > * {
    position: relative;
    z-index: 1;
}

.login-role-card h2 {
    font-size: 2rem;
    margin: 8px 0 8px;
}

.login-role-card p {
    color: var(--muted);
    margin-bottom: 18px;
}

.login-role-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(255,213,31,.14);
    border: 1px solid rgba(255,213,31,.25);
    font-size: 1.7rem;
    margin-bottom: 12px;
}

.signup-wide-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border-radius: 30px;
    border: 1px solid rgba(255,213,31,.18);
    background:
        linear-gradient(90deg, rgba(255,213,31,.13), rgba(228,45,52,.09)),
        #090b10;
}

.signup-wide-card h2 {
    font-size: 1.7rem;
}

.signup-wide-card p {
    margin: 4px 0 0;
    color: var(--muted);
}

.video-source-box {
    border: 1px solid rgba(255,213,31,.18);
    border-radius: 24px;
    padding: 18px;
    background: rgba(0,0,0,.24);
}

.video-source-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 14px;
}

.video-source-tabs label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    cursor: pointer;
}

.video-source-tabs input {
    width: auto;
}

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

.video-source-grid > div {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.09);
}

.video-source-grid strong {
    display: block;
    margin-bottom: 8px;
    color: var(--yellow);
}

.form-group small,
.video-source-grid small,
.current-video-note {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: .9rem;
}

.current-video-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.045);
}

.current-video-note code {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.current-video-note input {
    width: auto;
}

.video-embed-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 320px;
    border: 0;
    border-radius: 22px;
    background: #000;
    display: block;
}

.ead-preview-player .video-embed-frame,
.ead-player .video-embed-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
}

@media (max-width: 900px) {
    .login-choice-grid,
    .video-source-grid {
        grid-template-columns: 1fr;
    }

    .signup-wide-card {
        align-items: stretch;
        flex-direction: column;
    }
}
