@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Figtree:wght@400;500;600;700&display=swap');

:root {
    --navy: #0E3A63;
    --navy-deep: #0A2C4C;
    --navy-soft: #E7EEF5;
    --ink: #17324A;
    --muted: #5C6B7A;
    --line: #D7E0EA;
    --paper: #F4F7FA;
    --white: #ffffff;
    --danger: #B42318;
    --warn: #9A3412;
    --ok: #0E3A63;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(14, 58, 99, 0.06);
}

html { scroll-behavior: smooth; font-size: 15px; }

body {
    font-family: 'Figtree', sans-serif;
    color: var(--ink);
    background: var(--paper);
    min-height: 100vh;
}

h1, h2, h3, .brand-font { font-family: 'Fraunces', serif; color: var(--navy); letter-spacing: -0.02em; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-deep); }
.text-navy { color: var(--navy) !important; }

.pub-nav {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(14, 58, 99, 0.07);
}
.pub-nav-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    min-height: 70px;
}
.pub-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--navy);
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
    justify-self: start;
}
.pub-brand:hover { color: var(--navy-deep); }
.pub-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--navy) 0%, #1a5a8a 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(14, 58, 99, 0.2);
}
.pub-brand-logo {
    height: 42px;
    width: auto;
    flex-shrink: 0;
}
.pub-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}
.pub-brand-name {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: clamp(0.82rem, 2.4vw, 1.12rem);
    color: var(--navy);
    line-height: 1.2;
    word-break: break-word;
}
@media (min-width: 992px) {
    .pub-brand-name {
        white-space: nowrap;
    }
}
.pub-nav-center {
    justify-self: center;
}
.pub-nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    justify-self: end;
    flex-shrink: 0;
}
.pub-nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
}
.pub-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.48rem 0.85rem;
    border-radius: 999px;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
.pub-nav-link:hover {
    color: var(--navy);
    background: var(--navy-soft);
}
.pub-nav-link.is-active {
    color: #fff;
    background: var(--navy);
}
.pub-nav-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.pub-nav-toggle:hover,
.pub-nav-toggle.is-open {
    background: var(--navy-soft);
    border-color: #B8CFE2;
}
.pub-lang-pills {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.22rem;
    border-radius: 999px;
    background: #EEF3F8;
    border: 1px solid var(--line);
    flex-shrink: 0;
}
.pub-lang-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #5A7288;
    text-decoration: none;
}
.pub-lang-pill:hover {
    color: var(--navy);
    background: rgba(255, 255, 255, 0.75);
}
.pub-lang-pill.is-active {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 1px 4px rgba(14, 58, 99, 0.12);
}
.pub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.2;
}
.pub-btn-text {
    display: inline;
}
.pub-btn-login {
    padding: 0.5rem 0.95rem;
}
/* Mobile drawer */
.pub-mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(14, 58, 99, 0.45);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.pub-mobile-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}
.pub-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 88vw);
    background: #fff;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(14, 58, 99, 0.18);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    visibility: hidden;
}
.pub-mobile-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}
.pub-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.85rem;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #F7FAFD 0%, #fff 100%);
}
.pub-drawer-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}
.pub-drawer-title {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--navy);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pub-drawer-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.pub-drawer-close:hover {
    background: var(--navy-soft);
}
.pub-drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    min-height: 0;
}
.pub-drawer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pub-drawer-links li {
    margin: 0;
    padding: 0;
}
.pub-drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    transition: background 0.15s ease, color 0.15s ease;
}
.pub-drawer-link i {
    font-size: 0.8rem;
    color: #9AABB9;
}
.pub-drawer-link:hover {
    background: var(--navy-soft);
    color: var(--navy);
}
.pub-drawer-link.is-active {
    background: var(--navy);
    color: #fff;
}
.pub-drawer-link.is-active i {
    color: rgba(255, 255, 255, 0.75);
}
.pub-drawer-link-cta {
    margin-top: 0.5rem;
    background: var(--navy-soft);
    color: var(--navy);
    border: 1px solid #C5D9EA;
}
.pub-drawer-link-cta:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
.pub-drawer-link-cta.is-active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
.pub-drawer-lang {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #FAFCFE;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.pub-drawer-nav .pub-drawer-link-cta {
    display: flex;
    margin-top: 0.25rem;
}
.pub-drawer-lang-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6B8299;
}
.pub-btn-get-started {
    font-weight: 700;
}
body.pub-menu-open {
    overflow: hidden;
}
@media (max-width: 991px) {
    .pub-nav-bar {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}
@media (max-width: 575px) {
    .pub-nav-bar {
        gap: 0.5rem;
        min-height: 62px;
    }
    .pub-brand-icon,
    .pub-brand-logo {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .pub-brand-logo {
        height: 38px;
    }
    .pub-lang-pill {
        min-width: 1.75rem;
        padding: 0.28rem 0.45rem;
        font-size: 0.72rem;
    }
    .pub-btn {
        padding: 0.45rem 0.75rem;
        font-size: 0.82rem;
    }
}
.pub-nav .brand {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--navy);
    white-space: nowrap;
}
.pub-nav .nav-link { color: var(--ink); font-weight: 500; font-size: 0.92rem; }
.pub-nav .nav-link:hover, .pub-nav .nav-link.active { color: var(--navy); }
.lang-switch { font-size: 0.88rem; color: var(--muted); }
.lang-switch a { color: var(--navy); }
.lang-switch a.is-on { font-weight: 700; }
.icon-btn { color: var(--navy); font-size: 1.2rem; padding: 0.2rem 0.35rem; }

.btn-navy {
    background: var(--navy);
    color: #fff;
    border: 1px solid var(--navy);
    border-radius: 6px;
    padding: 0.65rem 1.25rem;
    font-weight: 600;
}
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-navy-outline {
    background: #fff;
    color: var(--navy);
    border: 1px solid var(--navy);
    border-radius: 6px;
    padding: 0.65rem 1.25rem;
    font-weight: 600;
}
.btn-navy-outline:hover { background: var(--navy-soft); color: var(--navy); }

.hero { padding: 3.5rem 0 3rem; background: var(--paper); }
.hero h1 { font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.15; max-width: 16ch; }
.hero .lede { color: var(--muted); font-size: 1.05rem; max-width: 42ch; }
.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--navy);
    color: #fff;
    border-radius: 999px;
    padding: 0.28rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
}
.hero-photo { width: 100%; height: 360px; object-fit: cover; border-radius: 14px; }

