/* ─── Facilitacion Lab — Styles ─── */

:root {
    --bg: #0A0A0A;
    --bg-card: #111111;
    --bg-sidebar: #0F0F0F;
    --bg-input: #1A1A1A;
    --text: #FFFFFF;
    --text-muted: #A1A1A1;
    --accent: #E6D912;
    --accent-hover: #C4B710;
    --success: #00b894;
    --danger: #e74c3c;
    --warning: #fdcb6e;
    --border: #2A2A2A;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 12px rgba(0,0,0,0.5);
    --transition: 0.2s ease;
    --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ─── Scrollbar ─── */

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-input); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--accent-hover); }

a.auto-link {
    color: var(--accent);
    text-decoration: none;
    word-break: break-all;
}

a.auto-link:hover {
    text-decoration: underline;
    color: var(--accent-hover);
}

.text-accent { color: var(--accent); }

img { max-width: 100%; height: auto; }

/* ─── Container ─── */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─── Navbar ─── */

.navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand:hover { color: var(--accent); }

.navbar-logo {
    height: 70px;
    width: 70px;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-user {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ─── Buttons ─── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    background: var(--accent);
    color: #0A0A0A;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn:hover {
    background: var(--accent-hover);
    color: #0A0A0A;
}

a.btn,
a.btn:hover,
a.btn:active,
a.btn:visited {
    color: #0A0A0A;
}

a.btn.btn-outline {
    color: var(--text);
}

a.btn.btn-outline:hover {
    color: var(--accent);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #c0392b;
    color: #fff;
}

a.btn.btn-danger,
a.btn.btn-danger:hover,
a.btn.btn-danger:active,
a.btn.btn-danger:visited {
    color: #fff;
}

.btn-complete {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-muted);
}

.btn-complete:hover {
    background: transparent;
    border-color: var(--success);
    color: var(--success);
}

.btn-complete.completed {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

a.btn.btn-complete.completed,
a.btn.btn-complete.completed:hover {
    color: #fff;
}

/* ─── Alerts ─── */

.alert {
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    font-size: 0.875rem;
}

.alert-success { background: rgba(0,184,148,0.15); color: var(--success); border: 1px solid rgba(0,184,148,0.3); }
.alert-error { background: rgba(231,76,60,0.15); color: var(--danger); border: 1px solid rgba(231,76,60,0.3); }

/* ─── Forms ─── */

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select,
.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9375rem;
    font-family: var(--font);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

.form-hint {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    accent-color: var(--accent);
}

.inline-form {
    display: inline;
}

/* ─── Hero Banner ─── */

/* ─── Hero Split (two columns) ─── */
.hero-split {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 40%, #141410 100%);
    padding: 4rem 0 0;
    border-bottom: 1px solid rgba(230, 217, 18, 0.08);
}

/* Glow behind image */
.hero-split::before {
    content: '';
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(230, 217, 18, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Subtle grid pattern */
.hero-split::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-split-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero-split-text {
    padding: 2rem 0;
}

.hero-tag {
    display: inline-block;
    background: rgba(230, 217, 18, 0.1);
    border: 1px solid rgba(230, 217, 18, 0.3);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
}

.hero-split-text h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: #fff;
}

.hero-split-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 0.9rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.hero-split-image {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-split-image img {
    max-height: 520px;
    width: auto;
    object-fit: contain;
    filter: grayscale(20%) drop-shadow(0 8px 32px rgba(0,0,0,0.4));
    transition: filter 0.4s ease;
}

.hero-split-image img:hover {
    filter: grayscale(0%) drop-shadow(0 8px 32px rgba(0,0,0,0.4));
}

/* Hero responsive */
@media (max-width: 768px) {
    .hero-split {
        padding: 2rem 0 0;
    }

    .hero-split::before {
        right: 50%;
        transform: translate(50%, -30%);
        width: 280px;
        height: 280px;
    }

    .hero-split-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-split-text {
        padding: 1rem 0 0;
    }

    .hero-split-text h1 {
        font-size: 2rem;
    }

    .hero-split-text p {
        max-width: 100%;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-split-image img {
        max-height: 380px;
    }
}

/* ─── Section Heading ─── */

.section-heading {
    padding-top: 3rem;
    padding-bottom: 0.5rem;
    text-align: center;
}

.section-heading h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
}

/* ─── Course Cards Grid ─── */

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 2rem 1.5rem 4rem;
}

.course-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform var(--transition), border-color var(--transition);
    text-decoration: none;
    color: var(--text);
    display: block;
}

.course-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    color: var(--text);
}

.course-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-input);
}

