:root {
    --color-engine: #EF4444;
    --color-engine-dim: #B91C1C;
    --color-diag: #10B981;
    --color-diag-dim: #047857;
    --color-slate: #1E293B;
    --color-slate-deep: #0F172A;
    --color-slate-raised: #334155;
    --color-ink: #F8FAFC;
    --color-muted: #94A3B8;
    --color-line: rgba(148, 163, 184, 0.22);
    --radius: 14px;
    --shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
    --font: "Segoe UI", system-ui, -apple-system, sans-serif;
    --mono: "Cascadia Mono", "Consolas", ui-monospace, monospace;
    --header-h: 72px;
    --bottom-nav-h: 0px;
    --bottom-nav-height: var(--bottom-nav-h);
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    max-width: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: var(--font);
    background:
        radial-gradient(1100px 480px at 8% -8%, rgba(239, 68, 68, 0.16), transparent 52%),
        radial-gradient(900px 420px at 108% 4%, rgba(16, 185, 129, 0.12), transparent 48%),
        linear-gradient(180deg, var(--color-slate-deep), var(--color-slate) 38%, #0B1220);
    color: var(--color-ink);
    line-height: 1.5;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
    z-index: 30;
    background: var(--color-diag);
    color: #04210f;
    padding: 8px 12px;
    border-radius: 8px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    min-height: var(--header-h);
    border-bottom: 1px solid #1E293B;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
    overflow: visible;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    flex-shrink: 1;
}

.brand-mark {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--color-engine), #7F1D1D 58%, var(--color-diag));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.brand-text strong {
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    line-height: 1.15;
}

.brand-text small {
    color: var(--color-muted);
    font-size: 0.78rem;
    line-height: 1.25;
    white-space: nowrap;
}

.qma-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    flex-shrink: 1;
}

.qma-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.qma-logo-img {
    display: block;
    border-radius: 999px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.qma-logo-img.is-sm { width: 32px; height: 32px; }
.qma-logo-img.is-md { width: 40px; height: 40px; }
.qma-logo-img.is-lg { width: 64px; height: 64px; }
.qma-logo-img.is-xl { width: 96px; height: 96px; }

.qma-logo-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.qma-logo-text strong {
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    line-height: 1.15;
}

.qma-logo-text small {
    color: #f87171;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin: 0 0 16px;
}

.support-fab-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.support-fab-logo {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    object-fit: contain;
    background: #fff;
}

.notif-ico-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
    display: block;
}

.toplinks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
    min-width: 0;
}

.top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    position: relative;
    overflow: visible;
    z-index: 60;
}

.notif-bell {
    position: relative;
    z-index: 70;
}

.notif-bell-btn,
.btn-logout {
    position: relative;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgb(51 65 85 / 0.6);
    border-radius: 12px;
    background: rgb(30 41 59 / 0.5);
    color: #cbd5e1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.notif-bell-btn svg,
.btn-logout svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.notif-bell-btn:hover,
.notif-bell-btn:focus-visible {
    color: #e2e8f0;
    background: #1e293b;
    border-color: #475569;
    outline: none;
}

.btn-logout:hover,
.btn-logout:focus-visible {
    background: rgb(239 68 68 / 0.1);
    border-color: rgb(239 68 68 / 0.4);
    color: #f87171;
    outline: none;
    transform: none;
    box-shadow: none;
}

.notif-bell-btn.has-unread {
    animation: notif-bell-shake 1.6s ease-in-out infinite;
}

.notif-bell-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notif-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    left: auto;
    width: min(24rem, calc(100vw - 2rem));
    max-width: min(26rem, calc(100vw - 2rem));
    max-height: min(24rem, calc(100dvh - 6rem));
    display: flex;
    flex-direction: column;
    background: rgb(15 23 42 / 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #1e293b;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgb(0 0 0 / 0.5);
    z-index: 90;
    overflow: hidden;
}

@media (max-width: 767px) {
    .notif-panel {
        position: fixed;
        top: calc(var(--header-h, 72px) + 6px);
        right: 0.75rem;
        left: auto;
        width: calc(100vw - 1.5rem);
        max-width: 24rem;
    }
}

.notif-panel[hidden] {
    display: none !important;
}

.notif-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #1e293b;
}

.notif-panel-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.notif-panel-head strong {
    color: #f1f5f9;
    font-size: 0.95rem;
    font-weight: 800;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.notif-pulse {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #34d399;
    box-shadow: 0 0 10px rgb(52 211 153 / 0.85);
    animation: notif-pulse 1.6s ease-in-out infinite;
}

@keyframes notif-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}

.notif-panel-head span {
    color: #94a3b8;
    font-size: 0.68rem;
}

.notif-mark-all {
    margin-left: auto;
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    padding: 6px 8px;
    border-radius: 8px;
}

.notif-mark-all:hover {
    color: #fff;
    background: rgb(30 41 59 / 0.8);
}

.notif-panel-list {
    overflow-y: auto;
    max-height: 18rem;
    padding: 10px 10px 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notif-empty {
    margin: 0;
    padding: 28px 14px;
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
}

.notif-item,
.notif-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    text-align: left;
    border: 1px solid rgb(51 65 85 / 0.5);
    border-radius: 12px;
    background: rgb(30 41 59 / 0.5);
    color: #e2e8f0;
    padding: 14px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.notif-item.is-unread,
.notif-card.is-unread {
    background: rgb(30 41 59 / 0.92);
    border-color: rgb(16 185 129 / 0.28);
}

.notif-item:hover,
.notif-card:hover {
    background: #1e293b;
    border-color: #475569;
}

.notif-item.is-unread::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 999px;
    background: #34d399;
    box-shadow: 0 0 8px rgb(52 211 153 / 0.9);
}

.notif-item.is-unread {
    padding-left: 18px;
}

.notif-ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgb(51 65 85 / 0.45);
    color: #94a3b8;
    flex-shrink: 0;
}

.notif-ico-svg {
    width: 20px;
    height: 20px;
    display: block;
}

.notif-ico.is-invoice,
.notif-ico.is-payment {
    background: rgb(14 165 233 / 0.12);
    color: #7dd3fc;
}

.notif-ico.is-course {
    background: rgb(16 185 129 / 0.12);
    color: #34d399;
}

.notif-ico.is-message,
.notif-ico.is-forum,
.notif-ico.is-chat {
    background: rgb(99 102 241 / 0.16);
    color: #c4b5fd;
}

.notif-ico.is-system,
.notif-ico.is-info {
    background: rgb(100 116 139 / 0.22);
    color: #cbd5e1;
}

.notif-ico.is-warning,
.notif-ico.is-urgent {
    background: rgb(245 158 11 / 0.14);
    color: #fbbf24;
}

.notif-item-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.notif-item-body strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.notif-item-body small {
    color: #cbd5e1;
    font-size: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 11px;
    font-style: normal;
}

.notif-item-open {
    flex-shrink: 0;
    margin-top: 2px;
    min-height: 32px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgb(16 185 129 / 0.1);
    color: #34d399;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.notif-item:hover .notif-item-open {
    background: rgb(16 185 129 / 0.2);
}

.notif-page-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notif-panel-foot {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #34d399;
    text-decoration: none;
    border-top: 1px solid #1e293b;
}

.notif-toasts {
    position: fixed;
    right: 16px;
    bottom: 88px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notif-toast {
    width: min(20rem, calc(100vw - 32px));
    background: #0f172a;
    border: 1px solid #334155;
    border-left: 3px solid #10b981;
    border-radius: 12px;
    padding: 10px 12px;
    color: #e2e8f0;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.45);
}

.notif-toast.is-urgent {
    border-left-color: #ef4444;
}
.notif-toast.is-payment { border-left-color: #34d399; }
.notif-toast.is-message, .notif-toast.is-forum { border-left-color: #a78bfa; }
.notif-toast.is-invoice { border-left-color: #38bdf8; }
.notif-toast.is-course { border-left-color: #fbbf24; }

.notif-toast strong, .notif-toast span {
    display: block;
}

.notif-toast span {
    color: #94a3b8;
    font-size: 0.72rem;
    margin-top: 4px;
}

.page-notifications .notif-hub .eyebrow {
    margin-bottom: 4px;
}

@keyframes notif-bell-shake {
    0%, 92%, 100% { transform: rotate(0); }
    94% { transform: rotate(-10deg); }
    96% { transform: rotate(8deg); }
    98% { transform: rotate(-6deg); }
}

.currency-switch {
    margin: 0;
    display: flex;
    align-items: center;
}

.currency-switch select {
    width: auto;
    min-width: 7.2rem;
    padding: 7px 28px 7px 10px;
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--color-muted);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    cursor: pointer;
}

.currency-switch select:focus {
    outline: none;
    border-color: #10B981;
    color: #A7F3D0;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.nav-link {
    color: var(--color-ink);
    text-decoration: none;
    font-size: 0.92rem;
    padding: 8px 10px;
    white-space: nowrap;
}

.nav-space {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-decoration: none;
    color: inherit;
    padding: 4px 8px;
    text-align: right;
}

.nav-space strong {
    font-size: 0.88rem;
}

.nav-space small {
    color: var(--color-muted);
    font-size: 0.75rem;
}

.nav-space.is-active strong {
    color: var(--color-diag);
}

.main {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.5rem 1rem 7rem;
    overflow-x: clip;
}

body.app-shell .main {
    padding-bottom: calc(100px + var(--bottom-nav-h, 0px));
    overflow-x: visible;
}

@media (min-width: 640px) {
    .main {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .main {
        padding-bottom: 3rem;
    }
}

@media (min-width: 1024px) {
    .main {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.app-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: center;
    padding: 10px 0 28px;
}

.app-hero-copy h1 {
    max-width: 16em;
}

.hero-slogan {
    margin: 0 0 10px;
    color: #6ee7b7;
    font-size: 1.02rem;
    font-weight: 650;
    line-height: 1.45;
    max-width: 42rem;
}

.badge-ca {
    display: inline-flex;
    align-items: center;
    margin: 0 0 12px;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.12);
    color: #FECACA;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-proof {
    margin: 14px 0 0;
    color: var(--color-muted);
    font-size: 0.88rem;
    max-width: 56ch;
}

.track-section {
    padding-top: 8px;
}

.track-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.track-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
    padding: 18px 18px 16px;
    border-radius: 18px;
    border: 1px solid #1e293b;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(16, 185, 129, 0.08), transparent 46%),
        #0f172a;
}

.track-card-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.28);
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
}

.track-card-icon svg {
    width: 22px;
    height: 22px;
}

.track-card h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.05rem;
    line-height: 1.35;
}

.track-card p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.5;
}

