/* ============================================================
   VIEW SYSTEM — "vx-"
   Catalog grid, course detail, document pages and the account
   dashboard. Pairs with pages.css (fields/buttons live there).
   ============================================================ */

:root {
    --vx-pine:   #1b4332;
    --vx-pine-2: #2d6a4f;
    --vx-pine-3: #40916c;
    --vx-deep:   #071a13;
    --vx-mint:   #52b788;
    --vx-mint-2: #95d5b2;
    --vx-mint-3: #d8f3dc;
    --vx-ink:    #10241a;
    --vx-pencil: #3d5a4b;
    --vx-mute:   #6e8b7c;
    --vx-line:   #cbe8d7;
    --vx-canvas: #f6fbf8;
    --vx-tint:   #eef8f1;
    --vx-ease:   cubic-bezier(.22, 1, .36, 1);
}

/* `clip` (not `hidden`) contains the ambient glows without creating a scroll
   container — `overflow: hidden` on an ancestor silently disables
   `position: sticky` on the doc/dashboard/detail asides. */
.vx-sec { position: relative; padding: 76px 0 92px; background: var(--vx-canvas); overflow: clip; }
.vx-sec--tint { background: var(--vx-tint); }
.vx-sec--paper { background: #fff; }
.vx-sec > .auto-container,
.vx-sec > .container { position: relative; z-index: 1; }

.vx-glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(80px); z-index: 0; }
.vx-glow--a { top: -180px; left: -120px; width: 440px; height: 440px; background: radial-gradient(circle, rgba(82,183,136,.2), transparent 68%); }
.vx-glow--b { bottom: -200px; right: -140px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(116,198,157,.18), transparent 68%); }

.vx-mono { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

.vx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 11px;
    padding: 14px 26px; border-radius: 100px; border: 1.5px solid transparent;
    font-size: 14.5px; font-weight: 700; text-decoration: none; cursor: pointer;
    transition: all .3s var(--vx-ease);
}
.vx-btn i { font-size: 12px; transition: transform .3s var(--vx-ease); }
.vx-btn:hover i { transform: translateX(4px); }
.vx-btn--go { background: var(--vx-pine) !important; color: #fff !important; }
.vx-btn--go:hover { background: var(--vx-mint) !important; color: #06231a !important; text-decoration: none !important; }
.vx-btn--mint { background: var(--vx-mint) !important; color: #06231a !important; }
.vx-btn--mint:hover { background: #fff !important; color: var(--vx-pine) !important; text-decoration: none !important; }
.vx-btn--ghost { background: #fff; border-color: var(--vx-line); color: var(--vx-pine-2) !important; }
.vx-btn--ghost:hover { border-color: var(--vx-mint); background: var(--vx-mint-3); text-decoration: none !important; }

/* ============================================================
   1. CATALOG — toolbar + card grid
   ============================================================ */
.vx-toolbar {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 24px; flex-wrap: wrap; margin-bottom: 26px;
}
.vx-toolbar__eyebrow { display: block; margin-bottom: 12px; color: var(--vx-pine-2); }
.vx-toolbar__title {
    font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.025em;
    color: var(--vx-ink); margin: 0;
}
.vx-toolbar__lede { font-size: 15.5px; line-height: 1.72; color: var(--vx-pencil); margin: 12px 0 0; max-width: 60ch; }
.vx-toolbar__count {
    display: flex; align-items: baseline; gap: 10px; margin: 0;
    padding: 14px 22px; border-radius: 100px;
    background: #fff; border: 1px solid var(--vx-line);
}
.vx-toolbar__count-num { font-size: 24px; font-weight: 800; color: var(--vx-pine-2); }
.vx-toolbar__count span { color: var(--vx-mute); }

.vx-filters {
    display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 40px;
    padding-bottom: 24px; border-bottom: 1px solid var(--vx-line);
}
.vx-chip {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 20px; border-radius: 100px;
    background: #fff; border: 1px solid var(--vx-line);
    font-size: 13.5px; font-weight: 700; color: var(--vx-pencil) !important; text-decoration: none;
    transition: all .28s var(--vx-ease);
}
.vx-chip:hover {
    border-color: var(--vx-mint); background: var(--vx-mint-3);
    color: var(--vx-pine-2) !important; text-decoration: none !important;
}
.vx-chip.is-active {
    background: var(--vx-pine); border-color: var(--vx-pine); color: #fff !important;
    box-shadow: 0 10px 24px -14px rgba(27,67,50,.9);
}

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

.vx-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--vx-line); border-radius: 22px;
    transition: transform .4s var(--vx-ease), box-shadow .4s var(--vx-ease), border-color .4s var(--vx-ease);
}
.vx-card:hover {
    transform: translateY(-6px); border-color: var(--vx-mint-2);
    box-shadow: 0 30px 56px -34px rgba(16,36,26,.5);
}
.vx-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--vx-pine); }
.vx-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--vx-ease); }
.vx-card:hover .vx-card__media img { transform: scale(1.07); }
.vx-card__fallback {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: rgba(149,213,178,.5); font-size: 34px;
}
.vx-card__badge {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 13px; border-radius: 100px;
    background: rgba(7,26,19,.78); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.16);
    font-size: 11px; font-weight: 800; letter-spacing: .1em; color: #fff;
}
.vx-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 22px; }
.vx-card__title { font-size: 18px; font-weight: 800; line-height: 1.3; margin: 0 0 10px; }
.vx-card__title a { color: var(--vx-ink) !important; text-decoration: none; }
.vx-card__title a:hover { color: var(--vx-pine-2) !important; text-decoration: none !important; }
.vx-card__desc { font-size: 14px; line-height: 1.68; color: var(--vx-pencil); margin: 0 0 18px; }

