/* ==========================================================================
   T&M Single Product v2 — Premium Dark Theme
   Bootstrap grid + custom CSS (no Tailwind)
   ========================================================================== */

/* --------------------------------------------------------------------------
   BASE
   -------------------------------------------------------------------------- */
.tm-single-wrap {
    background: #050505;
    color: rgba(255,255,255,0.85);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.tm-single-wrap *,
.tm-single-wrap *::before,
.tm-single-wrap *::after {
    box-sizing: border-box;
}

.tm-single-wrap ::selection {
    background: #5522dd;
    color: #fff;
}

/* Utility classes */
.glass-panel {
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
}

.tm-text-center { text-align: center; }

/* --------------------------------------------------------------------------
   1. HERO SECTION
   -------------------------------------------------------------------------- */
.tm-single-hero {
    position: relative;
    padding: 160px 0 80px;
    background: #050505;
    overflow: hidden;
}

/* Hero background image */
.tm-hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tm-hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(16px);
    transform: scale(1.1); /* prevent blur edge bleed */
    opacity: 0.35;
}

.tm-hero-bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,5,5,0.3) 0%, rgba(5,5,5,0.75) 100%);
}

.tm-hero-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 450px;
    background: radial-gradient(ellipse, #5522dd 0%, rgba(85,34,221,0.4) 60%, transparent 100%);
    opacity: 0.3;
    filter: blur(100px);
    border-radius: 50%;
    pointer-events: none;
}

/* Hero badges (breadcrumb lives inside this container) */
.tm-hero-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

/* Breadcrumbs — full width row above the pills */
.tm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    width: 100%;
    margin-bottom: 4px;
}

.tm-breadcrumb a {
    color: rgba(255,255,255,0.4) !important;
    text-decoration: none;
    transition: color 0.2s;
}

.tm-breadcrumb a:hover {
    color: #fff !important;
}

.tm-breadcrumb-sep {
    color: rgba(255,255,255,0.2);
    font-size: 10px;
}

.tm-breadcrumb-current {
    color: #dd7722;
    font-weight: 600;
}

/* Tag pills */
.tm-badge-cat {
    display: inline-block;
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
}

/* Hero title */
.tm-hero-title {
    font-size: 44px;
    font-weight: 500;
    color: #fff !important;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
}

/* Hero excerpt */
.tm-hero-excerpt {
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255,255,255,0.55);
    font-weight: 300;
    margin: 0 0 24px;
    max-width: 440px;
}

/* Hero highlights */
.tm-hero-highlights {
    margin-bottom: 28px;
}

.tm-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
}

.tm-highlight-item i {
    color: #5522dd;
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Hero actions */
.tm-hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.tm-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.5) !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.tm-hero-link:hover {
    color: #fff !important;
}

.tm-hero-link i {
    font-size: 18px;
}

/* Hero image */
.tm-hero-image-wrap {
    position: relative;
}

.tm-hero-image-wrap::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: linear-gradient(135deg, #5522dd, #dd7722);
    opacity: 0.08;
    border-radius: 20px;
    filter: blur(20px);
    pointer-events: none;
}

.tm-hero-main-image {
    position: relative;
    aspect-ratio: 4 / 3;
    width: 100%;
    background: #0a0a0a;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.tm-hero-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tm-hero-main-image:hover img {
    transform: scale(1.03);
}

.tm-hero-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tm-hero-placeholder::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(85,34,221,0.2), rgba(221,119,34,0.15));
    filter: blur(60px);
}

.tm-hero-placeholder i {
    font-size: 72px;
    color: rgba(255,255,255,0.15);
    position: relative;
    z-index: 1;
}

.tm-hero-expand {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0;
}

.tm-hero-main-image:hover .tm-hero-expand {
    opacity: 1;
}

/* Thumbnails */
.tm-hero-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    margin-top: 12px;
    position: relative;
}

.tm-hero-thumb {
    aspect-ratio: 1;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.08);
    background: #0a0a0a;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s;
}

.tm-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tm-hero-thumb:hover {
    border-color: rgba(255,255,255,0.25);
}

.tm-hero-thumb.active {
    border-color: #5522dd;
}

/* --------------------------------------------------------------------------
   STICKY TABS — Trapezoidal style (matches site sticky nav)
   -------------------------------------------------------------------------- */
