/**
 * Academia de Gutiska Razda — Folha de Estilos Oficial EAD
 * Arquivo: public/assets/css/ead.css
 * Identidade visual nórdica sagrada, compatível com odinismo.com.br
 */

:root {
    --ead-bg: #0e0e0d;
    --ead-bg-card: #151513;
    --ead-bg-card-hover: #1c1c19;
    --ead-bg-elevated: #1e1d1a;
    --ead-gold: #ebc080;
    --ead-gold-dim: rgba(235, 192, 128, 0.15);
    --ead-gold-border: rgba(235, 192, 128, 0.3);
    --ead-border: #2a2722;
    --ead-text: #dedad2;
    --ead-text-muted: #9e988d;
    --ead-text-bright: #f5f1e8;
    --ead-green: #34d399;
    --ead-green-dim: rgba(52, 211, 153, 0.15);
    --ead-serif: 'EB Garamond', Georgia, serif;
    --ead-display: 'Cinzel', serif;
    --ead-sans: 'Inter', system-ui, sans-serif;
    --ead-gothic: 'Noto Sans Gothic', monospace;
}

/* Base Wrapper */
.ead-page {
    background-color: var(--ead-bg);
    color: var(--ead-text);
    font-family: var(--ead-sans);
    min-height: 100vh;
    padding-top: 1.5rem;
    padding-bottom: 4rem;
}

.ead-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    box-sizing: border-box;
}

/* Tipografia Sagrada */
.ead-h1, .ead-h2, .ead-h3 {
    font-family: var(--ead-serif);
    color: var(--ead-text-bright);
    letter-spacing: 0.02em;
    margin: 0 0 0.5rem 0;
}

.ead-display-title {
    font-family: var(--ead-display);
    color: var(--ead-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ead-glyph {
    font-family: var(--ead-gothic);
    color: var(--ead-gold);
    font-size: 1.35em;
    letter-spacing: 0.1em;
    line-height: 1;
}

/* Badges e Pílulas */
.ead-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--ead-gold-dim);
    border: 1px solid var(--ead-gold-border);
    color: var(--ead-gold);
}

.ead-pill--green {
    background: var(--ead-green-dim);
    border-color: rgba(52, 211, 153, 0.35);
    color: var(--ead-green);
}

/* Cards & Containers */
.ead-card {
    background: var(--ead-bg-card);
    border: 1px solid var(--ead-border);
    border-radius: 1rem;
    padding: 1.75rem;
    transition: all 0.25s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.ead-card:hover {
    border-color: var(--ead-gold-border);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
}

/* Grades Flexíveis */
.ead-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.ead-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ead-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.ead-layout-main-sidebar {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .ead-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .ead-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .ead-layout-main-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .ead-grid-4, .ead-grid-3, .ead-grid-2 { grid-template-columns: 1fr; }
}

/* Botões do EAD */
.ead-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.ead-btn--gold {
    background: linear-gradient(135deg, #ebc080 0%, #c79a4e 100%);
    color: #121210;
    box-shadow: 0 4px 15px rgba(235, 192, 128, 0.25);
}

.ead-btn--gold:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.ead-btn--ghost {
    background: var(--ead-bg-card);
    border: 1px solid var(--ead-border);
    color: var(--ead-text);
}

.ead-btn--ghost:hover {
    background: var(--ead-bg-card-hover);
    border-color: var(--ead-gold-border);
    color: var(--ead-gold);
}

.ead-btn--outline {
    background: transparent;
    border: 1px solid var(--ead-gold-border);
    color: var(--ead-gold);
}

.ead-btn--outline:hover {
    background: var(--ead-gold-dim);
}

/* Barra de Progresso */
.ead-progress-bar-wrap {
    width: 100%;
    background: #1a1a18;
    border-radius: 9999px;
    height: 8px;
    overflow: hidden;
    border: 1px solid var(--ead-border);
}

.ead-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #c79a4e, #ebc080);
    border-radius: 9999px;
    transition: width 0.4s ease;
}

/* Callouts Didáticos */
.ead-callout {
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    background: #141311;
    border-left: 4px solid var(--ead-gold);
    margin: 1.5rem 0;
    color: #d6d0c4;
    font-size: 0.95rem;
    line-height: 1.6;
}

.ead-callout--ancient {
    border-left-color: #d97706;
    background: rgba(217, 119, 6, 0.08);
}

/* Flashcards 3D */
.ead-flashcard-stage {
    perspective: 1000px;
    width: 100%;
    max-width: 550px;
    height: 320px;
    margin: 0 auto;
    cursor: pointer;
}

.ead-flashcard-inner {
    width: 100%;
    height: 100%;
    border-radius: 1.25rem;
    padding: 2.5rem;
    background: radial-gradient(circle at 50% 30%, #1c1b18 0%, #121210 100%);
    border: 2px solid var(--ead-gold-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    transition: transform 0.4s ease;
}

.ead-flashcard-inner:hover {
    border-color: var(--ead-gold);
}

/* Tabelas Didáticas */
.ead-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--ead-border);
    border-radius: 0.75rem;
    background: #121210;
    margin: 1.5rem 0;
}

.ead-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.ead-table th {
    background: #191815;
    padding: 0.85rem 1.1rem;
    color: var(--ead-gold);
    font-family: var(--ead-display);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--ead-border);
}