.track-jobs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.track-jobs li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
    color: #e2e8f0;
    font-size: 0.84rem;
}

.track-cnp {
    flex-shrink: 0;
    color: #34d399;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 700;
}

.track-card-link {
    margin-top: auto;
    color: #6ee7b7;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.track-card-link:hover {
    color: #a7f3d0;
}

@media (min-width: 760px) {
    .track-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .track-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.hero-proof-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.hero-proof-pills li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgb(15 23 42 / 0.6);
    border: 1px solid #1e293b;
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 550;
}

.hero-proof-pills svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #34d399;
}

@media (max-width: 639px) {
    .hero-proof-pills {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
}

.cert-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(239, 68, 68, 0.16), transparent 28%),
        linear-gradient(165deg, #1E293B, #0F172A);
    border: 1px solid rgba(248, 250, 252, 0.12);
    border-radius: 18px;
    padding: 22px 22px 20px;
    box-shadow: var(--shadow);
}

.cert-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 12px;
    pointer-events: none;
}

.cert-seal {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #FECACA, var(--color-engine) 55%, var(--color-engine-dim));
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.7);
}

.cert-kicker {
    margin: 0 0 4px;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-diag);
}

.cert-title {
    margin: 0 4.5rem 4px 0;
    font-size: 1.2rem;
}

.cert-line {
    margin: 0 0 14px;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.cert-meta {
    margin: 0 0 14px;
    display: grid;
    gap: 10px;
}

.cert-meta div {
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--color-line);
}

.cert-meta dt {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.cert-meta dd {
    margin: 2px 0 0;
    font-family: var(--mono);
    font-size: 0.88rem;
    color: var(--color-ink);
}

.cert-mods-label {
    margin: 0 0 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
}

.cert-mods {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cert-mods li {
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #A7F3D0;
    font-size: 0.78rem;
    font-weight: 650;
}

.cert-card-live {
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    border-radius: 24px;
    background: #0f172a;
    border: 1px solid #1e293b;
    box-shadow: 0 25px 50px rgba(2, 6, 23, 0.45);
}
.cert-card-live::before {
    display: none;
}
.cert-card-live .cert-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    margin: 0;
    border-bottom: 1px solid #1e293b;
    position: relative;
    z-index: 1;
}
.cert-card-live .cert-kicker {
    display: block;
    margin: 0 0 4px;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}
.cert-card-live .cert-title {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.25;
    color: #fff;
}
.cert-card-live .cert-line {
    margin: 4px 0 0;
    font-size: 0.75rem;
    color: #94a3b8;
}
.cert-card-live .cert-seal {
    position: static;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    font-size: 0.62rem;
    background: rgba(225, 29, 72, 0.2);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fb7185;
    box-shadow: none;
}
.cert-verify-form {
    position: relative;
    z-index: 2;
    margin: 0;
    display: grid;
    gap: 8px;
}
.cert-verify-form label {
    display: block;
    margin: 0;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}
.cert-verify-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    position: static;
}

@media (min-width: 640px) {
    .cert-verify-row {
        flex-direction: row;
        align-items: stretch;
    }
}

.cert-verify-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #1e293b;
    background: #020617;
    color: #fff;
    font-family: var(--mono, ui-monospace, monospace);
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-align: center;
    text-transform: uppercase;
}

@media (min-width: 640px) {
    .cert-verify-input {
        text-align: left;
        width: auto;
    }
}
.cert-verify-input:focus {
    outline: none;
    border-color: #10b981;
}
.cert-verify-btn {
    position: static;
    flex: 0 0 auto;
    align-self: stretch;
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 12px 16px;
    background: #059669;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 650;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(6, 78, 59, 0.35);
    white-space: nowrap;
}

@media (min-width: 640px) {
    .cert-verify-btn {
        width: auto;
        padding: 10px 16px;
        font-size: 0.75rem;
    }
}
.cert-verify-btn:hover {
    background: #10b981;
}
.cert-verify-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}
.cert-result-stack {
    display: grid;
    gap: 12px;
}
.cert-result-stack[hidden] {
    display: none !important;
}
.cert-status-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
}
.cert-status-ok {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.cert-status-err {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.3);
}
.cert-status-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 800;
}
.cert-status-ok .cert-status-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}
.cert-status-err .cert-status-icon {
    background: rgba(244, 63, 94, 0.2);
    color: #fb7185;
}
.cert-status-copy {
    min-width: 0;
}
.cert-status-title {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.3;
}
.cert-status-ok .cert-status-title {
    color: #34d399;
}
.cert-status-err .cert-status-title {
    color: #fb7185;
}
.cert-status-sub {
    margin: 2px 0 0;
    font-size: 0.6875rem;
    color: #cbd5e1;
    line-height: 1.4;
}
.cert-info-card {
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 14px;
    display: grid;
    gap: 12px;
}
.cert-info-row {
    display: grid;
    gap: 4px;
}
.cert-details-label {
    display: block;
    margin: 0;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}
.cert-details-text {
    margin: 0;
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.45;
}
.cert-details-title {
    color: #e2e8f0;
    font-weight: 650;
}
.cert-mods-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.cert-mod-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(6, 78, 59, 0.5);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-compact {
    padding-top: 8px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: var(--color-muted);
    margin: 0 0 10px;
}

.dot-engine,
.dot-diag {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-engine { background: var(--color-engine); box-shadow: 0 0 10px var(--color-engine); }
.dot-diag { background: var(--color-diag); box-shadow: 0 0 10px var(--color-diag); }

h1 {
    margin: 0 0 12px;
    font-size: clamp(1.85rem, 4.4vw, 2.85rem);
    letter-spacing: -0.035em;
    line-height: 1.12;
}

h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.lede {
    margin: 0 0 16px;
    color: var(--color-muted);
    max-width: 58ch;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.page-home .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 640px) {
    .page-home .hero-actions {
        flex-direction: row;
    }

    .page-home .hero-actions .btn {
        flex: 1 1 0;
    }
}

.hero-badge {
    margin: 18px 0 0;
    display: inline-block;
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.08);
    color: #A7F3D0;
    font-size: 0.82rem;
}

.app-section {
    padding: 6px 0 28px;
}

.section-head {
    margin-bottom: 14px;
}

.section-head p {
    margin: 0;
    color: var(--color-muted);
    max-width: 70ch;
}

.grid-3,
.grid-features,
.grid-catalog {
    display: grid;
    gap: 12px;
}

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

.grid-features {
    grid-template-columns: repeat(4, 1fr);
}

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

.card {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.card p {
    margin: 0;
    color: var(--color-muted);
}

.card code {
    font-family: var(--mono);
    color: var(--color-diag);
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 100%;
    padding: 16px;
}

.feature-icon {
    font-size: 1.35rem;
    line-height: 1;
    margin-bottom: 4px;
}

.why-item-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.why-item-short {
    display: none;
}

.why-section {
    padding: 8px 0 16px;
}

@media (min-width: 768px) {
    .why-section {
        padding: 16px 0 24px;
    }

    .why-item-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
        border-radius: 8px;
        background: rgb(16 185 129 / 0.1);
        color: #34d399;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .why-section .section-head {
        margin-bottom: 10px;
    }

    .why-section .section-head p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .why-section .why-list {
        display: flex;
        flex-direction: column;
        gap: 0;
        background: rgb(15 23 42 / 0.6);
        border: 1px solid #1e293b;
        border-radius: 12px;
        overflow: hidden;
    }

    .why-section .why-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        min-height: 0;
        margin: 0;
        padding: 14px 16px;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid #1e293b;
    }

    .why-section .why-item:last-child {
        border-bottom: 0;
    }

    .why-item-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        margin: 0;
        border-radius: 8px;
        background: rgb(16 185 129 / 0.1);
        color: #34d399;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .why-item-copy {
        min-width: 0;
    }

    .why-section .why-item h3 {
        margin: 0 0 2px;
        font-size: 0.875rem;
        font-weight: 700;
        color: #fff;
        line-height: 1.3;
    }

    .why-item-short {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0;
        font-size: 0.75rem;
        line-height: 1.5;
        color: #94a3b8;
    }

    .why-item-full {
        display: none;
    }
}

.catalog-card {
    border-left: 4px solid var(--color-slate-raised);
}

.catalog-ecu {
    border-left-color: var(--color-engine);
}

.catalog-diag {
    border-left-color: var(--color-diag);
}

.catalog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.mod-num {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 999px;
}

.badge-diag,
.badge-emerald {
    background: rgba(16, 185, 129, 0.14);
    color: #A7F3D0;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-ecu,
.badge-rose {
    background: rgba(244, 63, 94, 0.16);
    color: #FECDD3;
    border: 1px solid rgba(244, 63, 94, 0.4);
}

.badge-blue {
    background: rgba(56, 189, 248, 0.16);
    color: #BAE6FD;
    border: 1px solid rgba(56, 189, 248, 0.45);
}

.badge-amber {
    background: rgba(245, 158, 11, 0.16);
    color: #FDE68A;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-purple {
    background: rgba(168, 85, 247, 0.16);
    color: #E9D5FF;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.badge-teal {
    background: rgba(45, 212, 191, 0.16);
    color: #99F6E4;
    border: 1px solid rgba(45, 212, 191, 0.4);
}

.badge-indigo {
    background: rgba(99, 102, 241, 0.18);
    color: #C7D2FE;
    border: 1px solid rgba(99, 102, 241, 0.45);
}

.badge-slate {
    background: rgba(148, 163, 184, 0.16);
    color: #E2E8F0;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.catalog-level {
    margin: 0 0 6px;
    color: var(--color-muted);
    font-size: 0.82rem;
}

.price-tag {
    display: inline-flex;
    align-items: center;
    margin: 0 0 10px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.12);
    color: #A7F3D0;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.catalog-meta .price-tag {
    margin: 0;
}

.price-local {
    margin: 0 0 12px;
    color: #94A3B8;
    font-size: 0.85rem;
    font-weight: 600;
}

.catalog-sujet {
    margin-bottom: 12px !important;
}

.catalog-sujet strong {
    color: var(--color-ink);
}

.catalog-hero .lede {
    max-width: 68ch;
}

.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    padding: 14px 16px;
}

.catalog-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.catalog-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.catalog-sort label {
    margin: 0;
    white-space: nowrap;
}

