/* ============================================================
   TechAcademy — Folha de Estilo Principal
   Design institucional, profissional e responsivo
   Versão: 2.0 — Responsividade unificada
   ============================================================ */

/* ============================================================
   1. RESET E VARIÁVEIS
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais */
    --primary: #1a2b45;
    --primary-light: #24395a;
    --primary-dark: #111d30;

    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #dbeafe;

    --secondary: #0f766e;
    --secondary-light: #ccfbf1;

    /* Estados */
    --success: #16a34a;
    --success-light: #dcfce7;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --info: #0284c7;
    --info-light: #e0f2fe;

    /* Neutros */
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --white: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --border-dark: #cbd5e1;

    /* Layout */
    --radius: 8px;
    --radius-sm: 6px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Sombras */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);

    /* Transições */
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

/* ============================================================
   2. BASE
   ============================================================ */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.site-main {
    flex: 1;
}

img,
video,
iframe,
svg {
    max-width: 100%;
    height: auto;
}

img {
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

ul {
    list-style: none;
}

/* ============================================================
   3. TIPOGRAFIA
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary);
    letter-spacing: -0.3px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
h5 { font-size: 0.95rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

small {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

strong {
    font-weight: 600;
}

/* ============================================================
   4. LAYOUT
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 64px 0;
}

.section-sm {
    padding: 40px 0;
}

.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
}

.section-header .title-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.section-header .title-line::before {
    content: '';
    width: 4px;
    height: 28px;
    background: var(--accent);
    border-radius: 2px;
}

.section-header.text-center {
    text-align: center;
}

.section-header.text-center .title-line {
    justify-content: center;
}

/* ============================================================
   5. HEADER
   ============================================================ */
.site-header {
    background: var(--primary);
    border-bottom: 3px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.3px;
    transition: var(--transition);
}

.brand:hover {
    color: var(--white);
    opacity: 0.9;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--white);
    flex-shrink: 0;
}

.brand-text {
    white-space: nowrap;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav ul li a {
    color: rgba(255,255,255,0.85);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

.main-nav ul li a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white);
}

.main-nav ul li a.btn-cta {
    background: var(--accent);
    color: var(--white);
    font-weight: 600;
}

.main-nav ul li a.btn-cta:hover {
    background: var(--accent-hover);
}

.main-nav ul li a.btn-logout {
    color: rgba(255,255,255,0.7);
}

.main-nav ul li a.btn-logout:hover {
    color: #fca5a5;
    background: rgba(220,38,38,0.15);
}

