/* ============================================================
   TeacherBatch — Unique Responsive Design System
   ============================================================ */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url('../fonts/LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko20yw.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500 800;
  font-display: optional;
  src: url('../fonts/QGYvz_MVcBeNP4NJtEtq.woff2') format('woff2');
}

:root {
  --tb-ink: #0f172a;
  --tb-ink-soft: #334155;
  --tb-muted: #64748b;
  --tb-bg: #f4f7fb;
  --tb-surface: #ffffff;
  --tb-line: #e2e8f0;
  --tb-brand: #0d9488;
  --tb-brand-dark: #0f766e;
  --tb-brand-soft: #ccfbf1;
  --tb-accent: #f97316;
  --tb-accent-soft: #ffedd5;
  --tb-navy: #0b1324;
  --tb-success: #10b981;
  --tb-danger: #ef4444;
  --tb-warning: #f59e0b;
  --tb-radius: 18px;
  --tb-radius-sm: 12px;
  --tb-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --tb-shadow-lg: 0 24px 50px rgba(15, 23, 42, 0.14);
  --tb-font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --tb-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --tb-nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--tb-font);
  color: var(--tb-ink);
  background: var(--tb-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 2px solid var(--tb-brand);
  outline-offset: 2px;
}

.tb-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
}
.tb-skip:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: .55rem .9rem;
  background: #fff;
  color: var(--tb-ink);
  border-radius: 999px;
  box-shadow: var(--tb-shadow);
}

img { max-width: 100%; height: auto; }
a { color: var(--tb-brand-dark); text-decoration: none; }
a:hover { color: var(--tb-brand); }

h1, h2, h3, h4, h5, .tb-display {
  font-family: var(--tb-display);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--tb-ink);
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 999px !important;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  transition: all .2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--tb-brand) 0%, #14b8a6 100%) !important;
  border: none !important;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.28);
  color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, var(--tb-brand-dark) 0%, var(--tb-brand) 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(13, 148, 136, 0.35);
  color: #fff !important;
}

.btn-accent {
  background: linear-gradient(135deg, var(--tb-accent) 0%, #fb923c 100%) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.28);
}
.btn-accent:hover {
  transform: translateY(-1px);
  color: #fff !important;
}

.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,.55) !important;
  color: #fff !important;
  background: rgba(255,255,255,.08) !important;
  backdrop-filter: blur(8px);
}
.btn-outline-light:hover {
  background: #fff !important;
  color: var(--tb-navy) !important;
}

.btn-outline-brand {
  border: 1.5px solid var(--tb-brand) !important;
  color: var(--tb-brand-dark) !important;
  background: transparent !important;
}
.btn-outline-brand:hover {
  background: var(--tb-brand-soft) !important;
}

.btn-ghost-dark {
  background: rgba(15, 23, 42, 0.06) !important;
  border: none !important;
  color: var(--tb-ink) !important;
}
.btn-ghost-dark:hover { background: rgba(15, 23, 42, 0.1) !important; }

.btn-google {
  background: #fff !important;
  border: 1.5px solid var(--tb-line) !important;
  color: var(--tb-ink) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-weight: 600;
}
.btn-google:hover {
  border-color: #cbd5e1 !important;
  background: #f8fafc !important;
  color: var(--tb-ink) !important;
}

/* ---------- Navbar ---------- */
.tb-navbar {
  min-height: var(--tb-nav-h);
  background: rgba(255,255,255,.85) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: .6rem 0;
}

.tb-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--tb-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--tb-ink) !important;
  letter-spacing: -0.03em;
}

.tb-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tb-brand), #2dd4bf);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 16px rgba(13, 148, 136, 0.3);
}

.tb-navbar .nav-link {
  font-weight: 600;
  color: var(--tb-ink-soft) !important;
  padding: .45rem .75rem !important;
  border-radius: 999px;
  transition: all .15s ease;
  white-space: nowrap;
}
.tb-navbar .nav-link:hover,
.tb-navbar .nav-link.active {
  color: var(--tb-brand-dark) !important;
  background: var(--tb-brand-soft);
}

.tb-navbar .tb-nav-main,
.tb-navbar .tb-nav-end {
  flex-wrap: nowrap;
  align-items: center;
}

.tb-navbar .navbar-toggler {
  border: 0;
  box-shadow: none !important;
  padding: .4rem;
  color: var(--tb-ink);
  min-width: 44px;
  min-height: 44px;
}
.tb-navbar .dropdown-menu {
  border-radius: 14px;
}

.tb-user-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  max-width: 11.5rem;
  padding: .35rem .75rem .35rem .35rem;
  border-radius: 999px;
  background: #f1f5f9;
  font-weight: 600;
  font-size: .9rem;
  color: var(--tb-ink);
}
.tb-user-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.tb-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tb-brand), var(--tb-accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
}

/* ---------- Flash alerts ---------- */
.tb-flash-wrap {
  position: sticky;
  top: var(--tb-nav-h);
  z-index: 1020;
  padding: .75rem 0 0;
}
.tb-flash {
  border: 0;
  border-radius: var(--tb-radius-sm);
  box-shadow: var(--tb-shadow);
}

/* ---------- Hero ---------- */
.tb-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(circle at 15% 20%, rgba(45, 212, 191, 0.35), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(249, 115, 22, 0.28), transparent 35%),
    radial-gradient(circle at 70% 80%, rgba(56, 189, 248, 0.2), transparent 40%),
    linear-gradient(160deg, #0b1324 0%, #0f2a3d 45%, #134e4a 100%);
  color: #fff;
}

.tb-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

.tb-hero .container { position: relative; z-index: 1; }

.tb-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: #ecfeff;
  font-size: .85rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  margin-bottom: 1.25rem;
}

.tb-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 800;
  max-width: 16ch;
  margin-bottom: 1rem;
}

.tb-hero .lead {
  color: #dbeafe;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.tb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2rem;
}

