/* ═══════════════════════════════════════════════════
   CAPACITADOR XML — Estilos
   Tema académico AkademosLab (crema/sepia)
   ═══════════════════════════════════════════════════ */

:root {
    --bg-cream: #faf8f5;
    --bg-paper: #f5f2eb;
    --bg-dark: #2c2520;
    --text-dark: #2c2c2c;
    --text-muted: #666;
    --text-light: #f5f2eb;
    --accent-sepia: #8b7355;
    --accent-gold: #b8a88a;
    --accent-green: #2e7d32;
    --accent-red: #c62828;
    --accent-blue: #1565c0;
    --accent-orange: #e65100;
    --border-sketch: #c4b8a8;
    --shadow-soft: rgba(139, 115, 85, 0.1);
    --shadow-medium: rgba(139, 115, 85, 0.2);
    --radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Crimson Pro', 'Georgia', serif;
    background: var(--bg-cream);
    color: var(--text-dark);
    min-height: 100vh;
    line-height: 1.6;
}

/* ═══ Auth Page ═══ */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-paper) 0%, var(--bg-cream) 50%, #ece8e0 100%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: white;
    border: 1px solid var(--border-sketch);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 8px 40px var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-sepia), var(--accent-gold), var(--accent-sepia));
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--text-dark);
}

.auth-logo .subtitle {
    font-size: 0.85rem;
    color: var(--accent-sepia);
    margin-top: 5px;
    letter-spacing: 0.05em;
}

.auth-logo .version-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--bg-paper);
    color: var(--text-muted);
    margin-top: 8px;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-sketch);
}

.auth-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-muted);
    border: none;
    background: none;
    font-family: inherit;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.auth-tab.active {
    color: var(--accent-sepia);
    border-bottom-color: var(--accent-sepia);
    font-weight: 600;
}

.auth-tab:hover {
    color: var(--accent-sepia);
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    letter-spacing: 0.03em;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-sketch);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--bg-cream);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-sepia);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.15);
}

.form-group input::placeholder {
    color: var(--border-sketch);
}

.form-group .hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-style: italic;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--accent-sepia), #6b5640);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.05em;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-error {
    display: none;
    padding: 10px 14px;
    background: #fbe9e7;
    border: 1px solid #ffccbc;
    border-radius: var(--radius);
    color: var(--accent-red);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.auth-error.visible {
    display: block;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent-sepia);
    text-decoration: none;
}

/* ═══ Dashboard ═══ */

.dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.dashboard-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: white;
    border-bottom: 1px solid var(--border-sketch);
    box-shadow: 0 2px 10px var(--shadow-soft);
}

.dashboard-header .logo-small {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    color: var(--text-dark);
}

.dashboard-header .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-header .user-name {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.btn-logout {
    padding: 6px 14px;
    border: 1px solid var(--border-sketch);
    border-radius: var(--radius);
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    transition: var(--transition);
}

.btn-logout:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

/* Sidebar */
.sidebar {
    background: white;
    border-right: 1px solid var(--border-sketch);
    padding: 25px 20px;
    overflow-y: auto;
}

.sidebar h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-sketch);
}

.module-nav {
    list-style: none;
}

.module-nav li {
    margin-bottom: 8px;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    font-size: 0.9rem;
}

.module-item:hover {
    background: var(--bg-paper);
}

.module-item.active {
    background: var(--bg-paper);
    border-color: var(--accent-sepia);
}

.module-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.module-item .icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.module-item .label {
    flex: 1;
    font-size: 0.85rem;
}

.module-item .progress-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 8px;
    background: var(--bg-paper);
    color: var(--text-muted);
}

.module-item .progress-badge.complete {
    background: #e8f5e9;
    color: var(--accent-green);
}

/* Progress bar mini */
.progress-bar-mini {
    width: 100%;
    height: 4px;
    background: var(--bg-paper);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.progress-bar-mini .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-sepia), var(--accent-gold));
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Stats sidebar */
.sidebar-stats {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-sketch);
}

.sidebar-stats h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 4px 0;
    color: var(--text-muted);
}

.stat-row .value {
    font-weight: 600;
    color: var(--text-dark);
}

/* Main content */
.main-content {
    padding: 30px;
    overflow-y: auto;
    background: var(--bg-cream);
}

.module-header {
    margin-bottom: 30px;
}

.module-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.module-header .module-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Tabs within module */
.module-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-sketch);
    margin-bottom: 25px;
}

.module-tab {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: none;
    background: none;
    font-family: inherit;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.module-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-sepia), var(--accent-gold));
    border-bottom-color: var(--accent-sepia);
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -2px 8px rgba(139, 115, 85, 0.2);
    transform: translateY(-1px);
}

.module-tab:hover:not(.active) {
    background: rgba(139, 115, 85, 0.08);
    color: var(--accent-sepia);
}

/* ── Accessibility: Font Size System ── */
html.font-small {
    font-size: 14px;
}

html.font-medium {
    font-size: 16px;
}

html.font-large {
    font-size: 20px;
}

