:root {
    --fcx-blue: #2f80ed;
    --fcx-blue-soft: #eaf5ff;
    --fcx-gold: #d9b45f;
    --fcx-text: #10233f;
    --fcx-muted: #64748b;
    --fcx-border: #d8e6f5;
}

.fcx-hero,
.fcx-course-hero {
    background:
        radial-gradient(circle at 86% 12%, rgba(47, 128, 237, .15), transparent 28%),
        linear-gradient(135deg, #ffffff, #edf7ff);
}

.fcx-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: 1rem 0;
}

.fcx-tabs a {
    padding: .65rem .9rem;
    border: 1px solid var(--fcx-border);
    border-radius: 999px;
    color: var(--fcx-text);
    text-decoration: none;
    font-weight: 850;
    background: #fff;
}

.fcx-dashboard-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.fcx-dashboard-main {
    min-width: 0;
    display: grid;
    gap: 1rem;
}

.fcx-classroom-sidebar {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: .45rem;
    padding: .85rem;
    border: 1px solid rgba(47, 128, 237, .16);
    border-radius: 22px;
    background:
        radial-gradient(circle at 18% 0%, rgba(47, 128, 237, .14), transparent 32%),
        linear-gradient(180deg, #ffffff, #f6fbff);
    box-shadow: 0 18px 44px rgba(16, 35, 63, .08);
}

.fcx-sidebar-head {
    display: grid;
    gap: .15rem;
    padding: .35rem .45rem .75rem;
    border-bottom: 1px solid var(--fcx-border);
    margin-bottom: .25rem;
}

.fcx-sidebar-head span {
    color: var(--fcx-text);
    font-size: 1.08rem;
    font-weight: 950;
}

.fcx-sidebar-head small {
    color: var(--fcx-muted);
    font-weight: 800;
}

.fcx-classroom-sidebar a,
.fcx-classroom-sidebar button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    min-height: 42px;
    padding: .72rem .85rem;
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--fcx-text);
    background: transparent;
    text-align: left;
    text-decoration: none;
    font-weight: 900;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.fcx-classroom-sidebar a:hover,
.fcx-classroom-sidebar button:hover {
    border-color: rgba(47, 128, 237, .2);
    background: #fff;
    color: #0f62d6;
    transform: translateX(2px);
}

.fcx-classroom-sidebar a.is-active {
    border-color: rgba(47, 128, 237, .34);
    background: linear-gradient(135deg, #eaf5ff, #ffffff);
    color: #0f62d6;
    box-shadow: inset 3px 0 0 var(--fcx-blue);
}

.fcx-classroom-sidebar button {
    color: var(--fcx-muted);
    cursor: pointer;
}

.fcx-classroom-sidebar button small {
    border-radius: 999px;
    padding: .2rem .5rem;
    background: rgba(217, 180, 95, .16);
    color: #a87817;
    font-size: .72rem;
    font-weight: 950;
}

.fcx-course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.fcx-course-card {
    overflow: hidden;
    border: 1px solid var(--fcx-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(16, 35, 63, .08);
}

.fcx-course-card > div:last-child {
    display: grid;
    gap: .55rem;
    padding: 1rem;
}

.fcx-course-cover {
    min-height: 150px;
    background:
        linear-gradient(135deg, rgba(47, 128, 237, .9), rgba(124, 199, 255, .75)),
        var(--fcx-blue-soft);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-start;
    padding: .85rem;
}

.fcx-course-cover span,
.fcx-course-card small,
.fcx-lesson-list span {
    width: max-content;
    border-radius: 999px;
    padding: .25rem .6rem;
    background: var(--fcx-blue-soft);
    color: #0f62d6;
    font-size: .78rem;
    font-weight: 900;
}

.fcx-course-cover span {
    background: rgba(255, 255, 255, .92);
}

.fcx-course-card h3,
.fcx-module-card h2,
.fcx-lesson-panel h1 {
    margin: 0;
    color: var(--fcx-text);
    font-weight: 950;
}

.fcx-course-card p,
.fcx-module-card p,
.fcx-course-meta span,
.fcx-course-meta strong {
    margin: 0;
    color: var(--fcx-muted);
    font-weight: 750;
}

.fcx-course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}

.fcx-course-meta strong {
    color: var(--fcx-gold);
}

.fcx-learning-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1rem;
    align-items: start;
}

.fcx-lesson-main {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.fcx-module-stack,
.fcx-lesson-list,
.fcx-module-sidebar {
    display: grid;
    gap: .8rem;
}

.fcx-module-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.fcx-inline-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
}

.fcx-lesson-list a,
.fcx-module-sidebar a {
    display: grid;
    gap: .25rem;
    padding: .8rem;
    border: 1px solid var(--fcx-border);
    border-radius: 16px;
    color: var(--fcx-text);
    text-decoration: none;
    background: #fff;
}

