/* input(2694,1): run-time error CSS1019: Unexpected token, found '}' */
/* =============================================================================
   TraidB-style home landing — theme tokens on body.tb-home-body (light + dark)
   ============================================================================= */

body.tb-home-body:not(.dark-mode) {
    --tb-bg: #f0f6ff;
    --tb-bg-mid: #e2eef8;
    --tb-landing-end: #d4e4f5;
    --tb-accent: #0088cc;
    --tb-accent-soft: rgba(0, 100, 180, 0.35);
    --tb-text: #0f172a;
    --tb-muted: rgba(30, 58, 95, 0.82);
    --tb-glass: rgba(255, 255, 255, 0.88);
    --tb-border: rgba(0, 100, 160, 0.2);
    --tb-glow: 0 0 20px rgba(0, 120, 200, 0.15);
    --tb-headline-strong: #0a2540;
    --tb-headline-shadow: 0 0 28px rgba(0, 120, 200, 0.12);
    --tb-header-bg: rgba(255, 255, 255, 0.82);
    --tb-header-border: rgba(0, 100, 160, 0.12);
    --tb-nav-hover: #0f172a;
    --tb-nav-hover-bg: rgba(0, 130, 200, 0.08);
    --tb-icon-hover: #0369a1;
    --tb-search-inner-bg: rgba(255, 255, 255, 0.95);
    --tb-search-placeholder: rgba(30, 58, 95, 0.45);
    --tb-float-bg: rgba(255, 255, 255, 0.92);
    --tb-float-strong: #0f172a;
    --tb-feature-bg: rgba(255, 255, 255, 0.9);
    --tb-feature-shadow: 0 8px 28px rgba(15, 40, 80, 0.08);
    --tb-feature-h3: #0f172a;
    --tb-footer-bg-start: #e8f1fa;
    --tb-footer-bg-end: #dceaf5;
    --tb-footer-muted: rgba(30, 58, 95, 0.75);
    --tb-footer-link: #0369a1;
    --tb-wordmark-1: #0f172a;
    --tb-wordmark-2: #0369a1;
    --tb-wordmark-3: #00aaff;
    --tb-grad-hero-a: rgba(0, 120, 200, 0.16);
    --tb-grad-hero-b: rgba(80, 150, 210, 0.1);
    --tb-signin-hover: #0a2540;
}

body.tb-home-body.dark-mode,
html.dark-mode body.tb-home-body {
    --tb-bg: #050a15;
    --tb-bg-mid: #0a1428;
    --tb-landing-end: #03060d;
    --tb-accent: #00aaff;
    --tb-accent-soft: rgba(0, 170, 255, 0.35);
    --tb-text: #e8f4ff;
    --tb-muted: rgba(180, 210, 240, 0.72);
    --tb-glass: rgba(12, 22, 42, 0.55);
    --tb-border: rgba(0, 170, 255, 0.18);
    --tb-glow: 0 0 28px rgba(0, 170, 255, 0.22);
    --tb-headline-strong: #fff;
    --tb-headline-shadow: 0 0 40px rgba(0, 170, 255, 0.25);
    --tb-header-bg: rgba(5, 10, 21, 0.75);
    --tb-header-border: rgba(0, 170, 255, 0.12);
    --tb-nav-hover: #fff;
    --tb-nav-hover-bg: rgba(0, 170, 255, 0.08);
    --tb-icon-hover: #fff;
    --tb-search-inner-bg: rgba(8, 16, 32, 0.65);
    --tb-search-placeholder: rgba(150, 190, 230, 0.45);
    --tb-float-bg: rgba(8, 18, 36, 0.72);
    --tb-float-strong: #fff;
    --tb-feature-bg: rgba(10, 22, 42, 0.55);
    --tb-feature-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 170, 255, 0.06);
    --tb-feature-h3: #fff;
    --tb-footer-bg-start: #060d1c;
    --tb-footer-bg-end: #050a15;
    --tb-footer-muted: rgba(160, 200, 235, 0.65);
    --tb-footer-link: rgba(180, 215, 245, 0.85);
    --tb-wordmark-1: #fff;
    --tb-wordmark-2: #7dd3fc;
    --tb-wordmark-3: #00aaff;
    --tb-grad-hero-a: rgba(0, 80, 140, 0.35);
    --tb-grad-hero-b: rgba(0, 100, 180, 0.12);
    --tb-signin-hover: #fff;
}

/* Landing header on non-home pages: same tokens, without replacing full-page body background */
body.tb-with-landing-header:not(.dark-mode) {
    --tb-bg: #f0f6ff;
    --tb-bg-mid: #e2eef8;
    --tb-landing-end: #d4e4f5;
    --tb-accent: #0088cc;
    --tb-accent-soft: rgba(0, 100, 180, 0.35);
    --tb-text: #0f172a;
    --tb-muted: rgba(30, 58, 95, 0.82);
    --tb-glass: rgba(255, 255, 255, 0.88);
    --tb-border: rgba(0, 100, 160, 0.2);
    --tb-glow: 0 0 20px rgba(0, 120, 200, 0.15);
    --tb-headline-strong: #0a2540;
    --tb-headline-shadow: 0 0 28px rgba(0, 120, 200, 0.12);
    --tb-header-bg: rgba(255, 255, 255, 0.82);
    --tb-header-border: rgba(0, 100, 160, 0.12);
    --tb-nav-hover: #0f172a;
    --tb-nav-hover-bg: rgba(0, 130, 200, 0.08);
    --tb-icon-hover: #0369a1;
    --tb-search-inner-bg: rgba(255, 255, 255, 0.95);
    --tb-search-placeholder: rgba(30, 58, 95, 0.45);
    --tb-float-bg: rgba(255, 255, 255, 0.92);
    --tb-float-strong: #0f172a;
    --tb-feature-bg: rgba(255, 255, 255, 0.9);
    --tb-feature-shadow: 0 8px 28px rgba(15, 40, 80, 0.08);
    --tb-feature-h3: #0f172a;
    --tb-footer-bg-start: #e8f1fa;
    --tb-footer-bg-end: #dceaf5;
    --tb-footer-muted: rgba(30, 58, 95, 0.75);
    --tb-footer-link: #0369a1;
    --tb-wordmark-1: #0f172a;
    --tb-wordmark-2: #0369a1;
    --tb-wordmark-3: #00aaff;
    --tb-grad-hero-a: rgba(0, 120, 200, 0.16);
    --tb-grad-hero-b: rgba(80, 150, 210, 0.1);
    --tb-signin-hover: #0a2540;
}

body.tb-with-landing-header.dark-mode,
html.dark-mode body.tb-with-landing-header {
    --tb-bg: #050a15;
    --tb-bg-mid: #0a1428;
    --tb-landing-end: #03060d;
    --tb-accent: #00aaff;
    --tb-accent-soft: rgba(0, 170, 255, 0.35);
    --tb-text: #e8f4ff;
    --tb-muted: rgba(180, 210, 240, 0.72);
    --tb-glass: rgba(12, 22, 42, 0.55);
    --tb-border: rgba(0, 170, 255, 0.18);
    --tb-glow: 0 0 28px rgba(0, 170, 255, 0.22);
    --tb-headline-strong: #fff;
    --tb-headline-shadow: 0 0 40px rgba(0, 170, 255, 0.25);
    --tb-header-bg: rgba(5, 10, 21, 0.75);
    --tb-header-border: rgba(0, 170, 255, 0.12);
    --tb-nav-hover: #fff;
    --tb-nav-hover-bg: rgba(0, 170, 255, 0.08);
    --tb-icon-hover: #fff;
    --tb-search-inner-bg: rgba(8, 16, 32, 0.65);
    --tb-search-placeholder: rgba(150, 190, 230, 0.45);
    --tb-float-bg: rgba(8, 18, 36, 0.72);
    --tb-float-strong: #fff;
    --tb-feature-bg: rgba(10, 22, 42, 0.55);
    --tb-feature-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 170, 255, 0.06);
    --tb-feature-h3: #fff;
    --tb-footer-bg-start: #060d1c;
    --tb-footer-bg-end: #050a15;
    --tb-footer-muted: rgba(160, 200, 235, 0.65);
    --tb-footer-link: rgba(180, 215, 245, 0.85);
    --tb-wordmark-1: #fff;
    --tb-wordmark-2: #7dd3fc;
    --tb-wordmark-3: #00aaff;
    --tb-grad-hero-a: rgba(0, 80, 140, 0.35);
    --tb-grad-hero-b: rgba(0, 100, 180, 0.12);
    --tb-signin-hover: #fff;
}