.catalog-sort select {
    width: auto;
    min-width: 11rem;
    padding: 8px 28px 8px 12px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.05);
}

.academy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.course-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #1E293B;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.course-card-hit {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.course-fact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.course-fact svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.course-cta-compact {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    background: #10b981;
    color: #020617;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.course-cta-compact:hover {
    background: #34d399;
    color: #020617;
}

.course-cta-compact.is-access {
    background: #0ea5e9;
    color: #020617;
}

.course-cta-compact.is-access:hover {
    background: #38bdf8;
}

.course-cta-compact.is-buy,
.course-cta-compact.is-enroll {
    background: #10b981;
    color: #020617;
}

.page-catalog .course-foot {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.page-catalog .course-progress-wrap {
    flex: 1 1 100%;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.course-card-ecu:hover,
.course-card-rose:hover {
    border-color: #F43F5E;
}

.course-card-diag:hover,
.course-card-emerald:hover {
    border-color: #10B981;
}

.course-card-blue:hover { border-color: #38BDF8; }
.course-card-amber:hover { border-color: #F59E0B; }
.course-card-purple:hover { border-color: #A855F7; }
.course-card-teal:hover { border-color: #2DD4BF; }
.course-card-indigo:hover { border-color: #6366F1; }
.course-card-slate:hover { border-color: #94A3B8; }

.course-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0F172A;
}

.course-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-badge-cat {
    position: absolute;
    top: 12px;
    left: 12px;
}

.course-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, #1e293b 0%, transparent 48%, rgb(0 0 0 / 0.28) 100%);
}

.course-share-fab {
    position: absolute;
    top: 12px;
    right: 12px;
    bottom: auto;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgb(51 65 85 / 0.5);
    border-radius: 999px;
    background: rgb(15 23 42 / 0.8);
    color: #cbd5e1;
    cursor: pointer;
    display: grid;
    place-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3;
    transition: background 0.15s ease, transform 0.15s ease;
}

.course-badge-time {
    position: absolute;
    top: 14px;
    right: 54px;
    z-index: 3;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #E2E8F0;
    font-size: 0.78rem;
    font-weight: 650;
}

.course-badge-cat {
    z-index: 3;
}

.course-share-fab:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

.course-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.course-share-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.catalog-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.home-catalog .section-head p {
    max-width: 48ch;
}

.home-course-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-course {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgb(30 41 59 / 0.8);
    background: #0f172a;
    box-shadow: 0 20px 40px rgb(0 0 0 / 0.4);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.home-course:hover {
    border-color: rgb(16 185 129 / 0.4);
}

.home-course-banner {
    position: relative;
    height: 11rem;
    width: 100%;
    overflow: hidden;
    background: #020617;
}

.home-course-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-course-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, #0f172a 0%, transparent 46%, rgb(0 0 0 / 0.32) 100%);
}

.home-course-circuit {
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-color: #020617;
    background-image:
        linear-gradient(rgb(16 185 129 / 0.55) 1px, transparent 1px),
        linear-gradient(90deg, rgb(16 185 129 / 0.55) 1px, transparent 1px),
        radial-gradient(circle at 18% 28%, rgb(16 185 129 / 0.55), transparent 32%),
        radial-gradient(circle at 82% 72%, rgb(56 189 248 / 0.4), transparent 36%),
        linear-gradient(115deg, transparent 42%, rgb(16 185 129 / 0.35) 42.5%, rgb(16 185 129 / 0.35) 43.5%, transparent 44%);
    background-size: 22px 22px, 22px 22px, 100% 100%, 100% 100%, 100% 100%;
}

.home-course-accent-diag .home-course-circuit,
.home-course-accent-emerald .home-course-circuit {
    background-image:
        linear-gradient(rgb(16 185 129 / 0.55) 1px, transparent 1px),
        linear-gradient(90deg, rgb(16 185 129 / 0.55) 1px, transparent 1px),
        radial-gradient(circle at 18% 28%, rgb(16 185 129 / 0.55), transparent 32%),
        radial-gradient(circle at 82% 72%, rgb(56 189 248 / 0.4), transparent 36%),
        linear-gradient(115deg, transparent 42%, rgb(16 185 129 / 0.35) 42.5%, rgb(16 185 129 / 0.35) 43.5%, transparent 44%);
}

.home-course-accent-ecu .home-course-circuit,
.home-course-accent-rose .home-course-circuit {
    background-image:
        linear-gradient(rgb(244 63 94 / 0.45) 1px, transparent 1px),
        linear-gradient(90deg, rgb(244 63 94 / 0.45) 1px, transparent 1px),
        radial-gradient(circle at 20% 30%, rgb(244 63 94 / 0.4), transparent 32%),
        radial-gradient(circle at 80% 70%, rgb(16 185 129 / 0.35), transparent 34%),
        linear-gradient(115deg, transparent 42%, rgb(244 63 94 / 0.4) 42.5%, rgb(244 63 94 / 0.4) 43.5%, transparent 44%);
}

.home-course-accent-blue .home-course-circuit,
.home-course-accent-teal .home-course-circuit {
    background-image:
        linear-gradient(rgb(56 189 248 / 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgb(56 189 248 / 0.5) 1px, transparent 1px),
        radial-gradient(circle at 22% 26%, rgb(56 189 248 / 0.45), transparent 32%),
        radial-gradient(circle at 78% 74%, rgb(16 185 129 / 0.3), transparent 34%),
        linear-gradient(115deg, transparent 42%, rgb(56 189 248 / 0.4) 42.5%, rgb(56 189 248 / 0.4) 43.5%, transparent 44%);
}

.home-course-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    max-width: calc(100% - 7.5rem);
    background: rgb(16 185 129 / 0.9);
    color: #020617;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-share-cover {
    position: absolute;
    top: 12px;
    right: 12px;
    bottom: auto;
    z-index: 3;
    width: 36px;
    height: 36px;
    padding: 8px;
    border: 1px solid rgb(51 65 85 / 0.5);
    border-radius: 999px;
    background: rgb(15 23 42 / 0.8);
    color: #cbd5e1;
    cursor: pointer;
    display: grid;
    place-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.course-share-cover svg {
    width: 15px;
    height: 15px;
}

.course-share-cover:hover {
    color: #fff;
    background: rgb(15 23 42 / 0.95);
}

.home-course-time {
    position: absolute;
    top: 14px;
    right: 54px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgb(15 23 42 / 0.8);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 650;
    padding: 4px 8px;
    border-radius: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.home-course-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: #0f172a;
    border-top: 0;
}

.home-course-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-course-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

.home-course-desc {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.55;
    color: #cbd5e1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-course-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0;
    overflow: hidden;
    max-width: 100%;
}

.home-course-tags span {
    flex: 0 0 auto;
    padding: 3px 8px;
    border-radius: 8px;
    border: 1px solid rgb(148 163 184 / 0.22);
    background: rgb(255 255 255 / 0.04);
    color: #cbd5e1;
    font-size: 0.68rem;
    font-weight: 650;
    font-family: var(--mono);
    white-space: nowrap;
}

.home-course-foot {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

.home-course-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-course-price strong {
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
}

.home-course-price small {
    margin-top: 2px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
}

.home-course-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.home-course-btn-ghost,
.home-course-btn-enroll {
    flex: 1 1 0;
    width: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.home-course-btn-ghost {
    background: rgb(30 41 59 / 0.8);
    color: #e2e8f0;
    border: 1px solid rgb(51 65 85 / 0.6);
    font-weight: 650;
}

.home-course-btn-ghost:hover {
    background: #334155;
    color: #fff;
}

.home-course-btn-enroll {
    background: #10b981;
    color: #020617;
    border: 0;
    font-weight: 800;
    box-shadow: 0 8px 18px rgb(16 185 129 / 0.2);
}

.home-course-btn-enroll:hover {
    background: #34d399;
    color: #020617;
}

.home-course-btn-enroll.is-access {
    background: #0ea5e9;
    box-shadow: 0 8px 18px rgb(14 165 233 / 0.22);
}

.home-course-btn-enroll.is-access:hover {
    background: #38bdf8;
    color: #020617;
}

@media (min-width: 768px) {
    .home-course-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .home-course-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .home-course:hover {
        transform: none;
    }
}

.detail-intro-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.detail-intro-head h1 {
    margin: 0;
    flex: 1 1 auto;
}

.buy-card .course-share-btn {
    width: 100%;
    margin-top: 12px;
}

.course-body {
    padding: 16px 16px 8px;
    flex: 1 1 auto;
}

.course-title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-ink);
}

.course-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0 0 10px !important;
    color: #94A3B8;
    font-size: 0.82rem;
}

.course-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 12px !important;
    color: #94A3B8;
    line-height: 1.45;
}

.course-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    padding: 3px 8px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.05);
    color: #CBD5E1;
    font-size: 0.72rem;
    font-weight: 650;
    font-family: var(--mono);
}

.course-foot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.course-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.course-price strong {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
}

.course-price small {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
}

.course-actions {
    display: flex;
    gap: 8px;
}

.course-actions .btn {
    flex: 1 1 0;
    margin: 0;
}

.course-cta {
    margin: 0;
}

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

.course-progress {
    flex: 1 1 auto;
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    overflow: hidden;
}

.course-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #047857, #10B981);
}

.course-progress-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #A7F3D0;
    min-width: 3rem;
}

@media (min-width: 768px) {
    .academy-grid,
    .grid-catalog {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .academy-grid,
    .grid-catalog {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .course-body {
        padding: 18px 18px 12px;
    }

    .course-title {
        font-size: 1.15rem;
    }

    .course-foot {
        padding: 16px 18px 20px;
        gap: 14px;
    }

    .course-cta,
    .course-foot .btn {
        width: 100%;
        min-height: 48px;
        padding: 14px 18px;
        font-size: 1rem;
        border-radius: 12px;
    }

    .course-card:hover {
        transform: none;
    }
}

@media (max-width: 767px) {
    .page-catalog .catalog-hero {
        padding: 4px 0 8px;
        margin-bottom: 0;
    }

    .page-catalog .catalog-hero .eyebrow {
        display: none;
    }

    .page-catalog .catalog-hero h1 {
        margin: 0 0 4px;
        font-size: 1.25rem;
        font-weight: 700;
        line-height: 1.25;
    }

    .page-catalog .catalog-hero .lede {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0;
        max-width: none;
        font-size: 0.75rem;
        line-height: 1.4;
        color: #94a3b8;
    }

    .page-catalog .catalog-toolbar {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        margin: 4px 0 8px;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        border-radius: 0;
    }

    .page-catalog .catalog-pills {
        display: flex;
        flex: 1 1 auto;
        flex-wrap: nowrap;
        min-width: 0;
        gap: 8px;
        padding: 8px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .page-catalog .catalog-pills::-webkit-scrollbar {
        display: none;
    }

    .page-catalog .catalog-pills .chip {
        flex: 0 0 auto;
        padding: 6px 12px;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .page-catalog .catalog-sort {
        flex: 0 0 auto;
        justify-content: flex-end;
        gap: 0;
        padding: 0;
    }

    .page-catalog .catalog-sort label {
        display: none;
    }

    .page-catalog .catalog-sort select {
        min-width: 0;
        max-width: 8.5rem;
        padding: 6px 24px 6px 10px;
        font-size: 0.75rem;
    }

    .page-catalog .academy-grid {
        gap: 12px;
    }

    .page-catalog .course-cover {
        height: 8rem;
        aspect-ratio: auto;
    }

    .page-catalog .course-cover img {
        border-radius: 12px 12px 0 0;
        object-fit: cover;
    }

    .page-catalog .course-badge-time {
        display: none;
    }

    .page-catalog .course-body {
        padding: 12px 12px 0;
    }

    .page-catalog .course-title {
        margin: 0 0 6px;
        font-size: 0.875rem;
        font-weight: 700;
        color: #fff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .page-catalog .course-facts {
        flex-wrap: nowrap;
        gap: 10px;
        margin: 0 0 0 !important;
        font-size: 0.7rem;
        overflow: hidden;
    }

    .page-catalog .course-excerpt,
    .page-catalog .course-tools,
    .page-catalog .course-progress-wrap {
        display: none;
    }

    .page-catalog .course-foot {
        margin-top: 8px;
        padding: 8px 12px 12px;
        border-top: 1px solid #1e293b;
        gap: 8px;
    }

    .page-catalog .course-price strong {
        font-size: 1.125rem;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .page-catalog .course-price small {
        font-size: 0.75rem;
        font-weight: 500;
        color: #94a3b8;
        line-height: 1.2;
    }

    .page-catalog .course-cta-compact {
        min-height: 0;
        width: auto;
        padding: 8px 16px;
        font-size: 0.75rem;
        border-radius: 8px;
    }

    .page-catalog .course-card:hover {
        transform: none;
    }
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.3fr);
    gap: 24px;
    align-items: start;
}

.detail-main {
    min-width: 0;
    display: grid;
    gap: 16px;
}

.player-card {
    background: #0F172A;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    overflow: hidden;
    align-self: start;
    width: 100%;
    max-width: 100%;
    scroll-margin-top: calc(var(--header-h) + 16px);
}

.player-shell {
    width: 100%;
    max-width: 64rem;
    margin: 1rem auto;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.player-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: none;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #000;
    border: 1px solid #1E293B;
    box-shadow: 0 25px 50px rgba(2, 6, 23, 0.55);
}

@media (min-width: 640px) {
    .player-shell {
        margin: 1.5rem auto;
        padding: 0 1rem;
    }

    .player-stage {
        border-radius: 1rem;
    }
}

@media (min-width: 2560px) {
    .player-shell {
        max-width: min(64rem, 70vw);
    }
}

.player-stage .plyr,
.player-stage .js-plyr-player,
.player-stage video,
.player-stage iframe,
.player-stage #coursePlayer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 0;
    background: #000;
}

.player-stage .plyr {
    --plyr-color-main: #10B981;
    --plyr-video-background: #000;
}

.player-stage .plyr__video-wrapper {
    height: 100% !important;
    padding-bottom: 0 !important;
    background: #000;
}

.player-file {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-content: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
    color: #E2E8F0;
    line-height: 1.4;
}

.player-file[hidden] {
    display: none !important;
}

.player-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #94A3B8;
    margin: 0;
}

#videoOverlay,
.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 8;
    border: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(2, 6, 23, 0.72);
    color: #F8FAFC;
    font: inherit;
    font-weight: 700;
    line-height: 1.3;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#videoOverlay.is-off,
.player-overlay.is-off {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-play-btn {
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #DC2626;
    color: #fff;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.45);
    cursor: pointer;
}

.player-play-btn:hover {
    background: #EF4444;
    transform: scale(1.1);
}

.player-play-btn svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
    fill: currentColor;
}

.player-overlay p {
    margin: 0;
    font-size: 1.05rem;
}

.player-overlay span {
    font-weight: 500;
    color: #94A3B8;
    font-size: 0.85rem;
}

.player-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
}

.detail-intro h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.detail-block h2 {
    margin-bottom: 12px;
}

.learn-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.learn-grid li {
    display: flex;
    gap: 10px;
    color: var(--color-ink);
}

.learn-grid span {
    color: #10B981;
    font-weight: 800;
}

.plain-list {
    margin: 0;
    padding-left: 1.1rem;
    color: #94A3B8;
}

.syllabus-mod {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-top: 8px;
    background: rgba(15, 23, 42, 0.45);
}

.syllabus-mod summary {
    cursor: pointer;
    font-weight: 700;
    padding: 12px 14px;
    list-style: none;
}

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

.syllabus-lessons {
    list-style: none;
    margin: 0;
    padding: 0 8px 8px;
    display: grid;
    gap: 6px;
}

.lesson-row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.lesson-row:hover {
    border-color: rgba(16, 185, 129, 0.35);
}

.lesson-title {
    flex: 1 1 12rem;
}

.lesson-dur {
    color: #94A3B8;
    font-size: 0.82rem;
}

.lock-pill {
    color: #FECACA;
    font-size: 0.78rem;
    font-weight: 700;
}

.buy-wrap {
    min-width: 0;
}

.buy-card {
    position: sticky;
    top: calc(var(--header-h) + 14px);
}

.buy-kicker {
    margin: 0 0 4px !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: #94A3B8;
}

.buy-price {
    margin: 0 !important;
    font-size: 1.65rem;
    font-weight: 800;
    color: #A7F3D0;
}

.buy-local {
    margin: 4px 0 14px !important;
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
}

.buy-usd {
    margin: 4px 0 14px !important;
    font-size: 0.8rem;
    color: #64748B;
}

.buy-card .btn-block {
    margin-top: 0;
}

.buy-card form + .btn,
.buy-card .btn + form,
.buy-card .btn + .btn,
.buy-card .btn + .btn-offline-cta,
.buy-card .btn-offline-cta + .btn {
    margin-top: 8px;
}

.buy-perks {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
    color: #CBD5E1;
    font-size: 0.88rem;
}

.buy-perks li::before {
    content: "✔ ";
    color: #10B981;
    font-weight: 800;
}

.instructor-name {
    margin: 0 0 4px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-ink);
}

.enroll-modal {
    width: min(420px, 92vw);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    background: #1E293B;
    color: #F8FAFC;
    padding: 20px;
}
dialog.enroll-modal:not([open]) {
    display: none !important;
}

.share-modal {
    width: min(28rem, calc(100% - 24px));
    border: 0;
    padding: 0;
    background: transparent;
    color: #fff;
}

dialog.share-modal:not([open]) {
    display: none !important;
}

.share-modal::backdrop {
    background: rgba(2, 6, 23, 0.72);
}

.share-modal-card {
    position: relative;
    margin: 0;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #1e293b;
    background: #0f172a;
    box-shadow: 0 24px 50px rgba(2, 6, 23, 0.55);
    animation: share-modal-in 0.22s ease;
}

@keyframes share-modal-in {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .share-modal-card { animation: none; }
}

.share-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.share-modal-preview {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0 28px 18px 0;
}

.share-modal-preview img {
    width: 88px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    background: #1e293b;
    flex-shrink: 0;
}

.share-modal-preview h2 {
    margin: 0 0 4px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 650;
}

#share-course-title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

#share-course-text {
    margin: 0;
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
}

