/*
 * Takin public frontend foundation — mobile first, RTL first, progressive motion.
 * Loaded after the legacy bundles while the old generations are retired page by page.
 */

:root {
    --tnx-bg: #060914;
    --tnx-surface: rgba(12, 18, 34, .84);
    --tnx-surface-strong: rgba(10, 15, 29, .96);
    --tnx-card: rgba(255, 255, 255, .055);
    --tnx-card-hover: rgba(255, 255, 255, .085);
    --tnx-line: rgba(226, 232, 240, .13);
    --tnx-line-strong: rgba(226, 232, 240, .24);
    --tnx-text: #f8fafc;
    --tnx-muted: #a9b5c8;
    --tnx-accent: #f5bd44;
    --tnx-accent-rgb: 245, 189, 68;
    --tnx-secondary: #31c7f3;
    --tnx-secondary-rgb: 49, 199, 243;
    --tnx-success: #3bd58b;
    --tnx-danger: #ff6b76;
    --tnx-warning: #ffc95b;
    --tnx-radius-xs: 12px;
    --tnx-radius-sm: 18px;
    --tnx-radius-md: 26px;
    --tnx-radius-lg: 36px;
    --tnx-shadow: 0 24px 80px rgba(0, 0, 0, .34);
    --tnx-container: 1240px;
    --tnx-header-height: 76px;
}

html[data-tna-theme="light"] {
    --tnx-bg: #f4f7fc;
    --tnx-surface: rgba(255, 255, 255, .84);
    --tnx-surface-strong: rgba(255, 255, 255, .97);
    --tnx-card: rgba(255, 255, 255, .72);
    --tnx-card-hover: rgba(255, 255, 255, .95);
    --tnx-line: rgba(15, 23, 42, .11);
    --tnx-line-strong: rgba(15, 23, 42, .2);
    --tnx-text: #101827;
    --tnx-muted: #5b6678;
    --tnx-shadow: 0 24px 70px rgba(30, 64, 175, .12);
}

html {
    min-width: 320px;
    scroll-padding-top: calc(var(--tnx-header-height) + 28px);
}

body {
    color: var(--tnx-text);
}

body.has-open-menu {
    overflow: hidden;
}

.tna-container {
    width: min(var(--tnx-container), calc(100% - clamp(24px, 5vw, 72px)));
}

:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid rgba(var(--tnx-secondary-rgb), .76);
    outline-offset: 3px;
}

/* Context-aware global / sub-brand header */
.tna-site-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 150;
    padding: max(10px, env(safe-area-inset-top)) 0 8px;
    --brand-accent: var(--tnx-accent);
    --brand-accent-rgb: var(--tnx-accent-rgb);
    --brand-secondary: var(--tnx-secondary);
    --brand-secondary-rgb: var(--tnx-secondary-rgb);
}

.tna-site-header::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 125%;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(3, 6, 15, .92), rgba(3, 6, 15, 0));
    transition: opacity .22s ease;
}

html[data-tna-theme="light"] .tna-site-header::before {
    background: linear-gradient(180deg, rgba(244, 247, 252, .96), rgba(244, 247, 252, 0));
}

.tna-site-header.is-scrolled::before {
    opacity: 1;
}

.tna-site-nav {
    position: relative;
    min-height: var(--tnx-header-height);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 10px;
    border: 1px solid var(--tnx-line);
    border-radius: 26px;
    background:
        linear-gradient(125deg, rgba(var(--brand-accent-rgb), .09), transparent 32%),
        color-mix(in srgb, var(--tnx-surface-strong) 92%, transparent);
    backdrop-filter: blur(22px) saturate(135%);
    box-shadow: 0 14px 46px rgba(0, 0, 0, .2);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.tna-site-header.is-scrolled .tna-site-nav {
    border-color: rgba(var(--brand-accent-rgb), .28);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .28);
}

.tna-site-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding-inline-end: 4px;
}

.tna-site-brand__mark {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    object-fit: contain;
    border-radius: 17px;
    padding: 6px;
    background: linear-gradient(145deg, rgba(var(--brand-accent-rgb), .19), rgba(var(--brand-secondary-rgb), .1));
    border: 1px solid rgba(var(--brand-accent-rgb), .28);
    box-shadow: 0 10px 30px rgba(var(--brand-accent-rgb), .13);
}

