/* ============================================================
   HARMONYPAL — Main Stylesheet  (v2 — Forge Edition)
   Design: Warm amber/charcoal, editorial, sharp, premium
   ============================================================ */

:root {
    /* -- Brand palette -- */
    --tb-primary:       #F97316;   /* Vivid orange */
    --tb-primary-dark:  #EA6C0A;
    --tb-primary-light: #FFF7ED;
    --tb-secondary:     #1C1917;   /* Near-black warm */
    --tb-accent:        #FBBF24;   /* Amber accent */
    --tb-green:         #16A34A;
    --tb-red:           #DC2626;

    /* -- Surfaces -- */
    --tb-dark:          #0C0A09;   /* Deep warm black */
    --tb-dark-2:        #1C1917;
    --tb-dark-3:        #292524;
    --tb-dark-4:        #3D3836;
    --tb-cream:         #FAFAF9;
    --tb-cream-2:       #F5F5F4;
    --tb-cream-3:       #E7E5E4;

    /* -- Text -- */
    --tb-text:          #1C1917;
    --tb-text-2:        #44403C;
    --tb-text-muted:    #78716C;
    --tb-text-faint:    #A8A29E;

    /* -- Borders -- */
    --tb-border:        #E7E5E4;
    --tb-border-dark:   rgba(255,255,255,.08);

    /* -- Geometry -- */
    --tb-radius:        6px;
    --tb-radius-md:     10px;
    --tb-radius-lg:     14px;
    --tb-radius-xl:     20px;

    /* -- Effects -- */
    --tb-shadow-sm:     0 1px 4px rgba(0,0,0,.06);
    --tb-shadow:        0 4px 16px rgba(0,0,0,.07);
    --tb-shadow-hover:  0 8px 32px rgba(249,115,22,.16);
    --tb-shadow-dark:   0 20px 60px rgba(0,0,0,.4);
    --tb-transition:    .2s cubic-bezier(.4,0,.2,1);
}

/* ---- Base Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

/* ---- Weights ---- */
.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: .1em; }

/* ============================================================
   NAVBAR
   ============================================================ */
.tb-navbar {
    background: var(--tb-dark);
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 0;
    z-index: 1050;
}

.tb-navbar-inner {
    display: flex;
    align-items: stretch;
    height: 58px;
}

.tb-navbar .navbar-brand {
    color: #fff;
    font-family: 'Archivo Black', 'Space Grotesk', sans-serif;
    text-decoration: none;
    padding: 0 1.5rem 0 0;
    border-right: 1px solid rgba(255,255,255,.07);
    display: flex;
    align-items: center;
    gap: .6rem;
    letter-spacing: -.02em;
    font-size: 1.15rem;
}

.tb-logo-mark {
    width: 30px;
    height: 30px;
    background: var(--tb-primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 900;
    color: #fff;
    font-family: 'Archivo Black', sans-serif;
    letter-spacing: -.03em;
    flex-shrink: 0;
}

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

.tb-navbar .navbar-nav {
    display: flex;
    align-items: stretch;
    margin: 0 auto;
    height: 100%;
}

.tb-navbar .nav-item {
    display: flex;
    align-items: stretch;
}

.tb-navbar .nav-link {
    color: rgba(255,255,255,.65) !important;
    font-size: .84rem;
    font-weight: 500;
    padding: 0 .9rem !important;
    display: flex;
    align-items: center;
    gap: .3rem;
    border-bottom: 2px solid transparent;
    transition: var(--tb-transition);
    letter-spacing: .01em;
}
.tb-navbar .nav-link:hover {
    color: #fff !important;
    border-bottom-color: var(--tb-primary);
    background: rgba(255,255,255,.04);
}
.tb-navbar .nav-link.show,
.tb-navbar .nav-link:focus {
    color: #fff !important;
    border-bottom-color: var(--tb-primary);
    background: rgba(255,255,255,.04);
}

.tb-dropdown {
    background: var(--tb-dark-2);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--tb-radius-md);
    min-width: 230px;
    padding: .4rem;
    box-shadow: 0 24px 64px rgba(0,0,0,.5);
    margin-top: 2px !important;
}
.tb-dropdown .dropdown-item {
    color: rgba(255,255,255,.7);
    border-radius: var(--tb-radius);
    padding: .52rem .8rem;
    font-size: .84rem;
    transition: var(--tb-transition);
    display: flex;
    align-items: center;
}
.tb-dropdown .dropdown-item:hover {
    background: rgba(249,115,22,.12);
    color: #fff;
}
.tb-dropdown .dropdown-item i {
    width: 20px;
    flex-shrink: 0;
}

.tb-nav-divider {
    width: 1px;
    background: rgba(255,255,255,.07);
    margin: .75rem .25rem;
}

.tb-search-form { max-width: 200px; }
.tb-search-input {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    font-size: .83rem;
    border-radius: var(--tb-radius);
    height: 34px;
}
.tb-search-input::placeholder { color: rgba(255,255,255,.35); }
.tb-search-input:focus {
    background: rgba(255,255,255,.1);
    border-color: var(--tb-primary);
    box-shadow: 0 0 0 3px rgba(249,115,22,.15);
    color: #fff;
}

.tb-navbar-toggler {
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--tb-radius);
    padding: .3rem .6rem;
    color: #fff;
    background: none;
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
.tb-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--tb-primary-light);
    color: var(--tb-primary);
    border: 1px solid rgba(249,115,22,.25);
    border-radius: 4px;
    padding: .2rem .7rem;
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* backward compat */
.tb-section-badge { display: inline-block; background: var(--tb-primary-light); color: var(--tb-primary); border: 1px solid rgba(249,115,22,.25); border-radius: 4px; padding: .2rem .7rem; font-size: .73rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tb-badge-ai { background: linear-gradient(135deg,rgba(249,115,22,.15),rgba(251,191,36,.15)); color: var(--tb-accent); border-color: rgba(251,191,36,.35); }

.tb-section-title {
    font-family: 'Archivo Black', 'Space Grotesk', sans-serif;
    font-size: clamp(1.65rem, 4vw, 2.4rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.025em;
    color: var(--tb-text);
    margin-top: .4rem;
    margin-bottom: .6rem;
}
.tb-section-subtitle {
    color: var(--tb-text-muted);
    font-size: 1rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

/* Horizontal rule decorative */
.tb-rule {
    display: block;
    height: 2px;
    width: 40px;
    background: var(--tb-primary);
    border: none;
    margin: 0;
    border-radius: 2px;
}

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

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

/* Grid pattern */
.tb-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
    background-size: 52px 52px;
}

/* Orange glow orb — lower left */
.tb-hero-glow {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(249,115,22,.14) 0%, transparent 65%);
    animation: heroGlowPulse 8s ease-in-out infinite;
}
/* Amber glow — upper right */
.tb-hero-glow-2 {
    position: absolute;
    top: -150px;
    right: -50px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(251,191,36,.08) 0%, transparent 65%);
    animation: heroGlowPulse 10s ease-in-out infinite;
    animation-delay: -4s;
}
@keyframes heroGlowPulse {
    0%,100% { opacity: .6; transform: scale(1); }
    50%      { opacity: 1;  transform: scale(1.06); }
}