.vx-card__foot {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    margin-top: auto; padding-top: 18px; border-top: 1px solid var(--vx-line);
}
.vx-card__price { display: flex; flex-direction: column; gap: 3px; }
.vx-card__price-num { font-size: 19px; font-weight: 800; color: var(--vx-pine-2); }
.vx-card__price-label { color: var(--vx-mute); }
.vx-card__go {
    width: 42px; height: 42px; border-radius: 50%; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: var(--vx-mint-3); color: var(--vx-pine-2) !important; font-size: 13px;
    transition: all .3s var(--vx-ease);
}
.vx-card:hover .vx-card__go { background: var(--vx-pine); color: #fff !important; }

.vx-pager { margin-top: 46px; display: flex; justify-content: center; }
.vx-pager .pagination { gap: 6px; flex-wrap: wrap; }
.vx-pager .page-link {
    border-radius: 12px !important; border: 1px solid var(--vx-line) !important;
    color: var(--vx-pine-2) !important; font-weight: 700; padding: 10px 16px;
}
.vx-pager .page-item.active .page-link {
    background: var(--vx-pine) !important; border-color: var(--vx-pine) !important; color: #fff !important;
}

.vx-empty {
    text-align: center; padding: 66px 32px; border-radius: 26px;
    background: #fff; border: 1px solid var(--vx-line);
}
.vx-empty__ico {
    width: 78px; height: 78px; margin: 0 auto 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--vx-mint-3); color: var(--vx-pine-2); font-size: 29px;
}
.vx-empty__label { display: block; margin-bottom: 12px; color: var(--vx-mint); }
.vx-empty__title { font-size: 24px; font-weight: 800; color: var(--vx-ink); margin: 0 0 22px; }

/* ============================================================
   2. COURSE DETAIL
   ============================================================ */