.section { padding: 3.5rem 0; }
.section-head { text-align: center; margin-bottom: 2rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.section-head-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--navy) 0%, #1a5a8a 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 6px 18px rgba(14, 58, 99, 0.18);
}

.why-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.why-icon {
    width: 48px; height: 48px;
    background: var(--navy-soft);
    color: var(--navy);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.why-card h3 {
    width: 100%;
}
.why-card p {
    width: 100%;
}

.tool-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
}
.tool-card {
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    min-height: 190px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.tool-card .why-icon {
    background: var(--navy);
    color: #fff;
}
.tool-card.soft .why-icon {
    background: var(--navy);
    color: #fff;
}
.tool-card a {
    margin-top: auto;
    font-weight: 600;
}
.tool-card h3,
.tool-card p {
    width: 100%;
}
.tool-card.soft { background: #E4EEF6; border-color: transparent; min-height: 220px; }
.tool-card.navy { background: var(--navy); color: #fff; min-height: 220px; border-color: transparent; }
.tool-card.navy h3, .tool-card.navy p { color: #dbe7f2; }
.tool-card.navy h3 { color: #fff; }
.tool-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.85rem;
    font-size: 1rem;
}
.tool-icon.navy { background: var(--navy); color: #fff; }
.tool-icon.muted { background: #EEF2F6; color: var(--muted); }
.tool-watermark {
    position: absolute;
    right: 1rem;
    bottom: 0.5rem;
    font-size: 5.5rem;
    color: rgba(14, 58, 99, 0.07);
    line-height: 1;
    pointer-events: none;
}
.enrw {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: rgba(255,255,255,0.22);
    position: absolute;
    right: 1.2rem;
    bottom: 0.6rem;
    letter-spacing: 0.04em;
    pointer-events: none;
}

.live-band { background: #EAF1F7; }
.live-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #FCE8E6;
    color: #B42318;
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 700;
}
.live-upcoming { display: grid; gap: 0.5rem; }
.live-upcoming-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.laptop {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(14, 58, 99, 0.12);
}
.laptop-bar {
    background: var(--navy);
    color: #fff;
    padding: 0.6rem 0.9rem;
    font-size: 0.78rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}
.laptop-body { display: grid; grid-template-columns: 140px 1fr; min-height: 280px; }
.laptop-side {
    background: #EEF3F8;
    border-right: 1px solid var(--line);
    padding: 0.85rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.72rem;
}
.laptop-side-title { font-weight: 700; color: var(--navy); margin-bottom: 0.35rem; }
.laptop-side-item { color: var(--muted); padding: 0.25rem 0.35rem; border-radius: 5px; }
.laptop-side-item.is-active { background: var(--navy); color: #fff; }
.laptop-main { display: grid; grid-template-columns: 1fr 1fr; }
.laptop-video {
    background: linear-gradient(160deg, #1a4d7a, #0e3a63);
    min-height: 220px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 0.75rem;
}
.laptop-video-badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    background: #B42318;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
}
.laptop-instructor { color: rgba(255,255,255,0.9); font-size: 0.7rem; font-weight: 600; }
.laptop-content {
    padding: 0.75rem;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    font-size: 0.72rem;
}
.laptop-diagram {
    flex: 1;
    background: #F3F6F9;
    border: 1px dashed var(--line);
    border-radius: 6px;
    margin: 0.35rem 0 0.5rem;
    position: relative;
    min-height: 110px;
}
.diagram-label {
    position: absolute;
    bottom: 0.4rem;
    left: 0.45rem;
    font-size: 0.62rem;
    color: var(--muted);
}
.laptop-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.laptop-actions span {
    font-size: 0.62rem;
    padding: 0.2rem 0.45rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--muted);
}
.laptop-actions span.is-primary {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    font-weight: 600;
}
.plan-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
}
.plan-card.featured { border: 2px solid var(--navy); position: relative; }
.plan-badge {
    position: absolute; top: 0; right: 1.2rem;
    background: var(--navy); color: #fff;
    font-size: 0.72rem; font-weight: 700;
    padding: 0.35rem 0.7rem; border-radius: 0 0 6px 6px;
}
.price { font-family: 'Fraunces', serif; font-size: 1.8rem; color: var(--navy); }

.pub-footer {
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 1.4rem 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.pub-footer-rich {
    background: #fff;
    border-top: 1px solid var(--line);
    color: var(--ink);
}
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--navy); }

.home-grid .feature-tile {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.35rem;
    height: 100%;
}
.home-grid .feature-tile h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.cta-band {
    background: var(--navy);
    color: #fff;
    border-radius: 14px;
    padding: 2.5rem 2rem;
}
.cta-band h2, .cta-band p { color: #fff; }
.learn-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--navy-soft);
}
.pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--navy-soft);
    color: var(--navy);
}
.pill.premium { background: var(--navy); color: #fff; }
.exam-tabs .nav-link {
    color: var(--navy);
    border: 1px solid var(--line);
    margin-right: 0.4rem;
    border-radius: 8px !important;
}
.exam-tabs .nav-link.active {
    background: var(--navy) !important;
    color: #fff !important;
    border-color: var(--navy) !important;
}
.faq-search { max-width: 420px; }
.contact-aside {
    background: var(--navy-soft);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.plan-card ul { padding-left: 1.1rem; margin-bottom: 1rem; }
.plan-card li { margin-bottom: 0.35rem; color: var(--muted); font-size: 0.92rem; }

.public-body { background: var(--paper); }

.app-shell {
    --topbar-h: 58px;
    --sidebar-w: 250px;
    --sidebar-w-collapsed: 76px;
    min-height: 100vh;
    background: var(--paper);
    padding-top: var(--topbar-h);
    padding-left: var(--sidebar-w);
    transition: padding-left 0.2s ease;
}
.app-shell.sidebar-collapsed {
    padding-left: var(--sidebar-w-collapsed);
}
.app-topbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    z-index: 50;
}
.app-topbar .brand {
    white-space: nowrap;
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
}
.app-search {
    flex: 1;
    max-width: 520px;
    margin: 0 auto;
    min-width: 0;
}
.app-search input {
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #F3F6F9;
    padding: 0.45rem 1rem 0.45rem 2.2rem;
    font-size: 0.92rem;
}
.app-layout {
    min-height: calc(100vh - var(--topbar-h));
    width: 100%;
}
.app-sidebar {
    background: #EEF3F8;
    border-right: 1px solid var(--line);
    padding: 0.85rem 0.75rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    z-index: 45;
    overflow: hidden;
    transition: width 0.2s ease, transform 0.25s ease;
}
.sidebar-head {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}
.sidebar-brand-panel {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background: linear-gradient(135deg, var(--navy) 0%, #1a5a8a 100%);
    border-radius: 12px;
    padding: 0.75rem;
    color: #fff;
    box-shadow: 0 4px 14px rgba(14, 58, 99, 0.18);
}
.sidebar-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.15rem;
}
.sidebar-brand-text {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.sidebar-portal-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}
.side-role {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--navy);
    background: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    min-width: 0;
    max-width: 100%;
}
.side-nav-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6B8299;
    padding: 0.55rem 0.5rem 0.35rem;
    flex-shrink: 0;
}
.side-role i {
    font-size: 0.95rem;
    flex-shrink: 0;
}
.side-role-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-close-btn,
.sidebar-collapse-btn {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.4rem 0.55rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}
.sidebar-brand-panel .sidebar-close-btn {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.sidebar-close-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    flex-shrink: 0;
}
.sidebar-collapse-btn {
    margin-top: 0.5rem;
    width: 100%;
    flex-shrink: 0;
}
.sidebar-collapse-btn:hover,
.sidebar-close-btn:hover {
    background: var(--navy-soft);
}
.sidebar-brand-panel .sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}
.app-shell.sidebar-collapsed .app-sidebar {
    width: var(--sidebar-w-collapsed);
    padding-left: 0.55rem;
    padding-right: 0.55rem;
}
.app-shell.sidebar-collapsed .side-role-text,
.app-shell.sidebar-collapsed .side-label,
.app-shell.sidebar-collapsed .sidebar-collapse-btn .side-label,
.app-shell.sidebar-collapsed .side-nav-label,
.app-shell.sidebar-collapsed .sidebar-brand-text,
.app-shell.sidebar-collapsed .sidebar-close-btn {
    display: none;
}
.app-shell.sidebar-collapsed .sidebar-brand-panel {
    justify-content: center;
    padding: 0.65rem 0.45rem;
}
.app-shell.sidebar-collapsed .sidebar-brand-icon {
    margin: 0 auto;
}
.app-shell.sidebar-collapsed .side-role {
    justify-content: center;
    padding: 0.4rem;
    width: 100%;
}
.app-shell.sidebar-collapsed .sidebar-collapse-btn i {
    transform: rotate(180deg);
}
.app-shell.sidebar-collapsed .side-nav a {
    justify-content: center;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
}
.side-nav {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    padding-right: 0.15rem;
    margin-right: -0.15rem;
    scrollbar-width: thin;
    scrollbar-color: #7A96B0 #D8E4EE;
}
.side-nav::-webkit-scrollbar {
    width: 7px;
}
.side-nav::-webkit-scrollbar-track {
    background: #D8E4EE;
    border-radius: 999px;
    margin: 4px 0;
}
.side-nav::-webkit-scrollbar-thumb {
    background: #7A96B0;
    border-radius: 999px;
    border: 1px solid #D8E4EE;
}
.side-nav::-webkit-scrollbar-thumb:hover {
    background: var(--navy);
}
.side-nav a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 0.15rem;
    font-size: 0.92rem;
    white-space: nowrap;
}
.side-nav a i {
    font-size: 1.05rem;
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
}
.side-label {
    overflow: hidden;
    text-overflow: ellipsis;
}
.side-nav a.is-active { background: var(--navy); color: #fff; }
.side-nav a:hover:not(.is-active) { background: #e1eaf2; color: var(--navy); }
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: var(--topbar-h) 0 0 0;
    background: rgba(14, 58, 99, 0.35);
    z-index: 40;
}
.app-shell.sidebar-mobile-open .sidebar-backdrop {
    display: block;
}
.app-main {
    padding: 1.25rem 1.5rem 3rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.learn-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.learn-header h1 {
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    margin-bottom: 0.35rem;
}
.learn-header p {
    color: var(--muted);
    margin: 0;
    max-width: 52ch;
}
.learn-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.learn-section-head h2 {
    font-size: 1.15rem;
    margin: 0;
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    color: var(--ink);
}
.learn-section-head a {
    font-size: 0.92rem;
    font-weight: 600;
}

.featured-module-card {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    min-height: 250px;
    height: 100%;
}
.featured-module-media {
    position: relative;
    min-height: 220px;
    background:
        linear-gradient(180deg, rgba(10, 44, 76, 0.08), rgba(10, 44, 76, 0.35)),
        url('https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?auto=format&fit=crop&w=900&q=80') center/cover no-repeat;
}
.featured-badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--navy);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
}
.featured-module-body {
    padding: 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
}
.module-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}
.featured-module-body h2 {
    font-size: 1.25rem;
    margin-bottom: 0.55rem;
}
.featured-module-body p {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: auto;
}
.featured-module-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 0.9rem;
    margin-top: 1rem;
    font-size: 0.92rem;
}
.featured-module-footer a {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.daily-goal-card {
    background: #EAF1F7;
    border: 1px solid #D5E3EF;
    border-radius: 12px;
    padding: 1.25rem;
}
.daily-goal-head {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--muted);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.daily-goal-stat {
    font-size: 1.05rem;
    color: var(--ink);
    margin: 0.45rem 0 0.75rem;
}
.daily-goal-stat strong {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    color: var(--navy);
    line-height: 1;
}
.daily-progress {
    height: 10px;
    margin-bottom: 1rem;
    background: #D5E3EF;
}
.next-quiz-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.85rem;
}
.next-quiz-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #FCE8E6;
    color: #B42318;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.next-quiz-copy strong {
    display: block;
    font-size: 0.95rem;
    color: var(--ink);
}
.next-quiz-play {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--navy-soft);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
}
.next-quiz-play:hover {
    background: var(--navy);
    color: #fff;
}

