/*
Theme Name: Magnus Course
Author: Leandro
Version: 1.3.3
Description: Tema próprio e minimalista para plataformas de cursos online. Player de vídeo, sidebar com módulos e aulas, barra de progresso que acompanha o aluno, comentários em cada aula, disponibilidade de curso gratuito e curso pago protegida por login. Visual escuro com destaque em vermelho.
*/

/* ============================================================
   WP Definitivo 2.0 — Design System
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
    /* Backgrounds */
    --bg-0: #07090c;
    --bg-1: #0b0e13;
    --bg-2: #10141b;
    --bg-3: #161b23;
    --bg-4: #1d232c;

    /* Lines */
    --line:   rgba(255, 255, 255, 0.06);
    --line-2: rgba(255, 255, 255, 0.09);
    --line-3: rgba(255, 255, 255, 0.14);

    /* Foregrounds */
    --fg-0: #f5f7fa;
    --fg-1: #c9d1dc;
    --fg-2: #8691a1;
    --fg-3: #5a6473;
    --fg-4: #3a4250;

    /* Accent (vermelho refinado) */
    --accent:      #ef4c54;
    --accent-2:    #ff6a70;
    --accent-dark: #b32229;
    --accent-soft: rgba(239, 76, 84, 0.14);
    --accent-line: rgba(239, 76, 84, 0.35);
    --accent-glow: rgba(239, 76, 84, 0.45);

    /* Status */
    --success:      #3ddc84;
    --success-soft: rgba(61, 220, 132, 0.12);

    /* Radius */
    --radius-sm: 8px;
    --radius:    12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --ease: cubic-bezier(.22, .61, .36, 1);

    /* Legacy aliases (compat com termos/privacidade/etc) */
    --bg-primary:   var(--bg-0);
    --bg-surface:   var(--bg-1);
    --bg-elevated:  var(--bg-3);
    --border:       var(--line-2);
    --text-primary: var(--fg-0);
    --text-muted:   var(--fg-1);
    --text-faint:   var(--fg-3);
    --color-link:       var(--accent-2);
    --color-link-hover: var(--accent);
    --color-purple:       #7c3aed;
    --color-purple-light: #a855f7;
}

/* ---------- BASE ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-feature-settings: "cv11", "ss01", "ss03";
    background: var(--bg-0);
    color: var(--fg-1);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Ambient background glow */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(239, 76, 84, 0.06), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(90, 120, 255, 0.04), transparent 60%);
}

body > * { position: relative; z-index: 1; }

button {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

a { color: inherit; text-decoration: none; }

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 10px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: #2a313c; }
/* Firefox */
html { scrollbar-color: var(--bg-4) transparent; scrollbar-width: thin; }

/* Páginas com fundo claro (single post) — barra clara para contraste.
   Aplicado no <html> via filtro language_attributes em functions.php
   porque a scrollbar do viewport pertence ao html, não ao body. */
html.theme-light::-webkit-scrollbar-track { background: #eef0f4; }
html.theme-light::-webkit-scrollbar-thumb { background: #b6bdca; border: 2px solid #eef0f4; border-radius: 10px; }
html.theme-light::-webkit-scrollbar-thumb:hover { background: #8a93a3; }
html.theme-light { scrollbar-color: #b6bdca #eef0f4; }

.page { flex: 1; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
    background: rgba(11, 14, 19, 0.75);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
}

.topbar-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 13px;
    color: #fff;
    letter-spacing: -0.5px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 6px 14px -6px var(--accent-glow);
}

.logo {
    font-weight: 700;
    font-size: 14.5px;
    letter-spacing: -0.02em;
    color: var(--fg-0);
    white-space: nowrap;
}

.brand-tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--accent-2);
    background: var(--accent-soft);
    padding: 3px 7px;
    border-radius: 4px;
    border: 1px solid var(--accent-line);
    text-transform: uppercase;
}

/* Menu */
.menu {
    display: flex;
    gap: 4px;
    margin-left: 8px;
}
.menu-header { display: none; }

.menu a {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--fg-2);
    transition: all .18s var(--ease);
}

.menu a:hover { color: var(--fg-0); background: var(--bg-2); }
.menu a.active { color: var(--fg-0); background: var(--bg-3); }

/* Menu toggle (mobile) */
.menu-toggle {
    display: none;
    font-size: 20px;
    width: 36px;
    height: 36px;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--fg-1);
    cursor: pointer;
    user-select: none;
}

.menu-toggle:hover { background: var(--bg-2); color: var(--fg-0); }

/* Topbar right */
.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2c3544, #1a1f28);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--fg-0);
    border: 1px solid var(--line-2);
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
    transition: border-color 0.15s ease, opacity 0.15s ease;
}
.avatar:hover { border-color: var(--accent); opacity: 0.85; }

.topbar-login {
    font-size: 14px;
    font-weight: 500;
    color: var(--fg-2);
    text-decoration: none;
    transition: color 0.15s ease;
    white-space: nowrap;
}
.topbar-login:hover { color: var(--fg-1); }

/* Progress chip (topbar) */
.progress-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    font-size: 12.5px;
    color: var(--fg-1);
}

.progress-chip-bar {
    width: 80px;
    height: 5px;
    border-radius: 3px;
    background: var(--bg-4);
    overflow: hidden;
    position: relative;
}

.progress-chip-bar > span {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 3px;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: width .4s var(--ease);
}

.progress-chip-pct {
    font-size: 11.5px;
    color: var(--fg-0);
    font-weight: 600;
}

/* ============================================================
   OVERLAY + SIDEBAR
   ============================================================ */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: opacity .3s, visibility .3s;
}

.overlay.open { opacity: 1; visibility: visible; }

/* Sidebar (mobile / simple pages): slide-in drawer */
.sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 300px;
    display: flex;
    flex-direction: column;
    background: var(--bg-1);
    border-right: 1px solid var(--line);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform .3s var(--ease);
    overflow-y: auto;
    font-size: 14px;
}

.sidebar.open { transform: translateX(0); }

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}

.close-sidebar {
    background: transparent;
    border: 1px solid var(--line-2);
    color: var(--fg-1);
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
}

.close-sidebar:hover { background: var(--bg-2); color: var(--fg-0); }

.mobile-menu {
    padding: 10px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}

.mobile-menu a {
    display: block;
    padding: 8px 10px;
    margin-bottom: 2px;
    font-size: 14px;
    color: var(--fg-1);
    border-radius: 8px;
    transition: background .2s, color .2s;
}

.mobile-menu a:hover { background: var(--bg-3); color: var(--fg-0); }

/* ============================================================
   COURSE PAGE: sidebar inline no desktop
   ============================================================ */
.course-page .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 28px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
}

.course-page .content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.course-page .main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

@media (min-width: 981px) {
    .course-page #sidebar-wrapper { position: sticky; top: 80px; align-self: start; }

    .course-page .sidebar {
        position: relative;
        left: auto; top: auto; bottom: auto;
        width: auto;
        max-height: calc(100vh - 110px);
        transform: none;
        transition: none;
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        overflow: hidden;
    }

    .course-page .sidebar-header,
    .course-page .mobile-menu { display: none; }
}

/* ============================================================
   CRONOGRAMA / MÓDULOS
   ============================================================ */
.course-box {
    padding: 16px 18px 14px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.course-box > span:first-child {
    font-size: 11px;
    font-weight: 600;
    color: var(--fg-3);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.course-box-stats {
    font-size: 11px;
    color: var(--fg-2);
}

.course-box-stats b { color: var(--fg-0); font-weight: 600; }

/* Sidebar progress */
.sidebar-progress {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}

.sidebar-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.sidebar-progress-label {
    font-size: 12px;
    color: var(--fg-2);
    font-weight: 500;
}

.sidebar-progress-val {
    font-size: 13px;
    font-weight: 600;
    color: var(--fg-0);
}

.sidebar-progress-bar {
    height: 6px;
    border-radius: 4px;
    background: var(--bg-3);
    overflow: hidden;
    position: relative;
}

.sidebar-progress-bar > span {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 4px;
    box-shadow: 0 0 12px var(--accent-glow);
    transition: width .5s var(--ease);
}

.modules-box {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

#modulos {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Module */
.module {
    border-radius: 10px;
    overflow: hidden;
    transition: background .2s var(--ease);
}

.module.open { background: var(--bg-2); }

.module-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 10px;
    background: transparent;
    transition: background .18s var(--ease);
}

.module-title:hover { background: var(--bg-2); }

.module-title-inner {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.module-eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-3);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.module-free-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(16, 185, 129, 0.14));
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #34d399;
    line-height: 1;
}

.module-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--fg-0);
    letter-spacing: -0.005em;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* chevron */
.arrow {
    flex-shrink: 0;
    color: var(--fg-3);
    transition: transform .25s var(--ease), color .2s;
    display: grid;
    place-items: center;
}

.module-title:hover .arrow { color: var(--fg-1); }
.module.open .arrow { transform: rotate(90deg); color: var(--fg-1); }

/* content collapse */
.module-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s var(--ease);
}

.module-content.open { max-height: 6000px; }

/* Lessons */
.lesson {
    display: grid;
    grid-template-columns: 16px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 12px 8px 14px;
    margin: 2px 6px;
    border-radius: 7px;
    font-size: 13px;
    color: var(--fg-1);
    cursor: pointer;
    position: relative;
    transition: background .15s var(--ease), color .15s var(--ease);
}