.tna-site-brand__copy {
    min-width: 0;
    display: grid;
    line-height: 1.3;
}

.tna-site-brand__copy strong {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .92rem;
    font-weight: 950;
}

.tna-site-brand__copy small {
    max-width: 270px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--tnx-muted);
    font-size: .69rem;
}

.tna-site-brand__context {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-block-start: 3px;
    color: var(--brand-accent);
    font-size: .65rem;
    font-weight: 900;
}

.tna-site-brand__context::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 14px currentColor;
}

.tna-site-desktop-nav {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-inline: auto;
}

.tna-site-desktop-nav > a,
.tna-site-ecosystem > summary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border: 0;
    border-radius: 14px;
    color: var(--tnx-muted);
    font-size: .86rem;
    font-weight: 820;
    cursor: pointer;
    list-style: none;
    transition: color .18s ease, background .18s ease;
}

.tna-site-desktop-nav > a:hover,
.tna-site-ecosystem > summary:hover,
.tna-site-ecosystem[open] > summary {
    color: var(--tnx-text);
    background: rgba(var(--brand-accent-rgb), .1);
}

.tna-site-ecosystem {
    position: relative;
}

.tna-site-ecosystem > summary::-webkit-details-marker {
    display: none;
}

.tna-site-ecosystem__panel {
    position: absolute;
    inset-block-start: calc(100% + 16px);
    inset-inline-start: 50%;
    width: min(740px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: .82fr 1.35fr;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--tnx-line);
    border-radius: 26px;
    background: var(--tnx-surface-strong);
    box-shadow: var(--tnx-shadow);
    transform: translateX(50%);
}

html[dir="ltr"] .tna-site-ecosystem__panel {
    transform: translateX(-50%);
}

.tna-site-ecosystem__intro {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(var(--brand-accent-rgb), .14), rgba(var(--brand-secondary-rgb), .08));
    border: 1px solid rgba(var(--brand-accent-rgb), .18);
}

.tna-site-ecosystem__intro strong {
    display: block;
    margin-block-end: 8px;
    font-weight: 950;
}

.tna-site-ecosystem__intro p,
.tna-site-ecosystem__intro a,
.tna-site-ecosystem__grid small {
    color: var(--tnx-muted);
    line-height: 1.75;
    font-size: .78rem;
}

.tna-site-ecosystem__intro a {
    display: inline-block;
    margin-block-start: 12px;
    color: var(--brand-accent);
    font-weight: 900;
}

.tna-site-ecosystem__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.tna-site-ecosystem__grid a {
    min-width: 0;
    padding: 12px;
    border-radius: 17px;
    background: var(--tnx-card);
    border: 1px solid var(--tnx-line);
}

.tna-site-ecosystem__grid a:hover {
    background: var(--tnx-card-hover);
    border-color: rgba(var(--brand-accent-rgb), .26);
}

.tna-site-ecosystem__grid strong,
.tna-site-ecosystem__grid small {
    display: block;
}

.tna-site-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.tna-site-icon-button,
.tna-site-language,
.tna-site-login,
.tna-site-primary-action,
.tna-site-notifications,
.tna-site-user > summary,
.tna-site-menu-button {
    min-height: 44px;
    border: 1px solid var(--tnx-line);
    border-radius: 14px;
    background: var(--tnx-card);
    color: var(--tnx-text);
}

.tna-site-icon-button,
.tna-site-language,
.tna-site-login,
.tna-site-primary-action,
.tna-site-notifications {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    font-size: .78rem;
    font-weight: 900;
}

.tna-site-primary-action {
    border-color: rgba(var(--brand-accent-rgb), .4);
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-secondary));
    color: #07111e;
}

.tna-site-notifications {
    position: relative;
    width: 44px;
    padding: 0;
}

.tna-site-notifications svg {
    width: 20px;
}

.tna-site-notifications b {
    position: absolute;
    inset-block-start: -5px;
    inset-inline-end: -5px;
    min-width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--tnx-danger);
    color: #fff;
    font-size: .62rem;
}

.tna-site-notifications b.is-empty {
    display: none;
}

.tna-site-user {
    position: relative;
}

