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

:root {
    --gold: #c9a96e;
    --gold2: #e8d5a3;
    --gold3: #8b6914;
    --black: #080808;
    --dark: #111111;
    --dark2: #161616;
    --dark3: #1e1e1e;
    --text: #ffffff;
    --muted: #c8c0b0;
    --light: #e0d8cc;
    --serif: "Cormorant Garamond", serif;
    --sans: "DM Sans", sans-serif;
    --nav-offset: 5.5rem;
    --bg: #080808;
    --bg-soft: #111111;
    --panel: rgba(17, 17, 17, 0.88);
    --panel-strong: rgba(22, 22, 22, 0.94);
    --border: rgba(201, 169, 110, 0.16);
    --border-strong: rgba(201, 169, 110, 0.3);
    --brand: #c9a96e;
    --brand-soft: #e8d5a3;
    --brand-dark: #8b6914;
    --scrollbar-track: rgba(8, 8, 8, 0.92);
    --scrollbar-thumb: linear-gradient(180deg, rgba(201, 169, 110, 0.92), rgba(139, 105, 20, 0.92));
    --scrollbar-thumb-hover: linear-gradient(180deg, rgba(232, 213, 163, 0.96), rgba(201, 169, 110, 0.96));
    --scrollbar-border: rgba(255, 255, 255, 0.08);
}

html {
    scroll-behavior: smooth;
    background: var(--black);
}

body {
    background: var(--black);
    color: var(--text);
    font-family: var(--sans);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body.site-body {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

* {
    scrollbar-color: rgba(201, 169, 110, 0.92) rgba(8, 8, 8, 0.92);
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 0.9rem;
    height: 0.9rem;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border: 1px solid var(--scrollbar-border);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border: 2px solid rgba(8, 8, 8, 0.96);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

::-webkit-scrollbar-corner {
    background: var(--scrollbar-track);
}

body.site-body,
body.site-body button,
body.site-body input,
body.site-body select,
body.site-body textarea {
    font-family: var(--sans);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

main.site-main {
    padding-top: 0;
    position: relative;
    z-index: 1;
    display: block;
    flex: 1 0 auto;
    padding-bottom: clamp(4.5rem, 10vh, 7rem);
}

.site-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 4rem;
    padding-right: 4rem;
}

.site-backdrop {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.site-backdrop-image,
.site-backdrop-video,
.site-backdrop-video-glow,
.site-backdrop-grid {
    position: absolute;
    inset: 0;
}

.site-backdrop-image {
    background:
        radial-gradient(circle at 12% 18%, rgba(201, 169, 110, 0.2), transparent 24%),
        radial-gradient(circle at 84% 16%, rgba(232, 213, 163, 0.08), transparent 16%),
        linear-gradient(180deg, rgba(8, 8, 8, 0.72), rgba(8, 8, 8, 0.95));
}

.site-backdrop-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: saturate(0.5) contrast(1.02) brightness(0.22);
    transform: scale(1.06);
    animation: backdrop-drift 24s ease-in-out infinite alternate;
}

.site-backdrop-video-glow {
    background:
        radial-gradient(circle at 18% 16%, rgba(201, 169, 110, 0.16), transparent 22%),
        linear-gradient(180deg, rgba(8, 8, 8, 0.12), rgba(8, 8, 8, 0.78) 54%, rgba(8, 8, 8, 0.98));
    animation: glow-pulse 16s ease-in-out infinite;
}

.site-backdrop-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 42px 42px;
    opacity: 0.26;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 88%);
    animation: grid-drift 30s linear infinite alternate;
}

html[dir="rtl"] body {
    font-family: var(--sans);
}

html[dir="rtl"] .hero-content,
html[dir="rtl"] .hero-copy,
html[dir="rtl"] .hero-card,
html[dir="rtl"] .auth-side,
html[dir="rtl"] .auth-card,
html[dir="rtl"] .panel,
html[dir="rtl"] .feature-card {
    text-align: right;
}

html[dir="rtl"] .trust-row,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .cluster-actions,
html[dir="rtl"] .dashboard-toolbar-actions {
    justify-content: flex-end;
}

html[dir="rtl"] .hero-btns {
    flex-direction: row-reverse;
}

html[dir="rtl"] .btn-text::after {
    content: "\2190";
}

html[dir="rtl"] .btn-text:hover::after {
    transform: translateX(-4px);
}

html[dir="rtl"] .c-list-item::before {
    content: "-";
}

html[dir="rtl"] .cred-item-card {
    border-left: none;
    border-right: 2px solid transparent;
}

html[dir="rtl"] .cred-item-card:hover {
    border-right-color: var(--gold);
}

html[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .reg-head {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .footer-links,
html[dir="rtl"] footer {
    direction: rtl;
}

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 1.2rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.4s;
}

#navbar.scrolled {
    background: rgba(8, 8, 8, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

.nav-logo {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    color: var(--gold);
}

.nav-logo span {
    color: var(--text);
    font-style: italic;
}

.nav-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--text);
}

.nav-cta {
    padding: 0.5rem 1.4rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--gold);
    color: var(--black);
}

.lang-switcher {
    display: flex;
    gap: 2px;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 169, 110, 0.2);
    padding: 3px;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.7rem;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.25s;
    font-weight: 500;
}

.lang-btn.active {
    background: var(--gold);
    color: var(--black);
    font-weight: 600;
}

.lang-btn:hover:not(.active) {
    color: var(--text);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    border: none;
    background: transparent;
}

