/* ==========================================================================
   TheiBusiness — main stylesheet
   Light theme first, dark mode via [data-theme] or system preference.
   Logical properties everywhere (RTL-ready for Arabic).
   ========================================================================== */

:root {
	--tb-bg: #ffffff;
	--tb-surface: #ffffff;
	--tb-surface-2: #f6f7fb;
	--tb-surface-3: #eceff6;
	--tb-text: #0b1020;
	--tb-text-2: #2b3245;
	--tb-muted: #5b6478;
	--tb-line: #e4e7ef;
	--tb-line-strong: #d3d8e4;
	--tb-primary: #3a5afe;
	--tb-primary-hover: #2b47e0;
	--tb-primary-ink: #ffffff;
	--tb-primary-soft: #eef1ff;
	--tb-accent: #13b5a6;
	--tb-ok: #0f8a6c;
	--tb-ok-soft: #e6f6f1;
	--tb-warn: #a95a08;
	--tb-warn-soft: #fff4e5;
	--tb-danger: #c2362b;
	--tb-danger-soft: #fdecea;
	--tb-radius: 16px;
	--tb-radius-sm: 10px;
	--tb-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -12px rgba(16, 24, 40, .12);
	--tb-shadow-lg: 0 24px 60px -20px rgba(16, 24, 40, .25);
	--tb-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", sans-serif;
	--tb-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
	--tb-container: 1180px;
	--tb-header-h: 68px;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--tb-bg: #0a0e1a; --tb-surface: #111728; --tb-surface-2: #0e1322; --tb-surface-3: #1b2236;
		--tb-text: #eef1f8; --tb-text-2: #c9cfdd; --tb-muted: #98a1b7; --tb-line: #222a40; --tb-line-strong: #2e3753;
		--tb-primary: #6f86ff; --tb-primary-hover: #8a9cff; --tb-primary-ink: #0a0e1a; --tb-primary-soft: #1a2244;
		--tb-ok: #3ccfa5; --tb-ok-soft: #10302a; --tb-warn: #f5b04c; --tb-warn-soft: #33260f; --tb-danger: #ff7b6e; --tb-danger-soft: #3a1714;
		--tb-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--tb-bg: #0a0e1a; --tb-surface: #111728; --tb-surface-2: #0e1322; --tb-surface-3: #1b2236;
	--tb-text: #eef1f8; --tb-text-2: #c9cfdd; --tb-muted: #98a1b7; --tb-line: #222a40; --tb-line-strong: #2e3753;
	--tb-primary: #6f86ff; --tb-primary-hover: #8a9cff; --tb-primary-ink: #0a0e1a; --tb-primary-soft: #1a2244;
	--tb-ok: #3ccfa5; --tb-ok-soft: #10302a; --tb-warn: #f5b04c; --tb-warn-soft: #33260f; --tb-danger: #ff7b6e; --tb-danger-soft: #3a1714;
	--tb-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
	color-scheme: dark;
}

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--tb-header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--tb-bg); color: var(--tb-text); font-family: var(--tb-font); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--tb-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tb-primary-hover); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; color: var(--tb-text); margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.03em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--tb-primary); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--tb-primary) 25%, transparent); }
kbd { font-family: var(--tb-mono); font-size: .72rem; padding: 2px 6px; border: 1px solid var(--tb-line-strong); border-block-end-width: 2px; border-radius: 6px; background: var(--tb-surface); color: var(--tb-muted); }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.tb-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 1000; background: var(--tb-primary); color: var(--tb-primary-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.tb-skip:focus { top: 12px; color: var(--tb-primary-ink); }
.tb-main { display: block; min-height: 50vh; outline: none; }
.tb-icon { flex: none; vertical-align: middle; }
.tb-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tb-container { width: 100%; max-width: var(--tb-container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.tb-narrow { max-width: 780px; }
.tb-container.tb-narrow { max-width: calc(780px + 2 * clamp(16px, 4vw, 32px)); }
.tb-center { text-align: center; }
.tb-mt { margin-block-start: clamp(32px, 5vw, 56px); }
.tb-muted { color: var(--tb-muted); }
.tb-eyebrow { font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; color: var(--tb-primary); margin: 0 0 12px; }

/* --------------------------------------------------------------- Buttons */
.tb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 650; font-size: .95rem; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .12s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease; }
.tb-btn:active { transform: translateY(1px); }
.tb-btn--primary { background: var(--tb-primary); color: var(--tb-primary-ink); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 20px -10px color-mix(in srgb, var(--tb-primary) 80%, transparent); }
.tb-btn--primary:hover { background: var(--tb-primary-hover); color: var(--tb-primary-ink); transform: translateY(-1px); }
.tb-btn--secondary { background: var(--tb-surface); color: var(--tb-text); border-color: var(--tb-line-strong); }
.tb-btn--secondary:hover { color: var(--tb-text); border-color: color-mix(in srgb, var(--tb-text) 30%, var(--tb-line)); background: var(--tb-surface-2); }
.tb-btn--ghost { background: transparent; color: var(--tb-primary); }
.tb-btn--light { background: #fff; color: #0b1020; }
.tb-btn--light:hover { color: #0b1020; transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.tb-btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.tb-btn--outline-light:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.08); }
.tb-btn--sm { min-height: 38px; padding: 0 14px; font-size: .88rem; border-radius: 10px; }
.tb-btn--lg { min-height: 54px; padding: 0 28px; font-size: 1.02rem; border-radius: 14px; }
.tb-btn--block { width: 100%; }
.tb-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; }
.tb-link:hover { text-decoration: underline; }
.tb-iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--tb-text-2); cursor: pointer; }
.tb-iconbtn:hover { background: var(--tb-surface-2); color: var(--tb-text); }
.tb-only-dark { display: none; }
:root[data-theme="dark"] .tb-only-dark { display: inline; }
:root[data-theme="dark"] .tb-only-light { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tb-only-dark { display: inline; } :root:not([data-theme="light"]) .tb-only-light { display: none; } }

.tb-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--tb-surface-2); color: var(--tb-muted); border: 1px solid var(--tb-line); letter-spacing: .02em; white-space: nowrap; vertical-align: middle; }
.tb-badge--ok { background: var(--tb-ok-soft); color: var(--tb-ok); border-color: transparent; }
.tb-chip { display: inline-block; font-size: .78rem; font-weight: 650; padding: 4px 11px; border-radius: 99px; background: var(--tb-primary-soft); color: var(--tb-primary); text-decoration: none; margin-block-end: 12px; }
.tb-chip:hover { background: color-mix(in srgb, var(--tb-primary) 18%, var(--tb-primary-soft)); }
.tb-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: var(--tb-surface); border: 1px solid var(--tb-line); font-size: .85rem; font-weight: 600; color: var(--tb-text-2); box-shadow: 0 1px 2px rgba(16,24,40,.04); margin: 0 0 20px; }
.tb-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tb-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tb-accent) 20%, transparent); }

