/**
 * HEALTH ONE CO. | ÁREA DE MEMBROS DAS 30 HORAS
 * Design System: Ultra-Luxury Dark, Ouro Nobre, Tipografia Executiva e Blindagem Jurídica
 */

:root {
    --bg-base: #060504;
    --bg-surface: #0E0C0A;
    --bg-card: #14120F;
    --bg-card-hover: #1A1713;
    
    --gold: #C5A059;
    --gold-light: #DFC282;
    --gold-dark: #9A7B38;
    --gold-glow: rgba(197, 160, 89, 0.28);
    
    --bronze: #B87333;
    --bronze-light: #D48C46;
    
    --status-success: #10B981;
    --status-warning: #F59E0B;
    --status-danger: #EF4444;
    
    --text-primary: #FFFFFF;
    --text-secondary: #CBD5E1;
    --text-muted: #8E8A83;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(197, 160, 89, 0.35);
    
    --font-serif: 'Cinzel', serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Topbar Executiva
   -------------------------------------------------------------------------- */
.topbar {
    height: 70px;
    background: rgba(14, 12, 10, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1.8px;
    color: var(--gold-light);
    line-height: 1.1;
}

.brand-tag {
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    font-weight: 600;
}

.legal-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--status-success);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Centro: Regra dos 15 Dias */
.topbar-center {
    flex: 1;
    max-width: 440px;
    margin: 0 30px;
}

.rule-15-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rule-15-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.rule-15-title {
    font-size: 10.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.rule-15-val {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--gold-light);
}

.rule-15-track {
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.rule-15-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--bronze) 0%, var(--gold) 100%);
    border-radius: 999px;
    transition: width 0.5s ease;
}

/* Direita: Gestão Cibele e Perfil */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-admin-cibele {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-admin-cibele:hover {
    background: var(--gold);
    color: #0A0807;
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(197, 160, 89, 0.35);
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 5px 12px 5px 6px;
    border-radius: 999px;
}

.user-avatar-frame {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bronze) 0%, var(--gold) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 12px;
    font-weight: 800;
    color: #060504;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.user-status-tag {
    font-size: 9px;
    color: var(--status-success);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* --------------------------------------------------------------------------
   Layout Principal (Sidebar + Main Stage)
   -------------------------------------------------------------------------- */
.main-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* --------------------------------------------------------------------------
   Sidebar: Trilha das 30 Horas
   -------------------------------------------------------------------------- */
.sidebar-curriculum {
    width: 380px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.curriculum-header {
    padding: 20px 22px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.015);
}

.curriculum-title-wrap {
    margin-bottom: 12px;
}

.curriculum-title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 800;
    color: var(--gold-light);
    letter-spacing: 0.8px;
}

.curriculum-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.curriculum-stats-box {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 8px 12px;
}