.tb-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
}
.tb-hero-stat strong {
  display: block;
  font-family: var(--tb-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.tb-hero-stat span {
  font-size: .85rem;
  color: rgba(236,254,255,.7);
}

.tb-hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  padding: 1.25rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--tb-shadow-lg);
  min-height: 21.75rem;
  contain: layout style paint;
}
.tb-hero-marquee {
  overflow: hidden;
  height: 19.25rem;
  min-height: 19.25rem;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.tb-hero-marquee-track {
  animation: tbHeroSlide var(--tb-hero-slide, 18s) linear infinite;
  animation-delay: 1.2s;
  will-change: transform;
}
.tb-hero-marquee:hover .tb-hero-marquee-track {
  animation-play-state: paused;
}
@keyframes tbHeroSlide {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .tb-hero-marquee-track { animation: none; }
  .tb-hero-marquee { -webkit-mask-image: none; mask-image: none; height: auto; }
}
.tb-hero-card .mini-course {
  background: rgba(255,255,255,.95);
  color: var(--tb-ink);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: .75rem;
  min-height: 5.5rem;
}
.tb-hero-card .mini-course h6 {
  margin: 0 0 .25rem;
  font-weight: 700;
  font-size: .95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tb-hero-card .mini-course small { color: var(--tb-muted); }
.tb-hero-card .price {
  color: var(--tb-brand-dark);
  font-weight: 800;
  margin: 0;
}

/* ---------- Sections ---------- */
.tb-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.tb-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.tb-section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}
.tb-section-head p {
  margin: .35rem 0 0;
  color: var(--tb-muted);
  max-width: 36rem;
}
.tb-eyebrow {
  display: inline-block;
  color: var(--tb-brand-dark);
  background: var(--tb-brand-soft);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .3rem .7rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}

/* ---------- Course cards ---------- */
.tb-course-card {
  height: 100%;
  background: var(--tb-surface);
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}
.tb-course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--tb-shadow-lg);
  border-color: #99f6e4;
}

.tb-course-thumb {
  height: 140px;
  background:
    linear-gradient(135deg, rgba(13,148,136,.9), rgba(15,23,42,.75)),
    radial-gradient(circle at 80% 20%, rgba(249,115,22,.5), transparent 40%);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.tb-course-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.15) 0, transparent 25%),
    radial-gradient(circle at 70% 40%, rgba(255,255,255,.1) 0, transparent 30%);
}
.tb-course-thumb .play {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--tb-brand-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 16px rgba(0,0,0,.15);
}

.tb-course-body {
  padding: 1.15rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tb-course-body .center {
  color: var(--tb-muted);
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: .35rem;
}
.tb-course-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}
.tb-course-body .excerpt {
  color: var(--tb-muted);
  font-size: .9rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.tb-course-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
}
.tb-price {
  font-family: var(--tb-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--tb-brand-dark);
  margin: 0;
}

/* ---------- Feature / center cards ---------- */
.tb-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.tb-feature {
  background: var(--tb-surface);
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  padding: 1.5rem;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tb-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--tb-shadow);
}
.tb-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  background: var(--tb-brand-soft);
  color: var(--tb-brand-dark);
}
.tb-feature-icon.orange {
  background: var(--tb-accent-soft);
  color: #c2410c;
}
.tb-feature-icon.blue {
  background: #e0f2fe;
  color: #0369a1;
}
.tb-feature h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .4rem;
}
.tb-feature p {
  color: var(--tb-muted);
  margin: 0;
  font-size: .95rem;
}

.tb-center-card {
  background: var(--tb-surface);
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  transition: all .2s ease;
}
.tb-center-card:hover {
  border-color: #99f6e4;
  box-shadow: var(--tb-shadow);
  transform: translateY(-3px);
}
.tb-center-logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f766e, #0ea5e9);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--tb-display);
  flex-shrink: 0;
}
.tb-center-card h3 {
  font-size: 1rem;
  margin: 0 0 .2rem;
  font-weight: 700;
}
.tb-center-card span {
  color: var(--tb-muted);
  font-size: .85rem;
}
.tb-center-logo-img {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  border: 1px solid var(--tb-line);
  background: #fff;
}

/* ---------- CTA band ---------- */
.tb-cta {
  margin: 0 0 clamp(3rem, 6vw, 5rem);
}
.tb-cta-inner {
  background: linear-gradient(120deg, #0f766e 0%, #0ea5e9 55%, #f97316 120%);
  border-radius: 28px;
  padding: clamp(2rem, 5vw, 3rem);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--tb-shadow-lg);
}
.tb-cta-inner h2 {
  color: #fff;
  margin: 0 0 .4rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.tb-cta-inner p {
  margin: 0;
  color: rgba(255,255,255,.85);
  max-width: 34rem;
}

/* ---------- Page headers ---------- */
.tb-page-hero {
  background: linear-gradient(135deg, #0b1324, #134e4a);
  color: #fff;
  padding: 2.5rem 0 2.75rem;
  margin-bottom: 0;
}
.tb-page-hero h1 {
  color: #fff;
  margin: 0 0 .4rem;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
}
.tb-page-hero p {
  margin: 0;
  color: rgba(236,254,255,.75);
}

/* ---------- Auth ---------- */
.tb-auth-wrap {
  min-height: calc(100vh - var(--tb-nav-h) - 220px);
  display: flex;
  align-items: center;
  padding: 2.5rem 0;
  background:
    radial-gradient(circle at top right, rgba(13,148,136,.12), transparent 40%),
    radial-gradient(circle at bottom left, rgba(249,115,22,.1), transparent 35%),
    var(--tb-bg);
}
.tb-auth-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: var(--tb-surface);
  border: 1px solid var(--tb-line);
  border-radius: 24px;
  padding: 2rem 1.75rem;
  box-shadow: var(--tb-shadow);
}
.tb-auth-card h1 {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: .35rem;
}
.tb-auth-card .sub {
  text-align: center;
  color: var(--tb-muted);
  margin-bottom: 1.5rem;
  font-size: .95rem;
}
.tb-security-input {
  letter-spacing: .12em;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.tb-security-card {
  border-color: rgba(13,148,136,.28);
  background: linear-gradient(180deg, rgba(13,148,136,.06), #fff 42%);
}
.tb-security-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}
.tb-security-code {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: .18em;
  color: #0f766e;
  background: #f0fdfa;
  border: 1px dashed rgba(13,148,136,.45);
  border-radius: 12px;
  padding: .55rem .9rem;
}
.tb-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--tb-muted);
  font-size: .85rem;
  margin: 1.1rem 0;
}
.tb-divider::before, .tb-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--tb-line);
}
.form-control, .form-select {
  border-radius: 12px !important;
  border-color: var(--tb-line) !important;
  padding: .7rem .95rem;
  background: #f8fafc;
}
.form-control:focus, .form-select:focus {
  border-color: var(--tb-brand) !important;
  box-shadow: 0 0 0 .2rem rgba(13, 148, 136, 0.15) !important;
  background: #fff;
}
.form-label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--tb-ink-soft);
}