.tm-sticky-tabs {
    position: relative;
    z-index: 40;
    background: #5522dd;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.3s ease;
}

.tm-sticky-tabs.tm-tabs-fixed {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 9990;
}

.tm-sticky-tabs-placeholder {
    display: none;
}

.tm-sticky-tabs::-webkit-scrollbar {
    display: none;
}

.tm-tabs-scroll {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 100%;
}

.tm-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.tm-tab-link {
    flex: 1 1 0;
    padding: 18px 12px;
    font-size: 15px;
    font-weight: 500;
    color: #fff !important;
    text-decoration: none !important;
    white-space: nowrap;
    clip-path: polygon(16px 0px, 100% 0, calc(100% - 16px) 100%, 0 100%);
    background-color: transparent;
    transition: all 0.25s ease;
    text-align: center;
}

.tm-tab-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.tm-tab-link.active {
    background-color: #DE7723 !important;
}

/* --------------------------------------------------------------------------
   SECTIONS — BASE
   -------------------------------------------------------------------------- */
.tm-section {
    padding: 80px 0;
    background: #050505;
}

.tm-section-alt {
    background: #1a1a1f;
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    position: relative;
}

/* Purple-accent section — moody premium feel */
.tm-section-accent {
    background: linear-gradient(180deg, #0e0a1e 0%, #0a0815 100%);
    border-top: 1px solid rgba(85,34,221,0.12);
    border-bottom: 1px solid rgba(85,34,221,0.12);
    position: relative;
    overflow: hidden;
}

.tm-section-accent::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 250px;
    background: rgba(85,34,221,0.06);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.tm-section-accent > .container {
    position: relative;
    z-index: 1;
}

/* Section title */
.tm-section-title {
    font-size: 24px;
    font-weight: 500;
    color: #fff !important;
    letter-spacing: -0.02em;
    margin: 0 0 40px;
}

/* Section label (small uppercase) */
.tm-section-label {
    font-size: 12px;
    font-weight: 600;
    color: #dd7722;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 24px;
}

/* Section heading (larger, no bar) */
.tm-section-heading {
    font-size: 24px;
    font-weight: 500;
    color: #fff !important;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.tm-heading-lg {
    font-size: 32px;
}

/* Section subtext */
.tm-section-subtext {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    margin: 0 0 16px;
}

.tm-subtext-lg {
    font-size: 18px;
    font-weight: 300;
}

/* Accent line (purple) */
.tm-accent-line {
    width: 48px;
    height: 2px;
    background: #5522dd;
}

/* --------------------------------------------------------------------------
   2. OVERVIEW
   -------------------------------------------------------------------------- */
.tm-overview-narrow {
    max-width: 750px;
    margin: 0 auto;
}

.tm-overview-prose {
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255,255,255,0.6);
    font-weight: 300;
}

.tm-overview-prose p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
}

.tm-overview-prose p:last-child {
    margin-bottom: 0;
}

/* Features layout */
.tm-features-layout {
    padding-top: 40px;
    padding-bottom: 8px;
}

/* --------------------------------------------------------------------------
   PILL STRIP — Drag-scrollable horizontal strip for Features + Tests
   -------------------------------------------------------------------------- */
.tm-pill-strip-wrap {
    position: relative;
    overflow: hidden;
}

/* Fade edges */
.tm-pill-strip-wrap::before,
.tm-pill-strip-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    z-index: 2;
    pointer-events: none;
}