.fcx-module-sidebar {
    position: sticky;
    top: 1rem;
}

.fcx-module-sidebar-head {
    display: grid;
    gap: .55rem;
    margin-bottom: 1rem;
}

.fcx-module-sidebar-head h3 {
    margin: 0;
    color: var(--fcx-text);
    font-weight: 950;
}

.fcx-module-sidebar section {
    display: grid;
    gap: .45rem;
}

.fcx-module-sidebar section + section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--fcx-border);
}

.fcx-module-sidebar a span,
.fcx-module-sidebar a small {
    color: var(--fcx-muted);
    font-size: .76rem;
    font-weight: 850;
}

.fcx-module-sidebar a b {
    color: var(--fcx-text);
}

.fcx-lesson-hero {
    align-items: stretch;
}

.fcx-lesson-progress-line {
    overflow: hidden;
    width: min(420px, 100%);
    height: 9px;
    margin-top: .75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .65);
}

.fcx-lesson-progress-line span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--fcx-blue), #7cc7ff);
}

.fcx-lesson-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .6rem;
    align-items: center;
}

.fcx-lesson-actions {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
}

.fcx-lesson-actions a,
.fcx-lesson-actions button {
    padding: .45rem .7rem;
    border: 1px solid #cfe0f3;
    border-color: #cfe0f3;
    border-radius: 999px;
    background: #fff;
    color: var(--fcx-text);
    font-size: .78rem;
    font-weight: 900;
}

.fcx-lesson-actions form,
.fcx-inline-actions form {
    margin: 0;
}

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

.fcx-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.fcx-builder-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.fcx-builder-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .85rem;
    align-items: start;
    position: relative;
    overflow: hidden;
}

.fcx-builder-step > span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #edf5ff;
    color: var(--fcx-blue);
    font-weight: 950;
}

.fcx-builder-step.is-ready > span {
    background: linear-gradient(135deg, var(--fcx-blue), #7cc7ff);
    color: #fff;
}

.fcx-builder-step h2,
.fcx-builder-step p {
    margin: 0;
}

.fcx-builder-step h2 {
    color: var(--fcx-text);
    font-size: 1rem;
    font-weight: 950;
}

.fcx-builder-step p,
.fcx-builder-step small {
    color: var(--fcx-muted);
    font-weight: 750;
}

.fcx-builder-step > .ch-btn,
.fcx-builder-step > button {
    grid-column: 2;
    width: max-content;
}

.fcx-stat-grid article {
    display: grid;
    gap: .25rem;
}

.fcx-stat-grid strong {
    color: var(--fcx-text);
    font-size: 1.9rem;
    font-weight: 950;
}

.fcx-stat-grid small {
    color: var(--fcx-muted);
    font-weight: 800;
}

.fcx-filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, .55fr) minmax(160px, .45fr) auto auto;
    gap: .7rem;
    align-items: center;
}

.fcx-filter-bar input,
.fcx-filter-bar select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--fcx-border);
    border-radius: 14px;
    padding: .55rem .75rem;
    color: var(--fcx-text);
    background: #fff;
    font-weight: 750;
}

.fcx-table-panel {
    overflow: hidden;
}

.fcx-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.fcx-table-head h2 {
    margin: 0;
    color: var(--fcx-text);
    font-weight: 950;
}

.fcx-responsive-table {
    overflow-x: auto;
}

.fcx-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

.fcx-table th,
.fcx-table td {
    padding: .85rem .75rem;
    border-bottom: 1px solid var(--fcx-border);
    text-align: left;
    vertical-align: middle;
}

.fcx-table th {
    color: var(--fcx-muted);
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
}

.fcx-table td strong,
.fcx-table td small {
    display: block;
}

.fcx-table td form {
    display: inline-flex;
    margin: .2rem .15rem 0 0;
}

.fcx-table td small {
    color: var(--fcx-muted);
    font-weight: 750;
}

.fcx-status-pill {
    display: inline-flex;
    width: max-content;
    border-radius: 999px;
    padding: .28rem .62rem;
    background: var(--fcx-blue-soft);
    color: #0f62d6;
    font-size: .78rem;
    font-weight: 950;
}

.fcx-mini-progress {
    width: min(160px, 100%);
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5edf7;
}

.fcx-mini-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--fcx-blue), #7cc7ff);
}

.fcx-admin-card {
    display: grid;
    gap: .55rem;
}

.fcx-admin-card h2,
.fcx-resource-layout h2 {
    margin: 0;
    color: var(--fcx-text);
    font-size: 1.1rem;
    font-weight: 950;
}

.fcx-admin-card p,
.fcx-admin-card small {
    margin: 0;
    color: var(--fcx-muted);
    font-weight: 750;
}

.fcx-resource-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.fcx-student-grid,
.fcx-learning-interactions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.fcx-student-course {
    display: grid;
    gap: .7rem;
}

