:root {
    --bg: #0b0d10;
    --panel: #13171c;
    --panel-2: #191f26;
    --text: #f4f7fb;
    --muted: #9ca7b3;
    --line: #27303a;
    --accent: #4dbf75;
    --accent-dark: #42a866;
    --success: #36c275;
    --danger: #ff6b6b;
    --max: 1180px;
    --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

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

.container {
    width: min(calc(100% - 40px), var(--max));
    margin-inline: auto;
}

.narrow { max-width: 760px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(11,13,16,.82);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav-wrap {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Koda95 logo */

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 1;
}

.site-logo {
    display: block;
    width: auto;
    height: 42px;
    max-width: 180px;
    object-fit: contain;
}

@media (max-width: 640px) {
    .site-logo {
        height: 34px;
        max-width: 145px;
    }
}

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

.nav a {
    color: #dce3ea;
    font-size: .94rem;
}

.nav a:hover { color: white; }

.hero {
    padding: 60px 0 70px;
    background:
        radial-gradient(circle at 80% 20%, rgba(255,77,61,.18), transparent 28%),
        linear-gradient(180deg, #0c0f13 0%, #0b0d10 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    align-items: center;
    gap: 70px;
}

.eyebrow {
    display: inline-block;
    color: var(--accent);
    text-transform: uppercase;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14em;
    margin-bottom: 6px;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-top: 0;
}

h1 { font-size: 56px; margin-bottom: 24px; }
h2 { font-size: 24px; }
h3 { font-size: 1.25rem; }

.lead {
    font-size: 1.16rem;
    color: #c7d0d9;
    max-width: 720px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    border: 0;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    font: inherit;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
    background: #1a2027;
    color: white;
    border: 1px solid var(--line);
}

.btn-small {
    padding: 8px 12px;
    min-height: 36px;
    font-size: .86rem;
}

.full { width: 100%; }

.hero-card {
    border: 1px solid var(--line);
    background: linear-gradient(150deg, #171c22, #101317);
    border-radius: 26px;
    padding: 22px;
    display: grid;
    gap: 14px;
    box-shadow: 0 40px 90px rgba(0,0,0,.35);
}

.stat {
    padding: 26px;
    background: rgba(255,255,255,.03);
    border-radius: 18px;
}

.stat strong {
    display: block;
    font-size: 2.3rem;
    line-height: 1;
}

.stat span { color: var(--muted); }

.section { padding: 25px 0 50px 0; }
.section-alt { background: #101318; }

.section-heading h1 {
    font-size: 32px;
}
.section-heading { margin-bottom: 25px; }
.section-heading p { color: var(--muted); }

.inline-heading h1 {
    margin-bottom: 0 !important;
}

.inline-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.cards {
    display: grid;
    gap: 20px;
}

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

.card,
.success-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
}

.success-card h1 {
    font-size: 36px;
}

.card p { color: var(--muted); margin-bottom: 0px !important; }

.split {
    display: grid;
    grid-template-columns: 1fr .8fr;
    gap: 60px;
    align-items: center;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.check-list li:last-child { border-bottom: 0; }

.check-list li:first-child { padding-top: 0; }

.check-list li:last-child { padding-bottom: 0; }

.site-footer {
    padding: 38px 0;
    border-top: 1px solid var(--line);
    background: #090b0d;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
}

.footer-inner p { margin-bottom: 0; color: var(--muted); }

.footer-strong p { font-size: 20px; }

.muted { color: var(--muted); }

.auth-section {
    min-height: calc(100vh - 160px);
    display: grid;
    place-items: center;
    padding: 60px 20px;
}

.auth-card {
    width: min(100%, 480px);
    padding: 36px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 22px;
}

.auth-card h1 { font-size: 2.5rem; margin-bottom: 10px; }

form { display: grid; gap: 10px; }

label {
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

input,
select,
textarea {
    width: 100%;
    background: #0d1115;
    border: 1px solid #2b3540;
    color: white;
    padding: 13px 14px;
    border-radius: 10px;
    font: inherit;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,77,61,.12);
}

.alert {
    border-radius: 12px;
    padding: 13px 16px;
    margin: 18px auto;
    border: 1px solid var(--line);
}

.alert-error {
    background: rgba(255,107,107,.08);
    color: #ffb3b3;
    border-color: rgba(255,107,107,.25);
}

.alert-success {
    background: rgba(54,194,117,.09);
    color: #a9f0c9;
    border-color: rgba(54,194,117,.25);
}

.course-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 28px;
    padding-top: 25px;
    padding-bottom: 50px;
}

.course-sidebar {
    position: sticky;
    top: 96px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow: auto;
}

.sidebar-title h2 { 
    font-size: 22px;
    margin-bottom: 15px; 
}

.lecture-list {
    display: grid;
    gap: 8px;
}

.lecture-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #101419;
}

.lecture-item > span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #20262e;
    font-weight: 900;
    flex: 0 0 auto;
}

.lecture-item strong,
.lecture-item small { display: block; }

.lecture-item strong { font-size: 14px; }
.lecture-item small { font-size: 11px; }

.lecture-item small { color: var(--muted); margin-top: 0px; }
.lecture-item.active { border-color: var(--accent); }
.lecture-item.active > span { background: var(--accent); }

.course-main {
    min-width: 0;
}

.course-topline {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 24px;
    margin-bottom: 20px;
}

.course-topline h1 {
    font-size: 24px;
    margin-bottom: 0;
}

.language-tabs {
    display: flex;
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #101419;
}

.language-tabs a {
    padding: 8px 11px;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 900;
    color: var(--muted);
}

.language-tabs a.active {
    background: var(--accent);
    color: white;
}

.video-shell {
    background: black;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.video-shell video {
    width: 100%;
    height: 100%;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--muted);
}

.lecture-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 12px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
}

th,
td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: #b6c1cc;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

td small { display: block; color: var(--muted); }

@media (max-width: 768px) {
    .table-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-wrap table {
        width: max-content;
        min-width: 100%;
    }

    .table-wrap th,
    .table-wrap td {
        white-space: nowrap;
    }
}

.badge,
.status,
.progress-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: .76rem;
    font-weight: 800;
    border: 1px solid var(--line);
    background: #0f1317;
}

