/*
 * Tfastunlocker public site.
 *
 * Colour comes entirely from tokens.css, which derives it from the admin base
 * colour. Nothing in this file hard-codes a brand hex, so a colour change in
 * the admin panel moves the whole page including dark mode.
 *
 * The page is built from four repeating parts and almost nothing else:
 *
 *   .tf-section          vertical rhythm, one value, everywhere
 *   .tf-section-heading  eyebrow pill, heading, one line of prose, centred
 *   .tf-card             the only raised surface on the site
 *   .tf-button           one shape, two weights (solid, outline)
 *
 * Restraint is the point. A repair tool has to look like something you would
 * trust with a locked handset, and the fastest way to lose that is a page
 * where every section invents its own container.
 */

/* ---------------------------------------------------------------- base -- */

.tf-site {
    background: var(--tf-bg);
    color: var(--tf-text);
    font-family: var(--tf-sans);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.tf-site *, .tf-site *::before, .tf-site *::after { box-sizing: border-box; }
.tf-site a { color: inherit; text-decoration: none; }
.tf-site img { max-width: 100%; height: auto; }

.tf-site :is(a, button, summary, input, select):focus-visible {
    outline: 2px solid var(--tf-accent);
    outline-offset: 3px;
    border-radius: var(--tf-radius-sm);
}

.tf-site ::selection { background: var(--tf-accent); color: var(--tf-on-accent); }

.tf-site :is(h1, h2, h3, h4) {
    color: var(--tf-strong);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
    margin: 0;
}

.tf-site h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); letter-spacing: -.035em; }
.tf-site h2 { font-size: clamp(1.65rem, 3vw, 2.1rem); }
.tf-site h3 { font-size: 1.15rem; letter-spacing: -.015em; }
.tf-site p  { color: var(--tf-prose); margin: 0; }

.tf-wrap {
    width: min(var(--tf-container), 100% - 2.5rem);
    margin-inline: auto;
}

.tf-section { padding-block: var(--tf-8); }

/* An eyebrow pill, a heading, and at most one line of prose. Centred, because
   every section on the page is a list of peers rather than an argument. */
.tf-section-heading {
    display: grid;
    justify-items: center;
    gap: var(--tf-4);
    text-align: center;
    max-width: 44rem;
    margin: 0 auto var(--tf-6);
}

.tf-section-heading p { font-size: 1.02rem; }

.tf-eyebrow, .tf-tag {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--tf-accent-soft);
    color: var(--tf-accent);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-pill);
    padding: .35rem .9rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.tf-centered { text-align: center; }

.tf-text-link {
    color: var(--tf-accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.tf-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.tf-skip {
    position: absolute;
    left: 1rem;
    top: -6rem;
    z-index: 100;
    background: var(--tf-accent);
    color: var(--tf-on-accent);
    padding: .7rem 1.1rem;
    border-radius: var(--tf-radius-sm);
    font-weight: 600;
}

.tf-skip:focus { top: 1rem; }

/* -------------------------------------------------------------- buttons -- */

.tf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: var(--tf-gradient);
    color: var(--tf-on-accent);
    border: 1px solid transparent;
    border-radius: var(--tf-radius-sm);
    padding: .8rem 1.4rem;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: var(--tf-glow);
    transition: transform .15s var(--tf-ease), box-shadow .2s var(--tf-ease), background .2s var(--tf-ease);
}

.tf-button:hover { transform: translateY(-2px); box-shadow: var(--tf-shadow-lg); }
.tf-button:active { transform: none; }

.tf-button:disabled {
    background: var(--tf-surface-hover);
    color: var(--tf-muted);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* The second button in a pair. Outline, so the primary action stays obvious. */
.tf-button.tf-light {
    background: var(--tf-surface);
    color: var(--tf-text);
    border-color: var(--tf-border-strong);
    box-shadow: var(--tf-shadow-sm);
}

.tf-button.tf-light:hover { background: var(--tf-surface-hover); box-shadow: var(--tf-shadow); }

.tf-actions, .tf-page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--tf-3);
}

/* Cross-links between related pages, above the calls to action. Separated by a
   rule so it reads as navigation rather than as more body copy. */
.tf-related {
    margin-top: var(--tf-6);
    padding-top: var(--tf-5);
    border-top: 1px solid var(--tf-border);
}

.tf-related h2 {
    font-size: 1rem;
    margin: 0 0 var(--tf-3);
    color: var(--tf-muted);
}

.tf-related ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tf-3) var(--tf-5);
    margin: 0 0 var(--tf-5);
    padding: 0;
    list-style: none;
}

/* --------------------------------------------------------------- header -- */

.tf-header,
.header {
    position: relative !important;
    top: auto !important;
    z-index: 1000;
    width: 100%;
    background: #0f172a !important;
    border-bottom: 2px solid rgba(245, 158, 11, 0.3) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transform: none !important;
    will-change: auto;
}

.tf-header.is-scrolled,
.header.sticky {
    background: #0f172a !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border-bottom-color: rgba(245, 158, 11, 0.3) !important;
}

.tf-header.is-scrolled .tf-header-bar {
    min-height: 4rem;
}

.tf-header.is-hidden {
    transform: none !important;
    pointer-events: auto !important;
}

.tf-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 4rem;
    padding: 0 1.5rem;
    gap: 0.75rem;
    box-sizing: border-box;
    transition: min-height 0.3s ease, padding 0.3s ease;
}

.tf-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -.02em;
    color: var(--tf-strong) !important;
    flex-shrink: 0;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.tf-brand:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.tf-brand-icon-wrap {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #0b0f17;
    border: 1px solid rgba(255, 107, 0, 0.4);
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.25);
}

.tf-brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.tf-brand-text {
    color: var(--tf-strong) !important;
    font-family: var(--tf-sans);
    font-weight: 900;
    letter-spacing: -0.03em;
    font-size: 1.15rem;
    line-height: 1;
}

.tf-brand-accent {
    color: #ff6b00;
}

.tf-header .tf-brand-text {
    color: #ffffff !important;
}

.tf-badge-net {
    font-size: .68rem;
    font-weight: 800;
    color: #00f2fe;
    background: rgba(0, 242, 254, 0.12);
    padding: .15rem .45rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 242, 254, 0.3);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tf-nav-desktop {
    display: flex;
    align-items: center;
    gap: .15rem;
    margin: 0 auto;
    flex-shrink: 1;
}

.tf-nav-desktop a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .6rem;
    border-radius: 4px;
    font-size: .84rem;
    font-weight: 600;
    color: #d1d5db !important;
    white-space: nowrap;
    transition: all .15s ease;
    text-decoration: none;
}

.tf-nav-desktop a i {
    font-size: .98rem;
    color: #9ca3af;
}

.tf-nav-desktop a:hover {
    background: #2b3036;
    color: #ffc107 !important;
}

.tf-nav-desktop a:hover i {
    color: #ffc107;
}

.tf-nav-desktop a[aria-current] {
    background: #2b3036;
    color: #ffc107 !important;
    border-bottom: 2px solid #ffc107;
}

.tf-nav-desktop a[aria-current] i {
    color: #ffc107;
}

.tf-header-actions {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    flex-shrink: 0;
}

.tf-mobile-drawer {
    display: none;
    width: 100%;
    background: #16181b;
    border-top: 1px solid #2d3239;
    padding: 1rem 1.5rem;
    box-sizing: border-box;
}