.category-card {
    position: relative;
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.15rem 1.1rem 1rem;
    height: 100%;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.category-card:hover {
    border-color: #B8C9DA;
    box-shadow: 0 4px 14px rgba(14, 58, 99, 0.08);
}
.category-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, transparent 50%, #EAF1F7 50%);
}
.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #EAF1F7;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    font-size: 1.05rem;
}
.category-card h3 {
    font-size: 1rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.2rem;
}
.category-meta {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.85rem;
}
.category-progress {
    height: 6px;
    background: #E4EAF0;
}

.signs-review-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.25rem;
}
.signs-review-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}
.signs-review-head h2 {
    font-size: 1.05rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.2rem;
}
.signs-review-head p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
}
.signs-nav {
    display: flex;
    gap: 0.45rem;
}
.signs-nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
}
.signs-nav-btn:hover {
    background: var(--navy-soft);
}
.signs-carousel {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}
.sign-review-card {
    flex: 0 0 170px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.9rem 0.75rem;
    text-align: center;
}
.sign-review-graphic {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.55rem;
}
.sign-review-graphic img {
    max-height: 68px;
    max-width: 68px;
}
.sign-review-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.35rem;
}
.sign-review-status {
    font-size: 0.78rem;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    justify-content: center;
}
.sign-review-status.missed {
    color: var(--danger);
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.dash-header h1 {
    font-size: clamp(1.65rem, 3vw, 2rem);
    margin-bottom: 0.35rem;
}
.dash-header p {
    color: var(--muted);
    margin: 0;
    max-width: 56ch;
}
.dash-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
}
.dash-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.dash-card-head h2,
.dash-needs-title {
    font-size: 1rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}