body.tb-with-landing-header {
    padding-top: 0 !important;
}

.tb-landing.tb-landing--header-only {
    background: transparent;
    min-height: 0;
    color: var(--tb-text);
    overflow: visible;
}

body.tb-home-body {
    background: var(--tb-bg) !important;
    color: var(--tb-text) !important;
    padding-top: 0 !important;
}

/* Beat layout critical CSS: html.dark-mode body { background #1a1a1a } */
html.dark-mode body.tb-home-body,
html:not(.dark-mode) body.tb-home-body {
    background: var(--tb-bg) !important;
    color: var(--tb-text) !important;
}

body.tb-home-body.dark-mode {
    padding-top: 0 !important;
}

body.tb-home-body.header-sticky {
    padding-top: 0 !important;
}

html:not(.dark-mode):has(body.tb-home-body) {
    background-color: #f0f6ff;
}

html.dark-mode:has(body.tb-home-body),
html:has(body.tb-home-body.dark-mode) {
    background-color: #050a15;
}

main.tb-home-main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

body.tb-home-body .site-footer-traidb {
    background: linear-gradient(180deg, var(--tb-footer-bg-start) 0%, var(--tb-footer-bg-end) 100%);
    border-top: 1px solid var(--tb-border);
    color: var(--tb-footer-muted);
    margin-top: 0;
}

body.tb-home-body .site-footer-traidb__pitch,
body.tb-home-body .site-footer-traidb__legal {
    color: var(--tb-footer-muted);
}

body.tb-home-body .site-footer-traidb__name {
    background: linear-gradient(135deg, var(--tb-wordmark-1) 0%, var(--tb-wordmark-2) 55%, var(--tb-wordmark-3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.tb-home-body .site-footer-traidb__tagline {
    color: var(--tb-muted);
    opacity: 0.85;
}

body.tb-home-body .site-footer-traidb__links a {
    color: var(--tb-footer-link);
}

body.tb-home-body .site-footer-traidb__links a:hover {
    color: var(--tb-accent);
}

body.tb-home-body .site-footer-traidb::before {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.06) 0%, transparent 55%);
}

body.tb-home-body:not(.dark-mode) .site-footer-traidb::before {
    background: linear-gradient(135deg, rgba(0, 120, 200, 0.08) 0%, transparent 55%);
}

.tb-landing {
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    background:
        radial-gradient(ellipse 70% 55% at 88% 12%, rgba(0, 140, 255, 0.42) 0%, transparent 52%),
        radial-gradient(ellipse 55% 45% at 12% 88%, rgba(79, 70, 229, 0.22) 0%, transparent 48%),
        radial-gradient(ellipse 40% 35% at 55% 45%, rgba(0, 170, 255, 0.1) 0%, transparent 58%),
        linear-gradient(168deg, #030810 0%, var(--tb-bg-mid) 38%, var(--tb-bg) 62%, var(--tb-landing-end) 100%);
    color: var(--tb-text);
    min-height: calc(100dvh - 11rem);
    overflow-x: hidden;
    position: relative;
    /* .tb-landing > * below gives the header its own stacking context (z-index: 1) so it
       can rise above the decorative ::before starfield. Without an explicit z-index here on
       the wrapper itself, that context is scoped/trapped inside .tb-landing -- any fixed-
       position descendant (e.g. the notification panel) can never outrank later-in-DOM page
       content like <main>, no matter how high its own z-index is. This lifts the whole
       header (and everything inside it) above all normal page content site-wide. */
    z-index: 60;
}

body.tb-home-body:not(.dark-mode) .tb-landing {
    background:
        radial-gradient(ellipse 90% 60% at 85% 5%, rgba(0, 120, 220, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 5% 95%, rgba(79, 70, 229, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(0, 170, 255, 0.08) 0%, transparent 60%),
        linear-gradient(165deg, var(--tb-bg-mid) 0%, var(--tb-bg) 40%, var(--tb-landing-end) 100%);
}

.tb-landing::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 12% 22%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1px 1px at 78% 15%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(1.5px 1.5px at 45% 68%, rgba(0, 200, 255, 0.5), transparent),
        radial-gradient(1px 1px at 88% 72%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 25% 85%, rgba(255, 255, 255, 0.4), transparent);
    opacity: 0.65;
    z-index: 0;
}

body.tb-home-body:not(.dark-mode) .tb-landing::before {
    opacity: 0.25;
}

.tb-landing>* {
    position: relative;
    z-index: 1;
}

/* Non-home pages with landing header only */
body.tb-with-landing-header.tb-traidb-shell .tb-landing--header-only {
    background: transparent;
}

/* ----- Top bar ----- */
.tb-landing__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    border-bottom: 1px solid var(--tb-header-border);
    background: var(--tb-header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
    min-width: 0;
    /* Smart scroll: smooth slide transition */
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.2s ease;
    will-change: transform;
}

/* Smart scroll — managed by header-scroll.js (same class names as .site-header) */
.tb-landing__header.header-hidden {
    transform: translateY(-110%);
    box-shadow: none;
}

.tb-landing__header.header-visible {
    transform: translateY(0);
}

/* Elevated shadow when scrolled away from top */
.tb-landing__header.header-sticky {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.tb-landing__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(400px, 42vw);
}

.tb-landing__logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 0 10px rgba(0, 170, 255, 0.45));
}

/* Brand logo — final-logo.png (all themes) */
.tb-landing__logo--brand {
    display: block;
    width: auto;
    height: 80px;
    max-width: min(380px, 100%);
    min-width: 140px;
    object-fit: contain;
    object-position: left center;
    mix-blend-mode: normal;
    background: transparent;
    border: none;
    padding: 0;
    filter:
        drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28)) drop-shadow(0 0 16px rgba(0, 170, 255, 0.22));
}

@media (max-width: 959px) {
    .tb-landing__logo--brand {
        height: 64px;
        max-width: min(300px, 100%);
        min-width: 120px;
    }

    .tb-landing__brand {
        max-width: min(320px, 48vw);
    }
}

@media (max-width: 576px) {
    .tb-landing__logo--brand {
        height: 54px;
        max-width: min(260px, 100%);
        min-width: 100px;
    }

    .tb-landing__brand {
        max-width: min(280px, 58vw);
    }
}

.tb-landing__nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}

@media (min-width: 960px) {
    .tb-landing__nav {
        display: flex;
    }
}

.tb-landing__nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s ease-in-out;
}

.tb-landing__nav a:hover {
    color: #ffffff;
    background: var(--tb-nav-hover-bg);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.12);
    transform: scale(1.08);
}

body.tb-home-body:not(.dark-mode) .tb-landing__nav a:hover,
body.tb-with-landing-header:not(.dark-mode) .tb-landing__nav a:hover {
    box-shadow: 0 0 16px rgba(0, 100, 160, 0.12);
}

.tb-landing__nav-chev {
    font-size: 0.55rem;
    margin-left: 0.2rem;
    opacity: 0.7;
}