.fcx-student-course h2,
.fcx-note-list h2,
.fcx-comment-list h2,
.fcx-learning-interactions h2 {
    margin: 0;
    color: var(--fcx-text);
    font-weight: 950;
}

.fcx-student-course p,
.fcx-student-course small {
    margin: 0;
    color: var(--fcx-muted);
    font-weight: 750;
}

.fcx-note-list,
.fcx-comment-list {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}

.fcx-note-list article,
.fcx-comment-list article {
    padding: .9rem;
    border: 1px solid var(--fcx-border);
    border-radius: 16px;
    background: #fff;
}

.fcx-note-list p,
.fcx-comment-list p {
    margin: .25rem 0;
    color: var(--fcx-muted);
}

.fcx-attachment-list {
    display: grid;
    gap: .75rem;
}

.fcx-attachment-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: .75rem;
    align-items: center;
    padding: .85rem;
    border: 1px solid var(--fcx-border);
    border-radius: 16px;
    background: #fff;
}

.fcx-attachment-list span {
    color: var(--fcx-muted);
    font-weight: 850;
}

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

.fcx-material-card {
    display: grid;
    gap: .25rem;
    padding: .9rem;
    border: 1px solid var(--fcx-border);
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff, #f7fbff);
    color: var(--fcx-text);
    text-decoration: none;
}

.fcx-material-card span,
.fcx-material-card small {
    color: var(--fcx-muted);
    font-weight: 800;
}

.fcx-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.fcx-section-head h2 {
    margin: 0;
    color: var(--fcx-text);
    font-weight: 950;
}

.fcx-quiz-panel,
.fcx-result-card,
.fcx-quiz-builder {
    display: grid;
    gap: 1rem;
}

.fcx-quiz-summary {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.fcx-quiz-summary span,
.fcx-quiz-summary strong,
.fcx-answer-review span {
    width: max-content;
    border-radius: 999px;
    padding: .3rem .65rem;
    background: var(--fcx-blue-soft);
    color: #0f62d6;
    font-weight: 900;
    font-size: .82rem;
}

.fcx-question {
    display: grid;
    gap: .6rem;
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid var(--fcx-border);
    border-radius: 18px;
    background: #fff;
}

.fcx-question legend {
    float: none;
    width: auto;
    margin: 0;
    color: var(--fcx-text);
    font-size: 1rem;
    font-weight: 950;
}

.fcx-question label {
    display: flex;
    gap: .5rem;
    align-items: center;
    color: var(--fcx-muted);
    font-weight: 800;
}

.fcx-result-card {
    text-align: center;
    background:
        radial-gradient(circle at 85% 20%, rgba(217,180,95,.2), transparent 30%),
        #fff;
}

.fcx-result-card h1 {
    margin: 0;
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: var(--fcx-text);
    font-weight: 950;
}

.fcx-result-card.is-passed h1 { color: #15803d; }
.fcx-result-card.is-failed h1 { color: #b91c1c; }

.fcx-answer-review,
.fcx-answer-list {
    display: grid;
    gap: .75rem;
}

.fcx-answer-review article,
.fcx-answer-list > p,
.fcx-answer-list > article {
    margin: 0;
    padding: .85rem;
    border: 1px solid var(--fcx-border);
    border-radius: 16px;
    background: #fff;
}

.fcx-answer-review article.is-correct,
.fcx-answer-list > p.is-correct,
.fcx-answer-list > article.is-correct {
    border-color: rgba(21,128,61,.25);
    background: #f0fdf4;
}

.fcx-answer-list > article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    flex-wrap: wrap;
}

.fcx-answer-list > article p {
    margin: 0;
    color: var(--fcx-text);
    font-weight: 850;
}

.fcx-answer-review article.is-wrong {
    border-color: rgba(185,28,28,.24);
    background: #fff5f5;
}

.fcx-module-sidebar a.is-active {
    border-color: var(--fcx-blue);
    background: var(--fcx-blue-soft);
}

.fcx-video {
    width: 100%;
    max-height: 560px;
    border-radius: 24px;
    background: #061528;
    box-shadow: 0 22px 58px rgba(6, 21, 40, .22);
}

.fcx-video-frame {
    display: grid;
    gap: .7rem;
    padding: .65rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at 85% 15%, rgba(47, 128, 237, .2), transparent 26%),
        linear-gradient(135deg, #061528, #102a4d);
}

.fcx-video-status {
    width: max-content;
    margin-top: .6rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: var(--fcx-blue-soft);
    color: #0f62d6;
    font-size: .82rem;
    font-weight: 900;
}

.fcx-video-empty,
.fcx-video-embed {
    display: grid;
    gap: .55rem;
    min-height: 280px;
    place-items: center;
    text-align: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #07172e, #123c6d);
    color: #fff;
}

.fcx-video-empty strong {
    font-size: 1.4rem;
    font-weight: 950;
}

.fcx-video-embed small {
    max-width: 420px;
    color: rgba(255,255,255,.78);
    font-weight: 750;
}

.fcx-progress {
    overflow: hidden;
    height: 12px;
    border-radius: 999px;
    background: #e4eef9;
}

.fcx-complete-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: .9rem;
    border: 1px solid var(--fcx-border);
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff, #f5fbff);
}

.fcx-complete-box strong,
.fcx-complete-box small {
    display: block;
}

.fcx-complete-box strong {
    color: var(--fcx-text);
    font-weight: 950;
}

.fcx-complete-box small {
    color: var(--fcx-muted);
    font-weight: 750;
}

.fcx-certification-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 1rem;
}