.share-networks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 14px 0 16px;
}

.share-net {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.share-net.is-wa { background: #25D366; }
.share-net.is-fb { background: #1877F2; }
.share-net.is-li { background: #0A66C2; }
.share-net.is-x { background: #111827; border: 1px solid #334155; }

.share-copy-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.72rem;
    color: #94a3b8;
}

.share-copy-row {
    display: flex;
    gap: 8px;
}

.share-copy-row input {
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #020617;
    color: #e2e8f0;
    padding: 8px 10px;
    font-size: 0.78rem;
}

.share-copy-ok {
    margin: 8px 0 0;
    color: #34d399;
    font-size: 0.78rem;
    font-weight: 650;
}

.job-detail-title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em;
}
.job-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgb(51 65 85 / 0.9);
    background: rgb(15 23 42 / 0.85);
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 650;
    line-height: 1.2;
}
.job-meta-badge.is-contract {
    border-color: rgb(16 185 129 / 0.35);
    background: rgb(6 78 59 / 0.35);
    color: #a7f3d0;
}
.job-section {
    display: grid;
    gap: 0.75rem;
}
.job-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
}
.job-prose {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-wrap;
}
.job-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}
.job-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: #e2e8f0;
    font-size: 0.92rem;
    line-height: 1.5;
}
.job-check-list li::before {
    content: "";
    width: 0.95rem;
    height: 0.95rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: #10b981 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23022c22' stroke-width='2.2' d='M3.5 8.2 6.4 11 12.5 4.5'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}
.job-profile-box {
    border-radius: 1rem;
    border: 1px solid rgb(51 65 85 / 0.9);
    background: rgb(2 6 23 / 0.45);
    padding: 1rem 1rem 1rem 0.9rem;
}
.job-apply-card {
    background:
        radial-gradient(120% 80% at 100% 0%, rgb(16 185 129 / 0.16), transparent 55%),
        #0f172a;
}
.job-apply-btn {
    min-width: 14rem;
    padding: 0.9rem 1.4rem;
    border: 0;
    border-radius: 0.85rem;
    background: #10b981;
    color: #022c22;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgb(16 185 129 / 0.22);
    transition: background 0.15s ease, transform 0.15s ease;
}
.job-apply-btn:hover {
    background: #34d399;
    transform: translateY(-1px);
}
.job-apply-dialog {
    width: min(520px, 92vw);
    border: 1px solid #1e293b;
    border-radius: 16px;
    background: #0f172a;
    color: #F8FAFC;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgb(2 6 23 / 0.7);
}
dialog.job-apply-dialog:not([open]) {
    display: none !important;
}
.job-apply-dialog::backdrop {
    background: rgba(2, 6, 23, 0.78);
}
.job-cv-drop {
    position: relative;
    border: 1px dashed #334155;
    background: #020617;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.job-cv-drop.is-drag,
.job-cv-drop:hover {
    border-color: #059669;
    background: rgb(5 150 105 / 0.08);
}
.job-cv-drop.is-filled {
    border-style: solid;
    border-color: #059669;
}
.job-cv-drop input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}
.job-pay-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgb(2 6 23 / 0.8);
    backdrop-filter: blur(6px);
}
.job-pay-overlay.is-open {
    display: flex !important;
}
.job-pay-overlay[hidden] {
    display: none !important;
}
.job-auth-overlay {
    z-index: 90;
}
.job-screen-pay-overlay {
    z-index: 95;
}
.job-pay-picker.hidden {
    display: none !important;
}
.job-pay-op {
    cursor: pointer;
    border: 1px solid #1e293b;
    background: #020617;
    border-radius: 0.75rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.job-pay-op:hover {
    border-color: #4338ca;
}
.job-pay-op:has(:checked),
.job-pay-op.is-on {
    border-color: #6366f1;
    background: rgb(49 46 129 / 0.35);
}
.job-pay-op input {
    accent-color: #6366f1;
}

.course-pay-overlay {
    z-index: 90;
}
.course-pay-overlay.course-pay-locked {
    cursor: progress;
}

.course-pay-op {
    cursor: pointer;
    position: relative;
    border: 1px solid #1e293b;
    background: #020617;
    border-radius: 0.85rem;
    padding: 0.7rem 0.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 4.6rem;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.course-pay-op:hover {
    border-color: #34d399;
}

.course-pay-op:has(:checked),
.course-pay-op.is-on {
    border-color: #10b981;
    background: rgb(16 185 129 / 0.1);
    box-shadow: 0 0 0 1px rgb(16 185 129 / 0.45), 0 0 18px rgb(16 185 129 / 0.18);
}

.course-pay-op input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.course-pay-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 0.35rem;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #0f172a;
}

.course-pay-logo-mtn {
    background: #ffcc00;
}

.course-pay-logo-orange {
    background: #ff7900;
    color: #fff;
}

.course-pay-logo-moov {
    background: #0066b3;
    color: #fff;
}

.course-pay-logo-wave {
    background: #1dc4c4;
    color: #042f2e;
}

.course-pay-logo-card {
    background: #e2e8f0;
}

.course-pay-logo-airtel {
    background: #ed1c24;
    color: #fff;
}

.course-pay-logo-generic {
    background: #334155;
    color: #e2e8f0;
}

.enroll-modal::backdrop {
    background: rgba(2, 6, 23, 0.72);
}

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

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

    .buy-card {
        position: static;
    }
}

