/* ============================================================
   ZIKA BEEE ACADEMY — Brand Stylesheet
   Palette matched to the original "From Idea to Screen" course
   guide: void background, gold accents, ink text.
   ============================================================ */

:root {
    --void: #19181D;
    --panel: #212026;
    --panel-raised: #29282F;
    --panel-raised-2: #323139;
    --gold: #D4AC38;
    --gold-bright: #EACD70;
    --gold-dim: #9C8330;
    --silver: #C7CBD1;
    --ink: #F7F5EF;
    --ink-dim: #BEBAB2;
    --ink-faint: #928E86;
    --line: #3C3A42;
    --line-soft: #2E2C33;
    --ok: #8DBB91;
    --ok-deep: #5B9C63;
    --warn: #D08A7A;
    --danger: #D08A7A;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --radius: 14px;
    --radius-sm: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--void);
    color: var(--ink);
    line-height: 1.6;
}

h1, h2, h3, h4, .brand-font {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    color: var(--ink);
}

p, li, label, input, select, textarea, button, a {
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

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

img { max-width: 100%; display: block; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------------- Buttons ---------------- */

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-gold {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-dim));
    color: var(--void);
    box-shadow: 0 6px 18px rgba(212, 172, 56, 0.3);
}

.btn-green {
    background: linear-gradient(135deg, var(--ok), var(--ok-deep));
    color: #fff;
    box-shadow: 0 6px 18px rgba(91, 156, 99, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--line);
    color: var(--ink);
}

.btn-block { display: block; width: 100%; }

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-danger { background: var(--danger); color: var(--void); }

/* ---------------- Top Nav ---------------- */

.site-header {
    background: var(--void);
    color: var(--ink);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(212, 172, 56, 0.4);
    flex-shrink: 0;
}

.logo-mark {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-dim));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-sub {
    font-size: 10.5px;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 22px;
    align-items: center;
}

.nav-links a {
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--ink);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

/* ---------------- Mobile drawer (public nav) ---------------- */

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 149;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.nav-backdrop.show { opacity: 1; pointer-events: auto; }

.nav-close { display: none; }

@media (max-width: 760px) {
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 78%;
        max-width: 320px;
        height: 100vh;
        background: var(--void);
        border-left: 1px solid var(--line);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 70px 30px 40px;
        transition: right 0.3s cubic-bezier(.32,.72,0,1);
        box-shadow: -8px 0 30px rgba(0,0,0,0.5);
        z-index: 150;
    }
    .nav-links.open { right: 0; }
    .nav-links a { font-size: 18px; margin-bottom: 22px; }
    .nav-toggle { display: block; position: relative; z-index: 151; }
    .nav-close {
        display: block;
        position: absolute;
        top: 20px; right: 22px;
        background: none;
        border: none;
        color: var(--ink);
        font-size: 28px;
        cursor: pointer;
        line-height: 1;
    }
}

/* ---------------- Hero ---------------- */

.hero {
    background: radial-gradient(ellipse 900px 700px at 15% -10%, rgba(212,172,56,0.08), transparent 60%),
                radial-gradient(ellipse 700px 700px at 100% 100%, rgba(212,172,56,0.05), transparent 60%),
                var(--void);
    padding: 60px 0 50px;
    text-align: center;
}

.hero-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.hero-logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(212, 172, 56, 0.45);
    box-shadow: 0 0 0 8px rgba(212, 172, 56, 0.06), 0 10px 30px rgba(0, 0, 0, 0.5);
}

@media (min-width: 760px) {
    .hero-logo { width: 170px; height: 170px; }
}