.dash-card-head a {
    font-size: 0.9rem;
    font-weight: 600;
}
.dash-badge {
    background: var(--navy-soft);
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    white-space: nowrap;
}
.dash-progress-bar {
    height: 12px;
    background: #E4EAF0;
    margin-bottom: 1.1rem;
}
.dash-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}
.dash-stat-box {
    background: #F3F6F9;
    border-radius: 10px;
    padding: 0.85rem 0.95rem;
}
.dash-stat-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.35rem;
}
.dash-stat-value {
    font-family: 'Fraunces', serif;
    font-size: 1.65rem;
    color: var(--navy);
    line-height: 1.1;
}
.dash-upnext {
    background: var(--navy);
    color: #fff;
    border-radius: 12px;
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
}
.dash-upnext-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.dash-upnext h3 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0.65rem 0 0.35rem;
}
.dash-upnext-meta {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.72);
    margin-bottom: auto;
    padding-bottom: 1rem;
}
.dash-upnext-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    background: #fff;
    color: var(--navy);
    font-weight: 700;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    margin-top: 0.5rem;
}
.dash-upnext-btn:hover {
    background: var(--navy-soft);
    color: var(--navy);
}
.dash-needs-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
}
.dash-needs-title i {
    color: var(--danger);
}
.dash-weak-item + .dash-weak-item {
    margin-top: 0.85rem;
}
.dash-weak-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}
.dash-weak-head strong {
    color: var(--danger);
    font-weight: 700;
}
.dash-weak-bar {
    height: 6px;
    background: #F3D4D1;
}
.dash-weak-bar .progress-bar {
    background: var(--danger);
}
.dash-empty,
.dash-empty-cell {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}
.dash-table thead th {
    background: #EAF1F7;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 0;
    padding: 0.7rem 0.85rem;
}
.dash-table tbody td {
    padding: 0.8rem 0.85rem;
    font-size: 0.92rem;
    border-color: var(--line);
    vertical-align: middle;
}
.dash-status {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
}
.dash-status.is-pass {
    background: #D9E8F3;
    color: var(--navy);
}
.dash-status.is-fail {
    background: #FCE8E6;
    color: var(--danger);
}
.dash-score-fail {
    color: var(--danger);
    font-weight: 600;
}
.dash-cta-card {
    background: #EAF1F7;
    border-color: #D5E3EF;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}
.dash-cta-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
}
.dash-cta-card h3 {
    font-size: 1.1rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.35rem;
}
.dash-cta-card p {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
    max-width: 34ch;
}
.dash-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}
.dash-live-card {
    display: flex;
    flex-direction: column;
}
.dash-live-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.dash-live-head h3 {
    font-size: 1rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.dash-live-head h3 i {
    color: var(--navy);
}
.dash-live-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    background: #EAF1F7;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}
.dash-live-card h4 {
    font-size: 1rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.25rem;
}
.dash-live-instructor {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: auto;
}
.dash-live-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.85rem 0.95rem;
    background: #EAF1F7;
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--muted);
}
.dash-live-footer a {
    font-weight: 700;
    white-space: nowrap;
}