.vx-hero { position: relative; padding: 60px 0 66px; background: var(--vx-canvas); overflow: hidden; }
.vx-hero__grid {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 50px; align-items: center;
}
.vx-hero__kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--vx-pine-2); }
.vx-hero__kicker-bar { width: 26px; height: 2px; background: var(--vx-mint); }
.vx-hero__title {
    font-size: clamp(30px, 3.8vw, 48px); line-height: 1.08; font-weight: 800;
    letter-spacing: -.03em; color: var(--vx-ink); margin: 0 0 16px;
}
.vx-hero__lede { font-size: 16.5px; line-height: 1.8; color: var(--vx-pencil); margin: 0 0 26px; max-width: 56ch; }

.vx-specs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.vx-spec {
    display: inline-flex; align-items: center; gap: 11px;
    padding: 12px 18px; border-radius: 14px;
    background: #fff; border: 1px solid var(--vx-line);
}
.vx-spec__ico {
    width: 32px; height: 32px; border-radius: 10px; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: var(--vx-mint-3); color: var(--vx-pine-2); font-size: 12px;
}
.vx-spec__label { display: block; margin-bottom: 3px; color: var(--vx-mute); }
.vx-spec__value { display: block; font-size: 14px; font-weight: 700; color: var(--vx-ink); }

.vx-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* cover card */
.vx-cover { position: relative; }
.vx-cover__frame {
    position: relative; margin: 0; border-radius: 26px; overflow: hidden;
    aspect-ratio: 4 / 3; border: 6px solid #fff;
    box-shadow: 0 40px 76px -44px rgba(16,36,26,.62);
}
.vx-cover__frame img { width: 100%; height: 100%; object-fit: cover; }
.vx-cover__price {
    position: absolute; left: -14px; bottom: 24px; z-index: 3;
    padding: 18px 24px; border-radius: 18px;
    background: var(--vx-pine); color: #fff;
    box-shadow: 0 24px 46px -22px rgba(16,36,26,.8);
}
.vx-cover__price-label { display: block; margin-bottom: 6px; color: var(--vx-mint-2) !important; }
.vx-cover__price-num { display: block; font-size: 26px; font-weight: 800; line-height: 1; }
.vx-cover__price-num span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--vx-mint-2); margin-left: 5px; }

.vx-cover__thumbs { display: flex; gap: 10px; margin-top: 16px; }
.vx-cover__thumbs img {
    width: 76px; height: 58px; object-fit: cover; border-radius: 12px;
    border: 2px solid #fff; box-shadow: 0 10px 22px -14px rgba(16,36,26,.5);
}

/* overview */
.vx-brief { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 50px; align-items: start; }
.vx-brief__aside { position: sticky; top: 130px; }
.vx-brief__label { display: block; margin-bottom: 14px; color: var(--vx-pine-2); }
.vx-brief__rule { display: block; width: 46px; height: 3px; border-radius: 3px; background: var(--vx-mint); margin-bottom: 20px; }
.vx-brief__note { font-size: 14px; line-height: 1.7; color: var(--vx-pencil); margin: 0; }
.vx-brief__body p {
    font-size: 16.5px; line-height: 1.85; color: var(--vx-pencil); margin: 0 0 20px;
}
.vx-brief__body p:first-child {
    font-size: 18.5px; line-height: 1.75; color: var(--vx-ink); font-weight: 500;
}
.vx-brief__body p:last-child { margin-bottom: 0; }

/* levels */
.vx-path__head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 26px; flex-wrap: wrap; margin-bottom: 40px;
}
.vx-path__badge { display: block; margin-bottom: 12px; color: var(--vx-mint); }
.vx-path__title { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.025em; color: #fff !important; margin: 0; }
.vx-path__lede { font-size: 15.5px; line-height: 1.72; color: rgba(216,243,220,.75) !important; margin: 0; max-width: 48ch; }

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

.vx-level {
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid rgba(149,213,178,.3); border-radius: 24px;
    transition: transform .4s var(--vx-ease), box-shadow .4s var(--vx-ease);
}
.vx-level:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -34px rgba(7,26,19,.7); }