.course-card-placeholder {
    background: linear-gradient(135deg, rgba(230,217,18,0.3), #111111);
}

.course-card-body {
    padding: 1.25rem;
}

.course-card-body h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.course-card-body p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.course-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
}

.course-price {
    font-weight: 700;
    color: var(--success);
}

.course-students {
    color: var(--text-muted);
}

/* ─── Course Show (Sales Page) ─── */

.course-hero {
    padding: 3rem 0;
}

.course-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.course-hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.course-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.course-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.course-hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.course-free-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ─── Course Curriculum ─── */

.course-curriculum {
    padding: 3rem 1.5rem 4rem;
}

.course-curriculum h2 {
    margin-bottom: 1.5rem;
}

.curriculum-module {
    margin-bottom: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.curriculum-module-title {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-sidebar);
}

.lesson-count {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-muted);
}

.curriculum-lessons {
    list-style: none;
}

.curriculum-lesson {
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.9375rem;
}

.lesson-icon { font-size: 0.75rem; }

.lesson-preview-badge {
    font-size: 0.75rem;
    background: var(--accent);
    color: #0A0A0A;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    margin-left: auto;
}

/* ─── Learning View ─── */

.learn-body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.learn-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.learn-back {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.learn-back:hover { color: var(--accent); }

.learn-course-title {
    font-weight: 600;
    font-size: 0.9375rem;
}

.learn-progress-badge {
    font-size: 0.8125rem;
    color: var(--success);
    font-weight: 500;
}

.learn-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ─── Learn Sidebar ─── */

.learn-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.learn-sidebar-progress {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.progress-bar {
    height: 6px;
    background: var(--bg-input);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.375rem;
}

.progress-fill {
    height: 100%;
    background: var(--success);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.learn-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.sidebar-module {
    margin-bottom: 0.5rem;
}

.sidebar-module-title {
    padding: 0.75rem 1.25rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.sidebar-lessons {
    list-style: none;
}

.sidebar-lesson-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: all var(--transition);
}

.sidebar-lesson-link:hover {
    background: var(--bg-input);
    color: var(--text);
}

.sidebar-lesson-link.active {
    background: rgba(230,217,18,0.1);
    color: var(--accent);
    border-left: 3px solid var(--accent);
}

.sidebar-lesson-link.completed .lesson-check {
    color: var(--success);
}

.lesson-check {
    font-size: 0.875rem;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

/* ─── Learn Content ─── */

.learn-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 3rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-placeholder {
    background: var(--bg-card);
    padding: 4rem;
    text-align: center;
    color: var(--text-muted);
}

.learn-info {
    padding: 1.5rem 2rem;
}

.learn-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.learn-info-header h2 {
    font-size: 1.375rem;
}

.learn-description {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.learn-resources {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.learn-resources h3 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.resources-list {
    list-style: none;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    color: var(--text);
    transition: border-color var(--transition);
}

.resource-link:hover {
    border-color: var(--accent);
    color: var(--text);
}

.resource-type {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ─── Auth Pages ─── */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.auth-card h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

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

/* ─── Footer ─── */

.footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}

/* ─── Admin Layout ─── */

.admin-body {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.admin-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.admin-sidebar-brand {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.admin-sidebar-brand a {
    font-weight: 700;
    color: var(--text);
    font-size: 1.125rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-brand-text {
    display: block;
    font-size: 1rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.admin-nav {
    padding: 0.75rem 0;
    flex: 1;
}

.admin-nav hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0.5rem 0;
}

.admin-nav-link {
    display: block;
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    transition: all var(--transition);
}

.admin-nav-link:hover {
    background: var(--bg-input);
    color: var(--text);
}

.admin-main {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    flex-shrink: 0;
}

.admin-header h1 {
    font-size: 1.375rem;
}

.admin-user {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.admin-content {
    padding: 2rem;
    flex: 1;
}

/* ─── Admin Stats ─── */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ─── Admin Tables ─── */

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: visible;
    border: 1px solid var(--border);
    table-layout: auto;
}

.admin-table th,
.admin-table td {
    padding: 0.875rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.admin-table th {
    background: var(--bg-sidebar);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-table td a {
    color: var(--accent);
}

.admin-table td a.btn {
    color: #0A0A0A;
}

.admin-table td a.btn-outline {
    color: var(--text);
}

.admin-table td a.btn-danger,
.admin-table td button.btn-danger {
    color: #fff;
}

.admin-table .actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    white-space: nowrap;
    align-items: center;
}

/* ─── Admin Forms & Sections ─── */

.admin-section {
    margin-bottom: 2rem;
}

.admin-section h2,
.admin-section h3 {
    margin-bottom: 1rem;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-breadcrumb {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.admin-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-inline-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-inline-form input,
.admin-inline-form select {
    padding: 0.625rem 0.875rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9375rem;
}

.admin-inline-form input:focus,
.admin-inline-form select:focus {
    outline: none;
    border-color: var(--accent);
}

.admin-search-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.admin-search-form input {
    flex: 1;
    padding: 0.625rem 0.875rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9375rem;
}

/* ─── Badges ─── */

.badge {
    display: inline-block;
    padding: 0.125rem 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success { background: rgba(0,184,148,0.2); color: var(--success); }
.badge-draft { background: rgba(139,143,163,0.2); color: var(--text-muted); }

/* ─── Module & Lesson Cards (Admin) ─── */

.modules-list,
.lessons-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.module-card,
.lesson-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}

.module-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.module-edit-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.module-title-input {
    flex: 1;
    padding: 0.375rem 0.625rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9375rem;
}

.sort-input {
    width: 60px;
    padding: 0.375rem 0.5rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.875rem;
    text-align: center;
}

.module-card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lesson-edit-form {
    margin-bottom: 0.75rem;
}

.lesson-edit-form .form-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.lesson-edit-form .form-row input[type="text"] {
    flex: 1;
    padding: 0.375rem 0.625rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.875rem;
}

.lesson-edit-form textarea {
    width: 100%;
    padding: 0.375rem 0.625rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.875rem;
    font-family: var(--font);
    resize: vertical;
}

.checkbox-label.compact {
    font-size: 0.8125rem;
    white-space: nowrap;
}

.lesson-resources {
    padding: 0.75rem 0;
    margin-bottom: 0.5rem;
    border-top: 1px solid var(--border);
    margin-top: 0.75rem;
}

.resources-heading {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.resource-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.375rem 0.625rem;
    background: var(--bg-input);
    border-radius: var(--radius);
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
}

.resource-upload-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.resource-upload-form input[type="text"] {
    flex: 1;
    padding: 0.375rem 0.625rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.8125rem;
}

.resource-upload-form input[type="file"] {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ─── Student Info ─── */

.student-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.student-info p {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

/* ─── Empty State ─── */

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
    font-size: 0.9375rem;
    grid-column: 1 / -1;
}

/* ─── My Courses (Student) ─── */

.my-courses-header {
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.my-courses-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.my-courses-header .text-muted {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.my-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding-bottom: 3rem;
}

.my-course-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.my-course-card:hover {
    border-color: var(--accent);
}

.my-course-card-link {
    display: block;
}

.my-course-card-body {
    padding: 1.25rem;
}

.my-course-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.my-course-card-body h3 a {
    color: var(--text);
    text-decoration: none;
}

.my-course-card-body h3 a:hover {
    color: var(--accent);
}

.my-course-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.progress-bar-track {
    flex: 1;
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-bar-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.badge-progress {
    background: rgba(230, 217, 18, 0.15);
    color: var(--accent);
}

/* ─── Checkout ─── */

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem 0 3rem;
    align-items: start;
}

.checkout-summary h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.checkout-course-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.checkout-summary h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.checkout-description {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.checkout-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-top: 1rem;
}

.checkout-price-label {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.checkout-price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.checkout-payment {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.checkout-payment h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.checkout-payment .text-muted {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-bottom: 1.5rem;
}

#paypal-button-container {
    min-height: 45px;
}

.payment-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

.payment-message-error {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger);
}

.payment-message-info {
    background: rgba(230, 217, 18, 0.1);
    color: var(--accent);
}

.payment-message-success {
    background: rgba(0, 184, 148, 0.15);
    color: var(--success);
}

/* ─── Profile ─── */

.profile-card {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}

.profile-card h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.profile-card .text-muted {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.profile-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.form-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
    .hero h1 { font-size: 1.75rem; }
    .courses-grid { grid-template-columns: 1fr; }
    .checkout-grid { grid-template-columns: 1fr; }
    .my-courses-grid { grid-template-columns: 1fr; }
    .course-hero .container { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    /* Admin responsive */
    .admin-body { flex-direction: column; }
    .admin-sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        overflow-x: auto;
    }
    .admin-sidebar-brand { display: none; }
    .admin-nav {
        display: flex;
        padding: 0;
    }
    .admin-nav hr { display: none; }
    .admin-nav-link {
        white-space: nowrap;
        padding: 0.75rem 1rem;
    }
    .admin-content { padding: 1rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    /* Learn responsive */
    .learn-wrapper { flex-direction: column; }
    .learn-sidebar {
        width: 100%;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .admin-table { font-size: 0.8125rem; }
    .admin-table .actions { flex-wrap: wrap; }

    .module-card-header { flex-direction: column; align-items: stretch; }
    .lesson-edit-form .form-row { flex-wrap: wrap; }
    .resource-upload-form { flex-wrap: wrap; }
    .admin-inline-form { flex-wrap: wrap; }
}

/* ── Certificate template admin ── */
.coord-group {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.coord-group legend {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0 0.5rem;
    color: var(--accent);
}
.coord-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 600px) {
    .coord-fields { grid-template-columns: 1fr; }
}

/* ── Certificate button (my courses) ── */
.my-course-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}
.btn-cert {
    background: var(--success);
    color: #fff;
}
.btn-cert:hover {
    background: #00a884;
    color: #fff;
}

/* ── Certificate verification page ── */
.verify-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
}
.verify-valid {
    border-color: var(--success);
}
.verify-invalid {
    border-color: var(--danger);
}
.verify-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 184, 148, 0.2);
    color: var(--success);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}
.verify-icon-invalid {
    background: rgba(231, 76, 60, 0.2);
    color: var(--danger);
}
.verify-details {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}
.verify-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.verify-row:last-child {
    border-bottom: none;
}
.verify-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}
.verify-value {
    font-weight: 600;
    text-align: right;
}

/* ── Certificate earned notification ── */
.cert-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    border: 2px solid var(--success);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    z-index: 10000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    animation: certPopIn 0.3s ease;
    max-width: 420px;
    width: 90%;
}
.cert-notification-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    animation: fadeIn 0.2s ease;
}
.cert-notification h2 {
    color: var(--success);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}
.cert-notification p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.completion-icon {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    animation: bounceIn 0.5s ease;
}
.completion-earned {
    color: var(--accent) !important;
    font-weight: 500;
}
.completion-close-btn {
    margin-top: 0.5rem;
    min-width: 140px;
}
.csat-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}
@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}
@keyframes certPopIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── Badge button ── */
.btn-badge {
    background: var(--accent);
    color: #000;
}
.btn-badge:hover {
    background: var(--accent-hover);
    color: #000;
}

/* ── My courses header with button ── */
.my-courses-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── Badge showcase (verify page) ── */
.badge-showcase {
    margin-bottom: 1.5rem;
}
.badge-showcase-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    filter: none;
}

/* ── Social share section ── */
.share-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.share-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    font-family: var(--font);
}
.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.share-linkedin:hover {
    background: #0A66C2;
    border-color: #0A66C2;
    color: #fff;
}
.share-twitter:hover {
    background: #1D9BF0;
    border-color: #1D9BF0;
    color: #fff;
}
.share-facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: #fff;
}
.share-copy:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

/* ── Learning path ── */
.path-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.path-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}
.path-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.path-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Timeline */
.path-timeline {
    position: relative;
    padding-left: 40px;
}
.path-node {
    position: relative;
    margin-bottom: 1.5rem;
}
.path-node:last-child {
    margin-bottom: 0;
}
.path-connector {
    position: absolute;
    left: -40px;
    top: 0;
    width: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.path-line {
    width: 2px;
    flex: 1;
    background: var(--border);
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    bottom: -24px;
}
.path-node:last-child .path-line {
    display: none;
}
.path-line-completed {
    background: var(--accent);
}
.path-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}
.path-dot-completed {
    background: var(--accent);
    border-color: var(--accent);
    color: #0A0A0A;
}
.path-dot-progress {
    border-color: var(--accent);
    color: var(--accent);
}
.path-dot-final {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    background: var(--bg-input);
    border-color: var(--accent);
}
.path-node-completed .path-dot-final {
    background: var(--accent);
    border-color: var(--accent);
}

/* Path card */
.path-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: var(--transition);
}
.path-node-completed .path-card {
    border-color: var(--accent);
}
.path-node-progress .path-card {
    border-color: var(--accent);
}
.path-card-content {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}
.path-card-info {
    flex: 1;
    min-width: 0;
}
.path-card-info h3 {
    font-size: 1rem;
    margin-bottom: 0;
}
.path-card-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}
.path-card-final {
    text-align: center;
    padding: 1.5rem;
}
.path-card-final h3 {
    color: var(--accent);
    margin-bottom: 0.25rem;
}
.path-node-completed .path-card-final h3 {
    color: var(--accent);
}

/* Badge image in path */
.path-badge {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    position: relative;
}
.path-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius);
}
.path-badge-pending {
    opacity: 0.4;
    filter: grayscale(100%);
}