.dash-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 22px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.dash-hello {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1 1 16rem;
}

.dash-hello h1 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 4px;
    overflow-wrap: anywhere;
}

.dash-phone {
    margin: 0;
}

.dash-avatar {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    background: linear-gradient(135deg, #EF4444, #10B981);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.dash-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6.4rem, 1fr));
    gap: 10px;
    flex: 1 1 18rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.kpi-card {
    background: #1E293B;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    padding: 12px 14px;
    display: grid;
    gap: 2px;
}

.kpi-card strong {
    font-size: 1.05rem;
}

.kpi-card span {
    color: #94A3B8;
    font-size: 0.78rem;
}

.kpi-ico {
    font-size: 1.1rem;
}

.kpi-pwa.is-offline strong {
    color: #FECACA;
}

.dash-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    margin-bottom: 18px;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(30, 41, 59, 1);
    background: rgba(15, 23, 42, 0.8);
    overflow: hidden;
    box-sizing: border-box;
}

.dash-tab {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    border: 0;
    background: transparent;
    color: #94A3B8;
    font: inherit;
    font-size: clamp(0.72rem, 2.4vw, 0.92rem);
    font-weight: 650;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

@media (min-width: 640px) {
    .dash-tabs {
        gap: 8px;
        padding: 6px;
    }

    .dash-tab {
        padding: 8px 12px;
    }
}

.dash-tab.is-on {
    background: rgba(16, 185, 129, 0.16);
    color: #A7F3D0;
}

.dash-panel[hidden] {
    display: none;
}

.dash-course {
    background: #1E293B;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.dash-course:hover {
    transform: translateY(-3px);
    border-color: #10B981;
}

.dash-course-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0F172A;
}

.dash-course-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dash-course-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: rgba(15, 23, 42, 0.7);
}

.dash-course-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #047857, #10B981);
}

.dash-course-pct {
    position: absolute;
    left: 10px;
    bottom: 12px;
    margin: 0;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    color: #A7F3D0;
    font-size: 0.75rem;
    font-weight: 700;
}

.dash-course-body {
    padding: 14px;
    display: grid;
    gap: 10px;
}

.dash-course-body h2 {
    margin: 0;
    font-size: 1.05rem;
}

.dash-course-body .btn {
    margin: 0;
}

.quiz-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.quiz-badge-pause {
    background: rgba(245, 158, 11, 0.18);
    color: #FCD34D;
}

.quiz-badge-waiver {
    background: rgba(234, 179, 8, 0.16);
    color: #FDE68A;
}

.quiz-badge-lock {
    background: rgba(239, 68, 68, 0.14);
    color: #FCA5A5;
}

.quiz-badge-flex {
    background: rgba(245, 158, 11, 0.18);
    color: #FDE68A;
}

.quiz-hint {
    margin: 0;
    font-size: 0.78rem;
    color: #FBBF24;
    font-weight: 650;
}

.quiz-badge-ok {
    background: rgba(16, 185, 129, 0.16);
    color: #A7F3D0;
}

.quiz-badge-fail {
    background: rgba(239, 68, 68, 0.14);
    color: #FECACA;
}

.btn-quiz-resume {
    background: linear-gradient(180deg, #F59E0B, #D97706);
    color: #111827;
    border: 1px solid #B45309;
}

.test-section {
    margin-bottom: 28px;
}

.test-section h2 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.test-card {
    align-items: flex-start;
}

.test-card .quiz-bar {
    margin-top: 8px;
    max-width: 280px;
}

.quiz-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    overflow: hidden;
}

.quiz-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #D97706, #F59E0B);
}

.quiz-shell h1 {
    margin: 0 0 8px;
}

.quiz-form h2 {
    font-size: 1.15rem;
}

.quiz-options {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}

.quiz-opt {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: #0F172A;
    cursor: pointer;
}

.quiz-opt:has(input:checked) {
    border-color: #10B981;
}

.quiz-rev.is-correct {
    color: #6EE7B7;
}

.quiz-rev.is-wrong {
    color: #FCA5A5;
}

.dash-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-waiver-form {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
    max-width: 560px;
}

@media (max-width: 1100px) {
    .dash-kpis {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cert-list {
    display: grid;
    gap: 12px;
}

.cert-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.table-wrap {
    overflow-x: hidden;
    max-width: 100%;
}

.dash-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.dash-table th,
.dash-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dash-table th {
    color: #94A3B8;
    font-weight: 650;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.print-sheet {
    max-width: 720px;
    margin: 0 auto;
    padding: 28px;
}

.print-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 8px 0;
}

.cert-sheet {
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 16px;
    background: #1E293B;
}

.cert-preview-wrap {
    max-width: 1123px;
    margin: 0 auto 32px;
}
.cert-preview-toolbar {
    margin-bottom: 16px;
}

@media (min-width: 900px) {
    .profile-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .dash-kpis {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
}

@media print {
    .topbar,
    .site-footer,
    .skip-link,
    .flash,
    .print-actions,
    .install-hint,
    .pwa-install-banner,
    .bottom-nav {
        display: none !important;
    }

    body {
        background: #fff;
        color: #0f172a;
    }

    .print-sheet,
    .cert-sheet {
        border: 2px solid #10B981;
        background: #fff;
        color: #0f172a;
        box-shadow: none;
    }
}

.program summary {
    cursor: pointer;
    font-weight: 650;
    color: var(--color-ink);
    list-style: none;
}

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

.program summary::after {
    content: " ▾";
    color: var(--color-diag);
}

.program[open] summary::after {
    content: " ▴";
}

.program ol {
    margin: 10px 0 12px;
    padding-left: 1.2rem;
    color: var(--color-muted);
}

.program li {
    margin: 6px 0;
}

.auth-wrap {
    display: grid;
    place-items: center;
    min-height: calc(100dvh - 180px);
}

.auth-card {
    width: min(440px, 100%);
}

.page-auth .auth-wrap {
    min-height: auto;
    place-items: start center;
    padding-bottom: 6rem;
}

.page-auth .auth-card {
    width: 100%;
    max-width: 440px;
    padding: 22px 18px 20px;
    background: rgb(15 23 42 / 0.72);
}

.page-auth .auth-card h1 {
    margin: 0 0 6px;
    font-size: 1.55rem;
}

.page-auth .auth-card .lede {
    margin: 0 0 8px;
    font-size: 0.9rem;
}

.page-auth .auth-form {
    gap: 6px;
}

.page-auth .auth-field {
    position: relative;
    display: flex;
    align-items: center;
}

.page-auth .auth-field-grow {
    flex: 1 1 0;
    min-width: 0;
}

.page-auth .auth-field-ico {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #64748b;
    pointer-events: none;
    z-index: 1;
}

.page-auth .auth-field-ico svg {
    width: 18px;
    height: 18px;
    display: block;
}

.page-auth .auth-field input {
    width: 100%;
    background: rgb(2 6 23 / 0.8);
    border: 1px solid #1e293b;
    border-radius: 12px;
    color: #fff;
    padding: 12px 44px 12px 40px;
    font-size: 0.875rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.page-auth .auth-field input::placeholder {
    color: #475569;
}

.page-auth .auth-field input:focus,
.page-auth .auth-dial:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgb(16 185 129 / 0.15);
}

.page-auth .auth-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 8px;
    padding: 0;
}

.page-auth .auth-eye:hover {
    color: #e2e8f0;
}

.page-auth .auth-eye svg {
    width: 18px;
    height: 18px;
}

.page-auth .auth-eye .icon-eye-off {
    display: none;
}

.page-auth .auth-eye.is-on .icon-eye {
    display: none;
}

.page-auth .auth-eye.is-on .icon-eye-off {
    display: block;
}

.page-auth .phone-row-inline,
.page-auth .phone-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.page-auth .auth-dial {
    flex: 0 0 33%;
    width: 33%;
    min-width: 0;
    background: #020617;
    border: 1px solid #1e293b;
    color: #fff;
    border-radius: 12px;
    padding: 12px 28px 12px 12px;
    font-size: 0.8rem;
}

.btn.btn-auth-submit {
    width: 100%;
    margin-top: 14px;
    background: #10b981;
    color: #020617;
    font-weight: 800;
    font-size: 1rem;
    padding: 14px 18px;
    border-radius: 12px;
    border: 0;
    box-shadow: 0 10px 24px rgb(16 185 129 / 0.2);
    transition: transform 0.12s ease, background 0.15s ease;
}

.btn.btn-auth-submit:hover {
    background: #34d399;
    color: #020617;
}

.btn.btn-auth-submit:active {
    transform: scale(0.98);
}

.page-auth .auth-forgot {
    display: inline-block;
    width: 100%;
    margin-top: 6px;
    text-align: right;
    font-size: 0.75rem;
    color: #34d399;
    text-decoration: none;
}

.page-auth .auth-forgot:hover {
    text-decoration: underline;
}

.page-auth .auth-switch {
    margin-bottom: 0;
}

.page-auth .auth-switch a {
    margin-left: 0.25rem;
    color: #34d399;
    font-weight: 700;
    text-decoration: none;
}

.page-auth .auth-switch a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .page-auth .auth-wrap {
        padding-bottom: 6rem;
    }

    .page-auth .auth-card {
        margin-bottom: 6rem;
    }
}

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

label {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-top: 8px;
}

input[type="tel"],
input[type="password"],
input[type="text"],
input[type="search"],
select,
textarea {
    width: 100%;
    border: 1px solid var(--color-line);
    background: #0B1220;
    color: var(--color-ink);
    border-radius: 10px;
    padding: 12px 14px;
    font: inherit;
}

textarea {
    min-height: 8rem;
    resize: vertical;
}

select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--color-muted) 50%),
        linear-gradient(135deg, var(--color-muted) 50%, transparent 50%);
    background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 28px;
}