/* Lesson page */
.lesson-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.lesson-header {
    margin-bottom: 1rem;
}
.lesson-header h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0.35rem 0;
}
.lesson-header p {
    color: var(--muted);
    margin: 0;
    max-width: 60ch;
}
.lesson-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    font-size: 0.82rem;
    color: var(--muted);
}
.lesson-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.lesson-type-pill,
.lesson-done-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--navy-soft);
    color: var(--navy);
}
.lesson-done-pill {
    background: #D9E8F3;
}
.lesson-progress-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
}
.lesson-content-card {
    padding: 1.5rem;
}
.lesson-source {
    background: #EAF1F7;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1rem;
}
.lesson-content {
    line-height: 1.7;
    color: var(--ink);
    white-space: pre-wrap;
}
.lesson-actions-card h3,
.lesson-notes-card h3 {
    font-size: 0.95rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    margin-bottom: 0.85rem;
}
.lesson-action-form {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.lesson-complete-msg {
    background: #D9E8F3;
    color: var(--navy);
    border-radius: 8px;
    padding: 0.7rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}
.lesson-notes-card textarea {
    border-color: var(--line);
    font-size: 0.92rem;
}

/* Quiz result page */
.result-hero {
    text-align: center;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    margin-bottom: 1.25rem;
}
.result-hero.is-pass {
    background: linear-gradient(180deg, #EAF1F7, #fff);
    border: 1px solid #D5E3EF;
}
.result-hero.is-fail {
    background: linear-gradient(180deg, #FCE8E6, #fff);
    border: 1px solid #F0C7C2;
}
.result-hero-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.result-hero.is-pass .result-hero-icon { color: var(--navy); }
.result-hero.is-fail .result-hero-icon { color: var(--danger); }
.result-hero h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}
.result-hero p {
    color: var(--muted);
    margin-bottom: 0.75rem;
}
.result-score {
    font-family: 'Fraunces', serif;
    font-size: 2.5rem;
    color: var(--navy);
    line-height: 1;
}
.result-hero.is-fail .result-score { color: var(--danger); }
.result-stat-card {
    padding: 1.1rem;
}
.result-stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 0.35rem;
}
.result-stat-value {
    font-family: 'Fraunces', serif;
    font-size: 1.75rem;
    line-height: 1.1;
}
.result-question-card {
    padding: 1.15rem 1.25rem;
    border-left: 4px solid var(--line);
}
.result-question-card.is-correct { border-left-color: var(--navy); }
.result-question-card.is-wrong { border-left-color: var(--danger); }
.result-q-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}
.result-q-num {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
}
.result-q-status {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.result-q-prompt {
    font-weight: 600;
    margin-bottom: 0.85rem;
}
.result-answer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.result-answer-box {
    background: #F3F6F9;
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
    font-size: 0.9rem;
}
.result-answer-box.is-correct-answer {
    background: #EAF1F7;
    border: 1px solid #D5E3EF;
}
.result-explanation {
    background: #F8FAFC;
    border-radius: 8px;
    padding: 0.75rem 0.85rem;
    font-size: 0.88rem;
    color: var(--muted);
}
.result-explanation strong {
    display: block;
    color: var(--ink);
    margin-bottom: 0.25rem;
}
.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

/* Live classes page */
.live-session-card {
    display: flex;
    flex-direction: column;
}
.live-session-card h4 {
    font-size: 1.05rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    color: var(--ink);
    margin: 0.35rem 0;
}
.live-session-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}
.live-session-desc {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: auto;
}
.live-session-actions {
    display: flex;
    align-items: center;
}
.live-register-btn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--navy);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
}
.live-register-btn:hover {
    color: var(--navy-deep);
}
.live-how-card h3 {
    font-size: 1rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.live-how-card p {
    color: var(--muted);
    font-size: 0.92rem;
}
.dash-empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--muted);
}
.dash-empty-state i {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
    display: block;
}