.tna-site-user > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    list-style: none;
    cursor: pointer;
}

.tna-site-user > summary::-webkit-details-marker {
    display: none;
}

.tna-site-user__avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 11px;
    background: rgba(var(--brand-accent-rgb), .15);
    color: var(--brand-accent);
    font-weight: 950;
}

.tna-site-user__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tna-site-user__copy {
    display: grid;
    line-height: 1.25;
}

.tna-site-user__copy b {
    font-size: .72rem;
}

.tna-site-user__copy small {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--tnx-muted);
    font-size: .65rem;
}

.tna-site-user__panel {
    position: absolute;
    inset-block-start: calc(100% + 12px);
    inset-inline-end: 0;
    width: 230px;
    display: grid;
    gap: 4px;
    padding: 9px;
    border: 1px solid var(--tnx-line);
    border-radius: 20px;
    background: var(--tnx-surface-strong);
    box-shadow: var(--tnx-shadow);
}

.tna-site-user__panel a,
.tna-site-user__panel button {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--tnx-text);
    text-align: start;
    font-weight: 800;
}

.tna-site-user__panel a:hover,
.tna-site-user__panel button:hover {
    background: var(--tnx-card-hover);
}

.tna-site-menu-button {
    display: none;
    align-items: center;
    gap: 9px;
    margin-inline-start: auto;
    padding: 0 12px;
    font-weight: 900;
}

.tna-site-menu-button span {
    width: 20px;
    display: grid;
    gap: 4px;
}

.tna-site-menu-button i {
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.tna-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 170;
    visibility: hidden;
    opacity: 0;
    background: rgba(0, 0, 0, .58);
    backdrop-filter: blur(7px);
    transition: .2s ease;
}

body.has-open-menu .tna-menu-backdrop {
    visibility: visible;
    opacity: 1;
}

.tna-site-drawer {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    z-index: 180;
    width: min(420px, 92vw);
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 16px;
    padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
    overflow-y: auto;
    border-inline-start: 1px solid var(--tnx-line);
    background: var(--tnx-surface-strong);
    transform: translateX(105%);
    transition: transform .24s cubic-bezier(.2, .8, .2, 1);
}

html[dir="ltr"] .tna-site-drawer {
    inset-inline: 0 auto;
    transform: translateX(-105%);
    border-inline: 0 1px solid var(--tnx-line);
}

.tna-site-drawer.is-open,
html[dir="ltr"] .tna-site-drawer.is-open {
    transform: translateX(0);
}

.tna-site-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block-end: 14px;
    border-block-end: 1px solid var(--tnx-line);
}

.tna-site-drawer__head strong,
.tna-site-drawer__head small {
    display: block;
}

.tna-site-drawer__head small {
    margin-block-start: 4px;
    color: var(--tnx-muted);
}

.tna-site-drawer__head button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--tnx-line);
    border-radius: 14px;
    background: var(--tnx-card);
    color: var(--tnx-text);
}

.tna-site-drawer__nav,
.tna-site-drawer__ecosystem,
.tna-site-drawer__actions {
    display: grid;
    gap: 7px;
}

.tna-site-drawer__nav a,
.tna-site-drawer__ecosystem a,
.tna-site-drawer__actions a,
.tna-site-drawer__actions button,
.tna-site-drawer__map-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--tnx-line);
    border-radius: 15px;
    background: var(--tnx-card);
    color: var(--tnx-text);
    text-align: start;
    font-weight: 850;
}

.tna-site-drawer__ecosystem a {
    min-height: 62px;
    display: grid;
    align-content: center;
}

.tna-site-drawer__ecosystem small {
    color: var(--tnx-muted);
    font-size: .72rem;
}

.tna-site-drawer__section > strong {
    display: block;
    margin-block-end: 8px;
}

.tna-site-drawer__map-link {
    margin-block-end: 8px;
    color: var(--brand-accent);
}