.hero .eyebrow {
    display: inline-block;
    background: var(--panel-raised);
    border: 1px solid var(--line);
    color: var(--gold-bright);
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 40px;
    line-height: 1.2;
    margin: 0 0 16px;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-dim));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lead {
    font-size: 18px;
    color: var(--ink-dim);
    max-width: 560px;
    margin: 0 auto 30px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.trust-bar {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
    margin-top: 44px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.trust-item { text-align: center; }
.trust-item .num { font-size: 26px; font-weight: 700; color: var(--gold-bright); }
.trust-item .label { font-size: 12px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 1px; }

/* ---------------- Sections ---------------- */

.section { padding: 60px 0; }
.section-alt { background: var(--panel); }

.section-title {
    text-align: center;
    font-size: 30px;
    margin-bottom: 10px;
}

.section-sub {
    text-align: center;
    color: var(--ink-dim);
    max-width: 560px;
    margin: 0 auto 40px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* ---------------- Class Cards ---------------- */

.class-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

@media (max-width: 760px) {
    .class-grid { grid-template-columns: 1fr; }
}

.class-card {
    background: var(--panel-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    display: flex;
    flex-direction: column;
    border-top: 6px solid var(--gold);
}

.class-card.beginner { border-top-color: var(--ok); }

.class-card .tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
    width: fit-content;
}

.class-card.advanced .tag { background: rgba(212,172,56,0.15); color: var(--gold-bright); }
.class-card.beginner .tag { background: rgba(141,187,145,0.15); color: var(--ok); }

.class-card h3 { font-size: 24px; margin: 0 0 8px; }
.class-card .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}
.class-card .price small { font-size: 14px; color: var(--ink-dim); font-weight: 400; }

.class-card .who {
    font-size: 14px;
    color: var(--ink-dim);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin-bottom: 18px;
}

.class-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    flex-grow: 1;
}

.class-card li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: 14.5px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink-dim);
}

.class-card li:last-child { border-bottom: none; }

.class-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    font-weight: 700;
}

.class-card.advanced li::before { color: var(--gold-bright); }
.class-card.beginner li::before { color: var(--ok); }

/* ---------------- How it works ---------------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 760px) {
    .steps { grid-template-columns: 1fr; }
}

.step-card {
    background: var(--panel-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    text-align: center;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--void);
    border: 1px solid var(--gold-dim);
    color: var(--gold-bright);
    font-weight: 700;
    margin-bottom: 14px;
}

.step-card h4 { margin: 0 0 8px; font-size: 17px; }
.step-card p { font-size: 14px; color: var(--ink-dim); font-family: 'Helvetica Neue', Arial, sans-serif; }

/* ---------------- Registration ---------------- */

.register-wrap {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 44px 30px;
    color: var(--ink);
}

.register-wrap .section-title,
.register-wrap .section-sub { color: var(--ink); }
.register-wrap .section-sub { color: var(--ink-dim); }

.quick-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.divider-or {
    text-align: center;
    color: var(--gold-bright);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 20px 0;
    position: relative;
}

.reg-form {
    max-width: 500px;
    margin: 0 auto;
    background: var(--panel-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gold-bright);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--void);
    color: var(--ink);
    font-size: 15px;
}

.form-group input::placeholder { color: var(--ink-faint); }

.form-row { display: flex; gap: 14px; }
.form-row .form-group { flex: 1; }

@media (max-width: 500px) {
    .form-row { flex-direction: column; gap: 0; }
}