/* Floating particles */
.tb-hero-particle {
    position: absolute;
    border-radius: 50%;
    animation: floatParticle 14s ease-in-out infinite;
}
.tb-hero-particle--1 { width: 320px; height: 320px; top: -60px; right: -60px; background: radial-gradient(circle, rgba(249,115,22,.09), transparent 70%); }
.tb-hero-particle--2 { width: 200px; height: 200px; bottom: 80px; left: 10%; background: radial-gradient(circle, rgba(251,191,36,.07), transparent 70%); animation-delay: -5s; }
.tb-hero-particle--3 { width: 120px; height: 120px; top: 35%; right: 20%; background: radial-gradient(circle, rgba(249,115,22,.07), transparent 70%); animation-delay: -9s; }
@keyframes floatParticle {
    0%,100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-24px) rotate(8deg); }
}

.tb-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(249,115,22,.12);
    border: 1px solid rgba(249,115,22,.3);
    border-radius: 4px;
    padding: .35rem 1rem;
    color: var(--tb-accent);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.tb-hero-badge i { color: var(--tb-primary); }

.tb-hero-title {
    font-family: 'Archivo Black', 'Space Grotesk', sans-serif;
    font-size: clamp(2.4rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.04em;
    color: #fff;
    margin-bottom: 1.25rem;
}

.tb-gradient-text {
    background: linear-gradient(120deg, var(--tb-primary) 0%, var(--tb-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.tb-gradient-text-2 {
    background: linear-gradient(120deg, var(--tb-accent) 0%, #FDE68A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tb-hero-subtitle {
    color: rgba(255,255,255,.55);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.75;
    font-weight: 400;
}

/* Upload Zone */
.tb-upload-zone {
    background: var(--tb-cream);
    border: 2px dashed var(--tb-cream-3);
    border-radius: var(--tb-radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--tb-transition);
}
.tb-upload-zone:hover, .tb-upload-zone.dragover {
    background: var(--tb-primary-light);
    border-color: var(--tb-primary);
    box-shadow: 0 0 0 4px rgba(249,115,22,.08);
}

.tb-upload-detected {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .25rem .5rem;
}
.tb-upload-detected-icon {
    width: 48px; height: 48px;
    background: rgba(249,115,22,.15);
    border-radius: 8px;
    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,.45); margin-top: .1rem; }

.tb-upload-icon {
    font-size: 2.75rem;
    color: var(--tb-primary);
    display: block;
    margin-bottom: .6rem;
    animation: uploadBounce 2.5s ease-in-out infinite;
}
@keyframes uploadBounce {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}
.tb-upload-text { color: var(--tb-text-2); font-size: 1rem; margin-bottom: .2rem; font-weight: 500; }
.tb-upload-browse { color: var(--tb-primary); text-decoration: underline; cursor: pointer; font-weight: 700; }
.tb-upload-hint { color: var(--tb-text-muted); font-size: .82rem; }

/* Quick tools pills */
.tb-quick-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; align-items: center; }
.tb-quick-label { color: rgba(255,255,255,.35); font-size: .8rem; }
.tb-quick-pill {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 4px;
    padding: .25rem .8rem;
    color: rgba(255,255,255,.7);
    font-size: .8rem;
    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(249,115,22,.15); border-color: rgba(249,115,22,.35); color: var(--tb-primary); }
.tb-quick-pill--more:hover { background: var(--tb-primary); color: #fff; }

/* ============================================================
   STATS
   ============================================================ */
.tb-stats {
    background: var(--tb-cream);
    border-top: 1px solid var(--tb-border);
    border-bottom: 1px solid var(--tb-border);
}
.tb-stat-card {
    padding: 1.75rem 1.25rem;
    border-radius: var(--tb-radius-md);
    transition: var(--tb-transition);
    position: relative;
}
.tb-stat-card:hover { transform: translateY(-3px); }
.tb-stat-card + .tb-stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: var(--tb-border);
}
.tb-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}
.tb-stat-icon--primary  { background: rgba(249,115,22,.1); color: var(--tb-primary); }
.tb-stat-icon--success  { background: rgba(22,163,74,.1);  color: #16A34A; }
.tb-stat-icon--warning  { background: rgba(251,191,36,.15); color: #D97706; }
.tb-stat-icon--info     { background: rgba(14,165,233,.1);  color: #0284C7; }
.tb-stat-value {
    font-family: 'Archivo Black', sans-serif;
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--tb-text);
    line-height: 1;
    margin-bottom: .2rem;
    letter-spacing: -.03em;
}
.tb-stat-label { color: var(--tb-text-muted); font-size: .82rem; font-weight: 500; }

/* ============================================================
   TRUSTED BRANDS TICKER
   ============================================================ */
.tb-trusted { background: #fff; 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 20s 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: .9rem;
    color: var(--tb-text-faint);
    letter-spacing: .03em;
    white-space: nowrap;
    padding: .4rem 1.25rem;
    border-radius: var(--tb-radius);
    transition: var(--tb-transition);
}
.tb-brand-item:hover { color: var(--tb-primary); background: var(--tb-primary-light); }

/* ============================================================
   TOOLS CATALOG
   ============================================================ */
.tb-category-tabs { gap: .35rem; flex-wrap: wrap; }
.tb-tab-btn {
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    padding: .38rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--tb-text-muted);
    cursor: pointer;
    transition: var(--tb-transition);
    outline: none;
    letter-spacing: .01em;
}
.tb-tab-btn:hover { border-color: var(--tb-primary); color: var(--tb-primary); background: var(--tb-primary-light); }
.tb-tab-btn.active {
    background: var(--tb-primary);
    border-color: var(--tb-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(249,115,22,.3);
}

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

.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-md);
    padding: 1.25rem .75rem 1rem;
    position: relative;
    overflow: hidden;
    transition: var(--tb-transition);
    cursor: pointer;
    min-height: 100px;
}
.tb-tool-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--tb-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.tb-tool-card:hover {
    border-color: rgba(249,115,22,.4);
    box-shadow: var(--tb-shadow-hover);
    transform: translateY(-3px);
}
.tb-tool-card:hover::before { transform: scaleX(1); }
.tb-tool-card:hover .tb-tool-icon { transform: scale(1.12); }

.tb-tool-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: .62rem;
    font-weight: 800;
    padding: .12rem .4rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.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: var(--tb-primary); color: #fff; }
.tb-tool-badge--free    { background: #F0FDF4; color: #15803D; }

.tb-tool-icon { font-size: 1.7rem; margin-bottom: .45rem; transition: var(--tb-transition); }
.tb-tool-name { font-size: .8rem; font-weight: 700; color: var(--tb-text); margin-bottom: .12rem; letter-spacing: .01em; }
.tb-tool-desc { font-size: .7rem; color: var(--tb-text-muted); }

/* ============================================================
   FEATURES
   ============================================================ */
.tb-feature-card {
    background: var(--tb-cream);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-md);
    padding: 1.75rem;
    transition: var(--tb-transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.tb-feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--tb-primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .3s ease;
}
.tb-feature-card:hover { border-color: rgba(249,115,22,.3); box-shadow: var(--tb-shadow-hover); transform: translateY(-2px); }
.tb-feature-card:hover::after { transform: scaleY(1); }
.tb-feature-icon { font-size: 1.75rem; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.tb-how-it-works { background: var(--tb-dark); }
.tb-how-it-works .tb-section-title { color: #fff; }
.tb-how-it-works .tb-section-subtitle { color: rgba(255,255,255,.5) !important; }

.tb-step-card {
    background: var(--tb-dark-2);
    border-radius: var(--tb-radius-md);
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255,255,255,.07);
    position: relative;
    transition: var(--tb-transition);
    height: 100%;
}
.tb-step-card:hover { box-shadow: 0 16px 48px rgba(0,0,0,.5); transform: translateY(-4px); border-color: rgba(249,115,22,.3); }

.tb-step-number {
    position: absolute;
    top: -1px;
    right: 14px;
    font-family: 'Archivo Black', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(249,115,22,.06);
    line-height: 1;
}
.tb-step-icon {
    width: 56px;
    height: 56px;
    background: rgba(249,115,22,.12);
    border: 1px solid rgba(249,115,22,.25);
    border-radius: var(--tb-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--tb-primary);
    margin: 0 auto;
}

/* ============================================================
   AI SECTION
   ============================================================ */
.tb-ai-section { background: var(--tb-cream); }
.tb-ai-section .tb-section-title { color: var(--tb-text); }

.tb-ai-tools-list { display: flex; flex-direction: column; gap: .75rem; }
.tb-ai-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-md);
    padding: .85rem 1rem;
    transition: var(--tb-transition);
}
.tb-ai-item:hover { background: var(--tb-primary-light); border-color: rgba(249,115,22,.35); }
.tb-ai-item-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--tb-primary), var(--tb-accent));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}
.tb-ai-item .fw-600 { color: var(--tb-text); }