/* Unique brand palettes */
.tna-site-header[data-brand="amooz"] { --brand-accent: #43d7ff; --brand-accent-rgb: 67, 215, 255; --brand-secondary: #7069ff; --brand-secondary-rgb: 112, 105, 255; }
.tna-site-header[data-brand="moshaver"] { --brand-accent: #53e3a6; --brand-accent-rgb: 83, 227, 166; --brand-secondary: #26a6ff; --brand-secondary-rgb: 38, 166, 255; }
.tna-site-header[data-brand="pro"] { --brand-accent: #ffbb45; --brand-accent-rgb: 255, 187, 69; --brand-secondary: #ff6a65; --brand-secondary-rgb: 255, 106, 101; }
.tna-site-header[data-brand="patent"] { --brand-accent: #c98cff; --brand-accent-rgb: 201, 140, 255; --brand-secondary: #5de1ff; --brand-secondary-rgb: 93, 225, 255; }
.tna-site-header[data-brand="mag"] { --brand-accent: #ff6fae; --brand-accent-rgb: 255, 111, 174; --brand-secondary: #8f7bff; --brand-secondary-rgb: 143, 123, 255; }
.tna-site-header[data-brand="cup"] { --brand-accent: #ffce52; --brand-accent-rgb: 255, 206, 82; --brand-secondary: #38dfd3; --brand-secondary-rgb: 56, 223, 211; }
.tna-site-header[data-brand="takinmart"] { --brand-accent: #69e47f; --brand-accent-rgb: 105, 228, 127; --brand-secondary: #f3ca52; --brand-secondary-rgb: 243, 202, 82; }

/* Logo-free brand body with lightweight 3D CSS scene */
.tnx-brand-page {
    --brand-accent: var(--tnx-accent);
    --brand-accent-rgb: var(--tnx-accent-rgb);
    --brand-secondary: var(--tnx-secondary);
    --brand-secondary-rgb: var(--tnx-secondary-rgb);
    position: relative;
    padding: clamp(38px, 7vw, 92px) 0 clamp(64px, 9vw, 118px);
}

.tnx-brand-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    gap: clamp(28px, 6vw, 80px);
    align-items: center;
    min-height: min(720px, calc(100svh - 110px));
}

.tnx-brand-copy {
    position: relative;
    z-index: 2;
}

.tnx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 12px;
    border: 1px solid rgba(var(--brand-accent-rgb), .28);
    border-radius: 999px;
    background: rgba(var(--brand-accent-rgb), .08);
    color: var(--brand-accent);
    font-size: .76rem;
    font-weight: 950;
}

.tnx-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 14px currentColor;
}

.tnx-brand-copy h1,
.tnx-course-title {
    margin: 18px 0 12px;
    max-width: 15ch;
    font-size: clamp(2.35rem, 7vw, 5.9rem);
    line-height: .98;
    letter-spacing: -.04em;
    font-weight: 970;
}

.tnx-brand-copy h1 span,
.tnx-course-title span {
    background: linear-gradient(120deg, var(--brand-accent), var(--brand-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tnx-brand-lead {
    max-width: 64ch;
    margin: 0;
    color: var(--tnx-muted);
    font-size: clamp(1rem, 1.8vw, 1.18rem);
    line-height: 2;
}

.tnx-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-block-start: 28px;
}

.tnx-button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid var(--tnx-line);
    border-radius: 16px;
    background: var(--tnx-card);
    color: var(--tnx-text);
    font-weight: 900;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.tnx-button:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--brand-accent-rgb), .38);
    background: var(--tnx-card-hover);
}

.tnx-button--primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-secondary));
    color: #07111e;
}

.tnx-brand-scene {
    position: relative;
    min-height: 430px;
    display: grid;
    place-items: center;
    perspective: 1000px;
    isolation: isolate;
}

.tnx-brand-scene::before,
.tnx-brand-scene::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.tnx-brand-scene::before {
    width: 78%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(var(--brand-accent-rgb), .2), transparent 68%);
}

.tnx-brand-scene::after {
    width: 55%;
    aspect-ratio: 1;
    border: 1px solid rgba(var(--brand-secondary-rgb), .28);
    box-shadow: 0 0 80px rgba(var(--brand-secondary-rgb), .12), inset 0 0 60px rgba(var(--brand-accent-rgb), .08);
}

.tnx-orbit {
    position: absolute;
    width: var(--orbit-size, 78%);
    aspect-ratio: 1;
    border: 1px solid rgba(var(--brand-accent-rgb), .22);
    border-radius: 50%;
    transform: rotateX(var(--orbit-x, 68deg)) rotateZ(var(--orbit-z, 10deg));
    animation: tnx-orbit 18s linear infinite;
}