.lesson:hover { background: var(--bg-3); color: var(--fg-0); }

.lesson.active {
    background: linear-gradient(90deg, rgba(239, 76, 84, 0.14), rgba(239, 76, 84, 0.04));
    color: #fff;
    font-weight: 600;
}

.lesson.active::before {
    content: "";
    position: absolute;
    left: -2px; top: 8px; bottom: 8px;
    width: 2px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent-glow);
}

/* Lesson bullet (left) */
.lesson::after { content: none; } /* reset old ::after check */

.lesson .lesson-bullet {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1.5px solid var(--fg-4);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: all .2s var(--ease);
}

.lesson.active .lesson-bullet { border-color: var(--accent); }
.lesson.active .lesson-bullet::after {
    content: "";
    width: 6px; height: 6px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent-glow);
    animation: pulseDot 2s ease-in-out infinite;
}

.lesson.lesson-done .lesson-bullet {
    border-color: var(--success);
    background: var(--success);
    color: var(--bg-0);
}

.lesson-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.2); opacity: .7; }
}

/* ============================================================
   COURSE MAIN CONTENT (player, ações, descrição)
   ============================================================ */
.player-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    color: var(--fg-1);
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    cursor: pointer;
    white-space: nowrap;
    transition: all .16s var(--ease);
}

.player-nav-btn:hover {
    background: var(--bg-3);
    color: var(--fg-0);
    border-color: var(--line-3);
}

.player-nav-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.player-nav-concluir {
    margin-left: auto;
    background: var(--bg-2);
    border: 1px dashed var(--line-3);
    color: var(--fg-1);
}

.player-nav-concluir:hover {
    border-style: solid;
    border-color: rgba(61, 220, 132, 0.35);
    color: var(--success);
    background: var(--success-soft);
}

.player-nav-concluir.concluida {
    background: var(--success-soft);
    border: 1px solid rgba(61, 220, 132, 0.3);
    color: var(--success);
}

/* Video iframe wrap */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000;
    border: 1px solid var(--line-2);
    box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.8);
}

.video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 3;
}

/* Player poster (visível antes do play) */
.player-canvas {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(239, 76, 84, 0.25), transparent 60%),
        radial-gradient(ellipse at 70% 70%, rgba(60, 100, 255, 0.15), transparent 60%),
        linear-gradient(180deg, #0e1117 0%, #05070a 100%);
    display: grid;
    place-items: center;
    overflow: hidden;
    z-index: 1;
}

.player-canvas::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask: radial-gradient(ellipse at center, black 30%, transparent 80%);
            mask: radial-gradient(ellipse at center, black 30%, transparent 80%);
    pointer-events: none;
}

.player-poster {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px;
    max-width: 640px;
}

.player-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 14px;
}

.player-title {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #fff;
    text-wrap: balance;
}

.player-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: var(--fg-2);
    line-height: 1.5;
}

.player-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 76px; height: 76px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: grid;
    place-items: center;
    color: #fff;
    cursor: pointer;
    z-index: 2;
    transition: all .25s var(--ease);
}

.player-play-btn svg { margin-left: 4px; }

.player-play-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 0 40px var(--accent-glow);
}

/* Estado "tocando" — some poster e botão */
.video-container.is-playing .player-canvas,
.video-container.is-playing .player-play-btn {
    opacity: 0;
    pointer-events: none;
}

.player-canvas,
.player-play-btn {
    transition: opacity .35s var(--ease);
}

/* Box (descrição) */
.box {
    background: var(--bg-1);
    padding: 24px 26px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
}

.box p { color: var(--fg-1); line-height: 1.7; }
.box p:last-child { margin-bottom: 0; }
.box h1, .box h2, .box h3 { color: var(--fg-0); margin-top: 0; letter-spacing: -0.01em; }
.box h2 { font-size: 1.25rem; margin-bottom: 14px; }
.box a { color: var(--accent-2); font-weight: 500; }
.box a:hover { color: var(--accent); text-decoration: underline; }

/* Banner CTA — Plano PRO */
.banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(239, 76, 84, 0.22), transparent 55%),
        linear-gradient(135deg, rgba(239, 76, 84, 0.12), rgba(239, 76, 84, 0.04) 60%, rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(239, 76, 84, 0.38);
    border-radius: var(--radius-lg);
    color: var(--fg-0);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(239, 76, 84, 0.05), 0 8px 28px -14px rgba(239, 76, 84, 0.55);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
    isolation: isolate;
}
.banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .9s var(--ease);
    pointer-events: none;
    z-index: 0;
}
.banner:hover {
    transform: translateY(-1px);
    border-color: rgba(239, 76, 84, 0.6);
    box-shadow: 0 0 0 1px rgba(239, 76, 84, 0.1), 0 14px 36px -14px rgba(239, 76, 84, 0.7);
}
.banner:hover::before { transform: translateX(100%); }
.banner:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.banner-glow {
    position: absolute;
    top: -40%; right: -10%;
    width: 260px; height: 260px;
    background: radial-gradient(closest-side, rgba(239, 76, 84, 0.35), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
    z-index: 0;
}
.banner-icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 40px; height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #c82d35);
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(239, 76, 84, 0.8), inset 0 1px 0 rgba(255,255,255,0.2);
}
.banner-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
    text-align: left;
}
.banner-eyebrow {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}
.banner-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--fg-0);
    line-height: 1.35;
    letter-spacing: -0.005em;
}
.banner-cta {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 14px -4px rgba(239, 76, 84, 0.7);
    transition: background .2s var(--ease), transform .2s var(--ease);
}
.banner-cta svg { transition: transform .2s var(--ease); }
.banner:hover .banner-cta { background: #ff5a63; }
.banner:hover .banner-cta svg { transform: translateX(3px); }

@media (max-width: 640px) {
    .banner { flex-wrap: wrap; gap: 12px 14px; padding: 16px; }
    .banner-text { flex: 1 1 calc(100% - 58px); }
    .banner-cta { width: 100%; justify-content: center; }
    .banner-title { font-size: 14px; }
}

/* ============================================================
   SIMPLE PAGES (contato, quemsou, legal, etc)
   ============================================================ */
.page-content {
    max-width: 860px;
    margin: 40px auto;
    padding: 0 24px;
    flex: 1;
    width: 100%;
}

.page-content .box { margin-top: 0; }
.page-content h1 { font-size: 2rem; font-weight: 700; color: var(--fg-0); letter-spacing: -0.02em; margin: 0 0 12px; }
.page-content p { color: var(--fg-1); }

/* CTA button (legacy) */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 14px 28px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius);
    text-decoration: none;
    border: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 8px 20px -8px var(--accent-glow);
    transition: background .2s, transform .2s;
}

.cta-button:hover { background: var(--accent-2); transform: translateY(-2px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    margin-top: 48px;
    border-top: 1px solid var(--line);
    padding: 20px 28px;
}

.footer-content {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 12.5px;
    color: var(--fg-3);
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--fg-3); transition: color .2s; }
.footer-links a:hover { color: var(--fg-1); }

/* ============================================================
   LOADING
   ============================================================ */
#loading {
    position: fixed;
    inset: 0;
    background: rgba(7, 9, 12, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

#loading.open { opacity: 1; visibility: visible; }

.spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--line-2);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   LANDING PAGES (hospedagem, pro, quemsou)
   ============================================================ */
.lp-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.lp-hero {
    background:
        radial-gradient(ellipse at 30% 30%, rgba(239, 76, 84, 0.12), transparent 55%),
        radial-gradient(ellipse at 80% 90%, rgba(90, 120, 255, 0.08), transparent 55%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
    border-bottom: 1px solid var(--line);
    padding: 64px 24px 72px;
    text-align: center;
    overflow: hidden;
}

.lp-hero-inner {
    max-width: 760px;
    margin: 0 auto;
}

.lp-eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-2);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.lp-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--fg-0);
    margin: 0 0 18px;
    text-wrap: balance;
}

.lp-hero h1 em,
.lp-hero h1 span {
    font-style: normal;
    color: var(--accent-2);
}

.lp-hero p {
    font-size: 1.02rem;
    color: var(--fg-2);
    line-height: 1.7;
    margin: 0 auto 32px;
    max-width: 760px;
}

.lp-cta-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 640px;
    margin: 0 auto;
}

.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    min-height: 48px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
    flex: 1 1 200px;
    transition: all .2s var(--ease);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 10px 24px -10px var(--accent-glow);
}

.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }

.btn-outline {
    border: 1px solid var(--line-3);
    color: var(--fg-0);
    background: var(--bg-2);
}

.btn-outline:hover { background: var(--bg-3); border-color: var(--fg-3); }

.lp-section { padding: 64px 0; }
.lp-section + .lp-section { border-top: 1px solid var(--line); }

.lp-section-header {
    margin-bottom: 40px;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(239, 76, 84, 0.06), rgba(59, 130, 246, 0.04));
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-lg);
}

.lp-section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 12px;
}

.lp-section-header h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    color: var(--fg-0);
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    line-height: 1.25;
    text-wrap: balance;
}