.tm-pill-strip-wrap::before {
    left: 0;
    background: linear-gradient(90deg, #050505 0%, transparent 100%);
}

.tm-pill-strip-wrap::after {
    right: 0;
    background: linear-gradient(270deg, #050505 0%, transparent 100%);
}

/* Match alt section bg for fade edges */
.tm-section-alt .tm-pill-strip-wrap::before {
    background: linear-gradient(90deg, #1a1a1f 0%, transparent 100%);
}

.tm-section-alt .tm-pill-strip-wrap::after {
    background: linear-gradient(270deg, #1a1a1f 0%, transparent 100%);
}

.tm-pill-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 4px 48px;
    cursor: grab;
}

.tm-pill-strip:active {
    cursor: grabbing;
}

.tm-pill-strip::-webkit-scrollbar {
    display: none;
}

.tm-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
    user-select: none;
}

.tm-pill-item:hover {
    border-color: rgba(85,34,221,0.3);
    background: rgba(85,34,221,0.08);
    color: #fff;
}

.tm-pill-item i {
    font-size: 14px;
    color: #dd7722;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   3. SPECIFICATIONS
   -------------------------------------------------------------------------- */
.tm-spec-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.tm-spec-card:last-child {
    margin-bottom: 0;
}

.tm-spec-scroll {
    overflow-x: auto;
}

.tm-spec-group-title {
    font-size: 20px;
    font-weight: 600;
    color: #dd7722;
    padding: 24px 24px 20px;
    margin: 0;
    text-transform: capitalize;
}

.tm-spec-table {
    width: 100%;
    border-collapse: collapse;
}

.tm-spec-table tr {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s;
}

.tm-spec-table tr:last-child {
    border-bottom: none;
}

.tm-spec-table tr:hover {
    background: rgba(255,255,255,0.02);
}

.tm-spec-table td {
    padding: 14px 24px;
    font-size: 14px;
    line-height: 1.5;
    vertical-align: top;
    color: rgba(255,255,255,0.8);
}

.tm-spec-table td:first-child {
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    width: 33%;
    text-transform: capitalize;
}

/* Stacked spec layout (≤2 items) */
.tm-spec-stacked-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.45);
    margin: 0 0 8px;
}

.tm-spec-stacked-value {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
    margin: 0;
}

/* Nested spec table */
.tm-spec-nested {
    background: rgba(255,255,255,0.02);
    border-radius: 6px;
    margin: 4px 0;
}

.tm-spec-nested td {
    padding: 8px 14px;
    font-size: 13px;
}

/* Multi-model table */
.tm-spec-table-multi {
    width: 100%;
    border-collapse: collapse;
}

.tm-spec-table-multi thead th {
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #5522dd;
    color: #fff !important;
    text-align: left;
    white-space: nowrap;
}

.tm-spec-table-multi tbody td {
    padding: 12px 20px;
    font-size: 13px;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.8);
    vertical-align: top;
}

.tm-spec-table-multi tbody td:first-child {
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.02);
}

.tm-spec-table-multi tbody tr:last-child td {
    border-bottom: none;
}

/* --------------------------------------------------------------------------
   4. FEATURES + TESTS TICKER
   -------------------------------------------------------------------------- */
.tm-ticker-section {
    position: relative;
    padding: 48px 0;
    overflow: hidden;
}

.tm-ticker-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tm-ticker-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(24px);
    transform: scale(1.15);
    opacity: 0.2;
}

.tm-ticker-bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,5,5,0.6) 0%, rgba(5,5,5,0.8) 100%);
}

.tm-ticker-heading {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 12px;
    text-align: center;
}

.tm-ticker-heading-orange {
    color: #dd7722;
}

.tm-ticker-heading-white {
    color: #fff;
    margin: 12px 0 0;
}

.tm-ticker-track {
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    cursor: pointer;
}

.tm-ticker-track:hover .tm-ticker-scroll {
    animation-play-state: paused;
}

.tm-ticker-scroll {
    display: flex;
    gap: 10px;
    width: max-content;
    will-change: transform;
}

.tm-ticker-left {
    animation: tm-scroll-left 60s linear infinite;
}

.tm-ticker-right {
    animation: tm-scroll-right 60s linear infinite;
}

@keyframes tm-scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes tm-scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.tm-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
    flex-shrink: 0;
}

.tm-ticker-item i {
    font-size: 13px;
    color: #dd7722;
    flex-shrink: 0;
}

/* Ticker Tooltip */
.tm-ticker-tooltip {
    position: fixed;
    z-index: 99998;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 420px;
    width: max-content;
}

.tm-ticker-tooltip.active {
    opacity: 1;
    transform: translateY(0);
}

.tm-ticker-tooltip-inner {
    background: rgba(12, 10, 20, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow:
        0 0 0 1px rgba(85,34,221,0.1),
        0 8px 40px rgba(0,0,0,0.6),
        0 0 80px rgba(85,34,221,0.06);
}

.tm-ticker-tooltip-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.tm-ticker-tooltip-label.orange { color: #dd7722; }
.tm-ticker-tooltip-label.white { color: rgba(255,255,255,0.5); }

.tm-ticker-tooltip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tm-ticker-tooltip-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
}

.tm-ticker-tooltip-pill i {
    font-size: 10px;
    color: #dd7722;
}

.tm-ticker-tooltip-glow {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 40px;
    background: radial-gradient(ellipse, rgba(85,34,221,0.3), transparent);
    filter: blur(20px);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   5. APPLICATIONS
   -------------------------------------------------------------------------- */
.tm-app-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tm-app-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.06);
    background: #050505;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
}