/* Form card (used for login, and re-used for dashboard forms via .card) */
.form-card {
    background: var(--panel-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 34px;
    max-width: 440px;
    margin: 60px auto;
}

.form-card h2 { text-align: center; margin-bottom: 6px; }
.form-card .sub { text-align: center; color: var(--ink-dim); font-size: 14px; margin-bottom: 26px; font-family: 'Helvetica Neue', Arial, sans-serif;}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 18px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}
.alert-error { background: rgba(208,138,122,0.15); color: #F0B3A6; border: 1px solid rgba(208,138,122,0.35); }
.alert-success { background: rgba(141,187,145,0.15); color: #ABDDAF; border: 1px solid rgba(141,187,145,0.35); }
.alert-warning { background: rgba(212,172,56,0.12); color: var(--gold-bright); border: 1px solid rgba(212,172,56,0.3); }

/* ---------------- Footer ---------------- */

.site-footer {
    background: var(--void);
    color: var(--ink-faint);
    padding: 40px 0 24px;
    text-align: center;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    border-top: 1px solid var(--line);
}

.site-footer .foot-logo {
    font-family: 'Georgia', serif;
    font-size: 20px;
    color: var(--gold-bright);
    margin-bottom: 10px;
}

.site-footer a { color: var(--gold-bright); }

/* ============================================================
   DASHBOARD (Admin + Student) LAYOUT
   ============================================================ */

.app-shell {
    display: flex;
    min-height: 100vh;
    background: var(--void);
}

.sidebar {
    width: 230px;
    background: var(--panel);
    color: var(--ink);
    padding: 26px 18px;
    flex-shrink: 0;
    border-right: 1px solid var(--line);
}

.sidebar .brand-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.sidebar .brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(212, 172, 56, 0.4);
    flex-shrink: 0;
}

.sidebar .brand { font-size: 18px; color: var(--gold-bright); font-family: 'Georgia', serif; }

.sidebar nav a {
    display: block;
    padding: 11px 14px;
    border-radius: 8px;
    color: var(--ink-dim);
    font-size: 14px;
    margin-bottom: 4px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.sidebar nav a:hover, .sidebar nav a.active {
    background: rgba(212,172,56,0.15);
    color: var(--gold-bright);
}

.sidebar .logout-link { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 20px; }

.main-content { flex-grow: 1; padding: 30px; max-width: 1100px; }

.mobile-topbar {
    display: none;
    background: var(--panel);
    color: var(--gold-bright);
    padding: 16px 20px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.mobile-topbar button {
    background: none; border: none; color: var(--ink); font-size: 24px; cursor: pointer; line-height: 1;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    display: none;
}

.sidebar-backdrop.show { opacity: 1; pointer-events: auto; }

.sidebar-close { display: none; }

@media (max-width: 860px) {
    .app-shell { flex-direction: column; }
    .sidebar {
        position: fixed;
        top: 0; left: -260px;
        height: 100vh;
        width: 250px;
        z-index: 200;
        transition: left 0.3s cubic-bezier(.32,.72,0,1);
        box-shadow: 8px 0 30px rgba(0,0,0,0.5);
    }
    .sidebar.open { left: 0; }
    .sidebar-close {
        display: block;
        background: none;
        border: none;
        color: var(--ink);
        font-size: 24px;
        cursor: pointer;
        margin-bottom: 16px;
        line-height: 1;
    }
    .sidebar-backdrop { display: block; }
    .mobile-topbar { display: flex; }
    .main-content { padding: 20px 16px; }
}

.card {
    background: var(--panel-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 22px;
}

.card h1, .card h2, .card h3, .card h4 { color: var(--ink); }

.card .form-group label { color: var(--gold-bright); }
.card .form-group input,
.card .form-group select {
    background: var(--void);
    border: 1px solid var(--line);
    color: var(--ink);
}
.card .form-group input::placeholder { color: var(--ink-faint); }

.telegram-card { border-left: 5px solid var(--gold); }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 26px;
}

@media (max-width: 700px) {
    .stat-grid { grid-template-columns: 1fr; }
}

.stat-card {
    background: var(--panel-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    text-align: center;
}

.stat-card .num { font-size: 30px; font-weight: 700; color: var(--gold-bright); }
.stat-card .label { font-size: 13px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 1px; }

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: var(--ink-dim);
}

table.data-table th {
    text-align: left;
    padding: 12px;
    background: var(--panel);
    color: var(--ink-dim);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-active { background: rgba(141,187,145,0.15); color: #ABDDAF; }
.badge-expired { background: rgba(208,138,122,0.18); color: #F0B3A6; }
.badge-soon { background: rgba(212,172,56,0.15); color: var(--gold-bright); }

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

.action-links a { margin-right: 10px; font-size: 13px; font-weight: 600; color: var(--gold-bright); }
.action-links .del { color: var(--danger); }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.page-header h1 { font-size: 26px; margin: 0; }

.days-remaining-hero {
    text-align: center;
    padding: 40px 20px;
}

.days-remaining-hero .big-num {
    font-size: 64px;
    font-weight: 700;
    color: var(--gold-bright);
    line-height: 1;
}

.days-remaining-hero .big-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ink-dim);
    margin-top: 6px;
}

.progress-bar {
    height: 10px;
    background: var(--void);
    border-radius: 999px;
    overflow: hidden;
    margin: 20px 0;
}
.progress-bar .fill {
    height: 100%;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-dim));
    border-radius: 999px;
}

/* ---------------- Dashboard CTA banner ---------------- */

.cta-banner {
    background: linear-gradient(135deg, var(--panel-raised), var(--panel));
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-banner .cta-text h3 { margin: 0 0 4px; color: var(--ink); }
.cta-banner .cta-text p { margin: 0; color: var(--ink-dim); font-size: 14px; }

/* ============================================================
   COURSE CONTENT RENDERING
   ============================================================ */

.module-list { font-family: 'Helvetica Neue', Arial, sans-serif; }

.module-block {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    overflow: hidden;
    background: var(--panel);
}

.module-header {
    background: var(--panel-raised);
    padding: 14px 18px;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
}

.module-header::before {
    content: "";
}

.session-item { padding: 12px 18px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--ink-dim); }

/* ---------------- Collapsible session content (nav-module / nav-session style) ---------------- */

.session-details { border-top: 1px solid var(--line-soft); }

.session-details summary {
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14.5px;
    list-style: none;
    position: relative;
    color: var(--ink);
    user-select: none;
}

.session-details summary::-webkit-details-marker { display: none; }

.session-details summary::after {
    content: "▸";
    position: absolute;
    right: 18px;
    top: 14px;
    font-size: 14px;
    color: var(--gold);
    transition: transform 0.2s ease;
}

.session-details[open] summary::after { transform: rotate(90deg); }

.session-details summary:hover { background: rgba(212,172,56,0.08); }

.session-body { padding: 4px 18px 20px; }

.course-block-h { font-size: 15px; margin: 18px 0 8px; color: var(--ink); }
.course-block-p { font-size: 14px; color: var(--ink-dim); margin: 8px 0; }
.course-block-ul { margin: 8px 0; padding-left: 22px; font-size: 14px; color: var(--ink-dim); }

.course-checklist, .course-tools {
    background: var(--void);
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    padding: 14px 18px;
    margin: 12px 0;
}

.checklist-heading { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gold-bright); margin-bottom: 8px; }

.course-checklist ul, .course-tools ul { color: var(--ink-dim); }

.tools-list { list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--ink-dim); }
.tools-list li { padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.tools-list li:last-child { border-bottom: none; }
.tool-recommended { background: rgba(141,187,145,0.15); color: #ABDDAF; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.tool-sub { font-size: 12px; color: var(--ink-faint); }

.course-table { margin: 12px 0; }

.prompt-block {
    background: var(--void);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
    margin: 14px 0;
    position: relative;
}

.prompt-block-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.prompt-label { color: var(--gold-bright); font-weight: 700; font-size: 13px; }
.prompt-tool { color: var(--ink-faint); font-size: 12px; font-style: italic; }

.prompt-code {
    background: #100F12;
    color: var(--ink-dim);
    padding: 14px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 420px;
    overflow-y: auto;
    margin: 0;
}

.copy-btn {
    margin-top: 10px;
    background: var(--gold);
    color: var(--void);
    border: none;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.copy-btn:hover { background: var(--gold-bright); }
.copy-btn.copied { background: var(--ok); color: #fff; }

/* ============================================================
   COURSE APP — matched to the original "From Idea to Screen"
   standalone course guide (topbar, sidebar nav, cover, session view)
   ============================================================ */

.course-app { position: relative; }

/* ---- Course topbar ---- */
.course-topbar {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 18px;
    background: rgba(10,10,12,0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.course-topbar .logo-mark2 {
    width: 38px; height: 38px; border-radius: 50%; overflow: hidden;
    flex-shrink: 0; border: 1px solid rgba(212,172,56,0.4);
}
.course-topbar .logo-mark2 img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-topbar .brandtext { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.course-topbar .brandtext .b1 { font-size: 14.5px; letter-spacing: 0.05em; color: var(--ink); font-weight: 700; white-space: nowrap; }
.course-topbar .brandtext .b2 { font-size: 10px; color: var(--gold); letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course-topbar .spacer { flex: 1; }

.iconbtn {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--panel-raised); border: 1px solid var(--line);
    color: var(--ink); cursor: pointer; flex-shrink: 0;
    text-decoration: none; font-size: 18px;
}
.iconbtn:hover { background: var(--panel-raised-2); border-color: var(--gold-dim); }

.progress-chip {
    display: flex; align-items: center; gap: 7px;
    padding: 6px 12px; border-radius: 20px;
    background: var(--panel-raised); border: 1px solid var(--line);
    font-size: 11.5px; color: var(--ink-dim); white-space: nowrap;
}
.progress-chip b { color: var(--gold-bright); font-weight: 600; }

/* ---- Layout ---- */
.course-app-body { display: flex; max-width: 1400px; margin: 0 auto; }

.course-sidebar {
    width: 300px; flex-shrink: 0;
    border-right: 1px solid var(--line);
    height: calc(100vh - 61px);
    position: sticky; top: 61px;
    overflow-y: auto;
    padding: 18px 14px 40px;
}

.nav-module { margin-bottom: 6px; border-radius: var(--radius-sm); overflow: hidden; }
.nav-module-head {
    display: flex; align-items: center; gap: 10px;
    width: 100%;
    padding: 10px 10px; cursor: pointer;
    border-radius: var(--radius-sm);
    text-decoration: none;
    background: none;
    border: none;
    text-align: left;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}
.nav-module-head:hover { background: var(--panel); }
.nav-module-head.active { background: var(--panel-raised); }
.nav-module-num {
    font-size: 11px; color: var(--gold);
    border: 1px solid var(--gold-dim); border-radius: 5px;
    padding: 2px 6px; letter-spacing: 0.04em; flex-shrink: 0;
}
.nav-module-title { font-size: 13.5px; font-weight: 600; color: var(--ink); flex: 1; line-height: 1.25; }
.nav-module-chev { color: var(--ink-faint); flex-shrink: 0; font-size: 12px; transition: transform 0.2s ease; }
.nav-module.open .nav-module-chev { transform: rotate(90deg); }

.nav-sessions { padding-left: 8px; max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.nav-module.open .nav-sessions { max-height: 600px; }
.nav-session {
    display: flex; align-items: center; gap: 9px;
    padding: 8px 10px 8px 14px;
    border-left: 2px solid var(--line-soft);
    margin-left: 6px;
    text-decoration: none;
    font-size: 12.8px; color: var(--ink-dim);
}
.nav-session:hover { color: var(--ink); }
.nav-session.active { color: var(--gold-bright); border-left-color: var(--gold); }
.nav-session .dot {
    width: 15px; height: 15px; border-radius: 50%;
    border: 1.5px solid var(--ink-faint);
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    font-size: 9px;
}
.nav-session.done .dot { background: var(--ok); border-color: var(--ok); color: #19181D; }
.nav-session.active .dot { border-color: var(--gold-bright); }
.nav-session .stitle { flex: 1; line-height: 1.3; }

.sidebar-footer {
    margin-top: 18px; padding: 14px 10px 4px;
    border-top: 1px solid var(--line);
    font-size: 11px; color: var(--ink-faint); line-height: 1.6;
}

.course-main { flex: 1; min-width: 0; padding: 0 0 90px; }
.course-content-inner { max-width: 760px; margin: 0 auto; padding: 28px 20px 40px; }

/* ---- Cover / home view ---- */
.cover { max-width: 820px; margin: 0 auto; padding: 48px 22px 30px; text-align: center; }
.cover .logo-big {
    width: 104px; height: 104px; border-radius: 50%; overflow: hidden;
    margin: 0 auto 22px; border: 1px solid rgba(212,172,56,0.45);
    box-shadow: 0 0 0 8px rgba(212,172,56,0.05);
}
.cover .logo-big img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover .eyebrow2 { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.cover h1 { font-size: clamp(32px,7vw,52px); line-height: 1.05; margin: 0 0 10px; letter-spacing: 0.01em; color: var(--ink); }
.cover h1 span { color: var(--gold); }
.cover .subtitle { font-size: clamp(14px,3vw,17px); color: var(--ink-dim); max-width: 520px; margin: 0 auto 22px; line-height: 1.55; font-family: 'Helvetica Neue', Arial, sans-serif; }
.cover .startbtn {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--gold); color: #161410;
    font-weight: 700; font-size: 14.5px;
    padding: 13px 26px; border-radius: 40px;
    border: none; cursor: pointer; text-decoration: none;
}
.cover .startbtn:hover { background: var(--gold-bright); }

.cover-modules { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 12px; margin-top: 34px; text-align: left; }
.cover-mod-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.cover-mod-card:hover { border-color: var(--gold-dim); }
.cover-mod-card .cm-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; text-decoration: none; }
.cover-mod-card .cm-icon {
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--panel-raised); display: flex; align-items: center; justify-content: center;
    color: var(--gold); flex-shrink: 0; font-size: 16px;
}
.cover-mod-card .cm-num { font-size: 11px; color: var(--ink-faint); letter-spacing: 0.06em; }
.cover-mod-card h3 { margin: 0; font-size: 14.5px; color: var(--ink); font-weight: 700; }
.cover-mod-card p { margin: 0 0 12px; font-size: 12.5px; color: var(--ink-dim); line-height: 1.5; font-family: 'Helvetica Neue', Arial, sans-serif; }
.cm-sessions { border-top: 1px solid var(--line); padding-top: 8px; }
.cm-sess-row { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 7px; font-size: 12px; color: var(--ink-dim); text-decoration: none; }
.cm-sess-row:hover { background: var(--panel-raised-2); color: var(--ink); }
.cm-sess-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; border: 1.5px solid var(--ink-faint); display: flex; align-items: center; justify-content: center; font-size: 8px; }
.cm-sess-row.done .cm-sess-dot { background: var(--ok); border-color: var(--ok); color: #19181D; }
.cm-sess-num { font-size: 10.5px; color: var(--gold-dim); letter-spacing: 0.04em; flex-shrink: 0; }
.cm-sess-row:hover .cm-sess-num { color: var(--gold-bright); }
.cm-sess-title { flex: 1; line-height: 1.35; min-width: 0; }

/* ---- Slate (breadcrumb) ---- */
.slate { display: inline-flex; align-items: stretch; border: 1px solid var(--gold-dim); border-radius: 7px; overflow: hidden; margin-bottom: 18px; letter-spacing: 0.05em; background: var(--panel); }
.slate-stripe { width: 9px; background: repeating-linear-gradient(45deg, var(--gold) 0 6px, #1a1810 6px 12px); flex-shrink: 0; }
.slate-body { display: flex; align-items: center; gap: 10px; padding: 7px 12px; font-size: 11.5px; }
.slate-body .m { color: var(--ink-dim); }
.slate-body .divider { color: var(--gold-dim); }
.slate-body .s { color: var(--gold-bright); }

.session-header { margin-bottom: 22px; }
.session-header h2 { font-size: clamp(22px,5vw,30px); margin: 0 0 6px; line-height: 1.15; color: var(--ink); display: flex; align-items: center; gap: 11px; }
.session-header .sicon { width: 32px; height: 32px; border-radius: 9px; background: var(--panel-raised); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; font-size: 15px; }
.session-header .module-blurb { font-size: 13px; color: var(--ink-faint); margin: 0; font-family: 'Helvetica Neue', Arial, sans-serif; }

/* ---- Content blocks (session body) ---- */
.block-p { font-size: 15px; line-height: 1.65; color: var(--ink); margin: 0 0 16px; font-family: 'Helvetica Neue', Arial, sans-serif; }
.block-h { font-size: 13.5px; font-weight: 700; color: var(--gold-bright); text-transform: uppercase; letter-spacing: 0.06em; margin: 26px 0 10px; padding-top: 2px; display: flex; align-items: center; gap: 8px; }
.block-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.block-ul { margin: 0 0 18px; padding: 0; list-style: none; font-family: 'Helvetica Neue', Arial, sans-serif; }
.block-ul li { position: relative; padding-left: 20px; margin-bottom: 9px; font-size: 14.5px; line-height: 1.6; color: var(--ink-dim); }
.block-ul li::before { content: "—"; position: absolute; left: 0; top: 0; color: var(--gold-dim); }

.block-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; margin: 0 0 18px; font-size: 13.5px; line-height: 1.55; border: 1px solid var(--line); background: var(--panel); font-family: 'Helvetica Neue', Arial, sans-serif; }
.block-note.warning { border-color: rgba(196,121,106,0.4); background: rgba(196,121,106,0.07); color: #E3B3A9; }
.block-note.info { color: var(--ink-dim); }

.block-checklist { margin: 0 0 18px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.block-checklist .cl-heading { font-size: 12px; font-weight: 700; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.cl-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 9px; font-size: 14px; color: var(--ink-dim); font-family: 'Helvetica Neue', Arial, sans-serif; }
.cl-item:last-child { margin-bottom: 0; }
.cl-box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--ink-faint); flex-shrink: 0; margin-top: 1px; }

.block-tools { margin: 0 0 18px; }
.block-tools .t-heading { font-size: 12px; font-weight: 700; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.tool-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-pill { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; color: var(--ink-dim); }
.tool-pill.recommended { border-color: var(--gold-dim); background: rgba(212,172,56,0.08); color: var(--gold-bright); }
.tool-pill .tp-name { font-weight: 600; color: var(--ink); }
.tool-pill.recommended .tp-name { color: var(--gold-bright); }
.tool-pill .tp-sub { color: var(--ink-faint); font-size: 11.5px; }

.block-table { margin: 0 0 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.block-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.block-table th { text-align: left; padding: 10px 13px; background: var(--panel-raised); color: var(--gold-bright); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--line); white-space: nowrap; }
.block-table td { padding: 10px 13px; border-bottom: 1px solid var(--line-soft); color: var(--ink-dim); line-height: 1.5; }
.block-table tr:last-child td { border-bottom: none; }

.block-prompt { margin: 0 0 20px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #0D0D0F; }
.prompt-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--panel-raised); border-bottom: 1px solid var(--line); }
.prompt-head .ph-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-dim); flex-shrink: 0; }
.prompt-head .ph-text { flex: 1; min-width: 0; }
.prompt-head .ph-label { font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.prompt-head .ph-tool { font-size: 11px; color: var(--ink-faint); line-height: 1.3; }
.course-copy-btn { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); color: var(--ink-dim); font-size: 12px; font-weight: 600; cursor: pointer; flex-shrink: 0; white-space: nowrap; }
.course-copy-btn:hover { border-color: var(--gold-dim); color: var(--gold-bright); }
.course-copy-btn.copied { background: rgba(141,187,145,0.15); border-color: var(--ok); color: #B9D6BB; }
.prompt-body { padding: 15px 16px; margin: 0; font-family: 'Courier New', monospace; font-size: 12.6px; line-height: 1.7; color: #D9D5C8; white-space: pre-wrap; word-wrap: break-word; max-height: 340px; overflow-y: auto; }

/* ---- Prev/Next sticky bottom bar ---- */
.navbar-bottom {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: flex; gap: 8px; padding: 10px 14px;
    background: rgba(10,10,12,0.92); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
}
@media (min-width: 881px) { .navbar-bottom { left: 300px; } }
.nb-btn {
    flex: 1; display: flex; align-items: center; gap: 8px;
    padding: 11px 14px; border-radius: 11px;
    background: var(--panel-raised); border: 1px solid var(--line);
    cursor: pointer; color: var(--ink); text-align: left;
    text-decoration: none; min-width: 0;
}
.nb-btn:hover { border-color: var(--gold-dim); }
.nb-btn.disabled { opacity: 0.35; pointer-events: none; }
.nb-btn.next { justify-content: flex-end; text-align: right; flex-direction: row-reverse; }
.nb-btn .nb-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.nb-btn .nb-label { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-faint); line-height: 1; }
.nb-btn .nb-title { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-btn.markdone { flex: 0 0 auto; justify-content: center; background: var(--gold); color: #161410; border-color: var(--gold); font-weight: 700; }
.nb-btn.markdone:hover { background: var(--gold-bright); }

/* ---- Mobile ---- */
.course-mobile-drawer-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 49;
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease; display: none;
}
.course-mobile-drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.course-mobile-drawer {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--void); border-top: 1px solid var(--line);
    border-radius: 18px 18px 0 0;
    max-height: 82vh; overflow-y: auto;
    transform: translateY(100%); transition: transform 0.28s cubic-bezier(.32,.72,0,1);
    padding: 8px 14px 24px;
}
.course-mobile-drawer.show { transform: translateY(0); }
.course-mobile-drawer .drawer-handle { width: 36px; height: 4px; border-radius: 3px; background: var(--line); margin: 8px auto 14px; }

@media (max-width: 880px) {
    .course-sidebar { display: none; }
    .course-mobile-drawer, .course-mobile-drawer-backdrop { display: block; }
    .course-main { padding-bottom: 86px; }
    .course-content-inner { padding: 20px 16px 30px; }
    .cover { padding: 34px 16px 20px; }
    .navbar-bottom { left: 0; }
    #courseMenuBtn { display: flex !important; }
}
@media (min-width: 881px) {
    .course-mobile-drawer, .course-mobile-drawer-backdrop { display: none; }
}