/* ---------------------------------------------------------------- Header */
.tb-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--tb-bg) 82%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-block-end: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.admin-bar .tb-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tb-header { top: 46px; } }
.tb-header.is-scrolled { border-block-end-color: var(--tb-line); box-shadow: 0 6px 24px -18px rgba(16,24,40,.25); }
.tb-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--tb-header-h); }
.tb-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tb-text); flex: none; }
.tb-logo:hover { color: var(--tb-text); }
.tb-logo__img { max-height: 40px; width: auto; }
.tb-logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.tb-logo__name { font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.tb-logo__tag { font-size: .66rem; font-weight: 650; color: var(--tb-muted); letter-spacing: .06em; text-transform: uppercase; margin-block-start: 3px; }
.tb-nav { flex: 1; }
.tb-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: 2px; }
.tb-nav__list a { display: block; white-space: nowrap; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--tb-text-2); font-weight: 600; font-size: .93rem; }
.tb-nav__list a:hover { color: var(--tb-text); background: var(--tb-surface-2); }
.tb-nav__list .current-menu-item > a, .tb-nav__list .current_page_item > a, .tb-nav__list a[aria-current="page"] { color: var(--tb-primary); }
.tb-nav__mobile-actions { display: none; }
.tb-header__actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.tb-header__link { white-space: nowrap; color: var(--tb-text-2); text-decoration: none; font-weight: 600; font-size: .93rem; padding: 8px 10px; border-radius: 10px; }
.tb-header__link:hover { color: var(--tb-text); background: var(--tb-surface-2); }
.tb-searchbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 10px 0 12px; border: 1px solid var(--tb-line); border-radius: 10px; color: var(--tb-muted); text-decoration: none; background: var(--tb-surface-2); font-size: .88rem; min-width: 190px; }
.tb-searchbtn:hover { color: var(--tb-text); border-color: var(--tb-line-strong); }
.tb-searchbtn__kbd { margin-inline-start: auto; }
.tb-burger { display: none; }
.tb-burger__close { display: none; }

@media (max-width: 1100px) { .tb-searchbtn { min-width: 0; } .tb-searchbtn__label, .tb-searchbtn__kbd { display: none; } .tb-searchbtn { width: 40px; padding: 0; justify-content: center; } }
@media (max-width: 1023px) {
	.tb-burger { display: inline-grid; }
	.tb-header__link, .tb-header__cta { display: none; }
	.tb-nav { position: fixed; inset: var(--tb-header-h) 0 0 0; background: var(--tb-bg); padding: 16px clamp(16px, 4vw, 32px) 32px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s; overflow-y: auto; z-index: 99; }
	.admin-bar .tb-nav { inset-block-start: calc(var(--tb-header-h) + 46px); }
	.tb-nav-open .tb-nav { opacity: 1; transform: none; visibility: visible; }
	.tb-nav-open { overflow: hidden; }
	.tb-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
	.tb-nav__list a { padding: 14px 12px; font-size: 1.1rem; border-block-end: 1px solid var(--tb-line); border-radius: 0; }
	.tb-nav__mobile-actions { display: grid; gap: 10px; margin-block-start: 24px; }
	.tb-nav-open .tb-burger__open { display: none; }
	.tb-nav-open .tb-burger__close { display: inline; }
}
@media (max-width: 380px) { .tb-logo__tag { display: none; } }

