/* TradeButtons Academy — Cyber-Trading-HUD. All classes .tba-* to avoid leaks. */

.tba-root {
	--tba-bg: #0b1220;
	/* Panels im AITS-Farbton mit 50 % Transparenz — der Seiten-BG scheint
	   deutlich durch. Menue bleibt solide. */
	--tba-panel: rgba(17,34,55,.50);
	--tba-panel-2: rgba(14,28,46,.50);
	/* Solide Variante fuer das Menue (dort keine Transparenz gewuenscht) */
	--tba-panel-solid: #1a2531;
	--tba-line: rgba(148,163,184,.16);
	--tba-text: #e2e8f0;
	--tba-muted: #8aa0c0;
	--tba-cyan: #2dd4bf;
	--tba-blue: #38bdf8;
	--tba-violet: #a78bfa;
	--tba-good: #34d399;
	--tba-bad: #f87171;
	--tba-warn: #fbbf24;
	--tba-radius: 12px;
	--tba-radius-sm: 8px;
	--tba-shadow: 0 12px 28px rgba(2,8,23,.28);

	color: var(--tba-text);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	line-height: 1.5;
	/* An Seitenbreite angleichen: gleiche Wide-Size wie News/Gainers/etc.
	   (WP-Global-Var des Themes, Fallback = bisheriger Wert). */
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin: 0 auto;
	padding: 8px;
	box-sizing: border-box;
}
.tba-root *, .tba-root *::before, .tba-root *::after { box-sizing: border-box; }

/* Layout */
.tba-app-grid { display: grid; grid-template-columns: 260px 1fr 300px; gap: 16px; align-items: start; }
.tba-col { min-width: 0; }
/* Menue-Spalte bleibt beim Scrollen stehen (wie Smart Money / Journal) */
.tba-col-left { position: sticky; top: 90px; }
@media (max-width: 980px) { .tba-app-grid { grid-template-columns: 1fr; } .tba-col-left { order: 0; position: static; } .tba-col-main { order: 1; } .tba-col-right { order: 2; } }

/* Cards / panels */
.tba-card {
	background: linear-gradient(180deg, var(--tba-panel), var(--tba-panel-2));
	border: 1px solid var(--tba-line);
	border-radius: var(--tba-radius);
	padding: 16px;
	box-shadow: var(--tba-shadow);
	margin-bottom: 16px;
}
.tba-card h2, .tba-card h3 { margin: 0 0 10px; font-weight: 700; letter-spacing: .2px; }
.tba-card h3 { font-size: 15px; color: var(--tba-muted); text-transform: uppercase; letter-spacing: 1px; }