.tm-app-pill:hover {
    border-color: rgba(85,34,221,0.3);
    background: rgba(85,34,221,0.06);
}

.tm-app-pill i {
    color: rgba(255,255,255,0.3);
    font-size: 12px;
}

/* Pills on accent bg */
.tm-section-accent .tm-app-pill {
    background: rgba(255,255,255,0.04);
    border-color: rgba(85,34,221,0.15);
}

.tm-section-accent .tm-app-pill:hover {
    background: rgba(85,34,221,0.12);
    border-color: rgba(85,34,221,0.35);
}

/* --------------------------------------------------------------------------
   6. DETECTION CAPABILITIES
   -------------------------------------------------------------------------- */
.tm-detection-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tm-detection-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 12px;
    border-radius: 10px;
    transition: background 0.2s;
}

.tm-detection-item:hover {
    background: rgba(255,255,255,0.03);
}

.tm-detection-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
}

.tm-detection-item span {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
}

/* Detection panel (right side) */
.tm-detection-panel {
    border-radius: 16px;
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tm-detection-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
}

.tm-detection-active {
    color: #dd7722;
}

.tm-detection-active i {
    font-size: 8px;
    animation: tm-pulse 2s ease infinite;
}

@keyframes tm-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.tm-detection-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tm-detection-stat {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.tm-detection-stat-val {
    display: block;
    font-size: 28px;
    font-weight: 500;
    color: #fff;
    font-family: 'Inter', monospace;
}

.tm-detection-stat-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
}

/* Detection cards (keyed format — Lismar etc) */
.tm-detection-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 28px;
    height: 100%;
    transition: border-color 0.3s;
}

.tm-detection-card:hover {
    border-color: rgba(221,119,34,0.25);
}

.tm-detection-card h4 {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    margin: 0 0 8px;
}

.tm-detection-tech {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #dd7722;
    margin-bottom: 16px;
}

.tm-detection-defects {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tm-detection-defects li {
    padding: 8px 0 8px 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.tm-detection-defects li:last-child {
    border-bottom: none;
}

.tm-detection-defects li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #dd7722;
}

/* --------------------------------------------------------------------------
   7. SYSTEM COMPONENTS
   -------------------------------------------------------------------------- */
.tm-component-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.3);
    transition: border-color 0.2s;
}

.tm-component-item:hover {
    border-color: rgba(255,255,255,0.12);
}

.tm-component-icon {
    color: rgba(255,255,255,0.4);
    font-size: 16px;
    flex-shrink: 0;
}

.tm-component-item span {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

/* --------------------------------------------------------------------------
   8. MODEL COMPARISON
   -------------------------------------------------------------------------- */
.tm-comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.tm-comparison-table thead th {
    padding: 16px 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(85,34,221,0.15);
    color: #fff !important;
    text-align: left;
    white-space: nowrap;
    border-bottom: 2px solid #5522dd;
}

.tm-comparison-table tbody td {
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.8);
}

.tm-comparison-table tbody td:first-child {
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    text-transform: capitalize;
}

.tm-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.tm-comparison-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

.val-yes     { color: #4ade80 !important; font-weight: 700; }
.val-no      { color: rgba(255,255,255,0.25) !important; }
.val-optional { color: #fbbf24 !important; font-style: italic; }

/* --------------------------------------------------------------------------
   9. PRODUCT LINEUP
   -------------------------------------------------------------------------- */
.tm-lineup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tm-lineup-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 28px;
    border-top: 3px solid #5522dd;
    transition: all 0.3s;
}

.tm-lineup-card:hover {
    border-color: rgba(85,34,221,0.3);
    border-top-color: #5522dd;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(85,34,221,0.08);
}

.tm-lineup-card h4 {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    margin: 0 0 10px;
}

.tm-lineup-card p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.55);
    margin: 0 0 16px;
}

.tm-lineup-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tm-lineup-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.tm-lineup-card ul li:last-child {
    border-bottom: none;
}