/* ------------------------------------------------------------------ Hero */
.tb-hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 7vw, 88px); text-align: center; }
.tb-hero__bg { position: absolute; inset: 0; z-index: -1; background:
	radial-gradient(600px 300px at 15% 0%, color-mix(in srgb, var(--tb-primary) 16%, transparent), transparent 70%),
	radial-gradient(600px 320px at 85% 10%, color-mix(in srgb, var(--tb-accent) 14%, transparent), transparent 70%),
	linear-gradient(var(--tb-bg), var(--tb-bg)); }
.tb-hero__bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--tb-line) 1px, transparent 1px), linear-gradient(90deg, var(--tb-line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); opacity: .55; }
.tb-hero__inner { position: relative; }
.tb-hero__title { max-width: 20ch; text-wrap: balance; margin-inline: auto; background: linear-gradient(180deg, var(--tb-text) 30%, color-mix(in srgb, var(--tb-text) 70%, var(--tb-primary))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tb-hero__sub { max-width: 60ch; margin: 0 auto clamp(28px, 4vw, 44px); font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--tb-muted); }
.tb-hero__tool { max-width: 860px; margin-inline: auto; }
.tb-hero--compact { padding-block: clamp(28px, 5vw, 56px) clamp(40px, 6vw, 64px); }
.tb-hero--compact .tb-hero__title { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.tb-hero .tb-breadcrumbs ol { justify-content: center; }

.tb-strip { border-block: 1px solid var(--tb-line); background: var(--tb-surface-2); }
.tb-strip__list { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tb-strip__list li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--tb-muted); }
.tb-strip__list .tb-icon { color: var(--tb-primary); }
.tb-strip__list strong { color: var(--tb-text); display: block; }
@media (max-width: 900px) { .tb-strip__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* -------------------------------------------------------------- Sections */
.tb-section { padding-block: clamp(56px, 8vw, 104px); }
.tb-section--alt { background: var(--tb-surface-2); border-block: 1px solid var(--tb-line); }
.tb-section--tight { padding-block: clamp(28px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.tb-section__head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.tb-section__head p:last-child { color: var(--tb-muted); font-size: 1.05rem; }
.tb-section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; text-align: start; }
.tb-section__head--row h2 { margin: 0; }
.tb-grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.tb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tb-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .tb-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .tb-grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tb-grid--4 { grid-template-columns: 1fr; } }
.tb-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.tb-split--form { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
@media (max-width: 860px) { .tb-split, .tb-split--form { grid-template-columns: 1fr; } }

.tb-feature { background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: 20px; padding: clamp(20px, 2.4vw, 28px); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.tb-feature:hover { transform: translateY(-2px); box-shadow: var(--tb-shadow); border-color: var(--tb-line-strong); }
.tb-feature__top { display: flex; justify-content: space-between; align-items: center; margin-block-end: 18px; }
.tb-feature__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tb-primary-soft); color: var(--tb-primary); margin-block-end: 14px; }
.tb-feature__top .tb-feature__icon { margin: 0; }
.tb-feature p { color: var(--tb-muted); margin: 0; }
.tb-feature--soon { background: linear-gradient(180deg, var(--tb-surface), var(--tb-surface-2)); border-style: dashed; }

.tb-typecard { background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: 20px; padding: 22px; }
.tb-typecard__link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--tb-text); margin-block-end: 14px; }
.tb-typecard__link h3 { margin: 0; }
.tb-typecard__link:hover h3 { color: var(--tb-primary); }
.tb-typecard__icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tb-text); color: var(--tb-bg); }
.tb-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; color: var(--tb-text-2); }
.tb-checklist li { position: relative; padding-inline-start: 24px; }
.tb-checklist li::before { content: ""; position: absolute; inset-inline-start: 0; top: .35em; width: 14px; height: 14px; border-radius: 50%; background: var(--tb-ok-soft); box-shadow: inset 0 0 0 4px var(--tb-ok-soft), inset 0 0 0 10px var(--tb-ok); }
.tb-checklist--x li::before { background: var(--tb-primary-soft); box-shadow: inset 0 0 0 4px var(--tb-primary-soft), inset 0 0 0 10px var(--tb-primary); }

.tb-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
.tb-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: 16px; padding: 16px 18px; }
.tb-steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--tb-primary-soft); color: var(--tb-primary); font-weight: 800; }
.tb-steps span { color: var(--tb-muted); font-size: .92rem; }