.hamburger span {
    width: 22px;
    height: 1.5px;
    background: var(--gold);
    display: block;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 8, 0.99);
    z-index: 300;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    font-family: var(--serif);
    font-weight: 300;
}

.mobile-menu a.gold {
    color: var(--gold);
}

.mobile-lang {
    display: flex;
    gap: 4px;
    margin-top: 1rem;
}

.mobile-lang .lang-btn {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
}

.mobile-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    background: none;
    border: none;
}

.flash-stack {
    position: relative;
    z-index: 5;
    padding-top: calc(var(--nav-offset) + 1rem);
}

.flash {
    margin-bottom: 0.85rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(201, 169, 110, 0.2);
    background: rgba(17, 17, 17, 0.95);
    color: rgba(255, 255, 255, 0.9);
}

.flash-success {
    border-color: rgba(123, 198, 126, 0.28);
}

.flash-error {
    border-color: rgba(242, 166, 166, 0.28);
}

.flash-info {
    border-color: rgba(201, 169, 110, 0.28);
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 8, 8, 0.82) 0%, rgba(8, 8, 8, 0.55) 60%, rgba(8, 8, 8, 0.35) 100%);
    z-index: 1;
}

.hero-overlay2 {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 8, 8, 0.95) 0%, transparent 45%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 4rem;
    max-width: 780px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.45rem 1rem;
    margin-bottom: 2rem;
    font-size: 0.63rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.badge-dot {
    width: 5px;
    height: 5px;
    background: var(--gold);
    border-radius: 50%;
    animation: blink 2s infinite;
    flex-shrink: 0;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero h1,
.hero-title,
.auth-title,
.section-title,
.s-title {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    font-weight: 300;
    line-height: 1.08;
    color: var(--text);
}

.hero h1 em,
.hero-title em,
.section-title em,
.s-title em,
.auth-title em {
    font-style: italic;
    color: var(--gold);
    display: inline-block;
}

.hero-sub,
.hero-text,
.section-text,
.muted-text,
.s-sub {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.9;
    max-width: 640px;
    font-weight: 300;
}

.hero-sub {
    max-width: 500px;
    margin-bottom: 1.8rem;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.2rem;
}

.trust-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.3rem 0.8rem;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85);
}

.trust-pill::before {
    content: "";
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

.hero-btns,
.hero-actions,
.cluster-actions,
.dashboard-toolbar-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-gold,
.btn-main {
    padding: 0.85rem 2rem;
    background: var(--gold);
    color: var(--black);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold);
}

.btn-gold:hover,
.btn-main:hover {
    background: var(--gold2);
    border-color: var(--gold2);
}