.lp-section-header p {
    color: var(--fg-2);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Hosting card (inline grid) */
.hosting-card {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 320px 1fr;
}

.hosting-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hosting-card-body {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.hosting-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    font-size: 11px;
    font-weight: 600;
    color: var(--success);
    background: var(--success-soft);
    border: 1px solid rgba(61, 220, 132, 0.25);
    border-radius: 999px;
    padding: 4px 12px;
}

.hosting-card-body h2 { font-size: 1.4rem; font-weight: 700; color: var(--fg-0); margin: 0; }
.hosting-card-body p  { color: var(--fg-2); font-size: 0.95rem; line-height: 1.7; margin: 0; }

/* Videos grid (hospedagem, quemsou) */
.videos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.video-card {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.video-card:hover { border-color: var(--line-3); transform: translateY(-2px); }

.video-card-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

.video-card-embed iframe,
.video-card-embed .wpdef-video-facade,
.video-card-embed .wpdef-video-facade img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.wpdef-video-facade {
    display: block;
    cursor: pointer;
    text-decoration: none;
    background: #000;
}
.wpdef-video-facade img {
    object-fit: cover;
    transition: opacity .2s ease;
}
.wpdef-video-facade:hover img { opacity: .82; }
.wpdef-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    pointer-events: none;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
    transition: transform .15s ease;
}
.wpdef-video-facade:hover .wpdef-video-play { transform: translate(-50%, -50%) scale(1.1); }
.wpdef-video-play svg { width: 100%; height: 100%; }

.video-card-info { padding: 20px; }
.video-card-info h3 { font-size: 1.02rem; font-weight: 700; color: var(--fg-0); margin: 0 0 8px; letter-spacing: -0.01em; }
.video-card-info p  { font-size: 0.9rem; color: var(--fg-2); line-height: 1.65; margin: 0; }
.video-card-info a  { color: var(--accent-2); font-weight: 600; transition: color .2s; }
.video-card-info a:hover { color: var(--accent); text-decoration: underline; }

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.feature-card {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all .2s var(--ease);
}

.feature-card:hover { border-color: var(--line-3); background: var(--bg-2); }

.feature-icon {
    width: 44px; height: 44px;
    background: var(--accent-soft);
    border-radius: 10px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    color: var(--accent-2);
}

.feature-icon svg {
    width: 22px; height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--fg-0); margin: 0 0 8px; }
.feature-card p  { font-size: 0.88rem; color: var(--fg-2); line-height: 1.65; margin: 0; }

/* Final CTA */
.lp-cta-final {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: var(--radius-xl);
    padding: 56px 40px;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 60px -20px var(--accent-glow);
}

.lp-cta-final h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    margin: 0 0 14px;
    color: #fff;
    letter-spacing: -0.01em;
}

.lp-cta-final p {
    font-size: 0.97rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto 28px;
    max-width: 520px;
    line-height: 1.7;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    background: #fff;
    color: var(--accent-dark);
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius);
    text-decoration: none;
    transition: opacity .2s, transform .2s;
}

.btn-white:hover { opacity: .92; transform: translateY(-2px); }

/* ============================================================
   QUEM SOU
   ============================================================ */
.qs-bio {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 20px;
}

.qs-bio-stats { display: flex; flex-direction: column; gap: 16px; }

.qs-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all .2s var(--ease);
}

.qs-stat:hover { border-color: var(--line-3); }

.qs-stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--fg-0);
    line-height: 1;
    letter-spacing: -0.02em;
}

.qs-stat-sym { font-size: 1.2rem; color: var(--accent-2); }

.qs-stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--fg-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.qs-bio-text { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.qs-bio-text p { color: var(--fg-1); line-height: 1.8; margin: 0; font-size: 0.97rem; }
.qs-bio-text strong { color: var(--fg-0); }

/* ============================================================
   PRO (pricing)
   ============================================================ */
.pro-content {
    max-width: 980px !important;
    margin: 0 auto !important;
    padding: 64px 24px !important;
}

.pricing-section {
    max-width: 980px !important;
    margin: 0 auto !important;
    padding: 0 24px 80px !important;
}

.pricing-card {
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-purple-light) 100%);
    border-radius: var(--radius-xl);
    padding: 56px 44px;
    box-shadow: 0 20px 60px -20px rgba(124, 58, 237, 0.4);
    overflow: hidden;
    position: relative;
}

.pricing-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 0%, rgba(255, 255, 255, 0.12), transparent 60%);
    pointer-events: none;
}

.pricing-header { margin-bottom: 40px; text-align: center; position: relative; }

.pricing-header h3 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.pricing-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
}

.pricing-content { margin-bottom: 40px; position: relative; }

.pricing-modules {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pricing-modules li {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.97rem;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    line-height: 1.5;
}

.pricing-modules li:last-child { border-bottom: none; }

.pricing-footer { text-align: center; position: relative; }

.pricing-price {
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 22px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.btn-pricing-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 44px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
    transition: all .3s var(--ease);
    min-height: 52px;
    backdrop-filter: blur(10px);
}

.btn-pricing-cta:hover {
    background: #fff;
    color: var(--color-purple);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.2);
}

/* ============================================================
   OBRIGADO (pos-checkout)
   ============================================================ */

/* Hero */
.obr-hero {
    background:
        radial-gradient(ellipse at 50% -10%, rgba(239, 76, 84, 0.22), transparent 60%),
        radial-gradient(ellipse at 80% 110%, rgba(124, 58, 237, 0.12), transparent 55%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
    border-bottom: 1px solid var(--line);
    padding: 56px 0 80px;
    overflow: hidden;
    position: relative;
}

.obr-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 0 0 44px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 56px;
}

.obr-hero-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--fg-2);
}

.obr-order {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 10px 18px;
    border-radius: var(--radius);
    background: var(--bg-2);
    border: 1px solid var(--line-2);
}

.obr-order-item { display: flex; flex-direction: column; gap: 2px; }

.obr-order-k {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fg-3);
}

.obr-order-v {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--fg-0);
    letter-spacing: 0.04em;
}

.obr-order-v-ok { color: var(--success); }

.obr-order-div {
    width: 1px;
    height: 28px;
    background: var(--line-2);
}

.obr-hero-title {
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1;
    margin: 0 0 28px;
    text-align: center;
    text-wrap: balance;
    color: var(--fg-0);
}

.obr-hero-title em {
    font-style: italic;
    font-weight: 300;
    color: var(--fg-2);
    font-family: Georgia, 'Times New Roman', serif;
}

.obr-hero-title span {
    background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 50%, var(--color-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 32px rgba(239, 76, 84, 0.35));
}

.obr-hero-sub {
    max-width: 640px;
    margin: 0 auto 36px;
    text-align: center;
    font-size: 1.05rem;
    color: var(--fg-2);
    line-height: 1.7;
    text-wrap: pretty;
}

.obr-hero-sub strong { color: var(--fg-0); }

.obr-chips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.obr-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    font-size: 13px;
    font-weight: 500;
    color: var(--fg-1);
}

.obr-chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

/* Trilha */
.obr-trail {
    padding: 80px 0 48px;
    background: var(--bg-0);
    position: relative;
}

.obr-trail-head {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 72px;
}

.obr-trail-head-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-3), transparent);
}

.obr-trail-head-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.obr-trail-head-kicker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.obr-trail-head-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fg-0);
    letter-spacing: -0.01em;
}

.obr-step {
    display: grid;
    grid-template-columns: minmax(240px, 380px) 1fr;
    gap: 48px;
    margin-bottom: 56px;
    position: relative;
}

.obr-step:last-child { margin-bottom: 0; }

.obr-step-num-col {
    align-self: flex-start;
    height: fit-content;
}

.obr-step-num {
    position: relative;
    line-height: 0.9;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 900;
    font-size: clamp(7rem, 14vw, 12rem);
    letter-spacing: -0.08em;
}

.obr-step-num-outline {
    position: absolute;
    inset: 0;
    -webkit-text-stroke: 1.5px var(--accent-line);
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.obr-step-num-fill {
    position: relative;
    background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 55%, rgba(239, 76, 84, 0.15) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 32px rgba(239, 76, 84, 0.35));
}

.obr-step-content {
    padding-top: 36px;
    padding-bottom: 48px;
}

.obr-step-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-soft), rgba(124, 58, 237, 0.12));
    border: 1px solid var(--accent-line);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 20px;
}

.obr-step-label-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.obr-step-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 16px;
    color: var(--fg-0);
    text-wrap: balance;
}

.obr-step-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--fg-2);
    max-width: 560px;
    margin: 0 0 28px;
    text-wrap: pretty;
}

.obr-sub {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 28px;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
}

.obr-sub-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.obr-sub-bullet {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent-soft), rgba(124, 58, 237, 0.14));
    border: 1px solid var(--accent-line);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-2);
}

.obr-sub-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--fg-0);
    margin-bottom: 2px;
}

.obr-sub-body {
    font-size: 0.9rem;
    color: var(--fg-2);
    line-height: 1.55;
}

.obr-step-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: var(--radius);
    border: 1px solid var(--accent-line);
    background: linear-gradient(135deg, var(--accent-soft), rgba(239, 76, 84, 0.04));
    color: var(--fg-0);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: all .2s var(--ease);
}

.obr-step-cta:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(239, 76, 84, 0.22), rgba(239, 76, 84, 0.08));
    transform: translateY(-1px);
}