/* Search bars: icon + field as one control */
.input-group,
.tb-search-group {
  flex-wrap: nowrap;
  align-items: stretch;
}
.input-group > .input-group-text,
.tb-search-group > .input-group-text {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 2.85rem;
  padding: 0 .85rem;
  background: #f8fafc !important;
  border: 1px solid var(--tb-line) !important;
  border-right: 0 !important;
  color: var(--tb-muted);
  font-size: 1.1rem;
  line-height: 1;
}
.input-group > .input-group-text:first-child,
.tb-search-group > .input-group-text:first-child {
  border-radius: 12px 0 0 12px !important;
}
.input-group > .form-control,
.tb-search-group > .form-control {
  border-radius: 0 12px 12px 0 !important;
  border-left: 0 !important;
  min-height: 44px;
}
.input-group > .input-group-text i,
.tb-search-group > .input-group-text i {
  font-size: 1.15rem;
  line-height: 1;
  display: block;
}
.input-group:focus-within > .input-group-text,
.input-group:focus-within > .form-control,
.tb-search-group:focus-within > .input-group-text,
.tb-search-group:focus-within > .form-control {
  border-color: var(--tb-brand) !important;
  background: #fff !important;
  color: var(--tb-brand-dark);
}

/* ---------- Course detail ---------- */
.tb-detail-buy {
  background: var(--tb-surface);
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  padding: 1.5rem;
  box-shadow: var(--tb-shadow);
  position: sticky;
  top: calc(var(--tb-nav-h) + 1rem);
}
.tb-lesson-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--tb-surface);
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius-sm);
  margin-bottom: .65rem;
}
.tb-pdf-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  background: var(--tb-bg, #f8fafc);
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius-sm);
  margin-bottom: .65rem;
}
.tb-pdf-item:last-child {
  margin-bottom: 0;
}
.tb-lesson-item .num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--tb-brand-soft);
  color: var(--tb-brand-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
  margin-right: .75rem;
}

/* ---------- Footer ---------- */
.tb-footer {
  background: var(--tb-navy);
  color: #94a3b8;
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}
.tb-footer a { color: #cbd5e1; }
.tb-footer a:hover { color: #fff; }
.tb-footer h5 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.tb-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: #fff !important;
  font-family: var(--tb-display);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: .75rem;
}
.tb-footer-bottom {
  border-top: 1px solid rgba(148,163,184,.2);
  margin-top: 2rem;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  font-size: .9rem;
}

/* ---------- Empty state ---------- */
.tb-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--tb-surface);
  border: 1px dashed var(--tb-line);
  border-radius: var(--tb-radius);
  color: var(--tb-muted);
}
.tb-empty i {
  font-size: 2.5rem;
  color: var(--tb-brand);
  margin-bottom: .75rem;
  display: block;
}