.status.active { color: #99e8bc; }
.status.expired { color: #ffaaaa; }

.progress-cell {
    max-width: 330px;
}

.progress-pill {
    margin: 2px 3px 2px 0;
    color: #c9d3dd;
}

.form-grid {
    display: grid;
    gap: 16px;
}

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

.password-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.form-help {
    color: var(--muted);
    margin-bottom: 8px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}

.checkbox input { width: auto; }

.credentials {
    display: grid;
    gap: 10px;
    margin: 24px 0;
}

.credentials div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.credentials span { color: var(--muted); }

.share-box {
    min-height: 170px;
    resize: vertical;
}

.history-list {
    display: grid;
    gap: 10px;
}

.history-list > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.history-list span { color: var(--muted); }

code {
    background: #090c0f;
    padding: 2px 6px;
    border-radius: 6px;
}

@media (max-width: 900px) {
    .hero-grid,
    .split,
    .course-layout,
    .cards.three {
        grid-template-columns: 1fr;
    }

    .course-sidebar {
        position: static;
        max-height: none;
    }

    .hero { padding-top: 66px; }
    .course-topline { flex-direction: column; }
    
    h1 { font-size: 36px; margin-bottom: 24px; }
    h2 { font-size: 24px; }
    h3 { font-size: 1.25rem; }
    
    .big-section-title {
        font-size: 28px !important;
    }
    
    .hero-grid {
        gap: 50px;
    }
}

@media (max-width: 640px) {
    .inline-heading,
    .footer-inner,
    .credentials div,
    .history-list > div {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav { gap: 12px; }

    .container { width: min(calc(100% - 24px), var(--max)); }

    .form-grid.two,
    .password-row {
        grid-template-columns: 1fr;
    }

    .section { padding: 60px 0; }
    .auth-card { padding: 24px; }
}



/* Global language */
.language-switcher {display:inline-flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.language-switcher a {display:inline-flex;align-items:center;justify-content:center;min-width:34px;padding:6px 8px;border-radius:7px;color:var(--muted);font-size:11px;font-weight:800}
.language-switcher a:hover {color:var(--text);background:var(--panel-2)}
.language-switcher a.active {color:white;background:var(--accent)}
@media(max-width:640px){.site-logo{height:34px;max-width:145px}}



/* New home */

.k95-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

.k95-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: 6px 15px 8px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    font-size: .92rem;
    line-height: 1.1;
}

.k95-hero-card {
    display: grid;
    gap: 1rem;
}

.k95-hero-point {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.k95-hero-point:first-child {
    padding-top: 0px;
}

.k95-hero-point:last-child {
    border-bottom: 0;
    padding-bottom: 0px;
}

.k95-hero-point strong {
    display: block;
    margin-bottom: .25rem;
    font-size: 17px;
}

.k95-hero-point span {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.2 !important;
}

.k95-process {
    counter-reset: k95-step;
}

.k95-process .card {
    position: relative;
    padding-top: 4.6rem;
}

.k95-process .card::before {
    counter-increment: k95-step;
    content: "0" counter(k95-step);
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    font-size: 1.65rem;
    font-weight: 800;
    opacity: .38;
}

.k95-note {
    margin-top: 1.25rem;
    font-size: .93rem;
    opacity: .78;
}

.k95-instructor {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) 1.2fr;
    gap: 2rem;
    align-items: center;
}

.k95-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
}

.k95-contact-item {
    padding: 1.2rem;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.12);
}

.k95-contact-item span {
    display: block;
    font-size: .82rem;
    opacity: .68;
    margin-bottom: .3rem;
}

@media (max-width: 820px) {
    .k95-instructor,
    .k95-contact-grid {
        grid-template-columns: 1fr;
    }
}

.big-section-title {
    font-size: 36px;
    margin-top: 10px;
}


/* Image */

.k95-instructor {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 60px;
}

.k95-instructor-photo {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.k95-instructor-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.k95-instructor-content {
    min-width: 0;
}

@media (max-width: 768px) {
    .k95-instructor {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .k95-instructor-photo {
        max-width: 500px;
    }
}


/* Mobile menu */


/* ==========================================
   RESPONSIVE HEADER & SLIDING MOBILE MENU
========================================== */

/* Header controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

/* Desktop menu */
.desktop-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* Hamburger hidden on desktop */
.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    background: var(--text);
    border-radius: 5px;
    transition: transform .3s ease, opacity .3s ease;
}

/* Sidebar hidden by default */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 88vw);
    height: 100dvh;
    background: #13171c;
    border-left: 1px solid var(--line);
    z-index: 101;

    display: flex;
    flex-direction: column;

    transform: translateX(105%);
    visibility: hidden;
    transition:
        transform .35s cubic-bezier(.22, 1, .36, 1),
        visibility .35s;

    box-shadow: -20px 0 70px rgba(0,0,0,.35);
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Open sidebar */
body.menu-open .mobile-sidebar {
    transform: translateX(0);
    visibility: visible;
}

/* Dark overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(3px);
    z-index: 100;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity .3s ease, visibility .3s;
}

body.menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Prevent body scrolling */
body.menu-open {
    overflow: hidden;
}

/* Sidebar top */
.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
}

