:root {
    color-scheme: dark;
    --blue: #1d96d3;
    --blue-dark: #1178ad;
    --blue-bright: #52c5ff;
    --ink: #f7f8fa;
    --muted: #bcc2cb;
    --line: rgba(255, 255, 255, .12);
    --soft: #15191f;
    --white: #fff;
    --surface: #111419;
    --surface-raised: #191d24;
    --surface-hover: #222832;
    --page: #080a0d;
    --radius: 8px;
    --shadow: 0 18px 55px rgba(0, 0, 0, .42);
    --theme-glow: rgba(29, 150, 211, .18);
    --theme-auth-glow: rgba(29, 150, 211, .38);
}

body.theme-christmas {
    --blue: #b52e3b;
    --blue-dark: #7f1f2a;
    --blue-bright: #efc96f;
    --theme-glow: rgba(28, 121, 76, .22);
    --theme-auth-glow: rgba(181, 46, 59, .34);
}

body.theme-summer {
    --blue: #18a9c5;
    --blue-dark: #087a96;
    --blue-bright: #72e2ed;
    --theme-glow: rgba(246, 148, 86, .2);
    --theme-auth-glow: rgba(24, 169, 197, .36);
}

body.theme-gold {
    --blue: #b78a36;
    --blue-dark: #7c5b1f;
    --blue-bright: #f1cf82;
    --theme-glow: rgba(183, 138, 54, .22);
    --theme-auth-glow: rgba(183, 138, 54, .38);
}

body.theme-christmas,
body.theme-summer,
body.theme-gold {
    background:
        radial-gradient(circle at 84% -10%, var(--theme-glow), transparent 34rem),
        linear-gradient(180deg, #0b0d11 0%, #080a0d 55%, #050608 100%);
}

body.theme-christmas .global-nav {
    background: linear-gradient(180deg, rgba(10, 31, 22, .99), rgba(7, 20, 15, .94));
}

body.theme-gold .global-nav {
    background: linear-gradient(180deg, rgba(24, 19, 10, .99), rgba(12, 10, 7, .94));
}

html,
body {
    min-height: 100%;
    color: var(--ink);
    background: var(--page);
}

body {
    background:
        radial-gradient(circle at 84% -10%, rgba(29, 150, 211, .14), transparent 34rem),
        linear-gradient(180deg, #0b0d11 0%, #080a0d 55%, #050608 100%);
    font-family: "Proxima Nova", "Proxima Soft", "Helvetica Neue", Arial, ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    letter-spacing: 0;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .22;
    background-image: linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

h1,
h2,
h3,
.metric {
    color: var(--ink);
    letter-spacing: -.035em;
}

a {
    color: #78d1ff;
}

a:hover {
    color: #b9e9ff;
}

.app-shell {
    display: block;
    min-height: 100vh;
}

.global-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    width: 100%;
    height: 72px;
    padding: 0 clamp(22px, 3vw, 54px);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(22px, 3vw, 48px);
    overflow: visible;
    color: #fff;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, rgba(5, 7, 10, .98), rgba(5, 7, 10, .88));
    box-shadow: 0 9px 30px rgba(0, 0, 0, .25);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.brand {
    min-height: 0;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: #fff;
}

.brand:hover {
    color: #fff;
}

.brand-logo {
    width: 34px;
    height: 49px;
    flex: 0 0 34px;
    object-fit: contain;
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .5));
}

.brand strong {
    display: block;
    max-width: 150px;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: .085em;
    text-transform: uppercase;
}

.brand small {
    display: block;
    margin-top: 4px;
    color: var(--blue-bright);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.global-nav .primary-nav {
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.primary-nav > a,
.nav-popover > summary {
    min-height: 38px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    color: #c9cdd4;
    border: 0;
    border-radius: 5px;
    background: transparent;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: 0;
    cursor: pointer;
    transition: color .16s ease, background .16s ease;
}

.primary-nav > a:hover,
.primary-nav > a.active,
.nav-popover > summary:hover,
.nav-popover.active > summary,
.nav-popover[open] > summary {
    color: #fff;
    background: rgba(255, 255, 255, .09);
}

.primary-nav > a.active::after,
.nav-popover.active > summary::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 4px;
    left: 12px;
    height: 2px;
    border-radius: 999px;
    background: var(--blue);
    box-shadow: 0 0 12px rgba(29, 150, 211, .85);
}

.primary-nav > a,
.nav-popover > summary {
    position: relative;
}

.nav-popover {
    position: relative;
}

.nav-popover > summary {
    list-style: none;
}

.nav-popover > summary::-webkit-details-marker {
    display: none;
}

.nav-popover > summary::before {
    content: "";
    width: 0;
    height: 0;
    margin-right: 7px;
    border-top: 4px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    opacity: .7;
    transition: transform .16s ease;
}

.nav-popover[open] > summary::before {
    transform: rotate(180deg);
}

.nav-popover-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    width: 220px;
    padding: 9px;
    display: grid;
    gap: 3px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: rgba(18, 21, 27, .98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .58);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.nav-popover-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 24px;
    width: 10px;
    height: 10px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    border-left: 1px solid rgba(255, 255, 255, .16);
    background: #12151b;
    transform: rotate(45deg);
}

.nav-popover-wide {
    grid-template-columns: 1fr 1fr;
    width: 390px;
}

.nav-popover-menu a {
    padding: 11px 12px;
    color: #c9cdd4;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 650;
}

.nav-popover-menu a:hover,
.nav-popover-menu a.active {
    color: #fff;
    background: rgba(29, 150, 211, .2);
}

.sidebar-user {
    min-width: 0;
    margin: 0 0 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
}

.sidebar-user .profile-chip {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 2px solid rgba(29, 150, 211, .55);
    border-radius: 50%;
    background: #152b37;
    box-shadow: 0 0 0 3px rgba(29, 150, 211, .1);
    overflow: hidden;
    font-size: 17px;
    line-height: 1;
    text-align: center;
}

.sidebar-user .profile-initials {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.profile-chip img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-user-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.sidebar-user-copy strong {
    color: #fff;
    font-size: 14px;
}

.sidebar-user-copy small {
    margin-top: 4px;
    color: #b5bcc6;
    font-size: 13px;
}

.sidebar-user .signout-link {
    padding: 8px;
    color: #b8bec7;
    font-size: 13px;
}

.sidebar-user .signout-link:hover {
    color: #fff;
}

.main {
    min-width: 0;
    padding-top: 72px;
}

.topbar {
    position: relative;
    top: auto;
    z-index: 2;
    height: auto;
    min-height: 96px;
    padding: 30px clamp(24px, 4vw, 64px) 18px;
    color: #fff;
    border: 0;
    background: transparent;
}

.topbar-title > span {
    display: none;
}

.topbar h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 820;
    letter-spacing: -.045em;
}

.menu-button {
    color: #fff;
}

.content {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 12px clamp(24px, 4vw, 64px) 70px;
}

.page-dashboard .topbar {
    display: none;
}

.page-dashboard .content {
    max-width: none;
    padding-top: 0;
}

.card,
.table-wrap {
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(27, 31, 38, .98), rgba(16, 19, 24, .98));
    box-shadow: 0 12px 36px rgba(0, 0, 0, .24);
}