.tf-header[data-open] .tf-mobile-drawer {
    display: block;
    animation: tfSlideDown 0.2s ease-out;
}

@keyframes tfSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.tf-mobile-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: .25rem;
    margin-bottom: 1rem;
}

.tf-mobile-nav a {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem .85rem;
    border-radius: 6px;
    color: #e2e8f0 !important;
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease;
}

.tf-mobile-nav a i {
    font-size: 1.15rem;
    color: #9ca3af;
    width: 24px;
    text-align: center;
}

.tf-mobile-nav a:hover,
.tf-mobile-nav a[aria-current] {
    background: #23272d;
    color: #ffc107 !important;
}

.tf-mobile-nav a[aria-current] i,
.tf-mobile-nav a:hover i {
    color: #ffc107;
}

.tf-mobile-actions {
    border-top: 1px solid #2d3239;
    padding-top: .9rem;
}

.tf-btn-yellow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: #ffc107 !important;
    color: #212529 !important;
    padding: .5rem 1.1rem;
    border-radius: 4px;
    font-size: .88rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    transition: transform .15s ease, background .15s ease;
}

.tf-btn-yellow:hover {
    background: #e0a800 !important;
    color: #1a1e21 !important;
    transform: translateY(-1px);
}

.tf-btn-yellow i {
    font-size: 1rem;
}

.tf-btn-gold {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #0b0f19 !important;
    padding: .55rem 1.25rem;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    border: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.tf-btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
    color: #000 !important;
}

.tf-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--tf-surface-2, rgba(255, 255, 255, 0.05)) !important;
    color: var(--tf-strong, #fff) !important;
    border: 1px solid var(--tf-border-strong, rgba(255, 255, 255, 0.2)) !important;
    padding: .55rem 1.25rem;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: all .15s ease;
}

.tf-btn-outline:hover {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.1) !important;
    transform: translateY(-1px);
}

.tf-btn-outline-gold {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: transparent !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    padding: .45rem 1rem;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: all .15s ease;
}

.tf-btn-outline-gold:hover {
    background: #f59e0b !important;
    color: #000 !important;
    border-color: #f59e0b !important;
    transform: translateY(-1px);
}

.tf-badge-pro {
    font-size: .65rem;
    font-weight: 800;
    background: var(--tf-gradient);
    color: var(--tf-on-accent);
    padding: .15rem .45rem;
    border-radius: var(--tf-radius-sm);
    letter-spacing: .08em;
    vertical-align: middle;
    box-shadow: var(--tf-glow);
}

.tf-credits-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107 !important;
    border: 1px solid rgba(255, 193, 7, 0.4);
    padding: .4rem .8rem;
    border-radius: var(--tf-pill);
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s var(--tf-ease), transform .15s var(--tf-ease);
}
.tf-credits-pill:hover {
    background: rgba(255, 193, 7, 0.25);
    transform: translateY(-1px);
}

.tf-logout-btn {
    text-decoration: none;
    color: #9ca3af !important;
}
.tf-logout-btn:hover {
    color: var(--tf-danger, #ef4444) !important;
}

.tf-account-links { display: flex; align-items: center; gap: .6rem; }

.tf-login {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

/* Theme switch and the small-screen menu button share a shape. */
.tf-icon-button {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    background: var(--tf-surface);
    color: var(--tf-prose);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-sm);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .15s var(--tf-ease), color .15s var(--tf-ease);
}

.tf-icon-button:hover { background: var(--tf-surface-hover); color: var(--tf-accent); }
.tf-nav-toggle { display: none; }

/* The theme button shows one glyph at a time; CSS picks which. */
.tf-theme-toggle .tf-theme-dark { display: none; }
[data-theme="dark"] .tf-theme-toggle .tf-theme-dark { display: block; }
[data-theme="dark"] .tf-theme-toggle .tf-theme-light { display: none; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .tf-theme-toggle .tf-theme-dark { display: block; }
    :root:not([data-theme="light"]) .tf-theme-toggle .tf-theme-light { display: none; }
}

/* Secondary row of product links under the main header. */
.tf-product-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem;
    padding-block: .5rem;
    border-bottom: 1px solid var(--tf-border);
    font-size: .88rem;
}

/* nowrap matters on small screens, where the row becomes a horizontal
   scroller: without it the row stops wrapping but each label still breaks
   over two lines, which looks like the row wrapped anyway. */
.tf-product-nav a {
    padding: .4rem .75rem;
    border-radius: var(--tf-radius-sm);
    color: var(--tf-muted);
    font-weight: 500;
    white-space: nowrap;
}

.tf-product-nav a:hover, .tf-product-nav a[aria-current] { background: var(--tf-surface-hover); color: var(--tf-accent); }

/* ----------------------------------------------------------------- hero -- */

/* The wash sits behind the hero only. It reads as depth at the top of the page
   and would read as noise if it repeated further down. */
.tf-hero-band {
    position: relative;
    background:
        radial-gradient(60rem 30rem at 50% -12%, var(--tf-accent-soft), transparent 70%),
        linear-gradient(180deg, var(--tf-bg-2), var(--tf-bg));
    border-bottom: 1px solid var(--tf-border);
    overflow: hidden;
}

.tf-hero {
    display: grid;
    justify-items: center;
    gap: var(--tf-5);
    text-align: center;
    padding-block: var(--tf-8) var(--tf-7);
}

.tf-hero h1 { max-width: 16ch; }

/* The product's one-line positioning statement, directly under the name. */
.tf-hero-lede {
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--tf-accent);
}

.tf-hero > p { max-width: 52ch; font-size: 1.05rem; }
.tf-hero .tf-actions { justify-content: center; }

.tf-release-line {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .85rem;
    color: var(--tf-muted);
}

.tf-release-line i { color: var(--tf-accent); }
.tf-release-line strong { color: var(--tf-text); font-weight: 600; }

/* ------------------------------------------------------ stats and cards -- */

.tf-card {
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: var(--tf-5);
    box-shadow: var(--tf-shadow);
}

/* Four numbers that say how big the product is. Auto-fit so it degrades to
   two-up and then one-up without a breakpoint for each. */
.tf-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: var(--tf-4);
    padding-bottom: var(--tf-8);
}

.tf-stat {
    display: grid;
    justify-items: center;
    gap: .35rem;
    text-align: center;
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: var(--tf-5) var(--tf-4);
    box-shadow: var(--tf-shadow);
    transition: transform .2s var(--tf-ease), box-shadow .2s var(--tf-ease);
}

.tf-stat:hover { transform: translateY(-3px); box-shadow: var(--tf-shadow-lg); }
.tf-stat i { color: var(--tf-accent); font-size: 1.5rem; }
.tf-stat strong { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; color: var(--tf-strong); line-height: 1.1; }
.tf-stat span { font-size: .85rem; color: var(--tf-muted); }

/* The generic card grid: services, models, guides, resellers all use it. */
.tf-features, .tf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: var(--tf-4);
}

.tf-features article {
    display: grid;
    align-content: start;
    gap: var(--tf-2);
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: var(--tf-5);
    box-shadow: var(--tf-shadow);
    transition: transform .2s var(--tf-ease), box-shadow .2s var(--tf-ease), border-color .2s var(--tf-ease);
}

.tf-features article:hover {
    transform: translateY(-3px);
    border-color: var(--tf-border-strong);
    box-shadow: var(--tf-shadow-lg);
}

.tf-features p { font-size: .94rem; }

