/* ============================================================
   TRANSMUTEBOX — Main Stylesheet
   ============================================================ */

:root {
    --tb-primary:       #6C63FF;
    --tb-primary-dark:  #5A52E0;
    --tb-secondary:     #3B82F6;
    --tb-accent:        #06B6D4;
    --tb-dark:          #0F1117;
    --tb-dark-2:        #1A1D27;
    --tb-dark-3:        #252836;
    --tb-text:          #1E2235;
    --tb-text-muted:    #6B7280;
    --tb-border:        #E5E7EB;
    --tb-radius:        12px;
    --tb-radius-lg:     20px;
    --tb-shadow:        0 4px 24px rgba(0,0,0,.06);
    --tb-shadow-hover:  0 12px 40px rgba(108,99,255,.18);
    --tb-transition:    .25s cubic-bezier(.4,0,.2,1);
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--tb-text);
    background: #fff;
    overflow-x: hidden;
}

.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.fw-900 { font-weight: 900 !important; }

.py-6 { padding-top: 5rem; padding-bottom: 5rem; }

.letter-spacing-2 { letter-spacing: .12em; }

/* ============================================================
   NAVBAR
   ============================================================ */
.tb-navbar {
    background: rgba(15,17,23,.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,.05);
    padding: .75rem 0;
    z-index: 1050;
}

.tb-navbar .navbar-brand {
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    text-decoration: none;
}

.tb-accent { color: var(--tb-primary) !important; }