.obr-step-cta-arrow { transition: transform .2s var(--ease); display: inline-block; }
.obr-step-cta:hover .obr-step-cta-arrow { transform: translate(2px, -2px); }

/* Plataformas — duas colunas paralelas (cada uma com seu próprio número) */
.obr-step-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    margin-bottom: 56px;
}

.obr-step-split .obr-step {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 0;
    margin-bottom: 0;
}

.obr-step-split .obr-step-num-col {
    margin-bottom: 4px;
}

.obr-step-split .obr-step-num {
    font-size: clamp(5rem, 10vw, 8rem);
}

.obr-step-split .obr-step-content {
    padding-top: 0;
    padding-bottom: 0;
}

/* Item destacado (verde) — dentro do mesmo bloco .obr-sub */
.obr-sub-item-green {
    padding: 14px 16px;
    margin: 0 -4px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.10), rgba(16, 185, 129, 0.04));
    border: 1px solid rgba(34, 197, 94, 0.28);
    border-radius: 12px;
}

.obr-sub-item-green .obr-sub-bullet {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.24), rgba(16, 185, 129, 0.14));
    border: 1px solid rgba(34, 197, 94, 0.42);
    color: #34d399;
}

/* Final */
.obr-final {
    text-align: center;
    padding: 96px 24px 72px;
    max-width: 880px;
    margin: 0 auto;
    position: relative;
}

.obr-final-inf {
    font-size: clamp(6rem, 12vw, 10rem);
    line-height: 1;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 900;
    background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 55%, rgba(239, 76, 84, 0.1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 48px rgba(239, 76, 84, 0.4));
    margin-bottom: 16px;
}

.obr-final-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 36px;
    color: var(--fg-0);
    text-wrap: balance;
}

.obr-final-title em {
    font-style: italic;
    font-weight: 400;
    font-family: Georgia, 'Times New Roman', serif;
    background: linear-gradient(135deg, var(--accent-2), var(--color-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.obr-final-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 38px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--color-purple) 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 20px 60px -10px rgba(239, 76, 84, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    transition: all .2s var(--ease);
}

.obr-final-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 68px -8px rgba(239, 76, 84, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.obr-final-links {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.obr-final-links a {
    color: var(--fg-2);
    font-size: 13px;
    text-decoration: underline;
    text-decoration-color: var(--line-3);
    text-underline-offset: 4px;
    transition: color .2s var(--ease);
}

.obr-final-links a:hover { color: var(--fg-0); text-decoration-color: var(--fg-3); }
.obr-final-links-dot { color: var(--fg-4); }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 980px) {
    .course-page .container { grid-template-columns: 1fr; padding: 20px 16px; }
    .course-page #sidebar-wrapper { position: static; }
    .course-page .sidebar { position: fixed; top: 62px; max-height: none; border-radius: 0; border: none; border-right: 1px solid var(--line); }
    .course-page .sidebar-header, .course-page .mobile-menu { display: block; }
    .course-page .sidebar-header { display: flex; }
}

@media (max-width: 768px) {
    .topbar { z-index: 1001; }
    .topbar-content { padding: 12px 16px; gap: 12px; }
    .brand { order: 1; margin-left: 0; }
    .menu-toggle { display: inline-flex; order: 2; margin-left: auto; }
    .topbar-right { order: 3; margin-left: 0; }
    .brand-tag { display: none; }
    .progress-chip { display: none; }

    .menu {
        position: fixed;
        top: 62px;
        left: 0;
        height: calc(100vh - 62px);
        width: 300px;
        max-width: 85vw;
        flex-direction: column;
        gap: 4px;
        margin: 0;
        padding: 16px;
        background: var(--bg-1);
        border-right: 1px solid var(--line);
        box-shadow: 8px 0 24px -10px rgba(0,0,0,0.5);
        transform: translateX(-100%);
        opacity: 1;
        pointer-events: none;
        transition: transform 0.25s var(--ease);
        z-index: 1000;
        overflow-y: auto;
    }
    .menu.menu-open {
        transform: translateX(0);
        pointer-events: auto;
    }
    .menu a {
        padding: 12px 14px;
        font-size: 15px;
        border-radius: 10px;
    }
    .menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 4px 8px 12px;
        margin-bottom: 4px;
        border-bottom: 1px solid var(--line);
    }
    .menu-header-label {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--fg-3);
    }
    .menu-close {
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 1px solid var(--line-2);
        border-radius: 8px;
        color: var(--fg-1);
        cursor: pointer;
        transition: background 0.15s, color 0.15s;
    }
    .menu-close:hover { background: var(--bg-2); color: var(--fg-0); }

    .features-grid { grid-template-columns: 1fr; }
    .hosting-card { grid-template-columns: 1fr; }

    .qs-bio { grid-template-columns: 1fr; gap: 28px; }
    .qs-bio-stats { flex-direction: row; flex-wrap: wrap; }
    .qs-stat { flex: 1; min-width: 100px; }

    .lp-hero { padding: 48px 20px 52px; }
    .lp-cta-row { flex-direction: column; max-width: 100%; }
    .btn-primary, .btn-outline { flex: none; width: 100%; }

    .lp-section { padding: 48px 0; }
    .lp-section-header { padding: 20px; }

    .lp-cta-final { padding: 40px 24px; }

    .pricing-section { padding: 48px 16px !important; }
    .pricing-card { padding: 40px 24px; }

    .obr-hero { padding: 40px 0 56px; }
    .obr-hero-top { flex-direction: column; align-items: stretch; padding-bottom: 28px; margin-bottom: 36px; }
    .obr-order { justify-content: space-between; }
    .obr-trail { padding: 48px 0 24px; }
    .obr-trail-head { gap: 16px; margin-bottom: 40px; }
    .obr-step { grid-template-columns: 1fr; gap: 8px; margin-bottom: 56px; }
    .obr-step-num-col { position: static; text-align: left; }
    .obr-step-num { font-size: clamp(5rem, 22vw, 8rem); }
    .obr-step-content { padding-top: 0; padding-bottom: 0; }
    .obr-sub { padding: 18px 20px; }
    .obr-step-split { grid-template-columns: 1fr; gap: 32px; }
    .obr-final { padding: 64px 20px 48px; }
    .obr-final-btn { padding: 16px 28px; font-size: 13px; }

    .footer-content { flex-direction: column; gap: 12px; text-align: center; }
    .footer-links { justify-content: center; flex-wrap: wrap; gap: 14px; }

    .player-nav { flex-wrap: wrap; }
    .player-nav-concluir { margin-left: 0; flex: 1 1 100%; order: 3; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}

/* ============================================================
   LEGAL PAGES (termos, privacidade)
   ============================================================ */
.legal-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 56px 24px 96px;
}

.legal-header {
    margin-bottom: 48px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.legal-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 14px;
    color: var(--fg-0);
}
.legal-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--fg-3);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    letter-spacing: 0.02em;
}

.legal-toc {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 56px;
}
.legal-toc h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-3);
    margin: 0 0 18px;
}
.legal-toc ol {
    margin: 0;
    padding-left: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 28px;
    list-style: decimal-leading-zero;
}
.legal-toc li {
    font-size: 0.9rem;
    color: var(--fg-2);
    padding-left: 4px;
}
.legal-toc li::marker { color: var(--fg-3); font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; }
.legal-toc a {
    color: var(--fg-1);
    text-decoration: none;
    transition: color 0.15s ease;
}
.legal-toc a:hover { color: var(--accent-2); }