/* A status word such as "Available" or "Beta", set apart from the prose. */
.tf-features article > span:last-child {
    justify-self: start;
    margin-top: .35rem;
    background: var(--tf-accent-soft);
    color: var(--tf-accent);
    border-radius: var(--tf-pill);
    padding: .2rem .7rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.tf-service-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    background: var(--tf-gradient);
    color: var(--tf-on-accent);
    border-radius: var(--tf-radius);
    font-size: 1.4rem;
    box-shadow: var(--tf-glow);
    margin-bottom: var(--tf-2);
}

/* ---------------------------------------------------- numbered sequence -- */

.tf-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: var(--tf-4);
    counter-reset: tf-step;
}

.tf-step {
    position: relative;
    display: grid;
    align-content: start;
    gap: var(--tf-2);
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: var(--tf-5);
    box-shadow: var(--tf-shadow);
}

.tf-step::before {
    counter-increment: tf-step;
    content: counter(tf-step);
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    background: var(--tf-gradient);
    color: var(--tf-on-accent);
    border-radius: var(--tf-pill);
    font-size: 1rem;
    font-weight: 800;
    box-shadow: var(--tf-glow);
    margin-bottom: var(--tf-2);
}

/* ---------------------------------------------------------- status list -- */

.tf-status-band { background: var(--tf-bg-2); border-block: 1px solid var(--tf-border); }

.tf-status-list {
    max-width: 48rem;
    margin-inline: auto;
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    box-shadow: var(--tf-shadow);
    overflow: hidden;
}

.tf-status-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tf-4);
    padding: var(--tf-4) var(--tf-5);
    border-bottom: 1px solid var(--tf-border);
    font-size: .95rem;
}

.tf-status-list > div:last-child { border-bottom: 0; }

/* A dot next to the state reads faster than the word alone.
 *
 * The dot is deliberately the accent colour, not green. The status text is
 * free-form CMS content, so it can just as easily say "Not connected" as
 * "Operational", and a green dot beside "Not connected" would assert a health
 * claim the page cannot actually stand behind. */
.tf-status-list strong {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--tf-accent);
    text-align: right;
}

.tf-status-list strong::before {
    content: "";
    width: .5rem;
    height: .5rem;
    border-radius: var(--tf-pill);
    background: currentColor;
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent);
}

.tf-status-note { font-size: .85rem; text-align: center; margin-top: var(--tf-4); }

/* ------------------------------------------------------------ faq, help -- */

.tf-support { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--tf-7); align-items: start; }
.tf-support > div > p { margin: var(--tf-3) 0; }

.tf-faq { display: grid; gap: var(--tf-3); }

.tf-faq details {
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    padding: var(--tf-3) var(--tf-4);
    box-shadow: var(--tf-shadow-sm);
    transition: border-color .2s var(--tf-ease);
}

.tf-faq details[open] { border-color: var(--tf-border-strong); box-shadow: var(--tf-shadow); }

.tf-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tf-4);
    cursor: pointer;
    font-weight: 600;
    color: var(--tf-strong);
    list-style: none;
}

.tf-faq summary::-webkit-details-marker { display: none; }

.tf-faq summary::after {
    content: "\f107";
    font-family: 'Line Awesome Free', 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--tf-accent);
    transition: transform .2s var(--tf-ease);
}

.tf-faq details[open] summary::after { transform: rotate(180deg); }
.tf-faq p { margin-top: var(--tf-3); font-size: .94rem; }

/* ------------------------------------------------------------------ cta -- */

.tf-cta {
    display: grid;
    justify-items: center;
    gap: var(--tf-4);
    text-align: center;
    background: linear-gradient(135deg, var(--tf-accent-soft), var(--tf-bg-2));
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-xl);
    padding: var(--tf-7) var(--tf-5);
}

.tf-cta p { max-width: 48ch; }

/* -------------------------------------------------------- product pages -- */

.tf-page-hero {
    background:
        radial-gradient(50rem 22rem at 50% -30%, var(--tf-accent-soft), transparent 70%),
        var(--tf-bg-2);
    border-bottom: 1px solid var(--tf-border);
    padding-block: var(--tf-7);
    text-align: center;
}

.tf-page-hero h1 { margin: var(--tf-4) 0 var(--tf-3); }
.tf-page-hero p { max-width: 60ch; margin-inline: auto; }
.tf-page-hero .tf-text-link { font-size: .88rem; }

.tf-product-page { max-width: 62rem; display: grid; gap: var(--tf-5); }

.tf-guide-row {
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-left: 3px solid var(--tf-accent);
    border-radius: var(--tf-radius);
    padding: var(--tf-5);
    box-shadow: var(--tf-shadow-sm);
}

.tf-guide-row h2 { font-size: 1.2rem; margin-bottom: var(--tf-2); }
.tf-guide-row p { white-space: pre-line; font-size: .95rem; }

.tf-empty {
    display: grid;
    justify-items: center;
    gap: var(--tf-3);
    text-align: center;
    background: var(--tf-surface);
    border: 1px dashed var(--tf-border-strong);
    border-radius: var(--tf-radius-lg);
    padding: var(--tf-7) var(--tf-5);
}

.tf-empty h2 { font-size: 1.3rem; }

.tf-page-notice {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: var(--tf-warn-bg);
    color: var(--tf-warn) !important;
    border: 1px solid color-mix(in srgb, var(--tf-warn) 30%, transparent);
    border-radius: var(--tf-radius);
    padding: var(--tf-3) var(--tf-4);
    font-size: .9rem;
}

.tf-model-search { display: grid; gap: var(--tf-2); }
.tf-model-search label { font-weight: 600; color: var(--tf-strong); }
.tf-model-search > div { display: flex; gap: var(--tf-2); }

.tf-site :is(.tf-model-search input, .tf-tool-auth input, .tf-tool-auth select) {
    min-width: 0;
    flex: 1;
    background: var(--tf-surface);
    color: var(--tf-text);
    border: 1px solid var(--tf-border-strong);
    border-radius: var(--tf-radius-sm);
    padding: .75rem .9rem;
    font: inherit;
}

.tf-release-panel {
    display: grid;
    justify-items: start;
    gap: var(--tf-3);
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: var(--tf-5);
    box-shadow: var(--tf-shadow);
}

/* -------------------------------------------------- tool account screens -- */

.tf-tool-auth { max-width: 32rem; margin-inline: auto; }
.tf-tool-auth form { display: grid; gap: var(--tf-3); margin: var(--tf-5) 0; }
.tf-tool-auth label { font-weight: 600; color: var(--tf-strong); }

.tf-table-wrap {
    overflow-x: auto;
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    box-shadow: var(--tf-shadow);
}

.tf-api-table { width: 100%; border-collapse: collapse; font-size: .92rem; }

.tf-api-table :is(th, td) {
    text-align: left;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--tf-border);
    white-space: nowrap;
}

.tf-api-table th {
    background: var(--tf-surface-2);
    color: var(--tf-accent);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tf-api-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
.tf-api-table tbody tr:hover { background: var(--tf-surface-hover); }

/* --------------------------------------------------------- tool preview -- */

/* A mock of the desktop application window. It is decoration, so it is the one
   place allowed a little more detail than the rest of the page. */
.tf-preview {
    width: min(46rem, 100%);
    margin-inline: auto;
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: var(--tf-3);
    box-shadow: var(--tf-shadow-lg);
    text-align: left;
}

.tf-window-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tf-3);
    padding-bottom: .6rem;
    font-size: .78rem;
    color: var(--tf-muted);
}