.tb-landing__header-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ----- Header search (inline inside the header bar) ----- */
@keyframes tb-header-search-in {
    from {
        opacity: 0;
        transform: translateX(10px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.tb-landing__header--search-active {
    border-bottom-color: var(--tb-accent-soft);
    box-shadow:
        0 4px 24px rgba(0, 80, 140, 0.12),
        0 0 0 1px rgba(14, 165, 233, 0.08);
}

body.tb-home-body.dark-mode .tb-landing__header--search-active,
html.dark-mode body.tb-home-body .tb-landing__header--search-active,
body.tb-with-landing-header.dark-mode .tb-landing__header--search-active,
html.dark-mode body.tb-with-landing-header .tb-landing__header--search-active {
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(0, 170, 255, 0.14),
        0 0 40px rgba(0, 170, 255, 0.08);
}

.tb-landing__header-search-slot {
    display: flex;
    align-items: center;
    position: static;
    flex: 0 0 auto;
}

.tb-landing__header--search-active .tb-landing__header-search-slot {
    flex: 0 0 auto;
    position: static;
}

.tb-landing__header-search-trigger {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--tb-border);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--tb-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    font: inherit;
    padding: 0;
    flex-shrink: 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 4px 16px rgba(0, 80, 140, 0.1);
    transition: box-shadow 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, background 0.2s;
}

body.tb-home-body.dark-mode .tb-landing__header-search-trigger,
html.dark-mode body.tb-home-body .tb-landing__header-search-trigger,
body.tb-with-landing-header.dark-mode .tb-landing__header-search-trigger,
html.dark-mode body.tb-with-landing-header .tb-landing__header-search-trigger {
    background:
        linear-gradient(145deg, rgba(22, 34, 56, 0.82), rgba(10, 16, 30, 0.55));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 6px 20px rgba(0, 0, 0, 0.28);
}

.tb-landing__header-search-trigger:hover,
.tb-landing__header-search-trigger.is-active,
.tb-landing__header--search-active .tb-landing__header-search-trigger {
    border-color: rgba(56, 189, 248, 0.85);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.2) !important;
    transform: translateY(-1px);
    display: inline-flex !important;
}

.tb-landing__header-search-expanded {
    display: none;
}

/* Elegant dropdown search strip directly BELOW the sticky header */
.tb-landing__header--search-active .tb-landing__header-search-expanded {
    display: flex !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: rgba(8, 14, 28, 0.97) !important;
    backdrop-filter: blur(28px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(28px) saturate(1.8) !important;
    border-top: 1px solid rgba(56, 189, 248, 0.22) !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.38) !important;
    padding: 14px clamp(12px, 4vw, 36px) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.88), 0 0 30px rgba(14, 165, 233, 0.2) !important;
    z-index: 10030 !important;
    justify-content: center !important;
    animation: tb-header-search-down 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes tb-header-search-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tb-landing__header-search-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    width: 100%;
}

.tb-landing__search-wrap {
    position: relative;
    width: 100%;
    z-index: 20;
}

.tb-landing__hero-panel {
    z-index: 20;
}

.tb-landing__search-dropdown--hero {
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1300;
}

.tb-landing__header-search-expanded form {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
}

.tb-landing__search-dropdown {
    top: calc(100% + 6px);
    z-index: 1200;
}

.tb-landing__search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.tb-home-body.dark-mode .tb-landing__search-dropdown,
html.dark-mode body.tb-home-body .tb-landing__search-dropdown,
body.tb-with-landing-header.dark-mode .tb-landing__search-dropdown,
html.dark-mode body.tb-with-landing-header .tb-landing__search-dropdown {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.15);
}

body.tb-home-body.dark-mode .tb-landing__search-dropdown .search-item,
html.dark-mode body.tb-home-body .tb-landing__search-dropdown .search-item,
body.tb-with-landing-header.dark-mode .tb-landing__search-dropdown .search-item,
html.dark-mode body.tb-with-landing-header .tb-landing__search-dropdown .search-item {
    color: #e2e8f0;
}

.tb-landing__search-dropdown .search-item i {
    color: var(--tb-accent, #0088cc);
}

.tb-landing__search-dropdown .search-item-icon-badge i {
    color: #ffffff !important;
}

.tb-landing__search-dropdown .search-item-match {
    color: var(--tb-accent, #0088cc);
    font-weight: 700;
}

.tb-landing__search-dropdown .search-item:hover,
.tb-landing__search-dropdown .search-item.is-selected {
    background: rgba(0, 136, 204, 0.12);
}

.tb-landing__header-inline-bar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0.28rem 0.32rem 0.28rem 0.55rem;
    border-radius: 14px;
    border: 1px solid var(--tb-border);
    box-sizing: border-box;
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.52));
    backdrop-filter: blur(16px) saturate(1.25);
    -webkit-backdrop-filter: blur(16px) saturate(1.25);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 10px 32px rgba(0, 80, 140, 0.12);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.tb-home-body.dark-mode .tb-landing__header-inline-bar,
html.dark-mode body.tb-home-body .tb-landing__header-inline-bar,
body.tb-with-landing-header.dark-mode .tb-landing__header-inline-bar,
html.dark-mode body.tb-with-landing-header .tb-landing__header-inline-bar {
    background:
        linear-gradient(155deg, rgba(18, 28, 48, 0.92), rgba(8, 14, 28, 0.62));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 36px rgba(0, 0, 0, 0.38);
}

.tb-landing__header-inline-bar:focus-within {
    border-color: rgba(14, 165, 233, 0.55);
    box-shadow:
        0 0 0 3px rgba(14, 165, 233, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 12px 36px rgba(0, 80, 140, 0.16);
}

body.tb-home-body.dark-mode .tb-landing__header-inline-bar:focus-within,
html.dark-mode body.tb-home-body .tb-landing__header-inline-bar:focus-within,
body.tb-with-landing-header.dark-mode .tb-landing__header-inline-bar:focus-within,
html.dark-mode body.tb-with-landing-header .tb-landing__header-inline-bar:focus-within {
    box-shadow:
        0 0 0 3px rgba(0, 170, 255, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 14px 40px rgba(0, 0, 0, 0.42);
}

.tb-landing__header-inline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    flex-shrink: 0;
    color: var(--tb-muted);
    font-size: 0.88rem;
    opacity: 0.85;
}

.tb-landing__header-inline-bar:focus-within .tb-landing__header-inline-icon {
    color: var(--tb-accent);
    opacity: 1;
}

.tb-landing__header-inline-input,
.tb-landing__header-inline-bar input[type="search"] {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--tb-text);
    padding: 0.5rem 0.35rem;
    font-size: 0.94rem;
    font-weight: 600;
    outline: none;
}

.tb-landing__header-inline-input::placeholder,
.tb-landing__header-inline-bar input::placeholder {
    color: var(--tb-search-placeholder);
    font-weight: 500;
}

.tb-landing__header-inline-input--invalid {
    animation: tb-header-search-shake 0.45s ease;
}

@keyframes tb-header-search-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

.tb-landing__header-inline-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.tb-landing__header-inline-submit {
    border: none;
    border-radius: 10px;
    min-height: 36px;
    padding: 0 0.85rem;
    gap: 0.35rem;
    background: linear-gradient(135deg, #5ce1ff, #0ea5e9 55%, #0284c7);
    color: #031018;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
    transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.tb-landing__header-inline-submit i {
    font-size: 0.72rem;
}

.tb-landing__header-inline-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(14, 165, 233, 0.45);
    filter: brightness(1.04);
}

.tb-landing__header-search-close {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 1px solid var(--tb-border);
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--tb-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.12s;
}

body.tb-home-body.dark-mode .tb-landing__header-search-close,
html.dark-mode body.tb-home-body .tb-landing__header-search-close,
body.tb-with-landing-header.dark-mode .tb-landing__header-search-close,
html.dark-mode body.tb-with-landing-header .tb-landing__header-search-close {
    background: rgba(255, 255, 255, 0.06);
}

.tb-landing__header-search-close:hover {
    background: rgba(0, 170, 255, 0.14);
    border-color: rgba(14, 165, 233, 0.4);
    color: var(--tb-accent);
    transform: scale(1.04);
}

@media (max-width: 639.98px) {
    .tb-landing__header--search-active .tb-landing__header-search-slot {
        flex: 0 0 auto;
        position: static;
    }

    .tb-landing__header-submit-label {
        display: none;
    }

    .tb-landing__header-inline-submit {
        min-width: 40px;
        padding: 0 0.65rem;
    }
}

@media (max-width: 400px) {

    /* Category label ("ISIC Code", "HS Code"…) eats into the input's width on narrow
       phones — keep just the colored dot + chevron so typing room stays usable. */
    #tb-landing-scope-label {
        display: none;
    }

    .tb-landing__scope-trigger {
        padding: 7px 10px;
        gap: 5px;
    }

    .tb-landing__scope-dropdown {
        margin-right: 4px;
        padding-right: 4px;
    }
}

@media (min-width: 640px) {
    .tb-landing__header-inline-submit i {
        display: none;
    }
}