.card {
    padding: clamp(20px, 2.4vw, 30px);
}

.card h2,
.card h3 {
    color: #fff;
}

.grid {
    gap: 18px;
}

.btn {
    min-height: 42px;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 780;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.btn-primary {
    color: #fff;
    border-color: #239fdc;
    background: var(--blue);
    box-shadow: 0 8px 24px rgba(29, 150, 211, .22);
}

.btn-primary:hover {
    color: #fff;
    background: #2aa9e8;
    box-shadow: 0 10px 30px rgba(29, 150, 211, .34);
    transform: translateY(-1px);
}

.btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .11);
    box-shadow: none;
}

.btn-secondary:hover {
    color: #fff;
    background: rgba(255, 255, 255, .19);
    transform: translateY(-1px);
}

.btn-danger {
    color: #ffb7bd;
    border-color: rgba(255, 99, 113, .35);
    background: rgba(194, 59, 71, .16);
    box-shadow: none;
}

.btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

.btn-small {
    min-height: 34px;
    padding: 7px 12px;
}

.page-actions {
    gap: 10px;
}

.muted,
.help,
.metric-label,
.training-meta {
    color: var(--muted);
}

.help,
.training-meta,
.leaderboard-person span,
.leaderboard-stat span,
.earned-badge small,
.points-breakdown span {
    font-size: 14px;
    line-height: 1.5;
}

.field label {
    font-size: 14px;
}

th {
    font-size: 14px;
}

td {
    font-size: 15px;
}

.badge,
.btn-small {
    font-size: 14px;
}

.certificate h1,
.certificate .recipient {
    font-family: inherit;
}

.eyebrow {
    color: var(--blue-bright);
    font-weight: 800;
    letter-spacing: .14em;
}

.field label {
    color: #d9dde3;
}