/* Dashboard im AITS-Stil: KPI-Leiste oben + Panel-Grid darunter */
.tba-kpi-grid { display:grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; margin-bottom: 16px; }
.tba-kpi { padding: 14px 15px; margin-bottom: 0; }
.tba-kpi-label { color: var(--tba-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.tba-kpi-value { color: var(--tba-text); font-size: 24px; font-weight: 700; line-height: 1.1; }
.tba-kpi-sub { color: var(--tba-muted); font-size: 12px; margin-top: 6px; }
/* Farbige Top-Kante wie die AITS-KPI-Cards */
.tba-kpi:nth-child(1),
.tba-kpi:nth-child(2) { box-shadow: inset 0 2px 0 rgba(52,211,153,.38), var(--tba-shadow); }
.tba-kpi:nth-child(3) { box-shadow: inset 0 2px 0 rgba(96,165,250,.38), var(--tba-shadow); }
.tba-kpi:nth-child(4) { box-shadow: inset 0 2px 0 rgba(129,140,248,.38), var(--tba-shadow); }
.tba-kpi:nth-child(5) { box-shadow: inset 0 2px 0 rgba(251,191,36,.38), var(--tba-shadow); }
.tba-dash-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; align-items: start; }
.tba-dash-grid .tba-card { margin-bottom: 0; }
@media (max-width: 1280px) { .tba-kpi-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 980px) { .tba-kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .tba-dash-grid { grid-template-columns: 1fr; } }

/* Top HUD bar */
.tba-hud {
	display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
	background: linear-gradient(90deg, rgba(45,212,191,.10), rgba(167,139,250,.10));
	border: 1px solid var(--tba-line);
	border-radius: var(--tba-radius);
	padding: 14px 18px;
	margin-bottom: 16px;
}
.tba-hud-id { display:flex; align-items:center; gap:12px; }
.tba-avatar {
	width: 46px; height: 46px; border-radius: 50%;
	display:grid; place-items:center; font-weight:800; font-size:18px;
	background: radial-gradient(circle at 30% 30%, var(--tba-cyan), var(--tba-violet));
	color: #05121f;
}
.tba-hud-name { font-weight: 700; font-size: 16px; }
.tba-hud-sub { color: var(--tba-muted); font-size: 12px; }
.tba-hud-spacer { flex: 1; }
.tba-hud-stat { text-align: center; min-width: 64px; }
.tba-hud-stat .v { font-size: 20px; font-weight: 800; }
.tba-hud-stat .l { font-size: 11px; color: var(--tba-muted); text-transform: uppercase; letter-spacing: .5px; }

/* HUD in der rechten Seitenleiste: vertikale Karte statt Top-Leiste */
.tba-hud-side { position: relative; flex-direction: column; align-items: stretch; gap: 10px; }
.tba-hud-side .tba-hud-id { width: 100%; padding-right: 44px; }
.tba-hud-side .tba-hud-spacer { display: none; }
.tba-hud-side .tba-hud-stat {
	display: flex; align-items: center; justify-content: space-between;
	min-width: 0; text-align: left;
	padding-top: 10px; border-top: 1px solid var(--tba-line);
}
.tba-hud-side .tba-hud-stat .l { order: 1; }
.tba-hud-side .tba-hud-stat .v { order: 2; font-size: 18px; }
.tba-hud-side .tba-bell { position: absolute; top: 14px; right: 14px; }
.tba-flame { color: var(--tba-warn); }
.tba-bell { position: relative; background: transparent; border: 1px solid var(--tba-line); border-radius: 10px; width: 40px; height: 40px; font-size: 18px; cursor: pointer; color: var(--tba-text); }
.tba-bell:hover { border-color: var(--tba-cyan); }
.tba-bell-count { position: absolute; top: -6px; right: -6px; background: var(--tba-bad); color: #fff; font-size: 10px; font-weight: 800; border-radius: 999px; padding: 1px 5px; min-width: 16px; }

/* XP bar */
.tba-xpbar { height: 10px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 6px; }
.tba-xpbar > span { display:block; height:100%; background: linear-gradient(90deg, var(--tba-cyan), var(--tba-blue)); transition: width .5s ease; }

/* Nav */
.tba-nav { display:flex; gap:8px; margin-bottom: 16px; flex-wrap: wrap; }
.tba-nav button {
	background: var(--tba-panel); color: var(--tba-text);
	border: 1px solid var(--tba-line); border-radius: 999px;
	padding: 8px 16px; cursor: pointer; font-size: 14px; font-weight: 600;
	transition: all .15s ease;
}
.tba-nav button:hover { border-color: var(--tba-cyan); }
.tba-nav button.active { background: linear-gradient(90deg, var(--tba-cyan), var(--tba-blue)); color:#05121f; border-color: transparent; }

/* Sidebar-Nav im AITS-Stil (linke Spalte), Akzente in Academy-Farben */
.tba-nav-side {
	flex-direction: column; flex-wrap: nowrap; gap: 4px;
	background: var(--tba-panel-solid); border: 1px solid var(--tba-line);
	border-radius: var(--tba-radius); padding: 10px;
	box-shadow: var(--tba-shadow);
}
.tba-nav-side button {
	display: flex; align-items: center; gap: 10px;
	width: 100%; text-align: left;
	background: transparent; color: var(--tba-muted);
	border: 1px solid transparent; border-radius: var(--tba-radius-sm);
	padding: 11px 14px;
}
.tba-nav-side button:hover { background: rgba(255,255,255,.05); color: var(--tba-text); border-color: transparent; }
.tba-nav-side button.active {
	background: linear-gradient(90deg, var(--tba-cyan), var(--tba-blue));
	color: #05121f; border-color: transparent;
}
.tba-nav-side .tba-nav-ic { width: 20px; text-align: center; flex: 0 0 auto; color: currentColor; font-variant-emoji: text; }

/* Buttons */
.tba-btn {
	display: inline-flex; align-items:center; gap:8px; justify-content:center;
	background: var(--tba-panel-2); color: var(--tba-text);
	border: 1px solid var(--tba-line); border-radius: var(--tba-radius-sm);
	padding: 10px 18px; cursor: pointer; font-size: 14px; font-weight: 700;
	text-decoration: none; transition: all .15s ease;
}
.tba-btn:hover { border-color: var(--tba-cyan); transform: translateY(-1px); }
.tba-btn-primary { background: linear-gradient(90deg, var(--tba-cyan), var(--tba-blue)); color:#05121f; border-color: transparent; }
.tba-btn-primary:hover { filter: brightness(1.05); }
.tba-btn:disabled { opacity:.5; cursor:not-allowed; transform:none; }
.tba-btn-ghost { background: transparent; }

/* Learn map */
.tba-learn-shell { padding: 0; overflow: hidden; background: rgba(8,22,38,.62); }
.tba-learn-hero {
	display:grid; grid-template-columns: minmax(0,1fr) minmax(250px,340px); gap:24px; align-items:stretch;
	padding:28px; border-bottom:1px solid var(--tba-line);
	background:
		radial-gradient(circle at 88% 12%, rgba(56,189,248,.17), transparent 34%),
		radial-gradient(circle at 8% 88%, rgba(45,212,191,.12), transparent 38%),
		linear-gradient(135deg, rgba(10,30,50,.95), rgba(10,22,39,.82));
}
.tba-learn-hero-copy { min-width:0; }
.tba-eyebrow { color:var(--tba-cyan); font-size:11px; font-weight:800; letter-spacing:.15em; text-transform:uppercase; margin-bottom:8px; }
.tba-learn-hero h2 { margin:0 0 8px; color:#f4fbff; font-size:clamp(24px,2.2vw,34px); line-height:1.15; letter-spacing:-.02em; }
.tba-learn-hero p { max-width:720px; margin:0; color:#a8bdd3; font-size:14px; line-height:1.65; }
.tba-learn-overview { max-width:650px; margin-top:22px; }
.tba-learn-overview-copy { display:flex; justify-content:space-between; gap:12px; margin-bottom:8px; color:var(--tba-muted); font-size:12px; }
.tba-learn-overview-copy strong { color:#dffdf9; font-size:13px; }
.tba-learn-progress { height:9px; overflow:hidden; border-radius:999px; background:rgba(255,255,255,.07); box-shadow:inset 0 1px 3px rgba(0,0,0,.35); }
.tba-learn-progress > span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--tba-cyan),var(--tba-blue)); box-shadow:0 0 14px rgba(45,212,191,.35); }
.tba-next-lesson { display:flex; flex-direction:column; justify-content:center; min-width:0; padding:18px; border:1px solid rgba(45,212,191,.22); border-radius:12px; background:rgba(4,16,29,.56); box-shadow:inset 0 1px 0 rgba(255,255,255,.025); }
.tba-next-label { color:var(--tba-cyan); font-size:10px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.tba-next-title { margin:7px 0 5px; color:#f0f8ff; font-weight:800; font-size:16px; line-height:1.35; }
.tba-next-meta { color:var(--tba-muted); font-size:12px; margin-bottom:14px; }
.tba-next-lesson .tba-btn { align-self:flex-start; padding:8px 13px; font-size:12px; }
.tba-learn-toolbar { display:grid; grid-template-columns:minmax(240px,1fr) auto auto; gap:10px; align-items:center; padding:18px 22px; border-bottom:1px solid var(--tba-line); background:rgba(3,13,25,.3); }
.tba-xp-guide { display:flex; align-items:center; gap:12px; margin:16px 22px; padding:13px 15px; border:1px solid rgba(45,212,191,.28); border-radius:11px; background:linear-gradient(90deg,rgba(45,212,191,.10),rgba(56,189,248,.055)); }
.tba-xp-guide-icon { display:grid; place-items:center; flex:0 0 42px; width:42px; height:42px; border-radius:50%; color:#04202a; background:linear-gradient(135deg,#5eead4,#38bdf8); font-size:12px; font-weight:950; box-shadow:0 0 18px rgba(45,212,191,.24); }
.tba-xp-guide-copy { display:flex; flex-direction:column; gap:3px; min-width:0; }
.tba-xp-guide-copy strong { color:#dffdf9; font-size:13px; }
.tba-xp-guide-copy span { color:#9fb6cc; font-size:12px; line-height:1.45; }
.tba-lesson-search { display:flex; align-items:center; gap:9px; min-width:0; padding:0 12px; color:var(--tba-cyan); border:1px solid var(--tba-line); border-radius:9px; background:rgba(2,12,23,.55); }
.tba-lesson-search:focus-within { border-color:rgba(45,212,191,.62); box-shadow:0 0 0 3px rgba(45,212,191,.08); }
.tba-lesson-search input { width:100%; min-width:0; padding:10px 0; border:0; outline:0; color:var(--tba-text); background:transparent; font:inherit; font-size:13px; }
.tba-lesson-search input::placeholder { color:#6f86a2; }
.tba-lesson-filter { padding:10px 34px 10px 12px; border:1px solid var(--tba-line); border-radius:9px; color:var(--tba-text); background:#0c1b2d; font:inherit; font-size:13px; outline:0; }
.tba-lesson-filter:focus { border-color:rgba(45,212,191,.62); }
.tba-filter-result { color:var(--tba-muted); font-size:12px; white-space:nowrap; }
.tba-paths { padding:22px; }
.tba-path { margin-bottom:18px; border:1px solid var(--tba-line); border-radius:14px; overflow:hidden; background:rgba(5,17,31,.36); }
.tba-path:last-child { margin-bottom:0; }
.tba-path-head {
	display:flex; align-items:center; justify-content:space-between; gap:20px; width:100%; margin:0; padding:17px 18px;
	border:0; border-bottom:1px solid var(--tba-line); color:var(--tba-text); background:linear-gradient(90deg,rgba(45,212,191,.055),rgba(56,189,248,.025));
	font:inherit; text-align:left; cursor:pointer;
}
.tba-path-head:hover { background:linear-gradient(90deg,rgba(45,212,191,.095),rgba(56,189,248,.045)); }
.tba-path-main { display:flex; align-items:center; gap:13px; min-width:0; }
.tba-path-icon { display:grid; place-items:center; flex:0 0 42px; width:42px; height:42px; border:1px solid rgba(45,212,191,.3); border-radius:11px; color:var(--tba-cyan); background:rgba(45,212,191,.08); font-size:21px; box-shadow:inset 0 0 16px rgba(45,212,191,.05); }
.tba-path-copy { display:flex; flex-direction:column; min-width:0; }
.tba-path-kicker { color:var(--tba-cyan); font-size:9px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.tba-path-title { overflow:hidden; color:#eef8ff; font-weight:800; font-size:17px; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
.tba-path-summary { color:var(--tba-muted); font-size:11px; margin-top:2px; }
.tba-path-progress-wrap { display:grid; grid-template-columns:auto 110px auto; align-items:center; gap:10px; flex:0 0 auto; }
.tba-path-prog { color:#cfe8f5; font-size:12px; font-weight:800; }
.tba-path-progress { display:block; width:110px; height:6px; overflow:hidden; border-radius:999px; background:rgba(255,255,255,.08); }
.tba-path-progress > span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--tba-cyan),var(--tba-blue)); }
.tba-path-chevron { color:var(--tba-muted); font-size:18px; transition:transform .18s ease; }
.tba-path.collapsed .tba-path-head { border-bottom-color:transparent; }
.tba-path.collapsed .tba-path-chevron { transform:rotate(-90deg); }
.tba-path.collapsed .tba-lessons { display:none; }
.tba-lessons { display:grid; grid-template-columns:repeat(auto-fit,minmax(285px,1fr)); gap:12px; padding:14px; }
.tba-lesson-node {
	position:relative; min-width:0; min-height:235px; padding:16px; overflow:hidden;
	background:linear-gradient(160deg,rgba(17,36,58,.84),rgba(8,22,38,.72)); border:1px solid var(--tba-line);
	border-radius:11px; cursor:pointer; transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease;
	display:flex; flex-direction:column; gap:10px;
}
.tba-lesson-node::before { content:""; position:absolute; inset:0 auto 0 0; width:2px; background:linear-gradient(var(--tba-cyan),transparent 75%); opacity:.5; }
.tba-lesson-node:hover,.tba-lesson-node:focus-visible { border-color:rgba(45,212,191,.62); transform:translateY(-2px); box-shadow:0 12px 24px rgba(2,8,23,.32),inset 0 1px 0 rgba(255,255,255,.025); outline:0; }
.tba-lesson-node.available { border:2px solid rgba(52,211,153,.68); box-shadow:inset 0 0 0 1px rgba(52,211,153,.08),0 0 18px rgba(16,185,129,.07); }
.tba-lesson-node.available::before { width:3px; background:#34d399; opacity:1; }
.tba-lesson-top { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:20px; }
.tba-lesson-number { color:#7990ab; font-size:9px; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.tba-lesson-status { border-radius:999px; padding:3px 7px; font-size:9px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.tba-lesson-status.available { color:#72e6d6; background:rgba(45,212,191,.10); border:1px solid rgba(45,212,191,.18); }
.tba-lesson-status.completed { color:#79e7bb; background:rgba(52,211,153,.10); border:1px solid rgba(52,211,153,.2); }
.tba-lesson-status.locked { color:#9aacc1; background:rgba(148,163,184,.08); border:1px solid rgba(148,163,184,.14); }
.tba-lesson-node .t { padding-right:2px; color:#edf6fd; font-weight:800; font-size:15px; line-height:1.4; }
.tba-lesson-node .m { display:-webkit-box; overflow:hidden; color:#91a7c0; font-size:12px; line-height:1.55; -webkit-box-orient:vertical; -webkit-line-clamp:4; }
.tba-lesson-node .row { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-top:auto; padding-top:2px; }
.tba-question-count { color:var(--tba-muted); font-size:11px; margin-left:auto; }
.tba-lesson-action { display:flex; align-items:center; justify-content:space-between; gap:10px; padding-top:10px; border-top:1px solid rgba(148,163,184,.10); color:var(--tba-cyan); font-size:11px; font-weight:800; }
.tba-lesson-arrow { font-size:15px; transition:transform .15s ease; }
.tba-lesson-node:hover .tba-lesson-arrow { transform:translateX(3px); }
.tba-badge-xp { background: rgba(56,189,248,.15); color: var(--tba-blue); border-radius:999px; padding:2px 8px; font-size:11px; font-weight:700; }
.tba-chip { border-radius:999px; padding:2px 8px; font-size:11px; font-weight:700; }
.tba-chip.candle{background:rgba(251,191,36,.14);color:var(--tba-warn);}
.tba-chip.pattern{background:rgba(167,139,250,.15);color:var(--tba-violet);}
.tba-chip.risk{background:rgba(52,211,153,.14);color:var(--tba-good);}
.tba-chip.indicator{background:rgba(56,189,248,.14);color:var(--tba-blue);}
.tba-chip.strategy{background:rgba(45,212,191,.14);color:var(--tba-cyan);}
.tba-chip.psychology{background:rgba(248,113,113,.14);color:var(--tba-bad);}
.tba-lesson-node.completed { border-color:rgba(52,211,153,.3); background:linear-gradient(160deg,rgba(13,45,53,.75),rgba(8,25,39,.72)); }
.tba-lesson-node.completed::before { background:var(--tba-good); opacity:.8; }
.tba-lesson-node.locked { opacity:.72; cursor:not-allowed; border-color:rgba(148,163,184,.25); }
.tba-lesson-node.locked::before { background:#6f8299; }
.tba-lesson-lock { position:absolute; right:14px; bottom:46px; display:grid; place-items:center; width:42px; height:42px; border:2px solid rgba(148,163,184,.38); border-radius:12px; background:rgba(3,12,23,.84); font-size:22px; filter:grayscale(.25); box-shadow:0 7px 18px rgba(0,0,0,.25); }
.tba-lesson-node.locked .tba-lesson-action { color:#8497ac; }
.tba-lesson-node.locked:hover { transform:none; border-color:var(--tba-line); box-shadow:none; }
.tba-xp-earned { margin-top:9px; color:#5eead4; font-size:13px; font-weight:900; }
.tba-storage-note { margin:10px 0 16px; padding:11px 13px; border-left:3px solid var(--tba-cyan); border-radius:8px; color:#a9bfd3; background:rgba(45,212,191,.07); font-size:12px; line-height:1.5; }
.tba-training-history { margin:8px 14px 18px; padding:15px; border:1px solid var(--tba-line); border-radius:11px; background:rgba(3,13,25,.34); }
.tba-training-history h3 { margin:0 0 11px; font-size:15px; }
.tba-history-list { display:grid; gap:7px; }
.tba-history-row { display:grid; grid-template-columns:minmax(180px,1fr) auto 145px; align-items:center; gap:12px; padding:9px 11px; border:1px solid rgba(148,163,184,.10); border-radius:8px; background:rgba(8,22,38,.52); }
.tba-history-row > div:first-child { display:flex; flex-direction:column; gap:2px; }
.tba-history-row strong { color:#e9f7ff; font-size:12px; }
.tba-history-row span,.tba-history-row time { color:#7f98b3; font-size:10px; }
.tba-history-score { padding:4px 8px; border-radius:999px; font-size:11px; font-weight:900; }
.tba-history-score.ok { color:#72e6d6; background:rgba(45,212,191,.11); }
.tba-history-score.retry { color:#fca5a5; background:rgba(248,113,113,.10); }
@media (max-width:1260px) {
	.tba-learn-hero { grid-template-columns:1fr; }
	.tba-next-lesson { display:grid; grid-template-columns:1fr auto; column-gap:16px; align-items:center; }
	.tba-next-label,.tba-next-title,.tba-next-meta { grid-column:1; }
	.tba-next-lesson .tba-btn { grid-column:2; grid-row:1 / span 3; }
}
@media (max-width:720px) {
	.tba-learn-hero { padding:21px 17px; }
	.tba-next-lesson { display:flex; }
	.tba-learn-toolbar { grid-template-columns:1fr; padding:14px; }
	.tba-filter-result { text-align:right; }
	.tba-paths { padding:14px; }
	.tba-path-head { padding:14px; }
	.tba-path-progress-wrap { grid-template-columns:auto auto; }
	.tba-path-progress { display:none; }
	.tba-path-icon { display:none; }
	.tba-lessons { grid-template-columns:1fr; padding:10px; }
	.tba-lesson-node { min-height:215px; }
	.tba-xp-guide { margin:12px 14px; }
	.tba-history-row { grid-template-columns:1fr auto; }
	.tba-history-row time { grid-column:1 / -1; }
}

/* Lesson + quiz */
.tba-lesson-content { font-size: 15px; }
.tba-lesson-content p { margin: 0 0 12px; }
.tba-quiz-q { font-size: 17px; font-weight: 700; margin: 6px 0 14px; }
.tba-progress-dots { display:flex; gap:6px; margin-bottom: 14px; }
.tba-dot { width:10px; height:10px; border-radius:50%; background: rgba(255,255,255,.15); }
.tba-dot.done { background: var(--tba-cyan); }
.tba-dot.cur { background: var(--tba-blue); box-shadow:0 0 0 3px rgba(56,189,248,.25); }
.tba-options { display:flex; flex-direction:column; gap:10px; }
.tba-opt {
	text-align:left; background: var(--tba-panel); color:var(--tba-text);
	border:1px solid var(--tba-line); border-radius: var(--tba-radius-sm);
	padding: 12px 14px; cursor:pointer; font-size:14px; transition: all .12s ease;
}
.tba-opt:hover { border-color: var(--tba-cyan); }
.tba-opt.selected,
.tba-opt[aria-pressed="true"] {
	border-color: var(--tba-cyan) !important;
	background: rgba(45,212,191,.22) !important;
	box-shadow: inset 4px 0 0 var(--tba-cyan), 0 0 0 2px rgba(45,212,191,.18);
	font-weight: 800;
}
.tba-opt.selected::before { content: "✓  "; color: var(--tba-cyan); font-weight: 900; }
.tba-btn.is-loading { cursor: wait; opacity: .82; }
.tba-direction { display:inline-flex; align-items:center; margin:0 0 10px; padding:7px 12px; border-radius:999px; font-size:13px; font-weight:900; letter-spacing:.08em; }
.tba-direction-long { color:#6ee7b7; background:rgba(16,185,129,.18); border:1px solid rgba(52,211,153,.55); }
.tba-direction-short { color:#fca5a5; background:rgba(239,68,68,.16); border:1px solid rgba(248,113,113,.55); }
.tba-source-note { margin-top:18px; padding:12px 14px; border-left:3px solid #2dd4bf; border-radius:8px; background:rgba(45,212,191,.08); color:#a9bfd3; font-size:.9rem; line-height:1.55; }
.tba-source-note strong { color:#d9fbf6; }
.tba-answer-resolution { margin:6px 0 12px; padding:9px 12px; border-radius:8px; font-weight:800; line-height:1.45; }
.tba-answer-resolution.ok { color:#86efac; background:rgba(34,197,94,.11); border:1px solid rgba(34,197,94,.35); }
.tba-answer-resolution.no { color:#fca5a5; background:rgba(239,68,68,.11); border:1px solid rgba(239,68,68,.35); }
.tba-opt.correct { border-color: var(--tba-good) !important; background: rgba(52,211,153,.18) !important; box-shadow: inset 4px 0 0 var(--tba-good); }
.tba-opt.wrong { border-color: var(--tba-bad) !important; background: rgba(248,113,113,.18) !important; box-shadow: inset 4px 0 0 var(--tba-bad); }
.tba-opt.correct::before { content:"✓  "; color:var(--tba-good); font-weight:900; }
.tba-opt.selected.wrong::before { content:"✗  "; color:var(--tba-bad); font-weight:900; }
.tba-opt.disabled { cursor: default; }
/* order_steps */
.tba-order-list { display:flex; flex-direction:column; gap:8px; }
.tba-order-item { display:flex; align-items:center; gap:10px; background:var(--tba-panel); border:1px solid var(--tba-line); border-radius:var(--tba-radius-sm); padding:10px 12px; }
.tba-order-item .g { display:flex; flex-direction:column; gap:2px; }
.tba-order-item button { background:var(--tba-panel-2); border:1px solid var(--tba-line); color:var(--tba-text); border-radius:6px; width:30px; height:26px; cursor:pointer; font-weight:800; }
.tba-order-item button:disabled { opacity:.3; cursor:default; }

.tba-feedback { margin-top: 14px; border-radius: var(--tba-radius-sm); padding: 14px; border:1px solid var(--tba-line); }
.tba-feedback.ok { background: rgba(52,211,153,.10); border-color: rgba(52,211,153,.4); }
.tba-feedback.no { background: rgba(248,113,113,.10); border-color: rgba(248,113,113,.4); }
.tba-feedback .head { font-weight:800; margin-bottom:6px; }
.tba-feedback .exp { color: var(--tba-text); font-size:14px; }

/* Badges */
.tba-badges { display:flex; flex-wrap:wrap; gap:10px; }
.tba-badge {
	display:flex; flex-direction:column; align-items:center; gap:4px; width:72px; text-align:center;
}
.tba-badge .ic { width:52px; height:52px; border-radius:14px; display:grid; place-items:center; font-size:26px;
	background: var(--tba-panel); border:1px solid var(--tba-line); }
.tba-badge.common .ic { box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.tba-badge.rare .ic { border-color: rgba(56,189,248,.5); }
.tba-badge.epic .ic { border-color: rgba(167,139,250,.6); box-shadow: 0 0 14px rgba(167,139,250,.25); }
.tba-badge .nm { font-size:11px; color:var(--tba-muted); line-height:1.2; }
.tba-badge.locked .ic { filter: grayscale(1); opacity:.35; }

/* Skill bars */
.tba-skill { margin-bottom:10px; }
.tba-skill .lab { display:flex; justify-content:space-between; font-size:12px; color:var(--tba-muted); margin-bottom:3px; }
.tba-skill .track { height:8px; background:rgba(255,255,255,.08); border-radius:5px; overflow:hidden; }
.tba-skill .track > span { display:block; height:100%; border-radius:5px; }

/* Popups / toasts */
.tba-toasts { position: fixed; right: 20px; bottom: 20px; display:flex; flex-direction:column; gap:10px; z-index: 99999; }
.tba-toast {
	background: var(--tba-panel-2); border:1px solid var(--tba-cyan); color:var(--tba-text);
	border-radius: var(--tba-radius-sm); padding: 12px 16px; box-shadow: var(--tba-shadow);
	font-weight:700; animation: tba-pop .35s ease, tba-fade .4s ease 2.6s forwards;
	display:flex; align-items:center; gap:10px; min-width: 200px;
}
.tba-toast.xp { border-color: var(--tba-blue); }
.tba-toast.level { border-color: var(--tba-violet); }
.tba-toast.badge { border-color: var(--tba-warn); }
.tba-toast .big { font-size: 22px; }
@keyframes tba-pop { from { transform: translateY(14px) scale(.9); opacity:0; } to { transform:none; opacity:1; } }
@keyframes tba-fade { to { opacity:0; transform: translateY(-6px); } }

/* Misc */
.tba-loading { display:flex; align-items:center; gap:10px; color:var(--tba-muted); padding: 30px; justify-content:center; }
.tba-spinner { width:16px; height:16px; border:2px solid rgba(255,255,255,.2); border-top-color: var(--tba-cyan); border-radius:50%; animation: tba-spin .8s linear infinite; }
@keyframes tba-spin { to { transform: rotate(360deg); } }
.tba-disclaimer { margin-top: 18px; color: var(--tba-muted); font-size: 11px; line-height:1.5; text-align:center; opacity:.8; }
.tba-muted { color: var(--tba-muted); }
.tba-center { text-align:center; }
.tba-gate { max-width: 520px; }
.tba-login-card { text-align:center; }
.tba-empty { color: var(--tba-muted); padding: 20px; text-align:center; }
.tba-lead { font-size: 15px; color: var(--tba-muted); margin: 0 0 16px; }
.tba-list { list-style:none; margin:0; padding:0; }
.tba-list li { display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--tba-line); font-size:14px; }
.tba-list li:last-child { border-bottom:0; }
.tba-error { color: var(--tba-bad); }

/* --- Punkte-Erklaerung (Ati, 10.08.2026: "unklar wie die punkte berechnet
   werden"). Fragezeichen in der Kopfleiste oeffnet ein Fenster mit den
   tatsaechlichen Vergaberegeln. --- */
.tba-xp-hilfe {
	margin-left: 6px;
	width: 16px;
	height: 16px;
	line-height: 14px;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 11px;
	opacity: .65;
	cursor: pointer;
	vertical-align: middle;
}

.tba-xp-hilfe:hover {
	opacity: 1;
}

.tba-xp-ov {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(2, 5, 9, .72);
	backdrop-filter: blur(4px);
}

.tba-xp-box {
	max-width: 620px;
	max-height: 86vh;
	overflow: auto;
	padding: 22px 24px;
	border: 1px solid #2a313b;
	border-radius: 12px;
	background: #141a22;
	color: #cdd3db;
	font-size: 14px;
	line-height: 1.55;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}

.tba-xp-box h3 {
	margin: 0 0 14px;
	color: #f3f5f7;
	font-size: 18px;
}

.tba-xp-tab {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 14px;
}

.tba-xp-tab td {
	padding: 7px 10px 7px 0;
	border-bottom: 1px solid #232a33;
	vertical-align: top;
}

.tba-xp-tab td:first-child {
	white-space: nowrap;
	color: #e6e8eb;
}

.tba-xp-hinweis {
	margin: 12px 0;
	padding: 10px 12px;
	border-left: 3px solid #2563eb;
	background: rgba(37, 99, 235, .08);
	border-radius: 0 6px 6px 0;
}

.tba-xp-hinweis code {
	padding: 1px 5px;
	border-radius: 4px;
	background: rgba(255, 255, 255, .07);
	font-size: 13px;
}

/* ── Memory: Rückmeldung und Abschluss ──────────────────────────────
   Ati, 12.08.2026: „dann bleibt unten so ein komischer balken anstatt
   dass er richtig oder falsch sagt und von da geht es nicht weiter".
   Der Balken war ein leerer Kasten. Jetzt steht dort der Spielstand. */
.tba-memory-stand {
	margin-top: 14px;
	padding: 11px 16px;
	border-radius: 12px;
	border: 1px solid rgba(148, 163, 184, .18);
	background: rgba(148, 163, 184, .07);
	color: #9aacc1;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.tba-memory-stand.ok {
	color: #6ee7c8;
	border-color: rgba(45, 212, 191, .42);
	background: rgba(45, 212, 191, .10);
}

.tba-memory-stand.wrong {
	color: #fca5a5;
	border-color: rgba(248, 113, 113, .42);
	background: rgba(248, 113, 113, .10);
}

.tba-memory-fertig {
	margin-top: 16px;
	padding: 22px 18px;
	border-radius: 16px;
	border: 1px solid rgba(45, 212, 191, .38);
	background: radial-gradient(120% 140% at 50% 0%, rgba(45, 212, 191, .16), rgba(3, 12, 23, .6));
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.tba-memory-fertig-titel { font-size: 19px; font-weight: 800; color: #e8f6ff; }
.tba-memory-fertig-xp { font-size: 15px; font-weight: 700; color: #6ee7c8; }
.tba-memory-fertig .tba-btn { min-width: 210px; }

/* ── Gesperrte Lektionen: das Schloss gehört in die Mitte ────────────
   Ati, 12.08.2026: „das schloss soll mittig und groß sein, wie bei einem
   game, das muss spaß machen".

   Vorher hing es als 42-px-Kästchen unten rechts in der Ecke und ging
   im Kachelinhalt unter. Jetzt liegt es mittig über der ganzen Kachel,
   der Inhalt dahinter tritt zurück. */
.tba-lesson-node.locked { position: relative; overflow: hidden; }

.tba-lesson-node.locked > *:not(.tba-lesson-lock) {
	opacity: .38;
	filter: blur(.4px);
	transition: opacity .25s ease;
}

.tba-lesson-lock {
	position: absolute;
	inset: 0;
	right: auto;
	bottom: auto;
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: inherit;
	background: radial-gradient(90% 120% at 50% 50%, rgba(3, 12, 23, .58), rgba(3, 12, 23, .86));
	box-shadow: none;
	filter: none;
	/* Klicks gehen weiter an die Kachel — die zeigt ihren eigenen Hinweis. */
	pointer-events: none;
	font-size: 0;   /* Das Emoji im Markup wird durch das Zeichen unten ersetzt. */
	z-index: 2;
}

.tba-lesson-lock::after {
	content: '🔒';
	font-size: 64px;
	line-height: 1;
	filter: drop-shadow(0 0 18px rgba(45, 212, 191, .45)) drop-shadow(0 6px 14px rgba(0, 0, 0, .55));
	animation: tba-schloss-atmen 2.6s ease-in-out infinite;
}

@keyframes tba-schloss-atmen {
	0%, 100% { transform: scale(1); }
	50%      { transform: scale(1.07); }
}

/* Beim Darüberfahren zeigt die Kachel, WARUM sie zu ist. */
.tba-lesson-node.locked:hover > *:not(.tba-lesson-lock) { opacity: .62; }
.tba-lesson-node.locked:hover .tba-lesson-lock::after {
	transform: scale(1.12);
	animation-play-state: paused;
	filter: drop-shadow(0 0 26px rgba(45, 212, 191, .7)) drop-shadow(0 6px 14px rgba(0, 0, 0, .55));
}

@media (prefers-reduced-motion: reduce) {
	.tba-lesson-lock::after { animation: none; }
}

@media (max-width: 640px) {
	.tba-lesson-lock::after { font-size: 48px; }
}

/* Schloss: gezeichnet statt Emoji.
   Ati, 12.08.2026: „das schloss zentriert im feld bitte".
   Gemessen: der Kasten SASS mittig (651 = 651) — das Emoji sitzt aber in
   seinem 64-px-Zeilenkasten nicht mittig (Schriftmetrik: Glyphe oben,
   Buegel ueber der Grundlinie). Eine gezeichnete Form hat dieses Problem
   nicht und sieht auf jedem System gleich aus. */
.tba-lesson-lock::after {
	content: '';
	width: 92px;
	height: 92px;
	font-size: 0;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><rect x='12' y='28' width='40' height='30' rx='7' fill='%23f3c34a'/><rect x='12' y='28' width='40' height='30' rx='7' fill='none' stroke='%23b8892a' stroke-width='2'/><path d='M21 28v-8a11 11 0 0 1 22 0v8' fill='none' stroke='%23d8dee8' stroke-width='6' stroke-linecap='round'/><circle cx='32' cy='40' r='5' fill='%236b4d12'/><rect x='30' y='42' width='4' height='9' rx='2' fill='%236b4d12'/></svg>");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	filter: drop-shadow(0 0 20px rgba(243, 195, 74, .35)) drop-shadow(0 8px 16px rgba(0, 0, 0, .55));
}

.tba-lesson-node.locked:hover .tba-lesson-lock::after {
	filter: drop-shadow(0 0 30px rgba(243, 195, 74, .6)) drop-shadow(0 8px 16px rgba(0, 0, 0, .55));
}

@media (max-width: 640px) {
	.tba-lesson-lock::after { width: 68px; height: 68px; }
}


/* ------------------------------------------------------------------ */
/* Mein Stand — Teilnehmer-Uebersicht                                   */
/* ------------------------------------------------------------------ */
.tba-btn-sm { padding: 6px 11px; font-size: 12px; }

.tba-ov-pfad { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.tba-ov-pfad:last-child { border-bottom: none; padding-bottom: 2px; }
.tba-ov-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.tba-ov-name { font-weight: 700; }
.tba-ov-zahl { color: var(--tba-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.tba-ov-track { height: 8px; border-radius: 5px; background: rgba(255,255,255,.09); overflow: hidden; }
.tba-ov-track > span {
	display: block; height: 100%; border-radius: 5px;
	background: linear-gradient(90deg, var(--tba-cyan), var(--tba-blue));
	transition: width .35s ease;
}
.tba-ov-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 12px; color: var(--tba-muted); }
.tba-ov-fertig { margin-top: 8px; font-size: 12px; color: var(--tba-good, #34d399); }

.tba-ov-tab { width: 100%; border-collapse: collapse; font-size: 13px; }
.tba-ov-tab td { padding: 7px 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
.tba-ov-tab tr:last-child td { border-bottom: none; }
.tba-ov-tab td.r { text-align: right; color: var(--tba-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tba-ov-tab tr.faellig td { color: var(--tba-warn, #fbbf24); }

.tba-ov-tage { display: flex; align-items: flex-end; gap: 5px; height: 74px; }
.tba-ov-tag { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.tba-ov-tag > span {
	width: 100%; border-radius: 3px 3px 0 0;
	background: linear-gradient(180deg, var(--tba-cyan), var(--tba-blue));
}
.tba-ov-tag.leer > span { background: rgba(255,255,255,.12); }
.tba-ov-tag > em { font-style: normal; font-size: 10px; color: var(--tba-muted); }

/* Abgeschlossene Lektionen deutlich markieren (02.11.2026, Ticket TB-202608-000027
   „Lernen: abgeschlossene Aufgaben bildlich oder farblich markieren").
   Das Theme setzt Rahmen und Hintergrund ALLER Lektionskarten mit !important
   einheitlich (mintify style.css html/body.tb-look-standard .tba-lesson-node,
   tb-cyber-skin.css). Der grüne Zustand oben (.completed) kam deshalb nie an –
   gemessen: offen und abgeschlossen hatten denselben Rahmen und Hintergrund, der
   Farbstreifen war bei OFFENEN Karten sogar kräftiger. Höhere Spezifität
   (html body …) gewinnt gegen beide Theme-Regeln; dazu ein kräftiges Etikett
   „✓ Abgeschlossen" (Haken in academy.js). */
html body .tba-lesson-node.completed {
	border: 1px solid rgba(52,211,153,.65) !important;
	background: linear-gradient(160deg, rgba(13,58,50,.85), rgba(8,32,34,.8)) !important;
}
html body .tba-lesson-node.completed::before { width: 3px; background: #34d399; opacity: 1; }
.tba-lesson-status.completed { color: #04121f; background: #34d399; border: 1px solid #34d399; }