@media (min-width: 960px) {
    .tb-landing__nav {
        transition: opacity 0.22s ease, max-width 0.28s cubic-bezier(0.4, 0, 0.2, 1), margin 0.28s ease, padding 0.28s ease;
    }
}

.tb-landing__icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--tb-border);
    background: var(--tb-glass);
    color: var(--tb-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: box-shadow 0.2s, border-color 0.2s;
}

button.tb-landing__icon-btn {
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.tb-landing__icon-btn:hover {
    border-color: var(--tb-accent-soft);
    box-shadow: var(--tb-glow);
    color: var(--tb-icon-hover);
}

.tb-landing__cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    color: #031018;
    background: linear-gradient(135deg, #5ce1ff 0%, var(--tb-accent) 45%, #0088cc 100%);
    box-shadow: 0 0 24px rgba(0, 170, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.15s, box-shadow 0.2s;
}

.tb-landing__cta-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 32px rgba(0, 170, 255, 0.55);
    color: #031018;
}

.tb-landing__signin {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tb-muted);
    text-decoration: none;
    padding: 0.35rem 0.5rem;
    white-space: nowrap;
}

.tb-landing__signin:hover {
    color: var(--tb-signin-hover);
}

.tb-landing__user {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: min(160px, 28vw);
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--tb-border);
    background: var(--tb-accent-soft);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--tb-text);
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.tb-landing__user:hover {
    border-color: rgba(14, 165, 233, 0.45);
    color: var(--tb-accent);
}

.tb-landing__user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tb-landing__logout-form {
    margin: 0;
    display: inline-flex;
}

.tb-landing__signout-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    padding: 0.35rem 0.5rem;
}

.tb-landing__signout-btn:hover {
    color: #ef4444;
}

.tb-landing__cta-pill i {
    font-size: 0.75rem;
}

/* ----- Hero ----- */
.tb-landing__hero {
    position: relative;
    z-index: 50;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    padding: clamp(1.5rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem) 3rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .tb-landing__hero {
        grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.88fr);
        gap: 2rem 3.5rem;
        padding-top: 2rem;
        min-height: min(72vh, 720px);
    }
}

.tb-landing__rule {
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--tb-accent), transparent);
    margin-bottom: 1.25rem;
    box-shadow: 0 0 12px var(--tb-accent-soft);
}

.tb-landing__headline {
    font-size: clamp(1.85rem, 4.2vw, 3.15rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 1.25rem;
}

.tb-landing__headline {
    display: block;
}

.tb-landing__headline-line {
    display: block;
    color: var(--tb-headline-strong);
    text-shadow: var(--tb-headline-shadow);
}

.tb-landing__headline-accent {
    display: block;
    margin-top: 0.15em;
    background: linear-gradient(105deg, #b8e7ff 0%, #5ce1ff 35%, #00aaff 70%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 24px rgba(0, 170, 255, 0.35));
}

/* legacy aliases */
.tb-landing__headline-strong {
    color: var(--tb-headline-strong);
    text-shadow: var(--tb-headline-shadow);
}

.tb-landing__headline-rest {
    background: linear-gradient(105deg, #b8e7ff 0%, #5ac8fa 40%, var(--tb-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tb-landing__deck {
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    line-height: 1.65;
    color: var(--tb-muted);
    max-width: 48rem;
    margin: 0 0 1.5rem;
}

/* Screen-reader only (home page may not load Bootstrap utilities) */
.tb-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Search Scope Dropdown Styles */
.tb-landing__scope-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    margin-right: 6px;
    padding-right: 8px;
    flex-shrink: 0;
}

.tb-landing__scope-trigger {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.16) 0%, rgba(14, 165, 233, 0.08) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 99px;
    color: #38bdf8;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 5px 13px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.18);
}

.tb-landing__scope-trigger:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.28) 0%, rgba(14, 165, 233, 0.16) 100%);
    border-color: rgba(56, 189, 248, 0.55);
    color: #7dd3fc;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
}

.tb-landing__scope-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
}

.tb-landing__scope-icon {
    font-size: 0.78rem;
    color: #38bdf8;
}

.tb-landing__scope-chev {
    font-size: 0.65rem;
    opacity: 0.8;
}

.tb-landing__scope-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 9999;
    min-width: 190px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 30px rgba(14, 165, 233, 0.15);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tb-landing__scope-menu[hidden] {
    display: none !important;
}

.tb-landing__scope-item {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 9px 13px;
    display: flex;
    align-items: center;
    gap: 11px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tb-landing__scope-item i {
    width: 18px;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.tb-landing__scope-item:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(56, 189, 248, 0.35);
    color: #f8fafc;
    transform: translateX(2px);
}

.tb-landing__scope-item.is-active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, rgba(14, 165, 233, 0.12) 100%);
    border-color: rgba(56, 189, 248, 0.45);
    color: #38bdf8;
}

.tb-landing__scope-item:hover i,
.tb-landing__scope-item.is-active i {
    color: #38bdf8;
}

/* Hero search — wider up to 70% with autocomplete */
.tb-landing__hero-search {
    position: relative;
    max-width: min(70vw, 980px);
    width: 100%;
    z-index: 100;
}

.tb-landing__hero-search .tb-landing__search {
    width: 100%;
    max-width: none;
    margin: 0;
}

.tb-landing__hero-search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 54px;
    padding: 0.4rem 0.45rem 0.4rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--tb-border);
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.68));
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    box-shadow:
        0 10px 36px rgba(0, 80, 140, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.tb-home-body.dark-mode .tb-landing__hero-search-bar,
html.dark-mode body.tb-home-body .tb-landing__hero-search-bar {
    background:
        linear-gradient(155deg, rgba(16, 26, 46, 0.9), rgba(8, 14, 28, 0.7));
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tb-landing__hero-search-bar:focus-within {
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow:
        0 0 0 3px rgba(14, 165, 233, 0.14),
        0 10px 32px rgba(0, 120, 200, 0.1);
}

body.tb-home-body.dark-mode .tb-landing__hero-search-bar:focus-within,
html.dark-mode body.tb-home-body .tb-landing__hero-search-bar:focus-within {
    box-shadow:
        0 0 0 3px rgba(0, 170, 255, 0.18),
        0 12px 36px rgba(0, 0, 0, 0.28);
}

.tb-landing__hero-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    flex-shrink: 0;
    color: var(--tb-muted);
    font-size: 0.9rem;
}

.tb-landing__hero-search-bar:focus-within .tb-landing__hero-search-icon {
    color: var(--tb-accent);
}

.tb-landing__hero-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--tb-text);
    padding: 0.55rem 0.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.tb-landing__hero-search-input--invalid {
    animation: tb-hero-search-shake 0.45s ease;
}

@keyframes tb-hero-search-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

.tb-landing__hero-search-input::placeholder {
    color: var(--tb-search-placeholder);
    font-weight: 400;
}

.tb-landing__hero-search-input::-webkit-search-decoration,
.tb-landing__hero-search-input::-webkit-search-cancel-button,
.tb-landing__hero-search-input::-webkit-search-results-button,
.tb-landing__hero-search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.tb-landing__hero-search-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 44px;
    padding: 0 1.05rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #5ce1ff, #0ea5e9 55%, #0284c7);
    color: #031018;
    font-weight: 700;
    font-size: 0.84rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.32);
    transition: transform 0.12s ease, box-shadow 0.15s ease;
}

.tb-landing__hero-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.42);
}

.tb-landing__hero-search-btn i {
    font-size: 0.72rem;
}

.tb-landing__hero-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin: 0.75rem 0 0;
    padding: 0 0.15rem;
    font-size: 0.82rem;
    color: var(--tb-muted);
}

.tb-landing__hero-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.15s ease;
}

.tb-landing__hero-links a:hover {
    color: var(--tb-accent);
}

.tb-landing__hero-links-sep {
    opacity: 0.45;
    user-select: none;
}

@media (max-width: 520px) {
    .tb-landing__hero-search-bar {
        flex-wrap: wrap;
        padding: 0.5rem 0.55rem 0.55rem 0.8rem;
    }

    .tb-landing__hero-search-btn {
        width: 100%;
    }
}