/* AI Visual Demo */
.tb-ai-visual { padding: .5rem; }
.tb-ai-card-demo {
    background: var(--tb-dark);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--tb-radius-lg);
    overflow: hidden;
    box-shadow: var(--tb-shadow-dark);
}
.tb-ai-demo-header {
    padding: .65rem 1rem;
    background: var(--tb-dark-2);
    border-bottom: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    gap: .3rem;
}
.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.25rem; }

.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,.5); }
.tb-wave-bar--after  { background: linear-gradient(to top, var(--tb-primary), var(--tb-accent)); }

.tb-ai-processing-badge {
    background: rgba(249,115,22,.1);
    border: 1px solid rgba(249,115,22,.25);
    border-radius: var(--tb-radius);
    padding: .45rem 1rem;
    color: var(--tb-primary);
    font-size: .8rem;
    font-weight: 700;
    text-align: center;
}
.tb-ai-progress { height: 3px; background: rgba(249,115,22,.15); 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-md);
    padding: 1.25rem;
    height: 100%;
}
.tb-format-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tb-format-tag {
    background: var(--tb-cream-2);
    border: 1px solid var(--tb-border);
    border-radius: 3px;
    padding: .18rem .52rem;
    font-size: .72rem;
    font-weight: 700;
    color: var(--tb-text-2);
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: var(--tb-transition);
    cursor: default;
}
.tb-format-tag:hover { background: var(--tb-primary); color: #fff; border-color: var(--tb-primary); }

/* ============================================================
   POPULAR TOOLS
   ============================================================ */
.tb-popular-card {
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-md);
    padding: 1.1rem;
    transition: var(--tb-transition);
    color: var(--tb-text);
}
.tb-popular-card:hover { border-color: rgba(249,115,22,.4); box-shadow: var(--tb-shadow-hover); transform: translateY(-2px); color: var(--tb-text); }
.tb-popular-rank { font-family: 'Archivo Black', sans-serif; font-size: 1rem; font-weight: 900; color: var(--tb-text-faint); min-width: 32px; opacity: .5; }
.tb-popular-icon { font-size: 1.9rem; min-width: 44px; text-align: center; }
.tb-popular-usage {
    display: inline-flex;
    align-items: center;
    background: #FEF3C7;
    color: #92400E;
    border-radius: 3px;
    padding: .12rem .45rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
}

/* ============================================================
   SECURITY
   ============================================================ */
.tb-security-section { background: var(--tb-dark); }
.tb-security-section .tb-section-title { color: #fff; }
.tb-security-section .tb-section-subtitle { color: rgba(255,255,255,.5) !important; }
.tb-security-section .tb-section-badge { background: rgba(249,115,22,.15); color: var(--tb-primary); border-color: rgba(249,115,22,.3); }
.tb-security-section .text-muted { color: rgba(255,255,255,.5) !important; }

.tb-sec-item {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .85rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--tb-radius-md);
    height: 100%;
    transition: var(--tb-transition);
}
.tb-sec-item:hover { background: rgba(249,115,22,.08); border-color: rgba(249,115,22,.2); }

/* Shield Visual */
.tb-security-visual { position: relative; padding: 2.5rem; }
.tb-shield-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 240px;
    margin: 0 auto;
}
.tb-shield-icon { font-size: 5.5rem; color: var(--tb-primary); position: relative; z-index: 3; }
.tb-shield-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(249,115,22,.2);
    animation: shieldPulse 3.5s ease-in-out infinite;
}
.tb-shield-ring--1 { width: 120px; height: 120px; animation-delay: 0s; }
.tb-shield-ring--2 { width: 180px; height: 180px; animation-delay: .7s; }
.tb-shield-ring--3 { width: 240px; height: 240px; animation-delay: 1.4s; }
@keyframes shieldPulse {
    0%,100% { opacity: .4; 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: var(--tb-dark-2);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 6px;
    padding: .3rem .7rem;
    font-size: .73rem;
    font-weight: 700;
    color: rgba(255,255,255,.8);
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    z-index: 4;
    white-space: nowrap;
}
.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: var(--tb-radius);
    padding: .3rem .7rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--tb-text);
    box-shadow: var(--tb-shadow-sm);
}