.tm-lineup-card ul li i {
    color: #dd7722;
    font-size: 12px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Lineup cards on accent bg */
.tm-section-accent .tm-lineup-card {
    background: rgba(255,255,255,0.05);
    border-color: rgba(85,34,221,0.15);
}

.tm-section-accent .tm-lineup-card:hover {
    border-color: rgba(85,34,221,0.35);
    box-shadow: 0 12px 40px rgba(85,34,221,0.12);
}

/* --------------------------------------------------------------------------
   10. SOFTWARE CAPABILITIES
   -------------------------------------------------------------------------- */
.tm-software-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tm-software-item i {
    font-size: 24px;
}

.tm-software-item span {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   11. VIDEOS
   -------------------------------------------------------------------------- */
.tm-video-card {
    margin-bottom: 0;
}

.tm-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    background: #0a0a0a;
}

.tm-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.tm-video-title {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    margin: 12px 0 0;
}

/* --------------------------------------------------------------------------
   12. GALLERY
   -------------------------------------------------------------------------- */
.tm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.tm-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1;
    cursor: pointer;
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.2s;
}

.tm-gallery-item:hover {
    border-color: rgba(255,255,255,0.15);
}

.tm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    transition: opacity 0.3s, transform 0.4s;
}

.tm-gallery-item:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   LIGHTBOX
   -------------------------------------------------------------------------- */
.tm-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.tm-lightbox.active {
    display: flex;
}

.tm-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.tm-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 36px;
    color: white;
    cursor: pointer;
    z-index: 100000;
    background: none;
    border: none;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.tm-lightbox-close:hover { opacity: 1; }

.tm-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    color: white;
    cursor: pointer;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0.7;
    transition: all 0.2s;
}

.tm-lightbox-nav:hover { opacity: 1; background: rgba(255,255,255,0.12); }
.tm-lightbox-prev { left: 20px; }
.tm-lightbox-next { right: 20px; }

/* --------------------------------------------------------------------------
   13. RELATED RESOURCES (static grid)
   -------------------------------------------------------------------------- */
.tm-rc-link,
.tm-rc-link:hover,
.tm-rc-link:focus,
.tm-rc-link:active,
.tm-rc-link:visited {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    height: 100%;
}

.tm-rc-card {
    border-radius: 10px;
    min-height: 280px;
    overflow: hidden;
    position: relative;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tm-rc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.tm-rc-card-bg,
.tm-rc-card-bg-sharp {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity .3s ease, transform .15s ease-out;
    will-change: transform, opacity;
}

.tm-rc-card-bg {
    filter: blur(10px);
    transform: scale(1.12);
    opacity: 1;
}

.tm-rc-card-bg-sharp {
    opacity: 0;
    transform: scale(1.08);
}

.tm-rc-card:hover .tm-rc-card-bg-sharp {
    opacity: 1;
    transform: scale(1.15);
}

.tm-rc-card:hover .tm-rc-card-bg {
    opacity: 0;
    transform: scale(1.18);
}

.tm-rc-card-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px);
    transform: scale(1.12);
    opacity: 1;
    transition: filter .3s ease, transform .15s ease-out;
    will-change: transform, filter;
}

.tm-rc-card:hover .tm-rc-card-video-bg {
    filter: none;
    transform: scale(1.05);
}

.tm-rc-card-logo-overlay {
    filter: blur(10px);
    transition: filter .3s ease;
}

.tm-rc-card:hover .tm-rc-card-logo-overlay {
    filter: none;
}

.tm-rc-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.25) 100%);
    transition: opacity .3s ease;
}

.tm-rc-card:hover .tm-rc-card-overlay {
    opacity: .5;
}

.tm-rc-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: #FFFFFF;
    z-index: 2;
    transition: opacity .3s ease;
}

.tm-rc-card:hover .tm-rc-card-content {
    opacity: 0;
}

.tm-rc-card-content .tm-rc-type {
    color: #dd7722 !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px;
}

.tm-rc-card-content .tm-rc-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff !important;
    margin: 0;
}

.tm-rc-card-content .tm-rc-excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,0.55) !important;
    margin: 6px 0 0;
}

/* --------------------------------------------------------------------------
   14. CTA SECTION
   -------------------------------------------------------------------------- */
.tm-single-cta {
    padding: 80px 0;
    background: #5522dd;
    text-align: center;
}

.tm-single-cta .tm-cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.tm-single-cta .tm-cta-inner h2 {
    font-size: 32px;
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}