@media (min-width: 521px) {
    .tb-landing__hero-search-btn i {
        display: none;
    }
}

/* Legacy hero panel / shortcuts (unused on home) */
.tb-landing__hero-panel {
    position: relative;
    max-width: 36rem;
}

.tb-landing__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.tb-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.35rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}

.tb-btn--primary {
    color: #021018;
    background: linear-gradient(135deg, #6ee7ff, var(--tb-accent) 50%, #0090dd);
    box-shadow: 0 8px 28px rgba(0, 170, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.2);
}

.tb-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 170, 255, 0.45);
    color: #021018;
}

.tb-btn--ghost {
    color: var(--tb-text);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--tb-border);
}

body.tb-home-body:not(.dark-mode) .tb-btn--ghost {
    background: rgba(255, 255, 255, 0.72);
}

.tb-btn--ghost:hover {
    border-color: var(--tb-accent-soft);
    box-shadow: var(--tb-glow);
}

/* Hero search — glass bar, no browser default search chrome on the left */
.tb-landing__search {
    max-width: 28rem;
    margin-top: 0.25rem;
}

.tb-landing__search-bar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.4rem 0.35rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 170, 255, 0.28);
    background: rgba(6, 14, 30, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.tb-home-body:not(.dark-mode) .tb-landing__search-bar {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(0, 120, 200, 0.22);
    box-shadow:
        0 4px 20px rgba(15, 40, 80, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.tb-landing__search-bar:focus-within {
    border-color: rgba(0, 170, 255, 0.55);
    box-shadow:
        0 0 0 3px rgba(0, 170, 255, 0.15),
        0 8px 28px rgba(0, 120, 200, 0.12);
}

.tb-landing__search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--tb-text);
    padding: 0.55rem 0.25rem 0.55rem 0;
    font-size: 0.92rem;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.tb-landing__search-input::placeholder {
    color: var(--tb-search-placeholder);
}

.tb-landing__search input[type="search"]::-webkit-search-decoration,
.tb-landing__search input[type="search"]::-webkit-search-cancel-button,
.tb-landing__search input[type="search"]::-webkit-search-results-button,
.tb-landing__search input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.tb-landing__search-submit {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    padding: 0;
    background: linear-gradient(135deg, #0088cc 0%, #00aaff 55%, #6366f1 100%);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(0, 136, 204, 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.tb-landing__search-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 170, 255, 0.45);
    color: #fff;
}

.tb-landing__search-submit:active {
    transform: translateY(0);
}

/* ----- Globe visual (reference-style image + network) ----- */
.tb-landing__hero-copy {
    position: relative;
    z-index: 20;
}

.tb-landing__visual {
    position: relative;
    z-index: 10;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
}

@media (min-width: 1024px) {
    .tb-landing__visual {
        min-height: 580px;
        justify-content: flex-end;
        padding-right: 0.5rem;
    }
}

.tb-globe-scene {
    position: relative;
    width: min(100%, 560px);
    aspect-ratio: 1;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tb-globe-scene .tb-globe__glow,
.tb-globe-scene .tb-globe__orbit {
    position: absolute;
    pointer-events: none;
}

.tb-globe__img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 0%, #000 62%, transparent 82%);
    mask-image: radial-gradient(circle at 50% 48%, #000 0%, #000 62%, transparent 82%);
}

.tb-globe__img-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle at 50% 55%, transparent 42%, rgba(5, 10, 21, 0.55) 78%, rgba(5, 10, 21, 0.95) 100%);
    z-index: 2;
}

.tb-globe__glow {
    position: absolute;
    inset: -8%;
    border-radius: 50%;
    background: radial-gradient(circle at 45% 40%, rgba(0, 220, 255, 0.45) 0%, rgba(0, 120, 220, 0.15) 38%, transparent 72%);
    filter: blur(32px);
    animation: tb-globe-glow 5s ease-in-out infinite;
    z-index: 0;
}

.tb-globe__orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 170, 255, 0.12);
    pointer-events: none;
    z-index: 1;
}

.tb-globe__orbit--1 {
    inset: -6%;
    animation: tb-orbit-spin 48s linear infinite;
}

.tb-globe__orbit--2 {
    inset: -14%;
    border-style: dashed;
    opacity: 0.5;
    animation: tb-orbit-spin 72s linear infinite reverse;
}

.tb-globe {
    position: relative;
    width: 92%;
    aspect-ratio: 1;
    margin: 0 auto;
    z-index: 2;
    border-radius: 50%;
    overflow: hidden;
    filter: drop-shadow(0 0 48px rgba(0, 170, 255, 0.5)) drop-shadow(0 0 120px rgba(0, 100, 200, 0.35));
}

.tb-globe__inner {
    position: absolute;
    inset: 0;
    width: 100%;
    aspect-ratio: 1;
}

.tb-globe__canvas {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 50%;
    touch-action: none;
    cursor: grab;
}

.tb-globe__canvas:active {
    cursor: grabbing;
}

/* Fallback rotating cyber globe when WebGL is unavailable */
.tb-globe-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tb-globe-fallback__sphere {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(0, 170, 255, 0.32) 0%, rgba(10, 25, 55, 0.95) 70%, #030814 100%);
    box-shadow: inset 0 0 45px rgba(0, 170, 255, 0.45), 0 0 35px rgba(0, 140, 255, 0.35);
}

.tb-globe-fallback__halo {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 24px rgba(0, 170, 255, 0.45);
    pointer-events: none;
}

.tb-globe-fallback__grid {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 18px, rgba(56, 189, 248, 0.14) 18px, rgba(56, 189, 248, 0.14) 19px),
        repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(56, 189, 248, 0.14) 18px, rgba(56, 189, 248, 0.14) 19px);
    opacity: 0.8;
    animation: tb-fallback-rot 24s linear infinite;
}

.tb-globe-fallback__ring {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    border: 1px dashed rgba(0, 200, 255, 0.35);
    pointer-events: none;
}

.tb-globe-fallback__ring--1 {
    animation: tb-orbit-spin 16s linear infinite;
}

.tb-globe-fallback__ring--2 {
    inset: 22%;
    border-style: dotted;
    border-color: rgba(56, 189, 248, 0.45);
    animation: tb-orbit-spin 22s linear infinite reverse;
}

@keyframes tb-fallback-rot {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tb-globe__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
    animation: tb-globe-float 7s ease-in-out infinite;
    /* Fade black JPEG background into page */
    mix-blend-mode: screen;
    filter: saturate(1.12) brightness(1.08) contrast(1.05);
}

body.tb-home-body:not(.dark-mode) .tb-globe__img {
    mix-blend-mode: normal;
    filter: saturate(1.05) drop-shadow(0 0 28px rgba(0, 120, 200, 0.25));
}

body.tb-home-body:not(.dark-mode) .tb-globe__img-wrap::after {
    background: radial-gradient(circle at 50% 55%, transparent 50%, rgba(240, 246, 255, 0.7) 85%);
}

.tb-globe__network {
    position: absolute;
    inset: 4%;
    width: 92%;
    height: 92%;
    pointer-events: none;
    z-index: 3;
}

.tb-globe__links {
    animation: tb-network-pulse 4s ease-in-out infinite;
}

.tb-globe__nodes circle {
    animation: tb-node-blink 3s ease-in-out infinite;
}

.tb-globe__nodes circle:nth-child(odd) {
    animation-delay: -1.2s;
}

@keyframes tb-globe-glow {

    0%,
    100% {
        opacity: 0.85;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.04);
    }
}

@keyframes tb-globe-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes tb-orbit-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes tb-network-pulse {

    0%,
    100% {
        opacity: 0.65;
    }

    50% {
        opacity: 1;
    }
}

@keyframes tb-node-blink {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {

    .tb-globe__img,
    .tb-globe__glow,
    .tb-globe__orbit,
    .tb-globe__links,
    .tb-globe__nodes circle,
    .tb-float-card,
    .tb-globe__canvas {
        animation: none !important;
    }

    .tb-globe__canvas {
        cursor: default;
    }
}

.tb-float-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    width: clamp(130px, 30vw, 168px);
    padding: 0.6rem 0.7rem;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    border-radius: 14px;
    background: rgba(8, 18, 36, 0.72);
    border: 1px solid rgba(0, 170, 255, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), 0 0 24px rgba(0, 170, 255, 0.1);
    font-size: 0.68rem;
    color: var(--tb-muted);
    line-height: 1.35;
    z-index: 4;
    animation: tb-card-float 6s ease-in-out infinite;
}