.tb-testimonial-card {
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-md);
    padding: 1.75rem;
    height: 100%;
    transition: var(--tb-transition);
    position: relative;
}
.tb-testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: .75rem;
    right: 1.25rem;
    font-size: 3.5rem;
    font-family: Georgia, serif;
    color: rgba(249,115,22,.12);
    font-weight: 900;
    line-height: 1;
}
.tb-testimonial-card:hover { border-color: rgba(249,115,22,.35); box-shadow: var(--tb-shadow-hover); }
.tb-stars { font-size: .88rem; letter-spacing: .05em; }

.tb-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .8rem;
    color: #fff;
    flex-shrink: 0;
}
.tb-avatar--primary   { background: linear-gradient(135deg, var(--tb-primary), var(--tb-accent)); }
.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, #0EA5E9, #0284C7); }
.tb-avatar--secondary { background: linear-gradient(135deg, #78716C, #44403C); }

/* ============================================================
   PRICING
   ============================================================ */
.tb-pricing-card {
    background: #fff;
    border: 1.5px 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 16px 48px rgba(0,0,0,.07); transform: translateY(-3px); }
.tb-pricing-card--popular {
    border-color: var(--tb-primary);
    box-shadow: 0 0 0 1px var(--tb-primary), 0 16px 48px rgba(249,115,22,.12);
}
.tb-pricing-popular-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tb-primary);
    color: #fff;
    border-radius: 4px;
    padding: .2rem 1rem;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.tb-pricing-name { font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .5rem; color: var(--tb-text-muted); }
.tb-pricing-price { display: flex; align-items: baseline; gap: .1rem; margin-bottom: 1.25rem; }
.tb-pricing-currency { font-size: 1.1rem; font-weight: 700; color: var(--tb-text-muted); }
.tb-pricing-amount { font-family: 'Archivo Black', sans-serif; font-size: 2.8rem; font-weight: 900; line-height: 1; color: var(--tb-text); letter-spacing: -.04em; }
.tb-pricing-period { color: var(--tb-text-muted); font-size: .88rem; }
.tb-pricing-features { list-style: none; padding: 0; margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: .45rem; }
.tb-pricing-features li { font-size: .88rem; color: var(--tb-text-2); display: flex; align-items: flex-start; gap: .4rem; }

/* ============================================================
   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,.5) !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,.75); font-size: .92rem; }

.tb-code-window {
    background: #0D0D0D;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--tb-radius-md);
    overflow: hidden;
    box-shadow: var(--tb-shadow-dark);
}
.tb-code-header {
    background: #161616;
    padding: .7rem 1rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.tb-code-dot { width: 11px; height: 11px; 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: .75rem; color: rgba(255,255,255,.35); font-weight: 500; }
.tb-code-body {
    padding: 1.5rem;
    margin: 0;
    font-size: .81rem;
    line-height: 1.75;
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
    overflow-x: auto;
    color: #C9D1D9;
}
.tb-c-comment { color: #5C6370; }
.tb-c-var     { color: #79C0FF; }
.tb-c-kw      { color: #FF7B72; }
.tb-c-cls     { color: #FBBF24; }
.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-md);
    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: rgba(249,115,22,.35);
}
.tb-blog-cover {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tb-cream);
    border-bottom: 1px solid var(--tb-border);
    position: relative;
    overflow: hidden;
}
.tb-blog-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(249,115,22,.08) 0%, transparent 70%);
}
.tb-blog-cover-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
/* per-color tints for the icon box */
.tb-blog-cover-icon--primary   { background: rgba(249,115,22,.12);  color: var(--tb-primary); }
.tb-blog-cover-icon--success   { background: rgba(34,197,94,.12);   color: #16a34a; }
.tb-blog-cover-icon--info      { background: rgba(6,182,212,.12);   color: #0891b2; }
.tb-blog-cover-icon--warning   { background: rgba(245,158,11,.12);  color: #b45309; }
.tb-blog-cover-icon--danger    { background: rgba(239,68,68,.12);   color: #dc2626; }
.tb-blog-cover-icon--secondary { background: rgba(107,114,128,.12); color: #4b5563; }

.tb-blog-body { padding: 1.35rem; flex: 1; display: flex; flex-direction: column; }
.tb-blog-category {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.tb-blog-card h5 {
    font-size: .93rem;
    line-height: 1.45;
    color: var(--tb-text);
}
.tb-blog-card .text-muted {
    font-size: .81rem;
    color: var(--tb-text-2) !important;
    line-height: 1.6;
}

/* ============================================================
   FAQ
   ============================================================ */
.tb-accordion-item {
    border: 1px solid var(--tb-border) !important;
    border-radius: var(--tb-radius-md) !important;
    margin-bottom: .4rem;
    overflow: hidden;
}
.tb-accordion-btn {
    font-weight: 600;
    font-size: .92rem;
    background: #fff !important;
    color: var(--tb-text) !important;
    padding: 1rem 1.25rem;
    box-shadow: none !important;
}
.tb-accordion-btn:not(.collapsed) { color: var(--tb-primary) !important; background: var(--tb-primary-light) !important; }
.tb-accordion-body { padding: .6rem 1.25rem 1.1rem; color: var(--tb-text-muted); font-size: .9rem; line-height: 1.7; background: #fff; }

/* ============================================================
   CTA FINAL
   ============================================================ */
.tb-cta-final {
    background: var(--tb-primary);
    position: relative;
    overflow: hidden;
}
.tb-cta-final::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
    pointer-events: none;
}
.tb-cta-final::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 300px;
    height: 300px;
    background: rgba(0,0,0,.08);
    border-radius: 50%;
    pointer-events: none;
}
.tb-cta-inner { position: relative; z-index: 1; }
.tb-cta-icon-wrap { display: inline-block; }
.tb-cta-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(1.65rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -.03em;
    margin-bottom: .6rem;
    color: #fff;
}
.tb-cta-subtitle { font-size: 1rem; color: rgba(255,255,255,.75); }

/* ============================================================
   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,.07);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    border-radius: var(--tb-radius);
}
.tb-footer-newsletter .form-control::placeholder { color: rgba(255,255,255,.35); }
.tb-footer-newsletter .form-control:focus { background: rgba(255,255,255,.1); border-color: var(--tb-primary); box-shadow: none; color: #fff; }

.tb-footer-main { padding: 3rem 0 1.5rem; }
.tb-footer-links { display: flex; flex-direction: column; gap: .35rem; }
.tb-footer-links a { color: rgba(255,255,255,.45); text-decoration: none; font-size: .85rem; 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: 34px;
    height: 34px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--tb-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.5);
    text-decoration: none;
    font-size: .95rem;
    transition: var(--tb-transition);
}
.tb-social-btn:hover { background: var(--tb-primary); border-color: var(--tb-primary); color: #fff; transform: translateY(-2px); }

/* ============================================================
   TOOL PAGES — Converter widget section
   ============================================================ */
.tb-converter-section { background: var(--tb-dark); }
.tb-converter-section .tb-section-title { color: #fff; }
.tb-converter-section .text-muted { color: rgba(255,255,255,.5) !important; }

.tb-converter-card {
    background: var(--tb-dark-2);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--tb-radius-lg);
    overflow: hidden;
}
.tb-converter-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--tb-dark-3);
}
.tb-converter-body { padding: 1.5rem; }

.tb-output-btn {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--tb-radius);
    padding: .3rem .8rem;
    color: rgba(255,255,255,.7);
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    cursor: pointer;
    transition: var(--tb-transition);
}
.tb-output-btn:hover,
.tb-output-btn.active { background: var(--tb-primary); border-color: var(--tb-primary); color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .tb-navbar-inner { height: auto; flex-wrap: wrap; }
    .tb-navbar { padding: .6rem 0; }
    .tb-navbar .navbar-brand { border-right: none; padding-right: 0; }
    .tb-navbar .nav-link { padding: .5rem .75rem !important; border-bottom: none; border-left: 2px solid transparent; }
    .tb-navbar .nav-link:hover { border-bottom: none; border-left-color: var(--tb-primary); }
}

@media (max-width: 768px) {
    .tb-hero { padding: 4.5rem 0 3rem; min-height: auto; }
    .tb-hero-title { font-size: 2.1rem; letter-spacing: -.03em; }
    .tb-upload-zone { padding: 1.75rem 1rem; }
    .tb-shield-wrap { width: 180px; height: 180px; }
    .tb-shield-icon { font-size: 4rem; }
    .tb-shield-ring--3 { display: none; }
    .py-6 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .tb-code-body { font-size: .72rem; }
    .tb-stat-card + .tb-stat-card::before { display: none; }
}

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

/* ============================================================
   SCROLL-TO-TOP
   ============================================================ */
#scrollToTop {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    width: 42px;
    height: 42px;
    background: var(--tb-primary);
    color: #fff;
    border: none;
    border-radius: var(--tb-radius);
    font-size: 1rem;
    cursor: pointer;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(249,115,22,.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: var(--tb-cream);
    min-height: 100vh;
    padding: 2rem 0;
}
.min-vh-auth { min-height: calc(100vh - 58px); }

.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,.06);
}

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

.tb-input {
    border-radius: var(--tb-radius-md);
    border: 1.5px solid var(--tb-border);
    padding: .6rem .9rem;
    font-size: .9rem;
    transition: var(--tb-transition);
}
.tb-input:focus {
    border-color: var(--tb-primary);
    box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}

.tb-auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    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);
}