.legal-section { margin-bottom: 52px; scroll-margin-top: 80px; }
.legal-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fg-0);
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.legal-section h2 .section-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-2);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    border-radius: 999px;
    padding: 3px 10px;
    letter-spacing: 0.06em;
}
.legal-section p {
    color: var(--fg-1);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0 0 16px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section strong { color: var(--fg-0); font-weight: 600; }
.legal-section a { color: var(--accent-2); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }

.legal-section ul,
.legal-section ol {
    color: var(--fg-1);
    font-size: 0.95rem;
    line-height: 1.8;
    padding-left: 22px;
    margin: 0 0 16px;
}
.legal-section li { margin-bottom: 8px; }
.legal-section li:last-child { margin-bottom: 0; }
.legal-section li::marker { color: var(--fg-3); }

.legal-highlight {
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 16px 20px;
    margin: 22px 0;
    font-size: 0.9rem;
    color: var(--fg-1);
    line-height: 1.7;
}

.legal-info-box {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 22px 0;
    font-size: 0.9rem;
    color: var(--fg-1);
    line-height: 1.85;
}
.legal-info-box strong {
    color: var(--fg-0);
    display: block;
    margin-bottom: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

.legal-rights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 22px 0;
}
.legal-rights-item {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    font-size: 0.88rem;
    color: var(--fg-1);
    line-height: 1.6;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.legal-rights-item:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.legal-rights-item strong {
    color: var(--fg-0);
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.legal-footer-note {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    margin-top: 72px;
}
.legal-footer-note p {
    font-size: 0.88rem;
    color: var(--fg-3);
    line-height: 1.7;
    margin: 0 0 8px;
}
.legal-footer-note p:last-child { margin-bottom: 0; }
.legal-footer-note a { color: var(--accent-2); text-decoration: none; }
.legal-footer-note a:hover { text-decoration: underline; }

/* garante largura correta quando dentro do wrapper .page-body */
.page-termos .page-body > .legal-wrap,
.page-privacidade .page-body > .legal-wrap { max-width: 820px; }

@media (max-width: 640px) {
    .legal-toc ol { grid-template-columns: 1fr; }
    .legal-rights-grid { grid-template-columns: 1fr; }
    .legal-header h1 { font-size: 1.6rem; }
    .legal-wrap { padding: 36px 18px 64px; }
    .legal-toc { padding: 22px 20px; }
}


/* ============================================================
   AULAS LOCKED (acesso gratis/pago)
============================================================ */
.lesson-locked { opacity: 0.55; cursor: pointer; }
.lesson-locked:hover { background: var(--accent-soft); opacity: 0.85; color: var(--fg-0); }
.lesson-bullet-lock { font-size: 10px; display: inline-flex; align-items: center; justify-content: center; }

/* ============================================================
   COMENTÁRIOS (minimalista)
============================================================ */
.comments-box { margin-top: 24px; }
.comments-title { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 16px; }
.comments-empty { color: var(--fg-3); font-size: 13px; margin: 0; padding: 8px 0; }
.comment-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border-bottom: none; }
.comment-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; gap: 12px; }
.comment-head b { color: var(--fg-1); font-size: 13px; font-weight: 600; }
.comment-date { font-size: 11px; color: var(--fg-3); font-family: 'JetBrains Mono', monospace; }
.comment-body { font-size: 14px; line-height: 1.55; color: var(--fg-2); }
.comment-body p { margin: 0 0 8px; }
.comment-body p:last-child { margin: 0; }
.comment-pending { opacity: 0.6; font-style: italic; }
.comments-form { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.comments-fields-guest { display: flex; gap: 10px; flex-wrap: wrap; }
.comments-fields-guest input { flex: 1; min-width: 140px; }
.comments-form input,
.comments-form textarea { background: var(--bg-2); border: 1px solid var(--border); color: var(--fg-1); padding: 10px 12px; border-radius: 8px; font: inherit; outline: none; transition: border-color 0.15s; }
.comments-form input:focus,
.comments-form textarea:focus { border-color: var(--accent); }
.comments-form textarea { resize: vertical; min-height: 90px; font-family: inherit; }
.comments-form button { align-self: flex-end; background: var(--accent); color: #fff; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; transition: background 0.15s; }
.comments-form button:hover { background: var(--accent-2, var(--accent)); filter: brightness(1.1); }
.comments-form button:disabled { opacity: 0.5; cursor: not-allowed; }
.comments-feedback { font-size: 13px; color: var(--fg-3); padding: 8px 0; }
.comments-feedback.success { color: #4ade80; }
.comments-feedback.error { color: #f87171; }

/* ============================================================
   PAGINAS INTERNAS (page.php) - largura constrangida,
   exceto .lp-hero que mantem largura total
============================================================ */
.page-body > *:not(.lp-hero):not(.obr-hero) { max-width: 1100px; margin-left: auto; margin-right: auto; }

/* Hospedagem: conteudo ainda mais estreito (hero continua full-width) */
.page-hospedagem .page-body > *:not(.lp-hero) { max-width: 900px; }

/* Contato: paragrafo de descricao com largura reduzida */
.page-contato .page-body .box p { max-width: 640px; margin-left: auto; margin-right: auto; }

/* Contato: centraliza o card "Contato" verticalmente entre topbar e footer
   (a página tem pouco conteúdo e ficava grudada no topo). */
.page-contato .page,
.page-contato .container,
.page-contato .content,
.page-contato .main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
.page-contato .main { justify-content: center; }
.page-contato .page-body { width: 100%; }

/* ============================================================
   PMPRO — pagina /account/ e afins
============================================================ */
.page-account .page-body {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.pmpro_section {
    margin: 0 0 32px;
}
.pmpro_section .pmpro_section_title,
.pmpro_section > h2,
.pmpro_section > h3 {
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-3);
    margin: 0 0 16px;
}
.pmpro_section_content { margin: 0; }

.pmpro_card,
.pmpro .pmpro_card,
body .pmpro_card {
    background: var(--bg-1) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    color: var(--fg-1) !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease;
}
.pmpro_card:hover { border-color: var(--line-2) !important; }

.pmpro_card_content,
.pmpro .pmpro_card_content {
    padding: 28px 32px !important;
    color: var(--fg-1) !important;
    background: transparent !important;
    font-size: 0.95rem;
    line-height: 1.7;
}
.pmpro_card_content p,
.pmpro_card_content li,
.pmpro_card_content span,
.pmpro_card_content div { color: var(--fg-1) !important; }
.pmpro_card_content p { margin: 0 0 12px; }
.pmpro_card_content p:last-child { margin-bottom: 0; }
.pmpro_card_content strong { color: var(--fg-0); font-weight: 600; }
.pmpro_card_content ul { margin: 12px 0; padding-left: 22px; }
.pmpro_card_content li { margin-bottom: 6px; color: var(--fg-1); }
.pmpro_card_content a { color: var(--accent-2); text-decoration: none; }
.pmpro_card_content a:hover { text-decoration: underline; }

.pmpro_card_title,
.pmpro_card > h3,
.pmpro .pmpro_card_title,
.pmpro .pmpro_card > h3 {
    display: flex !important;
    align-items: center;
    gap: 14px;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--fg-0) !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 24px 32px 0 !important;
    border: none !important;
}
.pmpro_card_title img,
.pmpro_card > h3 img,
.pmpro_heading-with-avatar img {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
}

.pmpro_card_actions,
.pmpro .pmpro_card_actions {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 14px;
    padding: 16px 32px !important;
    background: var(--bg-2) !important;
    border-top: 1px solid var(--line) !important;
    font-size: 0.88rem;
}
.pmpro_card_action a,
.pmpro .pmpro_card_action a {
    color: var(--fg-2) !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}
.pmpro_card_action a:hover { color: var(--accent-2) !important; }
.pmpro_card_action_separator {
    color: var(--fg-4);
    user-select: none;
    font-size: 0.9em;
}

.pmpro_btn,
.pmpro_btn-submit,
input[type="submit"].pmpro_btn,
button.pmpro_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
}
.pmpro_btn:hover,
.pmpro_btn-submit:hover,
input[type="submit"].pmpro_btn:hover,
button.pmpro_btn:hover { background: #dc2626; color: #fff; }

.pmpro_message,
.pmpro_error,
.pmpro_success {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin: 0 0 20px;
    font-size: 0.9rem;
    line-height: 1.55;
}
.pmpro_message,
.pmpro .pmpro_message { background: var(--bg-1) !important; border: 1px solid var(--line) !important; color: var(--fg-2) !important; padding: 24px 28px !important; border-radius: var(--radius-lg) !important; }
.pmpro_error,
.pmpro .pmpro_error   { background: rgba(239,68,68,0.1) !important; border: 1px solid var(--accent-line) !important; color: #f87171 !important; }
.pmpro_success,
.pmpro .pmpro_success { background: rgba(34,197,94,0.08) !important; border: 1px solid rgba(34,197,94,0.3) !important; color: #4ade80 !important; }

/* Catch-all contra backgrounds brancos do PMPro */
.page-account .pmpro_box,
.page-account .pmpro_content_message,
.page-account [class*="pmpro_"]:not(a):not(button):not(input):not(.pmpro_btn):not(.pmpro_card_action_separator) {
    background-color: transparent;
}
.page-account .pmpro_card,
.page-account .pmpro_card * { color: var(--fg-1); }
.page-account .pmpro_card strong,
.page-account .pmpro_card b,
.page-account .pmpro_card_title,
.page-account .pmpro_card h1,
.page-account .pmpro_card h2,
.page-account .pmpro_card h3 { color: var(--fg-0) !important; }

.pmpro_font-large { font-size: 1.1rem; }
.pmpro_font-x-large { font-size: 1.4rem; letter-spacing: -0.01em; text-transform: none; font-family: inherit; color: var(--fg-0); }

.page-account .pmpro_section:first-of-type .pmpro_section_title,
.page-account .pmpro_section:first-of-type > h2 {
    font-family: inherit;
    font-size: 2rem;
    letter-spacing: -0.02em;
    text-transform: none;
    font-weight: 700;
    color: var(--fg-0);
    margin-bottom: 22px;
}

/* ============================================================
   ACCOUNT — /perfil/ e /senha/ (templates customizados)
============================================================ */
.account-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}
.account-back {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--fg-3);
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.15s ease;
}
.account-back:hover { color: var(--accent-2); }
.account-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fg-0);
    margin: 0 0 8px;
}
.account-lead {
    color: var(--fg-3);
    font-size: 0.95rem;
    margin: 0 0 28px;
}
.account-notice {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.account-notice-success { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.3); color: #4ade80; }
.account-notice-error   { background: rgba(239,68,68,0.1); border: 1px solid var(--accent-line); color: #f87171; }

.account-form {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.account-field { display: flex; flex-direction: column; gap: 6px; }
.account-field label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg-3);
    font-weight: 600;
}
.account-field input {
    background: var(--bg-2);
    border: 1px solid var(--border);
    color: var(--fg-0);
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 0.95rem;
    transition: border-color 0.15s ease;
}
.account-field input:focus {
    outline: none;
    border-color: var(--accent);
}
.account-field small {
    color: var(--fg-3);
    font-size: 0.8rem;
    margin-top: 2px;
}
.account-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.account-readonly {
    background: var(--bg-2);
    border: 1px dashed var(--border);
    color: var(--fg-2);
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}
.account-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}
.account-submit {
    background: var(--accent);
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.92rem;
    transition: background 0.15s ease;
}
.account-submit:hover { background: #dc2626; }
.account-cancel {
    color: var(--fg-3);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s ease;
}
.account-cancel:hover { color: var(--fg-1); }

@media (max-width: 560px) {
    .account-row { grid-template-columns: 1fr; }
}

/* ============================================================
   BLOG — /publicacoes/ (home.php) e single.php
============================================================ */
.blog-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 24px 96px;
}
.blog-header {
    text-align: center;
    margin-bottom: 64px;
}
.blog-eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 18px;
    padding: 6px 14px;
    border: 1px solid var(--accent-line);
    border-radius: 999px;
    background: var(--accent-soft);
}
.blog-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--fg-0);
    margin: 0 0 18px;
    line-height: 1.05;
}
.blog-lead {
    color: var(--fg-2);
    font-size: 1.08rem;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.post-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.post-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-3);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}