body.tb-home-body:not(.dark-mode) .tb-float-card {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 24px rgba(15, 40, 80, 0.12), 0 0 20px rgba(0, 120, 200, 0.08);
}

.tb-float-card::before {
    content: "";
    position: absolute;
    width: 56px;
    height: 1px;
    background: linear-gradient(90deg, var(--tb-accent), transparent);
    opacity: 0.5;
    pointer-events: none;
}

.tb-float-card__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.35), rgba(0, 120, 200, 0.55));
    border: 1px solid rgba(0, 200, 255, 0.4);
    box-shadow: 0 0 16px rgba(0, 170, 255, 0.35);
}

.tb-float-card strong {
    display: block;
    color: var(--tb-float-strong);
    font-size: 0.74rem;
    margin-bottom: 0.15rem;
}

@keyframes tb-card-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.tb-float-card--1 {
    top: 4%;
    right: 0;
    animation-delay: 0s;
}

.tb-float-card--1::before {
    bottom: 50%;
    left: -48px;
    transform: rotate(-35deg);
    transform-origin: right center;
}

.tb-float-card--2 {
    bottom: 22%;
    right: -4%;
    animation-delay: 0.8s;
}

.tb-float-card--2::before {
    top: 40%;
    left: -40px;
    transform: rotate(15deg);
}

.tb-float-card--3 {
    top: 24%;
    left: -4%;
    animation-delay: 1.6s;
}

.tb-float-card--3::before {
    bottom: 30%;
    right: -44px;
    transform: rotate(25deg);
    transform-origin: left center;
}

.tb-float-card--4 {
    bottom: 6%;
    left: 2%;
    animation-delay: 2.4s;
}

@media (max-width: 1023px) {
    .tb-float-card {
        display: none;
    }

    .tb-float-card--1,
    .tb-float-card--2 {
        display: block;
    }
}

/* ----- Feature strip ----- */
.tb-landing__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 0 clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
    max-width: 1200px;
    margin: 0 auto;
}

.tb-hero-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.2rem;
    border-radius: 20px;
    background: var(--tb-feature-bg);
    border: 1px solid var(--tb-feature-border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
    cursor: pointer;
    z-index: 1;
}

.tb-hero-card:hover,
.tb-hero-card:focus {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    color: inherit;
    /* Prevent default a:hover color */
}

body.tb-home-body:not(.dark-mode) .tb-hero-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.tb-hero-card:hover .tb-hero-card__content h3 {
    color: var(--tb-text);
}

.tb-hero-card:hover .tb-hero-card__content p {
    color: var(--tb-text-muted);
}

.tb-hero-card__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.tb-hero-card:hover .tb-hero-card__bg {
    opacity: 0.15;
}

.tb-hero-card--usedin .tb-hero-card__bg {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
}

.tb-hero-card--usedin:hover {
    border-color: rgba(14, 165, 233, 0.5);
}

.tb-hero-card--madeof .tb-hero-card__bg {
    background: linear-gradient(135deg, #f5576c, #f093fb);
}

.tb-hero-card--madeof:hover {
    border-color: rgba(245, 87, 108, 0.5);
}

.tb-hero-card__icon {
    width: 3.8rem;
    height: 3.8rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.tb-hero-card--usedin .tb-hero-card__icon {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(99, 102, 241, 0.1));
    color: #0ea5e9;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.tb-hero-card--usedin:hover .tb-hero-card__icon {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #fff;
}

.tb-hero-card--madeof .tb-hero-card__icon {
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.1), rgba(240, 147, 251, 0.1));
    color: #f5576c;
    border: 1px solid rgba(245, 87, 108, 0.2);
}

.tb-hero-card--madeof:hover .tb-hero-card__icon {
    background: linear-gradient(135deg, #f5576c, #f093fb);
    color: #fff;
}

.tb-hero-card__icon .tb-ic {
    width: 1.8rem;
    height: 1.8rem;
    color: currentColor;
}

.tb-hero-card__content h3 {
    font-size: 1.4rem;
    margin: 0 0 0.85rem 0;
    font-weight: 700;
    color: var(--tb-text);
}

.tb-hero-card__content p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    color: var(--tb-text-muted);
    flex-grow: 1;
}

.tb-hero-card__action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    margin-top: auto;
    transition: gap 0.2s;
}

.tb-hero-card--usedin .tb-hero-card__action {
    color: #0ea5e9;
}

.tb-hero-card--madeof .tb-hero-card__action {
    color: #f5576c;
}

.tb-hero-card:hover .tb-hero-card__action {
    gap: 0.75rem;
}

.tb-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.15rem 1.25rem;
    border-radius: 16px;
    background: var(--tb-feature-bg);
    border: 1px solid var(--tb-border);
    box-shadow: var(--tb-feature-shadow);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.tb-feature:hover {
    transform: translateY(-3px);
    border-color: var(--tb-accent-soft);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 36px rgba(0, 170, 255, 0.12);
}

body.tb-home-body:not(.dark-mode) .tb-feature:hover {
    box-shadow: 0 12px 32px rgba(15, 40, 80, 0.12), 0 0 28px rgba(0, 120, 200, 0.1);
}

.tb-feature__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--tb-accent);
    background: rgba(0, 170, 255, 0.1);
    border: 1px solid rgba(0, 170, 255, 0.25);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.15);
    flex-shrink: 0;
}

.tb-feature h3 {
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--tb-feature-h3);
}

.tb-feature p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--tb-muted);
    line-height: 1.45;
}

/* =====================================================================
   Mobile responsiveness fixes (home landing)
   The decorative globe glow / orbits / float-cards are absolutely
   positioned with negative insets and extend past their container,
   which gave the whole page a horizontal scroll on phones — that is
   why the hero headline looked clipped at the right edge.
   ===================================================================== */
body.tb-home-body {
    overflow-x: hidden;
}

/* NOTE: do NOT clip overflow on the hero/visual — the floating stat cards sit just
   outside their columns and would get sliced (looked like a box around the globe).
   Page-level horizontal scroll is already prevented by body + .tb-landing. */
.tb-landing__hero,
.tb-landing__visual {
    max-width: 100%;
}

.tb-landing__headline,
.tb-landing__deck,
.tb-landing__hero-copy {
    overflow-wrap: break-word;
    min-width: 0;
}

/* Grid children default to min-width:auto, so the wide globe <canvas> forces the
   hero column past the viewport (clipping the headline). Allow them to shrink. */
.tb-landing__hero>* {
    min-width: 0;
}

.tb-globe-scene,
.tb-globe,
.tb-globe__inner,
.tb-globe__canvas,
.tb-globe__img-wrap {
    max-width: 100%;
}

@media (max-width: 639.98px) {
    .tb-landing__hero {
        gap: 1.5rem;
        padding-left: 1.1rem;
        padding-right: 1.1rem;
        padding-bottom: 2rem;
    }

    .tb-landing__headline {
        font-size: clamp(1.55rem, 7.4vw, 2.1rem);
    }

    .tb-landing__deck {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .tb-landing__hero-search,
    .tb-landing__search {
        max-width: 100%;
    }

    /* Smaller, fully-contained globe */
    .tb-landing__visual {
        min-height: 280px;
        padding: 0;
    }

    .tb-globe-scene {
        width: min(82vw, 340px);
        height: min(82vw, 340px);
        min-height: 260px;
    }

    /* The floating stat cards overlap the hero text and add clutter on a
       phone-width screen — hide them; the globe alone reads cleanly. */
    .tb-float-card {
        display: none !important;
    }

    /* Feature cards stack to a single column with comfortable spacing */
    .tb-landing__features {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
}

/* =====================================================================
   Mobile Header & Navigation Overhaul (< 960px)
   World-class Ergonomic App-Bar + Glassmorphic Offcanvas Drawer
   ===================================================================== */
.tb-landing__nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.32);
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #38bdf8;
    font-size: 1.25rem;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 50;
}