.vx-level__head {
    display: flex; align-items: center; gap: 15px;
    padding: 24px 26px; background: var(--vx-tint); border-bottom: 1px solid var(--vx-line);
}
.vx-level__num {
    flex: none; width: 44px; height: 44px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: var(--vx-pine); color: #fff !important; font-size: 13px; font-weight: 800;
}
.vx-level__step { display: block; margin-bottom: 4px; color: var(--vx-mute); }
.vx-level__name { font-size: 19px; font-weight: 800; color: var(--vx-ink) !important; margin: 0; }

.vx-level__body { flex: 1; padding: 24px 26px; }
.vx-block { margin-bottom: 20px; }
.vx-block:last-child { margin-bottom: 0; }
.vx-block__label { display: block; margin-bottom: 8px; color: var(--vx-pine-2); }
.vx-block__text { font-size: 14.5px; line-height: 1.7; color: var(--vx-pencil); margin: 0; }

.vx-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.vx-checks li { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; line-height: 1.6; color: var(--vx-pencil); }
.vx-checks i {
    flex: none; width: 20px; height: 20px; border-radius: 50%; margin-top: 2px;
    display: flex; align-items: center; justify-content: center;
    background: var(--vx-mint-3); color: var(--vx-pine-2); font-size: 9px;
}

.vx-level__foot {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 20px 26px; border-top: 1px solid var(--vx-line); background: var(--vx-canvas);
}
.vx-level__price-num { font-size: 24px; font-weight: 800; color: var(--vx-pine-2); }
.vx-level__price-unit { display: block; margin-top: 2px; color: var(--vx-mute); }
.vx-level__foot form { margin: 0; }

/* ============================================================
   3. DOCUMENT PAGE
   ============================================================ */
.vx-doc-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1250;
    background: transparent; pointer-events: none;
}
.vx-doc-progress span {
    display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--vx-mint), var(--vx-mint-2));
}

.vx-doc { display: grid; grid-template-columns: 286px minmax(0, 1fr); gap: 34px; align-items: start; }

/* Pinned while reading. The aside is capped to the viewport and the contents
   list scrolls inside it, so a long document never pushes the nav out of reach. */