/* ============================================================
   ACCOUNT PAGES
   ============================================================ */
.tb-account-sidebar {
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-md);
    overflow: hidden;
}
.tb-sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1rem;
    color: var(--tb-text-2);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    border-left: 2px solid transparent;
    transition: var(--tb-transition);
}
.tb-sidebar-nav-link:hover { background: var(--tb-primary-light); color: var(--tb-primary); border-left-color: var(--tb-primary); }
.tb-sidebar-nav-link.active { background: var(--tb-primary-light); color: var(--tb-primary); border-left-color: var(--tb-primary); font-weight: 700; }

/* ============================================================
   BUTTONS — Override Bootstrap with brand colors
   ============================================================ */
.btn-primary {
    background-color: var(--tb-primary) !important;
    border-color: var(--tb-primary) !important;
    color: #fff !important;
    font-weight: 600;
}
.btn-primary:hover {
    background-color: var(--tb-primary-dark) !important;
    border-color: var(--tb-primary-dark) !important;
    box-shadow: 0 4px 16px rgba(249,115,22,.3) !important;
}
.btn-primary:focus, .btn-primary:active {
    background-color: var(--tb-primary-dark) !important;
    box-shadow: 0 0 0 3px rgba(249,115,22,.25) !important;
}

.btn-outline-primary {
    color: var(--tb-primary) !important;
    border-color: var(--tb-primary) !important;
}
.btn-outline-primary:hover {
    background-color: var(--tb-primary) !important;
    color: #fff !important;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,.1) !important;
    border-color: rgba(255,255,255,.4) !important;
    color: #fff !important;
}

/* Badge colors */
.text-primary { color: var(--tb-primary) !important; }
.bg-primary    { background-color: var(--tb-primary) !important; }
.border-primary { border-color: var(--tb-primary) !important; }

/* Progress bar */
.progress-bar { background-color: var(--tb-primary) !important; }

/* Links */
a.text-primary, .text-primary { color: var(--tb-primary) !important; }

/* ============================================================
   TOOL CONVERTER PAGE
   ============================================================ */

/* ============================================================
   TOOL SEO PAGE — Hero v2
   Used by per-tool dedicated pages (youtube-to-mp3, etc.)
   ============================================================ */

.tb-tool-hero-v2 {
    background: var(--tb-dark);
    padding: 4rem 0 3.5rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

/* Subtle grid overlay */
.tb-tool-hero-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

/* Glow behind icon — color set per accent class */
.tb-tool-hero-v2::after {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(249,115,22,.12) 0%, transparent 65%);
    pointer-events: none;
}

.tb-tool-hero-v2 > .container { position: relative; z-index: 1; }

/* Large icon box */
.tb-tool-hero-icon-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    background: rgba(249,115,22,.1);
    border: 1px solid rgba(249,115,22,.2);
    border-radius: 14px;
    font-size: 2rem;
    color: var(--tb-primary);
    margin: 0 auto 1.1rem;
}

/* Eyebrow pill */
.tb-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(249,115,22,.1);
    color: var(--tb-primary);
    border: 1px solid rgba(249,115,22,.22);
    border-radius: 4px;
    padding: .2rem .72rem;
    font-size: .71rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* H1 inside hero-v2 */
.tb-tool-hero-v2 h1 {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(1.9rem, 5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.08;
    color: #fff;
}

/* Subtitle */
.tb-hero-sub {
    color: rgba(255,255,255,.52);
    font-size: 1.05rem;
    line-height: 1.72;
    max-width: 620px;
    margin: 0 auto 1.75rem;
}

/* Benefit pills row */
.tb-hero-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem .75rem;
}