.ead-table td {
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid rgba(42, 39, 34, 0.6);
    color: #dedad2;
}

.ead-table tr:hover td {
    background: rgba(235, 192, 128, 0.04);
}

/* Certificado Oficial */
.ead-cert-frame {
    background: #131210;
    border: 4px double #3d3527;
    border-radius: 1rem;
    padding: 3.5rem 3rem;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
}

.ead-cert-inner-border {
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(235, 192, 128, 0.25);
    border-radius: 0.6rem;
    pointer-events: none;
}

/* Utilitários complementares de layout */
.ead-flex { display: flex; }
.ead-flex-between { display: flex; justify-content: space-between; align-items: center; }
.ead-flex-center { display: flex; justify-content: center; align-items: center; }
.ead-gap-1 { gap: 0.5rem; }
.ead-gap-2 { gap: 1rem; }
.ead-gap-3 { gap: 1.5rem; }
.ead-mt-2 { margin-top: 1rem; }
.ead-mt-3 { margin-top: 1.5rem; }
.ead-mb-2 { margin-bottom: 1rem; }
.ead-text-center { text-align: center; }
.ead-text-gold { color: var(--ead-gold); }
.ead-text-muted { color: var(--ead-text-muted); }

/* Acordeões e Módulos */
.ead-module-accordion {
    background: var(--ead-bg-card);
    border: 1px solid var(--ead-border);
    border-radius: 0.85rem;
    overflow: hidden;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}
.ead-module-accordion.is-locked {
    opacity: 0.65;
    background: #11110f;
    border-color: #22201c;
}
.ead-module-header {
    padding: 1.1rem 1.4rem;
    background: #171714;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    user-select: none;
    border-bottom: 1px solid transparent;
    transition: background 0.2s ease;
}
.ead-module-header:hover {
    background: #1c1c19;
}
.ead-module-accordion.open .ead-module-header {
    border-bottom-color: var(--ead-border);
}
.ead-module-content {
    display: none;
    padding: 0.75rem 1.25rem;
    background: var(--ead-bg-card);
}
.ead-module-accordion.open .ead-module-content {
    display: block;
}
.ead-lesson-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    text-decoration: none;
    color: var(--ead-text);
    transition: all 0.2s ease;
    border-radius: 0.5rem;
}
.ead-lesson-row:last-child {
    border-bottom: none;
}
.ead-lesson-row:hover:not(.is-locked) {
    background: rgba(235, 192, 128, 0.05);
    color: var(--ead-gold);
}
.ead-lesson-row.is-current {
    background: var(--ead-gold-dim);
    color: var(--ead-gold);
    font-weight: 600;
}
.ead-lesson-row.is-locked {
    cursor: not-allowed;
    opacity: 0.5;
}
.ead-lesson-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-family: monospace;
    background: #22211e;
    color: #888;
    flex-shrink: 0;
}
.ead-lesson-num.done {
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.4);
}
.ead-lesson-num.current {
    background: rgba(235, 192, 128, 0.25);
    color: var(--ead-gold);
    border: 1px solid var(--ead-gold);
}


/* ==============================================================================
   ACADEMIA EAD — TEMA CLARO (SAUIL ☀️)
   Cores canônicas, alto contraste e harmonia com public/assets/css/theme-light.css
   ============================================================================== */