.btn-text {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

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

.btn-text::after {
    content: "\2192";
    transition: transform 0.3s;
}

.btn-text:hover::after {
    transform: translateX(4px);
}

.btn-outline,
.btn-ghost,
.btn-alt,
.compact-btn {
    padding: 0.85rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.btn-outline:hover,
.btn-ghost:hover,
.btn-alt:hover,
.compact-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-danger {
    padding: 0.85rem 2rem;
    border: 1px solid rgba(255, 150, 150, 0.28);
    color: rgba(255, 210, 210, 0.85);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(140, 42, 42, 0.14);
}

.btn-danger:hover {
    border-color: rgba(255, 180, 180, 0.48);
    background: rgba(140, 42, 42, 0.26);
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.9rem;
    border: 1px solid rgba(201, 169, 110, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pill-badge::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-bar {
    width: 1px;
    height: 35px;
    background: linear-gradient(to bottom, transparent, var(--gold));
    animation: sa 2s ease-in-out infinite;
}

@keyframes sa {
    0%,
    100% {
        height: 20px;
        opacity: 0.4;
    }

    50% {
        height: 40px;
        opacity: 1;
    }
}

.stats-bar {
    background: var(--dark2);
    border-top: 1px solid rgba(201, 169, 110, 0.15);
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
    display: flex;
    justify-content: center;
}

.stats-inner {
    display: flex;
    width: 100%;
    max-width: 900px;
}

.stat-item {
    flex: 1;
    padding: 1.5rem 1rem;
    text-align: center;
    border-right: 1px solid rgba(201, 169, 110, 0.12);
    min-width: 80px;
}

.stat-item:last-child {
    border-right: none;
}

.stat-n {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
}

.stat-l {
    font-size: 0.58rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.3rem;
}

.cred-strip {
    background: var(--dark3);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cred-strip-label {
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}

.cred-strip-items {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.cred-strip-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.7);
}

.cred-strip-item::before {
    content: "";
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
}

.section,
.section-shell {
    padding: 5rem 4rem;
}

.section-shell {
    max-width: 1280px;
    margin: 0 auto;
}

.site-main > .section-shell:first-child {
    padding-top: calc(var(--nav-offset) + 1.5rem);
}

.s-label,
.section-badge {
    font-size: 0.63rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.s-title,
.section-title {
    font-size: clamp(1.7rem, 3.5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.s-sub {
    margin-bottom: 3rem;
}

.courses-grid,
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(201, 169, 110, 0.12);
}

.course-card,
.panel,
.feature-card,
.review-card,
.hero-card,
.auth-card,
.auth-side,
.quiz-admin-card,
.quiz-admin-option,
.dashboard-course-row,
.dashboard-filter-shell,
.site-modal-dialog {
    background: var(--dark);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.course-card:hover,
.panel:hover,
.feature-card:hover,
.review-card:hover,
.hero-card:hover,
.auth-card:hover,
.auth-side:hover {
    background: var(--dark2);
}

.course-card::before,
.panel::before,
.feature-card::before,
.review-card::before,
.hero-card::before,
.auth-card::before,
.auth-side::before,
.quiz-admin-card::before,
.site-modal-dialog::before,
.dashboard-filter-shell::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    transform: scaleX(0);
    transition: transform 0.5s;
}

.course-card:hover::before,
.panel:hover::before,
.feature-card:hover::before,
.review-card:hover::before,
.hero-card:hover::before,
.auth-card:hover::before,
.auth-side:hover::before,
.quiz-admin-card:hover::before,
.site-modal-dialog:hover::before,
.dashboard-filter-shell:hover::before {
    transform: scaleX(1);
}

.c-num {
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 300;
    color: rgba(201, 169, 110, 0.12);
    line-height: 1;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.course-card:hover .c-num {
    color: rgba(201, 169, 110, 0.22);
}

.c-tag {
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.c-name,
.feature-card .text-xl,
.course-card .text-2xl,
.review-card .text-2xl,
.text-xl,
.text-2xl,
.text-3xl,
.text-lg {
    font-family: var(--serif);
    color: var(--text);
    font-weight: 300;
}

.c-name {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.c-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.76rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-weight: 300;
}

.c-list,
.bullet-list,
.pill-list,
.metric-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.c-list {
    margin-bottom: 1.8rem;
}

.c-list-item,
.bullet-list li,
.pill-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.71rem;
    color: rgba(255, 255, 255, 0.75);
    list-style: none;
}

.c-list-item::before,
.bullet-list li::before {
    content: "-";
    color: var(--gold);
    flex-shrink: 0;
}

.bullet-list li,
.pill-list li {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 0.95rem 1rem;
}

.c-footer,
.course-settings-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.3rem;
}

.c-price,
.course-price strong {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gold);
}

.course-price {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--gold);
    line-height: 1.4;
}

.c-price sub {
    font-size: 0.7rem;
    font-family: var(--sans);
    color: rgba(255, 255, 255, 0.4);
}

.c-link {
    font-size: 0.63rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s;
}

.course-card:hover .c-link {
    color: var(--gold);
}

.creds-grid,
.split-shell,
.dashboard-modal-grid,
.course-settings-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cred-items-grid,
.section-grid,
.feature-grid,
.card-grid,
.course-meta-grid,
.quiz-option-grid,
.quiz-builder-grid,
.dashboard-action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.feature-grid,
.section-grid,
.card-grid,
.dashboard-action-grid {
    gap: 1rem;
    background: transparent;
}

.section-grid {
    grid-template-columns: repeat(3, 1fr);
}

.feature-grid {
    grid-template-columns: repeat(3, 1fr);
}

.card-grid {
    grid-template-columns: repeat(2, 1fr);
}

.cred-item-card {
    background: var(--dark);
    padding: 1.6rem;
    border-left: 2px solid transparent;
    transition: border-color 0.3s;
}

.cred-item-card:hover {
    border-left-color: var(--gold);
}

.cred-icon {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.cred-item-title,
.course-meta-label,
.dashboard-table th,
.field-label,
label > span {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.cred-item-desc,
.dashboard-stat-line,
.course-meta-value {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    font-weight: 300;
}

.reg-box,
.pdf-shell,
.site-modal-dialog,
.course-meta-card,
.dashboard-filter-shell {
    background: var(--dark2);
    border: 1px solid rgba(201, 169, 110, 0.2);
    padding: 2.5rem;
    position: relative;
}

.reg-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: rgba(201, 169, 110, 0.3);
    border-style: solid;
}

.rc-tl {
    top: 10px;
    left: 10px;
    border-width: 1px 0 0 1px;
}

.rc-tr {
    top: 10px;
    right: 10px;
    border-width: 1px 1px 0 0;
}

.rc-bl {
    bottom: 10px;
    left: 10px;
    border-width: 0 0 1px 1px;
}

.rc-br {
    bottom: 10px;
    right: 10px;
    border-width: 0 1px 1px 0;
}

.reg-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.8rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.reg-logo-badge {
    width: 42px;
    height: 42px;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--black);
    flex-shrink: 0;
}

.reg-head-text {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text);
}

.reg-head-sub {
    font-size: 0.63rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

.reg-rows {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.reg-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.73rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.reg-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.reg-key {
    color: rgba(255, 255, 255, 0.4);
}

.reg-val {
    color: var(--text);
    font-weight: 500;
}

.reg-val.green {
    color: #7bc67e;
}

.reg-val.orange {
    color: var(--gold2);
}

.reg-note {
    margin-top: 1.5rem;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
    letter-spacing: 0.08em;
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin-top: 3rem;
}

.testi-card,
.review-card {
    background: var(--dark);
    padding: 2rem;
    transition: background 0.3s;
}

.testi-card:hover,
.review-card:hover {
    background: var(--dark2);
}

.testi-stars {
    color: var(--gold);
    font-size: 0.75rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testi-q {
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.testi-av {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold3), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 0.85rem;
    color: var(--black);
    font-weight: 600;
    flex-shrink: 0;
}

.testi-name {
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text);
}

.testi-loc,
.quote-location {
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.45);
}

.review-stage {
    position: relative;
}

.review-slider {
    margin-top: 3rem;
}

.review-slide:not(.is-active) {
    display: none;
}

.review-controls {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.review-control {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 999px;
    border: 1px solid rgba(201, 169, 110, 0.25);
    color: var(--gold);
    background: transparent;
}

.cta-section {
    padding: 7rem 2rem;
    text-align: center;
    background: var(--dark2);
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(201, 169, 110, 0.07) 0%, transparent 70%);
}

.cta-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--gold));
    margin: 0 auto 2.5rem;
}

.cta-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    position: relative;
    z-index: 1;
}

