:root {
    --black: #020305;
    --black-2: #06080d;
    --navy: #080f1c;
    --navy-2: #0c1729;
    --panel: rgba(9, 13, 22, 0.92);
    --panel-2: rgba(12, 20, 35, 0.94);
    --steel: #111827;
    --gold: #d7ae5f;
    --gold-2: #f3d690;
    --gold-3: #9a7131;
    --white: #f8fbff;
    --muted: #a9b2c4;
    --muted-2: #d5dbea;
    --line: rgba(255, 255, 255, 0.09);
    --line-2: rgba(215, 174, 95, 0.28);
    --danger: #ff6b7a;
    --success: #61d596;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
    --shadow-2: 0 18px 44px rgba(0, 0, 0, 0.38);
    --r-xl: 28px;
    --r-lg: 20px;
    --r-md: 14px;
    --nav-height: 74px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--white);
    font-family: "Inter", "Segoe UI", sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        radial-gradient(circle at 50% -20%, rgba(215, 174, 95, 0.12), transparent 34%),
        linear-gradient(180deg, #020305 0%, #070b13 44%, #020305 100%);
    background-size: 84px 84px, 84px 84px, auto, auto;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(110deg, rgba(215, 174, 95, 0.08), transparent 22%, transparent 78%, rgba(24, 52, 96, 0.18)),
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.035), transparent 28%);
}

a {
    color: var(--gold-2);
    text-decoration: none;
}

a:hover {
    color: #fff4d7;
}

p,
li,
label,
small,
.small {
    color: var(--muted-2);
}

label {
    font-weight: 800;
    font-size: 0.82rem;
}

code {
    color: var(--gold-2);
    background: rgba(215, 174, 95, 0.1);
    border: 1px solid var(--line-2);
    border-radius: 8px;
    padding: 2px 8px;
}

.text-muted,
.text-secondary {
    color: #95a0b5 !important;
}

.text-gold {
    color: var(--gold-2);
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
    padding: 28px 0 74px;
}

.page-transition {
    animation: pageIn 0.38s ease both;
}

.site-nav {
    min-height: var(--nav-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 3, 5, 0.84);
    backdrop-filter: blur(18px);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0a0702;
    border-radius: 12px;
    background: linear-gradient(145deg, #ffe7ac, #c79236);
    border: 1px solid rgba(255, 236, 191, 0.6);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 900;
    box-shadow: 0 12px 32px rgba(215, 174, 95, 0.18);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text strong,
.section-title,
.hero-title,
.detail-title,
.final-cta h2 {
    font-family: "Space Grotesk", "Inter", sans-serif;
}

.brand-text strong {
    color: #fff;
    font-size: 1.02rem;
    letter-spacing: -0.02em;
}

.brand-text small {
    max-width: 210px;
    color: #8f99ad;
    font-size: 0.7rem;
}

.navbar .nav-link {
    color: #d7deec !important;
    font-weight: 800;
    font-size: 0.92rem;
    border-radius: 999px;
    padding: 8px 13px !important;
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.navbar .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-1px);
}

.nav-cta {
    color: #0b0803 !important;
    background: linear-gradient(145deg, #f5d992, #c99638);
    border: 1px solid rgba(255, 236, 191, 0.55);
}

.clean-toggler {
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 12px;
}

.site-alert {
    margin: 0 auto 16px;
    color: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(10, 17, 29, 0.96);
}

.container-narrow {
    max-width: 980px;
}

.section-title {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(2rem, 4.8vw, 3.45rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.section-subtitle {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--gold-2);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.72rem;
    font-weight: 950;
}

.hero-stage {
    position: relative;
    min-height: calc(100vh - 118px);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: clamp(18px, 3vw, 34px);
    align-items: center;
    padding: clamp(22px, 5vw, 58px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.065), transparent 25%),
        linear-gradient(180deg, rgba(12, 19, 32, 0.96), rgba(2, 3, 5, 0.94));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-stage::before,
.page-hero::before,
.dashboard-hero::before,
.course-detail-shell::before,
.checkout-shell::before,
.auth-shell::before,
.final-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, rgba(215, 174, 95, 0.13), transparent),
        radial-gradient(circle at 78% 18%, rgba(215, 174, 95, 0.12), transparent 26%);
    opacity: 0.75;
}

.hero-stage::after,
.page-hero::after,
.dashboard-hero::after,
.section-panel::after,
.final-cta::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(215, 174, 95, 0.72), transparent);
}