.tb-hero-benefit-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 6px;
    padding: .3rem .8rem;
    font-size: .82rem;
    font-weight: 500;
    color: rgba(255,255,255,.75);
}
.tb-hero-benefit-pill .bi-check-circle-fill {
    font-size: .8rem;
    color: #22C55E;
}

/* ============================================================
   TOOL SEO PAGE — Converter card v2
   ============================================================ */

.tb-converter-card-v2 {
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-lg);
    padding: 2rem;
    box-shadow: var(--tb-shadow);
}

/* Hero banner at top of each tool page */
.tb-tool-hero {
    background: var(--tb-dark);
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.tb-tool-hero-icon {
    font-size: 2.75rem;
    margin-bottom: .75rem;
    line-height: 1;
}
.tb-tool-hero-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -.03em;
    color: #fff;
    margin-bottom: .5rem;
}
.tb-tool-hero .tb-section-subtitle {
    color: rgba(255,255,255,.55);
}

/* Converter card — wraps all steps */
.tb-converter-card {
    background: var(--tb-dark-2);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--tb-radius-lg);
    padding: 2rem;
    overflow: hidden;
}

/* Upload zone inside dark converter card — override to dark palette */
.tb-converter-card .tb-upload-zone {
    background: rgba(255,255,255,.03);
    border-color: rgba(249,115,22,.35);
}
.tb-converter-card .tb-upload-zone:hover,
.tb-converter-card .tb-upload-zone.dragover {
    background: rgba(249,115,22,.06);
    border-color: var(--tb-primary);
    box-shadow: 0 0 0 4px rgba(249,115,22,.08);
}
.tb-converter-card .tb-upload-text { color: rgba(255,255,255,.8); }
.tb-converter-card .tb-upload-hint { color: rgba(255,255,255,.35); }

/* Upload zone inside hero (dark background) */
.tb-hero .tb-upload-zone {
    background: rgba(255,255,255,.03);
    border-color: rgba(249,115,22,.4);
}
.tb-hero .tb-upload-text { color: rgba(255,255,255,.8); }
.tb-hero .tb-upload-hint { color: rgba(255,255,255,.35); }

/* File info bar shown after selecting a file */
.tb-file-info-bar {
    display: flex;
    align-items: center;
    gap: .85rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--tb-radius-md);
    padding: .75rem 1rem;
}
.tb-file-info-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
}
.tb-file-info-bar .fw-700 { color: rgba(255,255,255,.9); }
.tb-file-info-bar .text-muted { color: rgba(255,255,255,.4) !important; }

/* Form labels and selects inside dark converter card */
.tb-converter-card .form-label { color: rgba(255,255,255,.7); }
.tb-converter-card .form-select,
.tb-converter-card .form-control {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    border-radius: var(--tb-radius-md);
}
.tb-converter-card .form-select:focus,
.tb-converter-card .form-control:focus {
    background: rgba(255,255,255,.1);
    border-color: var(--tb-primary);
    box-shadow: 0 0 0 3px rgba(249,115,22,.15);
    color: #fff;
}
.tb-converter-card .form-select option { background: var(--tb-dark-2); color: #fff; }

/* Spinning icon during conversion */
.tb-conv-spinner {
    font-size: 3rem;
    display: block;
    animation: spin 1.2s linear infinite;
    line-height: 1;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.tb-conv-spinner + h5,
.tb-converter-card h5 { color: rgba(255,255,255,.9); }
.tb-converter-card .text-muted { color: rgba(255,255,255,.45) !important; }

/* Success icon */
.tb-conv-success { font-size: 3rem; line-height: 1; }

/* Trust strip below the converter card */
.tb-tool-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    padding: .25rem 0;
}
.tb-tool-feature {
    font-size: .74rem;
    font-weight: 600;
    color: var(--tb-text-2);
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem 1rem;
    letter-spacing: .01em;
}
.tb-tool-feature + .tb-tool-feature {
    border-left: 1px solid var(--tb-border);
}
.tb-tool-feature i {
    font-size: .78rem;
    opacity: .85;
}
/* Dark-context override (inside hero sections) */
.tb-tool-hero .tb-tool-features,
.tb-tool-hero-v2 .tb-tool-features {
    margin-top: .75rem;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 1rem;
}
.tb-tool-hero .tb-tool-feature,
.tb-tool-hero-v2 .tb-tool-feature {
    color: rgba(255,255,255,.5);
}
.tb-tool-hero .tb-tool-feature + .tb-tool-feature,
.tb-tool-hero-v2 .tb-tool-feature + .tb-tool-feature {
    border-left-color: rgba(255,255,255,.1);
}

/* Related tools section at bottom */
.tb-tool-related {
    background: var(--tb-cream);
    border-top: 1px solid var(--tb-border);
}

/* URL input zone variant */
.tb-upload-zone--dark {
    background: rgba(255,255,255,.03);
    border-color: rgba(249,115,22,.3);
}
.tb-upload-zone--dark .tb-upload-icon { color: var(--tb-primary); }

/* ============================================================
   BENEFIT / FEATURE CARDS  (Why Use section)
   ============================================================ */
.tb-benefit-card {
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    padding: 1.75rem 1.5rem;
    transition: box-shadow .18s, transform .18s;
    position: relative;
    overflow: hidden;
}
.tb-benefit-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--tb-primary);
    opacity: 0;
    transition: opacity .18s;
}
.tb-benefit-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.09);
    transform: translateY(-2px);
}
.tb-benefit-card:hover::before { opacity: 1; }

.tb-benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}
/* colour variants — icon box tinted per Bootstrap color class */
.tb-benefit-icon.text-primary   { background: rgba(108,99,255,.1); }
.tb-benefit-icon.text-success   { background: rgba(34,197,94,.1); }
.tb-benefit-icon.text-warning   { background: rgba(245,158,11,.1); }
.tb-benefit-icon.text-danger    { background: rgba(239,68,68,.1); }
.tb-benefit-icon.text-info      { background: rgba(6,182,212,.1); }
.tb-benefit-icon.text-secondary { background: rgba(107,114,128,.1); }

.tb-benefit-card h5 {
    font-size: .95rem;
    font-family: 'Sora', sans-serif;
    letter-spacing: -.01em;
    color: var(--tb-text);
}
.tb-benefit-card .text-muted {
    color: var(--tb-text-2) !important;
    line-height: 1.65;
}

/* ============================================================
   HOW-TO  STEPS  (tool page)
   ============================================================ */