/* Student topbar */
.app-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.topbar-icon-btn,
.topbar-profile-btn {
    border: 0;
    background: transparent;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0.35rem 0.45rem;
    position: relative;
    text-decoration: none;
}
.topbar-icon-btn:hover,
.topbar-profile-btn:hover {
    background: var(--navy-soft);
    color: var(--navy);
}
.topbar-alert-btn { position: relative; }
.topbar-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.topbar-profile-btn {
    gap: 0.45rem;
    padding: 0.2rem 0.45rem 0.2rem 0.2rem;
    font-weight: 600;
    font-size: 0.88rem;
}
.topbar-profile-btn img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.topbar-dropdown {
    position: relative;
}
.topbar-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    min-width: 190px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(14, 58, 99, 0.12);
    padding: 0.35rem;
    display: none;
    z-index: 60;
}
.topbar-dropdown.is-open .topbar-menu {
    display: block;
}
.topbar-menu-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    padding: 0.35rem 0.55rem;
}
.topbar-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.55rem;
    border-radius: 6px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 500;
}
.topbar-menu a:hover,
.topbar-menu a.is-active {
    background: var(--navy-soft);
    color: var(--navy);
}
.topbar-menu a.is-danger {
    color: var(--danger);
}
.topbar-menu a.is-danger:hover {
    background: #FCE8E6;
}
.topbar-profile-head {
    padding: 0.45rem 0.55rem 0.55rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.25rem;
}
.topbar-profile-head strong {
    display: block;
    font-size: 0.9rem;
}
.topbar-profile-head small {
    color: var(--muted);
}

/* Settings */
.settings-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1rem;
    align-items: start;
}
.settings-nav {
    padding: 0.65rem;
    position: sticky;
    top: 74px;
}
.settings-nav-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
}
.settings-nav-link:hover {
    background: var(--navy-soft);
    color: var(--navy);
}
.settings-nav-link.is-active {
    background: var(--navy);
    color: #fff;
}
.settings-panel {
    padding: 1.35rem 1.5rem;
}
.settings-panel h2 {
    font-size: 1.15rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.settings-lead {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}
.settings-form .form-label {
    font-weight: 600;
    font-size: 0.88rem;
}
.settings-avatar-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
}
.settings-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--line);
}
.settings-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    margin: 0;
}
.settings-toggle:last-of-type {
    border-bottom: 0;
}
.settings-toggle span {
    font-weight: 500;
}
.settings-toggle input {
    width: 42px;
    height: 22px;
    accent-color: var(--navy);
}
.settings-info-box {
    display: flex;
    gap: 0.65rem;
    background: #EAF1F7;
    border-radius: 8px;
    padding: 0.85rem;
    color: var(--muted);
    font-size: 0.9rem;
}
.settings-info-box i {
    color: var(--navy);
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

/* Bookmarks */
.bookmark-card h3 {
    font-size: 1rem;
    margin: 0.5rem 0 0.25rem;
}
.bookmark-card p {
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 0.85rem;
}
.bookmark-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #EAF1F7;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
}
.bookmark-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
}
.bookmark-remove {
    border: 0;
    background: none;
    color: var(--danger);
    font-size: 0.85rem;
    padding: 0;
}