.post-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-2);
}
.post-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}
.post-card:hover .post-card-media img { transform: scale(1.04); }

.post-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
    position: relative;
}
.post-card-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 60%);
}
.post-card-placeholder span {
    position: relative;
    font-family: 'JetBrains Mono', monospace;
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.4;
}

.post-card-body {
    padding: 24px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.post-card-cat {
    align-self: flex-start;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-2);
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid var(--accent-line);
    border-radius: 999px;
    background: var(--accent-soft);
    transition: background 0.2s ease;
}
.post-card-cat:hover { background: rgba(239, 76, 84, 0.22); }

.post-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.01em;
}
.post-card-title a {
    color: var(--fg-0);
    text-decoration: none;
    transition: color 0.2s ease;
}
.post-card-title a:hover { color: var(--accent-2); }

.post-card-excerpt {
    color: var(--fg-2);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--fg-3);
    letter-spacing: 0.04em;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
}
.post-card-dot { opacity: 0.6; }

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 64px;
    flex-wrap: wrap;
}
.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--bg-1);
    color: var(--fg-2);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.blog-pagination .page-numbers:hover {
    border-color: var(--accent-line);
    color: var(--accent-2);
}
.blog-pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.blog-pagination .dots { border: none; background: transparent; }

.blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--fg-2);
    border: 1px dashed var(--line-2);
    border-radius: var(--radius-lg);
}
.blog-empty h2 { color: var(--fg-0); font-size: 1.3rem; margin: 0 0 8px; }

/* ---- Single post (single.php) — layout claro com sidebar ---- */
.single-layout {
    --sp-bg:       #ffffff;
    --sp-bg-soft:  #f5f6f8;
    --sp-card:     #ffffff;
    --sp-border:   #e5e7eb;
    --sp-border-2: #eceef1;
    --sp-fg-0:     #0f172a;
    --sp-fg-1:     #334155;
    --sp-fg-2:     #64748b;
    --sp-fg-3:     #94a3b8;
    --sp-accent:   #3b82f6;
    --sp-accent-soft: #eff6ff;

    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: var(--sp-bg);
    color: var(--sp-fg-1);
}
body { overflow-x: hidden; }

.single-hero {
    background: var(--sp-bg);
    border-bottom: 1px solid var(--sp-border-2);
}
.single-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 28px 32px;
}

.single-back {
    display: inline-block;
    font-size: 13px;
    color: var(--sp-accent);
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.15s ease;
}
.single-back:hover { color: #2563eb; }

.single-breadcrumbs { margin-bottom: 20px; }
.single-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12.5px;
    color: var(--sp-fg-3);
}
.single-breadcrumbs li { display: flex; align-items: center; }
.single-breadcrumbs li + li::before {
    content: '/';
    margin-right: 6px;
    color: var(--sp-fg-3);
    opacity: .6;
}
.single-breadcrumbs a {
    color: var(--sp-fg-2);
    text-decoration: none;
    transition: color .15s ease;
}
.single-breadcrumbs a:hover { color: var(--sp-accent); }
.single-breadcrumbs [aria-current="page"] { color: var(--sp-fg-1); font-weight: 500; }

.single-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--sp-fg-2);
    margin-bottom: 18px;
}
.single-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.single-meta-item svg { opacity: 0.8; }
.single-cat {
    color: var(--sp-accent);
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid var(--sp-accent);
    border-radius: 6px;
    background: var(--sp-accent-soft);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.single-title {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--sp-fg-0);
    line-height: 1.15;
    margin: 0 0 18px;
    max-width: 760px;
}
.single-excerpt {
    color: var(--sp-fg-1);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 28px;
    max-width: 760px;
}

.single-authorbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.single-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.single-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--sp-accent);
    flex-shrink: 0;
}
.single-author-info { display: flex; flex-direction: column; line-height: 1.3; }
.single-author-info strong { color: var(--sp-fg-0); font-size: 14px; font-weight: 700; }
.single-author-info span { color: var(--sp-fg-2); font-size: 12px; }

.single-share { display: flex; gap: 8px; flex-wrap: wrap; }
.single-share-btn {
    appearance: none;
    background: var(--sp-card);
    border: 1px solid var(--sp-border);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--sp-fg-1);
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s, color 0.15s;
}
.single-share-btn:hover { border-color: var(--sp-accent); color: var(--sp-accent); }

.single-body {
    background: var(--sp-bg-soft);
    padding: 32px 0 72px;
}
.single-body-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

.single-main {
    background: var(--sp-card);
    border: 1px solid var(--sp-border-2);
    border-radius: 12px;
    padding: 40px 44px;
    min-width: 0;
}

.single-cover {
    margin: 0 0 32px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--sp-border-2);
    aspect-ratio: 16 / 9;
    background: var(--sp-bg-soft);
}
.single-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.single-content {
    color: var(--sp-fg-1);
    font-size: 1.02rem;
    line-height: 1.75;
}
.single-content > * { margin-bottom: 1.3em; }
.single-content h2 {
    font-size: 1.5rem;
    color: var(--sp-fg-0);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 2em 0 0.6em;
    line-height: 1.25;
}
.single-content h3 {
    font-size: 1.2rem;
    color: var(--sp-fg-0);
    font-weight: 700;
    margin: 1.8em 0 0.5em;
}
.single-content p { margin: 0 0 1.3em; }
.single-content a {
    color: var(--sp-accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(59, 130, 246, 0.25);
    transition: border-color 0.2s ease;
}
.single-content a:hover { border-color: var(--sp-accent); }
.single-content strong { color: var(--sp-fg-0); font-weight: 600; }
.single-content ul, .single-content ol { padding-left: 24px; margin: 0 0 1.3em; }
.single-content li { margin-bottom: 0.5em; }

/* ============================================================
   Índice do guia (card inline gerado via JS quando há H2/H3
   com "Índice" seguido de <ol>)
============================================================ */
.post-guide-toc {
    background: var(--sp-bg-soft);
    border: 1px solid var(--sp-border-2);
    border-radius: 14px;
    padding: 22px 26px 14px;
    margin: 2em 0;
    position: relative;
}
.post-guide-toc::before {
    content: "";
    position: absolute;
    top: 0; left: 26px;
    width: 48px; height: 3px;
    background: var(--sp-accent);
    border-radius: 0 0 3px 3px;
}
.post-guide-toc-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--sp-fg-0);
    margin: 0 0 14px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.post-guide-toc-title::before {
    content: "";
    width: 18px; height: 18px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><line x1='8' y1='6' x2='21' y2='6'/><line x1='8' y1='12' x2='21' y2='12'/><line x1='8' y1='18' x2='21' y2='18'/><line x1='3' y1='6' x2='3.01' y2='6'/><line x1='3' y1='12' x2='3.01' y2='12'/><line x1='3' y1='18' x2='3.01' y2='18'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><line x1='8' y1='6' x2='21' y2='6'/><line x1='8' y1='12' x2='21' y2='12'/><line x1='8' y1='18' x2='21' y2='18'/><line x1='3' y1='6' x2='3.01' y2='6'/><line x1='3' y1='12' x2='3.01' y2='12'/><line x1='3' y1='18' x2='3.01' y2='18'/></svg>") no-repeat center / contain;
    color: var(--sp-accent);
    flex-shrink: 0;
}
.post-guide-toc-list {
    list-style: none;
    counter-reset: guide-toc;
    padding: 0 !important;
    margin: 0 !important;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 24px;
}
.post-guide-toc-list > li {
    counter-increment: guide-toc;
    margin: 0 !important;
    padding: 0;
    list-style: none;
}
.post-guide-toc-list > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px 9px 8px;
    border-radius: 8px;
    color: var(--sp-fg-1);
    border: 0 !important;
    text-decoration: none !important;
    font-size: 14.5px;
    line-height: 1.35;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.post-guide-toc-list > li > a::before {
    content: counter(guide-toc, decimal-leading-zero);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--sp-fg-3);
    background: var(--sp-card);
    border: 1px solid var(--sp-border-2);
    min-width: 26px;
    height: 22px;
    padding: 0 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.post-guide-toc-list > li > a:hover {
    background: var(--sp-card);
    color: var(--sp-accent);
    transform: translateX(2px);
}
.post-guide-toc-list > li > a:hover::before {
    background: var(--sp-accent);
    color: #fff;
    border-color: var(--sp-accent);
}
@media (max-width: 720px) {
    .post-guide-toc { padding: 18px 18px 10px; }
    .post-guide-toc-list { grid-template-columns: 1fr; gap: 0; }
}
.single-content blockquote {
    border-left: 4px solid var(--sp-accent);
    padding: 6px 0 6px 20px;
    margin: 1.8em 0;
    color: var(--sp-fg-0);
    font-style: normal;
    font-weight: 500;
    background: transparent;
    border-radius: 0;
}
.single-content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    background: var(--sp-bg-soft);
    color: #db2777;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--sp-border-2);
}
.single-content pre {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 20px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e2e8f0;
}
.single-content pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
}
.single-content img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 1.8em 0; }
.single-content hr { border: none; border-top: 1px solid var(--sp-border-2); margin: 2.4em 0; }