.phone-row {
    display: grid;
    grid-template-columns: minmax(14rem, 0.52fr) 1fr;
    gap: 8px;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--color-diag);
    outline-offset: 1px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    background: transparent;
}

.btn-engine {
    background: linear-gradient(180deg, var(--color-engine), var(--color-engine-dim));
}

.btn.btn-hero-primary {
    width: 100%;
    background: #dc2626;
    color: #fff;
    font-weight: 800;
    padding: 14px 18px;
    border-radius: 12px;
    border: 0;
    box-shadow: 0 10px 24px rgb(220 38 38 / 0.2);
}

.btn.btn-hero-primary:hover {
    background: #ef4444;
    color: #fff;
}

.btn.btn-hero-secondary {
    width: 100%;
    background: rgb(15 23 42 / 0.8);
    color: #e2e8f0;
    font-weight: 600;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #334155;
}

.btn.btn-hero-secondary:hover {
    background: #1e293b;
    color: #f8fafc;
}

.btn.btn-nav-login {
    background: rgb(30 41 59 / 0.8);
    color: #e2e8f0;
    border: 1px solid #334155;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
    margin-top: 0;
}

.btn.btn-nav-login:hover {
    background: #334155;
    color: #f8fafc;
}

.btn-diag {
    background: linear-gradient(180deg, var(--color-diag), var(--color-diag-dim));
    color: #04210f;
}

.nav-link.is-active {
    color: var(--color-diag);
}

.install-chip {
    display: none;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--color-line);
    background: transparent;
    color: var(--color-muted);
    border-radius: 999px;
    padding: 5px 10px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.install-chip.is-visible {
    display: inline-flex;
}

.install-chip:hover {
    border-color: var(--color-diag);
    color: #A7F3D0;
}

.btn-install {
    background: var(--color-diag);
    color: #04210f;
}

.btn-ghost {
    background: transparent;
    border-color: var(--color-line);
    color: var(--color-ink);
}

.btn-cert {
    background: linear-gradient(180deg, #3B82F6, #1D4ED8);
    color: #fff;
    border: 1px solid #1D4ED8;
}

.btn-outline-diag {
    border-color: var(--color-diag);
    color: #6EE7B7;
    background: rgba(16, 185, 129, 0.06);
}

.btn-block {
    width: 100%;
    margin-top: 12px;
}

.btn-compact {
    margin-top: 4px;
    font-size: 0.88rem;
    padding: 8px 12px;
}

.install-hint {
    width: min(1160px, calc(100% - 32px));
    margin: 12px auto 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #D1FAE5;
    font-size: 0.9rem;
}

.auth-switch {
    margin: 18px 0 0;
    color: var(--color-muted);
    text-align: center;
}

.auth-switch a {
    color: var(--color-diag);
}

.alert {
    margin: 0 0 12px;
    padding: 12px 14px 12px 28px;
    border-radius: 10px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #FECACA;
}

.flash {
    width: min(1160px, calc(100% - 32px));
    margin: 14px auto 0;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 650;
}

.flash-ico {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
}

.flash-success {
    background: #064E3B;
    border: 1px solid #10B981;
    color: #D1FAE5;
}

.flash-success .flash-ico {
    background: #10B981;
    color: #04210f;
}

.flash-error {
    background: rgba(127, 29, 29, 0.55);
    border: 1px solid #EF4444;
    color: #FECACA;
}

.flash-error .flash-ico {
    background: #EF4444;
    color: #fff;
}

.flash-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.pay-ux-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pay-ux-form {
    margin: 0;
}

.flash-pay-ux {
    align-items: flex-start;
}

.btn-continue {
    background: #10B981;
    border: 1px solid #059669;
    color: #04210f;
    font-weight: 800;
}

.btn-continue:hover {
    background: #34D399;
    border-color: #10B981;
    color: #04210f;
}

.btn-outline-test {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.45);
    color: #CBD5E1;
}

.btn-outline-test:hover {
    border-color: #3B82F6;
    color: #93C5FD;
}

.buy-flex-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 12px 0 4px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(120, 53, 15, 0.35);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #FDE68A;
    font-size: 0.85rem;
    line-height: 1.4;
}

.buy-flex-note p {
    margin: 0;
}

.buy-flex-note.is-strict {
    background: rgba(127, 29, 29, 0.28);
    border-color: rgba(239, 68, 68, 0.4);
    color: #FECACA;
}

.buy-offline {
    display: none;
}

.btn-offline-cta {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-offline-cta:hover {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.btn-offline-cta.is-busy {
    cursor: progress;
    opacity: 0.9;
}

.btn-offline-cta.is-ready {
    border-color: rgba(16, 185, 129, 0.7);
    background: rgba(16, 185, 129, 0.18);
    color: #a7f3d0;
}

.site-footer {
    margin-top: 48px;
    background: #020617;
    border-top: 1px solid #1e293b;
    color: #94a3b8;
    text-align: left;
    padding: 0;
    font-size: 0.85rem;
    display: block;
}

.site-footer-inner {
    width: min(80rem, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 0;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
}

.site-footer-col {
    min-width: 0;
}

.site-footer-col .qma-logo-link,
.site-footer-col .qma-logo {
    justify-content: flex-start;
}

.site-footer-baseline {
    margin: 14px 0 16px;
    line-height: 1.55;
    color: #94a3b8;
    max-width: 18rem;
}

.site-footer-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.28);
    background: rgba(6, 78, 59, 0.35);
    color: #a7f3d0;
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.04em;
}

.site-footer-heading {
    margin: 0 0 14px;
    font-size: 0.72rem;
    font-weight: 650;
    color: #e2e8f0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.site-footer-nav a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.15s ease;
}

.site-footer-nav a:hover {
    color: #34d399;
}

.site-footer-access {
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    color: #a7f3d0;
    font-size: 0.82rem;
    line-height: 1.4;
}

.site-footer-access-note {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.5;
}

.site-footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 0 24px;
    border-top: 1px solid #1e293b;
}

.site-footer-copy {
    margin: 0;
    color: #64748b;
    font-size: 0.75rem;
}

.site-footer-legal {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.site-footer-legal a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.72rem;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.site-footer-legal a:hover {
    color: #34d399;
}

.site-footer p {
    margin: 0;
}

.pwa-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #A7F3D0;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-diag);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
    flex-shrink: 0;
}

.site-footer-access .status-dot {
    margin-top: 4px;
}

.pwa-status.is-offline {
    color: #FECACA;
}

.pwa-status.is-offline .status-dot {
    background: var(--color-engine);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
}

@media (min-width: 640px) {
    .site-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px 28px;
    }

    .site-footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .site-footer-grid {
        grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
        gap: 40px;
    }
}

.forum-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 16px;
    align-items: start;
}

.forum-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
}

.forum-head-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.forum-head-copy .lede {
    max-width: none;
    margin-bottom: 0;
}

.forum-head-cta,
.forum-head .hero-actions {
    flex: 0 0 auto;
    align-self: center;
    white-space: nowrap;
}

.forum-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 0;
}

.chip {
    text-decoration: none;
    color: var(--color-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 650;
    transition: all 0.2s ease-in-out;
}

.chip:hover {
    border-color: rgba(16, 185, 129, 0.45);
    color: #A7F3D0;
    background: rgba(16, 185, 129, 0.1);
}

.chip.is-on {
    border-color: #10B981;
    color: #04210f;
    background: linear-gradient(180deg, #34D399, #10B981);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
}

.topic-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.topic-list a {
    display: grid;
    gap: 4px;
    text-decoration: none;
    color: inherit;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-line);
}

.topic-meta {
    color: var(--color-muted);
    font-size: 0.82rem;
}

.prose {
    color: var(--color-muted);
    margin-top: 10px;
}

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

.replies {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.forum-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0 0 12px;
    padding: 4px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
    overflow-x: auto;
}

.forum-tab {
    text-decoration: none;
    color: var(--color-muted);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 650;
    font-size: 0.8rem;
    white-space: nowrap;
}

.forum-tab.is-on {
    background: rgba(16, 185, 129, 0.12);
    color: #A7F3D0;
}

.lock-warn {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.1);
    color: #FECACA;
    margin-bottom: 12px;
}

.blur-contact {
    filter: blur(5px);
    user-select: none;
    letter-spacing: 0.04em;
}

.forum-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 12px;
}

.forum-kicker {
    margin: 0 0 2px;
    font-size: 0.65rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #34d399;
}

.forum-toolbar h1 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 750;
    color: #f8fafc;
    line-height: 1.2;
}

