
:root {
    color-scheme: dark;
    --bg: #080c19;
    --text: #f8f9ff;
    --muted: #a6aec5;
    --accent: #a78bfa;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, Arial, sans-serif;
}

.hero {
    min-height: 90svh;
    display: flex;
    align-items: center;
    padding: 80px max(6%, 24px);
    background:
      radial-gradient(ellipse at 75% 35%,
      #49218a65, transparent 48%),
      radial-gradient(ellipse at 20% 80%,
      #123b7855, transparent 55%),
      var(--bg);
}

.hero__content { max-width: 850px; }

.brand {
    font-size: 23px;
    font-weight: 850;
    letter-spacing: 2px;
    margin-bottom: 85px;
}

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

.eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

h1 {
    font-size: clamp(42px, 7vw, 88px);
    line-height: 1.07;
    letter-spacing: -0.055em;
    margin: 22px 0;
}

h1 span {
    color: var(--accent);
}

p {
    color: var(--muted);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.7;
    max-width: 610px;
}

.actions {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 35px;
}

.button {
    display: inline-block;
    background: #8b5cf6;
    color: white;
    text-decoration: none;
    padding: 17px 26px;
    border-radius: 12px;
    font-weight: 700;
}

.button:hover { background: #7545df; }

.note { color: var(--muted); font-size: 14px; }

.course { padding: 90px max(6%, 24px); }

.course h2 {
    font-size: clamp(32px, 5vw, 54px);
    letter-spacing: -0.04em;
}

@media (max-width: 600px) {
    .hero { min-height: 80svh; }
    .brand { margin-bottom: 70px; }
    .actions { align-items: flex-start; }
}


.auth-page {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 32px;
    background: #141b30;
    border: 1px solid #303956;
    border-radius: 20px;
}

.auth-card h1 {
    font-size: clamp(28px, 5vw, 38px);
    letter-spacing: -1px;
}

.auth-card h2 {
    font-size: 22px;
}

.auth-card label {
    display: block;
    margin: 16px 0 8px;
    color: #d9def0;
}

.auth-card input {
    width: 100%;
    padding: 14px;
    border: 1px solid #45506d;
    border-radius: 10px;
    background: #0b1022;
    color: #fff;
    font: inherit;
}

.auth-card input:focus {
    outline: 2px solid #a78bfa;
    outline-offset: 2px;
}

.auth-card button {
    width: 100%;
    margin-top: 24px;
    padding: 15px;
    background: #8b5cf6;
    color: white;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.auth-card a { color: #b9a3ff; }

.auth-card .error { color: #ff9b9b; }


.catalog {
    max-width: 1050px;
    margin: 0 auto;
    padding: 32px 20px 100px;
}

.catalog > a {
    color: #b9a3ff;
    text-decoration: none;
}

.catalog-header {
    padding: 65px 0 35px;
}

.catalog-header h1 {
    font-size: clamp(36px, 6vw, 64px);
}

.module-card {
    margin: 20px 0;
    padding: 28px;
    background: #141b30;
    border: 1px solid #303956;
    border-radius: 20px;
}

.module-card h2 {
    font-size: clamp(20px, 3vw, 28px);
    margin: 0 0 20px;
}

.lesson-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 18px 0;
    border-top: 1px solid #303956;
    color: #eef0ff;
    text-decoration: none;
}

.lesson-row:hover {
    color: #b9a3ff;
}

.lesson-status {
    color: #b9a3ff;
    font-size: 13px;
    white-space: nowrap;
}

.video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
}

.video-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 600px) {
    .module-card { padding: 20px; }
    .lesson-row { font-size: 14px; }
}


.admin-form label {
    display: block;
    margin: 18px 0 8px;
    color: #d9def0;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    display: block;
    width: 100%;
    padding: 14px;
    border: 1px solid #45506d;
    border-radius: 10px;
    background: #0b1022;
    color: #fff;
    font: inherit;
}

.admin-form button {
    margin-top: 22px;
    border: none;
    cursor: pointer;
}


.payment-card {
    max-width: 650px;
}

.payment-price {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    color: #c4b5fd;
    margin: 12px 0 24px;
}

.order-number {
    display: inline-block;
    padding: 14px 18px;
    background: #0b1022;
    border: 1px solid #45506d;
    border-radius: 12px;
    color: #ffffff;
    font-size: clamp(16px, 4vw, 23px);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.payment-note {
    margin-top: 28px;
    font-size: 14px;
}

.payment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.payment-actions .button,
.payment-card .button {
    display: inline-block;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    border: 0;
    margin-top: 10px;
}

.button-danger {
    background: #9f3448;
}

.button-danger:hover {
    background: #84283b;
}

.error {
    color: #ff9b9b;
}


/* AI OLAMI — Student Dashboard */

.dashboard-body {
    background: #080d1b;
    color: #f7f8ff;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100svh;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 45px;
    padding: 34px 22px;
    background: #10172a;
    border-right: 1px solid #29334d;
}

.dashboard-logo {
    color: #fff;
    font-size: 24px;
    font-weight: 850;
    letter-spacing: 1px;
    text-decoration: none;
}

.dashboard-logo span {
    color: #a78bfa;
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard-nav a {
    padding: 15px 16px;
    border-radius: 12px;
    color: #b7c0d7;
    text-decoration: none;
    font-size: 14px;
    transition: .2s ease;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    background: #27254c;
    color: #e9e1ff;
}

.dashboard-logout {
    margin-top: auto;
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid #404b67;
    border-radius: 12px;
    color: #e5e9f5;
    cursor: pointer;
}

.dashboard-main {
    min-width: 0;
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
    padding: 45px clamp(20px, 4vw, 60px);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 36px;
}

.dashboard-header h1 {
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -.04em;
    margin: 12px 0;
}

.dashboard-header p {
    margin: 0;
    font-size: 16px;
}

.dashboard-avatar {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #7951df, #3752ad);
    font-size: 24px;
    font-weight: 800;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px;
    background: #141d33;
    border: 1px solid #2b3652;
    border-radius: 18px;
}

.stat-card span {
    color: #b9c3da;
    font-size: 14px;
}

.stat-card strong {
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -.04em;
}

.stat-card small {
    color: #8995b3;
}

.dashboard-course {
    padding: clamp(24px, 4vw, 42px);
    border-radius: 22px;
    border: 1px solid #48416d;
    background:
        radial-gradient(
            ellipse at 95% 0%,
            #583ca155,
            transparent 55%
        ),
        #171c35;
}

.course-topline,
.progress-heading,
.dashboard-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.course-access {
    padding: 8px 12px;
    border-radius: 50px;
    background: #45336d;
    color: #ded1ff;
    font-size: 12px;
}

.dashboard-course h2 {
    margin: 24px 0 12px;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -.04em;
}

.dashboard-course p {
    font-size: 15px;
}

.progress-heading {
    margin-top: 30px;
    font-size: 14px;
    color: #c4cce1;
}

.progress-heading strong {
    color: #e7dbff;
}

.progress-track {
    height: 10px;
    margin-top: 12px;
    background: #394260;
    border-radius: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7952df, #b19aff);
    border-radius: 20px;
    transition: width .3s ease;
}

.progress-caption,
.access-note {
    font-size: 13px !important;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 26px;
}

.dashboard-secondary {
    display: inline-block;
    padding: 15px 20px;
    color: #ded1ff;
    text-decoration: none;
    border: 1px solid #63558c;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
}

.dashboard-section {
    margin-top: 35px;
}

.dashboard-section-title h2 {
    font-size: 24px;
}

.dashboard-section-title a {
    color: #bba6ff;
    text-decoration: none;
    font-size: 14px;
}

.dashboard-lesson-list {
    overflow: hidden;
    border: 1px solid #2b3652;
    border-radius: 18px;
    background: #141d33;
}

.dashboard-lesson {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 19px 22px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #2b3652;
}

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

.dashboard-lesson:hover {
    background: #1e2945;
}

.lesson-symbol {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: #2a3152;
    border-radius: 12px;
    color: #c8b6ff;
}

.lesson-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.lesson-info strong {
    font-size: 14px;
}

.lesson-info small {
    color: #a9b5d0;
}

.lesson-chevron {
    margin-left: auto;
    color: #a8b3cf;
    font-size: 28px;
}

.lesson-completion {
    margin: 24px 0;
}

.lesson-completion button {
    border: 0;
    cursor: pointer;
}

.completion-success {
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid #316b58;
    border-radius: 12px;
    background: #153c32;
    color: #a5f1cf;
}

@media (max-width: 900px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        gap: 18px;
        padding: 20px;
        border-right: 0;
        border-bottom: 1px solid #29334d;
    }

    .dashboard-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .dashboard-nav a {
        flex-shrink: 0;
    }

    .dashboard-logout {
        margin-top: 0;
        max-width: 130px;
    }
}

@media (max-width: 600px) {
    .dashboard-main {
        padding: 28px 16px 60px;
    }

    .dashboard-stats {
        gap: 9px;
    }

    .stat-card {
        padding: 14px 10px;
        border-radius: 12px;
    }

    .stat-card span,
    .stat-card small {
        font-size: 11px;
    }

    .dashboard-avatar {
        width: 44px;
        height: 44px;
    }

    .dashboard-lesson {
        padding: 16px 13px;
        gap: 12px;
    }
}


/* AI OLAMI — Student Profile */

.profile-page {
    width: min(100% - 36px, 1050px);
    margin: 0 auto;
    padding: 50px 0 90px;
}

.profile-back {
    display: inline-block;
    margin-bottom: 42px;
    color: #a5a8c8;
    text-decoration: none;
    font-size: 14px;
}

.profile-back:hover {
    color: #fff;
}

.profile-heading {
    margin-bottom: 36px;
}

.profile-heading h1 {
    margin: 12px 0;
    font-size: clamp(32px, 5vw, 52px);
    letter-spacing: -1.5px;
    color: #fff;
}

.profile-heading p {
    color: #a5a8c8;
    line-height: 1.7;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.profile-card {
    padding: 36px;
    background: #11162a;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 24px;
}

.profile-card-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    border-radius: 16px;
    background: rgba(139,92,246,.14);
    font-size: 24px;
}

.profile-card h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 23px;
}

.profile-card p {
    margin-bottom: 28px;
    color: #a5a8c8;
    font-size: 14px;
    line-height: 1.6;
}

.profile-card form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.profile-card label {
    color: #d9dcf3;
    font-size: 13px;
    font-weight: 600;
}

.profile-card input {
    width: 100%;
    min-width: 0;
    padding: 15px 16px;
    border: 1px solid #303650;
    border-radius: 12px;
    background: #0b1020;
    color: #fff;
    font: inherit;
    box-sizing: border-box;
}

.profile-card input:focus {
    outline: 2px solid #8b5cf6;
    outline-offset: 1px;
}

.profile-card input[readonly] {
    opacity: .65;
    cursor: not-allowed;
}

.profile-card button {
    margin-top: 12px;
    padding: 15px 20px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(
        135deg, #7456f1, #a855f7
    );
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.profile-card button:hover {
    filter: brightness(1.12);
}

.profile-alert {
    margin-bottom: 24px;
    padding: 16px 20px;
    border-radius: 12px;
}

.profile-alert.success {
    color: #b5f5d2;
    background: rgba(16,185,129,.12);
}

.profile-alert.error {
    color: #ffc0c0;
    background: rgba(239,68,68,.12);
}

@media (max-width: 720px) {
    .profile-page {
        padding-top: 28px;
    }

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

    .profile-card {
        padding: 24px;
    }
}