.tb-flow { list-style: none; margin: 0 auto; padding: clamp(28px, 4vw, 48px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tb-flow li { position: relative; background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: 20px; padding: 22px; }
.tb-flow h2 { font-size: 1.08rem; letter-spacing: -.01em; margin: 12px 0 6px; }
.tb-flow p { color: var(--tb-muted); font-size: .92rem; margin: 0; }
.tb-flow__n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tb-text); color: var(--tb-bg); font-weight: 800; }
@media (max-width: 900px) { .tb-flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tb-flow { grid-template-columns: 1fr; } }

.tb-table-wrap { overflow-x: auto; border: 1px solid var(--tb-line); border-radius: 16px; background: var(--tb-surface); }
.tb-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 720px; }
.tb-table th, .tb-table td { text-align: start; vertical-align: top; padding: 14px 16px; border-block-end: 1px solid var(--tb-line); }
.tb-table thead th { background: var(--tb-surface-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tb-muted); }
.tb-table tbody tr:last-child > * { border-block-end: 0; }
.tb-table tbody th { white-space: nowrap; }

.tb-accordion { display: grid; gap: 10px; }
.tb-accordion__item { background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: 14px; overflow: hidden; }
.tb-accordion__item summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; font-weight: 650; position: relative; }
.tb-accordion__item summary::-webkit-details-marker { display: none; }
.tb-accordion__item summary::after { content: ""; position: absolute; inset-inline-end: 18px; top: 50%; width: 10px; height: 10px; border-inline-end: 2px solid var(--tb-muted); border-block-end: 2px solid var(--tb-muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
[dir="rtl"] .tb-accordion__item summary { padding: 16px 18px 16px 52px; }
.tb-accordion__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.tb-accordion__q { font-size: 1rem; letter-spacing: -.01em; margin: 0; display: inline; font-weight: 650; }
.tb-accordion__body { padding: 0 18px 16px; color: var(--tb-text-2); }

.tb-cta { background: radial-gradient(800px 300px at 90% 0%, color-mix(in srgb, var(--tb-accent) 45%, transparent), transparent 70%), linear-gradient(135deg, #1b2bff 0%, #3a5afe 45%, #1a1f4d 100%); color: #fff; }
.tb-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(40px, 6vw, 72px); flex-wrap: wrap; }
.tb-cta h2 { color: #fff; margin: 0 0 6px; }
.tb-cta p { margin: 0; color: rgba(255,255,255,.8); }
.tb-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------ Page hero */
.tb-pagehero { padding: clamp(32px, 5vw, 64px) 0 clamp(20px, 3vw, 36px); background: linear-gradient(180deg, var(--tb-surface-2), var(--tb-bg)); border-block-end: 1px solid var(--tb-line); }
.tb-pagehero__title { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-block-end: 10px; }
.tb-pagehero__sub { color: var(--tb-muted); font-size: 1.08rem; max-width: 62ch; margin: 0; }
.tb-pagehero--center { text-align: center; }
.tb-pagehero--center .tb-pagehero__sub { margin-inline: auto; margin-block-end: 24px; }
.tb-pagehero--center .tb-breadcrumbs ol { justify-content: center; }
.tb-pagehero--search .tb-searchform { margin-block-start: 16px; }

.tb-breadcrumbs { margin-block-end: 16px; font-size: .85rem; }
.tb-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; color: var(--tb-muted); }
.tb-breadcrumbs li:not(:last-child)::after { content: "/"; margin-inline-start: 6px; opacity: .5; }
.tb-breadcrumbs a { color: var(--tb-muted); text-decoration: none; }
.tb-breadcrumbs a:hover { color: var(--tb-primary); }
.tb-breadcrumbs [aria-current] { color: var(--tb-text-2); }

/* ------------------------------------------------------------------ Blog */
.tb-catnav { border-block-end: 1px solid var(--tb-line); }
.tb-catnav ul { list-style: none; margin: 0; padding: 12px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.tb-catnav ul::-webkit-scrollbar { display: none; }
.tb-catnav a { display: inline-block; white-space: nowrap; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--tb-line); text-decoration: none; color: var(--tb-text-2); font-size: .88rem; font-weight: 600; }
.tb-catnav a:hover { border-color: var(--tb-line-strong); color: var(--tb-text); }
.tb-catnav a[aria-current] { background: var(--tb-text); color: var(--tb-bg); border-color: var(--tb-text); }

.tb-card { display: flex; flex-direction: column; background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: 20px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.tb-card:hover { transform: translateY(-3px); box-shadow: var(--tb-shadow); }
.tb-card__media { display: block; aspect-ratio: 16 / 9; background: var(--tb-surface-2); overflow: hidden; }
.tb-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tb-card:hover .tb-card__media img { transform: scale(1.03); }
.tb-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--tb-primary); background: radial-gradient(circle at 30% 20%, var(--tb-primary-soft), var(--tb-surface-2)); }
.tb-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.tb-card__body .tb-chip { align-self: flex-start; }
.tb-card__title { font-size: 1.12rem; margin: 0 0 8px; }
.tb-card__title a { color: var(--tb-text); text-decoration: none; }
.tb-card__title a:hover { color: var(--tb-primary); }
.tb-card__excerpt { color: var(--tb-muted); font-size: .93rem; margin: 0 0 14px; flex: 1; }
.tb-card__meta { font-size: .8rem; color: var(--tb-muted); margin: 0; }

.tb-article__head { padding: clamp(28px, 5vw, 56px) 0 24px; }
.tb-article__title { font-size: clamp(2rem, 4.4vw, 3rem); }
.tb-article__lead { font-size: 1.2rem; color: var(--tb-muted); }
.tb-article__media { margin-block: 0 clamp(24px, 4vw, 40px); max-width: 1100px; }
.tb-article__media img { width: 100%; border-radius: 22px; aspect-ratio: 16 / 9; object-fit: cover; }
.tb-article__media figcaption { font-size: .82rem; color: var(--tb-muted); margin-block-start: 8px; text-align: center; }
.tb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: .88rem; color: var(--tb-muted); }
.tb-meta span { display: inline-flex; align-items: center; gap: 6px; }
.tb-meta__author img { border-radius: 50%; }
.tb-meta a { color: var(--tb-text); text-decoration: none; font-weight: 650; }
.tb-article__foot { margin-block: 40px; display: grid; gap: 24px; }
.tb-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.tb-tags a { font-size: .82rem; padding: 4px 10px; border-radius: 8px; background: var(--tb-surface-2); color: var(--tb-text-2); text-decoration: none; }
.tb-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-block: 16px; border-block: 1px solid var(--tb-line); }
.tb-share__label { font-weight: 700; font-size: .9rem; margin-inline-end: 6px; }
.tb-share__btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--tb-line); background: var(--tb-surface); color: var(--tb-text-2); cursor: pointer; }
.tb-share__btn:hover { color: var(--tb-primary); border-color: var(--tb-primary); }
.tb-share__btn.is-copied { color: var(--tb-ok); border-color: var(--tb-ok); }
.tb-author { display: flex; gap: 16px; padding: 20px; border-radius: 16px; background: var(--tb-surface-2); }
.tb-author img { border-radius: 50%; flex: none; }
.tb-author p { margin: 0; color: var(--tb-muted); font-size: .92rem; }
.tb-author__name a { font-weight: 750; color: var(--tb-text); text-decoration: none; }
.tb-postnav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tb-postnav a { display: block; padding: 16px; border: 1px solid var(--tb-line); border-radius: 14px; text-decoration: none; color: var(--tb-text); height: 100%; }
.tb-postnav a:hover { border-color: var(--tb-primary); }
.tb-postnav .nav-next { text-align: end; }
.tb-postnav__label { display: block; font-size: .78rem; color: var(--tb-muted); text-transform: uppercase; letter-spacing: .06em; }
.tb-postnav__title { font-weight: 650; }
.tb-related { padding-block: 24px clamp(56px, 8vw, 96px); }
.tb-related h2 { font-size: 1.5rem; }