.single-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--sp-border-2);
}

/* Sidebar */
.single-sidebar {
    min-width: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}
.single-sidebar-sticky {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

.single-ad {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.single-ad-box {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    background: var(--sp-bg-soft);
    border: 1px dashed var(--sp-border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--sp-fg-3);
    font-size: 12px;
}
.single-ad-tag {
    font-size: 10px;
    color: var(--sp-fg-3);
    text-transform: lowercase;
    letter-spacing: 0.1em;
}

.single-related {
    background: var(--sp-card);
    border: 1px solid var(--sp-border-2);
    border-radius: 12px;
    padding: 22px;
}
.single-related-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sp-fg-0);
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}
.single-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.single-related-item {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--sp-border-2);
}
.single-related-item:last-child { padding-bottom: 0; border-bottom: none; }
.single-related-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--sp-fg-2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}
.single-related-link {
    display: block;
    color: var(--sp-fg-0);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.35;
    text-decoration: none;
    margin-bottom: 8px;
}
.single-related-link:hover { color: var(--sp-accent); }
.single-related-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--sp-fg-2);
}
.single-related-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.single-related-more {
    color: var(--sp-accent);
    text-decoration: none;
    font-weight: 500;
}
.single-related-more:hover { text-decoration: underline; }

/* Índice (TOC) do post — dropdown sticky */
.single-toc {
    margin-top: 18px;
    background: var(--sp-card);
    border: 1px solid var(--sp-border-2);
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 88px;
    align-self: flex-start;
}
.single-toc-details { width: 100%; }
.single-toc-summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
    font-size: 14px;
    color: var(--sp-fg-0);
    user-select: none;
}
.single-toc-summary::-webkit-details-marker { display: none; }
.single-toc-summary::marker { display: none; content: ''; }
.single-toc-label { display: inline-flex; align-items: center; gap: 8px; }
.single-toc-label svg { color: var(--sp-accent); }
.single-toc-caret {
    color: var(--sp-fg-2);
    flex-shrink: 0;
    transition: transform .25s ease;
}
.single-toc-details[open] .single-toc-caret { transform: rotate(180deg); }
.single-toc-list {
    list-style: none;
    margin: 0;
    padding: 6px 0 10px;
    border-top: 1px solid var(--sp-border-2);
    max-height: 360px;
    overflow-y: auto;
}
.single-toc-item { margin: 0; }
.single-toc-link {
    display: block;
    padding: 8px 16px;
    color: var(--sp-fg-1);
    font-size: 13.5px;
    line-height: 1.45;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.single-toc-link:hover {
    background: var(--sp-bg-soft);
    color: var(--sp-accent);
    border-left-color: var(--sp-accent);
}
.single-toc-h2 .single-toc-link {
    padding-left: 30px;
    font-size: 13px;
    color: var(--sp-fg-2);
}
.single-content h1[id],
.single-content h2[id] { scroll-margin-top: 88px; }

@media (max-width: 960px) {
    .single-body-inner { grid-template-columns: 1fr; }
    .single-sidebar { align-self: auto; }
    .single-toc { position: static; }
    .single-ad-box { max-width: 100%; }
}
@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; gap: 20px; }
    .blog-wrap { padding-left: 20px; padding-right: 20px; }
    .single-hero-inner { padding: 24px 20px 24px; }
    .single-body { padding: 20px 0 48px; }
    .single-body-inner { padding: 0 16px; gap: 20px; }
    .single-main { padding: 24px 20px; border-radius: 10px; }
    .single-authorbar { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   LOGIN — /login/ (template page-login.php)
============================================================ */
.login-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 48px 24px;
}
.login-card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, rgba(239,68,68,0.04) 0%, var(--bg-1) 60%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.login-eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(239,68,68,0.08);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 18px;
}
.login-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 8px;
    color: var(--fg-1);
}
.login-lead {
    font-size: 14px;
    color: var(--fg-2);
    line-height: 1.55;
    margin: 0 0 26px;
}
.login-notice {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    margin: 16px 0 24px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    border-radius: 8px;
    text-align: left;
}
.login-notice-icon {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}
.login-notice-body {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--fg-2);
}
.login-notice-body strong {
    color: var(--fg-1);
    font-weight: 600;
}
.login-notice-eyebrow {
    display: block;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.login-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid var(--accent-line);
    color: #f87171;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.login-success {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.35);
    color: #4ade80;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    line-height: 1.5;
}
.login-field { margin-bottom: 14px; }
.login-field label {
    display: block;
    font-size: 12px;
    color: var(--fg-3);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.login-field input {
    width: 100%;
    background: var(--bg-2);
    border: 1px solid var(--border);
    color: var(--fg-1);
    padding: 11px 13px;
    border-radius: 8px;
    font: inherit;
    box-sizing: border-box;
}
.login-field input:focus {
    outline: none;
    border-color: var(--accent);
}
.login-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0 20px;
    font-size: 13px;
}
.login-remember {
    color: var(--fg-3);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.login-remember input { accent-color: var(--accent); }
.login-lostpass {
    color: var(--accent-2);
    text-decoration: none;
}
.login-lostpass:hover { text-decoration: underline; }
.login-submit {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.login-submit:hover { background: #dc2626; }
.login-hint {
    margin: 22px 0 0;
    font-size: 13px;
    color: var(--fg-3);
    text-align: center;
}
.login-hint a {
    color: var(--accent-2);
    font-weight: 600;
    text-decoration: none;
}
.login-hint a:hover { text-decoration: underline; }

/* ============================================================
   PRO LANDING — pagina de vendas exibida em /pro sem acesso
============================================================ */
.pro-landing-notice {
    background: rgba(239, 76, 84, 0.1);
    border-bottom: 1px solid var(--accent-line);
    color: var(--fg-1);
    text-align: center;
    padding: 14px 24px;
    font-size: 14px;
    line-height: 1.5;
}
.page-pro .lp-hero { padding: 48px 24px 52px; }
.page-pro .lp-hero h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.page-pro .lp-hero p { font-size: 0.98rem; margin-bottom: 0; }
.pro-landing-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 28px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 420px);
    gap: 32px;
    align-items: center;
}
.pro-landing-video .video-card { margin: 0; }
.pro-landing-pricing { max-width: none; width: 100%; }
.pro-landing-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 4px 0 22px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}
.pro-landing-price-value {
    font-size: 38px;
    font-weight: 700;
    color: var(--fg-1);
    letter-spacing: -0.02em;
}
.pro-landing-price-period {
    font-size: 14px;
    color: var(--fg-3);
    font-family: 'JetBrains Mono', monospace;
}
.pro-gate-cta-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 22px;
    font-size: 15px;
    letter-spacing: 0.04em;
}
@media (max-width: 900px) {
    .pro-landing-main {
        grid-template-columns: 1fr;
        padding: 32px 20px;
    }
}
.pro-landing-login {
    text-align: center;
    padding: 12px 24px 48px;
    font-size: 14px;
    color: var(--fg-3);
}
.pro-gate-login-hint {
    margin: 14px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--fg-3);
}
.pro-gate-login-hint a {
    color: var(--accent-2);
    font-weight: 600;
    text-decoration: none;
}
.pro-gate-login-hint a:hover { text-decoration: underline; }

.pro-landing-faq { padding: 24px 24px 80px; }
.pro-landing-faq-inner { max-width: 920px; margin: 0 auto; }
.pro-landing-faq h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 24px;
    color: var(--fg-1);
}
.pro-faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    background: var(--bg-2);
}
.pro-faq-item summary {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: var(--fg-1);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pro-faq-item summary::-webkit-details-marker { display: none; }
.pro-faq-item summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    color: var(--fg-3);
    transition: transform .2s ease;
}
.pro-faq-item[open] summary::after { content: '−'; }
.pro-faq-item p {
    margin: 0;
    padding: 0 20px 18px;
    color: var(--fg-2);
    line-height: 1.6;
}
.pro-landing-login a {
    color: var(--accent-2);
    font-weight: 600;
    text-decoration: none;
}
.pro-landing-login a:hover { text-decoration: underline; }