.tf-window-title span:first-child { display: inline-flex; align-items: center; gap: .4rem; color: var(--tf-text); font-weight: 600; }
.tf-preview-icon { width: 1.1rem; height: 1.1rem; }

.tf-toolbar {
    display: flex;
    justify-content: space-between;
    gap: var(--tf-3);
    background: var(--tf-surface-2);
    border: 1px solid var(--tf-border);
    border-bottom: 0;
    border-radius: var(--tf-radius-sm) var(--tf-radius-sm) 0 0;
    padding: .5rem .7rem;
    font-size: .72rem;
    color: var(--tf-muted);
}

.tf-toolbar > span { color: var(--tf-accent); font-weight: 600; }

.tf-window-body {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    min-height: 14rem;
    border: 1px solid var(--tf-border);
}

.tf-console { padding: var(--tf-3); font-family: var(--tf-mono); font-size: .72rem; min-width: 0; }
.tf-console > p { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tf-muted); }
.tf-console dl { margin: var(--tf-3) 0 0; }
.tf-console dt { color: var(--tf-muted); }
.tf-console dd { margin: 0 0 .5rem; color: var(--tf-accent); }

.tf-options { border-left: 1px solid var(--tf-border); padding: var(--tf-3); font-size: .74rem; }
.tf-options > strong { display: block; margin-bottom: .7rem; color: var(--tf-strong); }

.tf-options > span {
    display: block;
    background: var(--tf-surface-2);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-sm);
    padding: .45rem .55rem;
    margin-bottom: .4rem;
    color: var(--tf-prose);
}

.tf-options > p { font-size: .68rem; margin-top: .7rem; }

.tf-window-footer {
    display: flex;
    justify-content: space-between;
    gap: var(--tf-3);
    background: var(--tf-surface-2);
    border: 1px solid var(--tf-border);
    border-top: 0;
    border-radius: 0 0 var(--tf-radius-sm) var(--tf-radius-sm);
    padding: .5rem .7rem;
    font-size: .7rem;
    color: var(--tf-muted);
}

.tf-highlights { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--tf-5); }
.tf-highlights > div { display: grid; justify-items: center; gap: .1rem; text-align: center; }
.tf-highlights strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--tf-accent); }
.tf-highlights span { font-size: .8rem; color: var(--tf-muted); }

/* --------------------------------------------------------------- footer -- */

/* --------------------------------------------------------------- footer -- */

.tf-footer {
    background: var(--tf-bg-2);
    border-top: 1px solid var(--tf-border);
    color: var(--tf-text);
    position: relative;
    overflow: hidden;
}

/* Status & Trust Bar at the very top of footer */
.tf-footer-topbar {
    border-bottom: 1px solid var(--tf-border);
    background: var(--tf-surface);
    padding: 0.75rem 0;
    font-size: 0.8rem;
    color: var(--tf-muted);
}
.tf-footer-topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.tf-footer-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--tf-strong);
    text-decoration: none;
}
.tf-footer-status:hover {
    color: var(--tf-accent);
}
.tf-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}
.tf-status-dot.pulse {
    animation: tf-status-pulse 2s infinite ease-in-out;
}
@keyframes tf-status-pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.tf-footer-protocols {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--tf-mono, monospace);
    font-size: 0.74rem;
    color: var(--tf-muted);
}
.tf-footer-protocols span {
    padding: 0.15rem 0.45rem;
    background: var(--tf-bg-2);
    border: 1px solid var(--tf-border);
    border-radius: 4px;
}

/* Explicit tracks: brand column + 3 link columns */
.tf-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.1fr 1.1fr 1.3fr;
    gap: var(--tf-6);
    padding-block: 3rem 2.5rem;
}

.tf-footer-grid > div {
    display: flex;
    flex-direction: column;
    align-content: start;
    gap: 1rem;
}

.tf-footer-brand-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.tf-footer .tf-brand-text {
    color: var(--tf-strong) !important;
}
.tf-footer-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--tf-muted);
    max-width: 38ch;
    margin: 0;
}
.tf-footer-trust-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.25rem;
}
.tf-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tf-muted);
}
.tf-trust-pill i {
    color: #ff6b00;
    font-size: 0.88rem;
}

.tf-footer h4 {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tf-strong);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.tf-footer h4::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tf-accent);
    opacity: 0.7;
}

.tf-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.88rem;
}
.tf-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--tf-text);
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
    font-weight: 500;
}
.tf-footer-links a:hover {
    color: var(--tf-accent);
    transform: translateX(2px);
}
.tf-footer-links a i {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
    color: var(--tf-muted);
    transition: color 0.15s ease;
}
.tf-footer-links a:hover i {
    color: var(--tf-accent);
}

/* Footer Community Grid for Connect Column */
.tf-footer-communities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin-bottom: 0.5rem;
}
.tf-footer-comm-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--tf-text) !important;
    text-decoration: none !important;
    transition: all 0.18s ease;
}
.tf-footer-comm-pill:hover {
    background: var(--tf-surface-hover, #f1f5f9);
    border-color: var(--tf-border-strong);
    color: var(--tf-strong) !important;
    transform: translateY(-1px);
}
.tf-footer-comm-pill i, .tf-footer-comm-pill .tf-channel-svg {
    font-size: 1rem;
    flex-shrink: 0;
}

.tf-footer-help-card {
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.8rem;
}
.tf-footer-help-card strong {
    color: var(--tf-strong);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
}
.tf-footer-help-card span {
    color: var(--tf-muted);
    font-size: 0.76rem;
}
.tf-footer-help-link {
    color: var(--tf-accent);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.tf-footer-help-link:hover {
    text-decoration: underline;
}

/* Clean Engineering Spec Feature Cards (Anti-AI Slop) */
.tf-spec-card {
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.tf-spec-card:hover {
    transform: translateY(-2px);
    border-color: var(--tf-border-strong);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}
.tf-spec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}
.tf-spec-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    background: var(--tf-bg-2);
    border: 1px solid var(--tf-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #ff6b00;
}
.tf-spec-tag {
    font-family: var(--tf-mono, monospace);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--tf-muted);
    letter-spacing: 0.05em;
    background: var(--tf-bg-2);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    border: 1px solid var(--tf-border);
}
.tf-spec-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--tf-strong);
    margin: 0;
    letter-spacing: -0.01em;
}
.tf-spec-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--tf-muted);
    margin: 0;
}