.tb-toc { margin: 0 0 32px; border: 1px solid var(--tb-line); border-radius: 16px; background: var(--tb-surface-2); }
.tb-toc summary { cursor: pointer; padding: 14px 18px; font-weight: 700; }
.tb-toc ol { margin: 0; padding: 0 18px 16px 36px; display: grid; gap: 6px; font-size: .93rem; }
[dir="rtl"] .tb-toc ol { padding: 0 36px 16px 18px; }
.tb-toc__l3 { margin-inline-start: 16px; list-style: circle; }
.tb-toc a { color: var(--tb-text-2); text-decoration: none; }
.tb-toc a:hover { color: var(--tb-primary); }

.tb-pagination { margin-block-start: 48px; }
.tb-pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.tb-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--tb-line); text-decoration: none; color: var(--tb-text-2); font-weight: 650; }
.tb-pagination .page-numbers.current { background: var(--tb-text); color: var(--tb-bg); border-color: var(--tb-text); }
.tb-pagination a.page-numbers:hover { border-color: var(--tb-primary); color: var(--tb-primary); }

/* ------------------------------------------------------------------ Prose */
.tb-prose { font-size: 1.06rem; line-height: 1.75; color: var(--tb-text-2); overflow-wrap: break-word; }
.tb-prose > * + * { margin-block-start: 1.1em; }
.tb-prose p, .tb-prose ul, .tb-prose ol { margin-block-end: 0; }
.tb-prose h2 { font-size: 1.65rem; margin-block: 2em .6em; }
.tb-prose h3 { font-size: 1.25rem; margin-block: 1.6em .5em; }
.tb-prose h2:first-child, .tb-prose h3:first-child { margin-block-start: 0; }
.tb-prose li + li { margin-block-start: .4em; }
.tb-prose img { border-radius: 14px; }
.tb-prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-inline-start: 3px solid var(--tb-primary); color: var(--tb-text); font-size: 1.12rem; }
.tb-prose code { font-family: var(--tb-mono); font-size: .88em; background: var(--tb-surface-2); padding: 2px 6px; border-radius: 6px; }
.tb-prose pre { background: #0b1020; color: #e6e9f2; padding: 18px 20px; border-radius: 14px; overflow-x: auto; font-size: .9rem; }
.tb-prose pre code { background: none; padding: 0; color: inherit; }
.tb-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tb-prose th, .tb-prose td { padding: 10px 12px; border-block-end: 1px solid var(--tb-line); text-align: start; }
.tb-prose hr { border: 0; border-block-start: 1px solid var(--tb-line); margin-block: 2.4em; }
.tb-prose a { font-weight: 550; }
.tb-prose figcaption, .tb-prose .wp-element-caption { font-size: .85rem; color: var(--tb-muted); text-align: center; margin-block-start: 8px; }
.tb-prose .alignwide { margin-inline: calc(-1 * min(120px, 8vw)); max-width: none; }
.tb-page { padding-block: clamp(28px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.tb-page__media img { border-radius: 20px; width: 100%; margin-block-end: 32px; }
.tb-updated { font-size: .85rem; color: var(--tb-muted); margin-block-start: 32px; }

/* ----------------------------------------------------------------- Search */
.tb-search { position: fixed; inset: 0; z-index: 1000; display: grid; justify-items: center; align-items: start; padding: min(12vh, 110px) 16px 16px; }
.tb-search[hidden] { display: none; }
.tb-search__backdrop { position: absolute; inset: 0; background: rgba(8, 11, 22, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .15s; }
.tb-search__panel { position: relative; width: min(680px, 100%); max-height: min(72vh, 640px); display: flex; flex-direction: column; background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: 18px; box-shadow: var(--tb-shadow-lg); overflow: hidden; transform: translateY(-6px) scale(.99); opacity: 0; transition: transform .15s ease, opacity .15s ease; }
.tb-search.is-open .tb-search__backdrop { opacity: 1; }
.tb-search.is-open .tb-search__panel { transform: none; opacity: 1; }
.tb-search-open { overflow: hidden; }
.tb-search__form { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-block-end: 1px solid var(--tb-line); color: var(--tb-muted); }
.tb-search__input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 1.1rem; color: var(--tb-text); outline: none; min-width: 0; }
.tb-search__input::-webkit-search-cancel-button { display: none; }
.tb-search__esc { border: 0; background: none; cursor: pointer; padding: 0; }
.tb-search__body { overflow-y: auto; padding: 8px; }
.tb-search__group + .tb-search__group { margin-block-start: 6px; }
.tb-search__glabel { font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--tb-muted); padding: 10px 10px 6px; margin: 0; }
.tb-search__item { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--tb-text); }
.tb-search__item[aria-selected="true"], .tb-search__item:hover { background: var(--tb-primary-soft); color: var(--tb-text); }
.tb-search__title { display: block; font-weight: 650; }
.tb-search__excerpt { display: block; font-size: .85rem; color: var(--tb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-search__all { color: var(--tb-primary); font-weight: 650; margin-block-start: 6px; }
.tb-search__none { padding: 14px 12px; color: var(--tb-muted); margin: 0; }
.tb-search__empty { padding: 8px 6px; }
.tb-search__hint-title { font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--tb-muted); margin: 6px 6px 8px; }
.tb-search__suggest { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tb-search__suggest button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--tb-line); background: var(--tb-surface-2); color: var(--tb-text-2); font: inherit; font-size: .88rem; cursor: pointer; }
.tb-search__suggest button:hover { border-color: var(--tb-primary); color: var(--tb-primary); }
.tb-search__foot { display: flex; gap: 16px; padding: 10px 16px; border-block-start: 1px solid var(--tb-line); font-size: .78rem; color: var(--tb-muted); background: var(--tb-surface-2); }
.tb-search__foot kbd { margin-inline-end: 2px; }
@media (max-width: 600px) { .tb-search { padding: 0; } .tb-search__panel { max-height: 100vh; height: 100%; border-radius: 0; width: 100%; } .tb-search__foot { display: none; } }

.tb-searchform { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border: 1px solid var(--tb-line-strong); border-radius: 14px; background: var(--tb-surface); color: var(--tb-muted); max-width: 640px; }
[dir="rtl"] .tb-searchform { padding: 6px 14px 6px 6px; }
.tb-searchform:focus-within { border-color: var(--tb-primary); box-shadow: 0 0 0 4px var(--tb-primary-soft); }
.tb-searchform input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--tb-text); outline: none; min-width: 0; min-height: 38px; }
.tb-searchform--lg { margin-inline: auto; padding-block: 8px; }
.tb-pagehero--center .tb-searchform { margin-inline: auto; }
.tb-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-block-end: 20px; }
.tb-filter a { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--tb-line); text-decoration: none; color: var(--tb-text-2); font-weight: 600; font-size: .88rem; }
.tb-filter a[aria-current] { background: var(--tb-text); color: var(--tb-bg); border-color: var(--tb-text); }
.tb-results-group { margin-block-end: 28px; }
.tb-results-group__title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tb-muted); }
.tb-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tb-results--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .tb-results--cols { grid-template-columns: 1fr; } }
.tb-result a { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--tb-line); border-radius: 14px; text-decoration: none; color: var(--tb-text); background: var(--tb-surface); height: 100%; transition: border-color .15s, background .15s; }
.tb-result a:hover { border-color: var(--tb-primary); background: var(--tb-surface-2); }
.tb-result__icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--tb-primary-soft); color: var(--tb-primary); flex: none; }
.tb-result__cat { display: block; font-size: .72rem; font-weight: 750; color: var(--tb-primary); text-transform: uppercase; letter-spacing: .06em; }
.tb-result__excerpt { display: block; color: var(--tb-muted); font-size: .9rem; margin-block-start: 2px; }