.tnx-orbit::before {
    content: "";
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: -5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-accent);
    box-shadow: 0 0 22px var(--brand-accent);
}

.tnx-orbit--two {
    --orbit-size: 58%;
    --orbit-x: 76deg;
    --orbit-z: -32deg;
    animation-direction: reverse;
    animation-duration: 13s;
}

.tnx-orbit--three {
    --orbit-size: 92%;
    --orbit-x: 62deg;
    --orbit-z: 52deg;
    animation-duration: 26s;
}

.tnx-core {
    position: relative;
    width: min(45vw, 210px);
    aspect-ratio: 1;
    border-radius: 38% 62% 54% 46% / 45% 42% 58% 55%;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .42), transparent 22%),
        linear-gradient(145deg, rgba(var(--brand-accent-rgb), .94), rgba(var(--brand-secondary-rgb), .72));
    box-shadow:
        0 38px 80px rgba(0, 0, 0, .34),
        0 0 70px rgba(var(--brand-accent-rgb), .25),
        inset -20px -24px 45px rgba(0, 0, 0, .24);
    transform-style: preserve-3d;
    animation: tnx-core 9s ease-in-out infinite;
}

.tnx-core::before,
.tnx-core::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    box-shadow: inset 0 0 18px rgba(255, 255, 255, .12);
}

.tnx-core::before {
    width: 28%;
    aspect-ratio: 1;
    inset: 18% auto auto 16%;
}

.tnx-core::after {
    width: 14%;
    aspect-ratio: 1;
    inset: auto 18% 18% auto;
}

.tnx-brand-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-block-start: 34px;
}

.tnx-brand-facts div {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--tnx-line);
    border-radius: 17px;
    background: var(--tnx-card);
}

.tnx-brand-facts strong,
.tnx-brand-facts small {
    display: block;
}

.tnx-brand-facts small {
    margin-block-start: 5px;
    color: var(--tnx-muted);
    font-size: .74rem;
}

@keyframes tnx-orbit {
    to { transform: rotateX(var(--orbit-x, 68deg)) rotateZ(calc(var(--orbit-z, 10deg) + 360deg)); }
}

@keyframes tnx-core {
    0%, 100% { transform: translateY(-7px) rotateX(8deg) rotateY(-10deg) rotateZ(-2deg); border-radius: 38% 62% 54% 46% / 45% 42% 58% 55%; }
    50% { transform: translateY(12px) rotateX(-7deg) rotateY(12deg) rotateZ(5deg); border-radius: 58% 42% 40% 60% / 53% 60% 40% 47%; }
}

/* Course discovery and enrollment */
.tnx-course-page {
    --brand-accent: #43d7ff;
    --brand-accent-rgb: 67, 215, 255;
    --brand-secondary: #7069ff;
    --brand-secondary-rgb: 112, 105, 255;
    padding: clamp(30px, 6vw, 80px) 0 100px;
}

.tnx-feedback {
    margin-block-end: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(59, 213, 139, .36);
    border-radius: 16px;
    background: rgba(59, 213, 139, .09);
    color: var(--tnx-text);
}

.tnx-feedback--error {
    border-color: rgba(255, 107, 118, .4);
    background: rgba(255, 107, 118, .1);
}

.tnx-course-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    gap: clamp(22px, 4vw, 48px);
    align-items: start;
}

.tnx-course-main,
.tnx-enrollment-panel {
    border: 1px solid var(--tnx-line);
    border-radius: var(--tnx-radius-lg);
    background: var(--tnx-surface);
    box-shadow: var(--tnx-shadow);
}

.tnx-course-main {
    overflow: hidden;
}

.tnx-course-cover {
    position: relative;
    min-height: clamp(260px, 48vw, 540px);
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(var(--brand-accent-rgb), .26), transparent 40%),
        linear-gradient(145deg, rgba(var(--brand-secondary-rgb), .18), rgba(4, 8, 20, .95));
}

.tnx-course-cover img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

.tnx-course-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(transparent, rgba(6, 9, 20, .92));
    pointer-events: none;
}