.field input,
.field select,
.field textarea {
    color: #fff;
    border-color: rgba(255, 255, 255, .16);
    background: #0c0f13;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(29, 150, 211, .18);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #68717d;
}

option {
    color: #fff;
    background: #111419;
}

.alert {
    color: #b9e9ff;
    border-color: rgba(29, 150, 211, .3);
    background: rgba(29, 150, 211, .13);
}

.alert.success {
    color: #a9f0cd;
    border-color: rgba(31, 138, 91, .4);
    background: rgba(31, 138, 91, .17);
}

.alert.danger {
    color: #ffc3c8;
    border-color: rgba(194, 59, 71, .45);
    background: rgba(194, 59, 71, .18);
}

.divider,
th,
td,
.home-news-item {
    border-color: var(--line);
}

.table-wrap {
    overflow: auto;
}

table {
    color: #e8eaed;
}

th {
    color: #949ca8;
    background: #0e1115;
}

tbody tr {
    transition: background .14s ease;
}

tbody tr:hover {
    background: rgba(255, 255, 255, .035);
}

.badge {
    color: #c7ced7;
    background: #2a3038;
}

.badge.success {
    color: #8fe0ba;
    background: rgba(31, 138, 91, .2);
}

.badge.warning {
    color: #ffd48a;
    background: rgba(173, 106, 0, .22);
}

.badge.danger {
    color: #ffb2ba;
    background: rgba(194, 59, 71, .2);
}

.progress {
    height: 6px;
    background: rgba(255, 255, 255, .1);
}

.progress > span {
    background: linear-gradient(90deg, var(--blue-dark), var(--blue-bright));
    box-shadow: 0 0 14px rgba(29, 150, 211, .5);
}

.training-icon {
    color: #fff;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(145deg, #32afea, #126e9c);
    box-shadow: 0 12px 28px rgba(29, 150, 211, .22);
}

.training-card {
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.card.training-card:hover,
.training-card.card:hover {
    z-index: 3;
    background: var(--surface-hover);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .46);
    transform: translateY(-5px) scale(1.012);
}

.certification-card-image {
    border-radius: 10px 10px 0 0;
    filter: saturate(.9) contrast(1.05);
}

.home-hero {
    min-height: clamp(390px, 58vh, 650px);
    margin: 0 calc(-1 * clamp(24px, 4vw, 64px));
    padding: clamp(70px, 10vw, 150px) clamp(30px, 7vw, 110px) clamp(55px, 8vw, 110px);
    align-items: flex-end;
    color: #fff;
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(90deg, #050608 0%, rgba(5, 6, 8, .96) 36%, rgba(5, 6, 8, .62) 68%, rgba(5, 6, 8, .24) 100%),
        radial-gradient(circle at 82% 38%, rgba(29, 150, 211, .52), transparent 19rem),
        linear-gradient(135deg, #142b39, #071019 72%);
    box-shadow: none;
}

.home-hero::before {
    content: "";
    position: absolute;
    top: 8%;
    right: 8%;
    bottom: 4%;
    width: min(34vw, 460px);
    background: url('brand/college-logo.webp') center / contain no-repeat;
    opacity: .7;
    filter: drop-shadow(0 30px 45px rgba(0, 0, 0, .65));
}

.home-hero::after {
    width: auto;
    height: 170px;
    inset: auto 0 0;
    border: 0;
    border-radius: 0;
    background: linear-gradient(to bottom, transparent, var(--page));
}

.home-hero > div:first-child {
    max-width: 780px;
}

.home-hero h2 {
    max-width: 800px;
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(42px, 6vw, 82px);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.06em;
    text-wrap: balance;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .5);
}

.home-hero p {
    max-width: 680px;
    color: #d1d5dc;
    font-size: clamp(16px, 1.6vw, 21px);
    line-height: 1.55;
}

.home-hero .eyebrow {
    color: var(--blue-bright);
}

.home-hero .page-actions {
    justify-content: flex-start;
    margin: 26px 0 0;
}

.home-hero .btn-primary {
    color: #fff;
    background: var(--blue);
    box-shadow: 0 10px 32px rgba(29, 150, 211, .34);
}

.home-hero .btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, .14);
    background: rgba(70, 74, 82, .68);
    box-shadow: none;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.dashboard-metrics {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 0 16px;
    scroll-snap-type: x proximity;
    scrollbar-color: #343b45 transparent;
}