.fcx-progress-card,
.fcx-certificate-status {
    display: grid;
    gap: .75rem;
}

.fcx-progress-card h2,
.fcx-certificate-status h2 {
    margin: 0;
    color: var(--fcx-text);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 950;
}

.fcx-certificate-status.is-ready {
    background:
        radial-gradient(circle at 88% 10%, rgba(217, 180, 95, .24), transparent 28%),
        linear-gradient(135deg, #ffffff, #f8fbff);
    border-color: rgba(217, 180, 95, .34);
}

.fcx-requirement-list {
    display: grid;
    gap: .75rem;
}

.fcx-requirement-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    padding: .9rem;
    border: 1px solid var(--fcx-border);
    border-radius: 18px;
    background: #fff;
}

.fcx-requirement-list article.is-complete {
    border-color: rgba(21, 128, 61, .25);
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.fcx-requirement-list h3,
.fcx-requirement-list small {
    margin: 0;
    display: block;
}

.fcx-requirement-list h3 {
    color: var(--fcx-text);
    font-size: 1rem;
    font-weight: 950;
}

.fcx-requirement-list span {
    width: max-content;
    border-radius: 999px;
    padding: .25rem .58rem;
    background: var(--fcx-blue-soft);
    color: #0f62d6;
    font-size: .75rem;
    font-weight: 950;
}

.fcx-requirement-list article.is-complete span {
    background: #dcfce7;
    color: #15803d;
}

.fcx-requirement-list small {
    color: var(--fcx-muted);
    font-weight: 750;
}

.fcx-requirement-list.is-compact article {
    align-items: flex-start;
    flex-direction: column;
}

.fcx-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--fcx-blue), var(--fcx-gold));
}