.cstat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cstat-lbl {
    font-size: 9.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.cstat-val {
    font-family: var(--font-mono);
    font-size: 13.5px;
    font-weight: 700;
}

.cstat-divider {
    width: 1px;
    height: 24px;
    background: var(--border-subtle);
}

/* Accordion de Módulos */
.modules-accordion {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.module-card.expanded {
    border-color: rgba(197, 160, 89, 0.3);
}

.module-header-btn {
    width: 100%;
    padding: 12px 14px;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.module-header-info {
    flex: 1;
}

.module-num {
    font-size: 9.5px;
    font-family: var(--font-mono);
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.module-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 1px;
    line-height: 1.25;
}

.module-meta-row {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 3px;
    display: flex;
    gap: 8px;
}

.module-toggle-arrow {
    color: var(--text-muted);
    transition: transform 0.25s ease;
}

.module-card.expanded .module-toggle-arrow {
    transform: rotate(180deg);
    color: var(--gold-light);
}

.lessons-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.lesson-item {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lesson-item:hover {
    background: rgba(197, 160, 89, 0.06);
}

.lesson-item.active {
    background: rgba(197, 160, 89, 0.14);
    border-left: 3px solid var(--gold);
}

.lesson-item.locked {
    opacity: 0.55;
    cursor: not-allowed;
}

.lesson-info {
    flex: 1;
}

.lesson-title-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.2;
}

.lesson-item.active .lesson-title-text {
    color: var(--text-primary);
    font-weight: 700;
}

.lesson-meta-details {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9.5px;
    color: var(--text-muted);
    margin-top: 3px;
}

.badge-vimeo-mini {
    background: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
    padding: 1px 4px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 8.5px;
}

.badge-facial-mini {
    background: rgba(16, 185, 129, 0.15);
    color: var(--status-success);
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 8.5px;
    font-weight: 700;
}

.lesson-status-icon {
    margin-left: 10px;
    color: var(--text-muted);
}

.lesson-status-icon.completed {
    color: var(--status-success);
}

/* --------------------------------------------------------------------------
   Palco Central (Main Stage)
   -------------------------------------------------------------------------- */
.main-stage {
    flex: 1;
    padding: 24px 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.stage-lesson-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.stage-tag-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.badge-module-tag {
    font-size: 9.5px;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--gold);
    background: rgba(197, 160, 89, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-vimeo-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9.5px;
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-biometric-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9.5px;
    color: var(--status-success);
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.stage-lesson-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 6px;
}

.stage-instructor-row {
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stage-instructor-row strong {
    color: var(--text-secondary);
}

.meta-dot {
    color: var(--border-subtle);
}

.btn-dossier-preview {
    background: rgba(197, 160, 89, 0.12);
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    font-size: 11.5px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-dossier-preview:hover {
    background: var(--gold);
    color: #0A0807;
    box-shadow: 0 0 14px rgba(197, 160, 89, 0.4);
}

/* --------------------------------------------------------------------------
   Player Outer Frame & Gate Biométrico
   -------------------------------------------------------------------------- */
.player-outer-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
}

/* Overlay de Bloqueio por Biometria */
.biometric-gate-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(14, 12, 10, 0.96) 0%, rgba(6, 5, 4, 0.99) 100%);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 24px;
}

.bgate-card {
    max-width: 520px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.bgate-icon-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    box-shadow: 0 0 24px rgba(197, 160, 89, 0.25);
}

.bgate-title {
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 800;
    color: var(--gold-light);
}

.bgate-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.bgate-meta-info {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.btn-start-biometric {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border: none;
    color: #0A0807;
    font-size: 13px;
    font-weight: 800;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 0 18px rgba(197, 160, 89, 0.4);
}

.btn-start-biometric:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Vimeo Embed Wrapper */
.vimeo-player-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.vimeo-embed-target {
    width: 100%;
    height: 100%;
}

.vimeo-embed-target iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --------------------------------------------------------------------------
   Barra de Controle & Compliance Probatório
   -------------------------------------------------------------------------- */
.player-compliance-bar {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 9px;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.pcomp-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.pcomp-label {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.pcomp-track {
    flex: 1;
    max-width: 220px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.pcomp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--bronze) 0%, var(--gold) 100%);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.pcomp-percent {
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--gold-light);
}

.pcomp-target {
    font-size: 10.5px;
    color: var(--text-muted);
}

.pcomp-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pcomp-scrub-notice {
    font-size: 10.5px;
    color: var(--status-warning);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.btn-complete-lesson {
    background: var(--status-success);
    border: none;
    color: #FFFFFF;
    font-size: 11.5px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-complete-lesson:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    cursor: not-allowed;
}

.btn-complete-lesson:not(:disabled):hover {
    filter: brightness(1.15);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* --------------------------------------------------------------------------
   Abas Inferiores (Visão Geral, Materiais, Auditoria)
   -------------------------------------------------------------------------- */
.stage-tabs-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
}

.stage-tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.2);
}

.stage-tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.stage-tab-btn:hover {
    color: var(--text-secondary);
}

.stage-tab-btn.active {
    color: var(--gold-light);
    border-bottom-color: var(--gold);
    background: rgba(197, 160, 89, 0.05);
}

.stage-tab-content {
    display: none;
    padding: 20px 24px;
}

.stage-tab-content.active {
    display: block;
}

/* Conteúdo Tab 1: Visão Geral */
.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.overview-heading {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.overview-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.checklist-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 14px 16px;
}

.checklist-card h5 {
    font-size: 11.5px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.checklist-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checklist-items li {
    font-size: 12px;
    color: var(--text-secondary);
    position: relative;
    padding-left: 18px;
}

.checklist-items li::before {
    content: "•";
    color: var(--gold);
    font-size: 16px;
    position: absolute;
    left: 4px;
    top: -2px;
}

.legal-summary-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 14px 16px;
}

.legal-summary-card h5 {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.lsum-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.lsum-row:last-child {
    border-bottom: none;
}

.lsum-row span {
    color: var(--text-muted);
}

/* Conteúdo Tab 2: Materiais para Download */
.materials-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.material-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.material-card:hover {
    background: rgba(197, 160, 89, 0.05);
    border-color: rgba(197, 160, 89, 0.3);
}

.material-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mat-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: rgba(197, 160, 89, 0.12);
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
}

.mat-details {
    display: flex;
    flex-direction: column;
}

.mat-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.mat-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-download-mat {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-download-mat:hover {
    background: var(--gold);
    color: #0A0807;
    border-color: var(--gold);
}

/* Conteúdo Tab 3: Auditoria Legal */
.audit-log-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.audit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.audit-sync-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--status-success);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 3px 8px;
    border-radius: 4px;
}

.audit-table-wrapper {
    overflow-x: auto;
}

.audit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
    text-align: left;
}

.audit-table th {
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 9.5px;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.audit-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

.audit-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* --------------------------------------------------------------------------
   Modais Genéricos (Estrutura Padrão)
   -------------------------------------------------------------------------- */
.tv-modal {
    position: fixed;
    inset: 0;
    background: rgba(6, 5, 4, 0.88);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.tv-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.tv-modal-close:hover {
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Modal 1: Reconhecimento Facial
   -------------------------------------------------------------------------- */
.facial-modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    width: 100%;
    max-width: 580px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85);
    overflow: hidden;
}

.facial-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
}

.facial-modal-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.facial-info-text {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Câmera Viewport Frame */
.camera-viewport-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.camera-viewport-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* Espelhamento natural de webcam */
}

/* Retículo Scanner Oval */
.face-scanner-reticle {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.reticle-oval {
    width: 220px;
    height: 280px;
    border: 2px dashed rgba(197, 160, 89, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.2);
    position: relative;
    overflow: hidden;
}

.reticle-scanline {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--gold-light) 50%, transparent 100%);
    position: absolute;
    top: 0;
    left: 0;
    animation: scanPulse 2.4s infinite ease-in-out;
}