/* ── Responsive adjustments ── */
@media (max-width: 768px) {
    .path-overview {
        grid-template-columns: 1fr;
    }
    .path-card-content {
        flex-direction: column;
        text-align: center;
    }
    .path-card-actions {
        justify-content: center;
    }
    .path-badge {
        margin: 0 auto;
    }
    .share-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .share-btn {
        justify-content: center;
    }
    .my-courses-header {
        flex-direction: column;
    }
}

/* ─── Coupon Section (Checkout) ─── */

.coupon-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.coupon-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.coupon-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.coupon-input {
    flex: 1;
    text-transform: uppercase;
    font-family: monospace;
    letter-spacing: 1px;
}

.coupon-msg {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
}

.coupon-msg-success {
    background: rgba(0, 184, 148, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.coupon-msg-error {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.coupon-remove {
    display: inline-block;
    margin-top: 0.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-family: var(--font);
}

.coupon-remove:hover {
    color: var(--danger);
}

.btn-applied {
    background: var(--success) !important;
    color: #fff !important;
    pointer-events: none;
}

.price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9em;
    margin-right: 0.5rem;
}

.price-free {
    color: var(--success);
    font-weight: 700;
    font-size: 1.2em;
}

.coupon-code-display {
    font-family: monospace;
    letter-spacing: 1px;
    color: var(--accent);
    font-size: 0.95rem;
}

/* ─── Coupon Admin extras ─── */

.inline-form {
    display: inline-block;
}

.text-danger {
    color: var(--danger);
}

.badge-draft {
    background: rgba(161, 161, 161, 0.15);
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .coupon-input-group {
        flex-direction: column;
    }
}

/* ─── Email Broadcast Chips ─── */
.email-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.email-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.email-chip:hover {
    border-color: var(--accent);
    color: var(--text);
}

.email-chip input[type="checkbox"] {
    width: 14px;
    min-width: 14px;
    height: 14px;
    accent-color: var(--accent);
    cursor: pointer;
}

.email-chip:has(input:checked) {
    background: rgba(230, 217, 18, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.email-recipient-count {
    margin: 1.25rem 0;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.email-recipient-count strong {
    color: var(--accent);
    font-size: 1.1rem;
}

/* ─── CSAT Stars ─── */
.csat-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.csat-title {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.csat-stars {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.csat-star {
    font-size: 2.25rem;
    color: rgba(255,255,255,0.15);
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    line-height: 1;
}

.csat-star:hover,
.csat-star-active {
    color: var(--accent);
}

.csat-star-selected {
    color: var(--accent);
}

.csat-star:hover {
    transform: scale(1.15);
}

.csat-comment {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    color: #fff;
    padding: 0.75rem;
    font-family: Inter, sans-serif;
    font-size: 0.85rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.csat-comment:focus {
    outline: none;
    border-color: var(--accent);
}

.csat-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* CSAT in dashboard */
.csat-dashboard-stars {
    color: var(--accent);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.csat-dashboard-stars .csat-empty {
    color: rgba(255,255,255,0.15);
}

/* ─── Stat Card Link ─── */

.stat-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.stat-card-link:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

/* ─── Reviews Page ─── */

.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.reviews-avg {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reviews-avg .csat-dashboard-stars {
    font-size: 1.25rem;
}

.reviews-filter select {
    background: var(--bg-input);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    font-family: var(--font);
    font-size: 0.875rem;
    cursor: pointer;
}

.reviews-filter select:focus {
    outline: none;
    border-color: var(--accent);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.review-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.review-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.review-card-info strong {
    font-size: 0.9375rem;
}

.review-card-info .text-muted {
    font-size: 0.8125rem;
}

.review-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.review-card-meta .text-muted {
    font-size: 0.8125rem;
    white-space: nowrap;
}

.review-card-course {
    font-size: 0.8125rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.review-card-comment {
    font-size: 0.9375rem;
    line-height: 1.6;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .review-card-header {
        flex-direction: column;
    }
    .review-card-meta {
        flex-direction: row-reverse;
        justify-content: flex-end;
    }
}

/* ─── Metric Progress Bars ─── */

.metric-bar-wrapper {
    position: relative;
    background: var(--bg-input);
    border-radius: 4px;
    height: 24px;
    min-width: 120px;
    overflow: hidden;
}

.metric-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent);
    opacity: 0.25;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.metric-bar-complete {
    opacity: 0.4;
    background: var(--success);
}

.metric-bar-text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
}

/* ─── Badges (status labels) ─── */

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-success {
    background: rgba(0, 184, 148, 0.15);
    color: var(--success);
}

.badge-pending {
    background: rgba(253, 203, 110, 0.15);
    color: var(--warning);
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 1rem;
    font-size: 1rem;
}