footer {
    background: var(--black);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 300;
    color: var(--gold);
    letter-spacing: 0.1em;
}

.footer-logo span {
    color: var(--text);
    font-style: italic;
}

.footer-copy {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.04em;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

.site-main > *,
footer {
    position: relative;
    z-index: 1;
}

header {
    position: relative;
    z-index: 250;
}

.mobile-menu {
    z-index: 350;
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible,
.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-stage,
.auth-shell {
    padding-top: calc(var(--nav-offset) + 2rem);
    padding-bottom: 2rem;
}

.hero-stage {
    min-height: auto;
}

.hero-grid,
.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 1rem;
    align-items: stretch;
}

.hero-grid-home {
    grid-template-columns: 1fr;
}

.hero-copy,
.auth-card,
.auth-side,
.panel,
.hero-card,
.feature-card,
.review-card {
    border: 1px solid rgba(201, 169, 110, 0.12);
}

.hero-copy,
.auth-side {
    background: var(--dark2);
    padding: 2rem;
}

.hero-card {
    background: var(--dark2);
}

.auth-side {
    min-height: 100%;
}

.auth-title {
    margin-bottom: 1rem;
}

.input,
select.input,
textarea.input {
    appearance: none;
    background: rgba(12, 12, 12, 0.82) !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    color: var(--text) !important;
    padding: 0.95rem 1rem;
    width: 100%;
}

.input::placeholder,
textarea.input::placeholder {
    color: rgba(255, 255, 255, 0.46);
}

.input:focus,
select.input:focus,
textarea.input:focus {
    border-color: rgba(201, 169, 110, 0.62);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.18);
    outline: none;
}

.field-label,
label > span {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard-filter-shell {
    margin-bottom: 0;
}

.dashboard-filter-bar,
.dashboard-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.dashboard-filter-btn {
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    gap: 0.75rem;
    justify-content: space-between;
    min-width: 0;
    padding: 0.8rem 1rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dashboard-filter-btn:hover {
    background: rgba(201, 169, 110, 0.16);
    border-color: rgba(201, 169, 110, 0.32);
    transform: translateY(-1px);
}

.dashboard-filter-btn.is-active {
    background: rgba(201, 169, 110, 0.2);
    border-color: rgba(201, 169, 110, 0.6);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.dashboard-filter-count {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: var(--text);
    display: inline-flex;
    font-size: 0.82rem;
    justify-content: center;
    line-height: 1;
    min-width: 1.9rem;
    padding: 0.3rem 0.55rem;
}

.dashboard-tab-panel[hidden],
.site-modal[hidden] {
    display: none !important;
}

.table-wrap {
    overflow-x: auto;
}

.dashboard-table {
    border-collapse: collapse;
    min-width: 100%;
}

.dashboard-table th,
.dashboard-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.95rem 0.85rem;
    text-align: left;
    vertical-align: top;
    color: rgba(255, 255, 255, 0.78);
}

.dashboard-table th {
    color: rgba(255, 255, 255, 0.92);
}

.dashboard-table code,
.pdf-toolbar-status,
.quiz-admin-option span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.38rem 0.75rem;
}

.badge-approved {
    background: rgba(31, 199, 139, 0.16);
    color: #b6ffdf;
}

.badge-pending {
    background: rgba(243, 186, 64, 0.16);
    color: #ffeab0;
}

.badge-rejected {
    background: rgba(246, 110, 110, 0.14);
    color: #ffd1d1;
}

.dashboard-search-field {
    flex: 1 1 20rem;
    min-width: min(100%, 22rem);
}

body.modal-open {
    overflow: hidden;
}

.dashboard-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.site-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    overscroll-behavior: contain;
    overflow-y: auto;
    padding:
        max(1rem, env(safe-area-inset-top))
        max(1rem, env(safe-area-inset-right))
        max(1rem, env(safe-area-inset-bottom))
        max(1rem, env(safe-area-inset-left));
    position: fixed;
    z-index: 60;
}

.site-modal-course-settings {
    align-items: flex-start;
    padding-top: calc(var(--nav-offset) + 1rem);
}

.site-modal-backdrop {
    background: rgba(5, 7, 12, 0.76);
    border: 0;
    inset: 0;
    position: absolute;
    width: 100%;
}

.site-modal-dialog {
    display: grid;
    gap: 1.25rem;
    margin: auto;
    max-height: min(calc(100dvh - 2rem), calc(100vh - 2rem));
    max-width: 980px;
    overscroll-behavior: contain;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    width: min(100%, 980px);
    z-index: 1;
}

.site-modal-dialog.course-settings-modal {
    max-height: min(calc(100dvh - var(--nav-offset) - 2rem), calc(100vh - var(--nav-offset) - 2rem));
    max-width: 1180px;
    width: min(100%, 1180px);
}

.site-modal-head {
    align-items: start;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.site-modal-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    font-size: 1.5rem;
    height: 3rem;
    justify-content: center;
    line-height: 1;
    width: 3rem;
}

.dashboard-modal-grid,
.course-settings-shell {
    align-items: start;
}

.dashboard-modal-grid {
    gap: 1.2rem;
    grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1.15fr);
}

.course-settings-shell {
    gap: 1.25rem;
    grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.28fr);
}