.tb-how-step-card {
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.tb-how-step-num {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--tb-primary-light);
    color: var(--tb-primary);
    font-weight: 800;
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tb-how-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--tb-primary-light);
    color: var(--tb-primary);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tb-how-step-card h5 {
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: .25rem;
    color: var(--tb-text);
}
.tb-how-step-card p {
    font-size: .82rem;
    color: var(--tb-text-2);
    margin: 0;
    line-height: 1.6;
}

/* ============================================================
   USE-CASE CARDS
   ============================================================ */
.tb-use-case-card {
    background: #fff;
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    padding: 1.5rem;
    height: 100%;
    transition: box-shadow .18s, transform .18s;
}
.tb-use-case-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.08);
    transform: translateY(-2px);
}
.tb-use-case-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .75rem;
}
.tb-use-case-icon.text-primary   { background: rgba(108,99,255,.1); }
.tb-use-case-icon.text-success   { background: rgba(34,197,94,.1); }
.tb-use-case-icon.text-warning   { background: rgba(245,158,11,.1); }
.tb-use-case-icon.text-danger    { background: rgba(239,68,68,.1); }
.tb-use-case-icon.text-info      { background: rgba(6,182,212,.1); }
.tb-use-case-icon.text-secondary { background: rgba(107,114,128,.1); }
.tb-use-case-persona {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--tb-primary);
    margin-bottom: .3rem;
}
.tb-use-case-card h5 {
    font-size: .88rem;
    font-weight: 700;
    margin-bottom: .4rem;
    color: var(--tb-text);
}
.tb-use-case-card p {
    font-size: .8rem;
    color: var(--tb-text-2);
    margin: 0;
    line-height: 1.6;
}

/* ============================================================
   TECH SPECS SECTION
   ============================================================ */
.tb-tech-section {
    background: var(--tb-dark);
}
.tb-tech-section .tb-section-title { color: #fff; }
.tb-tech-section .text-muted { color: rgba(255,255,255,.45) !important; }
.tb-tech-section h6 { color: rgba(255,255,255,.5); }
.tb-tech-section .tb-section-badge {
    background: rgba(249,115,22,.15);
    color: var(--tb-primary);
    border-color: rgba(249,115,22,.3);
}

/* Limits list */
.tb-spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.tb-spec-list li {
    font-size: .85rem;
    color: rgba(255,255,255,.65);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.tb-spec-list li i {
    color: var(--tb-primary);
    font-size: .8rem;
    flex-shrink: 0;
}

/* Tags */
.tb-tech-tag {
    display: inline-block;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 4px;
    padding: .2rem .6rem;
    font-size: .72rem;
    font-weight: 600;
    color: rgba(255,255,255,.5);
    letter-spacing: .04em;
}

/* Spec grid — right column */
.tb-spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--tb-radius);
    overflow: hidden;
}
.tb-spec-item {
    background: var(--tb-dark-2);
    padding: 1.25rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    transition: background .15s;
}
.tb-spec-item:hover { background: rgba(255,255,255,.04); }

.tb-spec-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(249,115,22,.12);
    color: var(--tb-primary) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.tb-spec-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: rgba(255,255,255,.35);
    margin-bottom: .2rem;
}
.tb-spec-value {
    font-size: .82rem;
    color: rgba(255,255,255,.8);
    line-height: 1.45;
    font-weight: 500;
}

@media (max-width: 575px) {
    .tb-spec-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Conversion Steps — Progress / Done / Error
   ============================================================ */

/* Shared step wrapper */
.tb-conv-step { width: 100%; }

/* ── Step 3: Progress ── */
.tb-progress-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem 1rem;
    text-align: center;
}

.tb-progress-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tb-progress-ring {
    font-size: 3rem;
    line-height: 1;
    animation: spin 1.2s linear infinite;
}

.tb-progress-label { width: 100%; }

.tb-progress-msg {
    font-size: .95rem;
    font-weight: 600;
    color: var(--tb-text);
}

/* Progress bar track + fill */
.tb-progress-bar-wrap { width: 100%; }

.tb-progress-bar-track {
    width: 100%;
    height: 10px;
    background: var(--tb-cream-3);
    border-radius: 99px;
    overflow: hidden;
}

.tb-progress-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width .4s ease;
    min-width: 2%;
}

/* Bootstrap striped/animated shim inside custom track */
.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: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    from { background-position: 1rem 0; }
    to   { background-position: 0 0; }
}

.tb-progress-meta {
    display: flex;
    justify-content: space-between;
    margin-top: .45rem;
}

.tb-progress-pct {
    font-size: .8rem;
    font-weight: 700;
    color: var(--tb-text-2);
}

.tb-progress-eta {
    font-size: .75rem;
    color: var(--tb-text-muted);
}

/* ── Step 4: Done ── */
.tb-done-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem 1rem;
    text-align: center;
}

.tb-done-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--tb-cream);
    border-radius: 12px;
    padding: .9rem 1.25rem;
    width: 100%;
    text-align: left;
}

.tb-done-check {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.tb-done-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--tb-text);
}

.tb-done-sub {
    font-size: .78rem;
    color: var(--tb-text-muted);
    margin-top: .1rem;
}

.tb-done-file-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--tb-cream);
    border: 1px solid var(--tb-cream-3);
    border-radius: 12px;
    padding: .9rem 1.25rem;
    width: 100%;
    text-align: left;
}

.tb-done-file-icon-wrap {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}

.tb-done-filename {
    font-size: .88rem;
    font-weight: 600;
    color: var(--tb-text);
    word-break: break-all;
    margin-bottom: .35rem;
}

.tb-done-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.tb-done-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .7rem;
    font-weight: 600;
    color: var(--tb-text-muted);
    background: var(--tb-cream-3);
    border-radius: 99px;
    padding: .15rem .55rem;
}

.tb-done-download-btn {
    width: 100%;
    padding: .8rem 1rem;
    font-weight: 700;
    font-size: .95rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    text-decoration: none;
}

.tb-done-another-btn {
    background: none;
    border: 1px solid var(--tb-cream-3);
    color: var(--tb-text-muted);
    border-radius: 10px;
    padding: .55rem 1rem;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: border-color .2s, color .2s;
}

.tb-done-another-btn:hover {
    border-color: var(--tb-text-2);
    color: var(--tb-text);
}

/* ── Step 5: Error ── */
.tb-error-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1rem;
    text-align: center;
}

.tb-error-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(239,68,68,.15);
    border: 2px solid rgba(239,68,68,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ef4444;
}

.tb-error-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tb-text);
}

.tb-error-msg {
    font-size: .85rem;
    color: var(--tb-text-muted);
    margin: 0;
}

.tb-error-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

/* ============================================================
   How-To Steps Section (_how_to.php)
   ============================================================ */