.tb-navbar .nav-link {
    color: rgba(255,255,255,.8) !important;
    font-size: .88rem;
    font-weight: 500;
    padding: .5rem .75rem !important;
    border-radius: 6px;
    transition: var(--tb-transition);
}
.tb-navbar .nav-link:hover { color: #fff !important; background: rgba(255,255,255,.07); }

.tb-dropdown {
    background: var(--tb-dark-2);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--tb-radius);
    min-width: 220px;
    padding: .5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.tb-dropdown .dropdown-item {
    color: rgba(255,255,255,.8);
    border-radius: 8px;
    padding: .5rem .75rem;
    font-size: .88rem;
    transition: var(--tb-transition);
}
.tb-dropdown .dropdown-item:hover { background: rgba(108,99,255,.15); color: #fff; }

.tb-search-form { max-width: 220px; }
.tb-search-input {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    font-size: .85rem;
}
.tb-search-input::placeholder { color: rgba(255,255,255,.4); }
.tb-search-input:focus { background: rgba(255,255,255,.12); border-color: var(--tb-primary); box-shadow: 0 0 0 3px rgba(108,99,255,.2); color: #fff; }

/* ============================================================
   SECTION SHARED
   ============================================================ */
.tb-section-badge {
    display: inline-block;
    background: rgba(108,99,255,.12);
    color: var(--tb-primary);
    border: 1px solid rgba(108,99,255,.25);
    border-radius: 20px;
    padding: .25rem .85rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.tb-badge-ai {
    background: linear-gradient(135deg, rgba(108,99,255,.15), rgba(6,182,212,.15));
    color: var(--tb-accent);
    border-color: rgba(6,182,212,.3);
}

.tb-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-top: .5rem;
    margin-bottom: .75rem;
}
.tb-section-subtitle {
    color: var(--tb-text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   HERO
   ============================================================ */
.tb-hero {
    background: var(--tb-dark);
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.tb-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.tb-hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(108,99,255,.18) 0%, transparent 70%);
    animation: heroGlowPulse 6s ease-in-out infinite;
}
@keyframes heroGlowPulse {
    0%,100% { opacity: .6; transform: translateX(-50%) scale(1); }
    50%      { opacity: 1;  transform: translateX(-50%) scale(1.08); }
}

.tb-hero-particle {
    position: absolute;
    border-radius: 50%;
    animation: floatParticle 12s ease-in-out infinite;
}
.tb-hero-particle--1 { width: 400px; height: 400px; top: -100px; right: -100px; background: radial-gradient(circle, rgba(108,99,255,.12), transparent 70%); }
.tb-hero-particle--2 { width: 250px; height: 250px; bottom: 50px; left: -50px; background: radial-gradient(circle, rgba(59,130,246,.1), transparent 70%); animation-delay: -4s; }
.tb-hero-particle--3 { width: 160px; height: 160px; top: 40%; right: 15%; background: radial-gradient(circle, rgba(6,182,212,.1), transparent 70%); animation-delay: -8s; }
@keyframes floatParticle {
    0%,100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-30px) rotate(10deg); }
}

.tb-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(108,99,255,.18);
    border: 1px solid rgba(108,99,255,.3);
    border-radius: 20px;
    padding: .4rem 1rem;
    color: rgba(255,255,255,.9);
    font-size: .85rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
}
.tb-hero-badge i { color: var(--tb-primary); }

.tb-hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.25rem;
}
.tb-gradient-text {
    background: linear-gradient(135deg, var(--tb-primary) 0%, var(--tb-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.tb-gradient-text-2 {
    background: linear-gradient(135deg, var(--tb-accent) 0%, #34D399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tb-hero-subtitle {
    color: rgba(255,255,255,.65);
    font-size: 1.15rem;
    max-width: 680px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* Upload Zone */
.tb-upload-zone {
    background: rgba(255,255,255,.04);
    border: 2px dashed rgba(108,99,255,.45);
    border-radius: var(--tb-radius-lg);
    padding: 3rem 2rem;
    cursor: pointer;
    transition: var(--tb-transition);
    backdrop-filter: blur(10px);
}
.tb-upload-zone:hover, .tb-upload-zone.dragover {
    background: rgba(108,99,255,.08);
    border-color: var(--tb-primary);
    box-shadow: 0 0 0 4px rgba(108,99,255,.1), 0 20px 60px rgba(0,0,0,.3);
}

/* Hero upload — detected file state */
.tb-upload-detected {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .25rem .5rem;
}
.tb-upload-detected-icon {
    width: 48px; height: 48px;
    background: rgba(108,99,255,.15);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: var(--tb-primary);
    flex-shrink: 0;
}
.tb-upload-detected-info { flex: 1; min-width: 0; text-align: left; }
.tb-upload-detected-name {
    font-size: .9rem; font-weight: 700;
    color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tb-upload-detected-size { font-size: .78rem; color: rgba(255,255,255,.55); margin-top: .1rem; }
.tb-upload-icon {
    font-size: 3.5rem;
    color: var(--tb-primary);
    display: block;
    margin-bottom: .75rem;
    animation: uploadBounce 2.5s ease-in-out infinite;
}
@keyframes uploadBounce {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.tb-upload-text { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: .25rem; }
.tb-upload-browse { color: var(--tb-primary); text-decoration: underline; cursor: pointer; font-weight: 600; }
.tb-upload-hint { color: rgba(255,255,255,.4); font-size: .85rem; }

/* Quick Tools */
.tb-quick-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; align-items: center; }
.tb-quick-label { color: rgba(255,255,255,.4); font-size: .85rem; }
.tb-quick-pill {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    padding: .3rem .85rem;
    color: rgba(255,255,255,.8);
    font-size: .82rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--tb-transition);
}
.tb-quick-pill:hover { background: var(--tb-primary); border-color: var(--tb-primary); color: #fff; }
.tb-quick-pill--more { background: rgba(108,99,255,.2); border-color: rgba(108,99,255,.4); color: var(--tb-primary); }
.tb-quick-pill--more:hover { background: var(--tb-primary); color: #fff; }

/* ============================================================
   STATS
   ============================================================ */
.tb-stats { background: #fff; }
.tb-stat-card {
    padding: 1.5rem;
    border-radius: var(--tb-radius);
    transition: var(--tb-transition);
}
.tb-stat-card:hover { transform: translateY(-4px); }
.tb-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1rem;
}
.tb-stat-icon--primary  { background: rgba(108,99,255,.12); color: var(--tb-primary); }
.tb-stat-icon--success  { background: rgba(34,197,94,.12);  color: #22C55E; }
.tb-stat-icon--warning  { background: rgba(234,179,8,.12);  color: #EAB308; }
.tb-stat-icon--info     { background: rgba(6,182,212,.12);  color: var(--tb-accent); }
.tb-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--tb-text);
    line-height: 1;
    margin-bottom: .25rem;
}
.tb-stat-label { color: var(--tb-text-muted); font-size: .85rem; font-weight: 500; }

/* ============================================================
   TRUSTED BRANDS TICKER
   ============================================================ */
.tb-trusted { background: #f9fafb; border-top: 1px solid var(--tb-border); border-bottom: 1px solid var(--tb-border); }
.tb-brands-scroll { overflow: hidden; }
.tb-brands-track {
    display: flex;
    gap: 2rem;
    animation: scrollBrands 18s linear infinite;
    width: max-content;
}
.tb-brands-scroll:hover .tb-brands-track { animation-play-state: paused; }
@keyframes scrollBrands {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.tb-brand-item {
    font-weight: 700;
    font-size: .95rem;
    color: #9CA3AF;
    letter-spacing: .04em;
    white-space: nowrap;
    padding: .5rem 1.5rem;
    border-radius: 8px;
    transition: var(--tb-transition);
}
.tb-brand-item:hover { color: var(--tb-primary); background: rgba(108,99,255,.06); }

/* ============================================================
   TOOLS CATALOG
   ============================================================ */
.tb-category-tabs { gap: .4rem; flex-wrap: wrap; }
.tb-tab-btn {
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: 20px;
    padding: .4rem 1.1rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--tb-text-muted);
    cursor: pointer;
    transition: var(--tb-transition);
    outline: none;
}
.tb-tab-btn:hover { border-color: var(--tb-primary); color: var(--tb-primary); background: rgba(108,99,255,.05); }
.tb-tab-btn.active { background: var(--tb-primary); border-color: var(--tb-primary); color: #fff; box-shadow: 0 4px 14px rgba(108,99,255,.35); }

.tb-cat-heading-icon { font-size: 1.4rem; }

.tb-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    padding: 1.25rem .75rem 1rem;
    position: relative;
    overflow: hidden;
    transition: var(--tb-transition);
    cursor: pointer;
    min-height: 100px;
}
.tb-tool-card:hover {
    border-color: var(--tb-primary);
    box-shadow: var(--tb-shadow-hover);
    transform: translateY(-3px);
}
.tb-tool-card:hover .tb-tool-icon { transform: scale(1.15); }

.tb-tool-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: .65rem;
    font-weight: 700;
    padding: .15rem .4rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.tb-tool-badge--popular { background: #FEF3C7; color: #92400E; }
.tb-tool-badge--hot     { background: #FEE2E2; color: #991B1B; }
.tb-tool-badge--new     { background: #DCFCE7; color: #166534; }
.tb-tool-badge--ai      { background: linear-gradient(135deg,#6C63FF,#06B6D4); color: #fff; }
.tb-tool-badge--free    { background: #F0FDF4; color: #15803D; }

.tb-tool-icon { font-size: 1.75rem; margin-bottom: .5rem; transition: var(--tb-transition); }
.tb-tool-name { font-size: .82rem; font-weight: 700; color: var(--tb-text); margin-bottom: .15rem; }
.tb-tool-desc { font-size: .72rem; color: var(--tb-text-muted); }

/* ============================================================
   FEATURES
   ============================================================ */
.tb-feature-card {
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-lg);
    padding: 1.75rem;
    transition: var(--tb-transition);
    height: 100%;
}
.tb-feature-card:hover { border-color: var(--tb-primary); box-shadow: var(--tb-shadow-hover); transform: translateY(-3px); }
.tb-feature-icon { font-size: 2rem; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.tb-how-it-works { background: linear-gradient(135deg, #F8F5FF 0%, #EFF6FF 100%); }
.tb-step-card {
    background: #fff;
    border-radius: var(--tb-radius-lg);
    padding: 2rem 1.5rem;
    border: 1px solid var(--tb-border);
    position: relative;
    transition: var(--tb-transition);
    height: 100%;
}
.tb-step-card:hover { box-shadow: var(--tb-shadow-hover); transform: translateY(-4px); border-color: var(--tb-primary); }
.tb-step-number {
    position: absolute;
    top: -1px;
    right: 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    color: rgba(108,99,255,.06);
    line-height: 1;
}
.tb-step-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--tb-primary), var(--tb-secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(108,99,255,.3);
}

/* ============================================================
   AI SECTION
   ============================================================ */
.tb-ai-section { background: var(--tb-dark); }
.tb-ai-section .tb-section-title { color: #fff; }
.tb-ai-section .text-muted { color: rgba(255,255,255,.55) !important; }

.tb-ai-tools-list { display: flex; flex-direction: column; gap: 1rem; }
.tb-ai-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--tb-radius);
    padding: .9rem 1.1rem;
    transition: var(--tb-transition);
}
.tb-ai-item:hover { background: rgba(108,99,255,.12); border-color: rgba(108,99,255,.3); }
.tb-ai-item-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--tb-primary), var(--tb-accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}
.tb-ai-item .fw-600 { color: rgba(255,255,255,.9); }

/* AI Visual Demo */
.tb-ai-visual { padding: 1rem; }
.tb-ai-card-demo {
    background: var(--tb-dark-2);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--tb-radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.tb-ai-demo-header {
    padding: .75rem 1rem;
    background: var(--tb-dark-3);
    border-bottom: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    gap: .35rem;
}
.tb-ai-demo-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #FF5F57;
}
.tb-ai-demo-dot--2 { background: #FFBD2E; }
.tb-ai-demo-dot--3 { background: #28CA41; }
.tb-ai-demo-body { padding: 1.5rem; }

.tb-ai-waveform { display: flex; align-items: center; gap: 2px; height: 70px; }
.tb-wave-bar {
    flex: 1;
    border-radius: 2px;
    min-height: 4px;
    transition: var(--tb-transition);
}
.tb-wave-bar--before { background: rgba(239,68,68,.6); }
.tb-wave-bar--after  { background: linear-gradient(to top, var(--tb-primary), var(--tb-accent)); }

.tb-ai-processing-badge {
    background: rgba(108,99,255,.15);
    border: 1px solid rgba(108,99,255,.3);
    border-radius: 8px;
    padding: .5rem 1rem;
    color: var(--tb-primary);
    font-size: .82rem;
    font-weight: 600;
    text-align: center;
}
.tb-ai-progress {
    height: 4px;
    background: rgba(108,99,255,.2);
    border-radius: 2px;
    margin-top: .4rem;
    overflow: hidden;
}
.tb-ai-progress-bar {
    height: 100%;
    width: 65%;
    background: linear-gradient(90deg, var(--tb-primary), var(--tb-accent));
    border-radius: 2px;
    animation: progressAnim 2s ease-in-out infinite;
}
@keyframes progressAnim {
    0%   { width: 20%; }
    50%  { width: 80%; }
    100% { width: 20%; }
}

/* ============================================================
   FORMAT TAGS
   ============================================================ */
.tb-format-group {
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    padding: 1.25rem;
    height: 100%;
}
.tb-format-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tb-format-tag {
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    padding: .2rem .55rem;
    font-size: .75rem;
    font-weight: 700;
    color: var(--tb-text-muted);
    letter-spacing: .04em;
    transition: var(--tb-transition);
    cursor: default;
}
.tb-format-tag:hover { background: var(--tb-primary); color: #fff; border-color: var(--tb-primary); transform: scale(1.05); }

/* ============================================================
   POPULAR TOOLS
   ============================================================ */
.tb-popular-card {
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    padding: 1.25rem;
    transition: var(--tb-transition);
    color: var(--tb-text);
}
.tb-popular-card:hover { border-color: var(--tb-primary); box-shadow: var(--tb-shadow-hover); transform: translateY(-3px); color: var(--tb-text); }
.tb-popular-rank {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--tb-text-muted);
    min-width: 36px;
    opacity: .5;
}
.tb-popular-icon { font-size: 2rem; min-width: 48px; text-align: center; }
.tb-popular-usage {
    display: inline-flex;
    align-items: center;
    background: #FEF3C7;
    color: #92400E;
    border-radius: 4px;
    padding: .15rem .5rem;
    font-size: .72rem;
    font-weight: 700;
}

/* ============================================================
   SECURITY
   ============================================================ */
.tb-security-section { background: linear-gradient(135deg, #F0FDF4, #EFF6FF); }
.tb-sec-item { display: flex; align-items: flex-start; gap: .5rem; padding: .75rem; background: #fff; border-radius: var(--tb-radius); border: 1px solid var(--tb-border); height: 100%; }

/* Shield Visual */
.tb-security-visual { position: relative; padding: 3rem; }
.tb-shield-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 260px;
    margin: 0 auto;
}
.tb-shield-icon { font-size: 6rem; color: var(--tb-primary); position: relative; z-index: 3; }
.tb-shield-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(108,99,255,.2);
    animation: shieldPulse 3s ease-in-out infinite;
}
.tb-shield-ring--1 { width: 140px; height: 140px; animation-delay: 0s; }
.tb-shield-ring--2 { width: 200px; height: 200px; animation-delay: .7s; }
.tb-shield-ring--3 { width: 260px; height: 260px; animation-delay: 1.4s; }
@keyframes shieldPulse {
    0%,100% { opacity: .5; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.04); }
}
.tb-shield-badge-1,
.tb-shield-badge-2,
.tb-shield-badge-3 {
    position: absolute;
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: 20px;
    padding: .3rem .7rem;
    font-size: .75rem;
    font-weight: 700;
    color: var(--tb-text);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    z-index: 4;
}
.tb-shield-badge-1 { top: 10px; right: -20px; }
.tb-shield-badge-2 { bottom: 30px; left: -30px; }
.tb-shield-badge-3 { bottom: 30px; right: -20px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.tb-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: 8px;
    padding: .35rem .75rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--tb-text);
    box-shadow: var(--tb-shadow);
}

.tb-testimonial-card {
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-lg);
    padding: 1.75rem;
    height: 100%;
    transition: var(--tb-transition);
    position: relative;
}
.tb-testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    font-family: 'Space Grotesk', serif;
    color: rgba(108,99,255,.12);
    font-weight: 900;
    line-height: 1;
}
.tb-testimonial-card:hover { border-color: var(--tb-primary); box-shadow: var(--tb-shadow-hover); }
.tb-stars { font-size: .9rem; letter-spacing: .05em; }

.tb-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .82rem;
    color: #fff;
    flex-shrink: 0;
}
.tb-avatar--primary   { background: linear-gradient(135deg, var(--tb-primary), var(--tb-secondary)); }
.tb-avatar--success   { background: linear-gradient(135deg, #22C55E, #059669); }
.tb-avatar--warning   { background: linear-gradient(135deg, #F59E0B, #D97706); }
.tb-avatar--danger    { background: linear-gradient(135deg, #EF4444, #DC2626); }
.tb-avatar--info      { background: linear-gradient(135deg, var(--tb-accent), #0284C7); }
.tb-avatar--secondary { background: linear-gradient(135deg, #6B7280, #374151); }

/* ============================================================
   PRICING
   ============================================================ */
.tb-pricing-card {
    background: #fff;
    border: 2px solid var(--tb-border);
    border-radius: var(--tb-radius-lg);
    padding: 2rem;
    position: relative;
    transition: var(--tb-transition);
    height: 100%;
}
.tb-pricing-card:hover { box-shadow: 0 20px 50px rgba(0,0,0,.08); transform: translateY(-4px); }
.tb-pricing-card--popular {
    border-color: var(--tb-primary);
    box-shadow: 0 0 0 1px var(--tb-primary), 0 20px 50px rgba(108,99,255,.15);
}
.tb-pricing-popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tb-primary);
    color: #fff;
    border-radius: 20px;
    padding: .25rem 1rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    white-space: nowrap;
}
.tb-pricing-name { font-weight: 800; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem; }
.tb-pricing-price { display: flex; align-items: baseline; gap: .15rem; margin-bottom: 1.25rem; }
.tb-pricing-currency { font-size: 1.2rem; font-weight: 700; color: var(--tb-text-muted); }
.tb-pricing-amount { font-family: 'Space Grotesk', sans-serif; font-size: 3rem; font-weight: 800; line-height: 1; color: var(--tb-text); }
.tb-pricing-period { color: var(--tb-text-muted); font-size: .9rem; }
.tb-pricing-features { list-style: none; padding: 0; margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.tb-pricing-features li { font-size: .9rem; color: var(--tb-text-muted); display: flex; align-items: center; }

/* ============================================================
   API SECTION
   ============================================================ */
.tb-api-section { background: var(--tb-dark-2); }
.tb-api-section .tb-section-title { color: #fff; }
.tb-api-section .text-muted { color: rgba(255,255,255,.55) !important; }
.tb-api-features { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.tb-api-features li { color: rgba(255,255,255,.8); font-size: .95rem; }

.tb-code-window {
    background: #0D1117;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--tb-radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.tb-code-header {
    background: #161B22;
    padding: .8rem 1rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.tb-code-dot { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.tb-code-dot--2 { background: #FFBD2E; }
.tb-code-dot--3 { background: #28CA41; }
.tb-code-lang { margin-left: .5rem; font-size: .78rem; color: rgba(255,255,255,.4); font-weight: 500; }
.tb-code-body {
    padding: 1.5rem;
    margin: 0;
    font-size: .82rem;
    line-height: 1.7;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    overflow-x: auto;
    color: #C9D1D9;
}
.tb-c-comment { color: #6A737D; }
.tb-c-var     { color: #79C0FF; }
.tb-c-kw      { color: #FF7B72; }
.tb-c-cls     { color: #FFA657; }
.tb-c-str     { color: #A5D6FF; }
.tb-c-fn      { color: #D2A8FF; }
.tb-c-num     { color: #F2CC60; }

/* ============================================================
   BLOG
   ============================================================ */
.tb-blog-card {
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-lg);
    overflow: hidden;
    transition: var(--tb-transition);
    display: flex;
    flex-direction: column;
}
.tb-blog-card:hover { box-shadow: var(--tb-shadow-hover); transform: translateY(-3px); border-color: var(--tb-primary); }
.tb-blog-cover {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}
.tb-blog-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.tb-blog-category { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* ============================================================
   FAQ
   ============================================================ */
.tb-accordion-item {
    border: 1px solid var(--tb-border) !important;
    border-radius: var(--tb-radius) !important;
    margin-bottom: .5rem;
    overflow: hidden;
}
.tb-accordion-btn {
    font-weight: 600;
    font-size: .95rem;
    background: #fff !important;
    color: var(--tb-text) !important;
    padding: 1.1rem 1.25rem;
    box-shadow: none !important;
}
.tb-accordion-btn:not(.collapsed) { color: var(--tb-primary) !important; background: rgba(108,99,255,.04) !important; }
.tb-accordion-body { padding: .75rem 1.25rem 1.25rem; color: var(--tb-text-muted); font-size: .92rem; line-height: 1.7; }

/* ============================================================
   CTA FINAL
   ============================================================ */
.tb-cta-final {
    background: linear-gradient(135deg, var(--tb-dark) 0%, #1a1040 100%);
    position: relative;
    overflow: hidden;
}
.tb-cta-final::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(108,99,255,.2) 0%, transparent 70%);
    pointer-events: none;
}
.tb-cta-inner { position: relative; z-index: 1; }
.tb-cta-icon-wrap { display: inline-block; }
.tb-cta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: .75rem;
}
.tb-cta-subtitle { font-size: 1.05rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.tb-footer { background: var(--tb-dark); }
.tb-footer-newsletter {
    background: var(--tb-dark-2);
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 2rem 0;
}
.tb-footer-newsletter .form-control {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
}
.tb-footer-newsletter .form-control::placeholder { color: rgba(255,255,255,.4); }
.tb-footer-newsletter .form-control:focus { background: rgba(255,255,255,.12); border-color: var(--tb-primary); box-shadow: none; color: #fff; }

.tb-footer-main { padding: 3.5rem 0 2rem; }
.tb-footer-links { display: flex; flex-direction: column; gap: .4rem; }
.tb-footer-links a { color: rgba(255,255,255,.5); text-decoration: none; font-size: .88rem; transition: var(--tb-transition); }
.tb-footer-links a:hover { color: var(--tb-primary); }

.tb-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 1.25rem 0;
}

.tb-social-btn {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--tb-transition);
}
.tb-social-btn:hover { background: var(--tb-primary); border-color: var(--tb-primary); color: #fff; transform: translateY(-2px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .tb-hero { padding: 5rem 0 3rem; min-height: auto; }
    .tb-hero-title { font-size: 2.2rem; }
    .tb-upload-zone { padding: 2rem 1rem; }
    .tb-shield-wrap { width: 200px; height: 200px; }
    .tb-shield-icon { font-size: 4.5rem; }
    .tb-shield-ring--3 { display: none; }
    .py-6 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .tb-code-body { font-size: .72rem; }
}

@media (max-width: 576px) {
    .tb-quick-tools .tb-quick-label { display: none; }
    .tb-stats .tb-stat-value { font-size: 1.6rem; }
    .tb-tool-card { padding: .9rem .5rem .75rem; }
    .tb-tool-icon { font-size: 1.4rem; }
}

/* Scroll-to-top floating button (added by JS) */
#scrollToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--tb-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(108,99,255,.35);
    transition: var(--tb-transition);
}
#scrollToTop:hover { background: var(--tb-primary-dark); transform: translateY(-2px); }
#scrollToTop.visible { display: flex; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.tb-auth-section {
    background: linear-gradient(135deg, #F0F4FF 0%, #EFF6FF 100%);
    min-height: 100vh;
    padding: 2rem 0;
}
.min-vh-auth { min-height: calc(100vh - 80px); }

.tb-auth-card {
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-lg);
    padding: 2.5rem;
    box-shadow: 0 8px 40px rgba(0,0,0,.07);
}

.tb-auth-logo svg { display: block; margin: 0 auto; }

.tb-input {
    border-radius: 10px;
    border: 1.5px solid var(--tb-border);
    padding: .6rem .9rem;
    font-size: .92rem;
    transition: var(--tb-transition);
}
.tb-input:focus {
    border-color: var(--tb-primary);
    box-shadow: 0 0 0 3px rgba(108,99,255,.12);
}

.tb-auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--tb-text-muted);
    font-size: .82rem;
}
.tb-auth-divider::before, .tb-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--tb-border);
}

/* Password strength bar */
.tb-pwd-strength {
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    overflow: hidden;
}
.tb-pwd-bar {
    height: 100%;
    border-radius: 2px;
    transition: width .3s, background .3s;
    width: 0%;
}

/* ============================================================
   ACCOUNT / DASHBOARD
   ============================================================ */
.tb-account-layout {
    display: flex;
    min-height: 100vh;
}

.tb-account-sidebar {
    width: 240px;
    min-width: 240px;
    background: var(--tb-dark);
    display: flex;
    flex-direction: column;
    padding: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.tb-sidebar-brand {
    padding: 1.25rem 1.25rem .75rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.tb-sidebar-user {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.tb-sidebar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--tb-primary), var(--tb-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .82rem;
    color: #fff;
    flex-shrink: 0;
}

.tb-plan-badge {
    display: inline-block;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .15rem .5rem;
    border-radius: 4px;
}
.tb-plan-badge--free     { background: rgba(255,255,255,.1); color: rgba(255,255,255,.6); }
.tb-plan-badge--pro      { background: rgba(108,99,255,.3); color: var(--tb-primary); }
.tb-plan-badge--business { background: rgba(34,197,94,.2); color: #22C55E; }

.tb-sidebar-nav {
    flex: 1;
    padding: .75rem .75rem 1.25rem;
    display: flex;
    flex-direction: column;
}
.tb-sidebar-section-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.3);
    padding: .4rem .5rem .2rem;
    margin-top: .25rem;
}
.tb-sidebar-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .75rem;
    border-radius: 8px;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    transition: var(--tb-transition);
    margin-bottom: 2px;
}
.tb-sidebar-link i { font-size: 1rem; }
.tb-sidebar-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.tb-sidebar-link.active { background: rgba(108,99,255,.2); color: var(--tb-primary); }
.tb-sidebar-link--danger { color: rgba(239,68,68,.7); }
.tb-sidebar-link--danger:hover { background: rgba(239,68,68,.1); color: #EF4444; }

.tb-account-main {
    flex: 1;
    background: #F9FAFB;
    padding: 2rem;
    overflow-x: hidden;
}

.tb-page-header { padding-bottom: 1rem; border-bottom: 1px solid var(--tb-border); }

.tb-dash-card {
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--tb-transition);
}
.tb-dash-card:hover { box-shadow: var(--tb-shadow); }
.tb-dash-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.tb-dash-card-value { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 800; }
.tb-dash-card-label { font-size: .78rem; color: var(--tb-text-muted); font-weight: 500; }

.tb-dash-section {
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    padding: 1.5rem;
}
.tb-dash-section--danger { border-color: rgba(239,68,68,.3); background: #FFF5F5; }

.tb-table { font-size: .88rem; }
.tb-table thead th { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tb-text-muted); border-bottom: 2px solid var(--tb-border); }
.tb-table td { vertical-align: middle; }

.tb-empty-state i { opacity: .35; }

.tb-upsell-banner {
    background: linear-gradient(135deg, var(--tb-dark), #1a1040);
    border-radius: var(--tb-radius);
    padding: 1.25rem 1.5rem;
    color: #fff;
}
.tb-upsell-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    flex-shrink: 0;
}

/* ============================================================
   PAGES — Hero (pricing, about, contact, etc.)
   ============================================================ */
.tb-page-hero {
    background: linear-gradient(135deg, #F8F5FF 0%, #EFF6FF 100%);
    padding: 4rem 0;
    border-bottom: 1px solid var(--tb-border);
}
.tb-page-hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-top: .75rem;
    margin-bottom: .75rem;
}

/* ============================================================
   PRICING PAGE extras
   ============================================================ */
.tb-col-popular { background: rgba(108,99,255,.05); font-weight: 700; }
.tb-compare-table th, .tb-compare-table td { padding: .75rem 1rem; vertical-align: middle; border-bottom: 1px solid var(--tb-border); }
.tb-compare-table thead th { font-weight: 700; text-align: center; background: #F9FAFB; }
.opacity-40 { opacity: .4; }
.tb-guarantee-badge {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #D1FAE5;
    border-radius: 12px;
    padding: .75rem 1.5rem;
    font-size: .92rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.05);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.tb-contact-info-card {
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--tb-transition);
}
.tb-contact-info-card:hover { box-shadow: var(--tb-shadow); border-color: var(--tb-primary); }
.tb-contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.tb-legal-content h4 { border-top: 1px solid var(--tb-border); padding-top: 1.5rem; }
.tb-legal-toc {
    background: #F9FAFB;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    padding: 1.25rem;
}
.tb-legal-toc ol { margin: 0; padding-left: 1.25rem; }
.tb-legal-toc li { margin-bottom: .3rem; }
.tb-legal-toc a { color: var(--tb-primary); text-decoration: none; font-size: .88rem; }

/* ============================================================
   TOOL PAGES
   ============================================================ */
.tb-tool-hero {
    background: linear-gradient(135deg, #F8F5FF, #EFF6FF);
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--tb-border);
    text-align: center;
}
.tb-tool-hero-icon { font-size: 3rem; margin-bottom: .75rem; display: block; }
.tb-tool-hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: .5rem;
}

.tb-converter-card {
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-lg);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.06);
}

.tb-upload-zone--dark {
    background: #F9FAFB;
    border-color: rgba(108,99,255,.3);
}

.tb-file-info-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: #F0F4FF;
    border: 1px solid rgba(108,99,255,.2);
    border-radius: var(--tb-radius);
    padding: .75rem 1rem;
}
.tb-file-info-icon { font-size: 1.5rem; }

/* Spinner for conversion progress */
.tb-conv-spinner {
    font-size: 3rem;
    display: inline-block;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.tb-conv-success { font-size: 3.5rem; display: block; }

/* =============================================
   PROGRESS STEP
   ============================================= */
.tb-progress-wrap {
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.tb-progress-icon-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tb-progress-icon-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: currentColor;
    opacity: .08;
}
.tb-progress-ring {
    font-size: 2rem;
    animation: tb-spin 1s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tb-progress-label {
    text-align: center;
}
.tb-progress-msg {
    font-size: .95rem;
    font-weight: 600;
    color: #374151;
}

.tb-progress-bar-wrap { width: 100%; max-width: 360px; }
.tb-progress-bar-track {
    height: 6px;
    background: #e9ecef;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: .5rem;
}
.tb-progress-bar-fill {
    height: 100%;
    border-radius: 99px;
    width: 0%;
    transition: width 1s ease;
}
.tb-progress-bar-fill.progress-bar-striped {
    background-image: linear-gradient(
        45deg,
        rgba(255,255,255,.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255,255,255,.2) 50%,
        rgba(255,255,255,.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
}
.tb-progress-bar-fill.progress-bar-animated {
    animation: tb-progress-stripes .75s linear infinite;
}
@keyframes tb-progress-stripes {
    from { background-position: 1rem 0; }
    to   { background-position: 0 0; }
}

.tb-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tb-progress-pct {
    font-size: .82rem;
    font-weight: 700;
    color: #374151;
}
.tb-progress-eta {
    font-size: .78rem;
    color: #9ca3af;
}

/* =============================================
   DONE STEP
   ============================================= */
.tb-done-wrap {
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tb-done-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 1rem 1.25rem;
}
.tb-done-check {
    width: 40px;
    height: 40px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.tb-done-title {
    font-size: 1rem;
    font-weight: 700;
    color: #15803d;
    line-height: 1.2;
}
.tb-done-sub {
    font-size: .8rem;
    color: #4ade80;
    margin-top: .1rem;
}

.tb-done-file-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f9fb;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 1rem 1.25rem;
}
.tb-done-file-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(108,99,255,.12);  /* fallback */
    background: color-mix(in srgb, currentColor 15%, transparent);
}
.tb-done-file-icon-wrap i {
    font-size: 1.25rem;
    /* icon inherits currentColor from the text-* class */
}
.tb-done-file-info { flex: 1; min-width: 0; }
.tb-done-filename {
    font-size: .9rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: .4rem;
}
.tb-done-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.tb-done-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .73rem;
    font-weight: 600;
    color: #6b7280;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 99px;
    padding: .2rem .6rem;
    white-space: nowrap;
}
.tb-done-pill i { font-size: .7rem; }
.tb-done-pill--size  { color: #7c3aed; border-color: #ede9fe; background: #faf5ff; }
.tb-done-pill--time  { color: #d97706; border-color: #fde68a; background: #fffbeb; }

.tb-done-download-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    padding: .85rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: filter .15s, transform .1s;
}
.tb-done-download-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.tb-done-download-btn:active { transform: translateY(0); }
.tb-done-download-btn i { font-size: 1.1rem; }

.tb-done-another-btn {
    display: block;
    width: 100%;
    padding: .6rem;
    background: none;
    border: none;
    font-size: .85rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    text-align: center;
    transition: color .15s;
}
.tb-done-another-btn:hover { color: #374151; }

/* =============================================
   ERROR STEP
   ============================================= */
.tb-error-wrap {
    padding: 2.5rem 1.5rem;
    text-align: center;
}
.tb-error-icon {
    width: 56px;
    height: 56px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #ef4444;
    font-size: 1.4rem;
}
.tb-error-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: .4rem;
}
.tb-error-msg {
    font-size: .88rem;
    color: #6b7280;
    margin-bottom: 1.25rem;
}
.tb-error-actions { display: flex; gap: .75rem; justify-content: center; }

/* =============================================
   FORMAT PILLS (audio-cutter output selector)
   ============================================= */
.tb-fmt-pill {
    display: inline-flex;
    align-items: center;
    padding: .35rem .85rem;
    border-radius: 99px;
    border: 1.5px solid #dee2e6;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    color: #6b7280;
    background: #fff;
    transition: all .15s;
    user-select: none;
}
.tb-fmt-pill:hover  { border-color: #adb5bd; color: #374151; }
.tb-fmt-pill.active { border-color: var(--tb-primary); background: var(--tb-primary); color: #fff; }

/* =============================================
   AUDIO CUTTER — time range picker
   ============================================= */
.tb-cutter-wrap {
    background: #f8f9fb;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
}

.tb-cutter-label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: .6rem;
}
.tb-cutter-label {
    font-size: .75rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.tb-cutter-track-wrap {
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
    user-select: none;
}
.tb-cutter-track-bg {
    position: absolute;
    inset: 50% 0;
    transform: translateY(-50%);
    height: 6px;
    background: #e9ecef;
    border-radius: 99px;
}
.tb-cutter-range {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    background: var(--tb-primary);
    border-radius: 99px;
    transition: left .05s, width .05s;
}
.tb-cutter-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: #fff;
    border: 2.5px solid var(--tb-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    font-size: .7rem;
    color: var(--tb-primary);
    box-shadow: 0 2px 8px rgba(108,99,255,.25);
    transition: box-shadow .15s, transform .1s;
    z-index: 2;
}
.tb-cutter-handle:active { cursor: grabbing; box-shadow: 0 4px 16px rgba(108,99,255,.4); transform: translate(-50%,-50%) scale(1.15); }

.tb-cutter-times {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: .75rem;
}
.tb-cutter-time-box { display: flex; flex-direction: column; gap: .35rem; }
.tb-cutter-time-box--end { align-items: flex-end; }
.tb-cutter-time-label { font-size: .73rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; }

.tb-cutter-time-inputs {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #fff;
    border: 1.5px solid #e9ecef;
    border-radius: 10px;
    padding: .3rem .5rem;
}
.tb-cutter-time-inputs:focus-within { border-color: var(--tb-primary); box-shadow: 0 0 0 3px rgba(108,99,255,.1); }
.tb-time-part {
    width: 36px;
    border: none;
    outline: none;
    text-align: center;
    font-size: .92rem;
    font-weight: 700;
    color: #111827;
    background: transparent;
    -moz-appearance: textfield;
}
.tb-time-part::-webkit-inner-spin-button,
.tb-time-part::-webkit-outer-spin-button { -webkit-appearance: none; }
.tb-time-sep { font-size: .9rem; font-weight: 700; color: #9ca3af; padding: 0 1px; }

.tb-cutter-duration-badge {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 99px;
    padding: .3rem .75rem;
    font-size: .78rem;
    font-weight: 700;
    color: #6b7280;
    white-space: nowrap;
}

.tb-tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
}
.tb-tool-feature {
    background: #F9FAFB;
    border: 1px solid var(--tb-border);
    border-radius: 20px;
    padding: .3rem .85rem;
    font-size: .8rem;
    font-weight: 500;
    color: var(--tb-text-muted);
}

/* ============================================================
   MOBILE: Account sidebar
   ============================================================ */
@media (max-width: 768px) {
    .tb-account-layout { flex-direction: column; }
    .tb-account-sidebar {
        width: 100%;
        min-width: unset;
        height: auto;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        padding: .5rem;
    }
    .tb-sidebar-brand  { display: none; }
    .tb-sidebar-user   { border: none; padding: .5rem; }
    .tb-sidebar-nav    { flex-direction: row; flex-wrap: wrap; padding: 0; }
    .tb-sidebar-section-label { display: none; }
    .tb-sidebar-link   { padding: .4rem .6rem; font-size: .78rem; }
    .tb-account-main   { padding: 1rem; }
}

/* ================================================================
   TOOL PAGES v2 — per-tool custom views
   ================================================================ */

/* ---- Tool Hero ---- */
.tb-tool-hero-v2 {
    padding: 5rem 0 3rem;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 60%, #16213e 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.tb-tool-hero-v2::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(108,99,255,.25), transparent);
    pointer-events: none;
}
.tb-tool-hero-v2 .tb-hero-eyebrow {
    display: inline-block;
    background: rgba(108,99,255,.18);
    color: #a78bfa;
    border: 1px solid rgba(108,99,255,.35);
    border-radius: 50px;
    padding: .25rem .9rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.tb-tool-hero-v2 h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; }
.tb-tool-hero-v2 .tb-hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.7); max-width: 620px; margin: 0 auto 1.5rem; }
.tb-hero-benefits { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.tb-hero-benefit-pill {
    display: inline-flex; align-items: center; gap: .35rem;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
    border-radius: 50px; padding: .3rem .85rem;
    font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.85);
}
.tb-hero-benefit-pill i { font-size: .85rem; }
.tb-tool-hero-v2 .tb-tool-hero-icon-large {
    width: 88px; height: 88px;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem;
    margin: 0 auto 1.5rem;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
}

/* ---- Converter Card v2 ---- */
.tb-converter-card-v2 {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,.1);
    padding: 2rem;
    border: 1px solid rgba(0,0,0,.06);
}
.tb-upload-zone {
    border: 2.5px dashed rgba(108,99,255,.3);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all .25s ease;
    background: rgba(108,99,255,.02);
}
.tb-upload-zone:hover,
.tb-upload-zone.dragover {
    border-color: var(--tb-primary);
    background: rgba(108,99,255,.06);
    transform: scale(1.01);
}
.tb-upload-icon-wrap { font-size: 3rem; margin-bottom: .75rem; }
.tb-upload-browse { cursor: pointer; text-decoration: underline; }
.tb-file-info-bar {
    display: flex; align-items: center; gap: .75rem;
    padding: .9rem 1.1rem;
    background: #f8f9fb;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}
.tb-file-info-icon { font-size: 1.5rem; flex-shrink: 0; }
.tb-input {
    border-radius: 10px;
    border: 1.5px solid #e9ecef;
    padding: .6rem .9rem;
    font-size: .92rem;
    transition: border-color .2s;
}
.tb-input:focus { border-color: var(--tb-primary); box-shadow: 0 0 0 3px rgba(108,99,255,.12); }

/* ---- Multi-file list ---- */
.tb-multi-file-list { display: flex; flex-direction: column; gap: .5rem; }
.tb-multi-file-row {
    display: flex; align-items: center; gap: .75rem;
    background: #f8f9fb;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: .6rem .9rem;
}
.tb-multi-drag { cursor: grab; color: #9ca3af; font-size: 1.1rem; }
.tb-multi-name { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-multi-file-row.tb-multi-dragging { opacity: .4; }
.tb-multi-file-row.tb-multi-drag-over { border: 2px dashed var(--tb-primary); background: rgba(108,99,255,.06); }
.tb-multi-row--error { border-color: #f87171 !important; background: #fff5f5; }
.tb-multi-status { font-size: .78rem; font-weight: 600; white-space: nowrap; margin-right: .5rem; }
.tb-multi-status--ok    { color: #16a34a; }
.tb-multi-status--error { color: #dc2626; }
.tb-multi-warning-banner {
    display: flex; align-items: center;
    background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5;
    border-radius: 8px; padding: .6rem .9rem; font-size: .85rem;
    margin-bottom: .75rem;
}

/* ---- Image Resizer ---- */
.tb-resize-section-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--tb-text-muted); }

.tb-resize-presets { display: flex; flex-wrap: wrap; gap: .5rem; }
.tb-resize-preset {
    display: flex; flex-direction: column; align-items: center;
    padding: .45rem .75rem; border: 1.5px solid var(--tb-border);
    border-radius: 8px; background: #fff; cursor: pointer; transition: var(--tb-transition);
    line-height: 1.2;
}
.tb-resize-preset:hover { border-color: var(--tb-primary); background: rgba(108,99,255,.04); }
.tb-resize-preset.active { border-color: var(--tb-primary); background: rgba(108,99,255,.08); color: var(--tb-primary); }
.tb-preset-name { font-size: .8rem; font-weight: 700; }
.tb-preset-dims { font-size: .7rem; color: var(--tb-text-muted); }

.tb-resize-mode-tabs { display: flex; background: #f3f4f6; border-radius: 10px; padding: 3px; gap: 3px; }
.tb-resize-mode-tab {
    flex: 1; padding: .45rem .75rem; border: none; border-radius: 8px;
    background: transparent; font-size: .85rem; font-weight: 600; cursor: pointer;
    color: var(--tb-text-muted); transition: var(--tb-transition);
}
.tb-resize-mode-tab.active { background: #fff; color: var(--tb-text); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

.tb-resize-dims-row { display: flex; align-items: center; gap: .75rem; }
.tb-resize-dim-group { flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.tb-resize-dim-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--tb-text-muted); }
.tb-resize-dim-input-wrap { position: relative; }
.tb-resize-dim-input {
    width: 100%; padding: .6rem .6rem .6rem .75rem; padding-right: 2.5rem;
    border: 1.5px solid var(--tb-border); border-radius: 8px;
    font-size: 1.1rem; font-weight: 700; text-align: center;
    background: #fff; transition: var(--tb-transition);
}
.tb-resize-dim-input:focus { border-color: var(--tb-primary); outline: none; box-shadow: 0 0 0 3px rgba(108,99,255,.1); }
.tb-resize-dim-unit {
    position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
    font-size: .72rem; font-weight: 600; color: var(--tb-text-muted); pointer-events: none;
}
.tb-resize-lock-btn {
    width: 2.5rem; height: 2.5rem; border: 1.5px solid var(--tb-border);
    border-radius: 50%; background: #fff; cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--tb-text-muted); transition: var(--tb-transition);
    margin-top: 1.4rem;
}
.tb-resize-lock-btn.active { border-color: var(--tb-primary); color: var(--tb-primary); background: rgba(108,99,255,.07); }

.tb-resize-pct-row { display: flex; flex-direction: column; gap: .75rem; }
.tb-resize-pct-presets { display: flex; gap: .4rem; flex-wrap: wrap; }
.tb-resize-pct-btn {
    padding: .3rem .75rem; border: 1.5px solid var(--tb-border); border-radius: 6px;
    background: #fff; font-size: .82rem; font-weight: 700; cursor: pointer; transition: var(--tb-transition);
    color: var(--tb-text-muted);
}
.tb-resize-pct-btn:hover { border-color: var(--tb-primary); color: var(--tb-primary); }
.tb-resize-pct-btn.active { border-color: var(--tb-primary); background: rgba(108,99,255,.08); color: var(--tb-primary); }
.tb-resize-pct-slider-wrap { display: flex; align-items: center; gap: 1rem; }
.tb-resize-pct-slider { flex: 1; accent-color: var(--tb-primary); height: 4px; cursor: pointer; }
.tb-resize-pct-value { font-size: 1rem; font-weight: 700; min-width: 3rem; text-align: right; }

.tb-resize-output-badge {
    display: inline-flex; align-items: center; margin-top: 1rem;
    padding: .4rem .9rem; background: rgba(108,99,255,.07); border: 1px solid rgba(108,99,255,.2);
    border-radius: 20px; font-size: .85rem; color: var(--tb-primary); font-weight: 600;
}

/* ---- URL input zone ---- */
.tb-url-input-zone {
    background: #f8f9fb;
    border: 1.5px solid #e9ecef;
    border-radius: 16px;
    padding: 1.75rem;
}

/* ---- Screen recorder ---- */
.tb-screen-preview-wrap { position: relative; background: #0f0f1a; border-radius: 14px; overflow: hidden; min-height: 240px; display: flex; align-items: center; justify-content: center; }
.tb-screen-preview { width: 100%; border-radius: 14px; display: block; }
.tb-screen-preview-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tb-record-status { font-size: .85rem; padding: .35rem .9rem; border-radius: 50px; }

/* ---- Progress spinner ---- */
.tb-conv-spinner {
    font-size: 3rem;
    animation: tb-spin 1s linear infinite;
    display: inline-block;
}
@keyframes tb-spin { to { transform: rotate(360deg); } }
.tb-conv-success { font-size: 3.5rem; }

/* ---- How-to steps ---- */
.tb-howto-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 16px rgba(0,0,0,.05);
    height: 100%;
    transition: transform .2s, box-shadow .2s;
}
.tb-howto-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.1); }
.tb-howto-number { font-size: 3rem; font-weight: 900; opacity: .12; line-height: 1; font-family: 'Space Grotesk', sans-serif; }
.tb-howto-icon { font-size: 2.2rem; }
.tb-howto-section { background: linear-gradient(180deg, #f8f9fb 0%, #fff 100%); }

/* ---- Benefits/Why-use grid ---- */
.tb-benefit-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 1.75rem;
    transition: transform .2s, box-shadow .2s;
}
.tb-benefit-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.tb-benefit-icon { font-size: 2rem; margin-bottom: .75rem; }

/* ---- Formats table ---- */
.tb-formats-table { border-radius: 12px; overflow: hidden; border: 1px solid #e9ecef; }
.tb-formats-table thead th { background: #1a1a2e; color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; border: none; padding: .9rem 1rem; }
.tb-formats-table tbody tr { border-bottom: 1px solid #f0f0f0; transition: background .15s; }
.tb-formats-table tbody tr:hover { background: #f8f9fb; }
.tb-formats-table tbody td { padding: .75rem 1rem; vertical-align: middle; }
.tb-fmt-badge { display: inline-block; background: rgba(108,99,255,.1); color: #6c63ff; border-radius: 6px; padding: .2rem .55rem; font-size: .78rem; font-weight: 700; letter-spacing: .04em; }

/* ---- FAQ accordion ---- */
.tb-faq-accordion .tb-faq-item { border: 1px solid #e9ecef; border-radius: 12px; margin-bottom: .75rem; overflow: hidden; }
.tb-faq-accordion .accordion-button { font-size: .95rem; background: #fff; color: #1a1a2e; }
.tb-faq-accordion .accordion-button:not(.collapsed) { background: rgba(108,99,255,.05); color: #6c63ff; box-shadow: none; }
.tb-faq-accordion .accordion-button::after { filter: none; }
.tb-faq-accordion .accordion-body { background: #fafafa; font-size: .9rem; }

/* ---- Tool features strip ---- */
.tb-tool-features {
    display: flex; flex-wrap: wrap; gap: .6rem .75rem;
    justify-content: center;
    padding: 1rem 0 0;
}
.tb-tool-feature {
    display: inline-flex; align-items: center;
    font-size: .82rem; font-weight: 500; color: #6b7280;
}

/* ---- Per-tool hero color accents ---- */
.tb-tool-hero-v2.accent-primary  .tb-tool-hero-icon-large { background: rgba(108,99,255,.15); color: #6c63ff; }
.tb-tool-hero-v2.accent-success  .tb-tool-hero-icon-large { background: rgba(34,197,94,.15);  color: #22c55e; }
.tb-tool-hero-v2.accent-warning  .tb-tool-hero-icon-large { background: rgba(245,158,11,.15); color: #f59e0b; }
.tb-tool-hero-v2.accent-danger   .tb-tool-hero-icon-large { background: rgba(239,68,68,.15);  color: #ef4444; }
.tb-tool-hero-v2.accent-info     .tb-tool-hero-icon-large { background: rgba(6,182,212,.15);  color: #06b6d4; }
.tb-tool-hero-v2.accent-secondary .tb-tool-hero-icon-large { background: rgba(107,114,128,.15); color: #6b7280; }

/* ---- Inline progress bar on video compressor ---- */
.tb-size-estimate { font-size: .82rem; font-weight: 600; color: #6b7280; margin-top: .4rem; }

/* ---- Pitch slider ---- */
.tb-range-control { display: flex; align-items: center; gap: .75rem; }
.tb-range-control input[type=range] { flex: 1; }
.tb-range-value { min-width: 50px; font-weight: 700; text-align: center; }

/* ---- Image preview after upload ---- */
.tb-image-preview-wrap { border-radius: 12px; overflow: hidden; background: #f0f0f0; max-height: 220px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.tb-image-preview-wrap img { max-height: 220px; max-width: 100%; object-fit: contain; }

/* ---- Crop inputs ---- */
.tb-crop-inputs .form-label { font-size: .75rem; margin-bottom: .2rem; }
.tb-crop-inputs input { font-size: .88rem; }

/* ---- QR preview ---- */
.tb-qr-preview { display: flex; align-items: center; justify-content: center; min-height: 180px; border: 1.5px dashed #e9ecef; border-radius: 12px; }

/* ---- Subtitle converter ---- */
.tb-subtitle-note { background: rgba(108,99,255,.06); border-left: 3px solid #6c63ff; border-radius: 0 8px 8px 0; padding: .75rem 1rem; font-size: .85rem; }

/* ================================================================
   RESPONSIVE adjustments for tool pages
   ================================================================ */
@media (max-width: 767.98px) {
    .tb-tool-hero-v2 { padding: 3.5rem 0 2rem; }
    .tb-tool-hero-v2 h1 { font-size: 1.8rem; }
    .tb-converter-card-v2 { padding: 1.25rem; }
    .tb-upload-zone { padding: 2rem 1rem; }
    .tb-howto-number { font-size: 2rem; }
}

/* ================================================================
   SEO EXTRA SECTIONS — use cases, comparison, tech specs, article, cta
   ================================================================ */

/* ---- Use Cases ---- */
.tb-use-cases-section { background: #fff; }
.tb-usecase-card {
    background: #f8f9fb;
    border: 1px solid #eff0f2;
    border-radius: 16px;
    padding: 1.75rem;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tb-usecase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
    border-color: rgba(108,99,255,.2);
}
.tb-usecase-icon { font-size: 2.2rem; margin-bottom: .6rem; }
.tb-usecase-persona {
    display: inline-block;
    background: rgba(108,99,255,.1);
    color: #6c63ff;
    border-radius: 50px;
    padding: .15rem .65rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: .6rem;
}

/* ---- Comparison table ---- */
.tb-comparison-section { background: linear-gradient(180deg, #f8f9fb 0%, #fff 100%); }
.tb-compare-table { border-radius: 14px; overflow: hidden; border: 1px solid #e9ecef; }
.tb-compare-table thead th {
    background: #1a1a2e; color: #fff;
    font-size: .8rem; text-transform: uppercase; letter-spacing: .07em;
    border: none; padding: 1rem;
    vertical-align: middle;
}
.tb-compare-table tbody tr { border-bottom: 1px solid #f0f0f0; }
.tb-compare-table tbody tr:hover { background: #fafafa; }
.tb-compare-table tbody td { padding: .8rem 1rem; vertical-align: middle; font-size: .9rem; }
.tb-compare-highlight {
    background: rgba(108,99,255,.04) !important;
    border-left: 2px solid rgba(108,99,255,.25);
    border-right: 2px solid rgba(108,99,255,.25);
}
.tb-compare-our-badge {
    display: inline-block;
    background: #6c63ff; color: #fff;
    border-radius: 50px; padding: .1rem .55rem;
    font-size: .68rem; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; margin-bottom: .25rem;
}

/* ---- Tech Specs ---- */
.tb-tech-section { background: #fff; }
.tb-spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 575.98px) { .tb-spec-grid { grid-template-columns: 1fr; } }
.tb-spec-item {
    display: flex; align-items: flex-start; gap: .9rem;
    background: #f8f9fb;
    border: 1px solid #eff0f2;
    border-radius: 12px;
    padding: 1.1rem;
}
.tb-spec-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .1rem; }
.tb-spec-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #9ca3af; margin-bottom: .15rem; }
.tb-spec-value { font-size: .92rem; font-weight: 600; color: #1a1a2e; }
.tb-spec-list { list-style: none; padding: 0; margin: 0; }
.tb-spec-list li { padding: .3rem 0; font-size: .88rem; color: #4b5563; }
.tb-tech-tag {
    display: inline-block;
    background: #1a1a2e; color: #a78bfa;
    border-radius: 6px; padding: .2rem .55rem;
    font-size: .73rem; font-weight: 600; font-family: monospace;
    letter-spacing: .03em;
}

/* ---- Article / guide section ---- */
.tb-article-section { background: linear-gradient(180deg, #f8f9fb 0%, #fff 100%); }
.tb-article { max-width: 760px; }
.tb-article-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    color: #1a1a2e;
    margin-bottom: 1.25rem;
}
.tb-article-intro {
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.75;
    border-left: 3px solid #6c63ff;
    padding-left: 1.1rem;
    margin-bottom: 2rem;
}
.tb-article-section { margin-bottom: 2.25rem; }
.tb-article-h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #f0f0f0;
}
.tb-article-body {
    font-size: .94rem;
    color: #4b5563;
    line-height: 1.8;
}
.tb-article-body p  { margin-bottom: .9rem; }
.tb-article-body ul { padding-left: 1.4rem; margin-bottom: .9rem; }
.tb-article-body li { margin-bottom: .35rem; }
.tb-article-body strong { color: #1a1a2e; }
.tb-article-body code {
    background: #f0f0f8; color: #6c63ff;
    border-radius: 4px; padding: .1rem .35rem;
    font-size: .88em;
}
.tb-article-body table { width: 100%; font-size: .88rem; border-collapse: collapse; margin-bottom: 1rem; }
.tb-article-body th { background: #1a1a2e; color: #fff; padding: .5rem .75rem; text-align: left; font-size: .78rem; }
.tb-article-body td { padding: .5rem .75rem; border-bottom: 1px solid #f0f0f0; }
.tb-article-body tr:hover td { background: #fafafa; }

/* ---- CTA Banner ---- */
.tb-tool-cta-banner {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 60%, #16213e 100%);
    position: relative; overflow: hidden;
}
.tb-tool-cta-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(108,99,255,.2), transparent);
    pointer-events: none;
}
.tb-cta-inner { position: relative; z-index: 1; }
.tb-cta-icon { font-size: 2.8rem; margin-bottom: 1rem; }
.tb-cta-inner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.tb-cta-sub { color: rgba(255,255,255,.7); max-width: 560px; margin: 0 auto; font-size: 1rem; }
.tb-cta-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: center; }
.tb-cta-trust-item { font-size: .82rem; color: rgba(255,255,255,.6); }

/* ---- Gradient text (hero headlines) ---- */
.tb-gradient-text {
    background: linear-gradient(90deg, #6c63ff, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