.tnx-course-cover__fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.tnx-course-cover__fallback span {
    width: 150px;
    aspect-ratio: 1;
    border-radius: 36% 64% 58% 42% / 43% 40% 60% 57%;
    background: linear-gradient(145deg, var(--brand-accent), var(--brand-secondary));
    box-shadow: 0 0 70px rgba(var(--brand-accent-rgb), .25);
    animation: tnx-core 9s ease-in-out infinite;
}

.tnx-course-content {
    padding: clamp(22px, 5vw, 48px);
}

.tnx-course-title {
    max-width: 18ch;
    font-size: clamp(2rem, 5.5vw, 4.5rem);
}

.tnx-course-lead,
.tnx-prose {
    color: var(--tnx-muted);
    font-size: 1rem;
    line-height: 2;
}

.tnx-course-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 26px 0;
}

.tnx-course-meta div {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--tnx-line);
    border-radius: 16px;
    background: var(--tnx-card);
}

.tnx-course-meta small,
.tnx-course-meta strong {
    display: block;
}

.tnx-course-meta small {
    margin-block-end: 5px;
    color: var(--tnx-muted);
    font-size: .72rem;
}

.tnx-course-section {
    margin-block-start: 38px;
    padding-block-start: 30px;
    border-block-start: 1px solid var(--tnx-line);
}

.tnx-course-section h2 {
    margin: 0 0 14px;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.tnx-instructor {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--tnx-line);
    border-radius: 20px;
    background: var(--tnx-card);
}

.tnx-instructor__avatar {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(var(--brand-accent-rgb), .2), rgba(var(--brand-secondary-rgb), .13));
    color: var(--brand-accent);
    font-size: 1.4rem;
    font-weight: 950;
}

.tnx-syllabus {
    display: grid;
    gap: 10px;
}

.tnx-syllabus article {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--tnx-line);
    border-radius: 17px;
    background: var(--tnx-card);
}

.tnx-syllabus__index {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(var(--brand-accent-rgb), .12);
    color: var(--brand-accent);
    font-weight: 950;
}

.tnx-syllabus h3 {
    margin: 0;
    font-size: 1rem;
}

.tnx-syllabus p {
    margin: 5px 0 0;
    color: var(--tnx-muted);
    line-height: 1.85;
}

.tnx-enrollment-panel {
    position: sticky;
    inset-block-start: calc(var(--tnx-header-height) + 26px);
    padding: 22px;
}

.tnx-enrollment-panel__head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    padding-block-end: 18px;
    border-block-end: 1px solid var(--tnx-line);
}

.tnx-enrollment-panel__head h2 {
    margin: 0;
    font-size: 1.22rem;
}

.tnx-enrollment-panel__head p {
    margin: 5px 0 0;
    color: var(--tnx-muted);
    font-size: .8rem;
    line-height: 1.7;
}

.tnx-price {
    white-space: nowrap;
    color: var(--brand-accent);
    font-weight: 950;
}

.tnx-checklist {
    display: grid;
    gap: 11px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
}

.tnx-checklist li {
    position: relative;
    padding-inline-start: 28px;
    color: var(--tnx-muted);
    font-size: .85rem;
    line-height: 1.7;
}

.tnx-checklist li::before {
    content: "✓";
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 1px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: rgba(var(--brand-accent-rgb), .12);
    color: var(--brand-accent);
    font-size: .72rem;
    font-weight: 950;
}

.tnx-enrollment-action {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-secondary));
    color: #06101d;
    font-weight: 950;
    box-shadow: 0 16px 36px rgba(var(--brand-accent-rgb), .17);
}

.tnx-enrollment-action:hover {
    transform: translateY(-2px);
}

.tnx-enrollment-secondary {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-block-start: 9px;
    border: 1px solid var(--tnx-line);
    border-radius: 15px;
    background: var(--tnx-card);
    color: var(--tnx-text);
    font-weight: 850;
}

.tnx-enrollment-note {
    margin: 12px 0 0;
    color: var(--tnx-muted);
    font-size: .74rem;
    line-height: 1.75;
    text-align: center;
}

.tnx-status-card {
    padding: 15px;
    border: 1px solid rgba(var(--brand-accent-rgb), .24);
    border-radius: 17px;
    background: rgba(var(--brand-accent-rgb), .07);
}