.vx-doc__aside {
    position: sticky; top: 122px;
    display: flex; flex-direction: column; gap: 16px;
    max-height: calc(100vh - 146px);
}
.vx-doc__card {
    flex: none;
    padding: 24px 24px; border-radius: 22px;
    background: linear-gradient(160deg, #14382a 0%, var(--vx-pine) 58%, #0d2a1f 100%);
}
.vx-doc__facts { margin: 0; display: grid; gap: 14px; }
.vx-doc__fact dt { display: block; margin-bottom: 5px; color: var(--vx-mint-2) !important; font-weight: 800; }
.vx-doc__fact dd { margin: 0; font-size: 14.5px; font-weight: 700; color: #fff !important; }

.vx-doc__toc {
    display: flex; flex-direction: column; min-height: 0;
    padding: 22px 14px 16px 22px; border-radius: 22px;
    background: #fff; border: 1px solid var(--vx-line);
}
.vx-doc__toc-label { flex: none; display: block; margin: 0 0 14px; color: var(--vx-pine-2); }
.vx-doc__toc-list {
    list-style: none; margin: 0; padding: 0 8px 0 0; display: grid; gap: 2px;
    min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: var(--vx-line) transparent;
}
.vx-doc__toc-list::-webkit-scrollbar { width: 6px; }
.vx-doc__toc-list::-webkit-scrollbar-thumb { background: var(--vx-line); border-radius: 100px; }
.vx-doc__toc-list::-webkit-scrollbar-track { background: transparent; }
.vx-doc__toc-list a {
    display: flex; align-items: flex-start; gap: 11px; padding: 9px 11px; border-radius: 11px;
    font-size: 13.5px; line-height: 1.5; font-weight: 600;
    color: var(--vx-pencil) !important; text-decoration: none;
    transition: all .22s var(--vx-ease);
}
.vx-doc__toc-list a:hover { background: var(--vx-tint); color: var(--vx-pine-2) !important; text-decoration: none !important; }
.vx-doc__toc-list a.is-current { background: var(--vx-mint-3); color: var(--vx-pine) !important; }
.vx-doc__toc-num { flex: none; color: var(--vx-mint); font-weight: 800; }

.vx-doc__sheet {
    padding: 48px 52px; border-radius: 24px;
    background: #fff; border: 1px solid var(--vx-line);
    box-shadow: 0 30px 66px -50px rgba(16,36,26,.5);
}
.vx-doc__sheet .vx-doc__dupe { display: none; }
.vx-doc__sheet h1, .vx-doc__sheet h2, .vx-doc__sheet h3 {
    color: var(--vx-ink); font-weight: 800; letter-spacing: -.02em; line-height: 1.22;
    margin: 40px 0 14px;
}
.vx-doc__sheet > :first-child { margin-top: 0; }
.vx-doc__sheet h1 { font-size: 30px; }
.vx-doc__sheet h2 { font-size: 24px; }
.vx-doc__sheet h3 { font-size: 19px; }
.vx-doc__sheet .vx-doc__section-head {
    position: relative; padding-top: 26px; border-top: 1px solid var(--vx-line);
}
.vx-doc__sheet .vx-doc__section-head::before {
    content: attr(data-num);
    display: block; margin-bottom: 10px;
    font-size: 11px; font-weight: 800; letter-spacing: .16em; color: var(--vx-mint);
}
.vx-doc__sheet p, .vx-doc__sheet li {
    font-size: 16px; line-height: 1.82; color: var(--vx-pencil);
}
.vx-doc__sheet p { margin: 0 0 18px; }
.vx-doc__sheet ul, .vx-doc__sheet ol { margin: 0 0 20px; padding-left: 22px; }
.vx-doc__sheet li { margin-bottom: 9px; }
.vx-doc__sheet a { color: var(--vx-pine-2); font-weight: 600; text-decoration: underline; }
.vx-doc__sheet a:hover { color: var(--vx-mint); }
.vx-doc__sheet strong { color: var(--vx-ink); font-weight: 700; }
.vx-doc__sheet table { width: 100%; border-collapse: collapse; margin: 0 0 22px; }
.vx-doc__sheet th, .vx-doc__sheet td {
    padding: 12px 14px; border: 1px solid var(--vx-line); font-size: 14.5px; text-align: left;
}
.vx-doc__sheet th { background: var(--vx-tint); color: var(--vx-ink); font-weight: 700; }
.vx-doc__sheet img { max-width: 100%; height: auto; border-radius: 14px; }

.vx-doc__foot {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    margin-top: 26px; padding: 30px 34px; border-radius: 22px;
    background: linear-gradient(150deg, #14382a 0%, var(--vx-pine) 60%, #0d2a1f 100%);
}
.vx-doc__foot-title { font-size: 19px; font-weight: 800; color: #fff !important; margin: 0 0 7px; }
.vx-doc__foot-text { font-size: 14.5px; line-height: 1.65; color: rgba(216,243,220,.72) !important; margin: 0; }

.vx-doc__top {
    position: fixed; right: 24px; bottom: 96px; z-index: 900;
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 20px; border-radius: 100px; border: 0; cursor: pointer;
    background: var(--vx-pine); color: #fff !important;
    box-shadow: 0 18px 34px -18px rgba(16,36,26,.85);
    transition: background .25s var(--vx-ease), transform .25s var(--vx-ease);
}
.vx-doc__top:hover { background: var(--vx-mint); color: #06231a !important; transform: translateY(-2px); }

@media print {
    .vx-doc__aside, .vx-doc__foot, .vx-doc__top, .vx-doc-progress { display: none !important; }
    .vx-sec { padding: 0; }
    .vx-doc { grid-template-columns: 1fr; }
    .vx-doc__sheet { border: 0; box-shadow: none; padding: 0; }
}

/* ============================================================
   4. DASHBOARD
   ============================================================ */
.vx-dash { display: grid; grid-template-columns: 288px minmax(0, 1fr); gap: 26px; align-items: start; }

.vx-dash__aside { position: sticky; top: 130px; display: grid; gap: 16px; }

.vx-idcard {
    position: relative; overflow: hidden;
    padding: 28px 26px; border-radius: 24px;
    background: linear-gradient(160deg, #14382a 0%, var(--vx-pine) 58%, #0d2a1f 100%);
}
.vx-idcard__top { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.vx-idcard__avatar {
    flex: none; width: 52px; height: 52px; border-radius: 17px;
    display: flex; align-items: center; justify-content: center;
    background: var(--vx-mint); color: #06231a !important; font-size: 21px; font-weight: 800;
}
.vx-idcard__name { display: block; font-size: 16px; font-weight: 800; color: #fff !important; }
.vx-idcard__since { display: block; margin-top: 3px; font-size: 12.5px; color: rgba(216,243,220,.6) !important; }

.vx-idcard__balance {
    padding: 18px 20px; border-radius: 16px; margin-bottom: 18px;
    background: rgba(82,183,136,.16); border: 1px solid rgba(149,213,178,.32);
}
.vx-idcard__balance-label { display: block; margin-bottom: 8px; color: var(--vx-mint-2) !important; }
.vx-idcard__balance-value { font-size: 30px; font-weight: 800; color: #fff !important; line-height: 1; }
.vx-idcard__balance-value small {
    font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--vx-mint-2) !important; margin-left: 6px;
}
.vx-idcard__topup {
    width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px; border-radius: 100px;
    background: var(--vx-mint); color: #06231a !important; text-decoration: none;
    font-size: 14px; font-weight: 800;
    transition: background .25s var(--vx-ease), transform .25s var(--vx-ease);
}
.vx-idcard__topup:hover { background: #fff; transform: translateY(-2px); text-decoration: none !important; }

.vx-idcard__stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px;
    padding-top: 18px; border-top: 1px solid rgba(149,213,178,.18);
}
.vx-idcard__stat { text-align: center; }
.vx-idcard__stat strong { display: block; font-size: 21px; font-weight: 800; color: var(--vx-mint-2) !important; }
.vx-idcard__stat span { display: block; margin-top: 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(216,243,220,.55) !important; }

/* vertical nav */
.vx-dash__nav {
    padding: 12px; border-radius: 22px;
    background: #fff; border: 1px solid var(--vx-line);
    display: grid; gap: 4px; list-style: none; margin: 0;
}
.vx-dash__nav .nav-item { width: 100%; }
.vx-navlink {
    width: 100%; display: flex !important; align-items: center; gap: 13px;
    padding: 14px 16px !important; border-radius: 14px !important; border: 0 !important;
    background: transparent !important; cursor: pointer; text-align: left;
    font-size: 14.5px; font-weight: 700; color: var(--vx-pencil) !important;
    transition: all .25s var(--vx-ease);
}
.vx-navlink__num {
    flex: none; width: 30px; height: 30px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--vx-mint-3); color: var(--vx-pine-2); font-size: 11px; font-weight: 800;
    transition: all .25s var(--vx-ease);
}
.vx-navlink:hover { background: var(--vx-tint) !important; color: var(--vx-pine-2) !important; }
.vx-navlink.active {
    background: var(--vx-pine) !important; color: #fff !important;
    box-shadow: 0 12px 26px -16px rgba(27,67,50,.9);
}
.vx-navlink.active .vx-navlink__num { background: rgba(255,255,255,.16); color: #fff; }

.vx-dash__logout {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px; border-radius: 100px;
    border: 1px solid var(--vx-line); background: #fff;
    font-size: 13.5px; font-weight: 700; color: #c0392b !important; text-decoration: none;
    transition: all .25s var(--vx-ease);
}
.vx-dash__logout:hover { background: rgba(192,57,43,.08); border-color: rgba(192,57,43,.3); text-decoration: none !important; }

/* panels */
.vx-panel {
    background: #fff; border: 1px solid var(--vx-line); border-radius: 24px;
    padding: 32px 32px 30px;
}
.vx-panel__head {
    display: flex; align-items: center; gap: 15px; margin-bottom: 26px;
    padding-bottom: 20px; border-bottom: 1px solid var(--vx-line);
}
.vx-panel__ico {
    flex: none; width: 46px; height: 46px; border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    background: var(--vx-mint-3); color: var(--vx-pine-2); font-size: 17px;
}
.vx-panel__title { font-size: 20px; font-weight: 800; color: var(--vx-ink) !important; margin: 0 0 4px; }
.vx-panel__sub { font-size: 13.5px; color: var(--vx-mute) !important; margin: 0; }

.vx-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.vx-table thead th {
    padding: 13px 16px; text-align: left; white-space: nowrap;
    background: var(--vx-tint); color: var(--vx-pine-2);
    font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    border-bottom: 1px solid var(--vx-line);
}
.vx-table thead th:first-child { border-radius: 12px 0 0 12px; }
.vx-table thead th:last-child { border-radius: 0 12px 12px 0; }
.vx-table tbody td {
    padding: 17px 16px; border-bottom: 1px solid var(--vx-line);
    font-size: 14px; color: var(--vx-pencil); vertical-align: middle;
}
.vx-table tbody tr:last-child td { border-bottom: 0; }
.vx-table tbody tr:hover td { background: var(--vx-canvas); }
.vx-table__ref { font-weight: 800; color: var(--vx-ink) !important; white-space: nowrap; }
.vx-table__course { font-weight: 700; color: var(--vx-ink) !important; }
.vx-table__price { font-weight: 800; color: var(--vx-pine-2) !important; white-space: nowrap; }
.vx-table__date { color: var(--vx-mute) !important; white-space: nowrap; }

.vx-chipcred {
    display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
    padding: 7px 13px; border-radius: 100px;
    background: var(--vx-mint-3); color: var(--vx-pine-2);
    font-size: 12.5px; font-weight: 800;
}
.vx-chipcred i { font-size: 11px; color: var(--vx-mint); }

.vx-status {
    display: inline-flex; padding: 6px 13px; border-radius: 100px;
    font-size: 11.5px; font-weight: 800; letter-spacing: .04em; white-space: nowrap;
}
.vx-status--success { background: rgba(82,183,136,.16); color: #1b6b4a; }
.vx-status--danger  { background: rgba(192,57,43,.12); color: #b03a2b; }
.vx-status--warning { background: rgba(224,168,0,.16); color: #8a6400; }
.vx-status--info    { background: rgba(64,145,108,.14); color: var(--vx-pine-2); }
.vx-status--neutral { background: var(--vx-tint); color: var(--vx-mute); }

.vx-view {
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    padding: 9px 16px; border-radius: 100px;
    border: 1px solid var(--vx-line); background: #fff;
    font-size: 12.5px; font-weight: 700; color: var(--vx-pine-2) !important; text-decoration: none;
    transition: all .25s var(--vx-ease);
}
.vx-view:hover { background: var(--vx-pine); border-color: var(--vx-pine); color: #fff !important; text-decoration: none !important; }
.vx-view i { font-size: 11px; }

.vx-panel__empty { text-align: center; padding: 56px 24px; }
.vx-panel__empty-ico {
    width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--vx-tint); color: var(--vx-mute); font-size: 26px;
}
.vx-panel__empty p { font-size: 15px; color: var(--vx-pencil); margin: 0; }

/* ============================================================
   SEAFOAM GUARD — see pages.css for why these are needed
   ============================================================ */
.sf-theme .vx-path__title,
.sf-theme .vx-doc__foot-title { color: #fff !important; }
.sf-theme .vx-path__lede { color: rgba(216,243,220,.75) !important; }
.sf-theme .vx-panel__title,
.sf-theme .vx-level__name,
.sf-theme .vx-card__title { color: var(--vx-ink) !important; }
.sf-theme .vx-panel__sub { color: var(--vx-mute) !important; margin-bottom: 0 !important; }
.sf-theme .vx-toolbar__title { color: var(--vx-ink) !important; margin-bottom: 0 !important; }
.sf-theme .vx-hero__title { color: var(--vx-ink) !important; margin-bottom: 16px !important; }
.sf-theme .vx-hero__lede { color: var(--vx-pencil) !important; }
.sf-theme .vx-card,
.sf-theme .vx-level,
.sf-theme .vx-doc__card,
.sf-theme .vx-idcard { box-shadow: none; }
/* `[class*="__card"]` repaints these to white paper — they are pine panels. */
.sf-theme .vx-doc__card,
.sf-theme .vx-idcard {
    border: 0 !important;
    background: linear-gradient(160deg, #14382a 0%, var(--vx-pine) 58%, #0d2a1f 100%) !important;
}
.sf-theme .vx-doc__card:hover,
.sf-theme .vx-idcard:hover { transform: none !important; }
.sf-theme .vx-doc__fact dd,
.sf-theme .vx-idcard__name,
.sf-theme .vx-idcard__balance-value { color: #fff !important; }
.sf-theme .vx-doc__fact dt,
.sf-theme .vx-idcard__balance-label { color: var(--vx-mint-2) !important; }
.sf-theme .vx-idcard__since { color: rgba(216,243,220,.6) !important; }
.sf-theme .vx-path__badge { background: transparent !important; border: 0 !important; padding: 0 !important; color: var(--vx-mint) !important; margin-bottom: 12px !important; }
.sf-theme .vx-toolbar__eyebrow { background: transparent !important; border: 0 !important; padding: 0 !important; color: var(--vx-pine-2) !important; margin-bottom: 12px !important; }
.sf-theme .vx-card__badge {
    background: rgba(7,26,19,.78) !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    color: #fff !important; margin-bottom: 0 !important;
}
.sf-theme .vx-cover__price { border: 0 !important; box-shadow: 0 24px 46px -22px rgba(16,36,26,.8) !important; }
.sf-theme .vx-hero__kicker {
    background: transparent !important; border: 0 !important; padding: 0 !important;
    color: var(--vx-pine-2) !important; margin-bottom: 16px !important;
}
.sf-theme .vx-level__head { background: var(--vx-tint) !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
    .vx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vx-dash, .vx-doc { grid-template-columns: 240px minmax(0, 1fr); }
    .vx-doc__sheet { padding: 38px 34px; }
}

@media (max-width: 991px) {
    .vx-sec { padding: 60px 0 76px; }
    .vx-hero { padding: 40px 0 56px; }
    .vx-hero__grid { grid-template-columns: 1fr; gap: 36px; }
    .vx-cover__price { left: 14px; }
    .vx-brief { grid-template-columns: 1fr; gap: 28px; }
    .vx-brief__aside { position: static; }
    .vx-levels { grid-template-columns: 1fr; }

    .vx-doc, .vx-dash { grid-template-columns: 1fr; }
    .vx-doc__aside, .vx-dash__aside { position: static; max-height: none; }
    .vx-doc__toc-list { overflow-y: visible; padding-right: 0; }
    .vx-doc__toc { padding: 22px; }
    .vx-dash__nav { grid-template-columns: 1fr; }
    .vx-doc__sheet { padding: 32px 26px; }
    .vx-panel { padding: 26px 22px; }
}

@media (max-width: 767px) {
    .vx-grid { grid-template-columns: 1fr; }
    .vx-toolbar { align-items: flex-start; }
    .vx-idcard__stats { grid-template-columns: 1fr 1fr; }
    .vx-doc__top { right: 16px; bottom: 84px; padding: 11px 16px; }
}