.dashboard-modal-grid > *,
.site-modal-head > *,
.site-modal-dialog > *,
.site-modal-dialog form,
.site-modal-dialog label,
.site-modal-dialog .section-grid,
.site-modal-dialog .feature-card,
.site-modal-dialog .quiz-admin-card,
.site-modal-dialog .quiz-admin-option,
.course-settings-column {
    min-width: 0;
}

.course-settings-column {
    align-content: start;
    display: grid;
    gap: 1rem;
}

.course-settings-card,
.course-settings-form,
.quiz-admin-list,
.quiz-admin-card {
    display: grid;
    gap: 1rem;
}

.course-settings-header,
.quiz-card-header {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.course-settings-eyebrow {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin: 0 0 0.3rem;
    text-transform: uppercase;
}

.course-settings-pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    gap: 0.35rem;
    line-height: 1.2;
    padding: 0.58rem 0.9rem;
}

.course-meta-grid {
    background: transparent;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.course-meta-card {
    border-radius: 0.75rem;
    display: grid;
    gap: 0.45rem;
    min-width: 0;
    padding: 1rem;
}

.course-meta-card-wide,
.course-field-full {
    grid-column: 1 / -1;
}

.course-meta-value,
#page-label {
    color: var(--text);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.course-form-grid,
.quiz-builder-grid {
    background: transparent;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.course-settings-actions {
    flex-wrap: wrap;
}

.course-settings-actions > * {
    flex: 1 1 12rem;
}

.quiz-card-action {
    flex: 0 0 auto;
    min-width: min(100%, 11rem);
}

.quiz-admin-option {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    display: flex;
    gap: 0.65rem;
    padding: 0.85rem 0.95rem;
}

.course-draft-panel {
    background: rgba(8, 8, 8, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pdf-shell {
    max-width: 100%;
    min-height: 640px;
    overflow: hidden;
}

.pdf-toolbar,
.pdf-toolbar-group {
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
}

.pdf-toolbar {
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(201, 169, 110, 0.14);
    background: rgba(0, 0, 0, 0.32);
}

.pdf-canvas-wrap {
    -webkit-overflow-scrolling: touch;
    display: flex;
    justify-content: center;
    max-width: 100%;
    min-height: 540px;
    overflow: auto;
    padding: 1rem;
    position: relative;
}

#pdf-canvas {
    background: #ffffff;
    border-radius: 0.6rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    max-width: 100%;
}

.pdf-fallback-frame {
    background: #ffffff;
    border: 0;
    border-radius: 0.6rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    display: block;
    min-height: 76vh;
    width: 100%;
}

.watermark {
    color: rgba(255, 255, 255, 0.09);
    font-size: 1.1rem;
    font-weight: 800;
    left: 1.2rem;
    pointer-events: none;
    position: absolute;
    top: 1rem;
    user-select: none;
    z-index: 2;
}

.quiz-option {
    align-items: flex-start;
    background: rgba(12, 12, 12, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    color: var(--text);
    cursor: pointer;
    display: flex;
    gap: 0.8rem;
    margin-top: 0.6rem;
    padding: 0.85rem 0.9rem;
}

.quiz-option span {
    color: var(--text);
    display: block;
    line-height: 1.6;
}

.quiz-option input[type="radio"] {
    appearance: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    box-shadow: inset 0 0 0 0 transparent;
    flex: 0 0 auto;
    height: 1.1rem;
    margin: 0.2rem 0 0;
    position: relative;
    width: 1.1rem;
}

.quiz-option input[type="radio"]:checked {
    background: rgba(201, 169, 110, 0.22);
    border-color: rgba(201, 169, 110, 0.9);
    box-shadow: inset 0 0 0 3px #f3ead2;
}

.quiz-option.selected {
    background: rgba(201, 169, 110, 0.18);
    border-color: rgba(201, 169, 110, 0.52);
}

.quiz-option.is-correct {
    background: rgba(31, 199, 139, 0.14);
    border-color: rgba(31, 199, 139, 0.45);
}

.quiz-option.is-incorrect {
    background: rgba(246, 110, 110, 0.12);
    border-color: rgba(246, 110, 110, 0.4);
}

.quiz-feedback {
    border-radius: 0;
    font-weight: 700;
    line-height: 1.6;
    margin-top: 1rem;
    padding: 0.9rem 1rem;
}

.quiz-feedback.is-correct {
    background: rgba(31, 199, 139, 0.14);
    border: 1px solid rgba(31, 199, 139, 0.35);
    color: #c9ffe8;
}

.quiz-feedback.is-incorrect {
    background: rgba(246, 110, 110, 0.12);
    border: 1px solid rgba(246, 110, 110, 0.3);
    color: #ffd7d7;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

.text-white { color: var(--text); }
.font-body { font-family: var(--sans); }
.text-violet-200 { color: var(--gold2); }
.font-bold,
.font-semibold,
.font-extrabold { font-weight: 600; }
.min-h-screen { min-height: 100vh; }
.text-sm { font-size: 0.88rem; line-height: 1.45; }
.flex { display: flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}
.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.border-b {
    border-bottom-width: 1px;
    border-bottom-style: solid;
}
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.bg-black\/30 { background-color: rgba(0, 0, 0, 0.3); }
.ms-2 { margin-inline-start: 0.5rem; }

@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:justify-between { justify-content: space-between; }
}

@media (max-width: 1024px) {
    :root {
        --nav-offset: 5.2rem;
    }

    #navbar {
        padding: 1.2rem 2rem;
    }

    .hero-content,
    .site-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .section,
    .section-shell {
        padding: 4rem 2rem;
    }

    .courses-grid,
    .course-grid,
    .feature-grid,
    .section-grid {
        grid-template-columns: 1fr 1fr;
    }

    .creds-grid,
    .split-shell,
    .hero-grid,
    .auth-shell,
    .dashboard-modal-grid,
    .course-settings-shell {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .testi-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    #navbar {
        padding: 1rem 1.2rem;
    }

    .nav-right {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-content,
    .site-container {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

    .hero-badge {
        font-size: 0.56rem;
        padding: 0.4rem 0.7rem;
        letter-spacing: 0.1em;
    }

    .hero h1,
    .hero-title,
    .auth-title,
    .section-title,
    .s-title {
        font-size: clamp(2.2rem, 8vw, 3.2rem);
    }

    .hero-sub,
    .hero-text,
    .section-text,
    .muted-text,
    .s-sub {
        font-size: 0.82rem;
        max-width: 100%;
    }

    .trust-row {
        gap: 0.5rem;
    }

    .trust-pill {
        font-size: 0.58rem;
        padding: 0.28rem 0.65rem;
    }

    .hero-btns,
    .hero-actions,
    .cluster-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .btn-gold,
    .btn-main {
        width: 100%;
        text-align: center;
    }

    .hero-scroll {
        display: none;
    }

    .stats-inner {
        flex-wrap: wrap;
    }

    .stat-item {
        min-width: 50%;
        border-right: none;
        border-bottom: 1px solid rgba(201, 169, 110, 0.1);
    }

    .cred-strip-label {
        display: none;
    }

    .section,
    .section-shell {
        padding: 3.5rem 1.2rem;
    }

    .courses-grid,
    .course-grid,
    .feature-grid,
    .section-grid,
    .card-grid,
    .cred-items-grid,
    .course-meta-grid,
    .quiz-option-grid,
    .quiz-builder-grid,
    .dashboard-action-grid {
        grid-template-columns: 1fr;
    }

    .course-card,
    .panel,
    .feature-card,
    .hero-card,
    .auth-card,
    .auth-side,
    .reg-box,
    .testi-card,
    .review-card,
    .site-modal-dialog,
    .dashboard-filter-shell {
        padding: 1.8rem 1.2rem;
    }

    .testi-grid {
        grid-template-columns: 1fr;
    }

    .cta-btns {
        flex-direction: column;
        align-items: center;
    }

    .btn-gold,
    .btn-outline,
    .btn-ghost,
    .btn-alt,
    .btn-danger {
        width: 100%;
        max-width: 320px;
    }

    .compact-btn {
        width: auto;
    }

    .dashboard-course-row,
    .dashboard-filter-bar,
    .dashboard-toolbar-actions,
    .site-modal-head,
    .course-settings-header,
    .quiz-card-header {
        flex-direction: column;
    }

    .dashboard-filter-btn {
        width: 100%;
    }

    .course-form-grid {
        grid-template-columns: 1fr;
    }

    .course-settings-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .course-settings-actions > *,
    .quiz-card-action {
        max-width: none;
        width: 100%;
    }

    .cluster-actions > form {
        flex-basis: 100%;
    }

    .site-modal {
        align-items: flex-start;
        padding:
            max(0.75rem, env(safe-area-inset-top))
            max(0.75rem, env(safe-area-inset-right))
            max(0.75rem, env(safe-area-inset-bottom))
            max(0.75rem, env(safe-area-inset-left));
    }

    .site-modal.site-modal-course-settings {
        padding-top: calc(var(--nav-offset) + 0.75rem);
    }

    .site-modal-dialog {
        gap: 1rem;
        max-height: min(calc(100dvh - 1.5rem), calc(100vh - 1.5rem));
        width: min(100%, calc(100vw - 1.5rem));
    }

    .site-modal-dialog.course-settings-modal {
        max-height: min(calc(100dvh - var(--nav-offset) - 1.5rem), calc(100vh - var(--nav-offset) - 1.5rem));
        width: min(100%, calc(100vw - 1.5rem));
    }

    .site-modal-close {
        align-self: flex-end;
    }

    .pdf-toolbar,
    .pdf-toolbar-group {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .pdf-toolbar-status {
        width: 100%;
    }

    .pdf-shell {
        min-height: 460px;
    }

    .pdf-toolbar {
        flex-direction: column;
        gap: 0.75rem;
    }

    .pdf-toolbar-group {
        width: 100%;
    }

    .pdf-canvas-wrap {
        min-height: 360px;
        padding: 0.65rem;
    }

    .pdf-fallback-frame {
        min-height: 62vh;
    }

    footer {
        flex-direction: column;
        text-align: center;
        padding: 1.8rem 1.2rem;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    :root {
        --nav-offset: 4.5rem;
    }

    .hero h1,
    .hero-title,
    .auth-title,
    .section-title,
    .s-title {
        font-size: clamp(1.9rem, 9vw, 2.6rem);
    }

    .stat-item {
        min-width: 100%;
    }

    .dashboard-table,
    .dashboard-table tbody,
    .dashboard-table td,
    .dashboard-table thead,
    .dashboard-table tr {
        display: block;
        width: 100%;
    }

    .dashboard-table thead {
        display: none;
    }

    .dashboard-table tbody {
        display: grid;
        gap: 1rem;
    }

    .dashboard-table tr {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 1.15rem;
        padding: 0.2rem 0;
    }

    .dashboard-table td {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 0.95rem 1rem;
    }

    .dashboard-table td:last-child {
        border-bottom: 0;
    }

    .site-modal {
        padding:
            max(0.5rem, env(safe-area-inset-top))
            max(0.5rem, env(safe-area-inset-right))
            max(0.5rem, env(safe-area-inset-bottom))
            max(0.5rem, env(safe-area-inset-left));
    }

    .site-modal.site-modal-course-settings {
        padding-top: calc(var(--nav-offset) + 0.5rem);
    }

    .site-modal-dialog {
        max-height: min(calc(100dvh - 1rem), calc(100vh - 1rem));
        padding: 1.25rem 0.95rem;
        width: min(100%, calc(100vw - 1rem));
    }

    .site-modal-dialog.course-settings-modal {
        max-height: min(calc(100dvh - var(--nav-offset) - 1rem), calc(100vh - var(--nav-offset) - 1rem));
        width: min(100%, calc(100vw - 1rem));
    }

    .site-modal-close {
        height: 2.7rem;
        width: 2.7rem;
    }

    .pdf-shell {
        border-radius: 1rem;
        min-height: 420px;
    }

    .pdf-toolbar-group {
        gap: 0.45rem;
    }

    .pdf-toolbar-group .compact-btn {
        flex: 1 1 calc(50% - 0.45rem);
        justify-content: center;
        max-width: none;
    }

    .pdf-canvas-wrap {
        min-height: 300px;
        padding: 0.55rem;
    }

    .pdf-fallback-frame {
        min-height: 54vh;
    }

    .dashboard-table td::before {
        color: var(--gold2);
        content: attr(data-label);
        display: block;
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        margin-bottom: 0.45rem;
        text-transform: uppercase;
    }
}

/* Strong shared overrides so the old purple dashboard/app theme never leaks through. */
.panel,
.feature-card,
.review-card,
.hero-card,
.auth-card,
.auth-side,
.quiz-admin-card,
.quiz-admin-option,
.dashboard-course-row,
.dashboard-filter-shell,
.site-modal-dialog,
.course-draft-panel,
.pdf-shell {
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.94), rgba(8, 8, 8, 0.92)) !important;
    border: 1px solid rgba(201, 169, 110, 0.14) !important;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34) !important;
    backdrop-filter: blur(14px);
}

.panel:hover,
.feature-card:hover,
.review-card:hover,
.hero-card:hover,
.auth-card:hover,
.auth-side:hover,
.dashboard-course-row:hover,
.site-modal-dialog:hover {
    background: linear-gradient(180deg, rgba(22, 22, 22, 0.96), rgba(10, 10, 10, 0.94)) !important;
}

.panel::before,
.feature-card::before,
.review-card::before,
.hero-card::before,
.auth-card::before,
.auth-side::before,
.quiz-admin-card::before,
.site-modal-dialog::before,
.dashboard-filter-shell::before {
    background: linear-gradient(to right, transparent, rgba(201, 169, 110, 0.92), transparent) !important;
}

.auth-side {
    background:
        linear-gradient(180deg, rgba(201, 169, 110, 0.12), rgba(8, 8, 8, 0.78)),
        linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent 62%) !important;
}

.input,
select.input,
textarea.input {
    background: rgba(10, 10, 10, 0.88) !important;
    border: 1px solid rgba(201, 169, 110, 0.16) !important;
    color: var(--text) !important;
    border-radius: 0.35rem;
}

.input::placeholder,
textarea.input::placeholder {
    color: rgba(200, 192, 176, 0.58) !important;
}

.input:focus,
select.input:focus,
textarea.input:focus {
    border-color: rgba(201, 169, 110, 0.62) !important;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.18) !important;
    outline: none;
}

input.input:-webkit-autofill,
input.input:-webkit-autofill:hover,
input.input:-webkit-autofill:focus,
select.input:-webkit-autofill,
select.input:-webkit-autofill:hover,
select.input:-webkit-autofill:focus,
textarea.input:-webkit-autofill,
textarea.input:-webkit-autofill:hover,
textarea.input:-webkit-autofill:focus {
    -webkit-box-shadow: inset 0 0 0 1000px rgba(10, 10, 10, 0.94) !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 1px solid rgba(201, 169, 110, 0.16) !important;
    caret-color: #ffffff;
}

.field-label,
label > span {
    color: rgba(255, 255, 255, 0.92) !important;
}

.brand-logo-tile {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
        linear-gradient(180deg, rgba(201, 169, 110, 0.92), rgba(139, 105, 20, 0.92)) !important;
    box-shadow: 0 18px 38px rgba(64, 46, 10, 0.34) !important;
}

.bullet-list li::before {
    color: var(--gold2) !important;
}

.dashboard-filter-btn {
    color: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(201, 169, 110, 0.16) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

.dashboard-filter-btn:hover {
    background: rgba(201, 169, 110, 0.14) !important;
    border-color: rgba(201, 169, 110, 0.3) !important;
    box-shadow: 0 16px 30px rgba(32, 24, 8, 0.16);
}

.dashboard-filter-btn.is-active {
    background: linear-gradient(180deg, rgba(201, 169, 110, 0.2), rgba(139, 105, 20, 0.14)) !important;
    border-color: rgba(201, 169, 110, 0.56) !important;
    color: #ffffff !important;
    box-shadow: 0 18px 34px rgba(40, 29, 7, 0.22) !important;
}

.dashboard-filter-count {
    background: rgba(201, 169, 110, 0.16) !important;
    color: #ffffff !important;
}

.dashboard-course-row {
    align-items: stretch;
    gap: 1.25rem;
}

.dashboard-table th,
.dashboard-table td::before {
    color: var(--gold2) !important;
}

.dashboard-table td {
    color: rgba(255, 255, 255, 0.8) !important;
}

.course-settings-eyebrow {
    color: var(--gold2) !important;
}

.course-settings-pill {
    background: rgba(201, 169, 110, 0.12) !important;
    border: 1px solid rgba(201, 169, 110, 0.24) !important;
    color: #f4ead4 !important;
}

.course-meta-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)) !important;
    border-color: rgba(201, 169, 110, 0.1) !important;
}