.hero-copy-block,
.hero-command-card,
.page-hero > *,
.dashboard-hero > *,
.final-cta > * {
    position: relative;
    z-index: 1;
}

.hero-title {
    max-width: 940px;
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(3rem, 8.5vw, 7rem);
    font-weight: 950;
    line-height: 0.84;
    letter-spacing: -0.075em;
    text-transform: uppercase;
}

.hero-copy {
    max-width: 760px;
    color: #c5cbda;
    font-size: clamp(1.02rem, 2vw, 1.22rem);
}

.button-row,
.card-actions,
.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.button-row {
    margin-top: 28px;
}

.btn-gold,
.btn-glass {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 900;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn-gold {
    color: #090602;
    background: linear-gradient(145deg, #ffe6a7 0%, #d0a046 54%, #a87523 100%);
    border-color: rgba(255, 236, 191, 0.58);
    box-shadow: 0 16px 38px rgba(215, 174, 95, 0.25);
}

.btn-gold:hover {
    color: #050301;
    transform: translateY(-2px);
    box-shadow: 0 22px 54px rgba(215, 174, 95, 0.34);
}

.btn-glass {
    color: #eef3ff;
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.13);
}

.btn-glass:hover {
    color: #fff;
    transform: translateY(-2px);
    border-color: rgba(215, 174, 95, 0.44);
    background: rgba(215, 174, 95, 0.10);
}

.btn-danger {
    border-radius: 11px;
    font-weight: 900;
}

.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cbd2df;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    padding: 8px 12px;
    font-size: 0.84rem;
    font-weight: 800;
}

.hero-trust-row i {
    color: var(--gold-2);
}

.hero-command-card {
    display: grid;
    gap: 14px;
}

.elite-panel,
.glass-card,
.auth-side-card,
.signal-row > div,
.compare-card,
.process-grid article {
    background: linear-gradient(180deg, rgba(15, 23, 38, 0.95), rgba(5, 8, 14, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.095);
    box-shadow: var(--shadow-2);
    backdrop-filter: blur(14px);
}

.elite-panel {
    border-radius: 24px;
    padding: 20px;
}

.elite-panel-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}

.elite-panel-top strong {
    color: var(--gold-2);
}

.elite-score {
    margin: 22px 0;
    padding: 22px;
    border: 1px solid var(--line-2);
    border-radius: 18px;
    background: rgba(215, 174, 95, 0.075);
}

.elite-score span {
    display: block;
    color: #ffe2a5;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 950;
    line-height: 0.9;
}

.elite-score small {
    color: #d8ddea;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 900;
}

.terminal-line {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-line strong {
    color: #fff;
}

.terminal-line span {
    color: var(--muted);
    text-align: right;
}

.signal-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.signal-row > div {
    border-radius: 18px;
    padding: 16px;
}

.signal-value {
    display: block;
    color: var(--gold-2);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.7rem;
    font-weight: 950;
    line-height: 1;
}

.main-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.main-grid > * {
    grid-column: span 12;
}

.glass-card {
    border-radius: var(--r-lg);
}

.metric-card,
.feature-card,
.content-card,
.admin-section,
.owned-course-card,
.review-card {
    padding: 22px;
}

.metric-card {
    position: relative;
    overflow: hidden;
}

.metric-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(215, 174, 95, 0.10), transparent 38%);
}

.metric-label {
    position: relative;
    z-index: 1;
    color: #8f99ae;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 950;
}

.metric-value {
    position: relative;
    z-index: 1;
    color: #ffe0a1;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.65rem, 4vw, 2.4rem);
    font-weight: 950;
    line-height: 1;
    margin-top: 8px;
}

.small-value {
    font-size: 1rem;
    word-break: break-word;
}