.tb-landing__nav-toggle:hover,
.tb-landing__nav-toggle[aria-expanded="true"] {
    background: rgba(56, 189, 248, 0.22);
    border-color: rgba(56, 189, 248, 0.65);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
    transform: scale(1.04);
}

@media (max-width: 959.98px) {

    /* 1. Balanced Mobile Top Bar: Logo Left, Tools & Hamburger Right */
    .tb-landing__header {
        position: sticky !important;
        top: 0 !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
        padding: 0.55rem clamp(0.75rem, 3vw, 1.25rem) !important;
        min-height: 58px !important;
        max-height: 64px !important;
        background: rgba(8, 14, 26, 0.94) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(56, 189, 248, 0.18) !important;
        z-index: 1000 !important;
    }

    /* Logo stays on the left and maintains natural proportions */
    .tb-landing__brand {
        order: 1 !important;
        flex: 0 1 auto !important;
        min-width: 0 !important;
        max-width: clamp(130px, 38vw, 200px) !important;
        margin: 0 !important;
    }

    .tb-landing__logo--brand {
        height: 38px !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
        object-position: left center !important;
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 10px rgba(56, 189, 248, 0.25)) !important;
    }

@keyframes tb-mobile-search-down {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

    /* Action cluster on the right: Search, Tools, Hamburger */
    .tb-landing__header-search-slot {
        order: 2 !important;
        margin-left: auto !important;
        position: static !important;
    }

    /* Mobile Search Bar: Opens directly BELOW the header without damaging top header */
    .tb-landing__header--search-active .tb-landing__header-search-slot {
        flex: 0 0 auto !important;
        order: 2 !important;
        margin-left: auto !important;
        position: static !important;
    }

    .tb-landing__header--search-active .tb-landing__header-search-trigger {
        display: inline-flex !important;
        background: rgba(56, 189, 248, 0.28) !important;
        border-color: rgba(56, 189, 248, 0.8) !important;
        color: #ffffff !important;
        box-shadow: 0 0 16px rgba(56, 189, 248, 0.5) !important;
    }

    .tb-landing__header--search-active .tb-landing__header-search-expanded {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: rgba(8, 14, 26, 0.98) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        border-top: 1px solid rgba(56, 189, 248, 0.2) !important;
        border-bottom: 1px solid rgba(56, 189, 248, 0.35) !important;
        padding: 10px clamp(10px, 3vw, 16px) !important;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(14, 165, 233, 0.18) !important;
        z-index: 10030 !important;
        display: flex !important;
        animation: tb-mobile-search-down 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .tb-landing__header-search-expanded form {
        width: 100% !important;
        margin: 0 !important;
    }

    .tb-landing__header-inline-bar {
        width: 100% !important;
        max-width: 100% !important;
    }

    .tb-landing__header--search-active .tb-landing__search-dropdown {
        top: calc(100% + 8px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: calc(100vh - 140px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        z-index: 10040 !important;
    }

    .tb-landing__header-tools {
        order: 3 !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.45rem !important;
        flex-shrink: 0 !important;
    }

    /* Keep header tools clean across all mobile/tablet viewports (< 960px) */
    .tb-landing__header-tools .tb-landing__cta-pill,
    .tb-landing__header-tools .tb-landing__signin,
    .tb-landing__header-tools .tb-landing__logout-form {
        display: none !important;
    }

    .tb-landing__header-tools .tb-landing__user {
        padding: 5px 10px !important;
        max-width: 120px !important;
    }

    .tb-landing__header-tools .tb-landing__user-name {
        max-width: 75px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .tb-landing__nav-toggle {
        display: inline-flex !important;
        order: 4 !important;
        margin-left: 0.15rem !important;
    }

    /* Compact mode on phones (< 640px) to prevent crowded header and ensure 100% responsiveness */
    @media (max-width: 639.98px) {
        .tb-hub-btn {
            padding: 7px 11px !important;
            gap: 4px !important;
            border-radius: 12px !important;
        }
        .tb-hub-btn__label,
        .tb-hub-btn__arrow {
            display: none !important;
        }
        .tb-hub-btn__cube {
            font-size: 1.1rem !important;
        }

        /* On phones, the logged-in user becomes a sleek 36px circular avatar button */
        .tb-landing__header-tools .tb-landing__user {
            width: 36px !important;
            height: 36px !important;
            min-width: 36px !important;
            max-width: 36px !important;
            padding: 0 !important;
            border-radius: 50% !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
        }

        .tb-landing__header-tools .tb-landing__user i {
            font-size: 1.15rem !important;
            margin: 0 !important;
            color: #38bdf8 !important;
        }

        .tb-landing__header-tools .tb-landing__user-name {
            display: none !important;
        }
    }

    /* 2. Sleek Full-Height Solid Glass Offcanvas Drawer (Crisp, No Blur on Mobile) */
    .tb-landing__nav {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: min(88vw, 360px) !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        background: #091020 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-left: 1px solid rgba(56, 189, 248, 0.28) !important;
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(14, 165, 233, 0.18) !important;
        z-index: 10052 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        padding: 1.25rem 1.15rem 2.5rem !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        transform: translateX(105%) !important;
        transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
        pointer-events: none;
    }

    .tb-landing__header.nav-open {
        z-index: 10050 !important;
    }

    .tb-landing__header.nav-open .tb-landing__nav {
        transform: translateX(0) !important;
        pointer-events: auto !important;
        z-index: 10052 !important;
    }

    /* Drawer Header & Close Button */
    .tb-drawer-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-bottom: 0.9rem !important;
        margin-bottom: 0.9rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .tb-drawer-close {
        width: 38px !important;
        height: 38px !important;
        border-radius: 10px !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        background: rgba(255, 255, 255, 0.05) !important;
        color: #94a3b8 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        font-size: 1.1rem !important;
        transition: all 0.2s ease !important;
    }

    .tb-drawer-close:hover {
        background: rgba(239, 68, 68, 0.2) !important;
        border-color: rgba(239, 68, 68, 0.4) !important;
        color: #ef4444 !important;
        transform: rotate(90deg) !important;
    }

    /* Drawer Auth Section */
    .tb-drawer-auth {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.6rem !important;
        padding: 0.85rem !important;
        border-radius: 14px !important;
        background: rgba(56, 189, 248, 0.06) !important;
        border: 1px solid rgba(56, 189, 248, 0.18) !important;
        margin-bottom: 1rem !important;
    }

    .tb-drawer-auth .tb-landing__cta-pill {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.65rem 1rem !important;
    }

    .tb-drawer-auth .tb-landing__signin {
        text-align: center !important;
        color: #38bdf8 !important;
        font-weight: 700 !important;
    }

    /* Drawer Logged-in User Profile Card Styling */
    .tb-drawer-auth .tb-landing__user {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 10px 14px !important;
        border-radius: 12px !important;
        background: rgba(56, 189, 248, 0.12) !important;
        border: 1px solid rgba(56, 189, 248, 0.35) !important;
        color: #f8fafc !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
    }

    .tb-drawer-auth .tb-landing__user i {
        font-size: 1.35rem !important;
        color: #38bdf8 !important;
        flex-shrink: 0 !important;
    }

    .tb-drawer-auth .tb-landing__user-name {
        font-size: 0.92rem !important;
        font-weight: 700 !important;
        color: #f1f5f9 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        flex: 1 !important;
    }

    .tb-drawer-auth .tb-landing__logout-form {
        width: 100% !important;
        display: block !important;
        margin: 4px 0 0 !important;
    }

    .tb-drawer-auth .tb-landing__signout-btn {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 8px 12px !important;
        border-radius: 10px !important;
        background: rgba(239, 68, 68, 0.12) !important;
        border: 1px solid rgba(239, 68, 68, 0.32) !important;
        color: #f87171 !important;
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }

    .tb-drawer-auth .tb-landing__signout-btn:hover {
        background: rgba(239, 68, 68, 0.24) !important;
        border-color: rgba(239, 68, 68, 0.5) !important;
        color: #fca5a5 !important;
    }

    /* Navigation items styling inside the drawer */
    .tb-landing__nav a,
    .tb-landing__nav button {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 0.78rem 0.95rem !important;
        border-radius: 12px !important;
        font-size: 0.92rem !important;
        font-weight: 600 !important;
        color: #f1f5f9 !important;
        text-decoration: none !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid rgba(255, 255, 255, 0.04) !important;
        margin-bottom: 5px !important;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        position: relative !important;
        z-index: 10053 !important;
    }

    .tb-landing__nav a i,
    .tb-landing__nav button i {
        width: 20px !important;
        text-align: center !important;
        font-size: 0.98rem !important;
        color: #38bdf8 !important;
        opacity: 0.9 !important;
        flex-shrink: 0 !important;
    }

    .tb-landing__nav a:hover,
    .tb-landing__nav a:active,
    .tb-landing__nav button:hover {
        background: rgba(56, 189, 248, 0.14) !important;
        border-color: rgba(56, 189, 248, 0.45) !important;
        color: #ffffff !important;
        transform: translateX(-4px) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    }

    /* Map dropdown inside mobile drawer */
    .tb-landing__nav-dropdown {
        width: 100% !important;
        margin-bottom: 5px !important;
    }

    .tb-landing__nav-dropdown-toggle {
        width: 100% !important;
        justify-content: space-between !important;
        padding: 0.78rem 0.95rem !important;
        border-radius: 12px !important;
        font-size: 0.92rem !important;
        background: rgba(56, 189, 248, 0.08) !important;
        border: 1px solid rgba(56, 189, 248, 0.25) !important;
        color: #38bdf8 !important;
    }

    .tb-landing__nav-dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        min-width: 100% !important;
        margin-top: 5px !important;
        background: rgba(15, 23, 42, 0.6) !important;
        border: 1px solid rgba(56, 189, 248, 0.2) !important;
        border-radius: 12px !important;
        box-shadow: none !important;
    }
}

/* 3. Horizontal Phone (Landscape) Optimization for Earth Globe */
@media (max-height: 500px) and (orientation: landscape) {
    .tb-landing__visual {
        min-height: 220px !important;
        padding: 0 !important;
    }

    .tb-globe-scene {
        width: min(50vh, 260px) !important;
        max-height: 260px !important;
    }

    .tb-landing__hero {
        padding-top: 1rem !important;
        gap: 1.25rem !important;
    }
}


/* ============================================================
   Inline duotone SVG icons (Html.Icon) — replace icon-font glyphs
   ============================================================ */
.tb-ic {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.125em;
    color: inherit;
    flex-shrink: 0;
    overflow: visible;
}

/* Feature-strip tiles: render the icon larger inside the tinted square */
.tb-feature__icon .tb-ic {
    width: 1.55rem;
    height: 1.55rem;
    color: var(--tb-accent);
}

/* Floating stat cards: brand-tinted icon beside the label */
.tb-float-card strong .tb-ic {
    width: 1.25em;
    height: 1.25em;
    color: var(--tb-accent);
    vertical-align: -0.22em;
    margin-right: 0.18rem;
}

/* ==========================================================================
   Enterprise Marketing Section
   ========================================================================== */

.tb-marketing-section {
    position: relative;
    padding: 6rem 1.5rem;
    background: linear-gradient(180deg, transparent, rgba(6, 14, 30, 0.4) 15%, rgba(6, 14, 30, 0.8) 100%);
    overflow: hidden;
    z-index: 10;
}

body.tb-home-body:not(.dark-mode) .tb-marketing-section {
    background: linear-gradient(180deg, transparent, rgba(240, 246, 255, 0.5) 15%, rgba(225, 235, 250, 0.8) 100%);
}

.tb-marketing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 170, 255, 0.3), transparent);
}