/* ---------- Dashboard ---------- */
.tb-dash-body {
  background: #f1f5f9;
  min-height: 100vh;
  overflow-x: hidden;
}
.tb-sidebar {
  background: linear-gradient(180deg, #0b1324 0%, #0f2a3d 100%);
  min-height: 100vh;
  padding: 0;
  position: sticky;
  top: 0;
}
.tb-sidebar .brand {
  color: #fff;
  font-family: var(--tb-display);
  font-weight: 800;
  padding: 1.4rem 1.25rem;
  font-size: 1.15rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.tb-sidebar a {
  color: #94a3b8;
  text-decoration: none;
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  font-weight: 600;
  font-size: .92rem;
  border-left: 3px solid transparent;
  transition: all .15s ease;
}
.tb-sidebar a:hover,
.tb-sidebar a.active {
  background: rgba(13, 148, 136, 0.15);
  color: #fff;
  border-left-color: var(--tb-brand);
}
.tb-sidebar i { font-size: 1.05rem; width: 1.2rem; text-align: center; }
.tb-nudge-dot {
  --tb-nudge: 251, 191, 36;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: rgb(var(--tb-nudge));
  margin-left: auto;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(var(--tb-nudge), .75);
  animation: tb-nudge-pulse 1.35s ease-out infinite;
}
.tb-nudge-dot-danger {
  --tb-nudge: 239, 68, 68;
}
@keyframes tb-nudge-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(var(--tb-nudge), .75);
  }
  70% {
    transform: scale(1.2);
    box-shadow: 0 0 0 .45rem rgba(var(--tb-nudge), 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(var(--tb-nudge), 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tb-nudge-dot { animation: none; }
}
.tb-sidebar hr {
  border-color: rgba(148,163,184,.2);
  margin: .75rem 1rem;
}
.tb-dash-body .container-fluid,
.tb-dash-body .row {
  max-width: 100%;
}
.tb-dash-body .row > [class*="col-"] {
  min-width: 0;
}
.tb-dash-main {
  padding: 1.5rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}
.tb-dash-main .btn-sm {
  padding: .28rem .72rem !important;
  font-size: .78rem;
  line-height: 1.25;
  white-space: nowrap;
}
.tb-dash-main .table-responsive {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable;
}
.tb-dash-main .table-responsive::-webkit-scrollbar {
  height: 10px;
}
.tb-dash-main .table-responsive::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
.tb-dash-main .table-responsive .table {
  margin-bottom: 0;
  min-width: 860px;
}
.tb-dash-main .table-responsive .table td.text-nowrap,
.tb-dash-main .table-responsive .table th.text-nowrap,
.tb-dash-main .table-responsive .table td:last-child {
  white-space: nowrap;
}
.tb-dash-main .table-responsive .table td:last-child .d-inline,
.tb-dash-main .table-responsive .table td:last-child form.d-inline {
  display: inline-block !important;
  margin: .12rem .12rem .12rem 0;
  vertical-align: middle;
}
.tb-dash-main .table-responsive .table thead th:last-child,
.tb-dash-main .table-responsive .table tbody td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  background: #fff;
  box-shadow: inset 1px 0 0 var(--tb-line), -10px 0 16px rgba(15, 23, 42, .07);
}
.tb-dash-main .table-striped > tbody > tr:nth-of-type(odd) > td:last-child {
  background: #f8fafc;
}
.tb-dash-main .table-striped > tbody > tr:hover > td:last-child {
  background: #f1f5f9;
}
.tb-stat-card {
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  padding: 1.25rem;
  text-align: center;
  height: 100%;
  box-shadow: 0 4px 12px rgba(15,23,42,.04);
}
.tb-stat-card h3 {
  font-family: var(--tb-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 .25rem;
  color: var(--tb-brand-dark);
}
.tb-stat-card small { color: var(--tb-muted); font-weight: 600; }
.tb-panel-card {
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(15,23,42,.04);
}
.table {
  --bs-table-bg: transparent;
}
.table > :not(caption) > * > * {
  padding: .85rem .75rem;
  vertical-align: middle;
}

/* ---------- Mobile / tablet (hamburger below xl) ---------- */
@media (max-width: 1199.98px) {
  .tb-navbar .navbar-collapse {
    overflow: visible;
  }
  .tb-navbar .tb-nav-main,
  .tb-navbar .tb-nav-end {
    flex-wrap: wrap;
    align-items: self-start;
  }
  .tb-navbar .nav-item.dropdown {
    width: 100%;
  }
  .tb-navbar .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    width: 100%;
  }
  .tb-navbar .dropdown-menu {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    float: none;
    width: 100%;
    margin-top: .4rem !important;
    border: 1px solid var(--tb-line);
    border-radius: 14px;
    box-shadow: none;
  }
  .tb-user-chip {
    max-width: 100%;
  }
  .tb-navbar .btn { width: 100%; margin-top: .5rem; }
}

@media (max-width: 991.98px) {
  .tb-feature-grid { grid-template-columns: 1fr; }
  .tb-hero h1 { max-width: none; }
  .tb-hero-card { display: none; }
  .tb-sidebar {
    min-height: auto;
    position: relative;
  }
  .tb-sidebar .brand { padding: 1rem; }
  .tb-dash-main { padding: 1rem; }
}

@media (max-width: 575.98px) {
  .tb-auth-card { padding: 1.5rem 1.15rem; border-radius: 18px; }
  .tb-course-thumb { height: 120px; }
  .tb-cta-inner { border-radius: 20px; }
  .tb-navbar .btn { width: 100%; margin-top: .5rem; }
  .tb-user-chip { max-width: 100%; justify-content: flex-start; }
}

/* Utility */
.tb-main { min-height: 60vh; }
.text-muted-tb { color: #475569 !important; }
.badge-soft-success {
  background: #d1fae5;
  color: #047857;
  font-weight: 700;
  border-radius: 999px;
  padding: .35rem .7rem;
}
.tb-course-thumb.has-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.tb-course-thumb.has-img::after {
  background: linear-gradient(180deg, rgba(15,23,42,.15), rgba(15,23,42,.45));
}

.tb-faculty-card {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  background: var(--tb-surface);
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius-sm);
  padding: 0.9rem 1rem;
  box-shadow: var(--tb-shadow);
}
button.tb-faculty-open {
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
button.tb-faculty-open:hover,
button.tb-faculty-open:focus-visible {
  border-color: var(--tb-brand);
  box-shadow: 0 8px 24px rgba(13, 148, 136, .12);
  outline: none;
}
.tb-faculty-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.tb-faculty-fallback {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--tb-brand-soft);
  color: var(--tb-brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.badge-soft-warning {
  background: #fef3c7;
  color: #b45309;
  font-weight: 700;
  border-radius: 999px;
  padding: .35rem .7rem;
}
.tb-video-wrap {
  position: relative;
}
.tb-video-wrap iframe.tb-video-frame,
.tb-video-wrap video.tb-video-frame,
.ratio > .tb-video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
/* Block YouTube title / logo / copy-link hit targets (learn page backup + nested player) */
.tb-video-wrap .tb-yt-shield {
  position: absolute;
  z-index: 5;
  background: transparent;
  pointer-events: auto;
  cursor: default;
}
.tb-video-wrap .tb-yt-shield-top {
  left: 0; right: 0; top: 0; height: 96px;
}
.tb-video-wrap .tb-yt-shield-bl {
  left: 0; bottom: 0; width: 64px; height: 64px;
}
.tb-video-wrap .tb-yt-shield-br {
  right: 0; bottom: 0; width: 180px; height: 60px;
}
.tb-video-wrap .tb-yt-shield-br2 {
  right: 0; bottom: 0; width: 220px; height: 52px;
}

/* Learn page — mobile lessons drawer */
.tb-learn-menu-btn {
      position: absolute;
    top: 187px;
    right: 28px;
    z-index: 12;
    width: 34px;
    height: 30px;
    border: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .78);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.tb-learn-menu-btn:hover,
.tb-learn-menu-btn:focus-visible {
  background: rgba(15, 23, 42, .92);
  color: #fff;
}
.tb-learn-drawer {
  position: fixed;
  inset: 0;
  z-index: 1065;
  pointer-events: none;
  visibility: hidden;
}
.tb-learn-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}
.tb-learn-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  opacity: 0;
  transition: opacity .25s ease;
}
.tb-learn-drawer.is-open .tb-learn-drawer__backdrop {
  opacity: 1;
}
.tb-learn-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 340px);
  background: var(--tb-bg, #f8fafc);
  box-shadow: -10px 0 40px rgba(15, 23, 42, .18);
  transform: translateX(100%);
  transition: transform .28s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.tb-learn-drawer.is-open .tb-learn-drawer__panel {
  transform: translateX(0);
}
.tb-learn-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1rem .75rem;
  background: #fff;
  border-bottom: 1px solid var(--tb-line, #e2e8f0);
  position: sticky;
  top: 0;
  z-index: 2;
}
body.tb-learn-drawer-open {
  overflow: hidden;
}
.tb-dash-main .nav-pills .nav-link {
  border-radius: 999px;
  color: var(--tb-ink-soft);
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--tb-line);
}
.tb-dash-main .nav-pills .nav-link.active {
  background: var(--tb-brand);
  border-color: var(--tb-brand);
  color: #fff;
}
.tb-filter-form .input-group-text {
  border-right: 0;
}
.tb-filter-form .input-group .form-control {
  border-left: 0;
}

/* Images sized by use: logo, thumbnail, cover, faculty, QR */
.tb-img-logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  border: 1px solid var(--tb-line);
  background: #fff;
}
.tb-img-logo-preview {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--tb-line);
  background: #fff;
  display: block;
  margin-top: .5rem;
}
.tb-img-thumb {
  width: 160px;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--tb-line);
  background: #f1f5f9;
  display: block;
  margin-top: .5rem;
}
.tb-img-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 260px;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  background: #f1f5f9;
}
.tb-img-cover-sm {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 180px;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  background: #f1f5f9;
}
.tb-img-cover-preview {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  border: 1px solid var(--tb-line);
  display: block;
  margin-top: .5rem;
}
.tb-img-faculty {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
}
.tb-img-faculty-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
}
.tb-img-faculty-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
}
.tb-img-qr {
  width: min(100%, 220px);
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: 16px;
  padding: .5rem;
  display: block;
  margin: .5rem auto 0;
}
.tb-img-preview {
  max-width: 160px;
  max-height: 120px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  border: 1px solid var(--tb-line);
  display: block;
  margin-top: .5rem;
}
.tb-filter-card {
  position: relative;
  z-index: 1;
}
.tb-dash-main .tb-filter-card {
  position: relative;
  top: auto;
}
.tb-stat-card-warn h3 {
  color: #b45309;
}
.tb-avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--tb-brand-soft);
  color: var(--tb-brand-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
  flex-shrink: 0;
}
.tb-row-pending {
  background: #fffbeb;
}
.tb-students-table thead th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--tb-muted);
  background: #f8fafc;
  border-bottom: 1px solid var(--tb-line);
  white-space: nowrap;
}
.tb-404 {
  padding: 3.5rem 0 5rem;
}
.tb-404-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  box-shadow: var(--tb-shadow);
  padding: 1.75rem 1.5rem 2.5rem;
}
.tb-404-art {
  display: block;
  width: min(100%, 520px);
  height: auto;
  margin: 0 auto 1.1rem;
  border-radius: 22px;
}
.tb-404 h1 {
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  margin-bottom: .75rem;
}
.tb-404-copy {
  color: var(--tb-muted);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}