/* ============================================================
   PRO GATE — tela exibida em /pro para quem nao tem acesso
============================================================ */
.pro-gate-wrap {
    grid-column: 1 / -1;
    width: 100%;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}
.pro-gate {
    width: 100%;
    max-width: 520px;
    background: linear-gradient(180deg, rgba(239,68,68,0.06) 0%, var(--bg-1) 60%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    text-align: left;
}
.pro-gate-eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(239,68,68,0.08);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 20px;
}
.pro-gate-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 14px;
    color: var(--fg-1);
}
.pro-gate-lead {
    font-size: 15px;
    line-height: 1.6;
    color: var(--fg-2);
    margin: 0 0 24px;
}
.pro-gate-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pro-gate-perks li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--fg-2);
    line-height: 1.5;
}
.pro-gate-perks li::before {
    content: "";
    flex: 0 0 auto;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg) translateY(-2px);
}
.pro-gate-cta {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
}
.pro-gate-cta:hover {
    background: #dc2626;
    transform: translateY(-1px);
}
.pro-gate-form { margin: 0 0 18px; }
.pro-gate-form .login-username,
.pro-gate-form .login-password { margin: 0 0 12px; }
.pro-gate-form label {
    display: block;
    font-size: 12px;
    color: var(--fg-3);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.pro-gate-form input[type="text"],
.pro-gate-form input[type="password"] {
    width: 100%;
    background: var(--bg-2);
    border: 1px solid var(--border);
    color: var(--fg-1);
    padding: 11px 13px;
    border-radius: 8px;
    font: inherit;
    box-sizing: border-box;
}
.pro-gate-form input[type="text"]:focus,
.pro-gate-form input[type="password"]:focus {
    outline: none;
    border-color: var(--accent);
}
.pro-gate-form .login-remember { font-size: 13px; color: var(--fg-3); margin: 4px 0 16px; }
.pro-gate-form .login-submit { margin: 0; }
.pro-gate-form input[type="submit"] {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.pro-gate-form input[type="submit"]:hover { background: #dc2626; }
.pro-gate-hint {
    margin: 18px 0 0;
    font-size: 13px;
    color: var(--fg-3);
    text-align: center;
}
.pro-gate-hint a { color: var(--accent); text-decoration: none; }
.pro-gate-hint a:hover { text-decoration: underline; }

/* 404 */
.err404-wrap { max-width: 820px; margin: 0 auto; padding: 64px 24px 96px; }
.err404-hero { text-align: center; }
.err404-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 96px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.04em;
}
.err404-title { font-size: 32px; font-weight: 700; margin: 0 0 12px; color: var(--fg-1); }
.err404-lead { font-size: 16px; color: var(--fg-2); margin: 0 auto 32px; max-width: 540px; line-height: 1.6; }
.err404-search {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 520px;
    margin: 0 auto 24px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-2);
}
.err404-search svg { color: var(--fg-3); flex-shrink: 0; }
.err404-search input {
    flex: 1;
    border: 0;
    background: transparent;
    font: inherit;
    color: var(--fg-1);
    outline: none;
}
.err404-search button {
    appearance: none;
    border: 0;
    background: var(--accent);
    color: #fff;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}
.err404-search button:hover { filter: brightness(1.08); }
.err404-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}
.err404-links a {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--fg-2);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color .15s ease, border-color .15s ease;
}
.err404-links a:hover { color: var(--accent); border-color: var(--accent); }

.err404-recent { margin-top: 56px; }
.err404-recent h2 {
    font-size: 14px;
    font-weight: 600;
    color: var(--fg-3);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 16px;
    text-align: center;
}
.err404-recent ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.err404-recent li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    background: var(--bg-2);
    transition: border-color .15s ease;
}
.err404-recent li a:hover { border-color: var(--accent); }
.err404-recent-title-text { color: var(--fg-1); font-weight: 500; font-size: 14.5px; }
.err404-recent-date { color: var(--fg-3); font-size: 12.5px; white-space: nowrap; }

/* Acessibilidade — skip link e foco visível */
.wpdef-skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    z-index: 10000;
    padding: 10px 18px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: top .15s ease;
}
.wpdef-skip-link:focus {
    top: 12px;
    outline: 3px solid var(--fg-0);
    outline-offset: 2px;
}

:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
    border-radius: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
}

/* ============================================================
   Tabelas dentro da descrição da aula (comparativo Gratuito × PRO)
   ============================================================ */
#descricao .wp-block-table,
#descricao figure.wp-block-table {
    margin: 1.75rem 0;
    overflow-x: auto;
    background: transparent;
}
#descricao table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .95rem;
    color: var(--fg-1);
    background: var(--bg-1);
    border: 1px solid var(--bg-4);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px -10px rgba(0, 0, 0, .6);
}
#descricao table thead th {
    background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
    color: var(--fg-0);
    font-weight: 600;
    text-align: left;
    padding: .9rem 1.1rem;
    border-bottom: 1px solid var(--bg-4);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
#descricao table thead th:last-child {
    color: var(--accent-2);
    background:
        linear-gradient(180deg, var(--accent-soft) 0%, transparent 100%),
        linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
    border-left: 1px solid var(--accent-line);
}
#descricao table tbody th[scope="row"] {
    background: var(--bg-2);
    color: var(--fg-0);
    font-weight: 600;
    text-align: left;
    padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--bg-4);
    border-right: 1px solid var(--bg-4);
    width: 30%;
    vertical-align: top;
}
#descricao table tbody td {
    padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--bg-4);
    vertical-align: top;
    line-height: 1.55;
}
#descricao table tbody td:last-child {
    background: rgba(239, 76, 84, 0.045);
    border-left: 1px solid var(--accent-line);
    color: var(--fg-0);
}
#descricao table tbody tr:last-child th,
#descricao table tbody tr:last-child td {
    border-bottom: none;
}
#descricao table tbody tr:hover td,
#descricao table tbody tr:hover th[scope="row"] {
    background: var(--bg-3);
}
#descricao table tbody tr:hover td:last-child {
    background: rgba(239, 76, 84, 0.10);
}

@media (max-width: 640px) {
    #descricao table { font-size: .88rem; }
    #descricao table thead th,
    #descricao table tbody th[scope="row"],
    #descricao table tbody td {
        padding: .7rem .8rem;
    }
}

/* H1 da home (acima da descrição da Aula 1) */
.wpdef-page-h1 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--fg-0);
    margin: 0 0 1.25rem 0;
    padding-bottom: .85rem;
    border-bottom: 1px solid var(--bg-4);
    letter-spacing: -0.01em;
}

/* Bloco E-E-A-T abaixo da descrição */
.wpdef-eeat {
    border-top: 1px solid var(--bg-4);
    padding-top: 1rem;
}
.wpdef-eeat a {
    color: var(--accent-2);
    text-decoration: none;
}
.wpdef-eeat a:hover { color: var(--accent); }

/* FAQ visível dentro da descrição: H3 em formato de pergunta */
#descricao h3 {
    margin-top: 1.5rem;
    margin-bottom: .35rem;
    color: var(--fg-0);
    font-size: 1.05rem;
    line-height: 1.35;
}
#descricao h3 + p {
    margin-top: 0;
    color: var(--fg-1);
}

/* ============================================================
   Placeholder do vídeo de apresentação (página /pro/)
   ============================================================ */
.wpdef-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    background:
        radial-gradient(circle at 30% 20%, rgba(239, 76, 84, 0.10), transparent 55%),
        radial-gradient(circle at 70% 80%, rgba(124, 58, 237, 0.08), transparent 55%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
    color: var(--fg-1);
    border-radius: inherit;
}
.wpdef-video-placeholder-icon {
    color: var(--accent-2);
    margin-bottom: 1rem;
    display: inline-flex;
    width: 88px;
    height: 88px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    box-shadow: 0 0 24px -8px var(--accent-glow);
}
.wpdef-video-placeholder-eyebrow {
    color: var(--fg-2);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: .35rem;
}
.wpdef-video-placeholder-title {
    color: var(--fg-0);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: .65rem;
    letter-spacing: -0.01em;
}
.wpdef-video-placeholder-text {
    color: var(--fg-2);
    font-size: .95rem;
    line-height: 1.55;
    max-width: 460px;
    margin: 0;
}
@media (max-width: 640px) {
    .wpdef-video-placeholder { padding: 1rem; }
    .wpdef-video-placeholder-icon { width: 64px; height: 64px; margin-bottom: .65rem; }
    .wpdef-video-placeholder-icon svg { width: 40px; height: 40px; }
    .wpdef-video-placeholder-title { font-size: 1.25rem; }
    .wpdef-video-placeholder-text { font-size: .88rem; }
}

/* Engage strip — link discreto abaixo do player (avaliar / ver depoimentos) */
.wpdef-engage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 0 6px;
    font-size: 13px;
    color: var(--fg-3);
}
.wpdef-engage-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--fg-3);
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}
.wpdef-engage-link:hover,
.wpdef-engage-link:focus-visible {
    color: var(--fg-1);
}
.wpdef-engage-link svg {
    opacity: 0.75;
    transition: opacity 0.15s ease;
}
.wpdef-engage-link:hover svg,
.wpdef-engage-link:focus-visible svg {
    opacity: 1;
}
.wpdef-engage-sep {
    opacity: 0.4;
    user-select: none;
}