.dashboard-metrics .card {
    min-width: 220px;
    flex: 1 0 220px;
    padding: 24px;
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid rgba(255, 255, 255, .1);
    border-top: 1px solid rgba(255, 255, 255, .1);
    background:
        radial-gradient(circle at 100% 0, rgba(29, 150, 211, .2), transparent 9rem),
        linear-gradient(145deg, #1b2027, #111419);
}

.dashboard-metrics .card::after {
    width: 6px;
    height: 46%;
    inset: auto auto 0 0;
    border-radius: 0;
    background: var(--blue);
}

.metric {
    color: #fff;
    font-size: 44px;
}

.metric-label {
    max-width: 180px;
    color: #c2c7cf;
    font-size: 15px;
    line-height: 1.45;
    letter-spacing: .04em;
    text-transform: none;
}

.home-news-card {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding-inline: 0;
}

.home-section-heading {
    align-items: center;
    margin-bottom: 14px;
}

.home-section-heading h2 {
    font-size: clamp(24px, 2.6vw, 36px);
}

.home-news-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(230px, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding: 6px 2px 20px;
    scroll-snap-type: x proximity;
}

.home-news-item {
    min-width: 250px;
    min-height: 190px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    scroll-snap-align: start;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 9px;
    background-color: #171b21;
    background-image:
        linear-gradient(180deg, rgba(4, 7, 10, .48), rgba(4, 7, 10, .94) 86%),
        linear-gradient(90deg, rgba(29, 150, 211, .14), transparent 70%),
        var(--news-background-image, url('brand/college-logo.webp'));
    background-position: center;
    background-size: 100% 100%, 100% 100%, contain;
    background-repeat: no-repeat;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.home-news-item:hover {
    background-color: #202630;
    background-image:
        linear-gradient(180deg, rgba(4, 7, 10, .36), rgba(4, 7, 10, .9) 86%),
        linear-gradient(90deg, rgba(29, 150, 211, .18), transparent 70%),
        var(--news-background-image, url('brand/college-logo.webp'));
    background-size: 100% 100%, 100% 100%, contain;
    box-shadow: 0 22px 50px rgba(0, 0, 0, .4);
    transform: translateY(-6px);
}

.home-news-icon {
    width: 44px;
    height: 44px;
    color: #fff;
    border-radius: 50%;
    background: var(--blue);
}

.home-news-certification .home-news-icon,
.home-news-badge .home-news-icon,
.home-news-leaderboard .home-news-icon {
    color: #fff;
    background: var(--blue);
}

.home-news-copy h3 {
    margin: 8px 0 7px;
    color: #fff;
    font-size: 18px;
}

.home-news-copy h3 a {
    color: #fff;
}

.home-news-copy p,
.home-news-meta {
    color: #b9c0ca;
}

.home-news-copy p {
    font-size: 15px;
    line-height: 1.5;
}

.home-news-meta {
    font-size: 13px;
    line-height: 1.4;
}

.home-section-heading > .muted {
    font-size: 15px;
    line-height: 1.5;
}

.dashboard-training-image {
    border-radius: 8px;
}

.empty {
    color: #929aa5;
}

.packet-reward-layout {
    grid-template-columns: minmax(0, 880px);
}

.packet-reward-card {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 4vw, 48px);
    background:
        radial-gradient(circle at 50% 52%, rgba(29, 150, 211, .2), transparent 28rem),
        linear-gradient(145deg, rgba(25, 30, 37, .99), rgba(8, 10, 14, .99));
}

.packet-reward-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .32;
    background-image: radial-gradient(rgba(82, 197, 255, .34) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(circle at center, #000, transparent 68%);
}

.packet-reward-card > * {
    position: relative;
    z-index: 1;
}

.packet-preview,
.packet-opening {
    position: relative;
    width: min(340px, 78vw);
    aspect-ratio: 9 / 16;
    margin: 28px auto 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 24px;
    background: #030507;
    box-shadow:
        0 0 0 1px rgba(29, 150, 211, .18),
        0 30px 80px rgba(0, 0, 0, .62),
        0 0 58px rgba(29, 150, 211, .2);
}

.packet-preview img,
.packet-opening video {
    width: 100%;
    height: 100%;
    max-height: none;
    display: block;
    object-fit: cover;
    background: #030507;
}

.packet-preview img {
    animation: packet-float 3.2s ease-in-out infinite;
}

.packet-aura {
    position: absolute;
    z-index: 2;
    inset: 19% 17%;
    pointer-events: none;
    border-radius: 50%;
    box-shadow: 0 0 75px 24px rgba(29, 150, 211, .28);
    animation: packet-pulse 2.1s ease-in-out infinite;
}

.packet-open-form {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 12px;
}

.packet-open-form .btn {
    min-width: min(290px, 100%);
}

.packet-open-form .help {
    max-width: 520px;
}

.packet-opening video {
    border-radius: inherit;
}

.packet-play-fallback {
    position: absolute;
    z-index: 3;
    right: 50%;
    bottom: 28px;
    transform: translateX(50%);
}

.packet-status {
    margin: 14px 0 0;
    color: var(--blue-bright);
    font-weight: 750;
    letter-spacing: .02em;
}

.packet-opening.is-finished {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .2),
        0 30px 80px rgba(0, 0, 0, .62),
        0 0 72px rgba(82, 197, 255, .34);
}

.packet-result[data-reward-result] {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .45s ease, transform .45s ease;
}

.packet-result[data-reward-result].is-visible {
    max-height: 1000px;
    margin-top: 30px;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.packet-result h3 {
    margin: 18px 0 6px;
    font-size: clamp(25px, 3vw, 36px);
}

@keyframes packet-float {
    0%, 100% { transform: scale(1.01) translateY(0); }
    50% { transform: scale(1.025) translateY(-5px); }
}

@keyframes packet-pulse {
    0%, 100% { opacity: .55; transform: scale(.92); }
    50% { opacity: 1; transform: scale(1.05); }
}

.leaderboard-row {
    color: #fff;
    border-color: var(--line);
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.leaderboard-row.is-current-user {
    border-color: var(--blue);
    background: rgba(29, 150, 211, .13);
}

.leaderboard-rank,
.leaderboard-stat strong {
    color: #fff;
}

.national-ranking-card {
    background:
        radial-gradient(circle at 100% 0, rgba(82, 197, 255, .27), transparent 18rem),
        linear-gradient(135deg, #102431, #091118 70%);
}

.national-rank-stat,
.deletion-impact > div {
    color: #fff;
    border-color: var(--line);
    background: rgba(255, 255, 255, .06);
}

.viewer-shell {
    border-color: rgba(255, 255, 255, .16);
    border-radius: 10px;
    box-shadow: 0 24px 65px rgba(0, 0, 0, .48);
}

.scorm-viewer-shell {
    background: #fff;
}

.pdf-toolbar {
    background: #0a0d11;
}

.auth-page {
    min-height: 100vh;
    padding: 28px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(4, 5, 7, .78) 0%, rgba(4, 5, 7, .43) 46%, rgba(4, 5, 7, .18) 100%),
        radial-gradient(circle at 78% 40%, var(--theme-auth-glow), transparent 24rem),
        var(--login-background-image) var(--login-background-position, center) / cover no-repeat,
        #050608;
}

.auth-hero-copy {
    position: fixed;
    top: 50%;
    left: clamp(30px, 8vw, 130px);
    width: min(44vw, 690px);
    transform: translateY(-50%);
}

.auth-hero-copy h1 {
    margin: 0;
    color: #fff;
    font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(44px, 6vw, 88px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: .015em;
    text-shadow: 0 8px 40px rgba(0, 0, 0, .65);
}

.auth-card {
    width: min(440px, 100%);
    margin-left: auto;
    margin-right: clamp(0px, 7vw, 110px);
    padding: clamp(28px, 4vw, 46px);
    color: #fff;
    border-color: rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: rgba(15, 18, 23, .94);
    box-shadow: 0 35px 90px rgba(0, 0, 0, .58);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.auth-card h1,
.auth-logo strong {
    color: #fff;
}

.auth-brand-logo {
    width: 48px;
    height: 68px;
}

.auth-links a {
    color: #8fd8fb;
}

.certificate {
    color: #18212b;
    background: #fff;
}

.certificate h1,
.certificate h2,
.certificate .recipient {
    color: #18212b;
}

.appearance-layout {
    display: grid;
    grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.appearance-settings {
    display: grid;
    gap: 20px;
}

.appearance-settings h2,
.appearance-settings p {
    margin: 0;
}

.appearance-settings textarea {
    min-height: 90px;
}

.appearance-remove {
    color: #d8dde4;
    background: rgba(255, 255, 255, .04);
}

.appearance-preview-card h2 {
    margin-bottom: 20px;
}

.appearance-preview {
    --preview-accent: #1d96d3;
    position: relative;
    min-height: 470px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 34%);
    align-items: center;
    gap: 24px;
    padding: clamp(26px, 4vw, 54px);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
    background:
        linear-gradient(90deg, rgba(3, 4, 6, .78), rgba(3, 4, 6, .32) 55%, rgba(3, 4, 6, .14)),
        var(--preview-background) var(--preview-position, center) / cover no-repeat,
        #050608;
    box-shadow: inset 0 0 70px rgba(0, 0, 0, .42);
}

.appearance-preview.theme-christmas { --preview-accent: #b52e3b; }
.appearance-preview.theme-summer { --preview-accent: #18a9c5; }
.appearance-preview.theme-gold { --preview-accent: #b78a36; }

.appearance-preview-copy {
    align-self: center;
}

.appearance-preview-copy strong {
    display: block;
    max-width: 560px;
    color: #fff;
    font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(30px, 4vw, 58px);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: .015em;
    text-shadow: 0 5px 26px #000;
}

.appearance-preview-login {
    padding: 25px;
    display: grid;
    gap: 14px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 9px;
    background: rgba(12, 15, 19, .9);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .42);
}

.appearance-preview-login span {
    color: #c0c6cf;
    font-size: 14px;
    line-height: 1.45;
}

.appearance-preview-login i {
    padding: 11px 15px;
    color: #fff;
    border-radius: 999px;
    background: var(--preview-accent);
    font-style: normal;
    font-weight: 800;
    text-align: center;
}

.appearance-preview-card > .help {
    display: block;
    margin-top: 14px;
}

.quick-module-form {
    padding: clamp(22px, 3vw, 38px);
}

.quick-module-publish {
    max-width: 430px;
    margin-top: 20px;
}

.quick-module-list {
    margin-top: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .025);
}

.quick-module-head,
.quick-module-row {
    display: grid;
    grid-template-columns: 36px minmax(180px, .8fr) minmax(280px, 1.2fr) minmax(190px, .9fr);
    gap: 14px;
    align-items: center;
}

.quick-module-head {
    padding: 12px 16px;
    color: #aeb7c3;
    background: rgba(255, 255, 255, .055);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.quick-module-row {
    padding: 14px 16px;
    border-top: 1px solid var(--line);
}

.quick-module-number {
    color: var(--blue-bright);
    font-size: 18px;
    text-align: center;
}

.quick-module-row .field label {
    display: none;
}

.quick-module-row input {
    min-width: 0;
}

.quick-module-submit {
    margin: 24px 0 0;
    align-items: center;
}

.quick-module-submit .help {
    max-width: 620px;
}

.danger-zone {
    color: #fff;
    border-color: rgba(255, 99, 113, .34);
    background: linear-gradient(145deg, #24171a, #161114);
}

.nav-scrim {
    display: none;
}

.page-training .content > h2 {
    margin: 34px 0 16px;
    font-size: clamp(23px, 2.5vw, 34px);
}

.page-training .grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
}

.page-training .grid-2 > .card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #1a1f26, #101318);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.page-training .grid-2 > .card:hover {
    z-index: 4;
    background: #222832;
    box-shadow: 0 25px 65px rgba(0, 0, 0, .46);
    transform: translateY(-6px) scale(1.012);
}

.page-training .grid-2 > .card .training-main h3 {
    font-size: 19px;
}

.page-training .reward-callout {
    border-color: rgba(29, 150, 211, .34);
    background:
        radial-gradient(circle at 100% 0, rgba(82, 197, 255, .22), transparent 16rem),
        linear-gradient(145deg, #142832, #10151a);
}

.quiz-option {
    border-color: var(--line);
    background: rgba(255, 255, 255, .035);
}

.quiz-option:hover {
    border-color: rgba(29, 150, 211, .5);
    background: rgba(29, 150, 211, .09);
}

.impersonation-banner {
    top: 72px;
    z-index: 45;
}

.main.is-impersonating .topbar {
    top: auto;
}

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

    .sidebar-user-copy,
    .sidebar-user .signout-link {
        display: none;
    }

    .global-nav {
        gap: 20px;
    }

    .primary-nav > a,
    .nav-popover > summary {
        padding-inline: 9px;
    }

    .home-news-list {
        grid-template-columns: repeat(4, minmax(260px, 32vw));
    }
}

@media (max-width: 980px) {
    .app-shell {
        padding: 0;
    }

    .global-nav {
        inset: 0 auto 0 -330px;
        width: min(330px, 88vw);
        height: 100vh;
        padding: 22px 18px max(22px, env(safe-area-inset-bottom));
        align-items: stretch;
        flex-direction: column;
        gap: 22px;
        overflow-y: auto;
        border-right: 1px solid rgba(255, 255, 255, .12);
        border-bottom: 0;
        transition: left .2s ease;
    }

    .global-nav.open {
        left: 0;
    }

    .nav-scrim {
        position: fixed;
        inset: 0;
        z-index: 49;
        display: block;
        visibility: hidden;
        opacity: 0;
        border: 0;
        background: rgba(0, 0, 0, .72);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
        transition: opacity .2s ease, visibility .2s ease;
    }

    .nav-open .nav-scrim {
        visibility: visible;
        opacity: 1;
    }

    .nav-open {
        overflow: hidden;
    }

    .brand {
        width: 100%;
        padding: 0 8px;
    }

    .brand-logo {
        width: 40px;
        height: 58px;
        flex-basis: 40px;
    }

    .global-nav .primary-nav {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 5px;
    }

    .primary-nav > a,
    .nav-popover > summary {
        min-height: 46px;
        padding: 13px 15px;
        font-size: 15px;
    }

    .nav-popover-menu,
    .nav-popover-wide {
        position: static;
        width: 100%;
        margin-top: 4px;
        grid-template-columns: 1fr;
        border: 0;
        border-left: 2px solid rgba(29, 150, 211, .5);
        border-radius: 0;
        background: rgba(255, 255, 255, .035);
        box-shadow: none;
    }

    .nav-popover-menu::before {
        display: none;
    }

    .sidebar-user {
        width: 100%;
        margin-top: auto;
        padding: 16px 8px 0;
        border-top: 1px solid var(--line);
    }

    .sidebar-user-copy,
    .sidebar-user .signout-link {
        display: flex;
    }

    .sidebar-user .signout-link {
        margin-left: auto;
    }

    .main {
        padding-top: 68px;
    }

    .topbar,
    .page-dashboard .topbar {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 40;
        min-height: 68px;
        height: 68px;
        padding: 0 18px;
        display: flex;
        align-items: center;
        gap: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, .09);
        background: rgba(5, 7, 10, .96);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
    }

    .menu-button {
        width: 42px;
        height: 42px;
        padding: 0;
        display: grid;
        place-items: center;
        color: #fff;
        border-radius: 50%;
        background: rgba(255, 255, 255, .08);
    }

    .topbar-title > span {
        display: block;
        color: var(--blue-bright);
        font-size: 13px;
        font-weight: 800;
        letter-spacing: .09em;
        text-transform: uppercase;
    }

    .topbar h1 {
        margin-top: 2px;
        font-size: 18px;
    }

    .content,
    .page-dashboard .content {
        padding: 18px 20px 55px;
    }

    .home-hero {
        min-height: 520px;
        margin: -18px -20px 0;
        padding: 72px 24px 48px;
        align-items: flex-end;
        flex-direction: column;
        justify-content: flex-end;
        background:
            linear-gradient(0deg, #050608 0%, rgba(5, 6, 8, .93) 34%, rgba(5, 6, 8, .2) 75%),
            radial-gradient(circle at 70% 24%, rgba(29, 150, 211, .5), transparent 15rem),
            #0a1117;
    }

    .home-hero::before {
        top: 28px;
        right: 50%;
        bottom: auto;
        width: 230px;
        height: 290px;
        opacity: .62;
        transform: translateX(50%);
    }

    .home-hero > div:first-child {
        margin-top: auto;
    }

    .home-hero h2 {
        font-size: clamp(40px, 12vw, 62px);
    }

    .home-hero p {
        font-size: 16px;
    }

    .home-hero .page-actions {
        width: 100%;
        align-self: stretch;
    }

    .home-hero .btn {
        flex: 1 1 150px;
    }

    .home-news-list {
        grid-template-columns: repeat(4, minmax(260px, 78vw));
    }

    .impersonation-banner {
        top: 68px;
    }
}

@media (max-width: 700px) {
    .content,
    .page-dashboard .content {
        padding-inline: 15px;
    }

    .home-hero {
        margin-inline: -15px;
        padding-inline: 18px;
    }

    .dashboard-metrics .card {
        min-width: 190px;
        flex-basis: 190px;
    }

    .home-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-news-list {
        grid-template-columns: repeat(4, minmax(245px, 84vw));
    }

    .card.training-card:hover,
    .training-card.card:hover,
    .home-news-item:hover,
    .page-training .grid-2 > .card:hover {
        transform: none;
    }

    .page-training .grid-2 {
        grid-template-columns: 1fr;
    }

    .auth-page {
        align-items: end;
        padding: 24px 16px;
    }

    .auth-hero-copy {
        top: 12vh;
        left: 22px;
        width: calc(100% - 44px);
        transform: none;
    }

    .auth-hero-copy h1 {
        font-size: clamp(40px, 13vw, 62px);
    }

    .auth-card {
        margin: 43vh 0 0;
    }

    .appearance-preview {
        min-height: 520px;
        grid-template-columns: 1fr;
        align-content: end;
    }

    .appearance-preview-login {
        width: min(100%, 330px);
    }

    .quick-module-head {
        display: none;
    }

    .quick-module-row {
        grid-template-columns: 34px 1fr;
        align-items: start;
    }

    .quick-module-row .field {
        grid-column: 2;
    }

    .quick-module-row .field label {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    body {
        color: #111;
        background: #fff;
    }

    .global-nav,
    .topbar {
        display: none !important;
    }

    .main {
        padding-top: 0;
    }
}
/* Training streams */
.training-legend,
.training-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.training-legend {
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: rgba(255,255,255,.045);
    gap: 24px;
}

.training-legend a { margin-left: auto; }
.training-status { color: var(--muted); font-size: .9rem; font-weight: 700; }
.training-status-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    border-radius: 50%;
    vertical-align: middle;
    box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}
.training-status-dot.required { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.17); }
.training-status-dot.library { background: #1d96d3; box-shadow: 0 0 0 3px rgba(29,150,211,.2); }
.learning-library-section { margin-top: 42px; scroll-margin-top: 90px; }
.section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:18px; }
.section-heading h2 { margin: 4px 0; }
.library-card { display:flex; flex-direction:column; gap:12px; overflow:hidden; }
.library-card form { margin-top:auto; }
.library-card .certification-card-image { max-height:190px; object-fit:contain; object-position:center; background:rgba(255,255,255,.03); }
.certification-badge-preview {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.certification-badge-preview img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 8px 10px rgba(0,0,0,.38));
}
.page-training .certification-table-image {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
    padding: 2px;
    border-radius: 7px;
    object-fit: contain;
    object-position: center;
    background: rgba(255,255,255,.06);
}
.honour-wall-section { margin-top: 48px; }
.honour-wall-scroll {
    width: 100%;
    margin-top: 18px;
    overflow-x: auto;
    border-radius: 22px;
    box-shadow: 0 26px 70px rgba(0,0,0,.5);
    scrollbar-color: rgba(29,150,211,.85) rgba(255,255,255,.08);
}
.honour-wall {
    position: relative;
    width: 100%;
    min-width: 760px;
    max-width: 1536px;
    aspect-ratio: 3 / 2;
    margin: 0 auto;
    overflow: hidden;
    background: #171718;
}
.honour-wall-background {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.honour-wall-identity {
    position: absolute;
    z-index: 2;
    top: 28%;
    left: 50%;
    display: flex;
    align-items: baseline;
    gap: .5em;
    transform: translateX(-50%);
    color: #f2d28a;
    font-size: clamp(8px, .85vw, 14px);
    letter-spacing: .08em;
    text-align: center;
    text-shadow: 0 2px 5px #000;
    white-space: nowrap;
}
.honour-wall-identity span { color: #fff2cc; text-transform: uppercase; }
.honour-wall-card {
    position: absolute;
    z-index: 3;
    width: 8.3%;
    height: 16.9%;
    display: grid;
    place-items: center;
    color: #111;
}
.honour-wall-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,.48));
}
.honour-wall-card > span {
    position: absolute;
    z-index: 2;
    left: 5%;
    right: 5%;
    bottom: 18%;
    overflow: hidden;
    color: #f7f7f7;
    font-size: clamp(5px, .55vw, 9px);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px #000, 0 0 4px #000;
    white-space: nowrap;
}
.honour-wall-card .badge-medallion {
    width: 76%;
    height: auto;
    aspect-ratio: 1;
    font-style: normal;
    font-size: clamp(9px, 1vw, 18px);
}
.honour-wall-page { margin: 10px 0 28px; color: var(--muted); text-align: center; }
.honour-wall-empty { margin: 12px 0 0; }
.how-it-works-hero { padding: clamp(28px,5vw,64px); }
.how-it-works-hero h2 { max-width:800px; font-size:clamp(2rem,4vw,4rem); }
.how-step { display:grid; place-items:center; width:44px; height:44px; border-radius:50%; background:#1d96d3; color:#fff; font-size:1.25rem; font-weight:900; margin-bottom:18px; box-shadow:0 8px 22px rgba(29,150,211,.28); }
.how-it-works-grid .card { min-height:220px; }

@media (max-width: 720px) {
    .training-legend { gap: 14px; }
    .training-legend a { width:100%; margin-left:0; }
    .section-heading { align-items:flex-start; flex-direction:column; }
}