.tnx-status-card strong,
.tnx-status-card small {
    display: block;
}

.tnx-status-card small {
    margin-block-start: 5px;
    color: var(--tnx-muted);
    line-height: 1.65;
}

.tnx-status-steps {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.tnx-status-steps li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 9px;
    align-items: start;
    color: var(--tnx-muted);
    font-size: .78rem;
}

.tnx-status-steps span {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--tnx-line-strong);
    font-size: .65rem;
}

.tnx-status-steps li.is-current {
    color: var(--tnx-text);
    font-weight: 850;
}

.tnx-status-steps li.is-current span,
.tnx-status-steps li.is-done span {
    border-color: transparent;
    background: var(--brand-accent);
    color: #07111e;
}

/* Cleaner catalog cards without changing server-side filtering */
.tna-course-filters,
.tna-course-category > header,
.tna-module-intro {
    border-radius: 28px !important;
}

.tna-course-filters input,
.tna-course-filters select {
    min-height: 48px;
    border-radius: 14px;
}

.tna-course-category .tna-grid > article.tna-card,
.tna-module-list .tna-grid > article.tna-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border-radius: 24px;
}

.tna-course-category .tna-grid > article.tna-card .tna-btn,
.tna-module-list .tna-grid > article.tna-card .tna-btn {
    margin-block-start: auto;
}

/* Footer intentionally has no logo */
.tna-site-footer__brand {
    display: grid;
    gap: 4px;
}

.tna-site-footer__brand > img,
.tna-site-footer__brand > picture,
.tna-site-footer__brand > svg {
    display: none !important;
}

/* Responsive */
@media (max-width: 1199px) {
    .tna-site-desktop-nav,
    .tna-site-actions {
        display: none;
    }

    .tna-site-menu-button {
        display: inline-flex;
    }

    .tnx-brand-hero {
        grid-template-columns: 1fr .82fr;
    }
}

@media (max-width: 900px) {
    :root {
        --tnx-header-height: 68px;
    }

    .tna-site-header {
        padding-block-start: max(6px, env(safe-area-inset-top));
    }

    .tna-site-nav {
        min-height: 66px;
        padding: 7px;
        border-radius: 21px;
    }

    .tna-site-brand__mark {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 14px;
    }

    .tna-site-brand__copy strong {
        max-width: 200px;
        font-size: .84rem;
    }

    .tna-site-brand__copy small {
        max-width: 205px;
    }

    .tnx-brand-hero,
    .tnx-course-layout {
        grid-template-columns: 1fr;
    }

    .tnx-brand-hero {
        min-height: auto;
    }

    .tnx-brand-scene {
        min-height: 340px;
        order: -1;
    }

    .tnx-enrollment-panel {
        position: static;
        order: -1;
    }
}

@media (max-width: 640px) {
    .tna-container {
        width: min(100% - 20px, var(--tnx-container));
    }

    .tna-site-brand__copy small:not(.tna-site-brand__context) {
        display: none;
    }

    .tna-site-brand__context {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tna-site-menu-button b {
        display: none;
    }

    .tna-site-menu-button {
        width: 46px;
        justify-content: center;
        padding: 0;
    }

    .tnx-brand-page,
    .tnx-course-page {
        padding-block-start: 24px;
    }

    .tnx-brand-scene {
        min-height: 285px;
    }

    .tnx-core {
        width: 142px;
    }

    .tnx-brand-facts,
    .tnx-course-meta {
        grid-template-columns: 1fr;
    }

    .tnx-brand-copy h1,
    .tnx-course-title {
        font-size: clamp(2.15rem, 13vw, 3.4rem);
    }

    .tnx-actions {
        display: grid;
    }

    .tnx-button {
        width: 100%;
    }

    .tnx-course-main,
    .tnx-enrollment-panel {
        border-radius: 24px;
    }

    .tnx-course-content {
        padding: 20px;
    }

    .tnx-course-cover {
        min-height: 240px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }

    .tnx-orbit {
        transform: rotateX(var(--orbit-x, 68deg)) rotateZ(var(--orbit-z, 10deg));
    }
}

body.is-low-power .tnx-orbit,
body.is-low-power .tnx-core,
body.is-low-power .tnx-course-cover__fallback span {
    animation: none;
}