.tb-404-debug {
  font-size: .85rem;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--tb-radius-sm);
  padding: .75rem 1rem;
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  text-align: left;
}
.tb-404-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

/* Live presence (admin users) */
.tb-live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tb-success);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, .55);
  animation: tb-live-pulse 1.7s ease-out infinite;
  vertical-align: middle;
  flex-shrink: 0;
}
.tb-live-dot.is-off {
  background: #cbd5e1;
  box-shadow: none;
  animation: none;
}
@keyframes tb-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.tb-live-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.tb-live-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  padding: .35rem .8rem;
  color: var(--tb-ink);
  font-size: .85rem;
}
.tb-live-chip:hover { background: var(--tb-brand-soft); color: var(--tb-ink); }
.tb-live-cell .tb-live-page { min-height: 1em; }

/* Coaching help guide */
.tb-help-hero {
  background: linear-gradient(160deg, #0f766e 0%, #0d9488 55%, #14b8a6 100%);
  color: #fff;
  padding: 2.75rem 0 2.25rem;
}
.tb-help-hero .tb-eyebrow { color: #ccfbf1; }
.tb-help-hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: .35rem 0 .65rem;
}
.tb-help-hero .lead { color: rgba(255,255,255,.88); max-width: 40rem; }
.tb-help-intro {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: var(--tb-radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
}
.tb-help-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 1rem;
}
.tb-help-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--tb-radius-sm);
  padding: 1.15rem 1.2rem;
}
.tb-help-step h2 {
  font-size: 1.15rem;
  margin: 0;
}
.tb-help-step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .55rem .85rem;
  margin-bottom: .45rem;
}
.tb-help-step h3 {
  font-size: 1rem;
  margin-bottom: .35rem;
}
.tb-help-step p { color: var(--tb-muted); }
.tb-help-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--tb-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.tb-help-sub {
  margin: .4rem 0 .75rem 1.1rem;
  color: var(--tb-muted);
  padding-left: .25rem;
}
.tb-help-sub li { margin-bottom: .3rem; }
.tb-help-split {
  display: grid;
  gap: 1rem;
  margin: .75rem 0 .35rem;
}
@media (min-width: 768px) {
  .tb-help-split { grid-template-columns: 1fr 1fr; }
}
.tb-help-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--tb-brand-soft);
  border-radius: var(--tb-radius-sm);
  padding: 1.15rem 1.25rem;
}
.tb-dash-main .tb-help-intro,
.tb-dash-main .tb-help-step {
  background: #fff;
}