.fcx-certificate {
    position: relative;
    overflow: hidden;
    max-width: 1120px;
    margin: 3rem auto;
    padding: clamp(2.2rem, 5vw, 4.4rem) clamp(2rem, 6vw, 5.5rem);
    border: 1px solid rgba(217, 180, 95, .45);
    border-radius: 28px;
    text-align: center;
    background:
        radial-gradient(circle at 10% 20%, rgba(47,128,237,.13), transparent 26%),
        radial-gradient(circle at 90% 15%, rgba(217,180,95,.18), transparent 30%),
        linear-gradient(135deg, #ffffff, #f7fbff);
    color: var(--fcx-text);
    box-shadow: 0 36px 100px rgba(16, 35, 63, .18);
    isolation: isolate;
}

.fcx-certificate-page {
    min-height: 100vh;
    padding: 2rem;
    background: #eef6ff;
}

.fcx-cert-border {
    position: absolute;
    inset: 1.1rem;
    border: 2px solid rgba(217, 180, 95, .7);
    border-radius: 22px;
    pointer-events: none;
}

.fcx-cert-border::before {
    content: "";
    position: absolute;
    inset: .65rem;
    border: 1px solid rgba(16, 35, 63, .18);
    border-radius: 16px;
}

.fcx-cert-corner {
    position: absolute;
    z-index: -1;
    width: 460px;
    height: 140px;
    background: linear-gradient(135deg, rgba(11, 35, 69, .96), rgba(212, 175, 55, .88));
    opacity: .92;
    transform: rotate(-35deg);
}

.fcx-cert-corner-top {
    top: -52px;
    left: -190px;
}

.fcx-cert-corner-bottom {
    right: -190px;
    bottom: -52px;
}

.fcx-cert-template-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    padding: .4rem .85rem;
    border-radius: 999px;
    background: rgba(15, 98, 214, .1);
    color: #0f62d6;
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fcx-cert-template-badge.is-premium {
    background: rgba(217, 180, 95, .18);
    color: #9a6a14;
}

.fcx-cert-template-minimal-light {
    border-color: rgba(148, 163, 184, .38);
    background:
        linear-gradient(90deg, rgba(37, 99, 235, .08) 0 8px, transparent 8px),
        linear-gradient(135deg, #ffffff, #f8fafc);
}

.fcx-cert-template-community-gold {
    border-color: rgba(217, 164, 65, .55);
    background:
        radial-gradient(circle at 18% 22%, rgba(217, 164, 65, .24), transparent 28%),
        radial-gradient(circle at 90% 15%, rgba(18, 60, 109, .14), transparent 32%),
        linear-gradient(135deg, #ffffff, #f7fbff);
}

.fcx-cert-template-community-gold h2,
.fcx-cert-template-community-gold .fcx-cert-kicker {
    color: #b7791f;
}

.fcx-cert-template-executive-black-gold {
    border-color: rgba(245, 196, 95, .75);
    color: #fff;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, .08), transparent 34%),
        radial-gradient(circle at 85% 12%, rgba(245, 196, 95, .24), transparent 28%),
        linear-gradient(135deg, #02040a, #101827 52%, #05070d);
    box-shadow: 0 34px 100px rgba(2, 6, 23, .32);
}

.fcx-cert-template-executive-black-gold .fcx-cert-border {
    border-color: rgba(245, 196, 95, .82);
}

.fcx-cert-template-executive-black-gold h2,
.fcx-cert-template-executive-black-gold .fcx-cert-kicker {
    color: #f5c45f;
}

.fcx-cert-template-executive-black-gold .fcx-cert-footer span,
.fcx-cert-template-executive-black-gold p {
    color: rgba(255, 255, 255, .76);
}

.fcx-cert-template-executive-black-gold .fcx-cert-title-block span,
.fcx-cert-template-executive-black-gold h1,
.fcx-cert-template-executive-black-gold .fcx-cert-logo {
    color: #fff;
}

.fcx-cert-template-executive-black-gold .fcx-cert-meta span {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-left-color: #f5c45f;
}

.fcx-cert-template-executive-black-gold .fcx-cert-footer > div:not(.fcx-cert-seal) {
    border-top-color: rgba(245, 196, 95, .55);
}

.fcx-cert-template-royal-sapphire {
    color: #fff;
    border-color: rgba(203, 213, 225, .58);
    background:
        radial-gradient(circle at 18% 12%, rgba(56, 189, 248, .22), transparent 28%),
        radial-gradient(circle at 90% 85%, rgba(203, 213, 225, .18), transparent 30%),
        linear-gradient(135deg, #04132f, #082b63 52%, #061a40);
}

.fcx-cert-template-royal-sapphire .fcx-cert-border {
    border-color: rgba(203, 213, 225, .74);
}

.fcx-cert-template-royal-sapphire h2,
.fcx-cert-template-royal-sapphire .fcx-cert-kicker {
    color: #bae6fd;
}

.fcx-cert-template-royal-sapphire .fcx-cert-title-block span,
.fcx-cert-template-royal-sapphire h1,
.fcx-cert-template-royal-sapphire .fcx-cert-logo {
    color: #fff;
}

.fcx-cert-template-royal-sapphire .fcx-cert-meta span {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-left-color: #bae6fd;
}

.fcx-cert-template-faith-neon {
    color: #e0f2fe;
    border-color: rgba(56, 189, 248, .62);
    background:
        linear-gradient(120deg, rgba(56, 189, 248, .22), transparent 28%, rgba(167, 139, 250, .18) 72%, transparent),
        radial-gradient(circle at 50% 0%, rgba(56, 189, 248, .2), transparent 32%),
        linear-gradient(135deg, #03111f, #07172c);
}

.fcx-cert-template-faith-neon .fcx-cert-border {
    border-color: rgba(56, 189, 248, .72);
    box-shadow: 0 0 28px rgba(56, 189, 248, .24) inset;
}

.fcx-cert-template-faith-neon h2,
.fcx-cert-template-faith-neon .fcx-cert-kicker {
    color: #67e8f9;
}

.fcx-cert-template-faith-neon .fcx-cert-title-block span,
.fcx-cert-template-faith-neon h1,
.fcx-cert-template-faith-neon .fcx-cert-logo {
    color: #e0f2fe;
}

.fcx-cert-template-faith-neon .fcx-cert-meta span {
    background: rgba(56, 189, 248, .08);
    color: #e0f2fe;
    border-left-color: #67e8f9;
}

.fcx-cert-template-luxury-marble {
    border-color: rgba(201, 147, 43, .58);
    background:
        linear-gradient(120deg, rgba(17, 24, 39, .05), transparent 18%, rgba(201, 147, 43, .1) 36%, transparent 58%),
        radial-gradient(circle at 20% 18%, rgba(201, 147, 43, .16), transparent 25%),
        linear-gradient(135deg, #ffffff, #f3f4f6);
}

.fcx-cert-template-luxury-marble h2,
.fcx-cert-template-luxury-marble .fcx-cert-kicker {
    color: #a16207;
}

.fcx-cert-template-covenant-platinum {
    border-color: rgba(148, 163, 184, .7);
    background:
        linear-gradient(110deg, rgba(255, 255, 255, .88), rgba(226, 232, 240, .62), rgba(255, 255, 255, .92)),
        linear-gradient(135deg, #f8fafc, #e5e7eb);
}

.fcx-cert-template-covenant-platinum .fcx-cert-border {
    border-color: rgba(100, 116, 139, .48);
}

.fcx-cert-head,
.fcx-cert-meta,
.fcx-cert-footer,
.fcx-certificate-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.fcx-cert-head {
    position: relative;
    margin-bottom: 1.6rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.fcx-cert-brand {
    display: flex;
    align-items: center;
    gap: .8rem;
    text-align: left;
}

.fcx-cert-logo {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 3px solid currentColor;
    background: radial-gradient(circle, rgba(217, 180, 95, .25), rgba(255, 255, 255, .08));
    color: #0b2345;
    font-weight: 950;
    letter-spacing: 0;
}

.fcx-cert-brand strong,
.fcx-cert-brand span {
    display: block;
}

.fcx-cert-brand span {
    color: #b8860b;
    font-size: .72rem;
    font-weight: 900;
}

.fcx-cert-head strong,
.fcx-lock-pill {
    border-radius: 999px;
    padding: .35rem .75rem;
    background: var(--fcx-blue-soft);
    color: #0f62d6;
    font-size: .82rem;
    font-weight: 900;
}

.fcx-cert-meta span {
    display: grid;
    gap: .15rem;
    min-width: 150px;
    flex: 1 1 150px;
    padding: .85rem 1rem;
    border-left: 4px solid #d4af37;
    border-radius: 12px;
    background: rgba(248, 250, 252, .9);
    color: #0b2345;
    font-size: .9rem;
    font-weight: 900;
    text-align: left;
    box-shadow: 0 10px 28px rgba(16, 35, 63, .06);
}

.fcx-cert-meta b {
    display: block;
    color: #b8860b;
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.fcx-cert-kicker {
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--fcx-gold);
    font-weight: 950;
}

.fcx-cert-title-block {
    position: relative;
    margin: 1.2rem auto 2rem;
    text-transform: uppercase;
}

.fcx-cert-title-block span {
    display: block;
    color: #0b2345;
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    font-weight: 950;
    letter-spacing: .16em;
    line-height: 1;
}

.fcx-cert-title-block h2 {
    margin: .35rem 0 0;
    color: #b8860b;
    font-size: clamp(1.35rem, 3vw, 2.15rem);
    font-weight: 950;
    letter-spacing: .22em;
}

.fcx-certificate h1 {
    max-width: 780px;
    margin: .65rem auto 1rem;
    padding-bottom: .7rem;
    border-bottom: 2px solid rgba(212, 175, 55, .88);
    font-family: "Brush Script MT", "Segoe Script", cursive;
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    font-weight: 400;
    line-height: 1;
}

.fcx-cert-course {
    max-width: 880px;
    margin: .75rem auto;
    color: var(--fcx-blue);
    font-size: clamp(1.5rem, 3.2vw, 2.5rem);
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fcx-cert-copy,
.fcx-certificate .church {
    color: rgba(16, 35, 63, .74);
    font-size: 1.05rem;
    font-weight: 800;
}

.fcx-cert-footer {
    margin-top: 3.4rem;
}

.fcx-cert-footer > div {
    min-width: 220px;
    border-top: 2px solid rgba(16, 35, 63, .28);
    padding-top: .6rem;
}

.fcx-cert-footer > .fcx-cert-seal {
    min-width: 130px;
    width: 130px;
    height: 130px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: .15rem;
    padding: 0;
    border: 6px solid #0b2345;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #ffe8a3, #d4af37 48%, #9b6b10);
    color: #0b2345;
    box-shadow: 0 18px 40px rgba(11, 35, 69, .18);
}

.fcx-cert-seal span {
    color: inherit;
    font-size: 2.15rem;
    font-weight: 950;
    line-height: 1;
}

.fcx-cert-seal small {
    font-size: .62rem;
    font-weight: 950;
    letter-spacing: .14em;
}

.fcx-cert-footer strong,
.fcx-cert-footer span {
    display: block;
}

.fcx-cert-footer span {
    color: var(--fcx-muted);
    font-weight: 800;
}

.fcx-certificate-actions {
    max-width: 920px;
    margin: 1rem auto 0;
    justify-content: center;
}

.fcx-cert-ribbon {
    position: absolute;
    top: 0;
    right: 70px;
    z-index: 3;
    width: 130px;
    height: 210px;
    padding-top: 35px;
    text-align: center;
    color: #d4af37;
    background: #0b2345;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.fcx-cert-ribbon::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -34px;
    border-left: 65px solid transparent;
    border-right: 65px solid transparent;
    border-top: 34px solid #0b2345;
}

.fcx-cert-ribbon strong,
.fcx-cert-ribbon span {
    display: block;
}

.fcx-cert-ribbon span {
    margin-top: 10px;
    font-size: 11px;
    font-weight: 850;
}

.fcx-cert-verify {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-top: 2.4rem;
    color: var(--fcx-muted);
    font-size: .88rem;
    font-weight: 800;
    text-align: left;
}

.fcx-cert-qr {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    background: repeating-linear-gradient(45deg, #111 0 4px, #fff 4px 8px);
    color: #111;
    font-weight: 950;
}

.fcx-cert-template-dios-fiel {
    padding: 70px 90px;
    border: 8px solid #0b2345;
    outline: 3px solid #d4af37;
    border-radius: 0;
    color: #0b2345;
    background:
        linear-gradient(90deg, rgba(11, 35, 69, .035), transparent 16%, transparent 84%, rgba(212, 175, 55, .06)),
        radial-gradient(circle at top, rgba(212, 175, 55, .12), transparent 35%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.fcx-cert-template-dios-fiel::before,
.fcx-cert-template-dios-fiel::after {
    display: none;
}

.fcx-cert-template-dios-fiel::before {
    top: -40px;
    left: -160px;
}

.fcx-cert-template-dios-fiel::after {
    right: -160px;
    bottom: -40px;
}

.fcx-cert-template-dios-fiel .fcx-cert-border {
    display: none;
}

.fcx-cert-template-dios-fiel h1 {
    color: #0b2345;
}

.fcx-cert-template-dios-fiel h2,
.fcx-cert-template-dios-fiel .fcx-cert-kicker {
    color: #b8860b;
}

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

.fcx-template-section {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.fcx-template-card {
    display: grid;
    gap: 1rem;
}

.fcx-template-card.is-locked {
    opacity: .72;
}

.fcx-template-preview {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    padding: 1.4rem;
    border-radius: 18px;
    border: 1px solid rgba(15, 98, 214, .16);
    background: #fff;
    color: #10233f;
}

.fcx-preview-ribbon {
    position: absolute;
    top: 0;
    right: 1.2rem;
    z-index: 2;
    width: 72px;
    height: 118px;
    padding-top: 1rem;
    text-align: center;
    background: #0b2345;
    color: #d4af37;
    font-size: .58rem;
    font-weight: 950;
}

.fcx-preview-ribbon span {
    display: block;
    margin-top: .3rem;
    font-size: .48rem;
}

.fcx-preview-brand {
    display: grid;
    gap: .15rem;
    text-align: center;
    letter-spacing: .12em;
}

.fcx-preview-brand small {
    color: #b8860b;
    font-size: .62rem;
    font-weight: 850;
    text-transform: uppercase;
}

.fcx-template-preview h3 {
    margin: 1.2rem 0 0;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 950;
    letter-spacing: .18em;
}

.fcx-template-preview p {
    text-align: center;
    color: #b8860b;
    font-weight: 900;
    letter-spacing: .16em;
}

.fcx-template-preview b,
.fcx-template-preview em {
    display: block;
    text-align: center;
}

.fcx-template-preview b {
    margin: 1rem auto .4rem;
    max-width: 70%;
    border-bottom: 2px solid #d4af37;
    font-family: "Brush Script MT", cursive;
    font-size: 1.8rem;
    font-weight: 400;
}

.fcx-preview-footer {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    margin-top: 1.4rem;
    font-size: .72rem;
    font-weight: 900;
}

.fcx-certificate-course-panel {
    margin-bottom: 1rem;
}

.fcx-certificate-course-list {
    display: grid;
    gap: .7rem;
}

.fcx-certificate-course-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem;
    border: 1px solid var(--fcx-border);
    border-radius: 16px;
    background: #f8fbff;
}

.fcx-certificate-course-list strong,
.fcx-certificate-course-list small {
    display: block;
}

@media print {
    body { background: #fff; }
    .fcx-certificate-page { padding: 0; background: #fff; }
    .fcx-certificate-actions { display: none; }
    .fcx-certificate {
        box-shadow: none;
        margin: 0;
        max-width: none;
        min-height: 96vh;
        break-inside: avoid;
    }
}

@media (max-width: 767.98px) {
    .fcx-certificate {
        padding: 2rem 1.25rem;
    }
    .fcx-cert-ribbon {
        right: 1.25rem;
        width: 88px;
        height: 140px;
        padding-top: 1rem;
        font-size: .7rem;
    }
    .fcx-cert-ribbon::after {
        border-left-width: 44px;
        border-right-width: 44px;
    }
    .fcx-cert-head,
    .fcx-cert-footer,
    .fcx-cert-verify {
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .fcx-cert-brand {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .fcx-cert-meta span {
        text-align: center;
    }
    .fcx-cert-title-block span {
        letter-spacing: .08em;
    }
}

.fcx-public-page {
    padding: 2rem;
}

.fcx-public-classroom-hero {
    margin-bottom: 1rem;
}

.fcx-public-course-hero {
    min-height: 520px;
    display: flex;
    align-items: end;
    padding: clamp(2rem, 6vw, 4rem);
    border-radius: 28px;
    background:
        radial-gradient(circle at 85% 15%, rgba(47, 128, 237, .2), transparent 26%),
        linear-gradient(135deg, #061528, #123c6d);
    background-size: cover;
    background-position: center;
    color: #fff;
    box-shadow: 0 24px 70px rgba(6, 21, 40, .22);
}

.fcx-public-course-hero > div {
    max-width: 820px;
    display: grid;
    gap: .85rem;
}

.fcx-public-course-hero h1,
.fcx-public-course-hero p {
    margin: 0;
}

.fcx-public-course-hero h1 {
    font-size: clamp(2.4rem, 7vw, 5rem);
    font-weight: 950;
}

.fcx-public-course-hero p {
    color: rgba(255, 255, 255, .84);
    font-size: 1.08rem;
    font-weight: 750;
}

.fcx-public-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.fcx-public-course-meta span,
.fcx-public-course-meta strong {
    border-radius: 999px;
    padding: .4rem .75rem;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.fcx-public-course-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 1rem;
    margin: 1rem 0;
}

.fcx-public-module {
    display: grid;
    gap: .55rem;
    padding: 1rem;
    border: 1px solid var(--fcx-border);
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff, #f8fbff);
}

.fcx-public-module h3,
.fcx-public-module p {
    margin: 0;
}

.fcx-public-module h3 {
    color: var(--fcx-text);
    font-weight: 950;
}

.fcx-public-module p {
    color: var(--fcx-muted);
    font-weight: 750;
}

.fcx-form-grid,
.fcx-course-exam-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.fcx-form-span {
    grid-column: 1 / -1;
}

.fcx-check-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: 44px;
    margin: 0;
    padding: .75rem .9rem;
    border: 1px solid var(--fcx-border);
    border-radius: 14px;
    background: #f8fbff;
    font-weight: 850;
}

.fcx-course-exam-card {
    display: grid;
    gap: .7rem;
    padding: 1rem;
    border: 1px solid var(--fcx-border);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .08), rgba(255, 255, 255, .92)),
        #fff;
    box-shadow: 0 14px 30px rgba(13, 42, 86, .06);
}

.fcx-course-exam-card strong {
    color: var(--fcx-text);
    font-weight: 950;
}

.fcx-course-exam-card small {
    display: block;
    color: var(--fcx-muted);
    font-weight: 800;
}

.fcx-exam-row {
    border-color: rgba(245, 158, 11, .35);
    background:
        linear-gradient(135deg, rgba(245, 158, 11, .12), rgba(14, 165, 233, .08)),
        #fff;
}

.fcx-exam-row a > span {
    color: #b45309;
    font-weight: 950;
}

@media (max-width: 1199.98px) {
    .fcx-dashboard-shell { grid-template-columns: 220px minmax(0, 1fr); }
    .fcx-course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fcx-learning-layout { grid-template-columns: 1fr; }
    .fcx-module-sidebar { position: static; }
    .fcx-certification-grid { grid-template-columns: 1fr; }
    .fcx-public-course-grid { grid-template-columns: 1fr; }
    .fcx-admin-grid,
    .fcx-stat-grid,
    .fcx-builder-grid,
    .fcx-resource-layout,
    .fcx-student-grid,
    .fcx-learning-interactions,
    .fcx-material-grid,
    .fcx-form-grid,
    .fcx-course-exam-grid,
    .fcx-certificate-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .fcx-public-page { padding: 1rem; }
    .fcx-public-course-hero { min-height: 420px; border-radius: 22px; }
    .fcx-dashboard-shell { grid-template-columns: 1fr; }
    .fcx-classroom-sidebar {
        position: static;
        display: flex;
        gap: .5rem;
        overflow-x: auto;
        padding: .65rem;
        border-radius: 18px;
        scrollbar-width: thin;
    }
    .fcx-sidebar-head { display: none; }
    .fcx-classroom-sidebar a,
    .fcx-classroom-sidebar button {
        width: max-content;
        min-width: max-content;
        min-height: 38px;
        padding: .6rem .75rem;
    }
    .fcx-course-grid { grid-template-columns: 1fr; }
    .fcx-admin-grid,
    .fcx-stat-grid,
    .fcx-builder-grid,
    .fcx-filter-bar,
    .fcx-resource-layout,
    .fcx-student-grid,
    .fcx-learning-interactions,
    .fcx-material-grid,
    .fcx-form-grid,
    .fcx-course-exam-grid,
    .fcx-certificate-template-grid,
    .fcx-lesson-row,
    .fcx-attachment-list article { grid-template-columns: 1fr; }
    .fcx-certificate-course-list article { flex-direction: column; align-items: flex-start; }
    .fcx-module-head,
    .fcx-course-hero,
    .fcx-lesson-hero,
    .fcx-complete-box,
    .fcx-requirement-list article { flex-direction: column; align-items: flex-start; }
}