.metric-card p {
    position: relative;
    z-index: 1;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.section-panel {
    position: relative;
    margin-top: 48px;
    padding: clamp(20px, 3vw, 34px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    background: rgba(2, 3, 5, 0.45);
    overflow: hidden;
}

.section-dark {
    background: linear-gradient(180deg, rgba(10, 15, 25, 0.88), rgba(2, 3, 5, 0.68));
}

.split-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.feature-card,
.course-card,
.owned-course-card,
.review-card,
.admin-mini-card {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.premium-hover:hover,
.feature-card:hover,
.owned-course-card:hover,
.review-card:hover {
    transform: translateY(-6px);
    border-color: rgba(215, 174, 95, 0.38);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
}

.feature-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #080501;
    border-radius: 13px;
    background: linear-gradient(145deg, #ffe6a7, #bf8428);
    margin-bottom: 16px;
}

.feature-card h3,
.compare-card h3,
.process-grid h3,
.feature-card h5 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 950;
}

.feature-card p,
.compare-card p,
.process-grid p {
    color: var(--muted);
    margin-bottom: 0;
}

.category-strip,
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.category-pill,
.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    color: #dfe5f0;
    background: rgba(255, 255, 255, 0.045);
    padding: 8px 14px;
    font-size: 0.84rem;
    font-weight: 900;
}

.filter-chip {
    cursor: pointer;
}

.filter-chip.active,
.category-pill:hover {
    color: #090602;
    background: linear-gradient(145deg, #ffe3a3, #c89539);
    border-color: rgba(255, 236, 191, 0.56);
}

.compare-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 16px;
}

.compare-card {
    border-radius: 22px;
    padding: clamp(20px, 3vw, 28px);
}

.muted-path {
    opacity: 0.76;
}

.gold-path {
    border-color: rgba(215, 174, 95, 0.38);
    background:
        linear-gradient(145deg, rgba(215, 174, 95, 0.14), rgba(9, 13, 22, 0.96)),
        linear-gradient(180deg, rgba(15, 23, 38, 0.95), rgba(5, 8, 14, 0.94));
}

.gold-path .btn-gold {
    margin-top: 18px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.process-grid article {
    border-radius: 20px;
    padding: 20px;
}

.process-grid span {
    display: inline-flex;
    color: var(--gold-2);
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.2rem;
    font-weight: 950;
    line-height: 1;
    margin-bottom: 12px;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.portal-card {
    position: relative;
    min-height: 310px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    padding: clamp(20px, 3vw, 28px);
    overflow: hidden;
}

.portal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 100% 0%, rgba(215, 174, 95, 0.17), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 42%);
}

.portal-card > * {
    position: relative;
    z-index: 1;
}

.portal-card h3 {
    margin: 16px 0 10px;
    color: #fff;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(1.7rem, 4vw, 2.8rem);
    font-weight: 950;
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.portal-card p {
    max-width: 620px;
    color: var(--muted);
}

.portal-index {
    position: absolute;
    right: 18px;
    top: 12px;
    z-index: 0;
    color: rgba(255, 255, 255, 0.05);
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 950;
    line-height: 1;
}

.ad-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ad-card {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 18px;
    color: #fff;
}

.ad-card:hover {
    color: #fff;
}

.ad-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.ad-card:hover img {
    transform: scale(1.04);
    opacity: 0.9;
}

.ad-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 3, 5, 0.1), rgba(2, 3, 5, 0.88));
}

.ad-card-copy,
.ad-placeholder-icon {
    position: relative;
    z-index: 1;
}

.ad-card h3 {
    margin: 10px 0 6px;
    color: #fff;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.ad-card p {
    margin: 0;
    color: #d5dbea;
    font-size: 0.9rem;
}

.ad-card-empty {
    justify-content: space-between;
    flex-direction: column;
    align-items: flex-start;
    border-color: rgba(215, 174, 95, 0.42);
    background:
        radial-gradient(circle at 100% 0%, rgba(215, 174, 95, 0.28), transparent 42%),
        linear-gradient(180deg, rgba(15, 23, 38, 0.95), rgba(5, 8, 14, 0.94));
}

.ad-card-empty h3 {
    font-size: clamp(1.7rem, 5vw, 3rem);
    line-height: 0.92;
}

.ad-placeholder-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #080501;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffe6a7, #bf8428);
}

.page-hero,
.dashboard-hero,
.course-detail-shell,
.checkout-shell,
.auth-shell,
.final-cta {
    position: relative;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.095);
    background: linear-gradient(180deg, rgba(12, 18, 30, 0.94), rgba(4, 6, 10, 0.94));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.page-hero,
.dashboard-hero,
.course-detail-shell,
.checkout-shell,
.auth-shell {
    padding: clamp(20px, 3.4vw, 34px);
}

.page-hero.compact {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 24px;
}

.filter-panel {
    margin-bottom: 22px;
}

.course-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.prebuy-ribbon {
    position: absolute;
    top: 14px;
    right: -38px;
    z-index: 4;
    width: 150px;
    padding: 7px 0;
    color: #080501;
    text-align: center;
    font-size: 0.74rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    background: linear-gradient(145deg, #ffe6a7, #bf8428);
    box-shadow: 0 14px 34px rgba(215, 174, 95, 0.24);
    transform: rotate(38deg);
}

.prebuy-notice,
.prebuy-detail-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid rgba(215, 174, 95, 0.32);
    border-radius: 14px;
    background: rgba(215, 174, 95, 0.08);
}