html[data-theme="light"],
body.theme-light {
    --ead-bg: #F8F6F0;
    --ead-bg-card: #FFFFFF;
    --ead-bg-card-hover: #F2EFE7;
    --ead-bg-elevated: #EFECE3;
    --ead-gold: #9E6B1F;
    --ead-gold-dim: rgba(158, 107, 31, 0.12);
    --ead-gold-border: rgba(158, 107, 31, 0.35);
    --ead-border: #DCD5C5;
    --ead-text: #2D2926;
    --ead-text-muted: #6B6457;
    --ead-text-bright: #1C1917;
    --ead-green: #059669;
    --ead-green-dim: rgba(5, 150, 105, 0.12);
}

/* Base Page */
html[data-theme="light"] .ead-page,
body.theme-light .ead-page {
    background-color: #F8F6F0 !important;
    color: #2D2926 !important;
}

/* Headings & Text */
html[data-theme="light"] .ead-h1,
html[data-theme="light"] .ead-h2,
html[data-theme="light"] .ead-h3,
body.theme-light .ead-h1,
body.theme-light .ead-h2,
body.theme-light .ead-h3 {
    color: #1C1917 !important;
}

html[data-theme="light"] .ead-display-title,
body.theme-light .ead-display-title {
    color: #9E6B1F !important;
}

html[data-theme="light"] .ead-glyph,
body.theme-light .ead-glyph {
    color: #9E6B1F !important;
}