/* Footer Bottom */
.tf-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--tf-border);
    padding-block: 1.25rem;
    font-size: 0.82rem;
    color: var(--tf-muted);
}
.tf-footer-bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}
.tf-footer-bottom nav a {
    color: var(--tf-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}
.tf-footer-bottom nav a:hover {
    color: var(--tf-strong);
    text-decoration: underline;
}

.tf-credit {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.tf-credit a {
    color: #ff6b00;
    font-weight: 700;
    text-decoration: none;
}
.tf-credit a:hover {
    text-decoration: underline;
}

/* ----------------------------------------------------------- responsive -- */

@media (max-width: 900px) {
    .tf-support { grid-template-columns: 1fr; gap: var(--tf-5); }
    .tf-footer-grid { grid-template-columns: 1fr 1fr; gap: var(--tf-5); }
    .tf-window-body { grid-template-columns: 1fr; }
    .tf-options { border-left: 0; border-top: 1px solid var(--tf-border); }
}

@media (max-width: 1180px) {
    .tf-nav-desktop { display: none !important; }
    .tf-nav-toggle { display: inline-grid !important; }

    .tf-product-nav { gap: .1rem; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
    .tf-product-nav::-webkit-scrollbar { display: none; }

    .tf-section { padding-block: var(--tf-7); }
    .tf-hero { padding-block: var(--tf-7) var(--tf-6); }
    .tf-hero .tf-actions > .tf-button { flex: 1 1 12rem; }
}

@media (max-width: 580px) {
    .tf-header-bar {
        padding: 0 0.75rem;
        min-height: 3.5rem;
        gap: 0.5rem;
    }
    .tf-brand-text {
        font-size: 0.95rem;
    }
    .tf-brand-icon-wrap {
        width: 1.85rem;
        height: 1.85rem;
        font-size: 1rem;
    }
    .tf-header-actions {
        gap: 0.35rem;
    }
    .tf-account-links {
        gap: 0.35rem;
    }
    .tf-account-links .tf-register {
        display: none;
    }
    .tf-credits-pill {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    .tf-btn-yellow {
        padding: 0.35rem 0.65rem;
        font-size: 0.78rem;
    }
    .tf-icon-button {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    .tf-mobile-drawer {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 560px) {
    .tf-wrap { width: calc(100% - 2rem); }
    .tf-footer-grid { grid-template-columns: 1fr; }
    .tf-status-list > div { flex-direction: column; align-items: flex-start; gap: .3rem; }
    .tf-model-search > div { flex-direction: column; }
    .tf-cta { padding: var(--tf-6) var(--tf-4); }
}

@media (prefers-reduced-motion: reduce) {
    .tf-site *, .tf-site *::before, .tf-site *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
    .tf-site :is(.tf-button, .tf-stat, .tf-features article):hover { transform: none; }
}

/* -------------------------------------------------- checkout and invoice -- */

/*
 * Buying credits is the one flow on the site that takes money, so it gets the
 * plainest layout on the site: what you are buying, what it costs, how you are
 * paying, one button. Nothing else competes for attention.
 */
.tf-checkout { max-width: 42rem; display: grid; gap: var(--tf-5); }

.tf-order {
    display: grid;
    gap: var(--tf-4);
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: var(--tf-5);
    box-shadow: var(--tf-shadow);
}

.tf-order h2 { font-size: 1.15rem; }
.tf-order-rows { display: grid; gap: 0; }

.tf-order-rows > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--tf-4);
    padding: .6rem 0;
    border-bottom: 1px solid var(--tf-border);
    font-size: .95rem;
}

.tf-order-rows > div > span { color: var(--tf-muted); }
.tf-order-rows > div > strong { color: var(--tf-strong); text-align: right; }
.tf-order-fee strong { color: var(--tf-prose) !important; font-weight: 500 !important; }

/* The number the customer is agreeing to. It should be the largest thing in
   the block, and it should never sit on a border. */
.tf-order-total {
    border-bottom: 0 !important;
    padding-top: var(--tf-3) !important;
}

.tf-order-total > span { color: var(--tf-text) !important; font-weight: 600; }
.tf-order-total > strong { font-size: 1.35rem; letter-spacing: -.02em; }

.tf-order-target {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--tf-ok-bg);
    color: var(--tf-ok) !important;
    border: 1px solid color-mix(in srgb, var(--tf-ok) 30%, transparent);
    border-radius: var(--tf-radius);
    padding: var(--tf-3) var(--tf-4);
    font-size: .9rem;
}

.tf-order-target strong { color: inherit; }
.tf-order-note { font-size: .82rem; color: var(--tf-muted); }

/* Consent to immediate delivery, required before paying. Deliberately plain and
   legible rather than fine print -- it is the clause that ends the statutory
   right to cancel, so it has to be read. */
.tf-consent {
    display: flex;
    gap: var(--tf-3);
    align-items: flex-start;
    margin: var(--tf-4) 0;
    font-size: .86rem;
    line-height: 1.5;
    color: var(--tf-text);
}

.tf-consent input { margin-top: .2rem; flex: 0 0 auto; }

.tf-order-error { font-size: .82rem; color: var(--tf-bad); margin: 0 0 var(--tf-3); }

/* ---- method picker ---- */

.tf-methods { display: grid; gap: var(--tf-2); }

.tf-method {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--tf-surface-2);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    padding: var(--tf-3) var(--tf-4);
    cursor: pointer;
    transition: border-color .15s var(--tf-ease), background .15s var(--tf-ease);
}

.tf-method:hover { border-color: var(--tf-border-strong); }

/* The whole row is the target, not just the dot. */
.tf-method input { accent-color: var(--tf-accent); width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.tf-method:has(input:checked) { border-color: var(--tf-accent); background: var(--tf-accent-soft); }
.tf-method span { display: grid; gap: .1rem; min-width: 0; }
.tf-method strong { font-size: .95rem; color: var(--tf-strong); }
.tf-method small { font-size: .8rem; color: var(--tf-muted); }

.tf-order-alt summary { cursor: pointer; font-weight: 600; color: var(--tf-accent); }
.tf-order-alt p { margin: var(--tf-3) 0; font-size: .9rem; }

/* ---- invoice ---- */

.tf-invoice-page { max-width: 48rem; display: grid; gap: var(--tf-4); }

.tf-invoice-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tf-4);
    flex-wrap: wrap;
}

.tf-invoice {
    display: grid;
    gap: var(--tf-5);
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: var(--tf-6);
    box-shadow: var(--tf-shadow);
}

.tf-invoice > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--tf-5);
    flex-wrap: wrap;
    padding-bottom: var(--tf-4);
    border-bottom: 1px solid var(--tf-border);
}

.tf-invoice > header > div { display: grid; gap: .2rem; }
.tf-invoice > header strong { font-size: 1.05rem; color: var(--tf-strong); }
.tf-invoice > header span { font-size: .85rem; color: var(--tf-muted); }
.tf-invoice-meta { text-align: right; justify-items: end; }
.tf-invoice-meta h1 { font-size: 1.5rem; }

.tf-invoice-state {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: var(--tf-pill);
    padding: .15rem .6rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tf-invoice-state::before {
    content: "";
    width: .45rem;
    height: .45rem;
    border-radius: var(--tf-pill);
    background: currentColor;
}

.tf-invoice-state.is-paid { background: var(--tf-ok-bg); color: var(--tf-ok); }
.tf-invoice-state.is-pending { background: var(--tf-warn-bg); color: var(--tf-warn); }
.tf-invoice-state.is-open { background: var(--tf-accent-soft); color: var(--tf-accent); }
.tf-invoice-state.is-failed { background: var(--tf-bad-bg); color: var(--tf-bad); }

.tf-invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: var(--tf-5); }
.tf-invoice-parties h4 { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tf-muted); margin-bottom: .4rem; }
.tf-invoice-parties p { font-size: .9rem; line-height: 1.6; }
.tf-invoice-ok { color: var(--tf-ok); font-weight: 600; }

.tf-invoice .tf-api-table tfoot th { background: var(--tf-surface-2); color: var(--tf-strong); font-size: .95rem; }
.tf-right { text-align: right !important; }

.tf-invoice > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tf-4);
    flex-wrap: wrap;
    padding-top: var(--tf-4);
    border-top: 1px solid var(--tf-border);
}