/* -------------------------------------------------------------- Help */
.tb-topics { margin-block-end: 8px; }
.tb-topic { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px 20px; border: 1px solid var(--tb-line); border-radius: 16px; background: var(--tb-surface); text-decoration: none; color: var(--tb-text); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tb-topic:hover { transform: translateY(-2px); box-shadow: var(--tb-shadow); border-color: var(--tb-line-strong); color: var(--tb-text); }
.tb-topic .tb-feature__icon { grid-row: span 2; margin: 0; }
.tb-topic__name { font-weight: 700; }
.tb-topic__count { color: var(--tb-muted); font-size: .85rem; }
.tb-helpcta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 24px 28px; border-radius: 20px; background: var(--tb-surface-2); border: 1px solid var(--tb-line); }
.tb-helpcta h2 { font-size: 1.2rem; margin: 0 0 4px; }
.tb-helpcta p { margin: 0; color: var(--tb-muted); }
.tb-limits { width: 100%; border-collapse: collapse; }

/* ----------------------------------------------------------------- Forms */
.tb-form { display: grid; gap: 16px; }
.tb-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .tb-form__row { grid-template-columns: 1fr; } }
.tb-field { display: grid; gap: 6px; }
.tb-field label { font-weight: 650; font-size: .9rem; }
.tb-field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tb-field__row a { font-size: .85rem; }
.tb-field input, .tb-field select, .tb-field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--tb-text); background: var(--tb-surface); border: 1px solid var(--tb-line-strong); border-radius: 12px; padding: 12px 14px; min-height: 46px; transition: border-color .15s, box-shadow .15s; }
.tb-field input:focus, .tb-field select:focus, .tb-field textarea:focus { outline: none; border-color: var(--tb-primary); box-shadow: 0 0 0 4px var(--tb-primary-soft); }
.tb-optional { font-weight: 400; color: var(--tb-muted); font-size: .82rem; }
.tb-hint { font-size: .82rem; color: var(--tb-muted); margin: 0; }
.tb-check { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--tb-text-2); }
.tb-check input { width: 18px; height: 18px; margin-block-start: 2px; accent-color: var(--tb-primary); flex: none; }
.tb-password { position: relative; }
.tb-password input { padding-inline-end: 72px; }
.tb-password__toggle { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--tb-surface-2); color: var(--tb-text-2); font: inherit; font-size: .8rem; font-weight: 650; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.tb-alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: .92rem; margin-block-end: 16px; }
.tb-alert .tb-icon { margin-block-start: 2px; }
.tb-alert--error { background: var(--tb-danger-soft); color: var(--tb-danger); }
.tb-alert--success { background: var(--tb-ok-soft); color: var(--tb-ok); }
.tb-alert--info { background: var(--tb-primary-soft); color: var(--tb-primary); }
.tb-notice { padding: 16px 18px; border-radius: 14px; background: var(--tb-warn-soft); color: var(--tb-warn); font-weight: 600; }
.tb-note { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--tb-muted); font-size: .88rem; margin-block-start: 24px; text-align: center; }