.a11y-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-paper);
    border: 1px solid var(--border-sketch);
    border-radius: var(--radius);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.a11y-toolbar .a11y-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.a11y-toolbar .a11y-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-right: 4px;
    white-space: nowrap;
}

.a11y-toolbar .a11y-divider {
    width: 1px;
    height: 20px;
    background: var(--border-sketch);
    margin: 0 8px;
}

.btn-font-size {
    border: 1px solid var(--border-sketch);
    background: white;
    color: var(--text-dark);
    cursor: pointer;
    border-radius: 4px;
    padding: 4px 10px;
    font-family: inherit;
    transition: var(--transition);
    line-height: 1;
}

.btn-font-size:hover {
    background: var(--accent-sepia);
    color: white;
    border-color: var(--accent-sepia);
}

.btn-font-size.active {
    background: var(--accent-sepia);
    color: white;
    border-color: var(--accent-sepia);
    font-weight: 600;
}

/* ── TTS Buttons ── */
.btn-tts {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid var(--border-sketch);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.75rem;
    color: var(--accent-sepia);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    vertical-align: middle;
    margin-left: 6px;
}

.btn-tts:hover {
    background: var(--accent-sepia);
    color: white;
}

.btn-tts.speaking {
    background: var(--accent-gold);
    color: white;
    animation: pulse-tts 1s infinite;
}

@keyframes pulse-tts {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.btn-tts-block {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(139, 115, 85, 0.06);
    border: 1px solid var(--border-sketch);
    border-radius: var(--radius);
    padding: 6px 14px;
    font-size: 0.82rem;
    color: var(--accent-sepia);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    margin: 12px 0 4px;
}

.btn-tts-block:hover {
    background: var(--accent-sepia);
    color: white;
}

/* ── PDF Export Button ── */
.btn-export-pdf {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid var(--border-sketch);
    border-radius: var(--radius);
    padding: 6px 14px;
    font-size: 0.82rem;
    color: var(--accent-sepia);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.btn-export-pdf:hover {
    background: var(--accent-sepia);
    color: white;
}

/* Theory content */
.theory-content {
    max-width: 800px;
    line-height: 1.8;
}

.theory-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin: 25px 0 10px;
    color: var(--text-dark);
}

.theory-content p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.theory-content .highlight-box {
    background: var(--bg-paper);
    border-left: 3px solid var(--accent-sepia);
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.theory-content .law-ref {
    font-style: italic;
    color: var(--accent-sepia);
    font-size: 0.9rem;
}

/* Quiz */
.quiz-container {
    max-width: 700px;
}

.quiz-attempts-info {
    background: var(--bg-paper);
    border: 1px solid var(--border-sketch);
    border-radius: var(--radius);
    padding: 12px 18px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--accent-sepia);
    font-weight: 500;
    text-align: center;
}

.quiz-question {
    background: white;
    border: 1px solid var(--border-sketch);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.quiz-question .q-number {
    font-size: 0.8rem;
    color: var(--accent-sepia);
    font-weight: 600;
    margin-bottom: 8px;
}

.quiz-question .q-text {
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 6px;
    border: 1px solid var(--border-sketch);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.quiz-option:hover {
    background: var(--bg-paper);
    border-color: var(--accent-sepia);
}

.quiz-option.selected {
    background: var(--bg-paper);
    border-color: var(--accent-sepia);
}

.quiz-option.correct {
    background: #e8f5e9;
    border-color: var(--accent-green);
}

.quiz-option.incorrect {
    background: #fbe9e7;
    border-color: var(--accent-red);
}

.quiz-option input[type="radio"] {
    accent-color: var(--accent-sepia);
}

.quiz-result {
    display: none;
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-top: 20px;
    font-size: 0.95rem;
}

.quiz-result.pass {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: var(--accent-green);
}

.quiz-result.fail {
    background: #fbe9e7;
    border: 1px solid #ffccbc;
    color: var(--accent-red);
}

/* XML upload area */
.xml-upload-zone {
    border: 2px dashed var(--border-sketch);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.xml-upload-zone:hover,
.xml-upload-zone.drag-over {
    border-color: var(--accent-sepia);
    background: var(--bg-paper);
}

.xml-upload-zone .upload-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.6;
}

.xml-upload-zone .upload-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* XML validation result */
.validation-result {
    margin-top: 20px;
    border: 1px solid var(--border-sketch);
    border-radius: var(--radius);
    overflow: hidden;
}

.validation-result .result-header {
    padding: 12px 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.validation-result .result-header.accepted {
    background: #e8f5e9;
    color: var(--accent-green);
}

.validation-result .result-header.rejected {
    background: #fbe9e7;
    color: var(--accent-red);
}

.validation-result .result-detail {
    padding: 15px 20px;
    background: white;
}

.validation-result .error-item {
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--bg-paper);
    display: flex;
    gap: 10px;
}

.validation-result .error-item:last-child {
    border-bottom: none;
}

.validation-result .error-field {
    font-weight: 600;
    color: var(--accent-sepia);
    min-width: 120px;
}

/* Reception practice */
.reception-xml-viewer {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: var(--radius);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.reception-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.btn-accept,
.btn-partial,
.btn-reject {
    flex: 1;
    padding: 12px;
    border: 2px solid;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.btn-accept {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: white;
}

.btn-accept:hover {
    background: #e8f5e9;
}

.btn-partial {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    background: white;
}

.btn-partial:hover {
    background: #fff3e0;
}

.btn-reject {
    border-color: var(--accent-red);
    color: var(--accent-red);
    background: white;
}

.btn-reject:hover {
    background: #fbe9e7;
}

/* Responsive */
@media (max-width: 900px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }
}

@media (max-width: 500px) {
    .auth-card {
        padding: 25px;
    }
}

/* ═══════ Soluciones (Admin) ═══════ */

.solucion-pregunta {
    background: var(--cream-light);
    border: 1px solid var(--border-sketch);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 16px;
}

.solucion-numero {
    color: var(--brown-dark);
    margin-bottom: 6px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.solucion-texto {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.solucion-opcion {
    padding: 8px 14px;
    margin: 4px 0;
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.solucion-correcta {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    color: #2e7d32;
    font-weight: 600;
}

.solucion-explicacion {
    margin-top: 10px;
    padding: 10px 14px;
    background: #fff8e1;
    border-left: 3px solid var(--gold);
    border-radius: 0 6px 6px 0;
    font-size: 0.9rem;
    color: var(--brown-dark);
}

/* ═══════ Sidebar Home Button ═══════ */

.sidebar-home {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent-sepia);
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.06), rgba(184, 168, 138, 0.1));
}

.sidebar-home:hover {
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.12), rgba(184, 168, 138, 0.18));
    border-color: var(--accent-gold);
    transform: translateX(2px);
}

.sidebar-home.active {
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.15), rgba(184, 168, 138, 0.22));
    border-color: var(--accent-sepia);
}