/* ============================================================
   6. HERO
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: var(--white);
}

.hero p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    max-width: 560px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================================
   7. BOTÕES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    white-space: nowrap;
    line-height: 1.4;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
    color: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover:not(:disabled) {
    background: #0d5f58;
    color: var(--white);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover:not(:disabled) {
    background: #15803d;
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover:not(:disabled) {
    background: #b91c1c;
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover:not(:disabled) {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    color: var(--white);
}

.btn-outline-dark {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--border);
}

.btn-outline-dark:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--bg-alt);
    color: var(--text);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

/* ============================================================
   8. CARDS DE CURSO
   ============================================================ */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.course-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    border-color: var(--border-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.course-thumb {
    height: 160px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    font-size: 44px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.course-thumb.has-image {
    background: #0f172a;
}

.course-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-thumb.has-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.35) 0%,
        rgba(0,0,0,0) 40%,
        rgba(0,0,0,0) 70%,
        rgba(0,0,0,0.25) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.course-thumb .badge-level {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.course-thumb .badge-enrolled,
.course-thumb .badge-pending {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.course-thumb .badge-enrolled {
    background: var(--success);
    color: var(--white);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.course-thumb .badge-pending {
    background: var(--warning);
    color: var(--white);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.course-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.course-body .course-desc {
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 16px;
    flex: 1;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-bottom: 14px;
    gap: 8px;
    flex-wrap: wrap;
}

.course-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
}

.course-price.free {
    color: var(--success);
}

.course-duration {
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.course-meta-bottom span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.course-meta-bottom i {
    color: var(--accent);
}

/* ============================================================
   9. FORMULÁRIOS
   ============================================================ */
.auth-wrapper {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header .auth-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.auth-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: var(--text);
    font-size: 13.5px;
}

.form-group label .required {
    color: var(--danger);
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14.5px;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-group .hint {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.form-check label {
    font-size: 13.5px;
    color: var(--text-muted);
    cursor: pointer;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

.form-check label a {
    color: var(--accent);
    font-weight: 600;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ============================================================
   10. ALERTAS
   ============================================================ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    border: 1px solid transparent;
}

.alert i {
    margin-top: 2px;
    flex-shrink: 0;
}

.alert-danger {
    background: var(--danger-light);
    color: #991b1b;
    border-color: #fecaca;
}

.alert-success {
    background: var(--success-light);
    color: #166534;
    border-color: #bbf7d0;
}

.alert-info {
    background: var(--info-light);
    color: #075985;
    border-color: #bae6fd;
}

.alert-warning {
    background: var(--warning-light);
    color: #92400e;
    border-color: #fde68a;
}

/* ============================================================
   11. BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.badge-primary { background: var(--accent-light); color: var(--accent); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-danger  { background: var(--danger-light); color: var(--danger); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-info    { background: var(--info-light); color: var(--info); }
.badge-muted   { background: var(--bg-alt); color: var(--text-muted); }

/* ============================================================
   12. TABELAS
   ============================================================ */
.table-wrapper {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table thead {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.table thead th {
    text-align: left;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 12.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background: var(--bg);
}

.table .actions {
    display: flex;
    gap: 6px;
}

/* ============================================================
   13. PAINEL (DASHBOARD)
   ============================================================ */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 72px);
}

.sidebar {
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 24px 0;
}

.sidebar-title {
    padding: 0 24px 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 600;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 24px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.sidebar-menu a:hover {
    background: var(--bg);
    color: var(--text);
}

.sidebar-menu a.active {
    background: var(--accent-light);
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
}

.sidebar-menu a i {
    width: 18px;
    text-align: center;
}

.dashboard-content {
    padding: 32px;
    background: var(--bg);
}

.page-header {
    margin-bottom: 28px;
}

.page-header h1 {
    font-size: 24px;
    margin-bottom: 4px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* Estatísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-icon.blue   { background: var(--accent-light); color: var(--accent); }
.stat-icon.green  { background: var(--success-light); color: var(--success); }
.stat-icon.orange { background: var(--warning-light); color: var(--warning); }
.stat-icon.red    { background: var(--danger-light); color: var(--danger); }

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}

.stat-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================================
   14. PLAYER DE VÍDEO
   ============================================================ */
.player-page {
    background: var(--bg-alt);
    min-height: calc(100vh - 72px);
    padding-bottom: 40px;
}

.player-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    margin-bottom: 24px;
    position: sticky;
    top: 72px;
    z-index: 50;
}

.player-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.player-back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    flex-shrink: 0;
}

.player-back:hover {
    color: var(--accent);
}

.player-course-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-course-title i {
    color: var(--accent);
}

.player-progress-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.player-progress-mini span {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary);
    min-width: 40px;
    text-align: right;
}

.progress-bar-mini {
    width: 100px;
    height: 6px;
    background: var(--bg-alt);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    border-radius: 3px;
    transition: width 0.4s ease;
}

.player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
    padding: 24px 0;
}

.player-main {
    min-width: 0;
}

.player-wrapper {
    position: relative;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
}

.player-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
}

.player-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    text-align: center;
    padding: 24px;
}

.video-placeholder i {
    font-size: 56px;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.4);
}

.video-placeholder h3 {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 8px;
}

.video-placeholder p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.lesson-info {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 20px;
}

.lesson-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.lesson-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.lesson-info-header h1 {
    font-size: 22px;
    color: var(--primary);
    line-height: 1.3;
    margin: 0;
}

.lesson-info-meta {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.lesson-info-meta span {
    font-size: 13.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.lesson-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.lesson-actions .btn {
    flex: 1;
    min-width: 140px;
}

.lesson-progress-detail {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.progress-note {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
}

.progress-note i {
    color: var(--accent);
}

/* Playlist */
.playlist {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: sticky;
    top: 152px;
    max-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
}

.playlist-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}

.playlist-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.playlist-header h3 i {
    color: var(--accent);
}

.playlist-header p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0;
}

.playlist-items {
    overflow-y: auto;
    flex: 1;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    position: relative;
}

.playlist-item:last-child {
    border-bottom: none;
}

.playlist-item:hover {
    background: var(--bg);
}

.playlist-item.active {
    background: var(--accent-light);
    border-left: 3px solid var(--accent);
}

.playlist-item .num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-alt);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.playlist-item.active .num {
    background: var(--accent);
    color: var(--white);
}

.playlist-item.completed .num {
    background: var(--success);
    color: var(--white);
}

.playlist-item .info {
    flex: 1;
    min-width: 0;
}

.playlist-item .title {
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.playlist-item.active .title {
    color: var(--accent);
    font-weight: 600;
}

.playlist-item .duration {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--text-muted);
}

.playing-icon {
    color: var(--accent);
    font-size: 12px;
    flex-shrink: 0;
}

/* ============================================================
   15. CERTIFICADO
   ============================================================ */
.certificate-preview {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 6px solid var(--primary);
    border-bottom: 6px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.cert-subtitle-top {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--primary);
}

.certificate-preview h1 {
    font-size: 24px;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 6px;
}

.certificate-preview .subtitle {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.certificate-preview .recipient {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    display: inline-block;
    min-width: 360px;
}

.certificate-preview .course-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin: 16px 0;
}

.certificate-preview .qr-area {
    margin: 30px 0 20px;
}

.certificate-preview .qr-area img {
    display: inline-block;
    border: 4px solid var(--bg-alt);
    border-radius: 8px;
    padding: 6px;
    background: var(--white);
}

.certificate-preview .footer-info {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================================
   16. PERFIL
   ============================================================ */
.profile-header {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-info h2 {
    font-size: 22px;
    margin-bottom: 4px;
    color: var(--primary);
}

.profile-info p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-info p i {
    color: var(--accent);
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.profile-actions {
    flex-shrink: 0;
}

.profile-progress {
    margin: 12px 0 16px;
}

.progress-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 8px;
}

.progress-detail i {
    color: var(--accent);
    font-size: 10px;
}

.profile-pending-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--warning-light);
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    color: #92400e;
    font-size: 13px;
    margin: 12px 0 16px;
    font-weight: 500;
}

.profile-pending-notice i {
    color: var(--warning);
    flex-shrink: 0;
}

.course-card.card-pending {
    border-color: #fde68a;
}

.course-card.card-pending .course-thumb {
    filter: grayscale(0.3);
}

.course-actions {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.course-actions .btn-block {
    flex: 1;
}

/* Certificados no perfil */
.cert-code {
    display: inline-block;
    background: var(--bg-alt);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 600;
}

/* ============================================================
   17. ESTADOS VAZIOS
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border: 1px dashed var(--border-dark);
    border-radius: var(--radius-lg);
}

.empty-state i {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 16px;
    display: block;
}

.empty-state h3 {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

/* ============================================================
   18. PAGINAÇÃO
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination .active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* ============================================================
   19. FOOTER
   ============================================================ */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.75);
    padding: 56px 0 24px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.brand-footer {
    margin-bottom: 16px;
    font-size: 18px;
}

.footer-desc {
    font-size: 13.5px;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    max-width: 320px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.65);
    font-size: 13.5px;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 10px;
}

.contact-list li i {
    color: var(--accent);
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.footer-note {
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    max-width: 520px;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   20. UTILITÁRIOS
   ============================================================ */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.text-muted   { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }

.mt-0  { margin-top: 0; }
.mt-1  { margin-top: 8px; }
.mt-2  { margin-top: 16px; }
.mt-3  { margin-top: 24px; }
.mt-4  { margin-top: 32px; }

.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 8px; }
.mb-2  { margin-bottom: 16px; }
.mb-3  { margin-bottom: 24px; }
.mb-4  { margin-bottom: 32px; }

.flex         { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center  { display: flex; justify-content: center; align-items: center; }
.gap-1        { gap: 8px; }
.gap-2        { gap: 16px; }
.gap-3        { gap: 24px; }

.hidden { display: none !important; }

/* ============================================================
   21. DASHBOARD ADMIN — Reforços
   ============================================================ */
.dashboard-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.dashboard-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
    gap: 12px;
    flex-wrap: wrap;
}

.panel-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.panel-header h3 i {
    color: var(--accent);
}

.panel-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.panel-empty i {
    font-size: 32px;
    color: var(--text-light);
    margin-bottom: 12px;
    display: block;
}

.panel-empty p {
    margin: 0;
    font-size: 14px;
}

.panel-list {
    display: flex;
    flex-direction: column;
}

.panel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.panel-item:last-child {
    border-bottom: none;
}

.panel-item:hover {
    background: var(--bg);
}

.panel-item-avatar,
.panel-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.panel-item-icon {
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 16px;
}

.panel-item-info {
    flex: 1;
    min-width: 0;
}

.panel-item-info strong {
    display: block;
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-item-info span {
    display: block;
    font-size: 12.5px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-item-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.panel-item-meta small {
    font-size: 11.5px;
    color: var(--text-light);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.quick-action {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.quick-action:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-action i {
    width: 42px;
    height: 42px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: var(--transition);
}

.quick-action:hover i {
    background: var(--accent);
    color: var(--white);
}

/* ============================================================
   22. CATÁLOGO — Filtros
   ============================================================ */
.filters-bar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto auto;
    gap: 12px;
    align-items: center;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.filter-search {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-search i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.filter-search input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
}

.filter-search input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.filter-select {
    padding: 11px 36px 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.filters-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 4px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.filters-result strong {
    color: var(--primary);
    font-weight: 700;
}

/* ============================================================
   23. DETALHES DO CURSO
   ============================================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb i.fa-chevron-right {
    font-size: 9px;
    color: var(--text-light);
}

.breadcrumb span {
    color: var(--primary);
    font-weight: 500;
}

.course-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
    margin-bottom: 48px;
    align-items: start;
}

.course-hero-content {
    padding: 32px 0;
    min-width: 0;
}

.course-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.course-hero-content h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.course-hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 680px;
}

.course-hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-item > i {
    width: 40px;
    height: 40px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.meta-item div {
    display: flex;
    flex-direction: column;
}

.meta-item strong {
    font-size: 16px;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

.meta-item span {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.course-sidebar {
    position: sticky;
    top: 96px;
}

.course-card-price {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.course-hero-icon {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

.price-display {
    text-align: center;
    margin-bottom: 20px;
}

.price-tag {
    display: inline-block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    padding: 8px 24px;
    border-radius: var(--radius);
}

.price-tag.free {
    color: var(--success);
    background: var(--success-light);
}

.price-tag.paid {
    color: var(--secondary);
    background: #fff7ed;
}

.price-tag.enrolled {
    color: var(--accent);
    background: var(--accent-light);
    font-size: 20px;
}

.progress-section {
    margin-bottom: 16px;
    padding: 14px;
    background: var(--bg);
    border-radius: var(--radius);
}

.course-features {
    list-style: none;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.course-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13.5px;
    color: var(--text-muted);
}

.course-features li i {
    color: var(--success);
    font-size: 13px;
}

.course-content {
    margin-top: 40px;
}

.lessons-list {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.lesson-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.lesson-row:last-child {
    border-bottom: none;
}

.lesson-row:hover {
    background: var(--bg);
}

.lesson-row.lesson-locked {
    opacity: 0.6;
}

.lesson-number {
    width: 36px;
    height: 36px;
    background: var(--bg-alt);
    color: var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.lesson-info {
    flex: 1;
    min-width: 0;
}

.lesson-info strong {
    display: block;
    font-size: 14.5px;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 4px;
}

.lesson-info span {
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.lesson-action {
    flex-shrink: 0;
}

.course-about {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.course-about p {
    color: var(--text);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.course-about h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 16px;
    margin-top: 24px;
}

.course-about h3:first-of-type {
    margin-top: 0;
}

.course-objectives {
    list-style: none;
    margin-bottom: 24px;
}

.course-objectives li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 14.5px;
    color: var(--text);
    line-height: 1.6;
}

.course-objectives li i {
    color: var(--accent);
    font-size: 14px;
    margin-top: 4px;
    flex-shrink: 0;
}

/* ============================================================
   24. CHECKOUT
   ============================================================ */
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    align-items: start;
}

.checkout-main {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.payment-methods {
    margin-bottom: 32px;
}

.payment-methods h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.payment-option {
    display: block;
    cursor: pointer;
    margin-bottom: 12px;
    position: relative;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-option-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    transition: var(--transition);
}

.payment-option:hover .payment-option-content {
    border-color: var(--border-dark);
}

.payment-option.active .payment-option-content {
    border-color: var(--accent);
    background: var(--accent-light);
}

.payment-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
    flex-shrink: 0;
}

.payment-icon.mpesa-icon    { background: #e60000; }
.payment-icon.emola-icon    { background: #f59e0b; }
.payment-icon.transfer-icon { background: var(--primary); }

.payment-info {
    flex: 1;
    min-width: 0;
}

.payment-info strong {
    display: block;
    font-size: 14.5px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 2px;
}

.payment-info span {
    font-size: 13px;
    color: var(--text-muted);
}

.payment-check {
    color: var(--border-dark);
    font-size: 20px;
    transition: var(--transition);
}

.payment-option.active .payment-check {
    color: var(--accent);
}

.payment-details {
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.payment-details h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.payment-details .hint {
    color: var(--text-muted);
    font-size: 12.5px;
    margin-top: 6px;
    display: block;
}

.checkout-sidebar {
    position: sticky;
    top: 96px;
}

.order-summary {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.order-summary h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.order-course {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.order-course-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.order-course-icon.has-image {
    overflow: hidden;
    padding: 0;
    background: var(--bg-alt);
}

.order-course-icon.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.order-course-info {
    flex: 1;
    min-width: 0;
}

.order-course-info strong {
    display: block;
    font-size: 14.5px;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}

.order-course-info span {
    font-size: 12.5px;
    color: var(--text-muted);
}

.order-lines {
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.order-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    gap: 8px;
}

.order-line span {
    color: var(--text-muted);
}

.order-line strong {
    color: var(--text);
    font-weight: 600;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 20px;
    gap: 8px;
}

.order-total span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.order-total strong {
    font-size: 22px;
    color: var(--primary);
    font-weight: 700;
}

.order-benefits {
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.order-benefits h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.order-benefits ul {
    list-style: none;
}

.order-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 13.5px;
    color: var(--text-muted);
}

.order-benefits li i {
    color: var(--success);
    font-size: 12px;
}

#btnSubmit:disabled {
    cursor: wait;
}

/* ============================================================
   25. VALIDAÇÃO DE CERTIFICADO
   ============================================================ */
.validate-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.validate-result {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.validate-result.valid {
    border-top: 4px solid var(--success);
}

.validate-result.invalid {
    border-top: 4px solid var(--danger);
}

.validate-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.validate-result.valid .validate-icon {
    color: var(--success);
}

.validate-result.invalid .validate-icon {
    color: var(--danger);
}

.validate-result h2 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 10px;
}

.validate-result > p {
    color: var(--text-muted);
    font-size: 14.5px;
    max-width: 520px;
    margin: 0 auto 24px;
}

.validate-details {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px 24px;
    max-width: 520px;
    margin: 0 auto;
    text-align: left;
}

.validate-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.validate-line:last-child {
    border-bottom: none;
}

.validate-line span {
    color: var(--text-muted);
    flex-shrink: 0;
}

.validate-line strong {
    color: var(--primary);
    text-align: right;
    font-weight: 600;
}

.validate-line code {
    background: var(--white);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12.5px;
    letter-spacing: 1px;
}

/* ============================================================
   26. TABELA DE CURSOS (Admin)
   ============================================================ */
.course-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.course-cell-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.course-cell-info {
    min-width: 0;
    flex: 1;
}

.course-cell-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-cell-info span {
    display: block;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: var(--text);
    font-weight: 500;
}

.table-count i {
    color: var(--text-muted);
    font-size: 12px;
}

.actions .btn-ghost.text-danger {
    color: var(--danger);
}

.actions .btn-ghost.text-danger:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.actions .btn-sm {
    padding: 6px 10px;
    min-width: 34px;
    justify-content: center;
}

/* ============================================================
   27. FORMULÁRIO ADMIN
   ============================================================ */
.admin-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    max-width: 860px;
}

.form-preview {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.form-preview h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 14px;
    font-weight: 600;
}

.preview-card {
    display: flex;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 420px;
    transition: var(--transition);
}

.preview-thumb {
    width: 110px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: rgba(255,255,255,0.85);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.preview-thumb .badge-level {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.preview-body {
    padding: 14px 16px;
    flex: 1;
    min-width: 0;
}

.preview-body strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.preview-body p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.preview-meta span {
    font-size: 14px;
    font-weight: 700;
}

.preview-meta .preview-free {
    color: var(--success);
}

.preview-meta .preview-paid {
    color: var(--secondary);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

/* ============================================================
   28. UPLOAD DE IMAGEM
   ============================================================ */
.image-upload-wrapper {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 20px;
    background: var(--bg);
    border: 1px dashed var(--border-dark);
    border-radius: var(--radius);
    margin-top: 8px;
}

.image-preview {
    width: 240px;
    height: 135px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    gap: 6px;
    background: var(--bg-alt);
}

.image-placeholder i {
    font-size: 28px;
}

.image-placeholder span {
    font-size: 12px;
    font-weight: 500;
}

.image-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.95);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: var(--transition);
    z-index: 2;
}

.image-remove-btn:hover {
    background: var(--danger);
    transform: scale(1.08);
}

.image-upload-info {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}

.image-upload-info .hint {
    display: block;
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

.image-upload-info .hint strong {
    color: var(--text);
}

/* ============================================================
   29. AULAS — Admin
   ============================================================ */
.lessons-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    margin-top: 24px;
    align-items: start;
}

.courses-list-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

.courses-list-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.courses-list-panel .panel-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.courses-list-panel .panel-header h3 i {
    color: var(--accent);
}

.courses-list {
    overflow-y: auto;
    flex: 1;
}

.course-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}

.course-list-item:last-child {
    border-bottom: none;
}

.course-list-item:hover {
    background: var(--bg);
}

.course-list-item.active {
    background: var(--accent-light);
    border-left: 3px solid var(--accent);
}

.course-list-info {
    flex: 1;
    min-width: 0;
}

.course-list-info strong {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-list-item.active .course-list-info strong {
    color: var(--accent);
}

.course-list-info span {
    display: block;
    font-size: 11.5px;
    color: var(--text-muted);
}

.course-list-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-alt);
    padding: 3px 8px;
    border-radius: 12px;
    flex-shrink: 0;
}

.course-list-item.active .course-list-count {
    background: var(--accent);
    color: var(--white);
}

.lessons-panel {
    min-width: 0;
}

.course-header-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.course-header-info h2 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 8px;
}

.course-header-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lessons-table-wrapper {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.lessons-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 640px;
}

.lessons-table thead {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.lessons-table thead th {
    text-align: left;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lessons-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.lessons-table tbody tr:last-child td {
    border-bottom: none;
}

.lessons-table tbody tr:hover {
    background: var(--bg);
}

.lesson-num {
    width: 32px;
    height: 32px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.lesson-info-cell strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 4px;
}

.lesson-video-url {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 400px;
}

.lesson-video-url i {
    color: var(--accent);
    flex-shrink: 0;
}

.lesson-video-url.empty i {
    color: var(--warning);
}

.order-controls {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.order-btn {
    width: 28px;
    height: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: var(--transition);
}

.order-btn:hover:not(:disabled) {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.order-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================================
   30. EDITOR DE AULAS
   ============================================================ */
.lesson-edit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 24px;
    align-items: start;
}

.lesson-edit-main {
    min-width: 0;
}

.lesson-edit-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.input-with-icon input {
    padding-left: 40px !important;
}

.preview-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.preview-panel-header {
    padding: 14px 18px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-panel-header i {
    color: var(--accent);
}

.preview-panel-body {
    padding: 16px;
}

.video-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-preview iframe,
.video-preview video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video-preview-empty,
.video-preview-error {
    text-align: center;
    color: rgba(255,255,255,0.6);
    padding: 20px;
}

.video-preview-empty i,
.video-preview-error i {
    font-size: 36px;
    margin-bottom: 10px;
    display: block;
    color: rgba(255,255,255,0.3);
}

.video-preview-error i {
    color: var(--warning);
    opacity: 0.8;
}

.video-preview-empty p,
.video-preview-error p {
    font-size: 14px;
    margin-bottom: 4px;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}

.video-preview-empty small,
.video-preview-error small {
    font-size: 11.5px;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
}

.lesson-preview-info {
    padding: 14px 16px;
    background: var(--bg);
    border-radius: var(--radius);
}

.lesson-preview-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.lesson-preview-meta {
    display: flex;
    gap: 16px;
    font-size: 12.5px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.lesson-preview-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lesson-preview-meta i {
    color: var(--accent);
}

.preview-tip {
    padding: 12px 16px;
    background: var(--accent-light);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    font-size: 12.5px;
    color: #1e40af;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.preview-tip i {
    margin-top: 2px;
    flex-shrink: 0;
}

.preview-tip strong {
    color: #1e3a8a;
}

/* ============================================================
   31. QUIZ
   ============================================================ */
.questions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.question-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.question-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.question-number {
    width: 34px;
    height: 34px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.question-body {
    flex: 1;
    min-width: 0;
}

.question-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.question-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.options-list {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.options-empty {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    padding: 16px;
    font-style: italic;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    transition: var(--transition);
}

.option-row.correct {
    background: var(--success-light);
    border-color: var(--success);
}

.option-row form {
    margin: 0;
}

.check-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.option-row.correct .check-btn {
    color: var(--success);
}

.check-btn:hover {
    color: var(--success);
    transform: scale(1.1);
}

.option-text {
    font-size: 14px;
    color: var(--text);
    flex: 1;
}

.option-row.correct .option-text {
    font-weight: 600;
    color: var(--success);
}

.add-option-form {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    flex-wrap: wrap;
}

.add-option-form input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 13.5px;
    font-family: inherit;
}

.add-option-form input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
}

.checkbox-inline input[type="checkbox"] {
    accent-color: var(--success);
}

/* Quiz na aula (watch.php) */
.quiz-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.quiz-cta.quiz-passed {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #bbf7d0;
}

.quiz-cta-icon {
    width: 46px;
    height: 46px;
    background: var(--accent);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.quiz-cta.quiz-passed .quiz-cta-icon {
    background: var(--success);
}

.quiz-cta-info {
    flex: 1;
    min-width: 180px;
}

.quiz-cta-info strong {
    display: block;
    font-size: 14.5px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.quiz-cta-info span {
    display: block;
    font-size: 13px;
    color: #1e40af;
    line-height: 1.5;
}

.quiz-cta.quiz-passed .quiz-cta-info span {
    color: #166534;
}

/* Quiz section na aula (lessons_edit) */
.quiz-section-box {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-lg);
}

.quiz-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.quiz-section-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.quiz-section-info {
    flex: 1;
    min-width: 200px;
}

.quiz-section-info h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quiz-section-info p {
    font-size: 13px;
    color: #1e40af;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.quiz-section-info p .badge {
    font-size: 10.5px;
}

/* ============================================================
   32. QUIZ — Página do Aluno
   ============================================================ */
.quiz-page {
    background: var(--bg);
    min-height: calc(100vh - 72px);
    padding-bottom: 40px;
}

.quiz-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    margin-bottom: 24px;
    position: sticky;
    top: 72px;
    z-index: 50;
}

.quiz-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.quiz-back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.quiz-back:hover {
    color: var(--accent);
}

.quiz-title-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    flex: 1;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quiz-title-bar i {
    color: var(--accent);
}

.quiz-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.quiz-header {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.quiz-header h1 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 10px;
}

.quiz-header > p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.quiz-meta-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.quiz-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.quiz-meta-item i {
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 4px;
}

.quiz-meta-item strong {
    font-size: 20px;
    color: var(--primary);
    font-weight: 700;
    line-height: 1;
}

.quiz-meta-item span {
    font-size: 12px;
    color: var(--text-muted);
}

.question-block {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.question-header-block {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.question-number-badge {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.question-number-badge.correct {
    background: var(--success);
}

.question-number-badge.wrong {
    background: var(--danger);
}

.question-text-block {
    flex: 1;
    min-width: 0;
}

.question-text-block h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 6px;
}

.question-points {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.question-points i {
    color: var(--warning);
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 56px;
}

.option-choice {
    display: block;
    cursor: pointer;
    position: relative;
}

.option-choice input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-choice-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    transition: var(--transition);
}

.option-choice:hover .option-choice-content {
    border-color: var(--border-dark);
    background: var(--bg);
}

.option-choice input[type="radio"]:checked + .option-choice-content {
    border-color: var(--accent);
    background: var(--accent-light);
}

.option-choice-marker {
    font-size: 18px;
    color: var(--text-light);
    flex-shrink: 0;
    transition: var(--transition);
}

.option-choice input[type="radio"]:checked + .option-choice-content .option-choice-marker {
    color: var(--accent);
}

.option-choice-text {
    flex: 1;
    font-size: 14.5px;
    color: var(--text);
    line-height: 1.5;
}

.option-choice input[type="radio"]:checked + .option-choice-content .option-choice-text {
    font-weight: 600;
    color: var(--accent);
}

.option-choice.review {
    cursor: default;
}

.option-choice.review .option-choice-content {
    border-color: var(--border);
    background: var(--white);
}

.option-choice.option-correct .option-choice-content {
    border-color: var(--success);
    background: var(--success-light);
}

.option-choice.option-wrong .option-choice-content {
    border-color: var(--danger);
    background: var(--danger-light);
}

.option-choice.option-correct .option-choice-marker {
    color: var(--success);
}

.option-choice.option-wrong .option-choice-marker {
    color: var(--danger);
}

.option-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.correct-tag {
    background: var(--success);
    color: var(--white);
}

.wrong-tag {
    background: var(--danger);
    color: var(--white);
}

.chosen-correct-tag {
    background: var(--white);
    color: var(--success);
    border: 1px solid var(--success);
}

.chosen-wrong-tag {
    background: var(--white);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.quiz-submit-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
}

.quiz-submit-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 240px;
}

.quiz-submit-info i {
    color: var(--warning);
    font-size: 22px;
    flex-shrink: 0;
}

.quiz-submit-info strong {
    display: block;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 2px;
}

.quiz-submit-info div {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.quiz-sidebar {
    position: sticky;
    top: 152px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quiz-summary-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.quiz-summary-box h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.summary-progress {
    margin-bottom: 20px;
}

.summary-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-alt);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.summary-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    border-radius: 4px;
    transition: width 0.4s ease;
}

.summary-progress-text {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.summary-progress-text span {
    font-weight: 700;
    color: var(--accent);
}

.summary-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.summary-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    gap: 8px;
}

.summary-stat span {
    color: var(--text-muted);
}

.summary-stat strong {
    color: var(--primary);
    font-weight: 600;
}

.summary-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius);
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 16px;
}

.summary-info i {
    color: var(--accent);
    margin-top: 2px;
    flex-shrink: 0;
}

.quiz-nav-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.quiz-nav-box h4 {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.question-nav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.question-nav-btn {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.question-nav-btn:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    transform: scale(1.05);
}

.question-nav-btn.answered {
    background: var(--success-light);
    color: var(--success);
    border-color: var(--success);
}

/* ============================================================
   33. RESULTADO DO QUIZ
   ============================================================ */
.result-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border-top: 6px solid var(--success);
    max-width: 800px;
    margin: 0 auto;
}

.result-card.result-failed {
    border-top-color: var(--danger);
}

.result-icon {
    font-size: 72px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 24px;
}

.result-passed .result-icon {
    color: var(--success);
    background: var(--success-light);
}

.result-failed .result-icon {
    color: var(--danger);
    background: var(--danger-light);
}

.result-card h1 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.result-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.result-score {
    margin: 32px 0;
}

.result-score-value {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -3px;
}

.result-passed .result-score-value {
    color: var(--success);
}

.result-failed .result-score-value {
    color: var(--danger);
}

.result-score-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 10px;
}

.result-score-label strong {
    color: var(--primary);
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 480px;
    margin: 32px auto;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
}

.result-stat {
    text-align: center;
}

.result-stat i {
    font-size: 22px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.result-stat strong {
    display: block;
    font-size: 26px;
    color: var(--primary);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.result-stat span {
    font-size: 12px;
    color: var(--text-muted);
}

.result-extra-info {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 24px 0;
}

.result-extra-info .badge {
    font-size: 12px;
    padding: 5px 12px;
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.result-footer-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.review-block.review-correct {
    border-left: 4px solid var(--success);
}

.review-block.review-wrong {
    border-left: 4px solid var(--danger);
}

.review-block.review-empty {
    border-left: 4px solid var(--warning);
}

.question-review-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.option-choice-text-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.option-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ============================================================
   34. TABELA DE MATRÍCULAS
   ============================================================ */
.enrollments-table {
    font-size: 13.5px;
}

.enrollments-table td {
    padding: 14px 16px;
    vertical-align: middle;
}

.enrollments-table tr.row-cancelled {
    opacity: 0.6;
    background: var(--bg-alt);
}

.enrollments-table tr.row-cancelled:hover {
    opacity: 0.8;
}

.user-cell-info {
    min-width: 0;
    flex: 1;
}

.user-cell-info strong {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}

.user-cell-info span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}

.course-link {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 2px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: var(--transition);
}

.course-link:hover {
    color: var(--accent);
}

.progress-cell {
    min-width: 140px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
    gap: 8px;
}

.progress-text i {
    font-size: 12px;
}

.payment-method {
    display: block;
    font-size: 10.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    font-weight: 600;
}

.date-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.date-cell i {
    font-size: 11px;
}

.enrollments-table td small {
    display: block;
    font-size: 11.5px;
    margin-top: 2px;
}

/* Dropdown de ações */
.dropdown-actions {
    position: relative;
    display: inline-block;
}

.action-menu-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dropdown-actions.open .action-menu-btn {
    background: var(--accent-light);
    color: var(--accent);
}

.dropdown-actions-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.15s ease;
}

.dropdown-actions.open .dropdown-actions-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 13px;
    font-family: inherit;
    color: var(--text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.dropdown-action-item i {
    width: 14px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

.dropdown-action-item:hover {
    background: var(--bg-alt);
    color: var(--accent);
}

.dropdown-action-item:hover i {
    color: var(--accent);
}

.dropdown-action-item.danger {
    color: var(--danger);
}

.dropdown-action-item.danger i {
    color: var(--danger);
}

.dropdown-action-item.danger:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.dropdown-actions-menu .dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* ============================================================
   35. HOME — Estatísticas e Features
   ============================================================ */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.15);
}

.hero-badge i {
    color: var(--accent);
}

.stats-section {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-item {
    text-align: center;
    padding: 12px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.section-alt {
    background: var(--bg-alt);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.area-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}

.area-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--text);
}

.area-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 14px;
    color: var(--white);
    transition: var(--transition);
}

.area-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.area-azul     .area-icon { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.area-verde    .area-icon { background: linear-gradient(135deg, #16a34a, #15803d); }
.area-laranja  .area-icon { background: linear-gradient(135deg, #ea580c, #c2410c); }
.area-roxo     .area-icon { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.area-vermelho .area-icon { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.area-ciano    .area-icon { background: linear-gradient(135deg, #0891b2, #0e7490); }

.area-card:hover .area-icon {
    transform: scale(1.05);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-dark);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.cta-section {
    padding: 64px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
}

.cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.cta-content {
    max-width: 560px;
}

.cta-content h2 {
    font-size: 32px;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.cta-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin: 0;
}

.cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================================
   36. ATIVIDADE RECENTE (Perfil)
   ============================================================ */
.quizzes-recent-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-recent-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.quiz-recent-item:hover {
    border-color: var(--border-dark);
    box-shadow: var(--shadow-sm);
}

.quiz-recent-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--white);
    flex-shrink: 0;
}

.quiz-recent-icon.passed { background: var(--success); }
.quiz-recent-icon.failed { background: var(--danger); }

.quiz-recent-info {
    flex: 1;
    min-width: 0;
}

.quiz-recent-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quiz-recent-info span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.quiz-recent-info span i {
    color: var(--accent);
    font-size: 10.5px;
}

.quiz-recent-info .separator {
    color: var(--text-light);
}

.quiz-recent-score {
    text-align: right;
    flex-shrink: 0;
    min-width: 80px;
}

.quiz-recent-score strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.quiz-recent-score small {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.quiz-recent-date {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 100px;
    justify-content: flex-end;
}

.quiz-recent-date i {
    font-size: 11px;
}

/* ============================================================
   37. QUIZ — Coluna na tabela de aulas (admin)
   ============================================================ */
.quiz-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quiz-cell-top .badge {
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.quiz-cell-top .badge:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.quiz-cell-stats {
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 2px;
}

.quiz-cell-stats small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.quiz-cell-stats i {
    font-size: 10px;
    color: var(--accent);
}

.lessons-table .btn-ghost.btn-sm {
    font-size: 12px;
    padding: 5px 10px;
    white-space: nowrap;
}

/* ============================================================
   RESPONSIVO — Bloco Unificado
   Mobile-first, sem duplicações
   ============================================================ */

/* ------------ TIPOGRAFIA FLUIDA ------------ */
h1 { font-size: clamp(1.75rem, 4vw + 1rem, 2.75rem); }
h2 { font-size: clamp(1.375rem, 2.5vw + 0.75rem, 1.75rem); }
h3 { font-size: clamp(1.05rem, 1.5vw + 0.5rem, 1.25rem); }

/* ------------ WRAPPERS SEMPRE ROLÁVEIS ------------ */
.table-wrapper,
.lessons-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table,
.lessons-table,
.enrollments-table {
    min-width: 640px;
}

/* ------------ BOTÕES E AÇÕES COM WRAP ------------ */
.actions,
.form-actions,
.lesson-actions,
.result-actions,
.result-footer-actions,
.hero-actions,
.quiz-submit-box,
.cta-actions,
.course-actions {
    flex-wrap: wrap;
}

/* ============================================================
   BREAKPOINT 1200px
   ============================================================ */
@media (max-width: 1200px) {
    .lessons-table thead th:nth-child(4),
    .lessons-table tbody td:nth-child(4),
    .enrollments-table thead th:nth-child(5),
    .enrollments-table tbody td:nth-child(5) {
        display: none;
    }

    .player-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .quiz-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .course-hero {
        grid-template-columns: minmax(0, 1fr) 340px;
    }
}

/* ============================================================
   BREAKPOINT 1024px
   ============================================================ */
@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 12px 0;
    }

    .sidebar-title {
        display: none;
    }

    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding: 0 12px;
        gap: 4px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar-menu::-webkit-scrollbar {
        height: 4px;
    }

    .sidebar-menu::-webkit-scrollbar-thumb {
        background: var(--border-dark);
        border-radius: 2px;
    }

    .sidebar-menu a {
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
        padding: 10px 14px;
        border-radius: var(--radius-sm);
        flex-shrink: 0;
    }

    .sidebar-menu a.active {
        border-left: none;
        border-bottom-color: var(--accent);
        background: var(--accent-light);
    }

    .dashboard-content {
        padding: clamp(20px, 3vw, 28px) clamp(16px, 2.5vw, 24px);
    }

    .dashboard-grid-2 {
        grid-template-columns: 1fr;
    }

    .player-layout {
        grid-template-columns: 1fr;
    }

    .playlist {
        position: static;
        max-height: 420px;
    }

    .quiz-layout {
        grid-template-columns: 1fr;
    }

    .quiz-sidebar {
        position: static;
        order: -1;
    }

    .question-nav-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .course-hero {
        grid-template-columns: 1fr;
    }

    .course-sidebar {
        position: static;
    }

    .course-hero-content {
        padding: 0;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-sidebar {
        position: static;
        order: -1;
    }

    .lesson-edit-layout {
        grid-template-columns: 1fr;
    }

    .lesson-edit-sidebar {
        position: static;
    }

    .lessons-layout {
        grid-template-columns: 1fr;
    }

    .courses-list-panel {
        position: static;
        max-height: none;
    }

    .courses-list {
        max-height: 300px;
    }

    .filters-bar {
        grid-template-columns: 1fr 1fr;
    }

    .filter-search {
        grid-column: 1 / -1;
    }

    .player-course-title {
        display: none;
    }

    .player-topbar-inner {
        justify-content: space-between;
    }

    .table thead th:nth-child(5),
    .table tbody td:nth-child(5),
    .table thead th:nth-child(6),
    .table tbody td:nth-child(6) {
        display: none;
    }
}

/* ============================================================
   BREAKPOINT 900px
   ============================================================ */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .enrollments-table thead th:nth-child(4),
    .enrollments-table tbody td:nth-child(4) {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-actions {
        justify-content: center;
    }
}

/* ============================================================
   BREAKPOINT 768px
   ============================================================ */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 14px 0;
        gap: 12px;
    }

    .main-nav {
        width: 100%;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        width: 100%;
    }

    .main-nav ul li a {
        padding: 8px 12px;
        font-size: 13px;
    }

    .hero {
        padding: 48px 0;
    }

    .hero p {
        font-size: 15px;
    }

    .section {
        padding: 40px 0;
    }

    .section-sm {
        padding: 28px 0;
    }

    .section-header {
        margin-bottom: 24px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .course-hero-content h1 {
        font-size: 1.625rem;
    }

    .course-hero-meta {
        grid-template-columns: repeat(2, 1fr);
    }

    .course-about {
        padding: 24px 20px;
    }

    .lesson-row {
        padding: 14px 16px;
        gap: 12px;
    }

    .lesson-action .btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .lesson-info strong {
        font-size: 13.5px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 28px 22px;
    }

    .admin-form {
        padding: 22px 18px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 24px;
        gap: 16px;
    }

    .profile-info {
        text-align: center;
    }

    .profile-info p {
        justify-content: center;
    }

    .profile-badges {
        justify-content: center;
    }

    .profile-actions {
        width: 100%;
    }

    .profile-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .certificate-preview {
        padding: 24px;
        border-width: 5px;
    }

    .certificate-preview h1 {
        font-size: 22px;
    }

    .certificate-preview .recipient {
        font-size: 20px;
        min-width: auto;
    }

    .lesson-info {
        padding: 18px;
    }

    .lesson-info-header {
        flex-direction: column;
        gap: 10px;
    }

    .lesson-info-header h1 {
        font-size: 18px;
    }

    .lesson-actions .btn {
        min-width: 100%;
        flex: none;
    }

    .progress-bar-mini {
        width: 60px;
    }

    .player-progress-mini span {
        font-size: 12.5px;
    }

    .quiz-meta-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .options-container {
        padding-left: 0;
    }

    .quiz-submit-box {
        flex-direction: column;
        text-align: center;
    }

    .quiz-submit-box .btn {
        width: 100%;
        justify-content: center;
    }

    .question-nav-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .result-card {
        padding: 32px 20px;
    }

    .result-icon {
        width: 90px;
        height: 90px;
        font-size: 52px;
    }

    .result-card h1 {
        font-size: 22px;
    }

    .result-score-value {
        font-size: 52px;
        letter-spacing: -2px;
    }

    .result-stats {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 20px;
    }

    .option-choice-text-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .option-tags {
        width: 100%;
    }

    .table thead th:nth-child(3),
    .table tbody td:nth-child(3),
    .table thead th:nth-child(4),
    .table tbody td:nth-child(4) {
        display: none;
    }

    .course-cell-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .panel-item-meta {
        display: none;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .validate-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .validate-line strong {
        text-align: left;
    }

    .quiz-section-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .quiz-section-icon {
        margin: 0 auto;
    }

    .quiz-section-header .btn {
        width: 100%;
        justify-content: center;
    }

    .question-header {
        flex-wrap: wrap;
    }
}

/* ============================================================
   BREAKPOINT 640px
   ============================================================ */
@media (max-width: 640px) {
    .filters-bar {
        grid-template-columns: 1fr;
    }

    .filter-search {
        grid-column: auto;
    }

    .filters-bar .btn {
        width: 100%;
        justify-content: center;
    }

    .checkout-main {
        padding: 22px 18px;
    }

    .payment-option-content {
        padding: 14px;
    }

    .payment-icon {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }

    .order-total strong {
        font-size: 20px;
    }

    .enrollments-table {
        font-size: 12.5px;
    }

    .enrollments-table td {
        padding: 10px 8px;
    }

    .user-cell-info strong,
    .user-cell-info span {
        max-width: 140px;
    }

    .course-link {
        max-width: 140px;
    }

    .lessons-table thead th:nth-child(3),
    .lessons-table tbody td:nth-child(3) {
        display: none;
    }

    .lesson-video-url {
        max-width: 180px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn,
    .form-actions form {
        width: 100%;
    }

    .form-actions .btn {
        justify-content: center;
        flex: 1;
        min-width: 140px;
    }

    .preview-card {
        max-width: 100%;
    }

    .image-upload-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .image-preview {
        width: 100%;
        height: 180px;
    }

    .add-option-form {
        flex-direction: column;
        align-items: stretch;
    }

    .add-option-form input[type="text"] {
        min-width: 0;
        width: 100%;
    }

    .add-option-form .btn {
        width: 100%;
        justify-content: center;
    }

    .profile-avatar {
        width: 70px;
        height: 70px;
        font-size: 26px;
    }

    .profile-info h2 {
        font-size: 18px;
    }

    .cert-code {
        font-size: 10.5px;
        padding: 2px 6px;
    }

    .course-actions {
        flex-direction: column;
    }

    .course-actions .btn-sm {
        width: 100%;
    }

    .quiz-recent-item {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 16px;
    }

    .quiz-recent-score {
        min-width: auto;
    }

    .quiz-recent-date {
        width: 100%;
        justify-content: flex-start;
        min-width: auto;
        padding-top: 8px;
        border-top: 1px solid var(--border);
    }

    .validate-form {
        grid-template-columns: 1fr;
    }

    .quiz-cta {
        flex-direction: column;
        text-align: center;
    }

    .quiz-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   BREAKPOINT 480px
   ============================================================ */
@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .btn {
        padding: 10px 18px;
        font-size: 13.5px;
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 14px;
    }

    .areas-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-content {
        padding: 16px 12px;
    }

    .main-nav ul li a {
        padding: 8px 10px;
        font-size: 12.5px;
    }

    .brand-text {
        font-size: 16px;
    }

    .course-body {
        padding: 16px;
    }

    .sidebar-menu {
        padding: 0 8px;
    }

    .sidebar-menu a {
        padding: 8px 12px;
        font-size: 13px;
    }

    .question-block {
        padding: 18px;
    }

    .question-number-badge {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .result-score-value {
        font-size: 42px;
    }
}

/* ============================================================
   ORIENTAÇÃO PAISAGEM EM TELEMÓVEIS
   ============================================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 32px 0;
    }

    .player-wrapper {
        max-height: 70vh;
    }

    .quiz-sidebar,
    .checkout-sidebar {
        position: static;
    }
}

/* ============================================================
   ACESSIBILIDADE — REDUZIR MOVIMENTO
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   IMPRESSÃO
   ============================================================ */
@media print {
    .site-header,
    .site-footer,
    .btn,
    .no-print,
    .result-actions,
    .result-footer-actions,
    .breadcrumb,
    .sidebar,
    .dashboard-layout .sidebar {
        display: none !important;
    }

    body {
        background: var(--white);
    }

    .certificate-preview,
    .result-card,
    .question-block {
        box-shadow: none;
        border: 1px solid var(--border);
        page-break-inside: avoid;
    }

    .dashboard-layout {
        display: block;
    }
}

/* ============================================================
   Editar Perfil — Reforços
   ============================================================ */

/* Input de password com botão de toggle */
.input-password {
    position: relative;
    display: flex;
    align-items: center;
}

.input-password input {
    padding-right: 44px !important;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: var(--accent);
    background: var(--accent-light);
}

/* Indicador de força */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: var(--bg-alt);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 12px;
    font-weight: 600;
}

/* Hint de coincidência */
#matchHint {
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 500;
}

/* Zona Perigosa */
.danger-zone {
    background: var(--white);
    border: 2px solid #fecaca;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 32px;
}

.danger-zone-header {
    background: var(--danger-light);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #fecaca;
}

.danger-zone-header > i {
    font-size: 24px;
    color: var(--danger);
    flex-shrink: 0;
}

.danger-zone-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #991b1b;
    margin-bottom: 2px;
}

.danger-zone-header p {
    font-size: 13px;
    color: #b91c1c;
    margin: 0;
}

.danger-zone-body {
    padding: 24px;
}

.danger-zone-body > p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.danger-zone-body > p strong {
    color: var(--danger);
}

/* Responsivo */
@media (max-width: 640px) {
    .danger-zone-header {
        padding: 16px;
        gap: 12px;
    }

    .danger-zone-header > i {
        font-size: 20px;
    }

    .danger-zone-body {
        padding: 18px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   Tabela de Certificados (Admin)
   ============================================================ */

.certificates-table {
    font-size: 13.5px;
}

.certificates-table td {
    padding: 14px 16px;
    vertical-align: middle;
}

.cert-code {
    display: inline-block;
    background: var(--bg-alt);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 600;
    margin-right: 6px;
}

/* Responsivo */
@media (max-width: 1200px) {
    .certificates-table thead th:nth-child(5),
    .certificates-table tbody td:nth-child(5) {
        display: none;
    }
}

@media (max-width: 900px) {
    .certificates-table thead th:nth-child(4),
    .certificates-table tbody td:nth-child(4) {
        display: none;
    }

    .filters-bar {
        grid-template-columns: 1fr 1fr;
    }

    .filter-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .filters-bar {
        grid-template-columns: 1fr;
    }

    .certificates-table {
        font-size: 12.5px;
    }

    .certificates-table td {
        padding: 10px 8px;
    }

    .cert-code {
        font-size: 10.5px;
        padding: 2px 6px;
    }
}/* ============================================================
   TechAcademy — Folha de Estilo Principal
   Design institucional, profissional e responsivo
   Versão: 2.0 — Responsividade unificada
   ============================================================ */

/* ============================================================
   1. RESET E VARIÁVEIS
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais */
    --primary: #1a2b45;
    --primary-light: #24395a;
    --primary-dark: #111d30;

    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #dbeafe;

    --secondary: #0f766e;
    --secondary-light: #ccfbf1;

    /* Estados */
    --success: #16a34a;
    --success-light: #dcfce7;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --info: #0284c7;
    --info-light: #e0f2fe;

    /* Neutros */
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --white: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --border-dark: #cbd5e1;

    /* Layout */
    --radius: 8px;
    --radius-sm: 6px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Sombras */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);

    /* Transições */
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

/* ============================================================
   2. BASE
   ============================================================ */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.site-main {
    flex: 1;
}

img,
video,
iframe,
svg {
    max-width: 100%;
    height: auto;
}

img {
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

ul {
    list-style: none;
}

/* ============================================================
   3. TIPOGRAFIA
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary);
    letter-spacing: -0.3px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
h5 { font-size: 0.95rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

small {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

strong {
    font-weight: 600;
}

/* ============================================================
   4. LAYOUT
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 64px 0;
}

.section-sm {
    padding: 40px 0;
}

.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
}

.section-header .title-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.section-header .title-line::before {
    content: '';
    width: 4px;
    height: 28px;
    background: var(--accent);
    border-radius: 2px;
}

.section-header.text-center {
    text-align: center;
}

.section-header.text-center .title-line {
    justify-content: center;
}

/* ============================================================
   5. HEADER
   ============================================================ */
.site-header {
    background: var(--primary);
    border-bottom: 3px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.3px;
    transition: var(--transition);
}

.brand:hover {
    color: var(--white);
    opacity: 0.9;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--white);
    flex-shrink: 0;
}

.brand-text {
    white-space: nowrap;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav ul li a {
    color: rgba(255,255,255,0.85);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

.main-nav ul li a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white);
}

.main-nav ul li a.btn-cta {
    background: var(--accent);
    color: var(--white);
    font-weight: 600;
}

.main-nav ul li a.btn-cta:hover {
    background: var(--accent-hover);
}

.main-nav ul li a.btn-logout {
    color: rgba(255,255,255,0.7);
}

.main-nav ul li a.btn-logout:hover {
    color: #fca5a5;
    background: rgba(220,38,38,0.15);
}

/* ============================================================
   6. HERO
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: var(--white);
}

.hero p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    max-width: 560px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================================
   7. BOTÕES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    white-space: nowrap;
    line-height: 1.4;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
    color: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover:not(:disabled) {
    background: #0d5f58;
    color: var(--white);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover:not(:disabled) {
    background: #15803d;
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover:not(:disabled) {
    background: #b91c1c;
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover:not(:disabled) {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    color: var(--white);
}

.btn-outline-dark {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--border);
}

.btn-outline-dark:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--bg-alt);
    color: var(--text);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

/* ============================================================
   8. CARDS DE CURSO
   ============================================================ */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.course-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    border-color: var(--border-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.course-thumb {
    height: 160px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    font-size: 44px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.course-thumb.has-image {
    background: #0f172a;
}

.course-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-thumb.has-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.35) 0%,
        rgba(0,0,0,0) 40%,
        rgba(0,0,0,0) 70%,
        rgba(0,0,0,0.25) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.course-thumb .badge-level {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.course-thumb .badge-enrolled,
.course-thumb .badge-pending {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.course-thumb .badge-enrolled {
    background: var(--success);
    color: var(--white);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.course-thumb .badge-pending {
    background: var(--warning);
    color: var(--white);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.course-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.course-body .course-desc {
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 16px;
    flex: 1;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-bottom: 14px;
    gap: 8px;
    flex-wrap: wrap;
}

.course-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
}

.course-price.free {
    color: var(--success);
}

.course-duration {
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.course-meta-bottom span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.course-meta-bottom i {
    color: var(--accent);
}

/* ============================================================
   9. FORMULÁRIOS
   ============================================================ */
.auth-wrapper {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header .auth-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.auth-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: var(--text);
    font-size: 13.5px;
}

.form-group label .required {
    color: var(--danger);
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14.5px;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-group .hint {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.form-check label {
    font-size: 13.5px;
    color: var(--text-muted);
    cursor: pointer;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

.form-check label a {
    color: var(--accent);
    font-weight: 600;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ============================================================
   10. ALERTAS
   ============================================================ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    border: 1px solid transparent;
}

.alert i {
    margin-top: 2px;
    flex-shrink: 0;
}

.alert-danger {
    background: var(--danger-light);
    color: #991b1b;
    border-color: #fecaca;
}

.alert-success {
    background: var(--success-light);
    color: #166534;
    border-color: #bbf7d0;
}

.alert-info {
    background: var(--info-light);
    color: #075985;
    border-color: #bae6fd;
}

.alert-warning {
    background: var(--warning-light);
    color: #92400e;
    border-color: #fde68a;
}

/* ============================================================
   11. BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.badge-primary { background: var(--accent-light); color: var(--accent); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-danger  { background: var(--danger-light); color: var(--danger); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-info    { background: var(--info-light); color: var(--info); }
.badge-muted   { background: var(--bg-alt); color: var(--text-muted); }

/* ============================================================
   12. TABELAS
   ============================================================ */
.table-wrapper {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table thead {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.table thead th {
    text-align: left;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 12.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background: var(--bg);
}

.table .actions {
    display: flex;
    gap: 6px;
}

/* ============================================================
   13. PAINEL (DASHBOARD)
   ============================================================ */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 72px);
}

.sidebar {
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 24px 0;
}

.sidebar-title {
    padding: 0 24px 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 600;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 24px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.sidebar-menu a:hover {
    background: var(--bg);
    color: var(--text);
}

.sidebar-menu a.active {
    background: var(--accent-light);
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
}

.sidebar-menu a i {
    width: 18px;
    text-align: center;
}

.dashboard-content {
    padding: 32px;
    background: var(--bg);
}

.page-header {
    margin-bottom: 28px;
}

.page-header h1 {
    font-size: 24px;
    margin-bottom: 4px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* Estatísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-icon.blue   { background: var(--accent-light); color: var(--accent); }
.stat-icon.green  { background: var(--success-light); color: var(--success); }
.stat-icon.orange { background: var(--warning-light); color: var(--warning); }
.stat-icon.red    { background: var(--danger-light); color: var(--danger); }

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}

.stat-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================================
   14. PLAYER DE VÍDEO
   ============================================================ */
.player-page {
    background: var(--bg-alt);
    min-height: calc(100vh - 72px);
    padding-bottom: 40px;
}

.player-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    margin-bottom: 24px;
    position: sticky;
    top: 72px;
    z-index: 50;
}

.player-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.player-back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    flex-shrink: 0;
}

.player-back:hover {
    color: var(--accent);
}

.player-course-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-course-title i {
    color: var(--accent);
}

.player-progress-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.player-progress-mini span {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary);
    min-width: 40px;
    text-align: right;
}

.progress-bar-mini {
    width: 100px;
    height: 6px;
    background: var(--bg-alt);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    border-radius: 3px;
    transition: width 0.4s ease;
}

.player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
    padding: 24px 0;
}

.player-main {
    min-width: 0;
}

.player-wrapper {
    position: relative;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
}

.player-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
}

.player-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    text-align: center;
    padding: 24px;
}

.video-placeholder i {
    font-size: 56px;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.4);
}

.video-placeholder h3 {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 8px;
}

.video-placeholder p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.lesson-info {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 20px;
}

.lesson-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.lesson-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.lesson-info-header h1 {
    font-size: 22px;
    color: var(--primary);
    line-height: 1.3;
    margin: 0;
}

.lesson-info-meta {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.lesson-info-meta span {
    font-size: 13.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.lesson-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.lesson-actions .btn {
    flex: 1;
    min-width: 140px;
}

.lesson-progress-detail {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.progress-note {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
}

.progress-note i {
    color: var(--accent);
}

/* Playlist */
.playlist {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: sticky;
    top: 152px;
    max-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
}

.playlist-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}

.playlist-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.playlist-header h3 i {
    color: var(--accent);
}

.playlist-header p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0;
}

.playlist-items {
    overflow-y: auto;
    flex: 1;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    position: relative;
}

.playlist-item:last-child {
    border-bottom: none;
}

.playlist-item:hover {
    background: var(--bg);
}

.playlist-item.active {
    background: var(--accent-light);
    border-left: 3px solid var(--accent);
}

.playlist-item .num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-alt);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.playlist-item.active .num {
    background: var(--accent);
    color: var(--white);
}

.playlist-item.completed .num {
    background: var(--success);
    color: var(--white);
}

.playlist-item .info {
    flex: 1;
    min-width: 0;
}

.playlist-item .title {
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.playlist-item.active .title {
    color: var(--accent);
    font-weight: 600;
}

.playlist-item .duration {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--text-muted);
}

.playing-icon {
    color: var(--accent);
    font-size: 12px;
    flex-shrink: 0;
}

/* ============================================================
   15. CERTIFICADO
   ============================================================ */
.certificate-preview {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 6px solid var(--primary);
    border-bottom: 6px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.cert-subtitle-top {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--primary);
}

.certificate-preview h1 {
    font-size: 24px;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 6px;
}

.certificate-preview .subtitle {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.certificate-preview .recipient {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    display: inline-block;
    min-width: 360px;
}

.certificate-preview .course-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin: 16px 0;
}

.certificate-preview .qr-area {
    margin: 30px 0 20px;
}

.certificate-preview .qr-area img {
    display: inline-block;
    border: 4px solid var(--bg-alt);
    border-radius: 8px;
    padding: 6px;
    background: var(--white);
}

.certificate-preview .footer-info {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================================
   16. PERFIL
   ============================================================ */
.profile-header {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-info h2 {
    font-size: 22px;
    margin-bottom: 4px;
    color: var(--primary);
}

.profile-info p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-info p i {
    color: var(--accent);
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.profile-actions {
    flex-shrink: 0;
}

.profile-progress {
    margin: 12px 0 16px;
}

.progress-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 8px;
}

.progress-detail i {
    color: var(--accent);
    font-size: 10px;
}

.profile-pending-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--warning-light);
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    color: #92400e;
    font-size: 13px;
    margin: 12px 0 16px;
    font-weight: 500;
}

.profile-pending-notice i {
    color: var(--warning);
    flex-shrink: 0;
}

.course-card.card-pending {
    border-color: #fde68a;
}

.course-card.card-pending .course-thumb {
    filter: grayscale(0.3);
}

.course-actions {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.course-actions .btn-block {
    flex: 1;
}

/* Certificados no perfil */
.cert-code {
    display: inline-block;
    background: var(--bg-alt);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 600;
}

/* ============================================================
   17. ESTADOS VAZIOS
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border: 1px dashed var(--border-dark);
    border-radius: var(--radius-lg);
}

.empty-state i {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 16px;
    display: block;
}

.empty-state h3 {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

/* ============================================================
   18. PAGINAÇÃO
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination .active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* ============================================================
   19. FOOTER
   ============================================================ */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.75);
    padding: 56px 0 24px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.brand-footer {
    margin-bottom: 16px;
    font-size: 18px;
}

.footer-desc {
    font-size: 13.5px;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    max-width: 320px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.65);
    font-size: 13.5px;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 10px;
}

.contact-list li i {
    color: var(--accent);
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.footer-note {
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    max-width: 520px;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   20. UTILITÁRIOS
   ============================================================ */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.text-muted   { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }

.mt-0  { margin-top: 0; }
.mt-1  { margin-top: 8px; }
.mt-2  { margin-top: 16px; }
.mt-3  { margin-top: 24px; }
.mt-4  { margin-top: 32px; }

.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 8px; }
.mb-2  { margin-bottom: 16px; }
.mb-3  { margin-bottom: 24px; }
.mb-4  { margin-bottom: 32px; }

.flex         { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center  { display: flex; justify-content: center; align-items: center; }
.gap-1        { gap: 8px; }
.gap-2        { gap: 16px; }
.gap-3        { gap: 24px; }

.hidden { display: none !important; }

/* ============================================================
   21. DASHBOARD ADMIN — Reforços
   ============================================================ */
.dashboard-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.dashboard-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
    gap: 12px;
    flex-wrap: wrap;
}

.panel-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.panel-header h3 i {
    color: var(--accent);
}

.panel-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.panel-empty i {
    font-size: 32px;
    color: var(--text-light);
    margin-bottom: 12px;
    display: block;
}

.panel-empty p {
    margin: 0;
    font-size: 14px;
}

.panel-list {
    display: flex;
    flex-direction: column;
}

.panel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.panel-item:last-child {
    border-bottom: none;
}

.panel-item:hover {
    background: var(--bg);
}

.panel-item-avatar,
.panel-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.panel-item-icon {
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 16px;
}

.panel-item-info {
    flex: 1;
    min-width: 0;
}

.panel-item-info strong {
    display: block;
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-item-info span {
    display: block;
    font-size: 12.5px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-item-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.panel-item-meta small {
    font-size: 11.5px;
    color: var(--text-light);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.quick-action {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.quick-action:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-action i {
    width: 42px;
    height: 42px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: var(--transition);
}

.quick-action:hover i {
    background: var(--accent);
    color: var(--white);
}

/* ============================================================
   22. CATÁLOGO — Filtros
   ============================================================ */
.filters-bar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto auto;
    gap: 12px;
    align-items: center;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.filter-search {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-search i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.filter-search input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
}

.filter-search input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.filter-select {
    padding: 11px 36px 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.filters-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 4px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.filters-result strong {
    color: var(--primary);
    font-weight: 700;
}

/* ============================================================
   23. DETALHES DO CURSO
   ============================================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb i.fa-chevron-right {
    font-size: 9px;
    color: var(--text-light);
}

.breadcrumb span {
    color: var(--primary);
    font-weight: 500;
}

.course-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
    margin-bottom: 48px;
    align-items: start;
}

.course-hero-content {
    padding: 32px 0;
    min-width: 0;
}

.course-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.course-hero-content h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.course-hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 680px;
}

.course-hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-item > i {
    width: 40px;
    height: 40px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.meta-item div {
    display: flex;
    flex-direction: column;
}

.meta-item strong {
    font-size: 16px;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

.meta-item span {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.course-sidebar {
    position: sticky;
    top: 96px;
}

.course-card-price {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.course-hero-icon {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

.price-display {
    text-align: center;
    margin-bottom: 20px;
}

.price-tag {
    display: inline-block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    padding: 8px 24px;
    border-radius: var(--radius);
}

.price-tag.free {
    color: var(--success);
    background: var(--success-light);
}

.price-tag.paid {
    color: var(--secondary);
    background: #fff7ed;
}

.price-tag.enrolled {
    color: var(--accent);
    background: var(--accent-light);
    font-size: 20px;
}

.progress-section {
    margin-bottom: 16px;
    padding: 14px;
    background: var(--bg);
    border-radius: var(--radius);
}

.course-features {
    list-style: none;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.course-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13.5px;
    color: var(--text-muted);
}

.course-features li i {
    color: var(--success);
    font-size: 13px;
}

.course-content {
    margin-top: 40px;
}

.lessons-list {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.lesson-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.lesson-row:last-child {
    border-bottom: none;
}

.lesson-row:hover {
    background: var(--bg);
}

.lesson-row.lesson-locked {
    opacity: 0.6;
}

.lesson-number {
    width: 36px;
    height: 36px;
    background: var(--bg-alt);
    color: var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.lesson-info {
    flex: 1;
    min-width: 0;
}

.lesson-info strong {
    display: block;
    font-size: 14.5px;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 4px;
}

.lesson-info span {
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.lesson-action {
    flex-shrink: 0;
}

.course-about {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.course-about p {
    color: var(--text);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.course-about h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 16px;
    margin-top: 24px;
}

.course-about h3:first-of-type {
    margin-top: 0;
}

.course-objectives {
    list-style: none;
    margin-bottom: 24px;
}

.course-objectives li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 14.5px;
    color: var(--text);
    line-height: 1.6;
}

.course-objectives li i {
    color: var(--accent);
    font-size: 14px;
    margin-top: 4px;
    flex-shrink: 0;
}

/* ============================================================
   24. CHECKOUT
   ============================================================ */
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    align-items: start;
}

.checkout-main {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.payment-methods {
    margin-bottom: 32px;
}

.payment-methods h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.payment-option {
    display: block;
    cursor: pointer;
    margin-bottom: 12px;
    position: relative;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-option-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    transition: var(--transition);
}

.payment-option:hover .payment-option-content {
    border-color: var(--border-dark);
}

.payment-option.active .payment-option-content {
    border-color: var(--accent);
    background: var(--accent-light);
}

.payment-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
    flex-shrink: 0;
}

.payment-icon.mpesa-icon    { background: #e60000; }
.payment-icon.emola-icon    { background: #f59e0b; }
.payment-icon.transfer-icon { background: var(--primary); }

.payment-info {
    flex: 1;
    min-width: 0;
}

.payment-info strong {
    display: block;
    font-size: 14.5px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 2px;
}

.payment-info span {
    font-size: 13px;
    color: var(--text-muted);
}

.payment-check {
    color: var(--border-dark);
    font-size: 20px;
    transition: var(--transition);
}

.payment-option.active .payment-check {
    color: var(--accent);
}

.payment-details {
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.payment-details h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.payment-details .hint {
    color: var(--text-muted);
    font-size: 12.5px;
    margin-top: 6px;
    display: block;
}

.checkout-sidebar {
    position: sticky;
    top: 96px;
}

.order-summary {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.order-summary h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.order-course {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.order-course-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.order-course-icon.has-image {
    overflow: hidden;
    padding: 0;
    background: var(--bg-alt);
}

.order-course-icon.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.order-course-info {
    flex: 1;
    min-width: 0;
}

.order-course-info strong {
    display: block;
    font-size: 14.5px;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}

.order-course-info span {
    font-size: 12.5px;
    color: var(--text-muted);
}

.order-lines {
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.order-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    gap: 8px;
}

.order-line span {
    color: var(--text-muted);
}

.order-line strong {
    color: var(--text);
    font-weight: 600;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 20px;
    gap: 8px;
}

.order-total span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.order-total strong {
    font-size: 22px;
    color: var(--primary);
    font-weight: 700;
}

.order-benefits {
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.order-benefits h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.order-benefits ul {
    list-style: none;
}

.order-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 13.5px;
    color: var(--text-muted);
}

.order-benefits li i {
    color: var(--success);
    font-size: 12px;
}

#btnSubmit:disabled {
    cursor: wait;
}

/* ============================================================
   25. VALIDAÇÃO DE CERTIFICADO
   ============================================================ */
.validate-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.validate-result {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.validate-result.valid {
    border-top: 4px solid var(--success);
}

.validate-result.invalid {
    border-top: 4px solid var(--danger);
}

.validate-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.validate-result.valid .validate-icon {
    color: var(--success);
}

.validate-result.invalid .validate-icon {
    color: var(--danger);
}

.validate-result h2 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 10px;
}

.validate-result > p {
    color: var(--text-muted);
    font-size: 14.5px;
    max-width: 520px;
    margin: 0 auto 24px;
}

.validate-details {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px 24px;
    max-width: 520px;
    margin: 0 auto;
    text-align: left;
}

.validate-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.validate-line:last-child {
    border-bottom: none;
}

.validate-line span {
    color: var(--text-muted);
    flex-shrink: 0;
}

.validate-line strong {
    color: var(--primary);
    text-align: right;
    font-weight: 600;
}

.validate-line code {
    background: var(--white);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12.5px;
    letter-spacing: 1px;
}

/* ============================================================
   26. TABELA DE CURSOS (Admin)
   ============================================================ */
.course-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.course-cell-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.course-cell-info {
    min-width: 0;
    flex: 1;
}

.course-cell-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-cell-info span {
    display: block;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: var(--text);
    font-weight: 500;
}

.table-count i {
    color: var(--text-muted);
    font-size: 12px;
}

.actions .btn-ghost.text-danger {
    color: var(--danger);
}

.actions .btn-ghost.text-danger:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.actions .btn-sm {
    padding: 6px 10px;
    min-width: 34px;
    justify-content: center;
}

/* ============================================================
   27. FORMULÁRIO ADMIN
   ============================================================ */
.admin-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    max-width: 860px;
}

.form-preview {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.form-preview h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 14px;
    font-weight: 600;
}

.preview-card {
    display: flex;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 420px;
    transition: var(--transition);
}

.preview-thumb {
    width: 110px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: rgba(255,255,255,0.85);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.preview-thumb .badge-level {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.preview-body {
    padding: 14px 16px;
    flex: 1;
    min-width: 0;
}

.preview-body strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.preview-body p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.preview-meta span {
    font-size: 14px;
    font-weight: 700;
}

.preview-meta .preview-free {
    color: var(--success);
}

.preview-meta .preview-paid {
    color: var(--secondary);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

/* ============================================================
   28. UPLOAD DE IMAGEM
   ============================================================ */
.image-upload-wrapper {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 20px;
    background: var(--bg);
    border: 1px dashed var(--border-dark);
    border-radius: var(--radius);
    margin-top: 8px;
}

.image-preview {
    width: 240px;
    height: 135px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    gap: 6px;
    background: var(--bg-alt);
}

.image-placeholder i {
    font-size: 28px;
}

.image-placeholder span {
    font-size: 12px;
    font-weight: 500;
}

.image-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.95);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: var(--transition);
    z-index: 2;
}

.image-remove-btn:hover {
    background: var(--danger);
    transform: scale(1.08);
}

.image-upload-info {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}

.image-upload-info .hint {
    display: block;
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

.image-upload-info .hint strong {
    color: var(--text);
}

/* ============================================================
   29. AULAS — Admin
   ============================================================ */
.lessons-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    margin-top: 24px;
    align-items: start;
}

.courses-list-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

.courses-list-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.courses-list-panel .panel-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.courses-list-panel .panel-header h3 i {
    color: var(--accent);
}

.courses-list {
    overflow-y: auto;
    flex: 1;
}

.course-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}

.course-list-item:last-child {
    border-bottom: none;
}

.course-list-item:hover {
    background: var(--bg);
}

.course-list-item.active {
    background: var(--accent-light);
    border-left: 3px solid var(--accent);
}

.course-list-info {
    flex: 1;
    min-width: 0;
}

.course-list-info strong {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-list-item.active .course-list-info strong {
    color: var(--accent);
}

.course-list-info span {
    display: block;
    font-size: 11.5px;
    color: var(--text-muted);
}

.course-list-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-alt);
    padding: 3px 8px;
    border-radius: 12px;
    flex-shrink: 0;
}

.course-list-item.active .course-list-count {
    background: var(--accent);
    color: var(--white);
}

.lessons-panel {
    min-width: 0;
}

.course-header-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.course-header-info h2 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 8px;
}

.course-header-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lessons-table-wrapper {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.lessons-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 640px;
}

.lessons-table thead {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.lessons-table thead th {
    text-align: left;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lessons-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.lessons-table tbody tr:last-child td {
    border-bottom: none;
}

.lessons-table tbody tr:hover {
    background: var(--bg);
}

.lesson-num {
    width: 32px;
    height: 32px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.lesson-info-cell strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 4px;
}

.lesson-video-url {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 400px;
}

.lesson-video-url i {
    color: var(--accent);
    flex-shrink: 0;
}

.lesson-video-url.empty i {
    color: var(--warning);
}

.order-controls {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.order-btn {
    width: 28px;
    height: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: var(--transition);
}

.order-btn:hover:not(:disabled) {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.order-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================================
   30. EDITOR DE AULAS
   ============================================================ */
.lesson-edit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 24px;
    align-items: start;
}

.lesson-edit-main {
    min-width: 0;
}

.lesson-edit-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.input-with-icon input {
    padding-left: 40px !important;
}

.preview-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.preview-panel-header {
    padding: 14px 18px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-panel-header i {
    color: var(--accent);
}

.preview-panel-body {
    padding: 16px;
}

.video-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-preview iframe,
.video-preview video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video-preview-empty,
.video-preview-error {
    text-align: center;
    color: rgba(255,255,255,0.6);
    padding: 20px;
}

.video-preview-empty i,
.video-preview-error i {
    font-size: 36px;
    margin-bottom: 10px;
    display: block;
    color: rgba(255,255,255,0.3);
}

.video-preview-error i {
    color: var(--warning);
    opacity: 0.8;
}

.video-preview-empty p,
.video-preview-error p {
    font-size: 14px;
    margin-bottom: 4px;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}

.video-preview-empty small,
.video-preview-error small {
    font-size: 11.5px;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
}

.lesson-preview-info {
    padding: 14px 16px;
    background: var(--bg);
    border-radius: var(--radius);
}

.lesson-preview-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.lesson-preview-meta {
    display: flex;
    gap: 16px;
    font-size: 12.5px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.lesson-preview-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lesson-preview-meta i {
    color: var(--accent);
}

.preview-tip {
    padding: 12px 16px;
    background: var(--accent-light);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    font-size: 12.5px;
    color: #1e40af;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.preview-tip i {
    margin-top: 2px;
    flex-shrink: 0;
}

.preview-tip strong {
    color: #1e3a8a;
}

/* ============================================================
   31. QUIZ
   ============================================================ */
.questions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.question-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.question-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.question-number {
    width: 34px;
    height: 34px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.question-body {
    flex: 1;
    min-width: 0;
}

.question-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.question-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.options-list {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.options-empty {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    padding: 16px;
    font-style: italic;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    transition: var(--transition);
}

.option-row.correct {
    background: var(--success-light);
    border-color: var(--success);
}

.option-row form {
    margin: 0;
}

.check-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.option-row.correct .check-btn {
    color: var(--success);
}

.check-btn:hover {
    color: var(--success);
    transform: scale(1.1);
}

.option-text {
    font-size: 14px;
    color: var(--text);
    flex: 1;
}

.option-row.correct .option-text {
    font-weight: 600;
    color: var(--success);
}

.add-option-form {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    flex-wrap: wrap;
}

.add-option-form input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 13.5px;
    font-family: inherit;
}

.add-option-form input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
}

.checkbox-inline input[type="checkbox"] {
    accent-color: var(--success);
}

/* Quiz na aula (watch.php) */
.quiz-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.quiz-cta.quiz-passed {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #bbf7d0;
}

.quiz-cta-icon {
    width: 46px;
    height: 46px;
    background: var(--accent);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.quiz-cta.quiz-passed .quiz-cta-icon {
    background: var(--success);
}

.quiz-cta-info {
    flex: 1;
    min-width: 180px;
}

.quiz-cta-info strong {
    display: block;
    font-size: 14.5px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.quiz-cta-info span {
    display: block;
    font-size: 13px;
    color: #1e40af;
    line-height: 1.5;
}

.quiz-cta.quiz-passed .quiz-cta-info span {
    color: #166534;
}

/* Quiz section na aula (lessons_edit) */
.quiz-section-box {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-lg);
}

.quiz-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.quiz-section-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.quiz-section-info {
    flex: 1;
    min-width: 200px;
}

.quiz-section-info h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quiz-section-info p {
    font-size: 13px;
    color: #1e40af;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.quiz-section-info p .badge {
    font-size: 10.5px;
}

/* ============================================================
   32. QUIZ — Página do Aluno
   ============================================================ */
.quiz-page {
    background: var(--bg);
    min-height: calc(100vh - 72px);
    padding-bottom: 40px;
}

.quiz-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    margin-bottom: 24px;
    position: sticky;
    top: 72px;
    z-index: 50;
}

.quiz-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.quiz-back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.quiz-back:hover {
    color: var(--accent);
}

.quiz-title-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    flex: 1;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quiz-title-bar i {
    color: var(--accent);
}

.quiz-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.quiz-header {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.quiz-header h1 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 10px;
}

.quiz-header > p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.quiz-meta-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.quiz-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.quiz-meta-item i {
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 4px;
}

.quiz-meta-item strong {
    font-size: 20px;
    color: var(--primary);
    font-weight: 700;
    line-height: 1;
}

.quiz-meta-item span {
    font-size: 12px;
    color: var(--text-muted);
}

.question-block {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.question-header-block {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.question-number-badge {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.question-number-badge.correct {
    background: var(--success);
}

.question-number-badge.wrong {
    background: var(--danger);
}

.question-text-block {
    flex: 1;
    min-width: 0;
}

.question-text-block h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 6px;
}

.question-points {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.question-points i {
    color: var(--warning);
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 56px;
}

.option-choice {
    display: block;
    cursor: pointer;
    position: relative;
}

.option-choice input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-choice-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    transition: var(--transition);
}

.option-choice:hover .option-choice-content {
    border-color: var(--border-dark);
    background: var(--bg);
}

.option-choice input[type="radio"]:checked + .option-choice-content {
    border-color: var(--accent);
    background: var(--accent-light);
}

.option-choice-marker {
    font-size: 18px;
    color: var(--text-light);
    flex-shrink: 0;
    transition: var(--transition);
}

.option-choice input[type="radio"]:checked + .option-choice-content .option-choice-marker {
    color: var(--accent);
}

.option-choice-text {
    flex: 1;
    font-size: 14.5px;
    color: var(--text);
    line-height: 1.5;
}

.option-choice input[type="radio"]:checked + .option-choice-content .option-choice-text {
    font-weight: 600;
    color: var(--accent);
}

.option-choice.review {
    cursor: default;
}

.option-choice.review .option-choice-content {
    border-color: var(--border);
    background: var(--white);
}

.option-choice.option-correct .option-choice-content {
    border-color: var(--success);
    background: var(--success-light);
}

.option-choice.option-wrong .option-choice-content {
    border-color: var(--danger);
    background: var(--danger-light);
}

.option-choice.option-correct .option-choice-marker {
    color: var(--success);
}

.option-choice.option-wrong .option-choice-marker {
    color: var(--danger);
}

.option-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.correct-tag {
    background: var(--success);
    color: var(--white);
}

.wrong-tag {
    background: var(--danger);
    color: var(--white);
}

.chosen-correct-tag {
    background: var(--white);
    color: var(--success);
    border: 1px solid var(--success);
}

.chosen-wrong-tag {
    background: var(--white);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.quiz-submit-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
}

.quiz-submit-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 240px;
}

.quiz-submit-info i {
    color: var(--warning);
    font-size: 22px;
    flex-shrink: 0;
}

.quiz-submit-info strong {
    display: block;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 2px;
}

.quiz-submit-info div {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.quiz-sidebar {
    position: sticky;
    top: 152px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quiz-summary-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.quiz-summary-box h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.summary-progress {
    margin-bottom: 20px;
}

.summary-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-alt);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.summary-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    border-radius: 4px;
    transition: width 0.4s ease;
}

.summary-progress-text {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.summary-progress-text span {
    font-weight: 700;
    color: var(--accent);
}

.summary-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.summary-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    gap: 8px;
}

.summary-stat span {
    color: var(--text-muted);
}

.summary-stat strong {
    color: var(--primary);
    font-weight: 600;
}

.summary-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius);
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 16px;
}

.summary-info i {
    color: var(--accent);
    margin-top: 2px;
    flex-shrink: 0;
}

.quiz-nav-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.quiz-nav-box h4 {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.question-nav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.question-nav-btn {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.question-nav-btn:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    transform: scale(1.05);
}

.question-nav-btn.answered {
    background: var(--success-light);
    color: var(--success);
    border-color: var(--success);
}

/* ============================================================
   33. RESULTADO DO QUIZ
   ============================================================ */
.result-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border-top: 6px solid var(--success);
    max-width: 800px;
    margin: 0 auto;
}

.result-card.result-failed {
    border-top-color: var(--danger);
}

.result-icon {
    font-size: 72px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 24px;
}

.result-passed .result-icon {
    color: var(--success);
    background: var(--success-light);
}

.result-failed .result-icon {
    color: var(--danger);
    background: var(--danger-light);
}

.result-card h1 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.result-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.result-score {
    margin: 32px 0;
}

.result-score-value {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -3px;
}

.result-passed .result-score-value {
    color: var(--success);
}

.result-failed .result-score-value {
    color: var(--danger);
}

.result-score-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 10px;
}

.result-score-label strong {
    color: var(--primary);
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 480px;
    margin: 32px auto;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
}

.result-stat {
    text-align: center;
}

.result-stat i {
    font-size: 22px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.result-stat strong {
    display: block;
    font-size: 26px;
    color: var(--primary);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.result-stat span {
    font-size: 12px;
    color: var(--text-muted);
}

.result-extra-info {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 24px 0;
}

.result-extra-info .badge {
    font-size: 12px;
    padding: 5px 12px;
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.result-footer-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.review-block.review-correct {
    border-left: 4px solid var(--success);
}

.review-block.review-wrong {
    border-left: 4px solid var(--danger);
}

.review-block.review-empty {
    border-left: 4px solid var(--warning);
}

.question-review-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.option-choice-text-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.option-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ============================================================
   34. TABELA DE MATRÍCULAS
   ============================================================ */
.enrollments-table {
    font-size: 13.5px;
}

.enrollments-table td {
    padding: 14px 16px;
    vertical-align: middle;
}

.enrollments-table tr.row-cancelled {
    opacity: 0.6;
    background: var(--bg-alt);
}

.enrollments-table tr.row-cancelled:hover {
    opacity: 0.8;
}

.user-cell-info {
    min-width: 0;
    flex: 1;
}

.user-cell-info strong {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}

.user-cell-info span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}

.course-link {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 2px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: var(--transition);
}

.course-link:hover {
    color: var(--accent);
}

.progress-cell {
    min-width: 140px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
    gap: 8px;
}

.progress-text i {
    font-size: 12px;
}

.payment-method {
    display: block;
    font-size: 10.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    font-weight: 600;
}

.date-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.date-cell i {
    font-size: 11px;
}

.enrollments-table td small {
    display: block;
    font-size: 11.5px;
    margin-top: 2px;
}

/* Dropdown de ações */
.dropdown-actions {
    position: relative;
    display: inline-block;
}

.action-menu-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dropdown-actions.open .action-menu-btn {
    background: var(--accent-light);
    color: var(--accent);
}

.dropdown-actions-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.15s ease;
}

.dropdown-actions.open .dropdown-actions-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 13px;
    font-family: inherit;
    color: var(--text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.dropdown-action-item i {
    width: 14px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

.dropdown-action-item:hover {
    background: var(--bg-alt);
    color: var(--accent);
}

.dropdown-action-item:hover i {
    color: var(--accent);
}

.dropdown-action-item.danger {
    color: var(--danger);
}

.dropdown-action-item.danger i {
    color: var(--danger);
}

.dropdown-action-item.danger:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.dropdown-actions-menu .dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* ============================================================
   35. HOME — Estatísticas e Features
   ============================================================ */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.15);
}

.hero-badge i {
    color: var(--accent);
}

.stats-section {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-item {
    text-align: center;
    padding: 12px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.section-alt {
    background: var(--bg-alt);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.area-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}

.area-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--text);
}

.area-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 14px;
    color: var(--white);
    transition: var(--transition);
}

.area-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.area-azul     .area-icon { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.area-verde    .area-icon { background: linear-gradient(135deg, #16a34a, #15803d); }
.area-laranja  .area-icon { background: linear-gradient(135deg, #ea580c, #c2410c); }
.area-roxo     .area-icon { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.area-vermelho .area-icon { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.area-ciano    .area-icon { background: linear-gradient(135deg, #0891b2, #0e7490); }

.area-card:hover .area-icon {
    transform: scale(1.05);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-dark);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.cta-section {
    padding: 64px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
}

.cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.cta-content {
    max-width: 560px;
}

.cta-content h2 {
    font-size: 32px;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.cta-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin: 0;
}

.cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================================
   36. ATIVIDADE RECENTE (Perfil)
   ============================================================ */
.quizzes-recent-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-recent-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.quiz-recent-item:hover {
    border-color: var(--border-dark);
    box-shadow: var(--shadow-sm);
}

.quiz-recent-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--white);
    flex-shrink: 0;
}

.quiz-recent-icon.passed { background: var(--success); }
.quiz-recent-icon.failed { background: var(--danger); }

.quiz-recent-info {
    flex: 1;
    min-width: 0;
}

.quiz-recent-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quiz-recent-info span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.quiz-recent-info span i {
    color: var(--accent);
    font-size: 10.5px;
}

.quiz-recent-info .separator {
    color: var(--text-light);
}

.quiz-recent-score {
    text-align: right;
    flex-shrink: 0;
    min-width: 80px;
}

.quiz-recent-score strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.quiz-recent-score small {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.quiz-recent-date {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 100px;
    justify-content: flex-end;
}

.quiz-recent-date i {
    font-size: 11px;
}

/* ============================================================
   37. QUIZ — Coluna na tabela de aulas (admin)
   ============================================================ */
.quiz-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quiz-cell-top .badge {
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.quiz-cell-top .badge:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.quiz-cell-stats {
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 2px;
}

.quiz-cell-stats small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.quiz-cell-stats i {
    font-size: 10px;
    color: var(--accent);
}

.lessons-table .btn-ghost.btn-sm {
    font-size: 12px;
    padding: 5px 10px;
    white-space: nowrap;
}

/* ============================================================
   RESPONSIVO — Bloco Unificado
   Mobile-first, sem duplicações
   ============================================================ */

/* ------------ TIPOGRAFIA FLUIDA ------------ */
h1 { font-size: clamp(1.75rem, 4vw + 1rem, 2.75rem); }
h2 { font-size: clamp(1.375rem, 2.5vw + 0.75rem, 1.75rem); }
h3 { font-size: clamp(1.05rem, 1.5vw + 0.5rem, 1.25rem); }

/* ------------ WRAPPERS SEMPRE ROLÁVEIS ------------ */
.table-wrapper,
.lessons-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table,
.lessons-table,
.enrollments-table {
    min-width: 640px;
}

/* ------------ BOTÕES E AÇÕES COM WRAP ------------ */
.actions,
.form-actions,
.lesson-actions,
.result-actions,
.result-footer-actions,
.hero-actions,
.quiz-submit-box,
.cta-actions,
.course-actions {
    flex-wrap: wrap;
}

/* ============================================================
   BREAKPOINT 1200px
   ============================================================ */
@media (max-width: 1200px) {
    .lessons-table thead th:nth-child(4),
    .lessons-table tbody td:nth-child(4),
    .enrollments-table thead th:nth-child(5),
    .enrollments-table tbody td:nth-child(5) {
        display: none;
    }

    .player-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .quiz-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .course-hero {
        grid-template-columns: minmax(0, 1fr) 340px;
    }
}

/* ============================================================
   BREAKPOINT 1024px
   ============================================================ */
@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 12px 0;
    }

    .sidebar-title {
        display: none;
    }

    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding: 0 12px;
        gap: 4px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar-menu::-webkit-scrollbar {
        height: 4px;
    }

    .sidebar-menu::-webkit-scrollbar-thumb {
        background: var(--border-dark);
        border-radius: 2px;
    }

    .sidebar-menu a {
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
        padding: 10px 14px;
        border-radius: var(--radius-sm);
        flex-shrink: 0;
    }

    .sidebar-menu a.active {
        border-left: none;
        border-bottom-color: var(--accent);
        background: var(--accent-light);
    }

    .dashboard-content {
        padding: clamp(20px, 3vw, 28px) clamp(16px, 2.5vw, 24px);
    }

    .dashboard-grid-2 {
        grid-template-columns: 1fr;
    }

    .player-layout {
        grid-template-columns: 1fr;
    }

    .playlist {
        position: static;
        max-height: 420px;
    }

    .quiz-layout {
        grid-template-columns: 1fr;
    }

    .quiz-sidebar {
        position: static;
        order: -1;
    }

    .question-nav-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .course-hero {
        grid-template-columns: 1fr;
    }

    .course-sidebar {
        position: static;
    }

    .course-hero-content {
        padding: 0;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-sidebar {
        position: static;
        order: -1;
    }

    .lesson-edit-layout {
        grid-template-columns: 1fr;
    }

    .lesson-edit-sidebar {
        position: static;
    }

    .lessons-layout {
        grid-template-columns: 1fr;
    }

    .courses-list-panel {
        position: static;
        max-height: none;
    }

    .courses-list {
        max-height: 300px;
    }

    .filters-bar {
        grid-template-columns: 1fr 1fr;
    }

    .filter-search {
        grid-column: 1 / -1;
    }

    .player-course-title {
        display: none;
    }

    .player-topbar-inner {
        justify-content: space-between;
    }

    .table thead th:nth-child(5),
    .table tbody td:nth-child(5),
    .table thead th:nth-child(6),
    .table tbody td:nth-child(6) {
        display: none;
    }
}

/* ============================================================
   BREAKPOINT 900px
   ============================================================ */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .enrollments-table thead th:nth-child(4),
    .enrollments-table tbody td:nth-child(4) {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-actions {
        justify-content: center;
    }
}

/* ============================================================
   BREAKPOINT 768px
   ============================================================ */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 14px 0;
        gap: 12px;
    }

    .main-nav {
        width: 100%;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        width: 100%;
    }

    .main-nav ul li a {
        padding: 8px 12px;
        font-size: 13px;
    }

    .hero {
        padding: 48px 0;
    }

    .hero p {
        font-size: 15px;
    }

    .section {
        padding: 40px 0;
    }

    .section-sm {
        padding: 28px 0;
    }

    .section-header {
        margin-bottom: 24px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .course-hero-content h1 {
        font-size: 1.625rem;
    }

    .course-hero-meta {
        grid-template-columns: repeat(2, 1fr);
    }

    .course-about {
        padding: 24px 20px;
    }

    .lesson-row {
        padding: 14px 16px;
        gap: 12px;
    }

    .lesson-action .btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .lesson-info strong {
        font-size: 13.5px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 28px 22px;
    }

    .admin-form {
        padding: 22px 18px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 24px;
        gap: 16px;
    }

    .profile-info {
        text-align: center;
    }

    .profile-info p {
        justify-content: center;
    }

    .profile-badges {
        justify-content: center;
    }

    .profile-actions {
        width: 100%;
    }

    .profile-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .certificate-preview {
        padding: 24px;
        border-width: 5px;
    }

    .certificate-preview h1 {
        font-size: 22px;
    }

    .certificate-preview .recipient {
        font-size: 20px;
        min-width: auto;
    }

    .lesson-info {
        padding: 18px;
    }

    .lesson-info-header {
        flex-direction: column;
        gap: 10px;
    }

    .lesson-info-header h1 {
        font-size: 18px;
    }

    .lesson-actions .btn {
        min-width: 100%;
        flex: none;
    }

    .progress-bar-mini {
        width: 60px;
    }

    .player-progress-mini span {
        font-size: 12.5px;
    }

    .quiz-meta-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .options-container {
        padding-left: 0;
    }

    .quiz-submit-box {
        flex-direction: column;
        text-align: center;
    }

    .quiz-submit-box .btn {
        width: 100%;
        justify-content: center;
    }

    .question-nav-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .result-card {
        padding: 32px 20px;
    }

    .result-icon {
        width: 90px;
        height: 90px;
        font-size: 52px;
    }

    .result-card h1 {
        font-size: 22px;
    }

    .result-score-value {
        font-size: 52px;
        letter-spacing: -2px;
    }

    .result-stats {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 20px;
    }

    .option-choice-text-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .option-tags {
        width: 100%;
    }

    .table thead th:nth-child(3),
    .table tbody td:nth-child(3),
    .table thead th:nth-child(4),
    .table tbody td:nth-child(4) {
        display: none;
    }

    .course-cell-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .panel-item-meta {
        display: none;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .validate-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .validate-line strong {
        text-align: left;
    }

    .quiz-section-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .quiz-section-icon {
        margin: 0 auto;
    }

    .quiz-section-header .btn {
        width: 100%;
        justify-content: center;
    }

    .question-header {
        flex-wrap: wrap;
    }
}

/* ============================================================
   BREAKPOINT 640px
   ============================================================ */
@media (max-width: 640px) {
    .filters-bar {
        grid-template-columns: 1fr;
    }

    .filter-search {
        grid-column: auto;
    }

    .filters-bar .btn {
        width: 100%;
        justify-content: center;
    }

    .checkout-main {
        padding: 22px 18px;
    }

    .payment-option-content {
        padding: 14px;
    }

    .payment-icon {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }

    .order-total strong {
        font-size: 20px;
    }

    .enrollments-table {
        font-size: 12.5px;
    }

    .enrollments-table td {
        padding: 10px 8px;
    }

    .user-cell-info strong,
    .user-cell-info span {
        max-width: 140px;
    }

    .course-link {
        max-width: 140px;
    }

    .lessons-table thead th:nth-child(3),
    .lessons-table tbody td:nth-child(3) {
        display: none;
    }

    .lesson-video-url {
        max-width: 180px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn,
    .form-actions form {
        width: 100%;
    }

    .form-actions .btn {
        justify-content: center;
        flex: 1;
        min-width: 140px;
    }

    .preview-card {
        max-width: 100%;
    }

    .image-upload-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .image-preview {
        width: 100%;
        height: 180px;
    }

    .add-option-form {
        flex-direction: column;
        align-items: stretch;
    }

    .add-option-form input[type="text"] {
        min-width: 0;
        width: 100%;
    }

    .add-option-form .btn {
        width: 100%;
        justify-content: center;
    }

    .profile-avatar {
        width: 70px;
        height: 70px;
        font-size: 26px;
    }

    .profile-info h2 {
        font-size: 18px;
    }

    .cert-code {
        font-size: 10.5px;
        padding: 2px 6px;
    }

    .course-actions {
        flex-direction: column;
    }

    .course-actions .btn-sm {
        width: 100%;
    }

    .quiz-recent-item {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 16px;
    }

    .quiz-recent-score {
        min-width: auto;
    }

    .quiz-recent-date {
        width: 100%;
        justify-content: flex-start;
        min-width: auto;
        padding-top: 8px;
        border-top: 1px solid var(--border);
    }

    .validate-form {
        grid-template-columns: 1fr;
    }

    .quiz-cta {
        flex-direction: column;
        text-align: center;
    }

    .quiz-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   BREAKPOINT 480px
   ============================================================ */
@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .btn {
        padding: 10px 18px;
        font-size: 13.5px;
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 14px;
    }

    .areas-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-content {
        padding: 16px 12px;
    }

    .main-nav ul li a {
        padding: 8px 10px;
        font-size: 12.5px;
    }

    .brand-text {
        font-size: 16px;
    }

    .course-body {
        padding: 16px;
    }

    .sidebar-menu {
        padding: 0 8px;
    }

    .sidebar-menu a {
        padding: 8px 12px;
        font-size: 13px;
    }

    .question-block {
        padding: 18px;
    }

    .question-number-badge {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .result-score-value {
        font-size: 42px;
    }
}

/* ============================================================
   ORIENTAÇÃO PAISAGEM EM TELEMÓVEIS
   ============================================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 32px 0;
    }

    .player-wrapper {
        max-height: 70vh;
    }

    .quiz-sidebar,
    .checkout-sidebar {
        position: static;
    }
}

/* ============================================================
   ACESSIBILIDADE — REDUZIR MOVIMENTO
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   IMPRESSÃO
   ============================================================ */
@media print {
    .site-header,
    .site-footer,
    .btn,
    .no-print,
    .result-actions,
    .result-footer-actions,
    .breadcrumb,
    .sidebar,
    .dashboard-layout .sidebar {
        display: none !important;
    }

    body {
        background: var(--white);
    }

    .certificate-preview,
    .result-card,
    .question-block {
        box-shadow: none;
        border: 1px solid var(--border);
        page-break-inside: avoid;
    }

    .dashboard-layout {
        display: block;
    }
}

/* ============================================================
   Editar Perfil — Reforços
   ============================================================ */

/* Input de password com botão de toggle */
.input-password {
    position: relative;
    display: flex;
    align-items: center;
}

.input-password input {
    padding-right: 44px !important;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: var(--accent);
    background: var(--accent-light);
}

/* Indicador de força */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: var(--bg-alt);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 12px;
    font-weight: 600;
}

/* Hint de coincidência */
#matchHint {
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 500;
}

/* Zona Perigosa */
.danger-zone {
    background: var(--white);
    border: 2px solid #fecaca;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 32px;
}

.danger-zone-header {
    background: var(--danger-light);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #fecaca;
}

.danger-zone-header > i {
    font-size: 24px;
    color: var(--danger);
    flex-shrink: 0;
}

.danger-zone-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #991b1b;
    margin-bottom: 2px;
}

.danger-zone-header p {
    font-size: 13px;
    color: #b91c1c;
    margin: 0;
}

.danger-zone-body {
    padding: 24px;
}

.danger-zone-body > p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.danger-zone-body > p strong {
    color: var(--danger);
}

/* Responsivo */
@media (max-width: 640px) {
    .danger-zone-header {
        padding: 16px;
        gap: 12px;
    }

    .danger-zone-header > i {
        font-size: 20px;
    }

    .danger-zone-body {
        padding: 18px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   Tabela de Certificados (Admin)
   ============================================================ */

.certificates-table {
    font-size: 13.5px;
}

.certificates-table td {
    padding: 14px 16px;
    vertical-align: middle;
}

.cert-code {
    display: inline-block;
    background: var(--bg-alt);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 600;
    margin-right: 6px;
}

/* Responsivo */
@media (max-width: 1200px) {
    .certificates-table thead th:nth-child(5),
    .certificates-table tbody td:nth-child(5) {
        display: none;
    }
}

@media (max-width: 900px) {
    .certificates-table thead th:nth-child(4),
    .certificates-table tbody td:nth-child(4) {
        display: none;
    }

    .filters-bar {
        grid-template-columns: 1fr 1fr;
    }

    .filter-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .filters-bar {
        grid-template-columns: 1fr;
    }

    .certificates-table {
        font-size: 12.5px;
    }

    .certificates-table td {
        padding: 10px 8px;
    }

    .cert-code {
        font-size: 10.5px;
        padding: 2px 6px;
    }
}

/* ============================================================
   Certificado — Página de Visualização
   ============================================================ */

/* Barra de ações superior */
.cert-view-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.cert-view-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Corpo do certificado */
.cert-body {
    text-align: center;
    padding: 30px 20px;
}

.cert-pre-name {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.cert-post-name {
    font-size: 15px;
    color: #334155;
    margin: 20px 0;
}

.cert-level {
    margin: 12px 0 16px;
}

.cert-horas {
    font-size: 14px;
    color: #334155;
    margin: 16px 0;
}

.cert-horas strong {
    color: var(--primary);
}

/* Rodapé com assinatura + QR */
.cert-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: end;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.cert-signature {
    text-align: center;
}

.sig-line {
    width: 200px;
    height: 1px;
    background: var(--primary);
    margin: 0 auto 10px auto;
}

.sig-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.sig-role {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.cert-qr {
    text-align: center;
}

.cert-qr img {
    display: inline-block;
    border: 4px solid var(--bg-alt);
    border-radius: 8px;
    padding: 6px;
    background: var(--white);
}

.qr-placeholder {
    width: 130px;
    height: 130px;
    border: 2px dashed var(--border-dark);
    border-radius: 8px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bg-alt);
    color: var(--text-muted);
    font-size: 12px;
}

.qr-placeholder i {
    font-size: 32px;
    color: var(--text-light);
}

.qr-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.5;
}

.qr-label strong {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--primary);
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Rodapé informativo */
.cert-footer-info {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
}

.cert-footer-info p {
    margin-bottom: 8px;
}

.cert-footer-info i {
    color: var(--accent);
    margin-right: 4px;
}

.cert-footer-info a {
    color: var(--accent);
    font-weight: 500;
}

.cert-disclaimer {
    font-size: 11px;
    color: #94a3b8;
    max-width: 640px;
    margin: 12px auto 0 auto;
}

/* ============================================
   Cartão de ações adicionais
   ============================================ */

.cert-actions-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-top: 32px;
    box-shadow: var(--shadow-sm);
}

.cert-actions-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.cert-actions-header i {
    font-size: 22px;
    color: var(--accent);
    flex-shrink: 0;
}

.cert-actions-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}

.cert-actions-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Grid de informações */
.cert-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.cert-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    background: var(--bg);
    border-radius: var(--radius);
}

.cert-info-label {
    font-size: 11.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.cert-info-value {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    word-break: break-word;
}

/* Botões de ação */
.cert-actions-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.cert-actions-buttons .btn {
    flex: 1;
    min-width: 160px;
    justify-content: center;
}

/* ============================================
   Responsivo
   ============================================ */

@media (max-width: 768px) {
    .certificate-preview {
        padding: 30px 20px;
    }

    .certificate-preview .recipient {
        font-size: 22px;
        min-width: auto;
        padding-bottom: 8px;
    }

    .certificate-preview .course-name {
        font-size: 18px;
    }

    .cert-footer {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .cert-actions-buttons .btn {
        min-width: 100%;
        flex: none;
    }

    .cert-view-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cert-view-buttons {
        justify-content: stretch;
    }

    .cert-view-buttons .btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .cert-actions-grid {
        grid-template-columns: 1fr;
    }

    .cert-actions-card {
        padding: 20px;
    }
}

/* ============================================
   Impressão
   ============================================ */

@media print {
    .site-header,
    .site-footer,
    .cert-view-actions,
    .cert-actions-card,
    .btn {
        display: none !important;
    }

    body {
        background: white;
    }

    .certificate-preview {
        box-shadow: none;
        border: 4px solid var(--primary);
        page-break-inside: avoid;
        max-width: 100%;
    }
}
/* ============================================================
   Certificado — Vista Web (idêntico ao PDF)
   ============================================================ */

.cert-page {
    background: var(--bg-alt);
    padding: 32px 0 64px;
    min-height: calc(100vh - 72px);
}

/* Barra de ações */
.cert-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.cert-actions-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================
   FOLHA DO CERTIFICADO (proporção A4 horizontal)
   ============================================ */

.cert-sheet {
    position: relative;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    aspect-ratio: 297 / 210;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    color: #1a2b45;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- MARCA DE ÁGUA ---------- */
.cert-watermark {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32vw;
    font-weight: 900;
    color: #f0f4f9;
    letter-spacing: -1vw;
    z-index: 0;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* ---------- MOLDURAS ---------- */
.cert-frame-outer {
    position: absolute;
    top: 3.4%;
    left: 3.4%;
    right: 3.4%;
    bottom: 3.4%;
    border: 0.85% solid #1a2b45;
    pointer-events: none;
    z-index: 1;
}

.cert-frame-gold {
    position: absolute;
    top: 4.7%;
    left: 4.7%;
    right: 4.7%;
    bottom: 4.7%;
    border: 1px solid #c9a961;
    pointer-events: none;
    z-index: 1;
}

.cert-frame-inner {
    position: absolute;
    top: 5.7%;
    left: 5.7%;
    right: 5.7%;
    bottom: 5.7%;
    border: 1px solid #e2e8f0;
    pointer-events: none;
    z-index: 1;
}

/* ---------- CANTOS DECORATIVOS ---------- */
.cert-corner {
    position: absolute;
    width: 4.7%;
    height: 6.7%;
    border: 2px solid #c9a961;
    z-index: 2;
}

.cert-corner-tl {
    top: 4.7%;
    left: 4.7%;
    border-right: none;
    border-bottom: none;
}

.cert-corner-tr {
    top: 4.7%;
    right: 4.7%;
    border-left: none;
    border-bottom: none;
}

.cert-corner-bl {
    bottom: 4.7%;
    left: 4.7%;
    border-right: none;
    border-top: none;
}

.cert-corner-br {
    bottom: 4.7%;
    right: 4.7%;
    border-left: none;
    border-top: none;
}

/* ---------- CABEÇALHO ---------- */
.cert-header {
    position: absolute;
    top: 11.5%;
    left: 10%;
    right: 10%;
    text-align: center;
    z-index: 2;
}

.cert-brand-mark {
    display: block;
    width: 4.7%;
    aspect-ratio: 1;
    background: #1a2b45;
    color: #ffffff;
    font-size: 1.8vw;
    font-weight: 700;
    line-height: 1;
    border-radius: 6px;
    margin: 0 auto 8px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-brand-name {
    font-size: 1.2vw;
    font-weight: 700;
    color: #1a2b45;
    letter-spacing: 0.45em;
    line-height: 1.2;
    margin-bottom: 4px;
}

.cert-brand-tag {
    font-size: 0.62vw;
    color: #64748b;
    letter-spacing: 0.3em;
    line-height: 1.2;
}

/* ---------- TÍTULO ---------- */
.cert-title-block {
    position: absolute;
    top: 24%;
    left: 10%;
    right: 10%;
    text-align: center;
    z-index: 2;
}

.cert-title {
    font-size: 2.3vw;
    font-weight: 700;
    color: #1a2b45;
    letter-spacing: 0.55em;
    line-height: 1.1;
}

.cert-title-rule {
    width: 3.2vw;
    height: 3px;
    background: #c9a961;
    margin: 10px auto;
}

.cert-subtitle {
    font-size: 0.85vw;
    color: #64748b;
    letter-spacing: 0.3em;
    line-height: 1.3;
}

/* ---------- CORPO ---------- */
.cert-body-block {
    position: absolute;
    top: 37%;
    left: 13%;
    right: 13%;
    text-align: center;
    z-index: 2;
}

.cert-pre-name {
    font-size: 0.95vw;
    color: #475569;
    margin-bottom: 14px;
}

.cert-student-name {
    display: inline-block;
    font-size: 2.6vw;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 0.03em;
    padding-bottom: 8px;
    border-bottom: 1.5px solid #c9a961;
    min-width: 52%;
    line-height: 1.2;
}

.cert-post-name {
    font-size: 0.95vw;
    color: #475569;
    margin-top: 16px;
}

.cert-course-title {
    font-size: 1.7vw;
    font-weight: 700;
    color: #1a2b45;
    margin: 14px 0;
    line-height: 1.3;
}

.cert-course-meta {
    font-size: 0.9vw;
    color: #475569;
    line-height: 1.9;
}

.cert-course-meta strong {
    color: #1a2b45;
}

/* ---------- ASSINATURA ---------- */
.cert-signature {
    position: absolute;
    bottom: 14%;
    left: 13%;
    width: 20%;
    text-align: center;
    z-index: 2;
}

.cert-sig-line {
    width: 100%;
    height: 1px;
    background: #1a2b45;
    margin: 0 auto 8px auto;
}

.cert-sig-name {
    font-size: 0.9vw;
    font-weight: 700;
    color: #1a2b45;
    line-height: 1.3;
}

.cert-sig-role {
    font-size: 0.68vw;
    color: #64748b;
    margin-top: 3px;
    line-height: 1.3;
}

/* ---------- QR CODE ---------- */
.cert-qr-block {
    position: absolute;
    bottom: 12%;
    right: 13%;
    width: 12%;
    text-align: center;
    z-index: 2;
}

.cert-qr-block img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    padding: 6%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-sizing: border-box;
}

.cert-qr-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 4px;
    color: #94a3b8;
    font-size: 1.5vw;
}

.cert-qr-code {
    font-family: 'Courier New', monospace;
    font-size: 0.72vw;
    font-weight: 700;
    color: #1a2b45;
    letter-spacing: 0.15em;
    margin-top: 6px;
    line-height: 1.2;
}

.cert-qr-label {
    font-size: 0.6vw;
    color: #64748b;
    margin-top: 3px;
    line-height: 1.2;
}

/* ---------- RODAPÉ ---------- */
.cert-footer {
    position: absolute;
    bottom: 8%;
    left: 10%;
    right: 10%;
    text-align: center;
    font-size: 0.6vw;
    color: #94a3b8;
    line-height: 1.5;
    z-index: 2;
}

.cert-footer strong {
    color: #475569;
}

.cert-footer-rule {
    width: 10%;
    height: 1px;
    background: #cbd5e1;
    margin: 0 auto 8px auto;
}

/* ============================================
   Cartão de informações
   ============================================ */

.cert-info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-top: 32px;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-sm);
}

.cert-info-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.cert-info-header i {
    font-size: 22px;
    color: var(--accent);
    flex-shrink: 0;
}

.cert-info-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}

.cert-info-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.cert-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.cert-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    background: var(--bg);
    border-radius: var(--radius);
}

.cert-info-label {
    font-size: 11.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.cert-info-value {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    word-break: break-word;
}

.cert-info-code {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.cert-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.cert-share-buttons .btn {
    flex: 1;
    min-width: 160px;
    justify-content: center;
}

/* ============================================
   Responsivo — Reduz escala mas mantém proporção
   ============================================ */

@media (max-width: 900px) {
    .cert-brand-mark { font-size: 2.5vw; }
    .cert-brand-name { font-size: 1.6vw; letter-spacing: 0.4em; }
    .cert-brand-tag { font-size: 0.85vw; letter-spacing: 0.25em; }

    .cert-title { font-size: 3vw; letter-spacing: 0.5em; }
    .cert-subtitle { font-size: 1.1vw; }

    .cert-pre-name { font-size: 1.3vw; }
    .cert-student-name { font-size: 3.2vw; }
    .cert-post-name { font-size: 1.3vw; }
    .cert-course-title { font-size: 2.2vw; }
    .cert-course-meta { font-size: 1.2vw; }

    .cert-sig-name { font-size: 1.2vw; }
    .cert-sig-role { font-size: 0.85vw; }
    .cert-qr-code { font-size: 0.9vw; }
    .cert-qr-label { font-size: 0.75vw; }
    .cert-footer { font-size: 0.8vw; }
}

@media (max-width: 640px) {
    .cert-sheet {
        aspect-ratio: 210 / 297; /* vira vertical em mobile */
        max-width: 100%;
    }

    .cert-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .cert-actions-buttons {
        justify-content: stretch;
    }

    .cert-actions-buttons .btn {
        flex: 1;
    }

    /* Redimensionar tipografia para formato vertical */
    .cert-watermark { font-size: 55vw; }

    .cert-header { top: 10%; }
    .cert-brand-mark { width: 10%; font-size: 4vw; }
    .cert-brand-name { font-size: 3.5vw; letter-spacing: 0.35em; }
    .cert-brand-tag { font-size: 1.8vw; }

    .cert-title-block { top: 22%; }
    .cert-title { font-size: 6vw; letter-spacing: 0.4em; }
    .cert-subtitle { font-size: 2.2vw; }

    .cert-body-block { top: 36%; left: 8%; right: 8%; }
    .cert-pre-name { font-size: 2.8vw; }
    .cert-student-name { font-size: 7vw; min-width: 60%; }
    .cert-post-name { font-size: 2.8vw; }
    .cert-course-title { font-size: 5vw; }
    .cert-course-meta { font-size: 2.6vw; }

    .cert-signature { bottom: 12%; left: 8%; width: 35%; }
    .cert-sig-name { font-size: 2.4vw; }
    .cert-sig-role { font-size: 1.8vw; }

    .cert-qr-block { bottom: 10%; right: 8%; width: 22%; }
    .cert-qr-code { font-size: 2vw; }
    .cert-qr-label { font-size: 1.5vw; }

    .cert-footer { font-size: 1.6vw; bottom: 6%; left: 8%; right: 8%; }

    .cert-share-buttons .btn {
        min-width: 100%;
        flex: none;
    }
}

/* ============================================
   Impressão
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .cert-actions-bar,
    .cert-info-card,
    .alert {
        display: none !important;
    }

    body, .cert-page {
        background: #ffffff !important;
        padding: 0 !important;
    }

    .cert-sheet {
        box-shadow: none !important;
        max-width: 100% !important;
        aspect-ratio: 297 / 210 !important;
        page-break-inside: avoid;
    }
}

/* ============================================================
   Resumo por método de pagamento (Admin — payments.php)
   ============================================================ */

.payment-methods-summary {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.method-summary-card {
    display: flex !important;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    min-width: 0;
}

.method-summary-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.method-summary-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius);
    font-size: 20px;
    color: #ffffff;
    flex-shrink: 0;
}

/* Cores por método */
.method-summary-card.mpesa .method-summary-icon {
    background: #dc2626;
}

.method-summary-card.emola .method-summary-icon {
    background: #d97706;
}

.method-summary-card.transfer .method-summary-icon {
    background: #1a2b45;
}

.method-summary-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.method-summary-info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1a2b45;
    line-height: 1.2;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.method-summary-info span {
    display: block;
    font-size: 12px;
    color: #64748b;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.method-summary-value {
    font-size: 15px;
    font-weight: 700;
    color: #1a2b45;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: right;
}

/* Responsivo */
@media (max-width: 900px) {
    .method-summary-value {
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .payment-methods-summary {
        grid-template-columns: 1fr;
    }

    .method-summary-card {
        padding: 16px;
    }

    .method-summary-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 17px;
    }

    .method-summary-info strong {
        font-size: 13.5px;
    }

    .method-summary-info span {
        font-size: 11.5px;
    }

    .method-summary-value {
        font-size: 13.5px;
    }
}