.tb-auth { display: grid; place-items: center; padding: clamp(32px, 6vw, 80px) 16px; background: radial-gradient(700px 300px at 50% 0%, color-mix(in srgb, var(--tb-primary) 12%, transparent), transparent 70%); }
.tb-auth__card { width: min(440px, 100%); background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: 24px; box-shadow: var(--tb-shadow); padding: clamp(24px, 4vw, 40px); }
.tb-auth__card h1 { font-size: 1.7rem; margin-block: 18px 6px; }
.tb-auth__logo { margin-block-end: 4px; }
.tb-auth__alt { text-align: center; margin: 22px 0 0; font-size: .92rem; color: var(--tb-muted); }

.tb-panel { background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: 20px; padding: clamp(20px, 3vw, 30px); }
.tb-panel h2 { font-size: 1.2rem; }

/* ------------------------------------------------------------- Dashboard */
.tb-dash { padding-block: clamp(24px, 4vw, 48px) clamp(56px, 8vw, 96px); background: linear-gradient(180deg, var(--tb-surface-2), var(--tb-bg) 320px); }
.tb-dash__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-block-end: 28px; }
.tb-dash__head h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-block-end: 4px; }
.tb-dash__head p { margin: 0; }
.tb-stat { background: var(--tb-surface); border: 1px solid var(--tb-line); border-radius: 20px; padding: 22px; }
.tb-stat__top { display: flex; justify-content: space-between; align-items: center; margin-block-end: 12px; }
.tb-stat__top .tb-feature__icon { margin: 0; width: 40px; height: 40px; }
.tb-stat__label { font-size: .88rem; color: var(--tb-muted); font-weight: 650; margin: 0; letter-spacing: 0; }
.tb-stat__value { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; margin: 4px 0; line-height: 1.1; }
.tb-stat__value--sm { font-size: 1.6rem; }
.tb-stat__note { font-size: .86rem; color: var(--tb-muted); margin: 0; }
.tb-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .tb-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tb-quick__item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 12px; border: 1px solid var(--tb-line); border-radius: 16px; text-decoration: none; color: var(--tb-text); font-weight: 650; background: var(--tb-surface-2); }
.tb-quick__item .tb-icon { color: var(--tb-primary); }
.tb-quick__item:hover { border-color: var(--tb-primary); color: var(--tb-primary); }
.tb-linklist { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 4px; }
.tb-linklist a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; text-decoration: none; color: var(--tb-text); font-weight: 600; }
.tb-linklist a:hover { background: var(--tb-surface-2); }