.menu-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel-2);
    color: white;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.menu-close:hover {
    background: #28313b;
}

/* Sidebar navigation */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 25px 18px;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    padding: 15px 18px;
    font-size: 16px;
    font-weight: 600;
    color: #dce3ea;
    border-radius: 12px;
    transition: background .2s ease, color .2s ease;
}

.mobile-nav a:hover {
    background: var(--panel-2);
    color: white;
}

/* ==========================================
   MOBILE BREAKPOINT
========================================== */

@media (max-width: 768px) {

    .nav-wrap {
        min-height: 66px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 12px;
    }

    /* Hide normal desktop links */
    .desktop-nav {
        display: none;
    }

    /* Keep controls on right */
    .header-controls {
        margin-left: auto;
        gap: 10px;
        flex-shrink: 0;
    }

    /* Show hamburger */
    .menu-toggle {
        display: flex;
    }

    /* Logo */
    .site-logo {
        height: 36px;
        max-width: 135px;
    }

    /* Compact language picker */
    .language-switcher {
        display: inline-flex;
        gap: 2px;
        padding: 3px;
        flex-shrink: 0;
    }

    .language-switcher a {
        min-width: 28px;
        padding: 6px 5px;
        font-size: 10px;
    }

}

/* Small phones */
@media (max-width: 380px) {

    .header-controls {
        gap: 6px;
    }

    .site-logo {
        height: 30px;
        max-width: 110px;
    }

    .menu-toggle {
        width: 38px;
        height: 38px;
    }

    .language-switcher a {
        min-width: 25px;
        padding: 5px 4px;
    }

}

/* Desktop: never show mobile sidebar */
@media (min-width: 769px) {

    .mobile-sidebar,
    .mobile-menu-overlay {
        display: none;
    }

}

/* Keyboard accessibility */
.menu-toggle:focus-visible,
.menu-close:focus-visible,
.mobile-nav a:focus-visible,
.language-switcher a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .mobile-sidebar,
    .mobile-menu-overlay,
    .menu-toggle span {
        transition-duration: 0.01ms;
    }
}

/* Login */


/* Login information */

.login-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.login-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 77, 61, 0.10);
    color: var(--accent);
}

.login-info p {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--muted);
}

.request-actions { display:flex; gap:8px; flex-wrap:wrap; }
.request-actions form { display:inline-block; margin:0; }