/* Notifications */
.notifications-list {
    display: grid;
    gap: 0.75rem;
}
.notification-card {
    padding: 1rem 1.15rem;
}
.notification-card.is-unread {
    border-left: 4px solid var(--navy);
    background: #FAFCFE;
}
.notification-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.card-plain {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: none;
}
.card-plain:hover { transform: none; box-shadow: none; }
.progress { height: 8px; background: #E4EAF0; }
.progress-bar { background: var(--navy); }
.stat-num { font-family: 'Fraunces', serif; font-size: 1.8rem; color: var(--navy); }
.upnext { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.25rem; }
.upnext .btn { background: #fff; color: var(--navy); font-weight: 700; }
.badge-pass { background: var(--navy-soft); color: var(--navy); }
.badge-fail { background: #FCE8E6; color: var(--danger); }
.sign-tile { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1rem; text-align: center; }
.featured-lesson {
    border-radius: 12px;
    overflow: hidden;
    min-height: 210px;
    background: #123a5c center/cover no-repeat;
    color: #fff;
    position: relative;
}
.featured-lesson .veil { background: linear-gradient(90deg, rgba(10,30,50,0.75), rgba(10,30,50,0.2)); padding: 1.5rem; height: 100%; }

.quiz-option { border: 1px solid var(--line); border-radius: 8px; padding: 0.85rem 1rem; cursor: pointer; display: block; }
.quiz-option:has(input:checked) { border-color: var(--navy); background: var(--navy-soft); }
.timer-box { border: 1px solid #F0C7C2; color: var(--danger); padding: 0.4rem 0.8rem; border-radius: 8px; font-weight: 700; }

.cert-sheet {
    max-width: 720px;
    margin: 0 auto;
    border: 8px solid var(--navy);
    background: #fff;
    padding: 3rem;
    text-align: center;
}

.auth-wrap { min-height: calc(100vh - 80px); display: flex; align-items: center; padding: 2rem 0; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 2rem; box-shadow: 0 8px 28px rgba(14, 58, 99, 0.06); }
.password-input-wrap {
    position: relative;
}
.password-input-wrap .password-input {
    padding-right: 2.75rem;
}
.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #6B8299;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
}
.password-toggle-btn:hover {
    color: var(--navy);
    background: var(--navy-soft);
}
.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    border: 1px solid #dadce0;
    border-radius: 999px;
    background: #fff;
    color: #3c4043;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn-google:hover {
    background: #f8f9fa;
    border-color: #c6c9cc;
    color: #3c4043;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15);
}
.btn-google-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* Admin portal */
.admin-dash-header {
    margin-bottom: 1.5rem;
}
.admin-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.admin-stat-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.admin-stat-link:hover .admin-stat-card {
    border-color: #B8CFE2;
    box-shadow: 0 6px 18px rgba(14, 58, 99, 0.08);
    transform: translateY(-1px);
}
.admin-stat-card {
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.admin-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--navy-soft);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    margin-bottom: 0.65rem;
}
.admin-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.admin-stat-value {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}
.admin-stat-hint {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.2rem;
}
.admin-panel .admin-card-sub {
    margin: 0.15rem 0 0;
    font-size: 0.88rem;
    color: var(--muted);
}
.admin-card-body {
    padding-top: 0.25rem;
}
.admin-table-wrap {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}
.admin-table {
    margin: 0;
    font-size: 0.9rem;
}
.admin-table thead th {
    background: #F4F8FB;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5A7288;
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem;
    white-space: nowrap;
}
.admin-table tbody td {
    padding: 0.8rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #EEF3F7;
}
.admin-table tbody tr:last-child td {
    border-bottom: none;
}
.admin-table tbody tr:hover {
    background: #FAFCFE;
}
.admin-question-thumb {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    background: #fff;
}
.admin-question-preview {
    max-height: 120px;
    max-width: 200px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: #fff;
    padding: 4px;
}
.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.admin-badge.is-success { background: #E3F5EA; color: #1B7A42; }
.admin-badge.is-info { background: #E3EEF8; color: #1A5A8A; }
.admin-badge.is-warning { background: #FFF4E0; color: #9A6B00; }
.admin-badge.is-danger { background: #FDE8E8; color: #B42318; }
.admin-badge.is-muted { background: #EEF2F6; color: #5A7288; }
.admin-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--muted);
}
.admin-empty i {
    font-size: 2rem;
    color: #B8C9D8;
    display: block;
    margin-bottom: 0.75rem;
}
.admin-form-grid {
    display: grid;
    gap: 0.75rem;
}
.admin-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.65rem;
}
.admin-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.85rem 0.5rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #FAFCFE;
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.admin-quick-link i {
    font-size: 1.2rem;
}
.admin-quick-link:hover {
    background: var(--navy-soft);
    border-color: #B8CFE2;
    color: var(--navy);
}
.admin-search-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.admin-search-tab {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
}
.admin-search-tab.is-active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
.admin-report-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}
.admin-report-bar-track {
    flex: 1;
    height: 8px;
    background: #E8EFF5;
    border-radius: 999px;
    overflow: hidden;
}
.admin-report-bar-fill {
    height: 100%;
    background: var(--navy);
    border-radius: 999px;
}
.admin-report-pct {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy);
    min-width: 2.5rem;
    text-align: right;
}

@media (max-width: 991px) {
    .app-shell {
        padding-left: 0;
    }
    .app-shell.sidebar-collapsed {
        padding-left: 0;
    }
    .app-sidebar {
        transform: translateX(-100%);
        width: min(280px, 86vw);
        box-shadow: 0 8px 28px rgba(14, 58, 99, 0.18);
    }
    .app-shell.sidebar-mobile-open .app-sidebar {
        transform: translateX(0);
    }
    .app-topbar {
        padding: 0.65rem 0.85rem;
        gap: 0.5rem;
    }
    .app-search {
        display: none !important;
    }
    .app-main {
        padding: 1rem 0.85rem 2.5rem;
        max-width: none;
    }
    .topbar-profile-btn span {
        display: none !important;
    }
    .dash-header {
        flex-direction: column;
    }
    .tool-grid { grid-template-columns: 1fr; }
    .laptop-body { grid-template-columns: 1fr; }
    .laptop-side { display: none; }
    .laptop-main { grid-template-columns: 1fr; }
    .hero-photo { height: 240px; }
    .featured-module-card { grid-template-columns: 1fr; }
    .featured-module-media { min-height: 180px; }
    .learn-header { flex-direction: column; }
    .result-answer-grid { grid-template-columns: 1fr; }
    .dash-live-footer { flex-direction: column; align-items: flex-start; }
    .settings-layout { grid-template-columns: 1fr; }
    .settings-nav { position: static; }
}

@media (min-width: 768px) and (max-width: 991px) {
    .app-main {
        padding: 1.15rem 1.25rem 2.75rem;
    }
    .app-search.d-md-block {
        display: block !important;
        max-width: 280px;
    }
}

@media (max-width: 575px) {
    .app-topbar-actions {
        gap: 0.15rem;
    }
    .topbar-icon-btn,
    .topbar-profile-btn {
        padding: 0.3rem;
    }
    .app-main {
        padding: 0.85rem 0.75rem 2rem;
    }
}

/* Support & messaging */
.support-thread-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    background: #fff;
}
.support-reply-bubble {
    background: var(--navy-soft);
    border-left: 3px solid var(--navy);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
}
.support-ticket-link {
    display: block;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, background 0.15s;
}
.support-ticket-link:hover,
.support-ticket-link.is-active {
    border-color: var(--navy);
    background: var(--navy-soft);
    color: inherit;
}
.support-msg {
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.65rem;
}
.support-msg.is-user {
    background: #f4f7fa;
    border: 1px solid var(--line);
}
.support-msg.is-staff {
    background: var(--navy-soft);
    border: 1px solid rgba(14, 58, 99, 0.15);
}
.support-msg-head {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.cert-studio-preview {
    text-align: center;
    border: 2px solid var(--navy);
}
.admin-search-form .input-group {
    max-width: 360px;
}

/* Certificate templates */
.cert-template-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
}
.cert-template-option {
    border: 2px solid var(--line);
    border-radius: 10px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-size: 0.78rem;
}
.cert-template-option input { display: none; }
.cert-template-option i { display: block; font-size: 1.25rem; margin-bottom: 0.25rem; color: var(--navy); }
.cert-template-option.is-active,
.cert-template-option:hover {
    border-color: var(--navy);
    background: var(--navy-soft);
}
.cert-sheet { position: relative; overflow: hidden; }
.cert-inner { position: relative; z-index: 1; }
.cert-brand { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.cert-title { font-size: 1.5rem; margin: 0.5rem 0; }
.cert-lead { color: var(--muted); margin-bottom: 0.25rem; }
.cert-name { font-size: 1.75rem; color: var(--navy); margin: 0.75rem 0; }
.cert-body { margin-bottom: 0.5rem; }
.cert-score { font-weight: 600; }
.cert-number { margin-top: 1rem; }
.cert-footer { font-size: 0.8rem; color: var(--muted); margin-top: 1rem; }
.cert-date { font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; }

.cert-tpl-classic { border: 8px solid var(--navy); background: #fff; padding: 3rem 2rem; }
.cert-tpl-elegant {
    border: 3px double #c9a227;
    background: linear-gradient(180deg, #fffef8 0%, #fff 100%);
    padding: 3rem 2rem;
    font-family: Georgia, 'Times New Roman', serif;
}
.cert-tpl-elegant .cert-name { color: #8b6914; }
.cert-divider-gold { width: 80px; height: 3px; background: linear-gradient(90deg, transparent, #c9a227, transparent); margin: 0.5rem auto 1rem; }

.cert-tpl-modern {
    border: none;
    background: #fff;
    padding: 0;
    box-shadow: 0 8px 32px rgba(14,58,99,0.12);
}
.cert-tpl-modern .cert-modern-header {
    height: 12px;
    background: linear-gradient(90deg, var(--navy), #1a5a8a, #3d7ab5);
}
.cert-tpl-modern .cert-inner { padding: 2.5rem 2rem; }

.cert-tpl-official {
    border: 4px solid var(--navy);
    background: #fafbfc;
    padding: 2.5rem 2rem;
}
.cert-tpl-official .cert-seal {
    width: 64px; height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(14,58,99,0.25);
}

.cert-tpl-minimal {
    border: 1px solid var(--line);
    background: #fff;
    padding: 3rem 2rem;
    box-shadow: none;
}
.cert-tpl-minimal .cert-title { font-weight: 300; letter-spacing: 0.05em; }
.cert-tpl-minimal .cert-name { font-weight: 600; font-size: 1.5rem; }

/* Admin modals */
.admin-modal .modal-content {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(14, 58, 99, 0.15);
}
.admin-modal .modal-header {
    background: linear-gradient(135deg, var(--navy) 0%, #1a5a8a 100%);
    color: #fff;
    border: none;
    padding: 1rem 1.25rem;
}
.admin-modal .modal-header .btn-close { filter: invert(1); opacity: 0.85; }
.admin-modal .modal-body { padding: 1.25rem; }
.admin-modal .modal-footer {
    border-top: 1px solid var(--line);
    background: #f8fafc;
    padding: 0.85rem 1.25rem;
}

/* Certificate types & distinct templates */
.cert-type-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
.cert-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    border: 2px solid var(--line);
    border-radius: 12px;
    padding: 0.85rem 0.5rem;
    text-decoration: none;
    color: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.cert-type-option i { font-size: 1.35rem; color: var(--navy); }
.cert-type-option.is-active,
.cert-type-option:hover {
    border-color: var(--navy);
    background: var(--navy-soft);
    color: inherit;
    transform: translateY(-1px);
}
.cert-type-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}
.cert-features {
    list-style: none;
    padding: 0;
    margin: 0.75rem auto;
    max-width: 420px;
    text-align: left;
}
.cert-features li {
    padding: 0.25rem 0 0.25rem 1.25rem;
    position: relative;
    font-size: 0.88rem;
    color: var(--muted);
}
.cert-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--navy);
    font-weight: 700;
}

.cert-type-learning .cert-type-badge { background: #dbeafe; color: #1e40af; }
.cert-type-practice .cert-type-badge { background: #d1fae5; color: #065f46; }
.cert-type-main .cert-type-badge { background: #fef3c7; color: #92400e; }

.cert-tpl-learning {
    border: none;
    background: #fff;
    padding: 0;
    box-shadow: 0 10px 36px rgba(30, 64, 175, 0.14);
}
.cert-tpl-learning .cert-modern-header {
    height: 14px;
    background: linear-gradient(90deg, #1e40af, #3b82f6, #60a5fa);
}
.cert-tpl-learning .cert-inner { padding: 2.5rem 2rem; }
.cert-tpl-learning .cert-name { color: #1e40af; }

.cert-tpl-practice {
    border: 2px dashed #10b981;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
    padding: 2.5rem 2rem;
    border-radius: 16px;
}
.cert-tpl-practice .cert-name { color: #047857; }
.cert-tpl-practice .cert-features li::before { color: #10b981; }

.cert-tpl-main {
    border: 4px double #c9a227;
    background: linear-gradient(180deg, #fffdf5 0%, #fff 55%, #fafbfc 100%);
    padding: 2.5rem 2rem;
    font-family: Georgia, 'Times New Roman', serif;
}
.cert-tpl-main .cert-name { color: #8b6914; font-size: 2rem; }
.cert-tpl-main .cert-seal {
    width: 72px; height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a227, #8b6914);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 18px rgba(139, 105, 20, 0.3);
}

.cert-tpl-ribbon {
    border: 3px solid var(--navy);
    background: #fff;
    padding: 2.5rem 2rem;
    position: relative;
}
.cert-ribbon {
    position: absolute;
    top: 18px;
    right: -32px;
    background: var(--navy);
    color: #fff;
    padding: 0.35rem 2.5rem;
    transform: rotate(45deg);
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(14,58,99,0.2);
}
.cert-labels-form {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem;
    background: #f8fafc;
}