.tf-invoice > footer h4 { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tf-muted); }
.tf-invoice > footer p { font-size: .95rem; color: var(--tf-strong); }
.tf-invoice-credit { font-size: .78rem; text-align: center; color: var(--tf-muted); }
.tf-invoice-credit a { color: var(--tf-accent); font-weight: 600; }

@media (max-width: 600px) {
    .tf-invoice { padding: var(--tf-4); }
    .tf-invoice-parties { grid-template-columns: 1fr; gap: var(--tf-4); }
    .tf-invoice-meta { text-align: left; justify-items: start; }
}

/* An invoice is a document people print. Everything that is not the document
   itself comes off the page. */
@media print {
    .tf-header, .tf-product-nav, .tf-footer, .tf-invoice-actions, .cookies-card { display: none !important; }
    .tf-invoice { border: 0; box-shadow: none; padding: 0; }
    .tf-invoice-page { max-width: none; }
    .tf-site { background: #fff; }
}

.tf-invoice-warn { color: var(--tf-warn); font-weight: 600; }

/* ------------------------------------------------------- review request -- */

/* Shown once to customers who have actually bought something. Sits inline
   rather than as a modal: a review request that blocks the page is the kind
   people close without reading. */
.tf-review-ask {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tf-4);
    align-items: center;
    justify-content: space-between;
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    padding: var(--tf-4) var(--tf-5);
    margin-bottom: var(--tf-5);
}

.tf-review-ask p {
    margin: .25rem 0 0;
    font-size: .88rem;
    color: var(--tf-muted);
    max-width: 46rem;
}

.tf-review-ask__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tf-3);
    align-items: center;
}

/* ----------------------------------------------------- community invite & launcher -- */

/* Floating launcher pill */
.tf-community-launcher {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 998;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.15rem;
    background: linear-gradient(135deg, #131722, #1e2538);
    border: 1px solid rgba(255, 107, 0, 0.45);
    border-radius: 9999px;
    color: #ffffff !important;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 107, 0, 0.25);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    text-decoration: none;
}
.tf-community-launcher:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: #ff6b00;
    box-shadow: 0 14px 30px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 107, 0, 0.4);
}
.tf-community-launcher__pulse {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    background-color: #25d366;
    border-radius: 50%;
    border: 2px solid #131722;
    box-shadow: 0 0 8px #25d366;
    animation: tf-launcher-pulse 2s infinite;
}
@keyframes tf-launcher-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.tf-community-launcher__icon {
    font-size: 1.15rem;
    color: #ff8c00;
    display: flex;
    align-items: center;
}
.tf-community-launcher__socials {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.25rem;
    font-size: 1rem;
}

/* Modal Overlay */
.tf-community-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.tf-community-modal.is-open {
    opacity: 1;
    visibility: visible;
}
.tf-community-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 16, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Dialog Box */
.tf-community-modal__dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 36rem;
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
    background: var(--tf-surface);
    border: 1px solid var(--tf-border-strong);
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 107, 0, 0.15);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--tf-text);
}
.tf-community-modal.is-open .tf-community-modal__dialog {
    transform: scale(1) translateY(0);
}
.tf-community-modal__close {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    border: 1px solid var(--tf-border);
    background: var(--tf-bg-2);
    color: var(--tf-muted);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}
.tf-community-modal__close:hover {
    color: var(--tf-strong);
    background: var(--tf-surface-hover);
    transform: rotate(90deg);
}

/* Header */
.tf-community-modal__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 107, 0, 0.12);
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ff8c00;
    margin-bottom: 0.65rem;
}
.tf-community-modal__badge-pulse {
    width: 7px;
    height: 7px;
    background: #ff8c00;
    border-radius: 50%;
    box-shadow: 0 0 6px #ff8c00;
}
.tf-community-modal__title {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--tf-strong);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.01em;
}
.tf-community-modal__desc {
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--tf-muted);
    margin: 0 0 1.25rem 0;
}

/* Grid of Primary Cards */
.tf-community-modal__grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}
.tf-community-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    background: var(--tf-bg-2);
    border: 1px solid var(--tf-border);
    border-radius: 0.85rem;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.tf-community-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3.5px;
    opacity: 0.8;
    transition: width 0.2s ease;
}
.tf-community-card:hover {
    background: var(--tf-surface-hover);
    border-color: var(--tf-border-strong);
    transform: translateX(4px);
}
.tf-community-card:hover::before {
    width: 5px;
}