.site-modal-backdrop {
    background: rgba(4, 4, 4, 0.82) !important;
}

.site-modal-close {
    border-color: rgba(201, 169, 110, 0.16) !important;
}

.pdf-shell {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.96), rgba(5, 5, 5, 0.94)) !important;
}

.pdf-shell.is-guarded .pdf-canvas-wrap::after,
.pdf-shell.is-keyguarded .pdf-canvas-wrap::before {
    color: #f3ead2 !important;
}

.quiz-option {
    background: rgba(10, 10, 10, 0.88) !important;
    border: 1px solid rgba(201, 169, 110, 0.14) !important;
    color: #ffffff !important;
    border-radius: 0.55rem;
}

.quiz-option span,
.quiz-option strong {
    color: #ffffff !important;
}

.quiz-option input[type="radio"] {
    border-color: rgba(201, 169, 110, 0.34) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

/* Full-page course settings modal */
.site-modal {
    z-index: 420;
}

.site-modal.site-modal-course-settings {
    align-items: stretch;
    padding: 0;
    padding-top: calc(var(--nav-offset) + 1rem);
}

.site-modal.site-modal-course-settings .site-modal-backdrop {
    background: rgba(4, 4, 4, 0.92) !important;
}

.site-modal.site-modal-course-settings .site-modal-dialog.course-settings-modal {
    align-content: start;
    border-radius: 0;
    gap: clamp(1rem, 1.8vw, 1.5rem);
    height: calc(100dvh - var(--nav-offset) - 1rem);
    margin: 0;
    max-height: calc(100dvh - var(--nav-offset) - 1rem);
    max-width: none;
    min-height: calc(100dvh - var(--nav-offset) - 1rem);
    padding:
        max(1rem, env(safe-area-inset-top))
        max(1.1rem, env(safe-area-inset-right))
        max(1rem, env(safe-area-inset-bottom))
        max(1.1rem, env(safe-area-inset-left));
    width: 100vw;
}

.site-modal.site-modal-course-settings .site-modal-head {
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.98), rgba(10, 10, 10, 0.94));
    border-bottom: 1px solid rgba(201, 169, 110, 0.14);
    margin-bottom: 0.25rem;
    padding-bottom: 1rem;
    position: sticky;
    top: 0;
    z-index: 4;
}