/* Hero Section */
html[data-theme="light"] .ead-home-hero,
body.theme-light .ead-home-hero {
    background: radial-gradient(circle at 50% 20%, rgba(158,107,31,0.08) 0%, #F8F6F0 80%) !important;
    border-bottom: 1px solid #DCD5C5 !important;
}
html[data-theme="light"] .ead-home-title,
body.theme-light .ead-home-title {
    color: #1C1917 !important;
}
html[data-theme="light"] .ead-home-subtitle,
body.theme-light .ead-home-subtitle {
    color: #575248 !important;
}
html[data-theme="light"] .ead-home-stat-box,
body.theme-light .ead-home-stat-box {
    background: #FFFFFF !important;
    border: 1px solid #DCD5C5 !important;
    box-shadow: 0 4px 15px rgba(50,40,25,0.05) !important;
}
html[data-theme="light"] .ead-home-stat-box div:first-child,
body.theme-light .ead-home-stat-box div:first-child {
    color: #9E6B1F !important;
}
html[data-theme="light"] .ead-home-stat-box div:last-child,
body.theme-light .ead-home-stat-box div:last-child {
    color: #6B6457 !important;
}
html[data-theme="light"] .ead-flagship-card,
body.theme-light .ead-flagship-card {
    background: linear-gradient(145deg, #FFFFFF 0%, #F5F1E8 100%) !important;
    border: 1px solid #DCD5C5 !important;
    box-shadow: 0 10px 30px rgba(50,40,25,0.08) !important;
}
html[data-theme="light"] .ead-flagship-card p,
body.theme-light .ead-flagship-card p {
    color: #575248 !important;
}
html[data-theme="light"] .ead-flagship-card strong,
body.theme-light .ead-flagship-card strong {
    color: #1C1917 !important;
}

/* Cards & Accordions */
html[data-theme="light"] .ead-card,
body.theme-light .ead-card,
html[data-theme="light"] .ead-accordion-item,
body.theme-light .ead-accordion-item,
html[data-theme="light"] .ead-term-card,
body.theme-light .ead-term-card,
html[data-theme="light"] .ead-dash-stat-box,
body.theme-light .ead-dash-stat-box,
html[data-theme="light"] .ead-cat-card,
body.theme-light .ead-cat-card,
html[data-theme="light"] .ead-question-box,
body.theme-light .ead-question-box {
    background: #FFFFFF !important;
    border: 1px solid #DCD5C5 !important;
    color: #2D2926 !important;
    box-shadow: 0 4px 16px rgba(50, 40, 25, 0.05) !important;
}

html[data-theme="light"] .ead-card:hover,
body.theme-light .ead-card:hover,
html[data-theme="light"] .ead-term-card:hover,
body.theme-light .ead-term-card:hover {
    border-color: rgba(158, 107, 31, 0.45) !important;
    box-shadow: 0 8px 24px rgba(50, 40, 25, 0.1) !important;
}

/* Botões */
html[data-theme="light"] .ead-btn--gold,
body.theme-light .ead-btn--gold {
    background: linear-gradient(135deg, #9E6B1F 0%, #7E5212 100%) !important;
    color: #FFFFFF !important;
    border: 1px solid #6E450E !important;
    box-shadow: 0 4px 12px rgba(158, 107, 31, 0.25) !important;
}
html[data-theme="light"] .ead-btn--ghost,
body.theme-light .ead-btn--ghost {
    background: #FFFFFF !important;
    color: #2D2926 !important;
    border: 1px solid #DCD5C5 !important;
}
html[data-theme="light"] .ead-btn--ghost:hover,
body.theme-light .ead-btn--ghost:hover {
    background: #F2EFE7 !important;
    color: #9E6B1F !important;
    border-color: #9E6B1F !important;
}

/* Badges e Pílulas */
html[data-theme="light"] .ead-pill,
body.theme-light .ead-pill,
html[data-theme="light"] .ead-home-pill,
body.theme-light .ead-home-pill {
    background: rgba(158, 107, 31, 0.1) !important;
    border: 1px solid rgba(158, 107, 31, 0.3) !important;
    color: #9E6B1F !important;
}

/* ==============================================================================
   SALA DE AULA (CLASSROOM) — TEMA CLARO & MODO FOCO
   ============================================================================== */
html[data-theme="light"] .ead-room-page,
body.theme-light .ead-room-page {
    background: #F8F6F0 !important;
    background-image: linear-gradient(180deg, #F8F6F0 0%, #EFECE3 100%) !important;
    color: #2D2926 !important;
}

html[data-theme="light"] .ead-room-header,
body.theme-light .ead-room-header {
    background: rgba(248, 246, 240, 0.95) !important;
    border-bottom: 1px solid #DCD5C5 !important;
    box-shadow: 0 4px 20px rgba(50, 40, 25, 0.06) !important;
}

html[data-theme="light"] .ead-crumb-bar a,
body.theme-light .ead-crumb-bar a {
    color: #6B6457 !important;
}
html[data-theme="light"] .ead-crumb-current,
body.theme-light .ead-crumb-current {
    color: #9E6B1F !important;
}

html[data-theme="light"] .ead-curriculum-trigger-btn,
body.theme-light .ead-curriculum-trigger-btn {
    background: linear-gradient(135deg, rgba(158, 107, 31, 0.12) 0%, #FFFFFF 100%) !important;
    border: 1px solid rgba(158, 107, 31, 0.4) !important;
    color: #1C1917 !important;
    box-shadow: 0 2px 10px rgba(50, 40, 25, 0.08) !important;
}
html[data-theme="light"] .ead-curriculum-pill-pct,
body.theme-light .ead-curriculum-pill-pct {
    background: #9E6B1F !important;
    color: #FFFFFF !important;
}

/* Card Principal da Lição */
html[data-theme="light"] .ead-lesson-card,
body.theme-light .ead-lesson-card {
    background: #FFFFFF !important;
    border: 1px solid #DCD5C5 !important;
    box-shadow: 0 15px 40px rgba(50, 40, 25, 0.08) !important;
}
html[data-theme="light"] .ead-lesson-card::before,
body.theme-light .ead-lesson-card::before {
    background: linear-gradient(90deg, transparent 0%, #9E6B1F 30%, #B57D27 50%, #9E6B1F 70%, transparent 100%) !important;
}

html[data-theme="light"] .ead-lesson-h1,
body.theme-light .ead-lesson-h1 {
    color: #1C1917 !important;
}
html[data-theme="light"] .ead-lesson-glyph-heading,
body.theme-light .ead-lesson-glyph-heading {
    color: #9E6B1F !important;
}

html[data-theme="light"] .ead-summary-callout,
body.theme-light .ead-summary-callout {
    background: #F4F0E6 !important;
    border-left-color: #9E6B1F !important;
    color: #443E38 !important;
}

html[data-theme="light"] .ead-audio-panel,
body.theme-light .ead-audio-panel {
    background: #F4F0E6 !important;
    border: 1px solid #DCD5C5 !important;
}
html[data-theme="light"] .ead-audio-panel-info strong,
body.theme-light .ead-audio-panel-info strong {
    color: #1C1917 !important;
}
html[data-theme="light"] .ead-audio-icon-box,
body.theme-light .ead-audio-icon-box {
    background: rgba(158, 107, 31, 0.15) !important;
    border-color: rgba(158, 107, 31, 0.35) !important;
    color: #9E6B1F !important;
}

html[data-theme="light"] .ead-rendered-body,
body.theme-light .ead-rendered-body {
    color: #2D2926 !important;
}
html[data-theme="light"] .ead-rendered-body h2,
body.theme-light .ead-rendered-body h2 {
    color: #1C1917 !important;
    border-bottom-color: #DCD5C5 !important;
}
html[data-theme="light"] .ead-rendered-body h3,
body.theme-light .ead-rendered-body h3 {
    color: #9E6B1F !important;
}

/* Gaveta da Ementa (Curriculum Drawer) */
html[data-theme="light"] .ead-curriculum-drawer,
body.theme-light .ead-curriculum-drawer {
    background: #FFFFFF !important;
    border-left: 1px solid #DCD5C5 !important;
    box-shadow: -15px 0 50px rgba(50, 40, 25, 0.15) !important;
}
html[data-theme="light"] .ead-drawer-head,
body.theme-light .ead-drawer-head {
    background: #F8F6F0 !important;
    border-bottom: 1px solid #DCD5C5 !important;
}
html[data-theme="light"] .ead-drawer-mod-block,
body.theme-light .ead-drawer-mod-block {
    background: #FFFFFF !important;
    border: 1px solid #DCD5C5 !important;
}
html[data-theme="light"] .ead-drawer-mod-block.is-current,
body.theme-light .ead-drawer-mod-block.is-current {
    border-color: #9E6B1F !important;
}
html[data-theme="light"] .ead-drawer-mod-header:hover,
body.theme-light .ead-drawer-mod-header:hover {
    background: #F2EFE7 !important;
}
html[data-theme="light"] .ead-drawer-mod-title-text,
body.theme-light .ead-drawer-mod-title-text {
    color: #1C1917 !important;
}
html[data-theme="light"] .ead-drawer-mod-content,
body.theme-light .ead-drawer-mod-content {
    background: #F8F6F0 !important;
    border-top: 1px solid #E5DFD3 !important;
}
html[data-theme="light"] .ead-drawer-lesson-row,
body.theme-light .ead-drawer-lesson-row {
    color: #443E38 !important;
}
html[data-theme="light"] .ead-drawer-lesson-row:hover:not(.locked),
body.theme-light .ead-drawer-lesson-row:hover:not(.locked) {
    background: rgba(158, 107, 31, 0.08) !important;
    color: #9E6B1F !important;
}
html[data-theme="light"] .ead-drawer-lesson-row.active,
body.theme-light .ead-drawer-lesson-row.active {
    background: rgba(158, 107, 31, 0.12) !important;
    color: #9E6B1F !important;
    border: 1px solid rgba(158, 107, 31, 0.35) !important;
}
html[data-theme="light"] .ead-drawer-quiz-row.ready,
body.theme-light .ead-drawer-quiz-row.ready {
    background: linear-gradient(135deg, rgba(158, 107, 31, 0.15) 0%, #FFFFFF 100%) !important;
    border: 1px solid rgba(158, 107, 31, 0.4) !important;
    color: #1C1917 !important;
}

/* Vocabulário & Flashcards */
html[data-theme="light"] .ead-vocab-hero,
body.theme-light .ead-vocab-hero {
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F1E8 100%) !important;
    border: 1px solid #DCD5C5 !important;
    box-shadow: 0 10px 30px rgba(50, 40, 25, 0.06) !important;
}
html[data-theme="light"] .ead-vocab-hero input,
body.theme-light .ead-vocab-hero input {
    background: #FFFFFF !important;
    border: 1px solid #DCD5C5 !important;
    color: #1C1917 !important;
}
html[data-theme="light"] .ead-mode-switch,
body.theme-light .ead-mode-switch {
    background: #EFECE3 !important;
    border: 1px solid #DCD5C5 !important;
}
html[data-theme="light"] .ead-mode-btn.active,
body.theme-light .ead-mode-btn.active {
    background: #9E6B1F !important;
    color: #FFFFFF !important;
}
html[data-theme="light"] .ead-alpha-btn,
body.theme-light .ead-alpha-btn {
    background: #FFFFFF !important;
    border: 1px solid #DCD5C5 !important;
    color: #443E38 !important;
}
html[data-theme="light"] .ead-alpha-btn.active,
body.theme-light .ead-alpha-btn.active,
html[data-theme="light"] .ead-alpha-btn:hover,
body.theme-light .ead-alpha-btn:hover {
    background: #9E6B1F !important;
    color: #FFFFFF !important;
    border-color: #9E6B1F !important;
}
html[data-theme="light"] .ead-fc-card,
body.theme-light .ead-fc-card {
    background: radial-gradient(circle at 50% 30%, #FFFFFF 0%, #F4F0E6 100%) !important;
    border-color: rgba(158, 107, 31, 0.4) !important;
    box-shadow: 0 15px 40px rgba(50, 40, 25, 0.1) !important;
}
html[data-theme="light"] #fcPrimaryWord,
body.theme-light #fcPrimaryWord {
    color: #1C1917 !important;
}

/* Prova / Quiz */
html[data-theme="light"] .ead-quiz-box,
body.theme-light .ead-quiz-box {
    background: #FFFFFF !important;
    border: 1px solid #DCD5C5 !important;
    box-shadow: 0 10px 30px rgba(50, 40, 25, 0.08) !important;
}
html[data-theme="light"] .ead-option-label,
body.theme-light .ead-option-label {
    background: #F8F6F0 !important;
    border: 1px solid #DCD5C5 !important;
    color: #2D2926 !important;
}
html[data-theme="light"] .ead-option-label:hover,
body.theme-light .ead-option-label:hover {
    background: #EFECE3 !important;
    border-color: #9E6B1F !important;
}
html[data-theme="light"] .ead-option-label input[type="radio"]:checked + span,
body.theme-light .ead-option-label input[type="radio"]:checked + span {
    color: #9E6B1F !important;
}

/* ==============================================================================
   RESPONSIVIDADE MOBILE REFINADA (SMARTPHONES E TABLETS)
   ============================================================================== */

@media (max-width: 768px) {
    .ead-container {
        padding: 0 1rem;
    }

    .ead-room-viewport {
        padding: 0 0.85rem;
        margin-top: 1rem;
    }

    .ead-room-header-inner {
        padding: 0.65rem 1rem;
    }

    .ead-lesson-card {
        border-radius: 1rem;
        padding: 1.5rem 1.15rem;
    }

    .ead-lesson-h1 {
        font-size: 1.55rem;
        line-height: 1.25;
        margin-bottom: 1rem;
    }

    .ead-summary-callout {
        padding: 1rem 1.15rem;
        font-size: 0.95rem;
        border-radius: 0 0.75rem 0.75rem 0;
    }

    .ead-audio-panel {
        padding: 0.85rem 1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .ead-audio-panel audio {
        width: 100%;
    }

    .ead-lesson-footer-nav {
        margin-top: 2rem;
        padding-top: 1.5rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .ead-lesson-footer-nav .ead-btn-complete-action,
    .ead-lesson-footer-nav a {
        width: 100%;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }

    /* Curriculum Drawer Mobile (Full Width) */
    .ead-curriculum-drawer {
        max-width: 100% !important;
    }

    .ead-drawer-head {
        padding: 1.25rem 1.15rem 1rem;
    }

    .ead-drawer-scroll-body {
        padding: 0.85rem 0.85rem 2rem;
    }

    /* Course Page Mobile */
    .ead-course-wrap {
        padding: 1.25rem 0 3rem;
    }

    .ead-course-hero-grid {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .ead-sidebar-sticky {
        position: static !important;
    }

    .ead-course-meta-bar {
        gap: 1rem;
        font-size: 0.75rem;
    }

    /* Home Hero */
    .ead-home-hero {
        padding: 3rem 1rem 2.5rem !important;
    }

    .ead-home-title {
        font-size: 2rem !important;
    }

    .ead-home-actions {
        flex-direction: column;
        width: 100%;
    }

    .ead-home-actions a {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    .ead-flagship-card {
        padding: 1.5rem !important;
        margin: 2rem 0 !important;
    }

    /* Flashcards */
    .ead-fc-container {
        margin: 1.25rem auto;
    }

    .ead-fc-card {
        min-height: 260px;
        padding: 1.75rem 1.25rem;
    }

    #fcPrimaryWord {
        font-size: 1.75rem !important;
    }
}