.tb-howto-section { background: var(--tb-cream); }

.tb-section-header { }

.tb-howto-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    border: 1px solid var(--tb-cream-3);
    height: 100%;
    transition: box-shadow .2s, transform .2s;
}

.tb-howto-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

.tb-howto-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    opacity: .15;
    margin-bottom: .25rem;
    letter-spacing: -.03em;
}

.tb-howto-icon {
    font-size: 2rem;
    line-height: 1;
}

/* ============================================================
   FAQ Accordion (_faq.php)
   ============================================================ */
.tb-faq-accordion { border-radius: 12px; overflow: hidden; }

.tb-faq-item {
    border: 1px solid var(--tb-cream-3) !important;
    border-radius: 10px !important;
    margin-bottom: .5rem;
    overflow: hidden;
}

.tb-faq-item .accordion-button {
    background: #fff;
    color: var(--tb-text);
    font-weight: 600;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.tb-faq-item .accordion-button:not(.collapsed) {
    background: var(--tb-cream);
    color: var(--tb-primary);
}

.tb-faq-item .accordion-button::after {
    filter: none;
}

.tb-faq-item .accordion-body {
    background: var(--tb-cream);
    color: var(--tb-text-2);
    font-size: .9rem;
    line-height: 1.75;
}

/* ============================================================
   Comparison Table (_comparison.php)
   ============================================================ */
.tb-comparison-section { background: var(--tb-cream); }

.tb-compare-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    background: #fff;
}

.tb-compare-table thead th {
    background: var(--tb-dark-2);
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: 1rem .75rem;
    border: none;
}

.tb-compare-table tbody tr:nth-child(even) td { background: var(--tb-cream); }
.tb-compare-table tbody td { padding: .75rem; border-color: var(--tb-cream-3); vertical-align: middle; }

.tb-compare-highlight {
    background: rgba(249,115,22,.05) !important;
    border-left: 2px solid var(--tb-primary) !important;
    border-right: 2px solid var(--tb-primary) !important;
}

.tb-compare-our-badge {
    display: inline-block;
    background: var(--tb-primary);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    border-radius: 4px;
    padding: .1rem .4rem;
    margin-bottom: .25rem;
}

/* ============================================================
   Formats Table (_formats_table.php)
   ============================================================ */
.tb-formats-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    background: #fff;
}

.tb-formats-table thead th {
    background: var(--tb-dark-2);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: .85rem .75rem;
    border: none;
}

.tb-formats-table tbody td {
    padding: .7rem .75rem;
    border-color: var(--tb-cream-3);
    vertical-align: middle;
    font-size: .875rem;
}

.tb-formats-table tbody tr:nth-child(even) { background: var(--tb-cream); }

.tb-fmt-badge {
    display: inline-block;
    background: var(--tb-primary-light);
    color: var(--tb-primary);
    border: 1px solid rgba(249,115,22,.2);
    border-radius: 5px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: .15rem .5rem;
}

/* ============================================================
   CTA Banner (_cta_banner.php)
   ============================================================ */
.tb-tool-cta-banner {
    background: var(--tb-dark);
    color: #fff;
}

.tb-cta-inner { max-width: 640px; margin: 0 auto; }

.tb-cta-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.tb-cta-sub {
    color: rgba(255,255,255,.55);
    font-size: .95rem;
    line-height: 1.7;
}

.tb-cta-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tb-cta-trust-item {
    font-size: .8rem;
    color: rgba(255,255,255,.45);
}

/* ============================================================
   Article Section (_article.php)
   ============================================================ */
.tb-article-section { background: var(--tb-cream); }

.tb-article {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--tb-cream-3);
}

.tb-article-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--tb-text);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.tb-article-intro {
    font-size: 1rem;
    color: var(--tb-text-2);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--tb-primary);
    padding-left: 1rem;
}

.tb-article-section {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--tb-cream-3);
}

.tb-article-h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tb-text);
    margin-bottom: .75rem;
}

.tb-article-body {
    font-size: .9rem;
    color: var(--tb-text-2);
    line-height: 1.8;
}

.tb-article-body p { margin-bottom: .75rem; }
.tb-article-body ul, .tb-article-body ol { padding-left: 1.25rem; margin-bottom: .75rem; }
.tb-article-body li { margin-bottom: .35rem; }
.tb-article-body strong { color: var(--tb-text); }
.tb-article-body code { background: var(--tb-cream); border-radius: 4px; padding: .1rem .35rem; font-size: .85em; }

/* ============================================================
   Use Cases Section (_use_cases.php)
   ============================================================ */
.tb-use-cases-section { background: #fff; }

.tb-use-case-card {
    background: var(--tb-cream);
    border-radius: 14px;
    padding: 1.5rem;
    border: 1px solid var(--tb-cream-3);
    transition: box-shadow .2s, transform .2s;
}

.tb-use-case-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.07);
    transform: translateY(-2px);
}

.tb-use-case-icon {
    font-size: 1.75rem;
    line-height: 1;
    margin-bottom: .6rem;
}

.tb-use-case-persona {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--tb-text-muted);
    background: var(--tb-cream-3);
    border-radius: 99px;
    padding: .15rem .6rem;
    margin-bottom: .6rem;
}

/* ============================================================
   URL Input Zone (_form_url.php)
   ============================================================ */
.tb-url-input-zone {
    background: var(--tb-cream);
    border: 1px solid var(--tb-cream-3);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
}

.tb-url-input-zone .input-group-text {
    background: #fff;
    border-color: var(--tb-cream-3);
    color: var(--tb-text-muted);
}

.tb-url-input-zone .form-control,
.tb-url-input-zone .btn-outline-secondary {
    background: #fff;
    border-color: var(--tb-cream-3);
    color: var(--tb-text);
}

.tb-url-input-zone .form-control::placeholder { color: var(--tb-text-faint); }
.tb-url-input-zone .form-control:focus {
    background: #fff;
    border-color: var(--tb-primary);
    box-shadow: 0 0 0 3px rgba(249,115,22,.12);
    color: var(--tb-text);
}

/* ============================================================
   Multi-File Upload Zone (_form_multi.php)
   ============================================================ */
.tb-upload-zone--multi { border-style: dashed; }

.tb-upload-icon-wrap {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: .75rem;
}

.tb-multi-file-list {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

/* ============================================================
   Screen Recorder (_form_screen.php)
   ============================================================ */
.tb-screen-recorder { width: 100%; }

.tb-screen-preview-wrap {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.tb-screen-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.tb-screen-preview-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.35);
    font-size: .85rem;
}

.tb-record-status {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-radius: 99px;
    padding: .35rem .9rem;
}