.tb-marketing-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tb-marketing-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    animation: tb-fade-up 1s ease-out forwards;
}

@keyframes tb-fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tb-marketing-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #fff 0%, #a5d2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

body.tb-home-body:not(.dark-mode) .tb-marketing-header h2 {
    background: linear-gradient(135deg, #0f172a 0%, #0369a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tb-marketing-header p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--tb-muted);
    line-height: 1.6;
}

.tb-marketing-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
}

.tb-marketing-card {
    grid-column: span 2;
    background: rgba(16, 26, 46, 0.4);
    border: 1px solid rgba(0, 170, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.tb-marketing-card--halfwide {
    grid-column: span 3;
}

.tb-marketing-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #38bdf8;
    text-decoration: none;
    transition: all 0.25s ease;
}

.tb-marketing-card-link i {
    transition: transform 0.25s ease;
}

.tb-marketing-card:hover .tb-marketing-card-link {
    color: #7dd3fc;
}

.tb-marketing-card:hover .tb-marketing-card-link i {
    transform: translateX(4px);
}

@media (max-width: 1023.98px) {
    .tb-marketing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tb-marketing-card,
    .tb-marketing-card--halfwide {
        grid-column: span 1;
    }
}

@media (max-width: 639.98px) {
    .tb-marketing-grid {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }

    .tb-marketing-card,
    .tb-marketing-card--halfwide {
        grid-column: 1 / -1;
    }
}

body.tb-home-body:not(.dark-mode) .tb-marketing-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 120, 200, 0.15);
    box-shadow: 0 10px 30px rgba(15, 40, 80, 0.05);
}

body.tb-home-body:not(.dark-mode) .tb-marketing-card-link {
    color: #0284c7;
}

.tb-marketing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 170, 255, 0.15);
    border-color: rgba(0, 170, 255, 0.4);
}

.tb-marketing-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.2) 0%, rgba(0, 136, 204, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 170, 255, 0.2);
    font-size: 1.75rem;
    color: #00aaff;
    transition: transform 0.3s ease, background 0.3s ease;
}

body.tb-home-body:not(.dark-mode) .tb-marketing-card-icon {
    background: linear-gradient(135deg, rgba(0, 120, 200, 0.1) 0%, rgba(0, 100, 180, 0.02) 100%);
    border: 1px solid rgba(0, 120, 200, 0.2);
    color: #0078c8;
}

.tb-marketing-card:hover .tb-marketing-card-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.3) 0%, rgba(0, 136, 204, 0.1) 100%);
}

.tb-marketing-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--tb-text);
}

.tb-marketing-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--tb-muted);
    margin: 0;
}

/* Wide Card for Highlight */
.tb-marketing-card--wide {
    grid-column: 1 / -1;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(16, 26, 46, 0.6) 0%, rgba(8, 14, 28, 0.8) 100%);
}

body.tb-home-body:not(.dark-mode) .tb-marketing-card--wide {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 246, 255, 0.95) 100%);
}

.tb-marketing-card-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.tb-marketing-card-content {
    flex: 1 1 500px;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tb-marketing-card-content h3 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #00aaff 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tb-marketing-card-content p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.tb-marketing-card-content .tb-btn {
    align-self: flex-start;
}

.tb-marketing-card-visual {
    flex: 1 1 400px;
    min-height: 350px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(0, 170, 255, 0.1) 0%, transparent 70%);
}

.tb-trust-badge {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(16, 26, 46, 0.8);
    border: 2px solid rgba(0, 170, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 50px rgba(0, 170, 255, 0.2), inset 0 0 30px rgba(0, 170, 255, 0.1);
    animation: tb-pulse-badge 3s infinite ease-in-out;
}

body.tb-home-body:not(.dark-mode) .tb-trust-badge {
    background: #fff;
    border-color: rgba(0, 120, 200, 0.3);
    box-shadow: 0 0 50px rgba(0, 120, 200, 0.15), inset 0 0 30px rgba(0, 120, 200, 0.05);
}

.tb-trust-badge i {
    font-size: 3.5rem;
    color: #00aaff;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 170, 255, 0.5));
}

body.tb-home-body:not(.dark-mode) .tb-trust-badge i {
    color: #0078c8;
    filter: none;
}

.tb-trust-badge span {
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--tb-text);
}

@keyframes tb-pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

body.tb-home-body:not(.dark-mode) .tb-trust-badge {
    animation-name: tb-pulse-badge-light;
}

@keyframes tb-pulse-badge-light {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .tb-marketing-section {
        padding: 4rem 1rem;
    }

    .tb-marketing-card-content {
        padding: 2.5rem 2rem;
    }

    .tb-marketing-card-visual {
        min-height: 250px;
    }
}