.forum-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 10px;
    background: #10b981;
    color: #020617;
    font-size: 0.75rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.forum-fab {
    display: none;
}

.forum-search {
    margin-bottom: 12px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

.forum-search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.forum-search-bar .forum-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.forum-search-bar input[type="search"] {
    width: 100%;
    margin: 0;
    padding: 10px 36px 10px 38px;
    border-radius: 12px;
    border: 1px solid rgb(51 65 85 / 0.6);
    background: rgb(30 41 59 / 0.9);
    color: #f1f5f9;
    font-size: 0.86rem;
}

.forum-search-bar input[type="search"]:focus {
    outline: none;
    border-color: #10b981;
}

.forum-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.forum-search-clear[hidden] {
    display: none;
}

.forum-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 10px 0 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.forum-filters::-webkit-scrollbar {
    display: none;
}

.forum-filters .chip {
    flex-shrink: 0;
    background: #1e293b;
    color: #cbd5e1;
    border: 1px solid transparent;
    box-shadow: none;
}

.forum-filters .chip.is-on {
    background: #10b981;
    color: #020617;
    border-color: transparent;
    box-shadow: none;
}

.forum-topic-list {
    display: grid;
    gap: 10px;
    padding-bottom: 4.5rem;
}

.forum-topic {
    display: block;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #1e293b;
    background: rgb(15 23 42 / 0.72);
    text-decoration: none;
    color: inherit;
}

.forum-topic-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.forum-st {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 750;
}

.forum-st.is-open {
    color: #fde68a;
    background: rgb(245 158 11 / 0.14);
}

.forum-st.is-done {
    color: #6ee7b7;
    background: rgb(16 185 129 / 0.14);
}

.forum-tag {
    padding: 2px 8px;
    border-radius: 999px;
    background: #1e293b;
    color: #94a3b8;
    font-size: 0.65rem;
    font-weight: 650;
}

.forum-tag.is-ecu {
    color: #a5b4fc;
}

.forum-topic h2 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 650;
    color: #f1f5f9;
    line-height: 1.35;
}

.forum-topic-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    color: #64748b;
    font-size: 0.7rem;
}

.forum-av {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgb(16 185 129 / 0.15);
    color: #6ee7b7;
    font-size: 0.58rem;
    font-weight: 800;
}

.forum-who {
    color: #94a3b8;
}

@media (max-width: 767px) {
    .forum-new {
        display: none;
    }

    .forum-fab {
        display: grid;
        place-items: center;
        position: fixed;
        right: 16px;
        bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 16px);
        z-index: 45;
        width: 52px;
        height: 52px;
        border-radius: 999px;
        background: #10b981;
        color: #020617;
        font-size: 1.6rem;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 10px 24px rgb(16 185 129 / 0.35);
    }
}

.case-grid {
    display: grid;
    gap: 12px;
}

.case-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.2s ease-in-out;
}

.case-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.case-card-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.case-status {
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

.case-card h3 {
    margin: 0 0 8px;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-ink);
    transition: color 0.2s ease-in-out;
}

.case-card:hover h3 {
    color: #EF4444;
}

.job-offer-card {
    position: relative;
}

.job-offer-hit {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.job-offer-card .catalog-meta {
    padding-right: 44px;
}

.job-offer-card .course-share-fab {
    top: 14px;
    right: 14px;
}

.job-detail-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.job-detail-heading .course-share-btn {
    flex-shrink: 0;
    margin-top: 4px;
}

.job-detail-excerpt {
    margin: 0;
    max-width: 65ch;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.55;
}

.case-card .topic-meta {
    color: #94A3B8;
    font-size: 0.82rem;
    margin: 0;
}

.status-ok {
    color: #A7F3D0;
    font-size: 0.82rem;
    font-weight: 650;
}

.status-wip {
    color: #FCD34D;
    font-size: 0.82rem;
    font-weight: 650;
}

.create-case {
    width: min(640px, 100%);
}

.tech-sheet {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 14px 0;
}

.tech-sheet div {
    padding: 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--color-line);
}

.tech-sheet dt {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
}

.tech-sheet dd {
    margin: 4px 0 0;
    font-family: var(--mono);
}

.case-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.gallery-thumb {
    padding: 0;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    overflow: hidden;
    background: #0B1220;
    cursor: zoom-in;
    width: 112px;
    height: 84px;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lightbox {
    border: 1px solid var(--color-line);
    border-radius: 12px;
    background: #0F172A;
    color: inherit;
    max-width: min(920px, 94vw);
    padding: 12px;
}

.lightbox img {
    max-width: 100%;
    max-height: 72vh;
    display: block;
    margin-bottom: 10px;
}

.vote-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.vote-cluster {
    display: inline-flex;
    align-items: stretch;
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.vote-cluster .pill-btn {
    border-radius: 0;
    border: 0;
    box-shadow: none;
}

.vote-cluster .pill-btn + .pill-btn {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-muted);
    border-radius: 9999px;
    padding: 8px 14px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 650;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pill-btn:hover,
.pill-like:hover {
    border-color: #10B981;
    color: #10B981;
}

.pill-dislike:hover {
    border-color: #EF4444;
    color: #FDBA74;
}

.pill-like.is-on {
    border-color: #10B981;
    color: #10B981;
    background: rgba(16, 185, 129, 0.12);
}

.pill-dislike.is-on {
    border-color: #EF4444;
    color: #FECACA;
    background: rgba(239, 68, 68, 0.12);
}

.pill-share {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.22), rgba(15, 23, 42, 0.6));
    border-color: rgba(239, 68, 68, 0.35);
    color: #FECACA;
}

.pill-share:hover {
    border-color: #EF4444;
    color: #fff;
}

.qm-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(16px);
    opacity: 0;
    pointer-events: none;
    z-index: 80;
    padding: 10px 16px;
    border-radius: 9999px;
    background: #1E293B;
    border: 1px solid #10B981;
    color: #A7F3D0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease-in-out;
}