@keyframes scanPulse {
    0% { top: 0%; opacity: 0.2; }
    50% { top: 96%; opacity: 1; }
    100% { top: 0%; opacity: 0.2; }
}

.scanner-status-indicator {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(14, 12, 10, 0.85);
    border: 1px solid var(--border-subtle);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
}

.dot-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
    animation: blink 1.2s infinite alternate;
}

@keyframes blink {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

.facial-legal-meta {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 10px 12px;
}

.fmeta-item {
    display: flex;
    flex-direction: column;
}

.fmeta-item span {
    font-size: 9.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.fmeta-item strong {
    font-size: 11.5px;
    color: var(--text-primary);
}

.facial-actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-cancel-bio {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.btn-confirm-bio {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border: none;
    color: #0A0807;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 14px rgba(197, 160, 89, 0.35);
}

/* --------------------------------------------------------------------------
   Modal 2: Termo Probatório Oficial
   -------------------------------------------------------------------------- */
.termo-modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.termo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
}

.termo-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Certificado Oficial Estilizado */
.official-certificate-paper {
    background: #0B0A08;
    border: 2px solid var(--border-gold);
    border-radius: 10px;
    padding: 28px 32px;
    position: relative;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}

.cert-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cert-seal {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.15);
    border: 1.5px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
}

.cert-company-block h2 {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 800;
    color: var(--gold-light);
    letter-spacing: 1.5px;
}

.cert-company-block span {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.cert-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
    margin: 18px 0;
}

.cert-doc-title {
    font-family: var(--font-serif);
    font-size: 14.5px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
    color: #FFFFFF;
    margin-bottom: 14px;
}

.cert-statement {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 18px;
}

.cert-grid-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.cert-info-item {
    display: flex;
    flex-direction: column;
}

.cert-info-item span {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.cert-info-item strong {
    font-size: 12.5px;
    color: var(--text-primary);
}

/* Bloco de Segurança & Snapshot */
.cert-security-block {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    border: 1px solid rgba(197, 160, 89, 0.25);
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 24px;
}

.cert-snapshot-frame {
    width: 130px;
    height: 130px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-snapshot-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.snapshot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 9.5px;
    text-align: center;
    padding: 6px;
}

.cert-hash-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.chash-row {
    display: flex;
    flex-direction: column;
}

.chash-lbl {
    font-size: 9.5px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
}

.chash-code {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-secondary);
    word-break: break-all;
}

.chash-legal-note {
    font-size: 10px;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
    margin-top: 2px;
}

.cert-signatures-row {
    display: flex;
    justify-content: space-around;
    padding-top: 10px;
}

.cert-sig-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 220px;
    text-align: center;
}