.tb-empty { text-align: center; padding: clamp(32px, 6vw, 64px) 20px; border: 1px dashed var(--tb-line-strong); border-radius: 20px; color: var(--tb-muted); }
.tb-empty .tb-icon { color: var(--tb-primary); margin-inline: auto; margin-block-end: 12px; }
.tb-empty h2 { font-size: 1.35rem; color: var(--tb-text); }

/* ------------------------------------------------------------------- 404 */
.tb-404 { padding-block: clamp(56px, 10vw, 120px); }
.tb-404__code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 900; letter-spacing: -.06em; line-height: 1; margin: 0; background: linear-gradient(135deg, var(--tb-primary), var(--tb-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tb-404 .tb-searchform { margin: 24px auto; }
.tb-404__links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* -------------------------------------------------------------- Comments */
.tb-comments { margin-block: 48px; }
.tb-comments__list { list-style: none; padding: 0; }
.tb-comments .comment-body { padding: 16px 0; border-block-end: 1px solid var(--tb-line); }
.tb-comments .comment-form input:not([type="submit"]):not([type="checkbox"]), .tb-comments .comment-form textarea { width: 100%; font: inherit; border: 1px solid var(--tb-line-strong); border-radius: 12px; padding: 10px 12px; background: var(--tb-surface); color: var(--tb-text); }

/* ---------------------------------------------------------------- Footer */
.tb-footer { background: var(--tb-surface-2); border-block-start: 1px solid var(--tb-line); padding-block: clamp(48px, 6vw, 72px) 28px; font-size: .92rem; }
.tb-footer__top { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.tb-footer__brand p { color: var(--tb-muted); max-width: 34ch; margin-block: 14px; }
.tb-footer__title { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--tb-muted); margin-block-end: 14px; font-weight: 750; }
.tb-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tb-footer__col a { color: var(--tb-text-2); text-decoration: none; }
.tb-footer__col a:hover { color: var(--tb-primary); }
.tb-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.tb-social a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--tb-line); color: var(--tb-text-2); }
.tb-social a:hover { color: var(--tb-primary); border-color: var(--tb-primary); }
.tb-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-block-start: 44px; padding-block-start: 22px; border-block-start: 1px solid var(--tb-line); color: var(--tb-muted); font-size: .85rem; }
.tb-footer__bottom p { margin: 0; }
@media (max-width: 900px) { .tb-footer__top { grid-template-columns: 1fr 1fr; } .tb-footer__brand { grid-column: 1 / -1; } }

/* Theme-level overrides for plugin components. */
.tb-hero .tib-analyzer { text-align: start; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media print {
	.tb-header, .tb-footer, .tb-search, .tb-cta, .tb-share, .tb-related, .tb-postnav, .tb-skip { display: none !important; }
	body { background: #fff; color: #000; }
}