.prebuy-notice i {
    color: var(--gold-2);
    margin-top: 3px;
}

.prebuy-notice span {
    color: #ead9b6;
    font-size: 0.88rem;
    font-weight: 800;
}

.prebuy-detail-alert {
    background:
        radial-gradient(circle at 100% 0%, rgba(215, 174, 95, 0.18), transparent 38%),
        rgba(215, 174, 95, 0.08);
}

.prebuy-detail-alert h3 {
    margin: 10px 0 6px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 950;
}

.prebuy-detail-alert p {
    margin: 0;
    color: var(--muted-2);
}

.bundle-card {
    border-color: rgba(215, 174, 95, 0.42);
}

.course-media {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(215, 174, 95, 0.12), transparent 40%),
        linear-gradient(180deg, #111827, #05070c);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.course-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-fallback {
    display: none;
    min-height: 220px;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 22px;
    text-align: center;
    color: var(--gold-2);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.45rem;
    font-weight: 950;
}

.course-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.course-category {
    color: var(--gold-2);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 950;
}

.course-title {
    color: #fff;
    margin: 0;
    font-size: 1.18rem;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.course-summary {
    color: var(--muted);
    margin: 0;
    font-size: 0.94rem;
}

.price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.price-main {
    color: #ffe0a1;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.55rem;
    font-weight: 950;
}

.price-old {
    color: #7f8798;
    text-decoration: line-through;
    font-weight: 900;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(215, 174, 95, 0.26);
    color: #ffe1a3;
    background: rgba(215, 174, 95, 0.09);
    padding: 5px 10px;
    font-size: 0.72rem;
    font-weight: 950;
}

.card-actions > * {
    flex: 1 1 130px;
}

.checkout-mini-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.checkout-mini-form button {
    grid-column: 1 / -1;
}

.detail-media {
    min-height: 420px;
    border-radius: 20px;
}

.detail-title {
    color: #fff;
    font-size: clamp(2.3rem, 5.5vw, 4.5rem);
    font-weight: 950;
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.checkout-panel,
.checkout-price-card,
.detail-point,
.empty-state,
.activity-item {
    border: 1px solid rgba(255, 255, 255, 0.095);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    padding: 16px;
}

.detail-list {
    display: grid;
    gap: 12px;
}

.detail-point {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.detail-point i {
    color: var(--gold-2);
    margin-top: 4px;
}

.detail-point p {
    margin: 0;
}

.checkout-shell {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 20px;
    align-items: center;
}

.checkout-price-card {
    display: grid;
    gap: 12px;
    max-width: 520px;
    margin-top: 18px;
}

.checkout-total {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 12px;
    color: #fff;
    font-size: 1.12rem;
}

.auth-side-card {
    height: 100%;
    border-radius: var(--r-lg);
    padding: 26px;
}

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.owned-course-card,
.review-card {
    height: 100%;
}

.empty-state {
    padding: 34px 20px;
    text-align: center;
}

.empty-state i {
    color: var(--gold-2);
    font-size: 2.1rem;
    margin-bottom: 12px;
}

.empty-state h3 {
    color: #fff;
    font-weight: 950;
}

.activity-item {
    padding: 12px;
}

.final-cta {
    margin-top: 48px;
    padding: clamp(24px, 4vw, 42px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.final-cta h2 {
    color: #fff;
    font-size: clamp(2.3rem, 6vw, 4.6rem);
    font-weight: 950;
    line-height: 0.9;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

.final-cta p {
    max-width: 680px;
    color: var(--muted);
}

.form-control,
.form-select,
textarea {
    min-height: 44px;
    color: #f7f9ff !important;
    background: rgba(2, 3, 5, 0.72) !important;
    border: 1px solid rgba(165, 176, 198, 0.22) !important;
    border-radius: 12px !important;
}

.form-control::placeholder,
textarea::placeholder {
    color: #7f899d;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: rgba(215, 174, 95, 0.72) !important;
    box-shadow: 0 0 0 0.18rem rgba(215, 174, 95, 0.17) !important;
}

input[type="file"] {
    color: #f7f9ff !important;
}

input[type="checkbox"] {
    accent-color: var(--gold);
}

.inline-form {
    display: grid;
    gap: 10px;
}

.switch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 8px 0;
}

.table-shell {
    border-radius: 16px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.085);
    background: rgba(2, 3, 5, 0.35);
}

.table-shell table {
    min-width: 760px;
    margin: 0;
}

.table-shell th,
.table-shell td {
    color: #edf2ff;
    border-color: rgba(255, 255, 255, 0.075) !important;
    vertical-align: middle;
}

.table-shell th {
    color: #ffe0a1;
    background: rgba(215, 174, 95, 0.09);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-layout {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.admin-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 18px);
}

.admin-sidebar-card,
.admin-mini-card {
    border: 1px solid rgba(255, 255, 255, 0.095);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, rgba(12, 18, 30, 0.96), rgba(5, 8, 14, 0.96));
    box-shadow: var(--shadow-2);
    padding: 20px;
}

.admin-sidebar-card h1 {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 950;
}

.admin-sidebar-card p {
    color: var(--muted);
}

.admin-nav-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.admin-nav-list a {
    color: #dfe6f3;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.04);
}

.admin-nav-list a:hover {
    color: #fff;
    border-color: rgba(215, 174, 95, 0.4);
    background: rgba(215, 174, 95, 0.10);
}

.admin-content {
    display: grid;
    gap: 22px;
}

.admin-section {
    scroll-margin-top: 96px;
}

.admin-card-list {
    display: grid;
    gap: 12px;
}

.admin-workspace-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.admin-workspace-card {
    padding: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-workspace-card:hover {
    color: #fff;
    transform: translateY(-4px);
    border-color: rgba(215, 174, 95, 0.38);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.admin-workspace-card h3 {
    margin: 12px 0 8px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 950;
}

.admin-workspace-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-scope-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-color: rgba(215, 174, 95, 0.32);
    background:
        radial-gradient(circle at 100% 0%, rgba(215, 174, 95, 0.14), transparent 36%),
        linear-gradient(180deg, rgba(15, 23, 38, 0.95), rgba(5, 8, 14, 0.94));
}

.global-ad-wrap {
    margin-top: 34px;
}

.copy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.copy-manager {
    display: grid;
    gap: 18px;
}

.copy-savebar {
    position: sticky;
    top: calc(var(--nav-height) + 10px);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(215, 174, 95, 0.28);
    border-radius: 14px;
    background: rgba(6, 8, 13, 0.96);
    box-shadow: var(--shadow-2);
}

.copy-savebar strong {
    color: #fff;
}

.copy-group {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.copy-group-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.copy-group-heading h3 {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 950;
}

.copy-group-heading span {
    color: var(--gold-2);
    font-size: 0.82rem;
    font-weight: 900;
}

.copy-field textarea {
    resize: vertical;
}

.site-footer {
    padding: 34px 0 46px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 3, 5, 0.6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 18px;
    align-items: center;
}

.footer-brand .brand-logo {
    width: 38px;
    height: 38px;
}

.foot-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.accordion-item {
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.095);
}

.accordion-button {
    color: #fff !important;
    background: rgba(8, 13, 22, 0.96) !important;
    font-weight: 950;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: #ffe0a1 !important;
    background: rgba(215, 174, 95, 0.10) !important;
}

.accordion-button::after {
    filter: invert(0.9);
}

.accordion-body {
    color: #dce3ef;
    background: rgba(8, 13, 22, 0.86);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.44s ease, transform 0.44s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.is-filtered-out {
    opacity: 0;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 992px) {
    .main-grid .span-3 {
        grid-column: span 3;
    }

    .main-grid .span-4 {
        grid-column: span 4;
    }

    .main-grid .span-6 {
        grid-column: span 6;
    }

    .main-grid .span-8 {
        grid-column: span 8;
    }
}

@media (max-width: 1199px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .admin-nav-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .site-main {
        padding-top: 20px;
    }

    .navbar-collapse {
        padding: 12px 0;
    }

    .navbar .nav-link {
        margin-bottom: 5px;
    }

    .hero-stage,
    .checkout-shell {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: clamp(3rem, 13vw, 5.2rem);
    }

    .dashboard-hero,
    .admin-scope-banner,
    .final-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .compare-grid,
    .process-grid,
    .ad-grid,
    .portal-grid {
        grid-template-columns: 1fr;
    }

    .detail-media {
        min-height: 320px;
    }

    .copy-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    body {
        background-size: 52px 52px, 52px 52px, auto, auto;
    }

    .site-main {
        padding-bottom: 46px;
    }

    .brand-text small {
        max-width: 160px;
    }

    .hero-stage,
    .page-hero,
    .dashboard-hero,
    .course-detail-shell,
    .checkout-shell,
    .auth-shell,
    .final-cta,
    .section-panel {
        border-radius: 20px;
        padding: 18px;
    }

    .hero-title {
        font-size: clamp(2.65rem, 15vw, 4.2rem);
        letter-spacing: -0.07em;
    }

    .section-title,
    .final-cta h2 {
        font-size: clamp(2rem, 10vw, 3.1rem);
    }

    .button-row,
    .card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-gold,
    .btn-glass {
        width: 100%;
    }

    .hero-trust-row {
        flex-direction: column;
    }

    .hero-trust-row span {
        width: 100%;
    }

    .signal-row,
    .checkout-mini-form {
        grid-template-columns: 1fr;
    }

    .course-media,
    .course-fallback {
        min-height: 198px;
    }

    .metric-card,
    .feature-card,
    .content-card,
    .admin-section,
    .owned-course-card,
    .review-card {
        padding: 18px;
    }

    .filter-scroll {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        scrollbar-width: none;
    }

    .filter-scroll::-webkit-scrollbar {
        display: none;
    }

    .filter-scroll .chip {
        flex: 0 0 auto;
    }

    .admin-nav-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .admin-workspace-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .brand-text small {
        display: none;
    }

    .admin-nav-list {
        grid-template-columns: 1fr;
    }

    .table-shell table {
        min-width: 680px;
    }
}

/* ============================================================
   v3 premium enhancements — ambient glow, motion, marquee, auth
   ============================================================ */
.ambient-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
}

.orb-gold {
    width: 42vw;
    max-width: 580px;
    height: 42vw;
    max-height: 580px;
    top: -12vw;
    right: -8vw;
    background: radial-gradient(circle, rgba(215, 174, 95, 0.30), transparent 70%);
    animation: orbFloatA 20s ease-in-out infinite;
}

.orb-blue {
    width: 46vw;
    max-width: 640px;
    height: 46vw;
    max-height: 640px;
    bottom: -18vw;
    left: -10vw;
    background: radial-gradient(circle, rgba(26, 60, 122, 0.36), transparent 70%);
    animation: orbFloatB 26s ease-in-out infinite;
}

@keyframes orbFloatA {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-32px, 30px); }
}

@keyframes orbFloatB {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -26px); }
}