.sig-line {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 6px;
}

.cert-sig-block strong {
    font-size: 11px;
    color: var(--text-primary);
}

.cert-sig-block span {
    font-size: 9.5px;
    color: var(--text-muted);
}

.termo-actions-bar {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-print-dossier {
    background: var(--gold);
    border: none;
    color: #0A0807;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-close-dossier {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Modal 3: Painel da Cibele
   -------------------------------------------------------------------------- */
.cibele-modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    width: 100%;
    max-width: 650px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9);
}

.cibele-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
}

.cibele-modal-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cibele-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
}

.cibele-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cibele-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cibele-label {
    font-size: 10.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}

.cibele-input,
.cibele-select,
.cibele-textarea {
    width: 100%;
    background: #0A0807;
    border: 1px solid var(--border-subtle);
    color: #FFFFFF;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.cibele-input:focus,
.cibele-select:focus,
.cibele-textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.cibele-security-toggle-box {
    background: rgba(197, 160, 89, 0.08);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    padding: 12px 16px;
}

/* Switch iOS Style */
.cibele-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.cibele-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cibele-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: 0.3s;
    border-radius: 24px;
}

.cibele-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .cibele-slider {
    background-color: var(--gold);
}

input:checked + .cibele-slider:before {
    transform: translateX(20px);
}

.cibele-actions-bar {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
}

.btn-save-cibele {
    background: var(--gold);
    border: none;
    color: #0A0807;
    font-size: 12.5px;
    font-weight: 800;
    padding: 9px 22px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-save-cibele:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 14px rgba(197, 160, 89, 0.4);
}

/* --------------------------------------------------------------------------
   Ajustes Responsivos
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .main-layout {
        flex-direction: column;
    }
    .sidebar-curriculum {
        width: 100%;
        max-height: 380px;
    }
    .overview-grid {
        grid-template-columns: 1fr;
    }
    .topbar-center {
        display: none;
    }
}

@media print {
    body * {
        visibility: hidden;
    }
    .official-certificate-paper, .official-certificate-paper * {
        visibility: visible;
    }
    .official-certificate-paper {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: #fff !important;
        color: #000 !important;
        border-color: #000 !important;
    }
    .cert-statement, .cert-info-item strong, .cert-sig-block strong {
        color: #000 !important;
    }
}