.qm-toast.is-on {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.reply-card.is-solution {
    border-color: rgba(16, 185, 129, 0.45);
}

.solve-form {
    margin: 0;
}

@media (max-width: 800px) {
    .tech-sheet {
        grid-template-columns: 1fr;
    }

    .forum-head {
        flex-direction: column;
        align-items: stretch;
    }

    .forum-head-cta,
    .forum-head .hero-actions {
        align-self: stretch;
        white-space: normal;
    }
}

@media (max-width: 1020px) {
    .grid-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-hero {
        grid-template-columns: 1fr;
    }

    .app-hero-copy h1 {
        max-width: none;
    }
}

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

    .brand-text small {
        white-space: normal;
    }

    .topbar {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .toplinks {
        grid-column: 1 / -1;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .phone-row {
        grid-template-columns: 1fr;
    }

    .page-auth .phone-row,
    .page-auth .phone-row-inline {
        display: flex;
        grid-template-columns: none;
    }

    .forum-layout {
        grid-template-columns: 1fr;
    }
}

.lib-hero { margin-bottom: 22px; }
.lib-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.lib-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lib-gate {
    position: fixed !important;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(8px);
}
.lib-gate[hidden] { display: none !important; }
.lib-gate-card {
    background: #111827;
    border: 1px solid #334155;
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem 1.25rem;
    color: #e2e8f0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    max-width: 28rem;
    width: 100%;
}
.lib-gate-card h2 {
    margin: 8px 0 10px;
    font-size: 1.25rem;
    color: #fff;
    line-height: 1.35;
}
.lib-gate-card p { color: #94a3b8; margin: 0 0 16px; line-height: 1.5; }
.lib-gate-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.lib-gate-actions .btn {
    width: 100%;
    justify-content: center;
}
.lib-gate-close {
    margin-top: 12px;
    width: 100%;
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font: inherit;
    font-size: 0.85rem;
}
.lib-share {
    position: fixed !important;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(8px);
}
.lib-share[hidden] { display: none !important; }
.lib-share-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 1.25rem;
    padding: 1.5rem 1.35rem 1.1rem;
    color: #e2e8f0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    max-width: 26rem;
    width: 100%;
}
.lib-share-card h2 {
    margin: 8px 0 6px;
    font-size: 1.15rem;
    color: #fff;
}
.lib-share-doc {
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0 0 14px;
}
.lib-share-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.lib-share-app {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 0.75rem;
    border: 1px solid #334155;
    background: #1e293b;
    color: #e2e8f0;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}
.lib-share-app:hover {
    border-color: #10b981;
    background: #163032;
    color: #fff;
}
.lib-share-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.lib-share-ico-native { background: #10b981; font-size: 0.85rem; }
.lib-reader-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.lib-reader-bar h1 { margin: 4px 0 0; font-size: 1.25rem; }
.lib-reader-hint { color: var(--color-muted); font-size: 0.8rem; }
.lib-reader-shell {
    background: #020617;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 16px;
    user-select: none;
    -webkit-user-select: none;
}
.lib-pages {
    display: grid;
    gap: 18px;
    justify-items: center;
}
.lib-page-canvas {
    max-width: 100%;
    height: auto;
    background: #fff;
    box-shadow: var(--shadow);
    pointer-events: none;
}
@media print {
    body.lib-print-block,
    .lib-reader-shell,
    .lib-page-canvas { display: none !important; }
}

.support-float {
    position: fixed;
    right: 16px;
    bottom: calc(var(--bottom-nav-h, 4rem) + 16px);
    z-index: 55;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.support-float[hidden] {
    display: none !important;
}
.support-fab {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 1;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 16px;
    background: #059669;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(5, 150, 105, 0.35);
}
.support-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.support-fab-panel {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 1;
    width: min(320px, calc(100vw - 32px));
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
}
.support-fab-panel[hidden] {
    display: none !important;
}
.support-fab-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.support-fab-x {
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 2px 4px;
}
.support-fab-x:hover {
    color: #e2e8f0;
}
.support-fab-head { margin: 0 0 8px; font-weight: 800; }
.support-compose { display: flex; gap: 8px; margin-top: 12px; }
.support-compose input { flex: 1; }
.support-log {
    max-height: 240px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-height: 8rem;
}
.support-msg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 85%;
    padding: 0;
    background: transparent;
}
.support-msg.is-mine {
    align-self: flex-end;
    margin-left: auto;
    justify-content: flex-end;
}
.support-msg.is-them {
    align-self: flex-start;
    margin-right: auto;
    margin-left: 0;
    justify-content: flex-start;
}
.support-msg-bubble { padding: 8px 10px; border-radius: 16px; font-size: 12px; }
.support-msg.is-mine .support-msg-bubble { background: #059669; color: #fff; border-bottom-right-radius: 4px; }
.support-msg.is-them .support-msg-bubble { background: #1e293b; color: #e2e8f0; border: 1px solid #334155; border-bottom-left-radius: 4px; }
.support-msg-time { color: #94a3b8; font-size: 10px; }

.btn-job-publish {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 0;
    border-radius: 12px;
    background: #e11d48;
    color: #fff;
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(136, 19, 55, 0.45);
    text-decoration: none;
    white-space: nowrap;
}
.btn-job-publish:hover {
    background: #f43f5e;
}
.job-publish-modal {
    width: min(560px, 94vw);
    max-height: min(90vh, 840px);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    background: #0f172a;
    color: #f8fafc;
    padding: 0;
    overflow: auto;
}
.job-publish-modal::backdrop {
    background: rgba(2, 6, 23, 0.78);
}
.job-publish-form {
    display: grid;
    gap: 8px;
    padding: 20px;
}
.job-publish-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}
.job-publish-head .btn {
    flex: 0 0 auto;
}
.job-publish-head h2 {
    margin: 4px 0 6px;
    font-size: 1.15rem;
}
.job-publish-form .lede {
    margin: 0;
    font-size: 0.8rem;
    color: #94a3b8;
}
.job-hp {
    display: none !important;
}
@media (max-width: 800px) {
    .btn-job-publish {
        width: 100%;
        white-space: normal;
    }
}

.legal-page {
    max-width: 48rem;
    margin: 0 auto 2.5rem;
}

.legal-hero {
    margin-bottom: 20px;
}

.legal-lede {
    color: #cbd5e1;
    max-width: 62ch;
}

.legal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding: 6px;
    border-radius: 999px;
    background: #0f172a;
    border: 1px solid #1e293b;
    width: fit-content;
    max-width: 100%;
}

.legal-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 6px 16px;
    border-radius: 999px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 650;
    border: 1px solid transparent;
}

.legal-tab:hover {
    color: #fff;
    background: #1e293b;
}

.legal-tab.is-active {
    color: #fff;
    background: #10b981;
    border-color: #059669;
}

.legal-panel {
    background: #0f172a;
    border: 1px solid #1e293b;
}

.legal-panel[hidden] {
    display: none !important;
}

.legal-panel h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.28rem;
    font-weight: 700;
}

.legal-intro {
    margin: 0 0 18px;
    color: #cbd5e1;
}

.legal-articles {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: legal-article;
}

.legal-articles li {
    counter-increment: legal-article;
    position: relative;
    margin: 0 0 16px;
    padding: 16px 16px 16px 52px;
    border-radius: 12px;
    background: #020617;
    border: 1px solid #1e293b;
}

.legal-articles li::before {
    content: counter(legal-article, decimal-leading-zero);
    position: absolute;
    left: 14px;
    top: 16px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #34d399;
}

.legal-articles h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.02rem;
    font-weight: 650;
}

.legal-articles p {
    margin: 0;
    color: #cbd5e1;
}

.legal-articles a {
    color: #6ee7b7;
}

.legal-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 0;
}

.account-danger {
    margin-top: 20px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.account-danger h3 {
    margin: 0 0 8px;
    color: #fecaca;
    font-size: 1.05rem;
}

.account-danger p {
    margin: 0 0 14px;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.account-delete-open,
.btn.account-delete-open,
.btn.account-delete-confirm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #dc2626;
    border: 0;
    color: #fff;
}

.account-delete-open:hover,
.btn.account-delete-open:hover,
.btn.account-delete-confirm:hover {
    background: #b91c1c;
    color: #fff;
}

.account-delete-modal {
    width: min(32rem, calc(100% - 24px));
    border: 0;
    padding: 0;
    background: transparent;
    color: #fff;
}

dialog.account-delete-modal:not([open]) {
    display: none !important;
}

.account-delete-modal::backdrop {
    background: rgba(2, 6, 23, 0.75);
}

.account-delete-card {
    position: relative;
    margin: 0;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(239, 68, 68, 0.25);
    background: #0f172a;
    box-shadow: 0 24px 50px rgba(2, 6, 23, 0.55);
}

.account-delete-card h2 {
    margin: 0 32px 10px 0;
    color: #fff;
    font-size: 1.2rem;
}

.account-delete-warn,
.account-delete-list {
    color: #cbd5e1;
}

.account-delete-list {
    margin: 0 0 16px;
    padding-left: 1.2rem;
}

.account-delete-label {
    display: block;
    margin: 10px 0 6px;
    font-size: 0.78rem;
    color: #94a3b8;
}

.account-delete-card input[type="text"],
.account-delete-card input[type="password"],
.account-delete-mail-form input[type="email"] {
    width: 100%;
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #020617;
    color: #e2e8f0;
    padding: 8px 12px;
}

.account-delete-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
}

.account-delete-error {
    margin: 0 0 10px;
    color: #fecaca;
    font-size: 0.88rem;
}

.pwa-install-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(15, 23, 42, 0.92);
    border-bottom: 1px solid #1e293b;
    color: #e2e8f0;
}

.pwa-install-banner[hidden] {
    display: none !important;
}

.pwa-install-copy {
    min-width: 0;
}

.pwa-install-copy strong {
    display: block;
    font-size: 0.9rem;
}

.pwa-install-copy p {
    margin: 2px 0 0;
    color: #94a3b8;
    font-size: 0.8rem;
}

.pwa-install-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-install-dismiss {
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 1rem;
    cursor: pointer;
    padding: 6px;
}

.offline-list {
    margin: 12px 0 0;
    padding-left: 1.1rem;
}

.offline-list a {
    color: #6ee7b7;
}

.page-offline .offline-hub {
    display: grid;
    gap: 20px;
    padding: 8px 0 32px;
}

.page-offline .offline-hero {
    padding: 8px 2px 4px;
}

.page-offline .offline-hero h1 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 800;
}

.page-offline .offline-hero .lede {
    margin: 0 0 18px;
    max-width: 42ch;
    font-size: 0.95rem;
    color: #94a3b8;
}

.page-offline .offline-ctas {
    display: grid;
    gap: 10px;
}

.page-offline .offline-ctas .btn-auth-submit {
    margin: 0;
}

.page-offline .offline-cta-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid #34d399;
    border-radius: 12px;
    background: transparent;
    color: #6ee7b7;
    font-weight: 700;
    text-decoration: none;
}

.page-offline .offline-cta-outline:hover {
    background: rgb(16 185 129 / 0.08);
}

.page-offline .offline-panel {
    padding: 22px 18px 24px;
    border-radius: 16px;
    border: 1px solid #1e293b;
    background: rgb(15 23 42 / 0.72);
}

.page-offline .offline-panel h2 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.page-offline .offline-panel h3 {
    margin: 0 0 12px;
    font-size: 0.92rem;
    color: #cbd5e1;
}

.page-offline .offline-empty {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 12px;
    padding: 28px 8px 8px;
}

.page-offline .offline-empty[hidden],
.page-offline .offline-library[hidden] {
    display: none !important;
}

.page-offline .offline-empty-art {
    width: 88px;
    height: 72px;
    color: #64748b;
    opacity: 0.45;
}

.page-offline .offline-empty-art svg {
    width: 100%;
    height: 100%;
}

.page-offline .offline-empty-copy {
    margin: 0;
    color: #cbd5e1;
    font-weight: 650;
}

.page-offline .offline-cta-browse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    padding: 10px 16px;
    border-radius: 10px;
    background: #10b981;
    color: #020617;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.page-offline .offline-course-list {
    display: grid;
    gap: 10px;
}

.page-offline .offline-course-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 8px 10px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #1e293b;
    background: #0f172a;
}

.page-offline .offline-course-thumb {
    grid-row: 1 / span 2;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: #020617;
}

.page-offline .offline-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-offline .offline-course-body h4 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.page-offline .offline-course-meta {
    margin: 4px 0 0;
    font-size: 0.72rem;
    color: #94a3b8;
}

.page-offline .offline-course-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-offline .offline-course-read {
    padding: 6px 12px;
    border-radius: 8px;
    background: #10b981;
    color: #020617;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

.page-offline .offline-course-remove {
    padding: 6px 10px;
    border: 1px solid #334155;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 650;
    cursor: pointer;
}

.page-offline .offline-course-remove:hover {
    border-color: #f87171;
    color: #fca5a5;
}

@media (max-width: 767px) {
    .page-offline .offline-hub {
        padding: 12px 2px 40px;
    }
}

.bottom-nav {
    display: none;
}

html.is-standalone .pwa-install-banner,
html.is-standalone #btn-install,
html.is-standalone .pf-install {
    display: none !important;
}

@media (max-width: 767px) {
    html {
        --bottom-nav-h: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    body {
        padding-bottom: 0;
    }

    .main {
        padding-bottom: calc(6rem + var(--bottom-nav-h, 4rem));
    }

    .site-footer {
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }

    .toplinks {
        display: none !important;
    }

    .currency-switch {
        display: none;
    }

    .qma-logo-text {
        display: none;
    }

    .top-actions {
        gap: 8px;
    }

    .topbar {
        grid-template-columns: 1fr auto;
        padding-top: max(12px, env(safe-area-inset-top, 0px));
    }

    .install-chip {
        display: none !important;
    }

    .pwa-install-banner {
        position: sticky;
        top: var(--header-h);
        z-index: 40;
    }

    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 50;
        align-items: stretch;
        justify-content: space-around;
        gap: 2px;
        background: rgb(2 6 23 / 0.94);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid #1e293b;
        box-shadow: 0 -8px 24px rgb(2 6 23 / 0.45);
        padding: 6px 4px env(safe-area-inset-bottom, 0px);
        isolation: isolate;
    }

    .bottom-nav-item {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-height: 52px;
        padding: 6px 2px;
        color: #94a3b8;
        text-decoration: none;
        font-size: 0.68rem;
        font-weight: 650;
        border-radius: 10px;
    }

    .bottom-nav-item svg {
        width: 22px;
        height: 22px;
    }

    .bottom-nav-item.is-active {
        color: #6ee7b7;
        background: rgba(16, 185, 129, 0.08);
    }

    .support-float {
        right: 16px;
        bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 16px);
        z-index: 55;
    }
}

@media (min-width: 768px) {
    .bottom-nav.md\:hidden,
    .bottom-nav {
        display: none;
    }
}


