:root {
    --brand-color: #1f6feb;
    --ink: #14213d;
    --muted: #64748b;
    --panel: #ffffff;
    --line: #dbe3ef;
}

body {
    background: #f8fafc;
    color: var(--ink);
}

main {
    min-height: calc(100vh - 92px);
}

main.container {
    padding-top: 1rem !important;
}

a {
    text-decoration: none;
}

.site-legal-footer {
    background: rgba(248, 252, 250, 0.92);
    border-top: 1px solid #dce8ef;
    color: #64748b;
    margin-top: 2rem;
    padding: 1.25rem 0;
}

.site-legal-footer-inner {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
}

.site-legal-footer strong {
    color: #0f172a;
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.site-legal-footer p {
    font-size: 0.86rem;
    line-height: 1.6;
    margin: 0;
    max-width: 760px;
}

.site-legal-footer-links {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
}

.site-legal-footer-links a {
    border: 1px solid #c8d7e4;
    border-radius: 999px;
    color: #1d4ed8;
    font-size: 0.86rem;
    font-weight: 800;
    padding: 0.55rem 0.9rem;
}

.site-legal-footer-links a:hover,
.site-legal-footer-links a:focus {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
}

.legal-document-page {
    display: flex;
    justify-content: center;
}

.legal-document-card {
    background: #fff;
    border: 1px solid #dce6ef;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    max-width: 900px;
    padding: 2rem;
    width: 100%;
}

.legal-document-card h1 {
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    margin: 0.4rem 0 0.65rem;
}

.legal-document-version {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.legal-document-content {
    color: #334155;
    display: grid;
    gap: 1rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.legal-document-content p {
    margin: 0;
}

@media (max-width: 767.98px) {
    .site-legal-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-legal-footer-links {
        justify-content: flex-start;
    }
}

.brand-link {
    align-items: center;
    display: inline-flex;
    min-height: 72px;
    padding-bottom: 0;
    padding-top: 0;
}

.brand-link img {
    display: block;
    height: 64px;
    max-width: 286px;
    width: auto;
}

.topbar-alerts {
    display: grid;
    gap: 0.5rem;
    max-width: min(430px, calc(100vw - 2rem));
    position: absolute;
    right: 1rem;
    top: calc(100% + 0.75rem);
    z-index: 40;
}

.topbar-alert {
    align-items: center;
    animation: toast-enter 180ms ease-out;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(219, 227, 239, 0.95);
    border-radius: 10px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
    color: var(--ink);
    display: grid;
    font-size: 0.93rem;
    font-weight: 750;
    gap: 0.7rem;
    grid-template-columns: 26px minmax(0, 1fr);
    line-height: 1.25;
    overflow: hidden;
    padding: 0.85rem 1rem 0.95rem;
    position: relative;
}

.topbar-alert.is-dismissing {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.topbar-alert-icon {
    align-items: center;
    background: var(--brand-color);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 900;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.topbar-alert-icon::before {
    content: "i";
}

.topbar-alert-success .topbar-alert-icon {
    background: #16a34a;
}

.topbar-alert-success .topbar-alert-icon::before {
    content: "✓";
}

.topbar-alert-warning .topbar-alert-icon {
    background: #d97706;
}

.topbar-alert-warning .topbar-alert-icon::before {
    content: "!";
}

.topbar-alert-danger .topbar-alert-icon {
    background: #dc2626;
}

.topbar-alert-danger .topbar-alert-icon::before {
    content: "!";
}

.topbar-alert-message {
    min-width: 0;
}

.topbar-alert-timer {
    animation: toast-timer 5s linear forwards;
    background: currentColor;
    bottom: 0;
    height: 3px;
    left: 0;
    opacity: 0.22;
    position: absolute;
    transform-origin: left center;
    width: 100%;
}

.topbar-alert-success {
    color: #166534;
}

.topbar-alert-info {
    color: #1d4ed8;
}

.topbar-alert-warning {
    color: #92400e;
}

.topbar-alert-danger {
    color: #991b1b;
}

@keyframes toast-enter {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toast-timer {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

.toast-stack {
    bottom: 1.25rem;
    display: grid;
    gap: 0.5rem;
    max-width: min(430px, calc(100vw - 2rem));
    position: fixed;
    right: 1.25rem;
    z-index: 1050;
}

.app-toast {
    align-items: center;
    animation: toast-enter-bottom 180ms ease-out;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(219, 227, 239, 0.95);
    border-radius: 10px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
    color: var(--ink);
    display: grid;
    font-size: 0.93rem;
    font-weight: 750;
    gap: 0.7rem;
    grid-template-columns: 26px minmax(0, 1fr);
    line-height: 1.25;
    overflow: hidden;
    padding: 0.85rem 1rem 0.95rem;
    position: relative;
}

.app-toast.is-dismissing {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.app-toast-icon {
    align-items: center;
    background: var(--brand-color);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 900;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.app-toast-icon::before {
    content: "i";
}

.app-toast-success .app-toast-icon {
    background: #16a34a;
}

.app-toast-success .app-toast-icon::before {
    content: "OK";
    font-size: 0.62rem;
}

.app-toast-warning .app-toast-icon {
    background: #d97706;
}

.app-toast-warning .app-toast-icon::before,
.app-toast-danger .app-toast-icon::before {
    content: "!";
}

.app-toast-danger .app-toast-icon {
    background: #dc2626;
}

.app-toast-message {
    min-width: 0;
}

.app-toast-timer {
    animation: toast-timer 5s linear forwards;
    background: currentColor;
    bottom: 0;
    height: 3px;
    left: 0;
    opacity: 0.22;
    position: absolute;
    transform-origin: left center;
    width: 100%;
}

.app-toast-success {
    color: #166534;
}

.app-toast-info {
    color: #1d4ed8;
}

.app-toast-warning {
    color: #92400e;
}

.app-toast-danger {
    color: #991b1b;
}

@keyframes toast-enter-bottom {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ide-bg-illustration {
    bottom: 0.4rem;
    height: auto;
    opacity: 0.55;
    pointer-events: none;
    position: absolute;
    right: -1.2rem;
    width: 260px;
    z-index: 1;
}

.nav-badge {
    align-items: center;
    background: transparent;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    color: #1a1a2e;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.45rem;
    letter-spacing: 0.01em;
    padding: 0.42rem 1.2rem;
    text-decoration: none;
    transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.nav-badge-icon {
    display: inline-flex;
    flex: 0 0 auto;
}

.nav-badge-icon svg {
    display: block;
}

.nav-badge:hover {
    background: #1a1a2e;
    border-color: #1a1a2e;
    box-shadow: 0 4px 14px rgba(26, 26, 46, 0.18);
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-badge-primary {
    background: linear-gradient(135deg, #1f6feb, #14b8a6);
    border-color: transparent;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(31, 111, 235, 0.3);
    color: #ffffff;
}

.nav-badge-primary:hover {
    background: linear-gradient(135deg, #1558c0, #0e9a8a);
    border-color: transparent;
    box-shadow: 0 4px 18px rgba(31, 111, 235, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-reset {
    background: none;
    cursor: pointer;
}

.btn.btn-primary {
    background: linear-gradient(135deg, #1f6feb, #14b8a6);
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(31, 111, 235, 0.3);
}

.btn.btn-primary:hover,
.btn.btn-primary:focus {
    background: linear-gradient(135deg, #1558c0, #0e9a8a);
    border-color: transparent;
    box-shadow: 0 4px 18px rgba(31, 111, 235, 0.4);
}

.navbar .container {
    position: relative;
}

.navbar.bg-body-tertiary {
    background: linear-gradient(110deg, #fcfefc 0%, #f1faf4 48%, #f8fdf9 100%) !important;
    border-bottom-color: #dcfce7 !important;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar .navbar-nav {
    margin-right: 1rem;
}

.user-menu-trigger {
    appearance: none;
    align-items: center;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #d6e0eb;
    border-radius: 999px;
    color: #0f172a;
    display: inline-flex;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 750;
    gap: 0.65rem;
    max-width: 260px;
    min-height: 44px;
    padding: 0.34rem 0.85rem 0.34rem 0.38rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.user-menu-trigger:hover,
.user-menu-trigger:focus { border-color: #60a5fa; box-shadow: 0 8px 22px rgba(30, 64, 175, 0.12), 0 0 0 3px rgba(59, 130, 246, 0.11); transform: translateY(-1px); }
.user-menu-trigger > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-trigger.dropdown-toggle::after { border-left-width: 0.28em; border-right-width: 0.28em; border-top-width: 0.34em; color: #64748b; margin-left: 0.15rem; }
.user-menu-avatar {
    align-items: center;
    background: linear-gradient(135deg, #1677ff, #14b8a6);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 2rem;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}
.user-menu-panel { background: rgba(255, 255, 255, 0.98); border: 1px solid #dbe4ef; border-radius: 16px; box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18); min-width: 285px; padding: 0.6rem; }
.user-menu-panel .dropdown-item { align-items: center; border-radius: 10px; color: #334155; display: flex; font-size: 0.92rem; font-weight: 700; gap: 0.7rem; margin: 0.08rem 0; padding: 0.58rem 0.65rem; transition: background 140ms ease, color 140ms ease, transform 140ms ease; }
.user-menu-panel .dropdown-item:hover,
.user-menu-panel .dropdown-item:focus { background: #eff6ff; color: #1d4ed8; transform: translateX(2px); }
.user-menu-panel form { margin: 0; }
.user-menu-panel form .dropdown-item { background: transparent; border: 0; text-align: left; width: 100%; }
.user-menu-panel form .dropdown-item:hover,
.user-menu-panel form .dropdown-item:focus { background: #eff6ff; }
.user-menu-identity { align-items: center; background: linear-gradient(135deg, #eff6ff, #f0fdfa); border: 1px solid #dbeafe; border-radius: 12px; display: flex; gap: 0.75rem; margin-bottom: 0.5rem; padding: 0.75rem; }
.user-menu-avatar-large { flex-basis: 2.5rem; font-size: 1rem; height: 2.5rem; width: 2.5rem; }
.user-menu-identity-text { display: grid; min-width: 0; }
.user-menu-identity-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-identity small { color: #64748b; font-size: 0.76rem; margin-top: 0.08rem; }
.user-menu-item-icon { align-items: center; background: #eef2f7; border-radius: 8px; color: #475569; display: inline-flex; flex: 0 0 1.75rem; font-size: 0.68rem; font-weight: 900; height: 1.75rem; justify-content: center; }
.user-menu-panel .dropdown-item:hover .user-menu-item-icon,
.user-menu-panel .dropdown-item:focus .user-menu-item-icon { background: #dbeafe; color: #1d4ed8; }
.user-menu-panel .dropdown-divider { border-color: #e2e8f0; margin: 0.45rem 0; }
.user-menu-panel .user-menu-logout { color: #b91c1c; }
.user-menu-panel .user-menu-logout .user-menu-item-icon { background: #fef2f2; color: #b91c1c; }

.notif-bell { align-items: center; display: flex; }
.notif-bell-btn { align-items: center; appearance: none; background: transparent; border: 1px solid transparent; border-radius: 10px; color: #475569; cursor: pointer; display: inline-flex; height: 40px; justify-content: center; padding: 0; position: relative; transition: background 160ms ease, border-color 160ms ease, color 160ms ease; width: 40px; }
.notif-bell-btn::after { display: none; }
.notif-bell-btn:hover, .notif-bell-btn:focus { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.notif-bell-btn[aria-expanded="true"] { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.notif-badge { align-items: center; background: #ef4444; border: 2px solid #fff; border-radius: 999px; color: #fff; display: inline-flex; font-size: 0.62rem; font-weight: 800; height: 1.1rem; justify-content: center; min-width: 1.1rem; padding: 0 0.22rem; position: absolute; right: 4px; top: 4px; }
.notif-panel { background: rgba(255,255,255,0.98); border: 1px solid #dbe4ef; border-radius: 16px; box-shadow: 0 22px 55px rgba(15,23,42,0.18); min-width: 320px; overflow: hidden; padding: 0; }
.notif-panel-header { align-items: center; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; padding: 0.75rem 1rem; }
.notif-panel-header span { color: #0f172a; font-size: 0.9rem; font-weight: 700; }
.notif-view-all { color: #1677ff; font-size: 0.8rem; font-weight: 600; }
.notif-view-all:hover { color: #0e5fd8; }
.notif-item { border-bottom: 1px solid #f1f5f9; color: #334155; display: grid; gap: 0.15rem; padding: 0.75rem 1rem; text-decoration: none; transition: background 140ms ease; }
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: #f8fafc; }
.notif-item-name { color: #0f172a; font-size: 0.85rem; font-weight: 700; }
.notif-item-subject { color: #475569; font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-item-time { color: #94a3b8; font-size: 0.75rem; }
.notif-empty { color: #94a3b8; font-size: 0.85rem; margin: 0; padding: 1rem; text-align: center; }

.navbar-center {
    align-items: center;
    display: flex;
    justify-content: center;
    left: 48%;
    position: absolute;
    transform: translateX(-50%);
}

.navbar-tagline-img {
    height: 70px;
    width: auto;
}

.navbar-tagline {
    color: #000000;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-left: 1rem;
    text-transform: uppercase;
}

.eyebrow {
    color: var(--brand-color);
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(0.25rem, 0.5vw, 0.5rem) clamp(1.25rem, 2.5vw, 2.25rem);
}

.course-hero {
    background:
        radial-gradient(ellipse at 70% 0%, rgba(59, 130, 246, 0.08), transparent 60%),
        linear-gradient(135deg, #f8faff 0%, #eef4ff 100%);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.07), 0 1px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.course-hero-inner {
    display: flex;
    align-items: stretch;
    min-height: 220px;
}

.course-hero-content {
    flex: 1;
    padding: 2.25rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.course-hero-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 750;
    line-height: 1.15;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.course-hero-description {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 1rem;
    max-width: 52ch;
}

.course-hero-cta {
    margin-top: 1.25rem;
}

.course-hero-visual {
    align-self: stretch;
    background: linear-gradient(160deg, #dbeafe 0%, #ede9fe 100%);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
    width: 320px;
}

.course-hero-visual img {
    display: block;
    height: auto;
    object-fit: contain;
    object-position: center;
    width: 100%;
}

.section-heading {
    margin-bottom: 1.5rem;
    max-width: 780px;
}

.section-heading h1,
.section-heading h2 {
    font-weight: 750;
}

.product-panel {
    background:
        radial-gradient(ellipse at 80% 10%, rgba(139, 92, 246, 0.07), transparent 55%),
        radial-gradient(ellipse at 15% 90%, rgba(99, 102, 241, 0.06), transparent 50%),
        #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(60, 80, 120, 0.10), 0 1px 4px rgba(0,0,0,0.06);
    color: #24292e;
    overflow: hidden;
    position: relative;
}

/* --- IDE-style hero panel (thème clair) --- */

.panel-header {
    align-items: center;
    background: #f3f3f3;
    border-bottom: 1px solid #e1e4e8;
    display: flex;
    gap: 0.45rem;
    padding: 0.65rem 1rem;
}

.dot {
    border-radius: 999px;
    display: block;
    height: 0.72rem;
    width: 0.72rem;
}

.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c840; }

.panel-title {
    color: rgba(80, 90, 110, 0.55);
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.72rem;
    margin-left: 0.6rem;
}

/* Tab bar */
.ide-tabs {
    background: #ececec;
    border-bottom: 1px solid #d8dde4;
    display: flex;
    overflow: hidden;
}

.ide-tab {
    border-right: 1px solid #d8dde4;
    color: rgba(80, 90, 110, 0.5);
    cursor: pointer;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.7rem;
    padding: 0.35rem 0.9rem;
    transition: color 0.15s;
    user-select: none;
    white-space: nowrap;
}

.ide-tab:hover:not(.active) {
    color: rgba(36, 41, 46, 0.7);
}

.ide-tab.active {
    background: #ffffff;
    border-bottom: 2px solid #0078d4;
    color: #24292e;
}

/* Editor */
.ide-editor {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.73rem;
    line-height: 1.5;
    overflow: hidden;
}

.ide-panel {
    display: none;
    padding: 0.35rem 0;
}

.ide-panel.active {
    animation: panel-fade 0.18s ease both;
    display: flex;
}

@keyframes panel-fade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ide-gutter {
    color: rgba(100, 116, 139, 0.45);
    min-width: 2.4rem;
    padding: 0 0.6rem;
    text-align: right;
    user-select: none;
}

.ide-gutter span {
    display: block;
}

.ide-code {
    flex: 1;
    overflow: hidden;
    padding-right: 0.75rem;
}

.code-row {
    color: #24292e;
    display: block;
    min-height: 1.5em;
    padding: 0 0.25rem;
    white-space: nowrap;
}

.code-row.active-line {
    background: rgba(0, 120, 212, 0.07);
    border-left: 2px solid #0078d4;
    padding-left: 0.15rem;
}

/* Syntax tokens — VS Code Light+ */
.kw    { color: #0000ff; }
.fn    { color: #795e26; }
.mod   { color: #267f99; }
.str   { color: #a31515; }
.num   { color: #098658; }
.cm    { color: #6a737d; }
.op    { color: #24292e; }
.pu    { color: #24292e; }
.param { color: #001080; }

/* Terminal panel */
.ide-terminal {
    background: #f3f3f3;
    border-top: 1px solid #e1e4e8;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.7rem;
}

.ide-terminal-tabs {
    border-bottom: 1px solid #d8dde4;
    display: flex;
}

.ide-terminal-tab {
    color: rgba(80, 90, 110, 0.5);
    padding: 0.22rem 0.8rem;
}

.ide-terminal-tab.active {
    border-bottom: 2px solid #0078d4;
    color: #24292e;
}

.ide-terminal-body {
    color: #24292e;
    line-height: 1.6;
    padding: 0.3rem 0.85rem 0.35rem;
}

.term-prompt { color: #388a34;  margin-right: 0.45rem; }
.term-ok     { color: #388a34;  margin-right: 0.3rem; }
.term-hi     { color: #0078d4; }
.term-time   { color: rgba(80, 90, 110, 0.5); }

/* --- Popup autocomplétion IA (style Copilot clair) --- */

.ai-copilot-popup {
    background: #ffffff;
    border: 1px solid rgba(0, 120, 212, 0.45);
    border-radius: 7px;
    box-shadow:
        0 0 0 1px rgba(0, 120, 212, 0.06),
        0 6px 24px rgba(0, 80, 180, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.08);
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.7rem;
    padding: 0.45rem 0.6rem;
    pointer-events: none;
    position: absolute;
    right: 1rem;
    top: 44%;
    z-index: 10;
    animation: copilot-appear 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ai-copilot-head {
    align-items: center;
    border-bottom: 1px solid rgba(0, 120, 212, 0.14);
    display: flex;
    gap: 0.42rem;
    margin-bottom: 0.38rem;
    padding-bottom: 0.32rem;
}

.ai-copilot-dot {
    animation: copilot-pulse 2.2s ease-in-out infinite;
    background: #0078d4;
    border-radius: 999px;
    box-shadow: 0 0 6px rgba(0, 120, 212, 0.7);
    display: block;
    flex-shrink: 0;
    height: 6px;
    width: 6px;
}

.ai-copilot-label {
    color: #0078d4;
    flex: 1;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.ai-copilot-tab {
    background: rgba(0, 120, 212, 0.08);
    border: 1px solid rgba(0, 120, 212, 0.28);
    border-radius: 3px;
    color: #0078d4;
    font-size: 0.58rem;
    padding: 0.08rem 0.32rem;
}

.ai-copilot-body .code-row {
    color: rgba(0, 100, 180, 0.55);
    font-size: 0.7rem;
    line-height: 1.6;
    min-height: auto;
    padding: 0;
}

@keyframes copilot-appear {
    from { opacity: 0; transform: translateY(6px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes copilot-pulse {
    0%, 100% { opacity: 1;   box-shadow: 0 0 6px rgba(0, 120, 212, 0.7); }
    50%       { opacity: 0.5; box-shadow: 0 0 2px rgba(0, 120, 212, 0.3); }
}

/* --- Bouton toggle thème --- */

.ide-theme-toggle {
    align-items: center;
    background: none;
    border: none;
    border-radius: 4px;
    color: rgba(80, 90, 110, 0.55);
    cursor: pointer;
    display: flex;
    height: 1.4rem;
    justify-content: center;
    margin-left: auto;
    padding: 0.15rem 0.28rem;
    transition: background 0.15s, color 0.15s;
    width: 1.4rem;
}

.ide-theme-toggle:hover {
    background: rgba(0, 0, 0, 0.07);
    color: rgba(36, 41, 46, 0.85);
}

/* --- Thème sombre (data-theme="dark") --- */

.product-panel[data-theme="dark"] {
    background: #0f172a;
    border-color: rgba(100, 116, 139, 0.2);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
    color: #dbeafe;
}

.product-panel[data-theme="dark"] .panel-header {
    background: rgba(30, 35, 48, 0.98);
    border-bottom-color: rgba(148, 163, 184, 0.12);
}

.product-panel[data-theme="dark"] .panel-title {
    color: rgba(148, 163, 184, 0.55);
}

.product-panel[data-theme="dark"] .ide-theme-toggle {
    color: rgba(148, 163, 184, 0.5);
}

.product-panel[data-theme="dark"] .ide-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(203, 213, 225, 0.8);
}

.product-panel[data-theme="dark"] .ide-tabs {
    background: rgba(24, 28, 40, 0.95);
    border-bottom-color: rgba(99, 110, 140, 0.18);
}

.product-panel[data-theme="dark"] .ide-tab {
    border-right-color: rgba(99, 110, 140, 0.15);
    color: rgba(148, 163, 184, 0.45);
}

.product-panel[data-theme="dark"] .ide-tab:hover:not(.active) {
    color: rgba(148, 163, 184, 0.75);
}

.product-panel[data-theme="dark"] .ide-tab.active {
    background: rgba(15, 23, 42, 0.9);
    border-bottom-color: #3b82f6;
    color: #e2e8f0;
}

.product-panel[data-theme="dark"] .ide-gutter {
    color: rgba(100, 116, 139, 0.38);
}

.product-panel[data-theme="dark"] .code-row {
    color: #cbd5e1;
}

.product-panel[data-theme="dark"] .code-row.active-line {
    background: rgba(59, 130, 246, 0.11);
    border-left-color: #3b82f6;
}

.product-panel[data-theme="dark"] .kw    { color: #f97583; }
.product-panel[data-theme="dark"] .fn    { color: #79c0ff; }
.product-panel[data-theme="dark"] .mod   { color: #e3b341; }
.product-panel[data-theme="dark"] .str   { color: #a5d6ff; }
.product-panel[data-theme="dark"] .num   { color: #f2cc60; }
.product-panel[data-theme="dark"] .cm    { color: #6e7b8b; }
.product-panel[data-theme="dark"] .op    { color: #79c0ff; }
.product-panel[data-theme="dark"] .pu    { color: #94a3b8; }
.product-panel[data-theme="dark"] .param { color: #ffab70; }

.product-panel[data-theme="dark"] .ide-terminal {
    background: rgba(0, 0, 0, 0.4);
    border-top-color: rgba(99, 110, 140, 0.2);
}

.product-panel[data-theme="dark"] .ide-terminal-tabs {
    border-bottom-color: rgba(99, 110, 140, 0.14);
}

.product-panel[data-theme="dark"] .ide-terminal-tab {
    color: rgba(148, 163, 184, 0.4);
}

.product-panel[data-theme="dark"] .ide-terminal-tab.active {
    border-bottom-color: #3b82f6;
    color: rgba(203, 213, 225, 0.85);
}

.product-panel[data-theme="dark"] .ide-terminal-body {
    color: rgba(163, 190, 163, 0.85);
}

.product-panel[data-theme="dark"] .term-prompt { color: #4ade80; }
.product-panel[data-theme="dark"] .term-ok     { color: #34d399; }
.product-panel[data-theme="dark"] .term-hi     { color: #67e8f9; }
.product-panel[data-theme="dark"] .term-time   { color: rgba(148, 163, 184, 0.5); }

.product-panel[data-theme="dark"] .ai-copilot-popup {
    background: linear-gradient(145deg, rgba(10, 15, 36, 0.97), rgba(15, 22, 50, 0.97));
    border-color: rgba(56, 189, 248, 0.52);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.08), 0 8px 32px rgba(14, 165, 233, 0.28), 0 2px 8px rgba(0,0,0,0.55);
}

.product-panel[data-theme="dark"] .ai-copilot-head {
    border-bottom-color: rgba(56, 189, 248, 0.15);
}

.product-panel[data-theme="dark"] .ai-copilot-dot {
    animation-name: copilot-pulse-dark;
    background: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.9);
}

.product-panel[data-theme="dark"] .ai-copilot-label {
    color: rgba(125, 211, 252, 0.88);
}

.product-panel[data-theme="dark"] .ai-copilot-tab {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.28);
    color: rgba(56, 189, 248, 0.78);
}

.product-panel[data-theme="dark"] .ai-copilot-body .code-row {
    color: rgba(148, 220, 255, 0.62);
}

@keyframes copilot-pulse-dark {
    0%, 100% { opacity: 1;   box-shadow: 0 0 8px rgba(56, 189, 248, 0.9); }
    50%       { opacity: 0.5; box-shadow: 0 0 3px rgba(56, 189, 248, 0.3); }
}

.course-card,
.feature-block,
.purchase-box,
.module-item,
.dashboard-course,
.stat-card,
.empty-state,
.content-section {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.home-course-row-heading {
    align-items: center;
    display: flex;
    margin: 0.25rem 0 0.8rem;
}

.home-course-row-heading span {
    background: #eef6ff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 0.35rem 0.7rem;
    text-transform: uppercase;
}

.course-card {
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    position: relative;
}

.catalog-tabs {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.75rem;
    padding: 0.25rem;
    width: 100%;
}

.catalog-tab {
    align-items: center;
    border-radius: 999px;
    color: #64748b;
    display: flex;
    flex: 1;
    font-size: 0.875rem;
    font-weight: 600;
    justify-content: center;
    letter-spacing: 0.01em;
    padding: 0.55rem 1rem;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.catalog-tab:hover,
.catalog-tab:focus {
    background: rgba(255, 255, 255, 0.7);
    color: #1e40af;
}

.catalog-tab.is-active {
    background: linear-gradient(135deg, #1f6feb, #14b8a6);
    box-shadow: 0 1px 6px rgba(31, 111, 235, 0.35), 0 0 0 1px rgba(31, 111, 235, 0.2);
    color: #ffffff;
    font-weight: 700;
}

.catalog-tab-premium:hover,
.catalog-tab-premium:focus {
    background: rgba(109, 40, 217, 0.08);
    color: #6d28d9;
}

.catalog-tab-premium.is-active {
    background: linear-gradient(135deg, #4338ca, #7c3aed);
    box-shadow: 0 1px 6px rgba(109, 40, 217, 0.35), 0 0 0 1px rgba(109, 40, 217, 0.2);
    color: #ffffff;
}

.premium-catalog-intro {
    align-items: center;
    background: linear-gradient(120deg, #eef2ff, #faf5ff);
    border: 1px solid #c4b5fd;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;
}

.premium-catalog-intro div { display: grid; gap: 0.15rem; }
.premium-catalog-intro div span { color: #6d28d9; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.premium-catalog-intro p { color: #5b21b6; margin: 0; }

.course-card-premium {
    border-color: #c4b5fd;
    box-shadow: 0 16px 42px rgba(91, 33, 182, 0.12);
}

.course-card-premium .btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-color: transparent;
}

.premium-ribbon {
    background: linear-gradient(135deg, #312e81, #7c3aed);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(49, 46, 129, 0.28);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    padding: 0.38rem 0.7rem;
    position: absolute;
    right: 0.7rem;
    text-transform: uppercase;
    top: 0.7rem;
    z-index: 2;
}

.course-thumb {
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(135deg, rgba(31, 111, 235, 0.22), rgba(20, 184, 166, 0.14)),
        repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.07) 0 1px, transparent 1px 18px);
}

.course-thumb-link {
    display: block;
    overflow: hidden;
}

.course-thumb-link .course-thumb-img,
.course-thumb-link .course-thumb {
    transition: filter 160ms ease, transform 180ms ease;
}

.course-thumb-link:hover .course-thumb-img,
.course-thumb-link:focus .course-thumb-img,
.course-thumb-link:hover .course-thumb,
.course-thumb-link:focus .course-thumb {
    filter: saturate(1.06);
    transform: scale(1.015);
}

.course-thumb-img {
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    width: 100%;
}

.course-card .course-thumb-img {
    aspect-ratio: auto;
    object-fit: contain;
}

.course-card .p-4 {
    padding: 0.75rem 1rem !important;
}

.course-card h3 {
    margin-bottom: 0.25rem !important;
}

.course-card .text-secondary {
    margin-bottom: 0 !important;
}


.course-meta {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    gap: 0.75rem;
}

.course-meta span {
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
}

.price-pill {
    color: var(--ink);
    font-weight: 700;
    white-space: nowrap;
}

/* ── Course about / profiles ─────────────────────────────── */
.course-about-intro {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 72ch;
}

.profile-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 2rem;
}

.profile-card {
    background: #f8faff;
    border: 1px solid #e8edf8;
    border-radius: 10px;
    padding: 1.5rem;
    transition: box-shadow 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.profile-card:hover {
    border-color: #c5d5f5;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.09);
    transform: translateY(-2px);
}

.profile-card-icon {
    align-items: center;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    border-radius: 8px;
    color: #2563eb;
    display: flex;
    height: 40px;
    justify-content: center;
    margin-bottom: 1rem;
    width: 40px;
}

.profile-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.profile-card p {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.course-outcomes {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border-radius: 12px;
    color: #e2e8f0;
    margin-top: 2rem;
    padding: 2rem 2.5rem;
}

.course-outcomes-header {
    align-items: center;
    color: #93c5fd;
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.course-outcomes-header h3 {
    color: #f1f5f9;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.outcome-list {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

.outcome-item {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
}

.outcome-dot {
    background: #3b82f6;
    border-radius: 50%;
    flex-shrink: 0;
    height: 8px;
    margin-top: 0.45rem;
    width: 8px;
}

.outcome-item strong {
    color: #f1f5f9;
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.2rem;
}

.outcome-item span {
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.5;
}

.feature-block,
.purchase-box,
.dashboard-course,
.content-section {
    padding: 1.5rem;
}

.dashboard-course { overflow: hidden; }

.dashboard-course-thumb {
    aspect-ratio: 16 / 9;
    background: #f1f5f9;
    display: block;
    margin: -1.5rem -1.5rem 1.25rem;
    object-fit: contain;
    width: calc(100% + 3rem);
}

.dashboard-course-list {
    display: grid;
    gap: 1rem;
}

.dashboard-course-row {
    align-items: stretch;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 300px minmax(0, 1fr) auto;
    padding: 0.85rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dashboard-course-row:hover {
    border-color: #bfdbfe;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09);
    transform: translateY(-2px);
}

.dashboard-course-row-media {
    background: #eef4fb;
    border: 1px solid #dce6ef;
    border-radius: 8px;
    display: block;
    max-width: 300px;
    overflow: hidden;
}

.dashboard-course-row-media img {
    aspect-ratio: 16 / 9;
    display: block;
    height: 100%;
    object-fit: contain;
    transition: filter 160ms ease, transform 160ms ease;
    width: 100%;
}

.dashboard-course-row:hover .dashboard-course-row-media img {
    filter: saturate(1.04) contrast(1.02);
    transform: scale(1.015);
}

.dashboard-course-row-body {
    display: grid;
    gap: 0.8rem;
    min-width: 0;
    padding: 0.25rem 0;
}

.dashboard-course-row-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
}

.dashboard-course-row h3 {
    color: #0f172a;
    font-size: 1.35rem;
    margin: 0 0 0.35rem;
}

.dashboard-course-row p {
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

.dashboard-course-row-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.dashboard-course-row-details span {
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #64748b;
    display: inline-flex;
    font-size: 0.84rem;
    gap: 0.25rem;
    min-height: 28px;
    padding: 0.2rem 0.6rem;
}

.dashboard-course-row-details strong {
    color: #0f172a;
    line-height: 1;
}

.dashboard-course-row-progress {
    display: grid;
    gap: 0.35rem;
}

.dashboard-course-row-progress .progress {
    height: 0.5rem;
}

.dashboard-course-row-progress span {
    color: #64748b;
    font-size: 0.84rem;
}

.dashboard-course-row-action {
    align-items: center;
    display: flex;
    padding-right: 0.35rem;
}

@media (max-width: 991.98px) {
    .dashboard-course-row {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .dashboard-course-row-media {
        max-width: 240px;
    }

    .dashboard-course-row-action {
        grid-column: 2;
        justify-content: flex-start;
        padding: 0;
    }
}

@media (max-width: 767.98px) {
    .dashboard-course-row {
        grid-template-columns: 1fr;
    }

    .dashboard-course-row-media {
        max-width: 320px;
    }

    .dashboard-course-row-action {
        grid-column: auto;
    }
}

.feature-block h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.feature-block p {
    color: var(--muted);
    margin-bottom: 0;
}

.module-list {
    display: grid;
    gap: 1rem;
}

.module-item {
    padding: 1.25rem;
}

.module-title-row {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.module-title-row h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.lesson-list {
    display: grid;
    gap: 0.5rem;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.lesson-list li {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}

.stat-card {
    align-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dce6ef;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    display: flex;
    gap: 0.7rem;
    min-height: 58px;
    padding: 0.7rem 0.9rem;
}

.dashboard-course-heading {
    max-width: none;
}

.dashboard-course-heading-row {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.dashboard-course-heading-row h2 {
    flex: 1 1 auto;
    margin-bottom: 0;
    min-width: 0;
}

.dashboard-stat-row {
    display: flex;
    flex: 0 0 auto;
    gap: 0.6rem;
}

.dashboard-stat-row .stat-card {
    gap: 0.45rem;
    min-height: 40px;
    min-width: 0;
    padding: 0.42rem 0.52rem;
}

.dashboard-stat-row .stat-card-icon {
    border-radius: 6px;
    flex-basis: 24px;
    height: 24px;
    width: 24px;
}

.dashboard-stat-row .stat-card-icon svg {
    height: 13px;
    width: 13px;
}

.dashboard-stat-row .stat-card-label {
    font-size: 0.74rem;
}

.dashboard-stat-row .stat-card strong {
    font-size: 1rem;
    max-width: 45%;
}

.stat-card-icon {
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    color: #475569;
    display: inline-flex;
    flex: 0 0 30px;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.stat-card-icon svg {
    height: 16px;
    width: 16px;
}

.stat-card-label {
    color: #64748b;
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-card strong {
    color: #0f172a;
    display: block;
    font-size: 1.25rem;
    line-height: 1;
    margin-left: auto;
    max-width: 52%;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .dashboard-course-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-stat-row {
        width: 100%;
    }

    .dashboard-stat-row .stat-card {
        flex: 1 1 0;
        min-width: 0;
    }
}

.empty-state {
    padding: 2rem;
    text-align: center;
}

.empty-state p {
    color: var(--muted);
    margin-bottom: 0;
}

body.lesson-page {
    height: 100vh;
    overflow: hidden;
}

.lesson-page main.container {
    padding-bottom: 0;
    padding-top: 1.5rem;
}

.lesson-layout {
    align-items: stretch;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) 340px;
    height: calc(100vh - 8rem);
    overflow: hidden;
}

.lesson-course-banner {
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 0.75rem;
    display: block;
    height: 220px;
    margin-bottom: 1.5rem;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    width: 100%;
}

.lesson-breadcrumb {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lesson-course-content {
    border-top: 1px solid var(--line);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.lesson-summary {
    background: #eef5ff;
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
    color: #173b6c;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 1rem 1.15rem;
}

.lesson-content-block {
    margin-top: 2rem;
}

.lesson-content-block h2,
.lesson-exercise h2 {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
}

.lesson-content-block li {
    margin-bottom: 0.45rem;
}

.lesson-code-heading {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin: 1rem 0 0.4rem;
    text-transform: uppercase;
}

.lesson-code {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
    padding: 1.15rem;
    white-space: pre;
}

.lesson-exercise {
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 8px;
    margin-top: 2rem;
    padding: 1.25rem;
}

.lesson-exercise p {
    margin-bottom: 0;
}

.lesson-checklist {
    list-style: none;
    padding-left: 0;
}

.lesson-checklist li {
    padding-left: 1.8rem;
    position: relative;
}

.lesson-checklist li::before {
    border: 2px solid #14b8a6;
    border-radius: 4px;
    content: "";
    height: 1rem;
    left: 0;
    position: absolute;
    top: 0.2rem;
    width: 1rem;
}

.video-shell {
    background: #0f172a;
    border-radius: 8px;
    overflow: hidden;
}

.lesson-video {
    aspect-ratio: 16 / 9;
    background: #0f172a;
    display: block;
    width: 100%;
}

.video-placeholder {
    align-items: center;
    aspect-ratio: 16 / 9;
    color: #dbeafe;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.video-placeholder p {
    color: #bfdbfe;
    margin-bottom: 0;
    max-width: 520px;
}

.lesson-navigation {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.lesson-top-navigation {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: -0.35rem 0 0.75rem;
    min-height: 1.8rem;
}

.lesson-top-navigation a {
    background: #f8fafc;
    border: 1px solid #dbe4ef;
    border-radius: 999px;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.38rem 0.62rem;
    text-decoration: none;
}

.lesson-top-navigation a:hover,
.lesson-top-navigation a:focus {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.lesson-main {
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.lesson-sidebar {
    align-content: start;
    display: grid;
    gap: 1rem;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
}

.lesson-sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.25rem;
}

.resource-list {
    display: grid;
    gap: 0.75rem;
}

.resource-list-row {
    align-items: baseline;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    display: flex;
    flex-wrap: nowrap;
    font-size: 0.74rem;
    gap: 0.35rem;
    padding: 0.8rem;
    white-space: nowrap;
}

.resource-list-row > span { color: var(--muted); }
.resource-list-row a { color: #1d4ed8; font-weight: 750; text-decoration: none; }
.resource-list-row a:hover,
.resource-list-row a:focus { color: #0f766e; text-decoration: underline; }
.resource-file-link { min-width: 0; }

.sidebar-lessons {
    display: grid;
    gap: 0.4rem;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.sidebar-lessons li {
    border-radius: 8px;
}

.sidebar-lessons li.active {
    background: #eef5ff;
    font-weight: 700;
}

.sidebar-lessons a {
    display: block;
    padding: 0.6rem 0.7rem;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.course-order-controls {
    align-items: center;
    display: flex;
    gap: 0.35rem;
    white-space: nowrap;
}

.course-order-position {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 800;
    min-width: 1.5rem;
}

.admin-dashboard {
    display: grid;
    gap: 1.25rem;
}

.admin-tabs {
    background: var(--bg);
    border-bottom-color: var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.admin-tabs .nav-link {
    color: var(--muted);
    font-weight: 700;
}

.admin-tabs .nav-link.active {
    color: var(--primary);
}

.admin-tab-content {
    padding-top: 0.25rem;
}

.admin-tab-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 0.45rem;
    padding: 1.5rem;
}

.admin-tab-heading {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.admin-tab-panel h2 {
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
}

.admin-tab-panel p {
    margin-bottom: 0;
}

.admin-catalog-panel {
    gap: 0.15rem;
}

.admin-catalog-panel .admin-tab-heading {
    margin-bottom: 0;
}

.admin-catalog-panel .course-type-filter-wrap {
    margin-top: -0.25rem;
}

.legal-admin-form {
    display: grid;
    gap: 1rem;
}

.legal-version-field {
    max-width: 24rem;
}

.legal-admin-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-admin-document {
    background: #f8fafc;
    border: 1px solid #e5edf6;
    border-radius: 8px;
    padding: 1rem;
}

.legal-admin-textarea {
    min-height: 15rem;
    resize: vertical;
}

.legal-admin-actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 991.98px) {
    .legal-admin-grid {
        grid-template-columns: 1fr;
    }
}

.admin-table,
.admin-form {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
}

.admin-table .table {
    --bs-table-bg: transparent;
}

.admin-course-card-table {
    border-collapse: separate;
    border-spacing: 0 0.72rem;
}

.admin-course-card-table thead th {
    border-bottom: 0;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    padding-bottom: 0.35rem;
}

.admin-course-card-table tbody tr {
    filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.05));
    transition: filter 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.admin-course-card-table tbody td {
    background: #ffffff;
    border-bottom: 1px solid #e5edf6;
    border-top: 1px solid #e5edf6;
    padding-bottom: 0.78rem;
    padding-top: 0.78rem;
}

.admin-course-card-table tbody td:first-child {
    border-left: 1px solid #e5edf6;
    border-radius: 12px 0 0 12px;
}

.admin-course-card-table tbody td:last-child {
    border-radius: 0 12px 12px 0;
    border-right: 1px solid #e5edf6;
}

.admin-course-card-table tbody tr:hover td {
    background: #f8fbff;
    border-color: #d7e3f4;
}

.admin-course-card-table tbody tr:hover {
    filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.08));
    transform: translateY(-1px);
}

.admin-course-card-table tbody.is-drag-over tr:not(.is-dragging) td {
    transition: background 140ms ease, border-color 140ms ease;
}

.admin-course-card-table tbody tr.is-dragging {
    filter: drop-shadow(0 18px 34px rgba(15, 23, 42, 0.18));
    opacity: 0.72;
    transform: scale(1.01);
}

.admin-course-card-table tbody tr.is-dragging td {
    background: #f8fbff;
    border-color: #93c5fd;
}

.admin-course-title-cell {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.course-drag-handle {
    align-items: center;
    appearance: none;
    background: #f8fafc;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    color: #64748b;
    cursor: grab;
    display: inline-flex;
    flex: 0 0 2rem;
    height: 2rem;
    justify-content: center;
    padding: 0;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
    width: 2rem;
}

.course-drag-handle:hover,
.course-drag-handle:focus {
    background: #eef6ff;
    border-color: #bfdbfe;
    color: #1e293b;
    outline: none;
    transform: translateY(-1px);
}

.course-drag-handle:active {
    cursor: grabbing;
    transform: translateY(0);
}

.admin-click-cell {
    cursor: pointer;
    transition: background-color 140ms ease;
}

.admin-click-cell:hover {
    background: inherit;
}

.admin-click-cell:focus {
    background: #f8fbff;
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.2);
    outline: none;
}

.admin-icon-actions {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
    justify-content: center;
    line-height: 0;
}

.admin-actions-cell {
    min-width: 224px;
    text-align: center;
}

.admin-icon-actions form {
    display: inline-flex;
    margin: 0;
}

.admin-icon-action {
    align-items: center;
    appearance: none;
    background: #ffffff;
    border: 1px solid #d7dee8;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    height: 2.15rem;
    justify-content: center;
    padding: 0;
    transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 140ms ease;
    width: 2.15rem;
}

.admin-icon-action:hover,
.admin-icon-action:focus {
    background: #f8fafc;
    border-color: #94a3b8;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.1);
    color: #0f172a;
    outline: none;
    transform: translateY(-1px);
}

.admin-icon-action:active {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transform: translateY(0);
}

.admin-icon-action-download {
    color: #1d4ed8;
    text-decoration: none;
}

.admin-icon-action-download:hover,
.admin-icon-action-download:focus {
    color: #1e40af;
}

.admin-icon-action-disabled {
    cursor: not-allowed;
    opacity: 0.35;
    pointer-events: none;
}

.admin-field-dialog {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

.admin-field-dialog .modal-header,
.admin-field-dialog .modal-footer {
    background: #fbfdff;
    border-color: #e5edf6;
}

.admin-field-dialog .modal-title {
    color: #0f172a;
    font-weight: 800;
}

.admin-field-dialog .form-label {
    color: #334155;
    font-size: 0.82rem;
    font-weight: 800;
}

.admin-field-note {
    background: #f8fafc;
    border: 1px solid #e5edf6;
    border-radius: 10px;
    color: #475569;
    margin: 0;
    padding: 0.9rem 1rem;
}

.badge-premium { background: #f59e0b; color: #431a00; font-size: 0.75rem; font-weight: 700; }
.badge-basique { background: #e2e8f0; color: #475569; font-size: 0.75rem; font-weight: 600; }

.course-type-filter-wrap { margin-top: 0; }
.course-type-filter { display: flex; gap: 0.4rem; margin-bottom: 0.75rem; }
.course-type-btn { appearance: none; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 999px; color: #475569; cursor: pointer; font-family: inherit; font-size: 0.82rem; font-weight: 600; padding: 0.28rem 0.9rem; transition: background 130ms, color 130ms, border-color 130ms; }
.course-type-btn:hover { background: #e2e8f0; color: #334155; }
.course-type-btn.is-active { background: #1e293b; border-color: #1e293b; color: #fff; }
.course-type-btn-premium.is-active { background: #f59e0b; border-color: #d97706; color: #431a00; }

.admin-course-thumb {
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 6px;
    display: block;
    object-fit: cover;
    width: 96px;
}

.admin-course-banner-thumb {
    aspect-ratio: 16 / 5;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: block;
    object-fit: cover;
    width: 130px;
}

.admin-course-thumb-empty {
    background:
        linear-gradient(135deg, rgba(31, 111, 235, 0.14), rgba(20, 184, 166, 0.1)),
        #f8fafc;
}

.admin-edit-dialog,
.course-edit-dialog {
    display: flex;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
}

.admin-edit-dialog,
.admin-edit-dialog > form,
.course-edit-dialog > form {
    display: flex;
    flex-direction: column;
    max-height: inherit;
    min-height: 0;
    width: 100%;
}

.admin-edit-dialog .modal-header,
.admin-edit-dialog .modal-footer,
.course-edit-dialog .modal-header,
.course-edit-dialog .modal-footer {
    flex-shrink: 0;
}

.admin-edit-dialog .modal-footer,
.course-edit-dialog .modal-footer {
    justify-content: center;
}

.admin-edit-dialog .modal-body,
.course-edit-dialog .modal-body {
    min-height: 0;
    overflow-y: auto;
}

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

.thumbnail-preview {
    border: 1px solid var(--line);
    border-radius: 8px;
    max-width: 360px;
    overflow: hidden;
}

.thumbnail-preview-label {
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.55rem 0.75rem;
}

.thumbnail-preview img {
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    width: 100%;
}

.password-toggle-group {
    position: relative;
}

.password-toggle-group .form-control {
    padding-right: 3rem;
}

.password-toggle-button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 999px;
    display: flex;
    height: 2rem;
    justify-content: center;
    opacity: 0.65;
    padding: 0;
    position: absolute;
    right: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    transition: background 160ms ease, opacity 160ms ease;
    width: 2rem;
}

.password-toggle-button:hover,
.password-toggle-button:focus-visible {
    background: #eef5ff;
    opacity: 1;
}

@media (max-width: 991.98px) {
    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .outcome-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .course-outcomes {
        padding: 1.5rem;
    }
}

.password-toggle-icon {
    border: 1.8px solid #64748b;
    border-radius: 999px / 700px;
    display: block;
    height: 0.72rem;
    position: relative;
    width: 1.18rem;
}

.password-toggle-icon::after {
    background: #64748b;
    border-radius: 999px;
    content: "";
    height: 0.32rem;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0.32rem;
}

.password-toggle-button[aria-pressed="true"] .password-toggle-icon::before {
    background: #64748b;
    content: "";
    height: 1.45px;
    left: -0.14rem;
    position: absolute;
    top: 50%;
    transform: rotate(-38deg);
    width: 1.45rem;
}

.legal-acceptance {
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    margin: 1.25rem 0;
    padding: 1rem;
}

.legal-acceptance-heading {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.legal-acceptance-heading h2 {
    font-size: 1.05rem;
    margin: 0.25rem 0 0;
}

.legal-version {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 0.28rem 0.65rem;
    white-space: nowrap;
}

.legal-scroll-box {
    background: #f8fafc;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    color: #334155;
    max-height: 260px;
    overflow-y: auto;
    padding: 1rem;
}

.legal-document-section + .legal-document-section {
    border-top: 1px solid #e2e8f0;
    margin-top: 1rem;
    padding-top: 1rem;
}

.legal-document-section h3 {
    color: #0f172a;
    font-size: 0.98rem;
    margin-bottom: 0.55rem;
}

.legal-document-section p {
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 0.7rem;
}

.legal-scroll-hint {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    margin: 0.75rem 0;
}

.legal-acceptance.is-unlocked .legal-scroll-hint {
    color: #0f766e;
}

.legal-check-row {
    align-items: flex-start;
    background: #f8fbff;
    border: 1px solid #e5edf6;
    border-radius: 10px;
    display: flex;
    gap: 0.65rem;
    margin: 0;
    padding: 0.85rem 1rem;
}

.legal-check-row .form-check-input {
    margin-left: 0;
    margin-top: 0.18rem;
}

.legal-renew-card {
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 1rem;
    }

    .course-hero-inner {
        flex-direction: column-reverse;
    }

    .course-hero-visual {
        width: 100%;
        height: 180px;
    }

    .course-hero-content {
        padding: 1.5rem;
    }

    .module-title-row,
    .lesson-list li {
        align-items: flex-start;
        flex-direction: column;
    }

    .lesson-layout {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }

    .lesson-main {
        overflow-y: visible;
    }

    .lesson-sidebar {
        overflow-y: visible;
    }

    .admin-tab-heading {
        display: grid;
    }
}

/* Contact and admin messaging */
.contact-page {
    background: linear-gradient(145deg, #f8fbff 0%, #f3faf7 52%, #f8f7ff 100%);
}

.contact-shell {
    align-items: start;
    display: grid;
    gap: 3rem;
    grid-template-columns: minmax(0, 0.85fr) minmax(460px, 1.15fr);
    padding: 1rem 0 2rem;
}

.contact-intro { padding: 1.5rem 0; }
.contact-intro h1 { color: #0f172a; font-size: clamp(2.2rem, 4vw, 4rem); letter-spacing: -0.045em; line-height: 1.02; margin: 0.7rem 0 1.1rem; }
.contact-intro > p { color: #526174; font-size: 1.08rem; line-height: 1.75; max-width: 580px; }
.contact-promise-list { display: grid; gap: 0.8rem; margin-top: 2rem; }
.contact-promise-list div { background: rgba(255,255,255,.82); border: 1px solid #dbe7e1; border-radius: 14px; display: grid; gap: 0.2rem; padding: 1rem 1.1rem; }
.contact-promise-list strong { color: #0f766e; }
.contact-promise-list span { color: #64748b; font-size: 0.9rem; }
.contact-direct { font-size: 0.92rem !important; margin-top: 1.5rem; }
.contact-direct a { color: #1d4ed8; font-weight: 800; }

.contact-form-card { background: #fff; border: 1px solid #dce6ef; border-radius: 22px; box-shadow: 0 24px 60px rgba(15,23,42,.11); padding: 2rem; }
.contact-form-heading { margin-bottom: 1.5rem; }
.contact-form-heading > span { color: #1677ff; font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.contact-form-heading h2 { color: #0f172a; margin: .35rem 0; }
.contact-form-heading p { color: #64748b; margin: 0; }
.contact-form-card .form-label { color: #334155; font-size: .86rem; font-weight: 800; }
.contact-form-card .form-control { border-color: #cfdbe7; border-radius: 10px; min-height: 46px; }
.contact-form-card textarea.form-control { min-height: 180px; resize: vertical; }
.contact-form-card .form-control:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.contact-field-error { color: #b42318; font-size: .8rem; margin-top: .3rem; }
.contact-field-hint { color: #94a3b8; font-size: .76rem; margin-top: .3rem; }
.contact-submit { margin-top: 1.25rem; min-height: 48px; width: 100%; }

.admin-messages-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 1.5rem; }
.admin-messages-heading h1 { margin: .35rem 0; }
.admin-messages-heading p { color: #64748b; margin: 0; }
.message-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.message-filters a { background: #fff; border: 1px solid #dbe4ef; border-radius: 999px; color: #64748b; font-size: .85rem; font-weight: 800; padding: .55rem .9rem; text-decoration: none; }
.message-filters a:hover, .message-filters a.is-active { background: #eff6ff; border-color: #60a5fa; color: #1d4ed8; }
.message-inbox { background: #fff; border: 1px solid #dbe4ef; border-radius: 14px; overflow: hidden; }
.message-inbox-row { align-items: center; border-bottom: 1px solid #edf2f7; color: #334155; display: grid; gap: 1rem; grid-template-columns: 90px 190px minmax(0,1fr) 140px; padding: 1rem; text-decoration: none; }
.message-inbox-row:last-child { border-bottom: 0; }
.message-inbox-row:hover { background: #f8fbff; }
.message-inbox-row.is-new { background: #f0f7ff; }
.message-inbox-row.is-new .message-subject strong { color: #0f172a; }
.message-sender, .message-subject { display: grid; min-width: 0; }
.message-sender small, .message-subject small { color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-inbox-row time { color: #64748b; font-size: .78rem; text-align: right; }
.message-status { border-radius: 999px; display: inline-flex; font-size: .7rem; font-weight: 900; justify-content: center; padding: .35rem .55rem; text-transform: uppercase; }
.message-status-new { background: #dbeafe; color: #1d4ed8; }
.message-status-read { background: #f1f5f9; color: #475569; }
.message-status-replied { background: #dcfce7; color: #166534; }
.message-detail-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 1rem; }
.message-detail-heading > a { color: #1d4ed8; font-weight: 800; text-decoration: none; }
.message-detail-grid { align-items: start; display: grid; gap: 1.5rem; grid-template-columns: minmax(0,1.3fr) minmax(340px,.7fr); }
.message-thread, .message-reply-card { background: #fff; border: 1px solid #dbe4ef; border-radius: 16px; box-shadow: 0 12px 34px rgba(15,23,42,.06); padding: 1.5rem; }
.message-thread header { align-items: start; border-bottom: 1px solid #edf2f7; display: flex; justify-content: space-between; padding-bottom: 1rem; }
.message-thread header div { display: grid; }
.message-thread header span, .message-thread time { color: #64748b; font-size: .78rem; }
.message-thread header a { color: #1d4ed8; font-size: .88rem; }
.message-thread h1 { font-size: 1.55rem; margin: 1.4rem 0 1rem; }
.message-body, .message-sent-reply p { color: #334155; line-height: 1.75; white-space: pre-wrap; }
.message-sent-reply { background: #f0fdf4; border-left: 4px solid #22c55e; border-radius: 0 10px 10px 0; margin-top: 1.5rem; padding: 1rem; }
.message-sent-reply > span { color: #166534; font-size: .78rem; font-weight: 900; }
.message-sent-reply p { margin: .55rem 0 0; }
.message-reply-card h2 { margin: .35rem 0; }
.message-reply-card > p, .message-reply-card > small { color: #64748b; }
.message-reply-card textarea { min-height: 220px; resize: vertical; }
.dashboard-message-list { display: grid; gap: .55rem; }
.dashboard-message-list a { align-items: center; background: #f8fafc; border: 1px solid #e7edf4; border-radius: 10px; color: #334155; display: grid; gap: 1rem; grid-template-columns: 150px minmax(0,1fr) 130px; padding: .8rem; text-decoration: none; }
.dashboard-message-list a.is-new { background: #eff6ff; border-color: #bfdbfe; }
.dashboard-message-list time { color: #64748b; font-size: .78rem; text-align: right; }
.admin-message-count { background: #ef4444; border-radius: 999px; color: #fff; display: inline-flex; font-size: .68rem; justify-content: center; margin-left: .25rem; min-width: 1.25rem; padding: .12rem .35rem; }

@media (max-width: 991.98px) {
    .contact-shell { gap: 1.5rem; grid-template-columns: 1fr; }
    .message-detail-grid { grid-template-columns: 1fr; }
    .message-inbox-row { grid-template-columns: 80px 160px minmax(0,1fr); }
    .message-inbox-row time { display: none; }
}

.course-access-panel {
    margin-top: 1.2rem;
}

.course-access-message {
    align-items: center;
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.22);
    border-radius: 999px;
    color: #0f766e;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 800;
    margin: 0 0 0.85rem;
    min-height: 32px;
    padding: 0.42rem 0.72rem;
}

.course-access-expired {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.22);
    color: #b91c1c;
}

.dashboard-access-date {
    color: #64748b;
    display: inline-flex;
    font-weight: 800;
    margin-top: 0.2rem;
}

.payment-page {
    margin: 0 auto;
    max-width: 980px;
}

.payment-card {
    align-items: start;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
    padding: 1.8rem;
}

.payment-summary h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
    margin: 0.35rem 0 0.75rem;
}

.payment-summary p {
    color: #64748b;
    font-size: 1.05rem;
    margin: 0;
}

.payment-price {
    color: #0f172a;
    font-size: 2.2rem;
    font-weight: 900;
    margin-top: 1.4rem;
}

.payment-access-note {
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 12px;
    color: #31537c;
    font-weight: 800;
    margin-top: 1rem;
    padding: 0.9rem 1rem;
}

.payment-form {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    padding: 1.2rem;
}

.payment-element {
    margin-bottom: 1.1rem;
    min-height: 132px;
}

.payment-message {
    color: #64748b;
    font-weight: 800;
    margin: 0.9rem 0 0;
    min-height: 22px;
}

.payment-message[data-tone="success"] {
    color: #0f766e;
}

.payment-message[data-tone="error"] {
    color: #b91c1c;
}

.login-remember-check {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    gap: 0.45rem;
    user-select: none;
}

.login-remember-check .form-check-input,
.login-remember-check .form-check-label {
    cursor: pointer;
}

.login-secondary-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
}

.login-muted-link {
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 400;
    text-decoration: none;
}

.login-muted-link:hover {
    color: #334155;
}

.login-muted-link.is-disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

@media (max-width: 767.98px) {
    .payment-card {
        grid-template-columns: 1fr;
        padding: 1.1rem;
    }
}