.site-modal.site-modal-course-settings .course-settings-shell,
.site-modal.site-modal-course-settings .course-settings-column {
    align-items: start;
    min-height: 0;
}

@media (max-width: 768px) {
    .site-modal.site-modal-course-settings {
        padding-top: calc(var(--nav-offset) + 0.85rem);
    }

    .site-modal.site-modal-course-settings .site-modal-dialog.course-settings-modal {
        gap: 1rem;
        height: calc(100dvh - var(--nav-offset) - 0.85rem);
        max-height: calc(100dvh - var(--nav-offset) - 0.85rem);
        min-height: calc(100dvh - var(--nav-offset) - 0.85rem);
        padding:
            max(0.85rem, env(safe-area-inset-top))
            max(0.85rem, env(safe-area-inset-right))
            max(0.9rem, env(safe-area-inset-bottom))
            max(0.85rem, env(safe-area-inset-left));
    }

    .site-modal.site-modal-course-settings .site-modal-head {
        padding-bottom: 0.85rem;
    }
}

@media (max-width: 560px) {
    .site-modal.site-modal-course-settings {
        padding-top: calc(var(--nav-offset) + 0.65rem);
    }

    .site-modal.site-modal-course-settings .site-modal-dialog.course-settings-modal {
        height: calc(100dvh - var(--nav-offset) - 0.65rem);
        max-height: calc(100dvh - var(--nav-offset) - 0.65rem);
        min-height: calc(100dvh - var(--nav-offset) - 0.65rem);
        padding:
            max(0.75rem, env(safe-area-inset-top))
            max(0.7rem, env(safe-area-inset-right))
            max(0.8rem, env(safe-area-inset-bottom))
            max(0.7rem, env(safe-area-inset-left));
    }

    .site-modal.site-modal-course-settings .site-modal-head {
        gap: 0.75rem;
    }
}

.quiz-option input[type="radio"]:checked {
    background: rgba(201, 169, 110, 0.2) !important;
    border-color: rgba(201, 169, 110, 0.88) !important;
    box-shadow: inset 0 0 0 3px #f2e6c6 !important;
}

.quiz-option.selected {
    background: rgba(201, 169, 110, 0.16) !important;
    border-color: rgba(201, 169, 110, 0.44) !important;
}

.footer-social:hover {
    background: rgba(201, 169, 110, 0.16) !important;
    border-color: rgba(201, 169, 110, 0.3) !important;
}

@media (prefers-reduced-motion: reduce) {
    .site-backdrop-video {
        display: none;
    }

    .site-backdrop-grid,
    .site-backdrop-video-glow {
        animation: none !important;
    }
}