.tm-single-cta .tm-cta-inner p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    margin: 0 0 24px;
}

.tm-cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tm-single-wrap .tm-single-cta .ascential-btn {
    background-color: #dd7722 !important;
    color: #000 !important;
}

.tm-single-wrap .tm-single-cta .ascential-btn:hover {
    background-color: #fff !important;
    color: #000 !important;
    transform: translateX(10px) !important;
}

/* --------------------------------------------------------------------------
   BUTTON OVERRIDES
   -------------------------------------------------------------------------- */
.tm-single-wrap .ascential-btn {
    color: black !important;
}

.tm-single-wrap .ascential-btn:hover {
    background-color: #5522dd !important;
    transform: translateX(10px) !important;
    color: white !important;
}

/* --------------------------------------------------------------------------
   DIVISION PICKER MODAL
   -------------------------------------------------------------------------- */
.tm-division-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.tm-division-modal.active {
    display: flex;
}

.tm-division-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
}

.tm-division-modal-content {
    position: relative;
    background: #111;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 40px;
    max-width: 520px;
    width: 90%;
    text-align: center;
    z-index: 1;
    animation: tm-modal-in 0.3s ease;
}

@keyframes tm-modal-in {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.tm-division-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.tm-division-modal-close:hover {
    color: #fff;
}

.tm-division-modal-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
}

.tm-division-modal-content > p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin: 0 0 28px;
    line-height: 1.5;
}

.tm-division-modal-content > p strong {
    color: rgba(255,255,255,0.8);
}

.tm-division-options {
    display: flex;
    gap: 12px;
}

.tm-division-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    transition: all 0.25s ease;
    color: #fff;
}

.tm-division-option:hover {
    border-color: #5522dd;
    background: rgba(85,34,221,0.08);
    transform: translateY(-2px);
}

.tm-division-option i {
    font-size: 36px;
    color: #dd7722;
}

.tm-division-option-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.tm-division-option-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

@media (max-width: 480px) {
    .tm-division-options {
        flex-direction: column;
    }

    .tm-division-modal-content {
        padding: 28px 20px;
    }
}

/* --------------------------------------------------------------------------
   SCROLL REVEAL
   -------------------------------------------------------------------------- */
.tm-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tm-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   RELATED PRODUCTS (uses .tm-catalog-card from tm-catalog.css)
   -------------------------------------------------------------------------- */
.tm-single-wrap .tm-catalog-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .tm-single-wrap .tm-catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tm-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }


    .tm-sticky-tabs {
        justify-content: flex-start;
    }

    .tm-tabs-scroll {
        min-width: max-content;
    }

    .tm-tab-link {
        flex: 0 0 auto;
        padding: 15px 20px;
        font-size: 14px;
        min-width: 110px;
    }
}

@media (max-width: 991px) {
    .tm-single-hero {
        padding: 140px 0 48px;
    }

    .tm-hero-title {
        font-size: 34px;
    }

    .tm-section {
        padding: 60px 0;
    }

    .tm-section-title,
    .tm-section-heading {
        font-size: 22px;
        margin-bottom: 32px;
    }

    .tm-lineup-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tm-single-cta {
        padding: 60px 0;
    }

    .tm-single-cta .tm-cta-inner h2 {
        font-size: 26px;
    }

    .tm-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 767px) {
    .tm-single-hero {
        padding: 120px 0 40px;
    }

    .tm-hero-title {
        font-size: 28px;
    }

    .tm-hero-excerpt {
        font-size: 15px;
    }

    .tm-section {
        padding: 48px 0;
    }

    .tm-section-title,
    .tm-section-heading {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .tm-lineup-grid {
        grid-template-columns: 1fr;
    }

    .tm-hero-thumbs {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .tm-spec-table td {
        padding: 10px 14px;
        font-size: 13px;
    }

    .tm-spec-table td:first-child {
        width: 45%;
    }

    .tm-single-cta {
        padding: 48px 0;
    }

    .tm-single-cta .tm-cta-inner h2 {
        font-size: 22px;
    }


    .tm-overview-narrow {
        margin: 0 auto;
    }

    .tm-breadcrumb {
        margin-bottom: 2px;
    }
}

@media (max-width: 480px) {
    .tm-hero-title {
        font-size: 24px;
    }

    .tm-gallery-grid {
        grid-template-columns: 1fr;
    }

    .tm-hero-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }

}