.sidebar-home .icon {
    font-size: 1.2rem;
}

/* ═══════ Welcome Hero ═══════ */

.welcome-hero {
    text-align: center;
    padding: 45px 30px 35px;
    background: linear-gradient(145deg, #f5f2eb 0%, #ece5d8 40%, #e8dfd0 100%);
    border: 1px solid var(--border-sketch);
    border-radius: 16px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.welcome-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-sepia), var(--accent-gold), var(--accent-sepia));
}

.welcome-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(184, 168, 138, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
    animation: heroFloat 3s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 18px;
    line-height: 1.6;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: white;
    border: 1px solid var(--border-sketch);
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* ═══════ Welcome Sections ═══════ */

.welcome-section {
    margin-bottom: 30px;
}

.section-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-sketch);
}

/* ═══════ Learning Path ═══════ */

.learning-path {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 20px 10px;
    overflow-x: auto;
    flex-wrap: nowrap;
}

.path-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 70px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.path-step:hover {
    transform: translateY(-3px);
}

.path-step .step-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: white;
    border: 2px solid var(--border-sketch);
    border-radius: 50%;
    transition: var(--transition);
}

.path-step:hover .step-icon {
    border-color: var(--accent-sepia);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.path-step.completed .step-icon {
    border-color: var(--accent-green);
    background: #e8f5e9;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.path-step.current .step-icon {
    border-color: var(--accent-sepia);
    background: var(--bg-paper);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.15);
}

.path-step.locked .step-icon {
    opacity: 0.4;
    filter: grayscale(100%);
}

.path-step .step-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.path-step.completed .step-label {
    color: var(--accent-green);
}

.path-step.current .step-label {
    color: var(--accent-sepia);
    font-weight: 600;
}

.path-connector {
    width: 28px;
    height: 2px;
    background: var(--border-sketch);
    flex-shrink: 0;
    margin: 0 2px;
    margin-bottom: 22px;
    position: relative;
}

.path-connector.completed {
    background: var(--accent-green);
}

/* ═══════ Module Cards ═══════ */

.module-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.module-card {
    background: white;
    border: 1px solid var(--border-sketch);
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-sepia), var(--accent-gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-medium);
    border-color: var(--accent-gold);
}

.module-card:hover::before {
    opacity: 1;
}

.module-card.locked {
    opacity: 0.55;
    cursor: not-allowed;
}

.module-card.locked:hover {
    transform: none;
    box-shadow: none;
}

.module-card .card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.module-card .card-icon {
    font-size: 1.6rem;
}

.module-card .card-num {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.module-card .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.module-card .card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.module-card .card-status {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 10px;
}

.module-card .card-status.completed {
    background: #e8f5e9;
    color: var(--accent-green);
}

.module-card .card-status.in-progress {
    background: var(--bg-paper);
    color: var(--accent-sepia);
}

.module-card .card-status.locked-status {
    background: #f5f5f5;
    color: #999;
}

/* ═══════ Welcome Tips ═══════ */

.welcome-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.tip-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 1px solid var(--border-sketch);
    border-radius: 10px;
    transition: var(--transition);
}

.tip-card:hover {
    box-shadow: 0 4px 15px var(--shadow-soft);
    transform: translateY(-2px);
}

.tip-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.tip-text strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.tip-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}