.tb-help-video-modal .modal-content {
  border-radius: 18px;
  overflow: hidden;
}
.tb-help-video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b1324;
  border-radius: 12px;
  overflow: hidden;
}
.tb-help-video-stage iframe,
.tb-help-video-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.tb-faculty-drawer {
  width: min(420px, 100%);
}
.tb-faculty-drawer .offcanvas-body {
  padding-top: .25rem;
}
.tb-faculty-drawer-photo {
  width: 112px;
  height: 112px;
  margin-inline: auto;
  border-radius: 50%;
  overflow: hidden;
  background: var(--tb-brand-soft);
  color: var(--tb-brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
}
.tb-faculty-drawer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tb-faculty-drawer-meta {
  margin: 0;
}
.tb-faculty-drawer-meta > div {
  display: grid;
  gap: .15rem;
  padding: .7rem 0;
  border-top: 1px solid var(--tb-line);
}
.tb-faculty-drawer-meta dt {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--tb-muted);
  font-weight: 700;
}
.tb-faculty-drawer-meta dd {
  margin: 0;
  font-weight: 600;
}
.tb-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.tb-social-btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tb-brand-soft);
  color: var(--tb-brand-dark);
  text-decoration: none;
  font-size: 1.15rem;
}
.tb-social-btn:hover {
  background: var(--tb-brand);
  color: #fff;
}
.tb-map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #e2e8f0;
}
.tb-map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tb-chat {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  max-height: calc(100vh - 14rem);
}
.tb-chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.15rem;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  min-height: 280px;
}
.tb-chat-empty {
  margin: auto;
  color: var(--tb-muted);
  text-align: center;
  max-width: 22rem;
}
.tb-chat-msg { max-width: 78%; }
.tb-chat-msg.is-mine { align-self: flex-end; }
.tb-chat-msg.is-them { align-self: flex-start; }
.tb-chat-bubble {
  padding: .65rem .85rem;
  border-radius: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
}
.tb-chat-msg.is-mine .tb-chat-bubble {
  background: var(--tb-brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.tb-chat-msg.is-them .tb-chat-bubble {
  background: #fff;
  border: 1px solid var(--tb-line);
  border-bottom-left-radius: 4px;
}
.tb-chat-meta {
  font-size: .72rem;
  color: var(--tb-muted);
  margin-top: .2rem;
}
.tb-chat-msg.is-mine .tb-chat-meta { text-align: right; }
.tb-chat-form {
  display: flex;
  gap: .6rem;
  align-items: flex-end;
  padding: .85rem 1.15rem 1rem;
  border-top: 1px solid var(--tb-line);
  background: #fff;
}
.tb-chat-form textarea {
  resize: none;
  min-height: 44px;
}
.tb-chat-form .btn { flex-shrink: 0; }

.tb-course-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.tb-blog-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--tb-ink);
}
.tb-blog-body h2, .tb-blog-body h3 {
  margin-top: 1.6rem;
  margin-bottom: .75rem;
}
.tb-blog-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.tb-blog-body a { font-weight: 600; }
.tb-seo-panel { position: sticky; top: 1rem; }
.tb-seo-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .75rem;
}
.tb-seo-score {
  font-weight: 800;
  font-size: .85rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: #e2e8f0;
}
.tb-seo-score.is-good { background: #d1fae5; color: #047857; }
.tb-seo-score.is-ok { background: #fef3c7; color: #b45309; }
.tb-seo-score.is-bad { background: #fee2e2; color: #b91c1c; }
.tb-seo-tabs .nav-link { font-size: .8rem; padding: .35rem .7rem; }
.tb-gprev {
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: 12px;
  padding: .85rem 1rem;
  max-width: 100%;
}
.tb-gprev[data-mode="desktop"] { max-width: 100%; }
.tb-gprev[data-mode="mobile"] { max-width: 360px; }
.tb-gprev-url { color: #202124; font-size: .78rem; }
.tb-gprev-title { color: #1a0dab; font-size: 1.05rem; line-height: 1.3; margin: .2rem 0; }
.tb-gprev-meta { color: #4d5156; font-size: .82rem; }
.tb-seo-item {
  font-size: .82rem;
  padding: .45rem .6rem;
  border-radius: 8px;
  margin-bottom: .4rem;
}
.tb-seo-item--problem { background: #fef2f2; color: #991b1b; }
.tb-seo-item--good { background: #ecfdf5; color: #065f46; }
.tb-seo-copy p { max-width: 46rem; }
.tb-chat-form .btn { flex-shrink: 0; }

/* ---------- Coaching center public profile ---------- */
.tb-center-profile { position: relative; }
.tb-center-hero {
  position: relative;
  color: #fff;
  padding: 2.4rem 0 3.2rem;
  background:
    radial-gradient(ellipse at 12% 20%, rgba(20,184,166,.35), transparent 42%),
    radial-gradient(ellipse at 88% 80%, rgba(249,115,22,.22), transparent 38%),
    linear-gradient(145deg, #07111f 0%, #123c3a 58%, #0b1324 100%);
  overflow: hidden;
}
.tb-center-hero-media {
  position: absolute;
  inset: 0;
}
.tb-center-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  animation: tbCenterKenburns 22s ease-in-out infinite alternate;
}
.tb-center-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,17,31,.28) 0%, rgba(7,17,31,.72) 100%),
    linear-gradient(90deg, rgba(7,17,31,.45) 0%, rgba(7,17,31,.12) 55%, rgba(7,17,31,.5) 100%);
}
.tb-center-hero.has-cover .tb-center-hero-shade {
  background:
    linear-gradient(180deg, rgba(7,17,31,.35) 0%, rgba(7,17,31,.78) 100%),
    linear-gradient(90deg, rgba(7,17,31,.55) 0%, rgba(7,17,31,.2) 60%);
}
.tb-center-hero-inner { position: relative; z-index: 1; }
.tb-center-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  font-size: .82rem;
  margin-bottom: 1.15rem;
  color: rgba(236,254,255,.7);
}
.tb-center-crumbs a { color: #99f6e4; }
.tb-center-hero-row {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
}
.tb-center-hero-logo {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  object-fit: cover;
  background: #fff;
  border: 3px solid rgba(255,255,255,.9);
  box-shadow: 0 16px 36px rgba(0,0,0,.28);
  flex-shrink: 0;
  animation: tbCenterPop .7s ease both;
}
.tb-center-hero-logo.is-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tb-display);
  font-weight: 800;
  font-size: 2rem;
  background: linear-gradient(135deg, #0f766e, #0ea5e9);
  color: #fff;
}
.tb-center-hero-copy { min-width: 0; }
.tb-center-kicker {
  margin: 0 0 .35rem;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #99f6e4;
  font-weight: 700;
}
.tb-center-hero h1 {
  color: #fff;
  margin: 0 0 .45rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
}
.tb-center-place {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 0 0 .75rem;
  padding: .22rem .7rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #ecfeff;
  font-size: .88rem;
}
.tb-center-lead {
  max-width: 38rem;
  margin: 0 0 1.1rem;
  color: rgba(236,254,255,.82);
}
.tb-center-lead a { color: #99f6e4; text-decoration: underline; }
.tb-center-cta { display: flex; flex-wrap: wrap; gap: .6rem; }
.tb-center-jump {
  position: sticky;
  top: var(--tb-nav-h);
  z-index: 30;
  background: rgba(244,247,251,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tb-line);
}
.tb-center-jump-track {
  display: flex;
  gap: .35rem;
  overflow-x: auto;
  padding: .55rem 0;
  scrollbar-width: none;
}
.tb-center-jump-track::-webkit-scrollbar { display: none; }
.tb-center-jump a {
  flex: 0 0 auto;
  padding: .38rem .9rem;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--tb-ink-soft);
}
.tb-center-jump a:hover,
.tb-center-jump a.is-active {
  background: var(--tb-brand-soft);
  color: var(--tb-brand-dark);
}
.tb-center-body { padding-top: 1.75rem; }
.tb-center-block {
  scroll-margin-top: calc(var(--tb-nav-h) + 12px);
  margin-bottom: 2.1rem;
}
.tb-center-profile.has-jump .tb-center-block {
  scroll-margin-top: calc(var(--tb-nav-h) + 3.4rem);
}
.tb-center-block h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: .2rem 0 .75rem;
}
.tb-center-block-lead {
  color: var(--tb-muted);
  margin: -.4rem 0 1rem;
}
.tb-center-about {
  white-space: pre-line;
  color: var(--tb-ink-soft);
  max-width: 46rem;
}
.tb-center-aside {
  position: sticky;
  top: calc(var(--tb-nav-h) + 1rem);
}
.tb-center-profile.has-jump .tb-center-aside {
  top: calc(var(--tb-nav-h) + 3.6rem);
}
.tb-center-aside-card {
  background: var(--tb-surface);
  border: 1px solid var(--tb-line);
  border-radius: 22px;
  padding: 1.15rem 1.15rem 1.25rem;
  box-shadow: var(--tb-shadow);
}
.tb-center-aside-head {
  display: flex;
  gap: .75rem;
  align-items: center;
  margin-bottom: .9rem;
}
.tb-center-aside-head img,
.tb-center-aside-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}
.tb-center-aside-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f766e, #0ea5e9);
  color: #fff;
  font-weight: 800;
}
.tb-center-aside-head strong {
  display: block;
  line-height: 1.25;
}
.tb-center-facts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tb-center-facts li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  padding: .55rem 0;
  border-top: 1px solid var(--tb-line);
  font-size: .92rem;
}
.tb-center-facts i {
  color: var(--tb-brand-dark);
  margin-top: .15rem;
}
.tb-center-aside-social { margin: .85rem 0 .35rem; }
.tb-center-map {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 168px;
  border-radius: 14px;
  overflow: hidden;
  background: #e2e8f0;
  margin-top: .75rem;
}
.tb-center-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.tb-center-map-link {
  display: inline-block;
  margin-top: .45rem;
  font-size: .82rem;
  font-weight: 700;
}
.tb-center-filters .form-label { font-weight: 700; }
.tb-center-reveal {
  animation: tbCenterReveal .55s ease both;
}
.tb-center-mobibar {
  position: sticky;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: #0b1324;
  box-shadow: 0 -10px 30px rgba(15,23,42,.18);
}
.tb-center-mobibar a {
  color: #fff;
  text-align: center;
  padding: .8rem .4rem;
  font-size: .82rem;
  font-weight: 700;
}
.tb-center-mobibar a:hover { color: #99f6e4; }
@keyframes tbCenterKenburns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(0, -2%, 0); }
}
@keyframes tbCenterPop {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes tbCenterReveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 991.98px) {
  .tb-center-hero-row { align-items: flex-start; }
  .tb-center-aside { position: static; }
  .tb-center-profile.has-mobibar .tb-center-body { padding-bottom: 4.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tb-center-hero-media img,
  .tb-center-hero-logo,
  .tb-center-reveal {
    animation: none;
  }
}

/* ---------- Homepage featured catalog ---------- */
.tb-home-courses .tb-live-filters.is-loading {
  opacity: .72;
  pointer-events: none;
}
.tb-live-filters .tb-live-clear { display: none; }
.tb-live-filters.is-filtered .tb-live-clear { display: block; }
.tb-home-course-item {
  animation: tbCenterReveal .45s ease both;
}
.tb-home-load {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}
.tb-home-load .btn {
  min-width: 10.5rem;
}
@media (prefers-reduced-motion: reduce) {
  .tb-home-course-item { animation: none; }
}

/* ---------- Theme / plugin store ---------- */
.tb-store-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.tb-store-card-link:hover { color: inherit; }
.tb-store-type {
  position: relative;
  z-index: 1;
  display: inline-block;
  background: rgba(255,255,255,.92);
  color: var(--tb-brand-dark);
  font-size: .72rem;
  font-weight: 600;
  border-radius: 999px;
  padding: .2rem .6rem;
}
.tb-store-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.tb-store-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
@media (min-width: 768px) {
  .tb-store-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.tb-store-gallery a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--tb-line);
}
.tb-store-gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.tb-store-buy .tb-price {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

/* ---------- Exam explore (shared categories) ---------- */
.tb-exam-explore-grid {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 1.25rem 1.75rem;
  align-items: start;
  background: var(--tb-surface);
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  padding: 1.1rem 1.15rem 1.25rem;
  box-shadow: var(--tb-shadow);
}
.tb-exam-groups {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  border-right: 1px solid var(--tb-line);
  padding-right: 1rem;
}
.tb-exam-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--tb-ink);
  font: inherit;
  font-weight: 650;
  text-align: left;
  padding: .7rem .85rem;
  border-radius: 12px;
  cursor: pointer;
}
.tb-exam-group i {
  color: var(--tb-muted);
  transition: transform .2s ease;
}
.tb-exam-group.is-open,
.tb-exam-group:hover {
  background: var(--tb-brand-soft);
  color: var(--tb-brand-dark);
}
.tb-exam-group.is-open i { transform: rotate(180deg); }
.tb-exam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: .85rem;
}
.tb-exam-chip {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 56px;
  padding: .55rem .7rem;
  border: 1px solid var(--tb-line);
  border-radius: 14px;
  background: #fff;
  color: var(--tb-ink);
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.tb-exam-chip:hover,
.tb-exam-chip.is-active {
  border-color: var(--tb-brand);
  box-shadow: 0 8px 20px rgba(13, 148, 136, .12);
  color: var(--tb-ink);
  transform: translateY(-1px);
}
.tb-exam-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--tb-brand), var(--tb-brand-dark));
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.tb-exam-label {
  font-size: .86rem;
  font-weight: 650;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tb-exam-explore.is-footer {
  margin-top: 2rem;
}
.tb-exam-explore.is-footer .tb-exam-explore-grid {
  background: transparent;
  border: 1px solid rgba(148,163,184,.22);
  box-shadow: none;
  padding: 1rem;
}
.tb-exam-explore.is-footer .tb-exam-groups {
  border-right-color: rgba(148,163,184,.22);
}
.tb-exam-explore.is-footer .tb-exam-group {
  color: #e2e8f0;
}
.tb-exam-explore.is-footer .tb-exam-group.is-open,
.tb-exam-explore.is-footer .tb-exam-group:hover {
  background: rgba(13, 148, 136, .22);
  color: #fff;
}
.tb-exam-explore.is-footer .tb-exam-chip {
  background: rgba(255,255,255,.04);
  border-color: rgba(148,163,184,.22);
  color: #e2e8f0;
}
.tb-exam-explore.is-footer .tb-exam-chip:hover,
.tb-exam-explore.is-footer .tb-exam-chip.is-active {
  border-color: var(--tb-brand);
  color: #fff;
}
@media (max-width: 767.98px) {
  .tb-exam-explore .tb-section-head {
    margin-bottom: 1rem !important;
    gap: .75rem;
  }
  .tb-exam-explore .tb-section-head p {
    display: none;
  }
  .tb-exam-explore .tb-section-head .btn {
    font-size: .82rem;
    padding: .45rem .85rem;
  }
  .tb-exam-explore-grid {
    grid-template-columns: 1fr;
    gap: .85rem;
    padding: .85rem .75rem 1rem;
  }
  .tb-exam-groups {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: .55rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-right: 0;
    padding-right: 0;
    padding-bottom: .15rem;
    margin: 0 -.15rem;
    padding-left: .15rem;
    padding-right: .15rem;
  }
  .tb-exam-groups::-webkit-scrollbar { display: none; }
  .tb-exam-group {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
    border: 1px solid var(--tb-line);
    border-radius: 999px;
    padding: .55rem .95rem;
    font-size: .82rem;
    font-weight: 650;
    box-shadow: none;
  }
  .tb-exam-group i { display: none; }
  .tb-exam-group.is-open,
  .tb-exam-group:hover {
    background: #1e293b;
    border-color: #1e293b;
    color: #fff;
  }
  .tb-exam-mobile-change {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    padding: .55rem .7rem;
    border: 1px solid var(--tb-line);
    border-radius: 12px;
    background: #f8fafc;
  }
  .tb-exam-mobile-context {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
    font-size: .82rem;
    font-weight: 650;
    color: var(--tb-ink);
  }
  .tb-exam-mobile-context i {
    flex-shrink: 0;
    color: var(--tb-muted);
    transform: scaleX(-1);
  }
  .tb-exam-mobile-context span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tb-exam-mobile-picker {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin: 0;
    flex-shrink: 0;
  }
  .tb-exam-mobile-picker-label {
    font-size: .78rem;
    font-weight: 650;
    color: var(--tb-muted);
    white-space: nowrap;
  }
  .tb-exam-mobile-picker select {
    width: auto;
    min-width: 7.5rem;
    max-width: 9.5rem;
    border-color: var(--tb-line);
    font-size: .78rem;
    font-weight: 650;
    padding-top: .28rem;
    padding-bottom: .28rem;
    background-color: #fff;
  }
  .tb-exam-panels {
    display: none;
  }
  .tb-exam-explore.is-footer .tb-exam-groups {
    border-bottom: 0;
  }
  .tb-exam-explore.is-footer .tb-exam-group {
    border-color: rgba(148,163,184,.35);
    color: #e2e8f0;
  }
  .tb-exam-explore.is-footer .tb-exam-group.is-open,
  .tb-exam-explore.is-footer .tb-exam-group:hover {
    background: #fff;
    border-color: #fff;
    color: #0f172a;
  }
  .tb-exam-explore.is-footer .tb-exam-mobile-change {
    background: rgba(255,255,255,.06);
    border-color: rgba(148,163,184,.22);
  }
  .tb-exam-explore.is-footer .tb-exam-mobile-context {
    color: #e2e8f0;
  }
  .tb-exam-explore.is-footer .tb-exam-mobile-picker select {
    background-color: rgba(15,23,42,.55);
    border-color: rgba(148,163,184,.35);
    color: #e2e8f0;
  }
}
@media (min-width: 768px) {
  .tb-exam-mobile-change { display: none !important; }
}

.tb-ad-slot {
  margin: .85rem 0;
  padding: .75rem 1rem 1rem;
  background: #f8fafc;
  border: 1px dashed rgba(13, 148, 136, .28);
  border-radius: 12px;
  text-align: center;
}
.tb-ad-slot-sidebar {
  margin-top: 1rem;
}
.tb-ad-label {
  display: block;
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: .5rem;
}
.tb-ad-manual {
  display: block;
}
.tb-ad-manual + .tb-ad-manual,
.tb-ad-ins + .tb-ad-manual,
.tb-ad-manual + .tb-ad-ins {
  margin-top: .75rem;
}
.tb-ad-manual img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.tb-ad-ins {
  min-height: 90px;
}