.site-nav.is-scrolled {
    background: rgba(2, 3, 5, 0.93);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

.hero-title {
    text-shadow: 0 0 46px rgba(215, 174, 95, 0.12);
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: "";
    position: absolute;
    top: 0;
    left: -130%;
    width: 60%;
    height: 100%;
    transform: skewX(-20deg);
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    animation: btnShine 4.8s ease-in-out infinite;
}

@keyframes btnShine {
    0%, 58% { left: -130%; }
    100% { left: 170%; }
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: livePulse 1.9s infinite;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(97, 213, 150, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(97, 213, 150, 0); }
    100% { box-shadow: 0 0 0 0 rgba(97, 213, 150, 0); }
}

.marquee {
    margin-top: 18px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: inline-flex;
    gap: 10px;
    white-space: nowrap;
    animation: marqueeScroll 28s linear infinite;
}

.marquee-pill {
    flex: 0 0 auto;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    padding: 8px 14px;
    color: #e9d9b3;
    background: rgba(215, 174, 95, 0.06);
    font-size: 0.82rem;
    font-weight: 800;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.badge-muted {
    color: #aeb6c6 !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.auth-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 16px;
    align-items: stretch;
}

.auth-points {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.auth-points li {
    color: #c7cfde;
    font-weight: 600;
}

.auth-points i {
    color: var(--gold-2);
    margin-right: 8px;
}

summary.copy-group-heading {
    cursor: pointer;
    list-style: none;
}

summary.copy-group-heading::-webkit-details-marker {
    display: none;
}

summary.copy-group-heading::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--gold-2);
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.copy-group[open] summary.copy-group-heading::after {
    transform: rotate(180deg);
}

.copy-group:not([open]) summary.copy-group-heading {
    margin-bottom: 0;
}

.admin-nav-list a.active {
    color: #0b0803;
    background: linear-gradient(145deg, #ffe3a3, #c89539);
    border-color: rgba(255, 236, 191, 0.56);
}

@media (max-width: 767px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .orb {
        opacity: 0.35;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