/* Card Network Variants */
.tf-community-card--youtube::before { background: #ff0000; }
.tf-community-card--tiktok::before { background: #00f2fe; }
.tf-community-card--whatsapp::before { background: #25d366; }
.tf-community-card--telegram::before { background: #229ed9; }

.tf-community-card__icon-box {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.tf-community-card:hover .tf-community-card__icon-box {
    transform: scale(1.08);
}
.tf-community-card__icon-box--youtube { background: rgba(255, 0, 0, 0.12); color: #ff0000; }
.tf-community-card__icon-box--tiktok { background: rgba(0, 242, 254, 0.12); color: #00f2fe; }
.tf-community-card__icon-box--whatsapp { background: rgba(37, 211, 102, 0.12); color: #25d366; }
.tf-community-card__icon-box--telegram { background: rgba(34, 158, 217, 0.12); color: #229ed9; }

.tf-community-card__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.tf-community-card__title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.tf-community-card__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tf-strong);
}
.tf-community-card__badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.tf-community-card__badge--youtube { background: rgba(255, 0, 0, 0.15); color: #ff5252; }
.tf-community-card__badge--tiktok { background: rgba(0, 242, 254, 0.15); color: #00f2fe; }
.tf-community-card__badge--whatsapp { background: rgba(37, 211, 102, 0.15); color: #25d366; }
.tf-community-card__badge--telegram { background: rgba(34, 158, 217, 0.15); color: #40b3e9; }

.tf-community-card__caption {
    font-size: 0.8rem;
    color: var(--tf-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tf-community-card__action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.8rem;
    border-radius: 0.5rem;
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    color: var(--tf-strong);
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.15s ease;
}
.tf-community-card:hover .tf-community-card__action {
    background: #ff6b00;
    border-color: #ff6b00;
    color: #ffffff;
}

/* Secondary Pills */
.tf-community-modal__secondary {
    padding-top: 0.85rem;
    border-top: 1px solid var(--tf-border);
    margin-bottom: 1.25rem;
}
.tf-community-modal__secondary-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tf-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.tf-community-modal__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tf-community-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    background: var(--tf-bg-2);
    border: 1px solid var(--tf-border);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tf-text) !important;
    text-decoration: none !important;
    transition: all 0.15s ease;
}
.tf-community-pill:hover {
    background: var(--tf-surface-hover);
    color: var(--tf-strong) !important;
    border-color: var(--tf-border-strong);
    transform: translateY(-1px);
}

/* Footer */
.tf-community-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid var(--tf-border);
    font-size: 0.82rem;
}
.tf-community-modal__credit {
    color: var(--tf-muted);
}
.tf-community-modal__credit a {
    color: #ff8c00;
    text-decoration: none;
    font-weight: 600;
}
.tf-community-modal__credit a:hover {
    text-decoration: underline;
}
.tf-community-modal__dismiss {
    background: none;
    border: 0;
    color: var(--tf-muted);
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.15s ease;
}
.tf-community-modal__dismiss:hover {
    color: var(--tf-strong);
    text-decoration: underline;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .tf-community-launcher {
        bottom: 1rem;
        right: 1rem;
        padding: 0.55rem 0.95rem;
        font-size: 0.82rem;
    }
    .tf-community-launcher__socials {
        display: none;
    }
    .tf-community-modal {
        padding: 0.5rem;
        align-items: flex-end;
    }
    .tf-community-modal__dialog {
        max-height: 85vh;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        padding: 1.25rem 1rem;
    }
    .tf-community-card__caption {
        display: none;
    }
}

/* An inline SVG standing in for a missing font glyph (TikTok). Sized in em and
   filled with currentColor so it sits on the text baseline exactly as the
   Line Awesome icons beside it do. */
.tf-channel-svg {
    display: inline-block;
    vertical-align: -0.125em;
    flex: 0 0 auto;
}

.tf-join__link .tf-channel-svg { font-size: 1.15rem; }
.tf-footer-links a .tf-channel-svg { margin-top: 0.25rem; font-size: 1rem; }

/* ==========================================================================
   UnlockTool.Net Theme & Cloned Design Stack
   ========================================================================== */

/* Hero Title */
.tf-unlocktool-hero {
    text-align: center;
    padding: 3rem 1rem 2rem;
}

.tf-unlocktool-title {
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 900;
    letter-spacing: -1px;
    color: #1e2227;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .tf-unlocktool-title {
    color: #f8f9fa;
}

.tf-unlocktool-title span {
    color: #f59e0b !important;
}

.tf-unlocktool-subtitle {
    font-size: 1.15rem;
    font-weight: 500;
    color: #6c757d;
    max-width: 650px;
    margin: 0 auto 1.5rem;
}

/* Authentic UnlockTool Software Cockpit Window Mockup with SaaS Depth */
.tf-unlock-window {
    background: #2b2e33;
    border-radius: 10px;
    border: 1px solid #3d424a;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), 0 0 35px rgba(255, 87, 34, 0.15);
    overflow: hidden;
    max-width: 1040px;
    margin: 0 auto 3rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transform: perspective(1200px) rotateX(0deg) scale(1);
    transition: transform 0.25s ease-out, box-shadow 0.3s ease;
    will-change: transform;
}

.tf-window-titlebar {
    background: #1e2124;
    padding: 0.55rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #343a40;
    font-size: 0.85rem;
    color: #ced4da;
    user-select: none;
}

.tf-window-titlebar .tf-win-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #ffffff;
}

.tf-window-titlebar .tf-win-brand i {
    color: #ff5722;
    font-size: 1.1rem;
}

.tf-win-controls {
    display: inline-flex;
    gap: 0.75rem;
    color: #868e96;
    font-size: 0.95rem;
}

/* Brand Buttons Grid Header inside Tool */
.tf-brand-tabs {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 2px;
    background: #181a1d;
    padding: 3px;
    border-bottom: 1px solid #3d424a;
}

@media (max-width: 860px) {
    .tf-brand-tabs {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tf-brand-btn {
    border: none;
    outline: none;
    padding: 0.45rem 0.2rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    cursor: pointer;
    text-align: center;
    border-radius: 2px;
    transition: opacity 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.tf-brand-btn:hover {
    opacity: 0.9;
    transform: scale(0.98);
}

.tf-brand-btn.active {
    outline: 2px solid #ffffff;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Sub-nav inside tool */
.tf-tool-subnav {
    display: flex;
    background: #212428;
    border-bottom: 1px solid #383c44;
    padding: 0 0.5rem;
    gap: 0.5rem;
}

.tf-tool-subnav-btn {
    background: transparent;
    border: none;
    color: #adb5bd;
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.15s ease;
}

.tf-tool-subnav-btn.active, .tf-tool-subnav-btn:hover {
    color: #ffc107;
    border-bottom: 2px solid #ffc107;
}

/* Workspace 2-Column Grid */
.tf-tool-workspace {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 380px;
    background: #2b2e33;
}

@media (max-width: 768px) {
    .tf-tool-workspace {
        grid-template-columns: 1fr;
    }
}

/* Left Actions Column */
.tf-tool-actions {
    background: #24272c;
    border-right: 1px solid #383c44;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.tf-tool-action-btn {
    background: #1e2125;
    border: 1px solid #383c44;
    color: #f8f9fa;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.tf-tool-action-btn i {
    color: #ff9800;
    font-size: 1rem;
    width: 1.1rem;
    text-align: center;
}

.tf-tool-action-btn:hover {
    background: #343a40;
    border-color: #ffc107;
}

/* Right Console & Diagnostics */
.tf-tool-console {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background: #2b2e33;
}

.tf-console-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.tf-console-modes {
    display: flex;
    gap: 0.35rem;
}

.tf-mode-pill {
    background: #1e2125;
    border: 1px solid #3d424a;
    color: #f8f9fa;
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.tf-mode-pill.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #f59e0b;
    color: #0b0f19;
    font-weight: 700;
}

.tf-console-selectors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.tf-console-select {
    flex: 1;
    min-width: 160px;
    background: #1e2125;
    border: 1px solid #3d424a;
    color: #ced4da;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-family: inherit;
}

.tf-terminal-box {
    flex: 1;
    background: #16181b;
    border: 1px solid #343a40;
    border-radius: 4px;
    padding: 0.75rem;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #e9ecef;
    min-height: 230px;
    max-height: 280px;
    overflow-y: auto;
}

.tf-terminal-box .log-red { color: #ff5252; font-weight: bold; }
.tf-terminal-box .log-green { color: #4caf50; font-weight: bold; }
.tf-terminal-box .log-cyan { color: #00e5ff; }
.tf-terminal-box .log-yellow { color: #ffeb3b; }
.tf-terminal-box .log-muted { color: #868e96; }

/* Signature Driver Warning Banner (Pink) */
.tf-driver-warning {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

.tf-driver-warning strong {
    color: #c82333;
}

.tf-driver-warning code {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    color: #0056b3;
    font-family: "Consolas", monospace;
    font-size: 0.9em;
}

/* UnlockTool Daily Updates Changelog Cards */
.tf-updates-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.tf-update-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .tf-update-card {
    background: #24272c;
    border-color: #383c44;
}

.tf-update-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #f59e0b;
    margin-bottom: 1rem;
}

.tf-pill-badge {
    background: #212529;
    color: #ffffff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-family: "Consolas", monospace;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-block;
}

.tf-update-card .tf-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
    color: #495057;
}

[data-theme="dark"] .tf-update-card .tf-meta-row {
    color: #ced4da;
}

.tf-update-card .tf-changelog-content {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
    line-height: 1.6;
}

[data-theme="dark"] .tf-update-card .tf-changelog-content {
    background: #1c1e22;
    border-color: #343a40;
}

.tf-update-card .tf-changelog-content h4 {
    font-size: 1rem;
    font-weight: 800;
    color: #ff5722;
    margin: 0.75rem 0 0.4rem;
}

.tf-update-card .tf-changelog-content ul {
    margin: 0 0 0.5rem 1.25rem;
    padding: 0;
}

.tf-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Supported Models Brand Tiles */
.tf-brand-tiles-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .tf-brand-tiles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tf-brand-tile-btn {
    padding: 0.75rem 0.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    transition: transform 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.tf-brand-tile-btn:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

/* Search input for models */
.tf-models-search-bar {
    width: 100%;
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .tf-models-search-bar {
    background: #24272c;
    border-color: #3d424a;
    color: #ffffff;
}

/* UnlockTool Models Table */
.tf-models-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2rem;
}

[data-theme="dark"] .tf-models-table {
    background: #24272c;
    color: #f8f9fa;
}

.tf-models-table th {
    background: #f1f3f5;
    color: #495057;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    border-bottom: 2px solid #dee2e6;
    text-align: left;
}

[data-theme="dark"] .tf-models-table th {
    background: #1c1e21;
    color: #ced4da;
    border-color: #343a40;
}

.tf-models-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.92rem;
    vertical-align: middle;
}

[data-theme="dark"] .tf-models-table td {
    border-color: #343a40;
}

.tf-models-table .model-name {
    font-weight: 700;
    color: #f59e0b;
    text-decoration: none;
}

.tf-models-table .model-name:hover {
    color: #fbbf24;
    text-decoration: underline;
}

/* Function Badges matching UnlockTool */
.badge-fn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.55rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    margin: 2px;
    color: #ffffff;
    text-decoration: none;
}

.badge-fn.bg-erase-frp { background: #28a745; }
.badge-fn.bg-unlock-bl { background: #dc3545; }
.badge-fn.bg-factory-reset { background: #007bff; }
.badge-fn.bg-auth-flash { background: #17a2b8; color: #ffffff; }
.badge-fn.bg-micloud { background: #495057; }
.badge-fn.bg-efs { background: #6c757d; }
.badge-fn.bg-kg { background: #6f42c1; }
.badge-fn.bg-ramdisk { background: #111111; }

/* 3D Pricing Boxes (Price UnlockTool) */
.tf-pricing-grid-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1080px;
    margin: 0 auto 3rem;
}

@media (max-width: 860px) {
    .tf-pricing-grid-boxes {
        grid-template-columns: 1fr;
    }
}

.tf-pricing-box-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

[data-theme="dark"] .tf-pricing-box-card {
    background: #24272c;
    border-color: #383c44;
}

.tf-box-art {
    width: 190px;
    height: 250px;
    background: linear-gradient(145deg, #1c1f24, #2a2e35);
    border-radius: 6px;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 12px solid #ff5722;
    border-top: 2px solid #383c44;
    box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.35);
    position: relative;
    transform: perspective(600px) rotateY(-12deg);
    transition: transform 0.25s ease;
}

.tf-box-art:hover {
    transform: perspective(600px) rotateY(-4deg) translateY(-5px);
}

.tf-box-art .tf-box-logo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: radial-gradient(circle, #ff9800, #ff5722);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2.5rem;
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.7);
    margin-bottom: 1rem;
}

.tf-box-art .tf-box-title {
    color: #ff9800;
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.tf-pricing-box-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.tf-package-pill {
    background: #111111;
    color: #ffffff;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-weight: 800;
    font-size: 0.85rem;
    display: inline-block;
}

.tf-pricing-box-card .tf-price-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: #28a745;
    margin: 0.75rem 0;
}

/* Resellers Grid */
.tf-resellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.tf-reseller-card {
    background: var(--tf-surface, #111827);
    border: 1px solid var(--tf-border, rgba(255, 255, 255, 0.08));
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .tf-reseller-card {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.08);
}

.tf-reseller-card .tf-flag {
    font-size: 1.8rem;
    margin-right: 0.5rem;
}

/* ==========================================================================
   GLOBAL HIGH-CONTRAST TABLES FOR SITE & PORTAL
   Prevents unreadable dark text on dark backgrounds or stark white table-light headers
   ========================================================================== */
.tf-site .table,
.table.tf-table-dark {
    --bs-table-bg: transparent !important;
    --bs-table-color: #f1f5f9 !important;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.04) !important;
    --bs-table-hover-color: #ffffff !important;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02) !important;
    --bs-table-striped-color: #f1f5f9 !important;
    --bs-table-active-bg: rgba(245, 158, 11, 0.1) !important;
    --bs-table-active-color: #ffffff !important;
    --bs-table-border-color: rgba(255, 255, 255, 0.08) !important;
    background-color: transparent !important;
    color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.tf-site .table thead,
.tf-site .table thead.table-light,
.tf-site .table thead th,
.tf-site .table th {
    background-color: #0b0f19 !important;
    color: #f59e0b !important;
    border-bottom: 2px solid rgba(245, 158, 11, 0.3) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
}

.tf-site .table tbody td,
.tf-site .table tbody th {
    background-color: transparent !important;
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
    vertical-align: middle !important;
}

.tf-site .table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
}

.tf-site .table tbody strong,
.tf-site .table tbody b,
.tf-site .table tbody .fw-bold {
    color: #ffffff !important;
}

.tf-site .table tbody .text-muted,
.tf-site .table tbody small {
    color: #94a3b8 !important;
}

/* Fix generic badges on dark tables */
.tf-site .badge.bg-light.text-dark {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Driver warning banner in dark theme */
.tf-site .tf-driver-warning,
[data-theme="dark"] .tf-driver-warning {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    color: #fca5a5 !important;
}
.tf-site .tf-driver-warning strong,
[data-theme="dark"] .tf-driver-warning strong {
    color: #ef4444 !important;
}
.tf-site .tf-driver-warning code,
[data-theme="dark"] .tf-driver-warning code {
    background: rgba(0, 0, 0, 0.4) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* --- High-Precision Breadcrumbs with Microdata --- */
.tf-breadcrumb-nav {
    display: flex;
    justify-content: center;
    margin-bottom: var(--tf-3, 0.75rem);
}
.tf-breadcrumbs-list {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0.35rem 0.85rem;
    margin: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--tf-border, rgba(255, 255, 255, 0.1));
    border-radius: 9999px;
    font-size: 0.82rem;
}
.tf-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    color: var(--tf-muted, #94a3b8);
}
.tf-breadcrumb-link {
    color: var(--tf-accent, #f59e0b);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}
.tf-breadcrumb-link:hover {
    color: #fbbf24;
    text-decoration: underline;
}
.tf-breadcrumb-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.7rem;
}
.tf-breadcrumb-item.active {
    color: var(--tf-text-secondary, #cbd5e1);
    font-weight: 600;
}

/* --- Workstation Environment & Setup Guide --- */
.tf-setup-guide {
    background: var(--tf-surface, #111827);
    border: 1px solid var(--tf-border, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    margin-bottom: 2rem;
}
.tf-setup-guide__header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--tf-border, rgba(255, 255, 255, 0.08));
    padding: 0.85rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tf-setup-guide__body {
    padding: 0;
}
.tf-setup-step {
    display: flex;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    align-items: flex-start;
}
.tf-setup-step:last-child {
    border-bottom: none;
}
.tf-setup-step__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.tf-setup-step__content {
    flex: 1;
    min-width: 0;
}
.tf-setup-step__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.35rem;
    flex-wrap: wrap;
}
.tf-setup-step__head strong {
    color: #f8fafc;
    font-size: 0.95rem;
}
.tf-code-snippet {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.65rem 0.95rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.82rem;
    color: #38bdf8;
    word-break: break-all;
    overflow-wrap: anywhere;
    line-height: 1.5;
}
.tf-code-snippet code {
    background: rgba(255, 255, 255, 0.08);
    color: #7dd3fc;
    padding: 0.12rem 0.35rem;
    border-radius: 3px;
    font-size: 0.82rem;
    word-break: break-all;
}


