/**
 * TrustFair Premium Theme v2
 * Scriptfabrik business-blue — strong light mode identity
 */

:root,
[data-bs-theme="light"] {
    --tf-primary: #0B1F3A;
    --tf-primary-dark: #061528;
    --tf-primary-rgb: 11, 31, 58;
    --tf-accent: #2563EB;
    --tf-secondary: #0F172A;
    --tf-secondary-rgb: 15, 23, 42;
    --tf-success: #00B67A;
    --tf-warning: #F59E0B;
    --tf-danger: #DC2626;
    --tf-info: #2563EB;
    --tf-star: #00B67A;
    --tf-star-empty: #BFC5CE;
    --tf-rating-1: #DC2626;
    --tf-rating-2: #F97316;
    --tf-rating-3: #F59E0B;
    --tf-rating-4: #84CC16;
    --tf-rating-5: #16A34A;

    --tf-body-bg: #E8EEF7;
    --tf-surface: #FFFFFF;
    --tf-surface-elevated: #FFFFFF;
    --tf-surface-muted: #F4F7FC;
    --tf-border: rgba(11, 31, 58, 0.14);
    --tf-border-strong: rgba(11, 31, 58, 0.28);
    --tf-text: #0F172A;
    --tf-text-muted: #5B6478;
    --tf-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --tf-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --tf-shadow: 0 8px 30px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
    --tf-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12), 0 8px 20px rgba(26, 115, 232, 0.08);
    --tf-radius: 1rem;
    --tf-radius-sm: 0.65rem;
    --tf-radius-lg: 1.25rem;
    --tf-header-height: 4.25rem;
    --tf-toast-offset: calc(var(--tf-header-height) + 2rem);
    --tf-sidebar-width: 17rem;
    --tf-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

    --bs-primary: #0B1F3A;
    --bs-primary-rgb: 11, 31, 58;
    --bs-secondary: #0F172A;
    --bs-success: #00B67A;
    --bs-warning: #F59E0B;
    --bs-danger: #DC2626;
    --bs-info: #2563EB;
    --bs-body-bg: #E8EEF7;
    --bs-body-color: #0F172A;
    --bs-border-color: rgba(11, 31, 58, 0.14);
    --bs-link-color: #0B1F3A;
    --bs-link-hover-color: #2563EB;
    --bs-focus-ring-color: rgba(11, 31, 58, 0.25);
    --bs-focus-ring-opacity: 1;
}

[data-bs-theme="dark"] {
    --tf-primary: #60A5FA;
    --tf-primary-dark: #3B82F6;
    --tf-primary-rgb: 96, 165, 250;
    --tf-accent: #2563EB;
    --tf-star: #00B67A;
    --tf-star-empty: #475569;
    --tf-rating-1: #F87171;
    --tf-rating-2: #FB923C;
    --tf-rating-3: #FBBF24;
    --tf-rating-4: #A3E635;
    --tf-rating-5: #4ADE80;
    --tf-body-bg: #0B1120;
    --tf-surface: #111827;
    --tf-surface-elevated: #1A2234;
    --tf-surface-muted: #0F172A;
    --tf-border: rgba(148, 163, 184, 0.14);
    --tf-border-strong: rgba(148, 163, 184, 0.28);
    --tf-text: #F1F5F9;
    --tf-text-muted: #94A3B8;
    --tf-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --tf-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    --tf-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);

    --bs-body-bg: #0B1120;
    --bs-body-color: #F1F5F9;
    --bs-border-color: rgba(148, 163, 184, 0.14);
    --bs-link-color: #60A5FA;
    --bs-link-hover-color: #93C5FD;
}

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

html { scroll-behavior: smooth; }

body.tf-app {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--tf-text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    background-color: var(--tf-body-bg);
}

[data-bs-theme="light"] body.tf-app {
    background-color: #E8EEF7;
    background-image:
        radial-gradient(ellipse 80% 60% at 0% -10%, rgba(11, 31, 58, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 100% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(11, 31, 58, 0.04) 0%, transparent 40%),
        linear-gradient(180deg, #F5F8FD 0%, #E8EEF7 45%, #E2EAF5 100%);
    background-attachment: fixed;
}

[data-bs-theme="dark"] body.tf-app {
    background: linear-gradient(160deg, #0B1120 0%, #111827 50%, #0F172A 100%);
    background-attachment: fixed;
}

a { transition: color var(--tf-transition), opacity var(--tf-transition); }
a:hover { opacity: 0.9; }

.text-muted { color: var(--tf-text-muted) !important; }

/* ---- Typography ---- */
.page-title {
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--tf-text);
    line-height: 1.15;
}

.page-subtitle {
    color: var(--tf-text-muted);
    font-size: 1.0625rem;
    line-height: 1.6;
    max-width: 42rem;
}

/* ---- Page hero band ---- */
.tf-page-hero {
    position: relative;
    padding: 2rem 2.25rem;
    margin-bottom: 2rem;
    border-radius: var(--tf-radius-lg);
    border: 1px solid var(--tf-border-strong);
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFF 55%, #EEF4FF 100%);
    box-shadow: var(--tf-shadow);
    overflow: hidden;
}

[data-bs-theme="dark"] .tf-page-hero {
    background: linear-gradient(135deg, #111827 0%, #1A2234 100%);
}

.tf-page-hero::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -5%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.12) 0%, transparent 68%);
    pointer-events: none;
}

.tf-page-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tf-primary), var(--tf-accent), var(--tf-primary));
}

.tf-page-hero--help {
    overflow: visible;
    z-index: 5;
}

.tf-page-hero-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: var(--tf-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    background: linear-gradient(135deg, var(--tf-primary), var(--tf-accent));
    box-shadow: 0 8px 24px rgba(var(--tf-primary-rgb), 0.35);
    flex-shrink: 0;
}

/* ---- Header ---- */
.tf-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--tf-header-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--tf-border);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, var(--tf-shadow-sm);
}

[data-bs-theme="dark"] .tf-header {
    background: rgba(17, 24, 39, 0.92);
    box-shadow: var(--tf-shadow-sm);
}

.tf-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--tf-primary) 20%, var(--tf-accent) 50%, var(--tf-primary) 80%, transparent);
    opacity: 0.85;
}

.tf-header .navbar-brand {
    font-weight: 800;
    letter-spacing: -0.04em;
    font-size: 1.4rem;
    color: var(--tf-primary) !important;
    -webkit-text-fill-color: unset;
    background: none;
}

.tf-header .navbar-brand i {
    background: linear-gradient(135deg, var(--tf-primary), var(--tf-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tf-header .navbar-brand .tf-brand-logo {
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
}

[data-bs-theme="light"] .tf-brand-logo--dark { display: none !important; }
[data-bs-theme="dark"] .tf-brand-logo--light { display: none !important; }

.tf-header .nav-link {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--tf-text-muted);
    border-radius: var(--tf-radius-sm);
    padding: 0.5rem 1rem !important;
    transition: all var(--tf-transition);
}

.tf-header .nav-link:hover,
.tf-header .nav-link.active {
    color: var(--tf-primary);
    background: rgba(var(--tf-primary-rgb), 0.1);
    box-shadow: inset 0 0 0 1px rgba(var(--tf-primary-rgb), 0.12);
}

/* ---- Main content area ---- */
.tf-main {
    position: relative;
    z-index: 1;
}

/* ---- Cards ---- */
.tf-card {
    position: relative;
    background: var(--tf-surface-elevated);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    box-shadow: var(--tf-shadow-sm);
    transition: transform var(--tf-transition), box-shadow var(--tf-transition), border-color var(--tf-transition);
    overflow: hidden;
}

[data-bs-theme="light"] .tf-card {
    background: #FFFFFF;
    border-color: rgba(26, 115, 232, 0.14);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04), 0 12px 28px rgba(15, 23, 42, 0.07);
}

.tf-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tf-primary), var(--tf-accent));
    opacity: 0;
    transition: opacity var(--tf-transition);
}

.tf-card-interactive:hover {
    transform: translateY(-4px);
    border-color: var(--tf-border-strong);
    box-shadow: var(--tf-shadow-lg);
}

.tf-card-interactive:hover::before { opacity: 1; }

.tf-card-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.9) 100%);
    backdrop-filter: blur(12px);
}

[data-bs-theme="dark"] .tf-card-glass {
    background: linear-gradient(135deg, rgba(26, 32, 48, 0.95) 0%, rgba(17, 24, 39, 0.9) 100%);
}

.tf-filter-panel {
    border: 1px solid var(--tf-border-strong) !important;
    box-shadow: var(--tf-shadow) !important;
}

.tf-filter-panel .card-body {
    background: linear-gradient(180deg, var(--tf-surface-muted) 0%, var(--tf-surface) 100%);
}

[data-bs-theme="dark"] .tf-filter-panel .card-body {
    background: var(--tf-surface);
}

.tf-filter-panel-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tf-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px dashed var(--tf-border);
}

.tf-company-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--tf-border);
    background: linear-gradient(180deg, transparent, rgba(var(--tf-primary-rgb), 0.03));
}

/* ---- Buttons ---- */
.btn {
    border-radius: var(--tf-radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.6rem 1.25rem;
    transition: all var(--tf-transition);
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--tf-primary);
    --bs-btn-border-color: var(--tf-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #122B4D;
    --bs-btn-hover-border-color: var(--tf-accent);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--tf-primary-dark);
    --bs-btn-active-border-color: var(--tf-primary-dark);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #94A3B8;
    --bs-btn-disabled-border-color: #94A3B8;
    background-color: var(--bs-btn-bg);
    background-image: linear-gradient(135deg, var(--tf-primary) 0%, #1A3A5C 55%, var(--tf-accent) 100%);
    border: 2px solid var(--tf-primary);
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    box-shadow: 0 4px 16px rgba(11, 31, 58, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 31, 58, 0.35);
    background-color: var(--bs-btn-hover-bg);
    background-image: linear-gradient(135deg, var(--tf-primary-dark) 0%, #1A3A5C 100%);
    border-color: var(--bs-btn-hover-border-color);
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.btn-apply {
    min-width: 10rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

[data-bs-theme="light"] .tf-filter-actions .btn-primary {
    background: linear-gradient(135deg, #0B1F3A 0%, #1A3A5C 100%);
    border: 2px solid #0B1F3A;
}

[data-bs-theme="light"] .tf-filter-actions .btn-outline-secondary {
    border: 2px solid #94A3B8;
    color: #0B1F3A;
    font-weight: 600;
    background: #fff;
}

.btn-outline-primary {
    --bs-btn-color: var(--tf-primary);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: var(--tf-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--tf-primary);
    --bs-btn-hover-border-color: var(--tf-primary);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--tf-primary-dark);
    --bs-btn-active-border-color: var(--tf-primary-dark);
    border: 2px solid rgba(var(--tf-primary-rgb), 0.45);
    color: var(--tf-primary) !important;
    -webkit-text-fill-color: var(--tf-primary);
    background-color: rgba(var(--tf-primary-rgb), 0.05);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--bs-btn-hover-bg);
    background-image: linear-gradient(135deg, var(--tf-primary) 0%, #1A3A5C 100%);
    border-color: var(--tf-primary);
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    box-shadow: 0 4px 14px rgba(var(--tf-primary-rgb), 0.3);
}

.btn-outline-secondary {
    --bs-btn-color: var(--tf-text);
    --bs-btn-bg: var(--tf-surface);
    --bs-btn-border-color: var(--tf-border-strong);
    --bs-btn-hover-color: var(--tf-primary);
    --bs-btn-hover-bg: rgba(var(--tf-primary-rgb), 0.08);
    --bs-btn-hover-border-color: var(--tf-primary);
    border: 2px solid var(--tf-border-strong);
    color: var(--tf-text) !important;
    -webkit-text-fill-color: currentColor;
    background-color: var(--tf-surface);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--tf-primary);
    color: var(--tf-primary) !important;
    -webkit-text-fill-color: var(--tf-primary);
}

.btn-outline-danger {
    --bs-btn-color: var(--tf-danger);
    --bs-btn-border-color: var(--tf-danger);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--tf-danger);
    --bs-btn-hover-border-color: var(--tf-danger);
    border: 2px solid var(--tf-danger);
    color: var(--tf-danger) !important;
    background-color: rgba(220, 38, 38, 0.06);
}

.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger:active {
    background-color: var(--tf-danger);
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.btn-outline-success {
    --bs-btn-color: #059669;
    --bs-btn-border-color: #059669;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #059669;
    --bs-btn-hover-border-color: #059669;
    border: 2px solid #059669;
    color: #059669 !important;
    -webkit-text-fill-color: currentColor;
    background-color: rgba(5, 150, 105, 0.06);
}

.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active {
    background-color: #059669;
    border-color: #059669;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: #059669;
    --bs-btn-border-color: #059669;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #047857;
    --bs-btn-hover-border-color: #047857;
    background-color: #059669;
    border: 2px solid #059669;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background-color: #047857;
    border-color: #047857;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.btn i { color: inherit; }

/* Light theme — extra contrast on white cards (admin + public) */
[data-bs-theme="light"] .btn-primary {
    --bs-btn-bg: #0B1F3A;
    --bs-btn-border-color: #0B1F3A;
    --bs-btn-hover-bg: #122B4D;
    --bs-btn-hover-border-color: #2563EB;
    background-color: #0B1F3A;
    background-image: linear-gradient(135deg, #0B1F3A 0%, #1A3A5C 58%, #2563EB 130%);
    border: 2px solid #0B1F3A;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    box-shadow: 0 4px 14px rgba(11, 31, 58, 0.26);
}

[data-bs-theme="light"] .btn-primary:hover,
[data-bs-theme="light"] .btn-primary:focus,
[data-bs-theme="light"] .btn-primary:active {
    background-color: #122B4D;
    background-image: linear-gradient(135deg, #061528 0%, #0B1F3A 52%, #1A3A5C 100%);
    border-color: #2563EB;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    box-shadow: 0 8px 22px rgba(11, 31, 58, 0.32);
}

[data-bs-theme="light"] .btn-outline-primary {
    --bs-btn-color: #0B1F3A;
    --bs-btn-bg: #FFFFFF;
    --bs-btn-border-color: #0B1F3A;
    --bs-btn-hover-color: #FFFFFF;
    --bs-btn-hover-bg: #0B1F3A;
    background-color: #fff;
    border: 2px solid #0B1F3A;
    color: #0B1F3A !important;
    -webkit-text-fill-color: #0B1F3A;
}

[data-bs-theme="light"] .btn-outline-primary:hover,
[data-bs-theme="light"] .btn-outline-primary:focus,
[data-bs-theme="light"] .btn-outline-primary:active {
    background-color: #0B1F3A;
    background-image: linear-gradient(135deg, #0B1F3A 0%, #1A3A5C 100%);
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

[data-bs-theme="light"] .btn-outline-secondary {
    --bs-btn-color: #334155;
    --bs-btn-bg: #FFFFFF;
    --bs-btn-border-color: #94A3B8;
    --bs-btn-hover-color: #0B1F3A;
    --bs-btn-hover-bg: #F1F5F9;
    --bs-btn-hover-border-color: #0B1F3A;
    background-color: #fff;
    border: 2px solid #94A3B8;
    color: #334155 !important;
    -webkit-text-fill-color: #334155;
}

[data-bs-theme="light"] .btn-outline-secondary:hover,
[data-bs-theme="light"] .btn-outline-secondary:focus,
[data-bs-theme="light"] .btn-outline-secondary:active {
    background-color: #F1F5F9;
    border-color: #0B1F3A;
    color: #0B1F3A !important;
    -webkit-text-fill-color: #0B1F3A;
}

[data-bs-theme="light"] .btn-outline-danger {
    background-color: #fff;
    border: 2px solid #DC2626;
    color: #DC2626 !important;
    -webkit-text-fill-color: #DC2626;
}

[data-bs-theme="light"] .btn-outline-danger:hover,
[data-bs-theme="light"] .btn-outline-danger:focus,
[data-bs-theme="light"] .btn-outline-danger:active {
    background-color: #DC2626;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

[data-bs-theme="light"] .btn-success {
    background-color: #059669;
    border: 2px solid #059669;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

[data-bs-theme="light"] .btn-outline-success {
    background-color: #fff;
    border: 2px solid #059669;
    color: #059669 !important;
    -webkit-text-fill-color: #059669;
}

[data-bs-theme="light"] .btn-outline-success:hover,
[data-bs-theme="light"] .btn-outline-success:focus,
[data-bs-theme="light"] .btn-outline-success:active {
    background-color: #059669;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

[data-bs-theme="light"] .btn-sm {
    padding: 0.45rem 0.95rem;
    font-size: 0.8125rem;
    font-weight: 700;
}

.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--tf-border-strong);
    background: var(--tf-surface);
    color: var(--tf-text-muted);
}

.btn-icon:hover {
    border-color: var(--tf-primary);
    color: var(--tf-primary);
    background: rgba(var(--tf-primary-rgb), 0.08);
}

/* ---- Forms ---- */
.form-control,
.form-select {
    border-radius: var(--tf-radius-sm);
    border: 1.5px solid var(--tf-border);
    background: var(--tf-surface);
    color: var(--tf-text);
    padding: 0.7rem 1rem;
    font-size: 0.9375rem;
    transition: border-color var(--tf-transition), box-shadow var(--tf-transition);
}

[data-bs-theme="light"] .form-control,
[data-bs-theme="light"] .form-select {
    background: #FFFFFF;
    border: 2px solid #B8C8DC;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.form-control:focus,
.form-select:focus,
.form-control:focus-visible,
.form-select:focus-visible {
    border: 2px solid #0B1F3A !important;
    box-shadow: none !important;
    outline: none !important;
}

[data-bs-theme="light"] .form-control:focus,
[data-bs-theme="light"] .form-select:focus,
[data-bs-theme="light"] .form-control:focus-visible,
[data-bs-theme="light"] .form-select:focus-visible {
    background: #fff !important;
    border: 2px solid #0B1F3A !important;
    box-shadow: none !important;
}

[data-bs-theme="light"] .form-control:-webkit-autofill:focus,
[data-bs-theme="light"] .form-control:-webkit-autofill:focus-visible {
    border: 2px solid #0B1F3A !important;
    box-shadow: none !important;
}

.form-label {
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #334155;
    margin-bottom: 0.4rem;
}

.input-group-text {
    border: 2px solid #B8C8DC;
    background: #F0F4FA !important;
    color: var(--tf-primary);
    border-radius: var(--tf-radius-sm);
}

.tf-input-group .form-control {
    border-left: none;
}

.tf-input-group .input-group-text {
    border-right: none;
}

.tf-input-group:focus-within .input-group-text,
.input-group:focus-within > .input-group-text {
    border: 2px solid #0B1F3A !important;
    border-right: none !important;
    color: #0B1F3A;
    z-index: 3;
}

.tf-input-group:focus-within .form-control,
.input-group:focus-within > .form-control {
    border: 2px solid #0B1F3A !important;
    border-left: none !important;
    box-shadow: none !important;
    z-index: 3;
}

.tf-form-label-with-info {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.tf-label-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: var(--tf-text-muted);
    font-size: 0.9375rem;
    line-height: 1;
    cursor: help;
    vertical-align: middle;
}

.tf-label-info-btn .tf-icon-fa,
.tf-label-info-btn .tf-icon-bs {
    font-size: 0.9375rem;
}

.tf-label-info-btn:hover,
.tf-label-info-btn:focus,
.tf-label-info-btn:focus-visible {
    color: var(--tf-primary);
    outline: 0;
    box-shadow: none;
}

.tf-dual-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tf-dual-icon .tf-icon-bs {
    display: none;
}

html.tf-fa-fallback .tf-dual-icon .tf-icon-fa {
    display: none;
}

html.tf-fa-fallback .tf-dual-icon .tf-icon-bs {
    display: inline-flex;
}

.tf-radius-input-group {
    width: 6.75rem;
}

.tf-radius-input-group .form-control {
    padding-left: 0.65rem;
    padding-right: 0.35rem;
}

.tf-radius-input-group .input-group-text {
    padding-inline: 0.55rem;
    font-size: 0.875rem;
}

.input-group .form-control.border-start-0 {
    border-left: none !important;
}

/* ---- Stars ---- */
.tf-stars { display: inline-flex; gap: 0.12rem; align-items: center; line-height: 1; }
.tf-stars--lg { font-size: 1.6rem; }
.tf-stars--md { font-size: 1.15rem; }
.tf-stars--sm { font-size: 0.875rem; }
.tf-stars i.fa-solid.fa-star,
.tf-stars i.fa-star-half-stroke,
.tf-stars .tf-star--filled {
    color: var(--tf-star) !important;
    -webkit-text-fill-color: var(--tf-star) !important;
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.12));
}

.tf-stars:not([data-rating-tier]) .tf-star--filled {
    --tf-star: #94A3B8;
}

.tf-stars[data-rating-tier="1"] { --tf-star: #DC2626; }
.tf-stars[data-rating-tier="2"] { --tf-star: #F97316; }
.tf-stars[data-rating-tier="3"] { --tf-star: #F59E0B; }
.tf-stars[data-rating-tier="4"] { --tf-star: #84CC16; }
.tf-stars[data-rating-tier="5"] { --tf-star: #16A34A; }

.tf-stars[data-rating-tier] .tf-star--filled,
.tf-stars[data-rating-tier] i.fa-solid.fa-star,
.tf-stars[data-rating-tier] i.fa-star-half-stroke {
    color: var(--tf-star) !important;
    -webkit-text-fill-color: var(--tf-star) !important;
}

.tf-stars[data-rating-tier="1"] .tf-star--filled,
.tf-stars[data-rating-tier="1"] i.fa-solid.fa-star,
.tf-stars[data-rating-tier="1"] i.fa-star-half-stroke,
.tf-stars[data-rating-tier="1"] svg { color: #DC2626 !important; -webkit-text-fill-color: #DC2626 !important; fill: #DC2626 !important; }
.tf-stars[data-rating-tier="2"] .tf-star--filled,
.tf-stars[data-rating-tier="2"] i.fa-solid.fa-star,
.tf-stars[data-rating-tier="2"] i.fa-star-half-stroke,
.tf-stars[data-rating-tier="2"] svg { color: #F97316 !important; -webkit-text-fill-color: #F97316 !important; fill: #F97316 !important; }
.tf-stars[data-rating-tier="3"] .tf-star--filled,
.tf-stars[data-rating-tier="3"] i.fa-solid.fa-star,
.tf-stars[data-rating-tier="3"] i.fa-star-half-stroke,
.tf-stars[data-rating-tier="3"] svg { color: #F59E0B !important; -webkit-text-fill-color: #F59E0B !important; fill: #F59E0B !important; }
.tf-stars[data-rating-tier="4"] .tf-star--filled,
.tf-stars[data-rating-tier="4"] i.fa-solid.fa-star,
.tf-stars[data-rating-tier="4"] i.fa-star-half-stroke,
.tf-stars[data-rating-tier="4"] svg { color: #84CC16 !important; -webkit-text-fill-color: #84CC16 !important; fill: #84CC16 !important; }
.tf-stars[data-rating-tier="5"] .tf-star--filled,
.tf-stars[data-rating-tier="5"] i.fa-solid.fa-star,
.tf-stars[data-rating-tier="5"] i.fa-star-half-stroke,
.tf-stars[data-rating-tier="5"] svg { color: #16A34A !important; -webkit-text-fill-color: #16A34A !important; fill: #16A34A !important; }
.tf-stars i.fa-regular.fa-star,
.tf-stars .tf-star--empty {
    color: var(--tf-star-empty) !important;
    -webkit-text-fill-color: var(--tf-star-empty) !important;
}

.tf-rating-score {
    color: var(--tf-primary);
    font-variant-numeric: tabular-nums;
}

.tf-rating-score[data-rating-tier="1"] { color: #DC2626 !important; -webkit-text-fill-color: #DC2626 !important; }
.tf-rating-score[data-rating-tier="2"] { color: #F97316 !important; -webkit-text-fill-color: #F97316 !important; }
.tf-rating-score[data-rating-tier="3"] { color: #F59E0B !important; -webkit-text-fill-color: #F59E0B !important; }
.tf-rating-score[data-rating-tier="4"] { color: #84CC16 !important; -webkit-text-fill-color: #84CC16 !important; }
.tf-rating-score[data-rating-tier="5"] { color: #16A34A !important; -webkit-text-fill-color: #16A34A !important; }

[data-bs-theme="dark"] .tf-rating-score:not([data-rating-tier]) {
    color: #F8FAFC;
}

.tf-review-count-badge {
    background: rgba(11, 31, 58, 0.06);
    border: 1px solid var(--tf-border-strong);
    color: var(--tf-text);
}

[data-bs-theme="dark"] .tf-review-count-badge {
    background: rgba(255, 255, 255, 0.06);
    color: var(--tf-text);
}

.tf-stars-input .tf-star-btn {
    background: none;
    border: none;
    padding: 0.15rem;
    cursor: pointer;
    transition: transform 0.15s ease;
    font-size: 1.75rem;
    color: var(--tf-star-empty);
}
.tf-stars-input .tf-star-btn.is-active,
.tf-stars-input .tf-star-btn.is-active i {
    color: var(--tf-star) !important;
    -webkit-text-fill-color: var(--tf-star) !important;
}

.tf-stars-input .tf-star-btn:hover { transform: scale(1.2); }

/* ---- Badges ---- */
.tf-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.tf-badge--verified { background: rgba(22, 163, 74, 0.12); color: #15803D; border-color: rgba(22, 163, 74, 0.2); }
.tf-badge--company  { background: rgba(26, 115, 232, 0.12); color: var(--tf-primary); border-color: rgba(26, 115, 232, 0.22); }
.tf-badge--top      { background: rgba(245, 158, 11, 0.14); color: #B45309; border-color: rgba(245, 158, 11, 0.25); }
.tf-badge--new      { background: rgba(14, 165, 233, 0.12); color: #0284C7; border-color: rgba(14, 165, 233, 0.22); }

.tf-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.tf-status--pending   { background: rgba(245, 158, 11, 0.14); color: #B45309; border-color: rgba(245, 158, 11, 0.25); }
.tf-status--published { background: rgba(22, 163, 74, 0.14); color: #15803D; border-color: rgba(22, 163, 74, 0.22); }
.tf-status--rejected  { background: rgba(220, 38, 38, 0.1); color: var(--tf-danger); border-color: rgba(220, 38, 38, 0.2); }
.tf-status--info      { background: rgba(37, 99, 235, 0.12); color: #1D4ED8; border-color: rgba(37, 99, 235, 0.22); }
.tf-status--neutral   { background: rgba(100, 116, 139, 0.12); color: #475569; border-color: rgba(100, 116, 139, 0.2); }

/* ---- Pagination ---- */
.tf-pagination .pagination { gap: 0.4rem; }

.tf-pagination .page-link {
    border: 1.5px solid var(--tf-border);
    border-radius: var(--tf-radius-sm) !important;
    color: var(--tf-text-muted);
    padding: 0.5rem 0.9rem;
    font-weight: 600;
    background: var(--tf-surface);
    box-shadow: var(--tf-shadow-xs);
}

.tf-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--tf-primary), var(--tf-accent));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(var(--tf-primary-rgb), 0.4);
}

.tf-pagination .page-link:hover:not(.active) {
    background: rgba(var(--tf-primary-rgb), 0.08);
    border-color: var(--tf-primary);
    color: var(--tf-primary);
}

/* ---- Toasts ---- */
.tf-toast-container {
    position: fixed;
    top: 5.75rem;
    top: var(--tf-toast-offset, calc(var(--tf-header-height, 4.25rem) + 2rem));
    right: 1rem;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: 420px;
    width: min(420px, calc(100vw - 2rem));
    pointer-events: none;
}

.tf-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: var(--tf-radius-lg, 1rem);
    border: 1px solid var(--tf-border-strong);
    background: var(--tf-surface);
    color: var(--tf-text);
    box-shadow: 0 20px 48px rgba(11, 31, 58, 0.18), 0 8px 20px rgba(11, 31, 58, 0.1);
    overflow: hidden;
    position: relative;
    animation: tf-toast-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    backdrop-filter: none;
}

@keyframes tf-toast-in {
    from { opacity: 0; transform: translateX(1.25rem) scale(0.96); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

.tf-toast-icon {
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.tf-toast-content {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 0.1rem;
}

.tf-toast-title {
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.2;
    margin-bottom: 0.15rem;
}

.tf-toast-message {
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--tf-text);
    font-weight: 500;
}

.tf-toast-close {
    flex: 0 0 auto;
    margin: 0;
    padding: 0.35rem;
    opacity: 0.55;
    filter: none;
}

.tf-toast-close:hover {
    opacity: 0.85;
}

.tf-toast-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    transform-origin: left center;
    animation: tf-toast-progress var(--tf-toast-duration, 4s) linear forwards;
}

@keyframes tf-toast-progress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

.tf-toast--success {
    border-color: rgba(0, 182, 122, 0.45);
    border-left: 4px solid var(--tf-success);
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
}
.tf-toast--success .tf-toast-icon { background: rgba(0, 182, 122, 0.16); color: #047857; }
.tf-toast--success .tf-toast-title { color: #047857; }
.tf-toast--success .tf-toast-progress { background: var(--tf-success); }

.tf-toast--error {
    border-color: rgba(220, 38, 38, 0.4);
    border-left: 4px solid var(--tf-danger);
    background: linear-gradient(180deg, #fef2f2 0%, #ffffff 100%);
}
.tf-toast--error .tf-toast-icon { background: rgba(220, 38, 38, 0.14); color: #b91c1c; }
.tf-toast--error .tf-toast-title { color: #b91c1c; }
.tf-toast--error .tf-toast-progress { background: var(--tf-danger); }

.tf-toast--warning {
    border-color: rgba(245, 158, 11, 0.45);
    border-left: 4px solid var(--tf-warning);
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}
.tf-toast--warning .tf-toast-icon { background: rgba(245, 158, 11, 0.18); color: #b45309; }
.tf-toast--warning .tf-toast-title { color: #b45309; }
.tf-toast--warning .tf-toast-progress { background: var(--tf-warning); }

.tf-toast--info {
    border-color: rgba(37, 99, 235, 0.35);
    border-left: 4px solid var(--tf-info);
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}
.tf-toast--info .tf-toast-icon { background: rgba(37, 99, 235, 0.14); color: #1d4ed8; }
.tf-toast--info .tf-toast-title { color: #1d4ed8; }
.tf-toast--info .tf-toast-progress { background: var(--tf-info); }

[data-bs-theme="dark"] .tf-toast {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.25);
    background: var(--tf-surface);
    border-left-width: 1px;
}

[data-bs-theme="dark"] .tf-toast--success,
[data-bs-theme="dark"] .tf-toast--error,
[data-bs-theme="dark"] .tf-toast--warning,
[data-bs-theme="dark"] .tf-toast--info {
    background: var(--tf-surface);
}

[data-bs-theme="dark"] .tf-toast-message {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 400;
}

[data-bs-theme="dark"] .tf-toast-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* ---- Search autocomplete ---- */
.tf-header-search {
    flex: 1 1 18rem;
    max-width: 28rem;
    margin: 0 1.25rem;
    align-items: center;
}

.tf-header-search-field {
    width: 100%;
}

.tf-header-search-input {
    width: 100%;
    height: 2.625rem;
    padding: 0.5rem 1rem 0.5rem 2.625rem;
    border: 1px solid var(--tf-border);
    border-radius: 999px;
    background: rgba(var(--tf-primary-rgb), 0.04);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--tf-text);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color var(--tf-transition), box-shadow var(--tf-transition), background var(--tf-transition);
}

.tf-header-search-input::placeholder {
    color: var(--tf-text-muted);
    font-weight: 400;
    opacity: 0.85;
}

.tf-header-search-input:hover {
    border-color: var(--tf-border-strong);
    background: rgba(var(--tf-primary-rgb), 0.06);
}

.tf-header-search-input:focus {
    background: var(--tf-surface);
    border-color: rgba(var(--tf-primary-rgb), 0.35);
    box-shadow: 0 0 0 3px rgba(var(--tf-primary-rgb), 0.1), inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.tf-header-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tf-text-muted);
    pointer-events: none;
    font-size: 0.875rem;
    z-index: 2;
    transition: color var(--tf-transition);
}

.tf-header-search-field:focus-within .tf-header-search-icon {
    color: var(--tf-accent);
}

[data-bs-theme="dark"] .tf-header-search-input {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .tf-header-search-input:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

[data-bs-theme="dark"] .tf-header-search-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.tf-header-search .tf-search-suggestions {
    border-radius: var(--tf-radius);
    border: 1px solid var(--tf-border);
    padding: 0.35rem;
    box-shadow: var(--tf-shadow);
    background: var(--tf-surface);
}

.tf-header-search .tf-search-suggestions .dropdown-item {
    border-radius: var(--tf-radius-sm);
}

.tf-header-search .tf-search-suggestions .dropdown-item:hover,
.tf-header-search .tf-search-suggestions .dropdown-item:focus {
    background: rgba(var(--tf-primary-rgb), 0.08);
}

.tf-header-search-group .form-control {
    min-width: 0;
}

.tf-search-suggestions {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: 18rem;
    overflow-y: auto;
    display: none;
}

.tf-search-suggestions.show {
    display: block;
}

.tf-input-group .tf-search-suggestions {
    left: 0;
    right: 0;
}

.tf-search-tabs .nav-link {
    border-radius: 999px;
}

.tf-notification-settings-actions {
    padding-top: 1.5rem !important;
    padding-bottom: 1.25rem;
    padding-left: 1.25rem;
    padding-right: 14px;
}

.tf-notification-settings .form-check.form-switch {
    min-height: 1.5rem;
    padding-left: 0;
}

.tf-notification-settings .form-check.form-switch .form-check-input {
    float: none;
    margin: 0;
    cursor: pointer;
}

.tf-notification-settings tbody td:not(:first-child) {
    vertical-align: middle;
    width: 7rem;
}

mark {
    background: rgba(37, 99, 235, 0.18);
    color: inherit;
    padding: 0 0.1em;
    border-radius: 0.15rem;
}

/* ---- Header user menu ---- */
.tf-header-toolbar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    padding: 0.75rem 0;
}

@media (min-width: 992px) {
    .tf-header-toolbar {
        padding: 0;
        flex-wrap: nowrap;
    }
}

.tf-header-auth {
    width: 100%;
}

@media (min-width: 992px) {
    .tf-header-auth {
        width: auto;
    }
}

.tf-user-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.55rem 0.35rem 0.35rem !important;
    border: 1px solid var(--tf-border-strong) !important;
    border-radius: 999px !important;
    background: var(--tf-surface) !important;
    color: var(--tf-text) !important;
    box-shadow: var(--tf-shadow-xs);
    max-width: 100%;
}

.tf-user-menu-toggle:hover,
.tf-user-menu-toggle:focus,
.tf-user-menu-toggle.show {
    border-color: rgba(var(--tf-primary-rgb), 0.35) !important;
    background: rgba(var(--tf-primary-rgb), 0.06) !important;
    color: var(--tf-text) !important;
}

.tf-user-menu-toggle::after {
    margin-left: 0.15rem;
    opacity: 0.55;
}

.tf-user-avatar {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
    background: linear-gradient(135deg, var(--tf-primary), var(--tf-accent));
    flex-shrink: 0;
}

.tf-user-avatar--lg {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1rem;
}
.tf-user-avatar--img {
    object-fit: cover;
    padding: 0;
    background: transparent;
}

/* Uploaded logos / PNG avatars — no gradient frame or shadow */
.tf-avatar-photo,
img.tf-profile-card-avatar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    object-fit: contain;
    color: inherit;
    display: inline-block;
}
.tf-avatar-photo--account {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 0.85rem;
    flex-shrink: 0;
}
.tf-avatar-photo--header {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    flex-shrink: 0;
}
.tf-avatar-photo--header-lg {
    width: 2.65rem;
    height: 2.65rem;
}
.tf-avatar-photo--profile {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
}
.tf-avatar-photo--admin {
    width: 2rem;
    height: 2rem;
    border-radius: .55rem;
    flex-shrink: 0;
}
.tf-avatar-photo--sidebar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .65rem;
    flex-shrink: 0;
}

.tf-user-menu-name {
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.1;
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tf-user-menu-badge {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tf-success);
}

.tf-email-confirmed {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--tf-success);
    background: rgba(var(--tf-success-rgb, 25, 135, 84), 0.12);
    border: 1px solid rgba(var(--tf-success-rgb, 25, 135, 84), 0.22);
}

.tf-email-confirmed i {
    font-size: 0.8rem;
}

.tf-user-menu-panel {
    min-width: 17rem;
    padding: 0;
    border: 1px solid var(--tf-border-strong);
    border-radius: var(--tf-radius-lg, 1rem);
    overflow: hidden;
}

.tf-user-menu-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1rem 0.85rem;
    background: linear-gradient(180deg, rgba(var(--tf-primary-rgb), 0.06), transparent);
}

.tf-user-menu-section {
    padding: 0.55rem 1rem 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tf-text-muted);
}

.tf-user-menu-panel .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    font-weight: 600;
}

.tf-user-menu-panel .dropdown-item i {
    width: 1.1rem;
    text-align: center;
    opacity: 0.75;
}

.tf-user-menu-panel .dropdown-item.active,
.tf-user-menu-panel .dropdown-item:active {
    background: rgba(var(--tf-primary-rgb), 0.1);
    color: var(--tf-primary);
}

.tf-user-menu-panel form {
    margin: 0;
}

.tf-user-menu-panel .dropdown-item.text-danger i {
    opacity: 1;
}

/* ---- Footer ---- */
.tf-footer {
    border-top: 1px solid var(--tf-border);
    background: linear-gradient(180deg, transparent, rgba(var(--tf-primary-rgb), 0.04));
    margin-top: auto;
    position: relative;
}

.tf-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tf-primary), transparent);
    opacity: 0.35;
}

.tf-footer-premium {
    background: var(--tf-footer-bg, #0f172a) !important;
    color: var(--tf-footer-text, #e2e8f0);
    border-top: 0;
}

.tf-footer-premium::before { display: none; }

.tf-footer-logo { max-height: 40px; width: auto; height: auto; object-fit: contain; }

.tf-footer-col-title {
    color: var(--tf-footer-heading, #fff);
    font-weight: 700;
    margin-bottom: .75rem;
}

.tf-footer-link {
    color: var(--tf-footer-link, #94a3b8);
    text-decoration: none;
    transition: color .15s ease;
}

.tf-footer-link:hover { color: var(--tf-footer-heading, #fff); }

.tf-footer-tagline { color: var(--tf-footer-link, #94a3b8); }

.tf-footer-copy { color: var(--tf-footer-link, #94a3b8); opacity: .85; }

.tf-footer-meta { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1rem; }

.tf-footer-market { background: var(--tf-footer-bg, #08111f) !important; }
.tf-footer-design--market {
    background: var(--tf-footer-bg, #08111f) !important;
    color: var(--tf-footer-text, #e2e8f0);
    padding: 0 !important;
}
.tf-footer-market-main {
    background: var(--tf-footer-bg, #08111f) !important;
    color: var(--tf-footer-text, #e2e8f0);
}
.tf-footer-support-box {
    background: linear-gradient(180deg, #93c5fd 0%, #60a5fa 100%);
    border: 1px solid #3b82f6;
    border-radius: 14px;
    padding: 1rem 1.05rem;
    margin-top: .25rem;
    color: #0f172a;
}
.tf-footer-support-box-title {
    color: #0f172a !important;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .75rem;
}
.tf-footer-support-box .tf-footer-contact-row {
    margin-bottom: .45rem;
    color: #0f172a !important;
}
.tf-footer-support-box .tf-footer-contact-row:hover { color: #020617 !important; }
.tf-footer-support-box .tf-footer-contact-row--muted { color: #1e293b !important; }
.tf-footer-support-box .tf-footer-contact-row i { color: #1d4ed8 !important; }
.tf-footer-legal-bar {
    background: #e8eef3;
    color: #6b7280;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
    padding: .875rem 0;
}
.tf-footer-legal-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .85rem 1.25rem;
    min-height: 2.75rem;
}
.tf-footer-legal-copy {
    margin: 0;
    padding: 0;
    text-align: center;
    color: #6b7280;
    font-size: .875rem;
    line-height: 1.45;
}
.tf-footer-legal-made-in {
    flex-shrink: 0;
}
.tf-made-in-de {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: .625rem;
    padding: .5rem .875rem .5rem .625rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: .5rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}
a.tf-made-in-de:hover {
    color: inherit;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.14);
}
.tf-made-in-de__flag {
    display: flex;
    flex-direction: column;
    width: .4rem;
    height: 2rem;
    border-radius: .125rem;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.tf-made-in-de__color {
    display: block;
    flex: 1 1 0;
}
.tf-made-in-de__color--black { background: #000; }
.tf-made-in-de__color--red { background: #dd0000; }
.tf-made-in-de__color--gold { background: #ffce00; }
.tf-made-in-de__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.1;
    gap: .1rem;
}
.tf-made-in-de__line1 {
    font-size: .5625rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #9ca3af;
}
.tf-made-in-de__line2 {
    font-size: .9375rem;
    font-weight: 800;
    color: #1a4480;
    letter-spacing: .01em;
}
@media (max-width: 767.98px) {
    .tf-footer-legal-bar-inner {
        flex-direction: column;
        gap: .65rem;
    }

    .tf-footer-legal-copy {
        width: 100%;
    }
}
.tf-footer-design--premium .tf-footer-de-widget {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.04);
}
.tf-footer-brand-block { max-width: 18rem; }
.tf-footer-site-name { color: var(--tf-footer-heading, #fff); font-weight: 800; }
.tf-footer-contact-box {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--tf-radius);
    padding: .85rem 1rem;
}
.tf-footer-contact-row {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    color: var(--tf-footer-text, #e2e8f0);
    text-decoration: none;
    margin-bottom: .55rem;
    font-size: .875rem;
}
.tf-footer-contact-row:last-child { margin-bottom: 0; }
.tf-footer-contact-row i { width: 1rem; margin-top: .15rem; color: #60a5fa; }
.tf-footer-contact-row:hover { color: #fff; }
.tf-footer-contact-row--muted { color: var(--tf-footer-link, #94a3b8); cursor: default; }
.tf-footer-payments { display: flex; flex-wrap: wrap; gap: .5rem; }
.tf-footer-payments-section { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1rem; }
.tf-footer-payment-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .65rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    cursor: help;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.tf-footer-payment-icon:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.22);
}
.tf-footer-payment-icon .tf-payment-icon-bs { display: none; font-size: 1.05rem; }
html.tf-fa-fallback .tf-footer-payment-icon .tf-payment-icon-fa { display: none !important; }
html.tf-fa-fallback .tf-footer-payment-icon .tf-payment-icon-bs { display: inline-flex !important; }
.tf-footer-payment-icon .fa-stripe { font-size: 1.35rem; }
.tf-footer-payment-icon .fa-paypal { font-size: 1.25rem; }

/* Social icons (footer + admin) */
.tf-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}
.tf-social-icons--stack { flex-direction: column; align-items: flex-start; }
.tf-social-icons--row { flex-direction: row; }
.tf-social-icon {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    text-decoration: none;
    color: inherit;
    border-radius: .65rem;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.tf-social-icon-graphic {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .65rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    position: relative;
}
.tf-social-icon-graphic svg {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
}
.tf-social-icon:hover .tf-social-icon-graphic,
.tf-social-icon:focus-visible .tf-social-icon-graphic {
    transform: translateY(-2px) scale(1.03);
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.22);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}
.tf-social-icon:focus-visible { outline: 2px solid rgba(255,255,255,.45); outline-offset: 2px; }
.tf-social-icon-label {
    font-size: .8125rem;
    font-weight: 500;
    color: var(--tf-footer-link, #94a3b8);
    white-space: nowrap;
}
.tf-social-icon:hover .tf-social-icon-label,
.tf-social-icon:focus-visible .tf-social-icon-label { color: var(--tf-footer-heading, #fff); }
.tf-social-icons--size-sm .tf-social-icon-graphic { width: 2.15rem; height: 2.15rem; border-radius: .55rem; }
.tf-social-icons--size-sm .tf-social-icon-graphic svg { width: .95rem; height: .95rem; }
.tf-social-icons--size-lg .tf-social-icon-graphic { width: 3.15rem; height: 3.15rem; border-radius: .75rem; }
.tf-social-icons--size-lg .tf-social-icon-graphic svg { width: 1.35rem; height: 1.35rem; }
.tf-social-icons--compact .tf-social-icon-graphic { width: 2.15rem; height: 2.15rem; border-radius: .55rem; }
.tf-social-icons--compact .tf-social-icon-graphic svg { width: .95rem; height: .95rem; }
.tf-social-icons--theme-light .tf-social-icon-graphic {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.08);
    color: var(--tf-footer-heading, #0f172a);
}
.tf-social-icons--theme-light .tf-social-icon:hover .tf-social-icon-graphic,
.tf-social-icons--theme-light .tf-social-icon:focus-visible .tf-social-icon-graphic {
    background: rgba(15, 23, 42, 0.1);
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.tf-footer-design--premium .tf-social-icon-graphic,
.tf-footer-design--market .tf-social-icon-graphic {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.1);
    color: #fff;
}
.tf-footer-design--premium .tf-social-icon-graphic {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.08);
    color: var(--tf-footer-heading);
}
.tf-footer-social-wrap:empty { display: none; }
.tf-social-admin-list .tf-social-drag-handle { cursor: grab; }
.tf-social-admin-list .sortable-ghost { opacity: .55; }
.tf-social-admin-thumb {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .55rem;
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tf-social-admin-thumb svg { width: 1rem; height: 1rem; display: block; }
.tf-social-admin-preview--dark { background: #0f172a; }
.tf-social-admin-preview--light { background: #f8fafc; border: 1px solid rgba(15,23,42,.08); }
.tf-social-admin-custom-preview svg { width: 2rem; height: 2rem; }

.tf-footer-cookie-btn {
    border-color: rgba(255,255,255,.25) !important;
    color: var(--tf-footer-text, #e2e8f0) !important;
}
.tf-footer-cookie-btn:hover { background: rgba(255,255,255,.08); color: #fff !important; }
.tf-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.tf-footer-made { color: var(--tf-footer-link, #94a3b8); opacity: .85; }

.tf-footer-design--premium {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.tf-footer-design--premium .tf-footer-contact-box {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
}
.tf-footer-design--premium .tf-footer-contact-row { color: var(--tf-footer-text); }
.tf-footer-design--premium .tf-footer-payment-icon {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.08);
    color: var(--tf-footer-heading);
}
.tf-footer-cookie-btn--light {
    border-color: rgba(15, 23, 42, 0.15) !important;
    color: var(--tf-footer-text) !important;
}

.tf-footer-minimal-top { border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: .75rem; }
.tf-footer-minimal-nav .tf-footer-link { white-space: nowrap; }

.tf-footer-de-widget {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .4rem;
    padding: .65rem .85rem;
    min-width: 7.5rem;
    border-radius: .65rem;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    text-decoration: none;
    color: inherit;
}
a.tf-footer-de-widget:hover {
    color: inherit;
    background: rgba(255,255,255,.08);
    text-decoration: none;
}
.tf-footer-de-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .1rem;
    line-height: 1.1;
}
.tf-footer-de-line--top {
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.tf-footer-de-line--bottom {
    font-size: .78rem;
    font-weight: 700;
}
.tf-footer-de-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .12rem;
    width: 100%;
    margin-top: .15rem;
    padding-top: .35rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.tf-footer-de-link {
    font-size: .68rem;
    color: #64748b;
    text-decoration: none;
    line-height: 1.2;
}
.tf-footer-de-link:hover { color: #334155; text-decoration: underline; }
.tf-footer-de-flag {
    display: inline-flex;
    flex-direction: column;
    width: 1.1rem;
    height: .72rem;
    border-radius: .15rem;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
.tf-footer-de-flag-bar { display: block; flex: 1; }
.tf-footer-de-flag-bar--black { background: #000; }
.tf-footer-de-flag-bar--red { background: #dd0000; }
.tf-footer-de-flag-bar--gold { background: #ffce00; }
.tf-footer-de-text {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--tf-footer-text, #e2e8f0);
    white-space: nowrap;
}

.tf-footer-design-card {
    border: 2px solid var(--tf-border);
    border-radius: var(--tf-radius);
    background: var(--tf-surface);
    padding: 0;
    text-align: left;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.tf-footer-design-card:hover {
    border-color: rgba(var(--tf-primary-rgb), .45);
    transform: translateY(-2px);
    box-shadow: var(--tf-shadow-md);
}
.tf-footer-design-card.is-active {
    border-color: var(--tf-primary);
    box-shadow: 0 0 0 3px rgba(var(--tf-primary-rgb), .12);
}
.tf-footer-design-card-preview {
    display: block;
    height: 4.5rem;
    border-bottom: 1px solid var(--tf-border);
}
.tf-footer-design-preview--market { background: linear-gradient(180deg, #0b1220 0%, #111827 100%); }
.tf-footer-design-preview--classic { background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%); }
.tf-footer-design-preview--minimal { background: linear-gradient(180deg, #111827 0%, #1f2937 100%); }
.tf-footer-design-preview--premium { background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%); }
.tf-footer-design-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
    padding: .85rem 1rem 1rem;
}
.tf-footer-design-card-body strong { font-size: .92rem; }
.tf-footer-design-card-body small { color: var(--tf-text-muted); line-height: 1.35; }

/* Company details & related */
.tf-company-details { padding: 1.25rem; border: 1px solid var(--tf-border); border-radius: var(--tf-radius); background: var(--tf-surface); }

.tf-company-contact-row { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .65rem; color: var(--tf-muted); }
.tf-company-contact-row i { width: 1.1rem; margin-top: .15rem; color: var(--tf-primary); }
.tf-company-contact-row a { color: inherit; }

.tf-category-rank-badge { background: rgba(var(--tf-primary-rgb), .12); color: var(--tf-primary); font-weight: 600; }

.tf-related-companies { background: #f8fafc; margin-left: calc(-1 * var(--bs-gutter-x, .75rem)); margin-right: calc(-1 * var(--bs-gutter-x, .75rem)); padding-left: var(--bs-gutter-x, .75rem); padding-right: var(--bs-gutter-x, .75rem); border-radius: var(--tf-radius-lg); }

.tf-related-track { transition: transform .35s ease; }

.tf-related-card { width: 260px; }
.tf-related-card-inner { background: #fff; border: 1px solid var(--tf-border); border-radius: var(--tf-radius); padding: 1rem; height: 100%; box-shadow: 0 2px 8px rgba(15,23,42,.04); }
.tf-related-logo { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; background: #fff; padding: 2px; margin-bottom: .5rem; }
.tf-related-logo--placeholder { display: flex; align-items: center; justify-content: center; background: var(--tf-border); color: var(--tf-muted); }

/* Admin compact sidebar */
.tf-admin-sidebar-compact .tf-sidebar-inner { padding: .5rem .35rem; }
.tf-admin-sidebar-compact .tf-sidebar-link { padding: .45rem .65rem; font-size: .8125rem; }
.tf-admin-sidebar-compact .tf-sidebar-section { font-size: .65rem; padding: .35rem .65rem .15rem; }
.tf-admin-sidebar-compact .tf-sidebar-group { margin-bottom: .15rem; }
.tf-admin-sidebar-compact .tf-sidebar-group-title { cursor: pointer; list-style: none; user-select: none; }
.tf-admin-sidebar-compact .tf-sidebar-group-title::-webkit-details-marker { display: none; }
.tf-admin-sidebar-compact .tf-sidebar-group[open] > .tf-sidebar-group-title {
    color: rgba(255, 255, 255, 0.92);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.92);
}
.tf-admin-sidebar-compact .tf-sidebar-inner { max-height: none; overflow-y: auto; scrollbar-width: thin; flex: 1; }

.tf-sidebar-brand {
    padding: 1rem .85rem .75rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.tf-sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    color: #fff;
}
.tf-admin-sidebar .tf-sidebar-brand-link {
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
}
.tf-admin-sidebar .tf-sidebar-brand-link--logo-only {
    align-items: center;
}
.tf-admin-sidebar .tf-sidebar-brand-link--logo-only .tf-sidebar-brand-logo {
    max-height: 40px;
    width: auto;
    height: auto;
    max-width: 100%;
}
.tf-sidebar-brand-logo { border-radius: 6px; max-width: 100%; max-height: 40px; width: auto; height: auto; object-fit: contain; }
.tf-admin-sidebar .tf-sidebar-brand-logo { max-height: 40px; width: auto; height: auto; object-fit: contain; }
.tf-sidebar-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.tf-admin-sidebar .tf-sidebar-brand-text { width: 100%; }
.tf-sidebar-brand-text strong { font-size: .95rem; font-weight: 800; }
.tf-sidebar-brand-text small {
    font-size: .62rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    font-weight: 700;
}
.tf-admin-sidebar .tf-sidebar-brand-text small {
    margin-top: .1rem;
    color: rgba(255, 255, 255, 0.55);
}

.tf-admin-sidebar .tf-sidebar-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}
.tf-admin-sidebar .tf-sidebar-group-title::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .62rem;
    opacity: .45;
    transition: transform .2s ease;
}
.tf-admin-sidebar .tf-sidebar-group[open] .tf-sidebar-group-title::after { transform: rotate(180deg); }

/* ---- Score display ---- */
.tf-score-display {
    font-size: 3.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--tf-primary), var(--tf-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.tf-score-box {
    background: linear-gradient(135deg, rgba(var(--tf-primary-rgb), 0.08) 0%, rgba(99, 102, 241, 0.06) 100%);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
}

/* ---- Rating bars ---- */
.tf-rating-bar {
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(var(--tf-primary-rgb), 0.1);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.tf-rating-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--tf-rating-bar-color, linear-gradient(90deg, #F59E0B, #F97316));
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.25);
}

.tf-rating-row-label .fa-star {
    color: var(--tf-row-star-color, var(--tf-star));
}

/* ---- Company logo ---- */
.tf-company-logo {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: var(--tf-radius-sm);
    object-fit: contain;
    background: #fff;
    padding: 0.2rem;
    flex-shrink: 0;
    border: 2px solid var(--tf-border);
    box-shadow: var(--tf-shadow-xs);
}

.tf-company-logo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: linear-gradient(135deg, rgba(var(--tf-primary-rgb), 0.15) 0%, rgba(99, 102, 241, 0.1) 100%);
    color: var(--tf-primary);
    border: 2px solid rgba(var(--tf-primary-rgb), 0.15);
}

.tf-card-title {
    color: var(--tf-text) !important;
    transition: color var(--tf-transition);
}

.tf-card-interactive:hover .tf-card-title {
    color: var(--tf-primary) !important;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--tf-primary);
    font-weight: 500;
    text-decoration: none;
}

.breadcrumb-item.active { color: var(--tf-text-muted); }

/* ---- Auth card ---- */
.tf-auth-card {
    border: 1px solid var(--tf-border-strong);
    box-shadow: var(--tf-shadow-lg) !important;
}

.tf-auth-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(var(--tf-primary-rgb), 0.12), rgba(99, 102, 241, 0.08));
    color: var(--tf-primary);
    border: 2px solid rgba(var(--tf-primary-rgb), 0.15);
    margin-bottom: 1rem;
}

.tf-register-page {
    max-width: 920px;
}

.tf-register-success {
    max-width: 920px;
}

.tf-register-success-hero .card-body,
.tf-register-success-steps .card-body {
    min-height: 100%;
}

.tf-register-success-icon {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    color: #047857;
    background: rgba(0, 182, 122, 0.14);
    box-shadow: 0 0 0 6px rgba(0, 182, 122, 0.08);
}

.tf-register-success-list {
    display: grid;
    gap: .75rem;
}

.tf-register-success-step {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.tf-register-success-step-num {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    color: var(--tf-primary);
    background: rgba(var(--tf-primary-rgb), 0.12);
}

.tf-register-success-hint {
    border: 0;
    background: rgba(var(--tf-primary-rgb), 0.08);
    color: var(--tf-text);
    font-size: .8125rem;
    padding: .65rem .75rem;
    margin-top: 1.25rem;
}

[data-bs-theme="dark"] .tf-register-success-icon {
    color: #34d399;
    background: rgba(52, 211, 153, 0.16);
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.08);
}

[data-bs-theme="dark"] .tf-register-success-hint {
    background: rgba(var(--tf-primary-rgb), 0.14);
}

@media (min-width: 992px) {
    body.tf-app .container.tf-main:has(.tf-register-success) {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

.tf-register-header .tf-auth-icon {
    margin-bottom: .75rem;
}

.tf-register-card {
    border-radius: var(--tf-radius-lg, 1rem);
}

.tf-register-card-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--tf-border);
}

.tf-register-card-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(var(--tf-primary-rgb), 0.1);
    color: var(--tf-primary);
}

.tf-register-card-title {
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--tf-text-muted);
}

.tf-register-type-section {
    position: relative;
}

.tf-register-type-panel {
    padding: 1.35rem 1.35rem 1.5rem;
    border-radius: var(--tf-radius-lg, 1rem);
    border: 2px solid rgba(var(--tf-primary-rgb), 0.18);
    background:
        linear-gradient(135deg, rgba(var(--tf-primary-rgb), 0.1) 0%, rgba(var(--tf-primary-rgb), 0.03) 42%, var(--tf-surface) 100%);
    box-shadow: 0 14px 40px rgba(var(--tf-primary-rgb), 0.1);
}

.tf-register-type-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(var(--tf-primary-rgb), 0.12);
}

.tf-register-type-step-badge {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--tf-primary), var(--tf-accent));
    box-shadow: 0 6px 18px rgba(var(--tf-primary-rgb), 0.35);
}

.tf-register-type-step-badge--muted {
    color: var(--tf-primary);
    background: rgba(var(--tf-primary-rgb), 0.12);
    box-shadow: none;
}

.tf-register-type-step-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tf-primary);
}

.tf-register-type-heading {
    font-weight: 800;
    color: var(--tf-text);
}

.tf-register-type-lead {
    font-size: 0.9375rem;
    color: var(--tf-text-muted);
    max-width: 42rem;
}

.tf-register-form-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tf-register-form-step-label {
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tf-text-muted);
}

.tf-register-type-option {
    position: relative;
    display: block;
    height: 100%;
    min-height: 7.5rem;
    padding: 1.15rem 1.25rem;
    border: 2px dashed rgba(100, 116, 139, 0.35);
    border-radius: 1rem;
    background: var(--tf-surface);
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}

.tf-register-type-option:hover {
    border-color: rgba(var(--tf-primary-rgb), 0.45);
    border-style: solid;
    box-shadow: 0 8px 24px rgba(var(--tf-primary-rgb), 0.1);
    transform: translateY(-1px);
}

.tf-register-type-option.is-active {
    border-style: solid;
    border-color: var(--tf-primary);
    background: linear-gradient(180deg, rgba(var(--tf-primary-rgb), 0.12) 0%, rgba(var(--tf-primary-rgb), 0.04) 100%);
    box-shadow:
        0 0 0 3px rgba(var(--tf-primary-rgb), 0.14),
        0 12px 28px rgba(var(--tf-primary-rgb), 0.14);
    transform: translateY(-2px);
}

.tf-register-type-check {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    font-size: 1.25rem;
    color: var(--tf-primary);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity .2s ease, transform .2s ease;
}

.tf-register-type-option.is-active .tf-register-type-check {
    opacity: 1;
    transform: scale(1);
}

.tf-register-type-body {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-right: 1.5rem;
}

.tf-register-type-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    background: rgba(var(--tf-primary-rgb), 0.12);
    color: var(--tf-primary);
}

.tf-register-type-icon--company {
    background: rgba(180, 83, 9, 0.12);
    color: #B45309;
}

.tf-register-type-option--company.is-active {
    border-color: #B45309;
    background: linear-gradient(180deg, rgba(180, 83, 9, 0.12) 0%, rgba(180, 83, 9, 0.04) 100%);
    box-shadow:
        0 0 0 3px rgba(180, 83, 9, 0.12),
        0 12px 28px rgba(180, 83, 9, 0.12);
}

.tf-register-type-option--company.is-active .tf-register-type-check {
    color: #B45309;
}

.tf-register-type-copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.tf-register-type-label {
    font-size: 1.0625rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--tf-text);
}

.tf-register-type-desc {
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--tf-text-muted);
}

[data-bs-theme="dark"] .tf-register-type-panel {
    background:
        linear-gradient(135deg, rgba(var(--tf-primary-rgb), 0.16) 0%, rgba(var(--tf-primary-rgb), 0.05) 42%, var(--tf-surface) 100%);
    border-color: rgba(var(--tf-primary-rgb), 0.28);
}

@media (max-width: 767.98px) {
    .tf-register-type-panel {
        padding: 1.1rem;
    }

    .tf-register-type-body {
        flex-direction: column;
        gap: 0.75rem;
        padding-right: 0;
    }

    .tf-register-type-option {
        min-height: auto;
    }
}

.tf-pricing-dispute-preview .border {
    border-color: rgba(var(--tf-primary-rgb), .12) !important;
}

.tf-password-strength {
    border: 1px solid rgba(var(--tf-primary-rgb), 0.1);
    border-radius: .75rem;
    padding: .65rem .75rem;
    background:
        linear-gradient(160deg, rgba(var(--tf-primary-rgb), 0.04) 0%, rgba(37, 99, 235, 0.03) 100%),
        var(--tf-surface-muted);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.tf-password-strength-head {
    margin-bottom: .5rem;
}

.tf-password-strength-title-row {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .4rem;
}

.tf-password-strength-icon {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: .4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    color: var(--tf-accent);
    background: rgba(37, 99, 235, 0.12);
    flex-shrink: 0;
}

.tf-password-strength-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--tf-text-muted);
    flex: 1;
}

.tf-password-strength-count {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--tf-primary);
    padding: .1rem .45rem;
    border-radius: 999px;
    background: rgba(var(--tf-primary-rgb), 0.06);
    border: 1px solid rgba(var(--tf-primary-rgb), 0.08);
}

.tf-password-strength-track {
    height: .28rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(var(--tf-primary-rgb), 0.08);
}

.tf-password-strength-fill {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tf-success) 0%, #34d399 100%);
    transition: width .35s ease;
}

.tf-password-rules--premium {
    display: grid;
    grid-template-columns: 1fr;
    gap: .25rem;
}

@media (min-width: 480px) {
    .tf-password-rules--premium {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: .35rem;
    }
}

.tf-password-rules--premium .tf-password-rule {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .32rem .45rem;
    border-radius: .5rem;
    border: 1px solid rgba(var(--tf-primary-rgb), 0.08);
    background: rgba(255, 255, 255, 0.82);
    color: var(--tf-text-muted);
    font-size: .75rem;
    line-height: 1.25;
    transition: border-color .25s ease, background-color .25s ease, color .25s ease, box-shadow .25s ease;
}

.tf-password-rule-status {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(var(--tf-primary-rgb), 0.06);
    border: 1px solid rgba(var(--tf-primary-rgb), 0.1);
    transition: background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}

.tf-password-rules--premium .tf-password-rule-icon {
    font-size: .55rem;
    color: var(--tf-text-muted);
    transition: color .25s ease;
}

.tf-password-rules--premium .tf-password-rule-label {
    flex: 1;
    min-width: 0;
}

.tf-password-rules--premium .tf-password-rule.is-met {
    border-color: rgba(0, 182, 122, 0.28);
    background: rgba(0, 182, 122, 0.07);
    color: #047857;
    box-shadow: none;
}

.tf-password-rules--premium .tf-password-rule.is-met .tf-password-rule-status {
    background: var(--tf-success);
    border-color: var(--tf-success);
    color: #fff;
    box-shadow: 0 0 0 2px rgba(0, 182, 122, 0.12);
}

.tf-password-rules--premium .tf-password-rule.is-met .tf-password-rule-icon {
    color: #fff;
}

.tf-password-strength.is-complete .tf-password-strength-count {
    background: rgba(0, 182, 122, 0.12);
    border-color: rgba(0, 182, 122, 0.22);
    color: #047857;
}

[data-bs-theme="dark"] .tf-password-strength {
    background:
        linear-gradient(160deg, rgba(var(--tf-primary-rgb), 0.2) 0%, rgba(37, 99, 235, 0.08) 100%),
        var(--tf-surface-muted);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-bs-theme="dark"] .tf-password-rules--premium .tf-password-rule {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .tf-password-rules--premium .tf-password-rule.is-met {
    color: #6ee7b7;
}

@media (min-width: 992px) {
    body.tf-app .container.tf-main:has(.tf-register-page) {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

.tf-confirm-modal {
    border: 1px solid var(--tf-border);
    box-shadow: var(--tf-shadow-lg);
}

.tf-confirm-modal .modal-body {
    color: var(--tf-text-muted);
    white-space: pre-line;
}

/* ---- Admin ---- */
body.tf-admin-app {
    min-height: 100vh;
    background: #EEF2F8;
}

.tf-admin-wrap {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

.tf-sidebar {
    position: relative;
    top: auto;
    width: var(--tf-sidebar-width);
    height: auto;
    min-height: 100%;
    align-self: stretch;
    background: var(--tf-surface);
    border-right: 1px solid var(--tf-border);
    padding: 0;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
}

.tf-sidebar-inner {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 0.85rem;
}

.tf-sidebar-foot {
    margin-top: auto;
    padding: 1rem 0.85rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tf-sidebar-foot-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
}

.tf-sidebar-foot-link:hover { color: #fff; }

.tf-admin-shell {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.tf-admin-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.tf-admin-topbar-inner {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 1.25rem;
    min-height: var(--tf-header-height, 4rem);
}
.tf-admin-search-wrap { position: relative; flex: 1; max-width: 34rem; margin: 0 auto; }
.tf-admin-search {
    display: flex;
    align-items: center;
    gap: .65rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: .45rem .85rem .45rem 1rem;
}
.tf-admin-search-input {
    border: 0;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: .875rem;
    color: var(--tf-text);
}
.tf-admin-search-input::placeholder { color: #94a3b8; }
.tf-admin-search > i { color: #64748b; }
.tf-admin-search-kbd {
    font-size: .68rem;
    color: #64748b;
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: .35rem;
    padding: .15rem .45rem;
}
.tf-admin-search-results {
    position: absolute;
    top: calc(100% + .35rem);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--tf-radius);
    box-shadow: var(--tf-shadow-lg);
    max-height: 18rem;
    overflow-y: auto;
    z-index: 1050;
}
.tf-admin-search-result {
    display: block;
    padding: .65rem .85rem;
    text-decoration: none;
    color: var(--tf-text);
    border-bottom: 1px solid #f1f5f9;
    font-size: .875rem;
}
.tf-admin-search-result:hover { background: #f8fafc; color: var(--tf-primary); }
.tf-admin-search-result small { display: block; color: #94a3b8; font-size: .75rem; }

.tf-admin-cron-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .75rem;
    min-height: 2.45rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.15;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
    box-sizing: border-box;
}
.tf-admin-cron-badge-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .1rem;
}
.tf-admin-cron-badge-label { font-weight: 700; }
.tf-admin-cron-badge-meta {
    font-size: .68rem;
    font-weight: 500;
    opacity: .85;
}
.tf-admin-cron-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    flex-shrink: 0;
}
.tf-admin-cron-badge--success {
    color: #166534;
    background: #ecfdf5;
    border-color: #bbf7d0;
}
.tf-admin-cron-badge--success .tf-admin-cron-dot { background: #22c55e; }
.tf-admin-cron-badge--warning {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}
.tf-admin-cron-badge--warning .tf-admin-cron-dot { background: #f59e0b; }
.tf-admin-cron-badge--danger {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}
.tf-admin-cron-badge--danger .tf-admin-cron-dot { background: #ef4444; }
.tf-admin-cron-badge--secondary {
    color: #475569;
    background: #f8fafc;
    border-color: #e2e8f0;
}
.tf-admin-cron-badge--secondary .tf-admin-cron-dot { background: #94a3b8; }
.tf-admin-cron-badge--primary {
    color: #fff;
    background: var(--tf-primary, #1e3a5f);
    border-color: var(--tf-primary, #1e3a5f);
    gap: .35rem;
    padding-left: .55rem;
}
.tf-admin-cron-badge--primary .tf-admin-cron-badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    padding: .05rem .3rem;
    font-size: .75rem;
    font-weight: 800;
    line-height: 1;
    background: rgba(255, 255, 255, .15);
    border-radius: .25rem;
    flex-shrink: 0;
}
.tf-admin-cron-badge--primary .tf-admin-cron-badge-label {
    font-weight: 700;
    line-height: 1.15;
}
.tf-admin-invoice-review {
    background: rgba(var(--tf-primary-rgb, 30, 58, 95), 0.06);
}
.tf-admin-invoice-meta > div + div {
    margin-top: .2rem;
}
.tf-admin-cron-badge:hover { opacity: .92; }

.tf-admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-left: auto;
}
.tf-admin-topbar-btn,
.tf-admin-topbar-lang {
    width: 2.35rem;
    height: 2.35rem;
    min-width: 2.35rem;
    padding: 0;
    border-radius: 999px;
    border: 1px solid #dbeafe;
    background: #fff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}
.tf-admin-topbar-lang {
    width: auto;
    min-width: 2.75rem;
    padding: 0 .75rem;
    font-weight: 700;
    font-size: .78rem;
}
.tf-admin-topbar-btn:hover,
.tf-admin-topbar-lang:hover {
    background: #f8fafc;
    border-color: #93c5fd;
    color: var(--tf-primary);
}
.tf-admin-topbar-user {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
    color: var(--tf-text);
    padding: .2rem .55rem .2rem .2rem;
    border-radius: 999px;
    border: 1px solid transparent;
}
.tf-admin-topbar-user:hover { background: #f8fafc; border-color: #e2e8f0; color: var(--tf-text); }
.tf-admin-topbar-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: .55rem;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .78rem;
}
.tf-admin-topbar-name { font-size: .875rem; font-weight: 600; max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-admin-topbar-logout { color: #64748b; }

.tf-admin-topbar .tf-header-tool-btn {
    --bs-btn-color: #475569;
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #dbeafe;
    width: 2.35rem;
    height: 2.35rem;
    min-width: 2.35rem;
    border-radius: 999px !important;
    border: 1px solid #dbeafe !important;
    background: #fff !important;
    color: #475569 !important;
    box-shadow: none !important;
}
.tf-admin-topbar .tf-header-tool-btn:hover,
.tf-admin-topbar .tf-header-tool-btn:focus {
    background: #f8fafc !important;
    border-color: #93c5fd !important;
    color: var(--tf-primary) !important;
    transform: none;
}
[data-bs-theme="dark"] .tf-admin-topbar {
    background: #0f172a;
    border-bottom-color: rgba(255,255,255,.08);
}
[data-bs-theme="dark"] .tf-admin-search {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.1);
}
[data-bs-theme="dark"] .tf-admin-search-input { color: #e2e8f0; }
[data-bs-theme="dark"] .tf-admin-topbar-btn,
[data-bs-theme="dark"] .tf-admin-topbar-lang,
[data-bs-theme="dark"] .tf-admin-topbar .tf-header-tool-btn {
    background: rgba(255,255,255,.06) !important;
    border-color: rgba(255,255,255,.12) !important;
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .tf-admin-topbar-user { color: #e2e8f0; }
[data-bs-theme="dark"] .tf-admin-topbar-user:hover { background: rgba(255,255,255,.06); }

.tf-monitoring-nav {
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    padding: .5rem .65rem;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
[data-bs-theme="dark"] .tf-monitoring-nav {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(255,255,255,.08);
}
.tf-monitoring-nav-scroll {
    display: flex;
    gap: .35rem;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: .1rem;
}
.tf-monitoring-nav-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .85rem;
    border-radius: 999px;
    color: var(--tf-text-muted);
    text-decoration: none;
    font-size: .8125rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.tf-monitoring-nav-link:hover { color: var(--tf-text); background: rgba(15, 23, 42, 0.05); }
.tf-monitoring-nav-link.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--tf-primary) 0%, #1d4ed8 100%);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}
.tf-monitoring-scroll-panel {
    max-height: min(520px, 60vh);
    overflow: auto;
}
.tf-monitoring-code,
.tf-monitoring-code-block code {
    word-break: break-all;
    white-space: pre-wrap;
}
.tf-monitoring-code-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    padding: .85rem 1rem;
    font-size: .78rem;
    overflow: auto;
}
[data-bs-theme="dark"] .tf-monitoring-code-block {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.08);
}
.tf-monitoring-savebar {
    position: sticky;
    bottom: 1rem;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    padding-top: .5rem;
}

/* Monitoring — consistent card/header/table padding */
.tf-admin-content .tf-card > .card-header {
    padding: 1rem 1.5rem;
    background: rgba(var(--tf-primary-rgb), 0.04);
    border-bottom: 1px solid var(--tf-border);
}

.tf-admin-content .tf-card > .card-body {
    padding: 1.25rem 1.5rem;
}

.tf-admin-content .tf-card > .card-body.p-0 {
    padding: 0;
}

.tf-admin-content .tf-card .table.tf-table thead th,
.tf-admin-content .tf-card .table.tf-table tbody td,
.tf-admin-content .tf-monitoring-scroll-panel .table.tf-table thead th,
.tf-admin-content .tf-monitoring-scroll-panel .table.tf-table tbody td {
    padding-top: .9rem;
    padding-bottom: .9rem;
}

.tf-admin-content .tf-card .table.tf-table thead th:first-child,
.tf-admin-content .tf-card .table.tf-table tbody td:first-child,
.tf-admin-content .tf-monitoring-scroll-panel .table.tf-table thead th:first-child,
.tf-admin-content .tf-monitoring-scroll-panel .table.tf-table tbody td:first-child {
    padding-left: 1.5rem;
}

.tf-admin-content .tf-card .table.tf-table thead th:last-child,
.tf-admin-content .tf-card .table.tf-table tbody td:last-child,
.tf-admin-content .tf-monitoring-scroll-panel .table.tf-table thead th:last-child,
.tf-admin-content .tf-monitoring-scroll-panel .table.tf-table tbody td:last-child {
    padding-right: 1.5rem;
}

.tf-admin-content .card .table:not(.tf-table) thead th,
.tf-admin-content .card .table:not(.tf-table) tbody td {
    padding: .9rem 1.5rem;
}

.tf-admin-content .tf-card .card-footer {
    padding: 1rem 1.5rem;
}

.tf-admin-content .card .card-body {
    padding: 1.25rem 1.5rem;
}

.tf-admin-content .card .card-header {
    padding: 1rem 1.5rem;
}

[data-bs-theme="dark"] .tf-admin-content .tf-card > .card-header {
    background: rgba(255, 255, 255, 0.04);
}

/* Vendor portal (verification, billing, invites) */
.tf-vendor-page .tf-card > .card-header,
.tf-main .tf-vendor-page .tf-card > .card-header {
    padding: 1rem 1.5rem;
}

.tf-vendor-page .tf-card > .card-body,
.tf-main .tf-vendor-page .tf-card > .card-body {
    padding: 1.25rem 1.5rem;
}

.tf-vendor-page .tf-card .list-group-item,
.tf-main .tf-vendor-page .tf-card .list-group-item {
    padding: .95rem 1.5rem;
}

.tf-verification-level {
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.15rem 1.1rem 1.15rem 1.15rem;
    border-radius: 1rem;
    border: 2px solid var(--tf-border);
    background: var(--tf-surface);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background-color .2s ease;
    min-height: 100%;
}
.tf-verification-level input[type="radio"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.tf-verification-level-check {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    display: none;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
}
.tf-verification-level-check i {
    font-size: 0.72rem;
}
.tf-verification-level-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    border: 1px solid transparent;
}
.tf-verification-level--basic .tf-verification-level-icon {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.18);
}
.tf-verification-level--standard .tf-verification-level-icon {
    color: #047857;
    background: rgba(5, 150, 105, 0.12);
    border-color: rgba(5, 150, 105, 0.18);
}
.tf-verification-level--advanced .tf-verification-level-icon {
    color: #b45309;
    background: rgba(217, 119, 6, 0.12);
    border-color: rgba(217, 119, 6, 0.2);
}
.tf-verification-level.is-selected {
    border-width: 2px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}
.tf-verification-level.is-selected .tf-verification-level-check {
    display: inline-flex;
}
.tf-verification-level--basic.is-selected {
    border-color: #2563eb;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.14) 0%, rgba(37, 99, 235, 0.04) 100%);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18), 0 14px 36px rgba(37, 99, 235, 0.12);
}
.tf-verification-level--basic.is-selected .tf-verification-level-check {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.16);
    border: 1px solid rgba(37, 99, 235, 0.28);
}
.tf-verification-level--standard.is-selected {
    border-color: #059669;
    background: linear-gradient(180deg, rgba(5, 150, 105, 0.14) 0%, rgba(5, 150, 105, 0.04) 100%);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18), 0 14px 36px rgba(5, 150, 105, 0.12);
}
.tf-verification-level--standard.is-selected .tf-verification-level-check {
    color: #047857;
    background: rgba(5, 150, 105, 0.16);
    border: 1px solid rgba(5, 150, 105, 0.28);
}
.tf-verification-level--advanced.is-selected {
    border-color: #d97706;
    background: linear-gradient(180deg, rgba(217, 119, 6, 0.16) 0%, rgba(217, 119, 6, 0.05) 100%);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2), 0 14px 36px rgba(217, 119, 6, 0.12);
}
.tf-verification-level--advanced.is-selected .tf-verification-level-check {
    color: #b45309;
    background: rgba(217, 119, 6, 0.16);
    border: 1px solid rgba(217, 119, 6, 0.3);
}
.tf-verification-level:hover {
    border-color: rgba(var(--tf-primary-rgb), 0.35);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}
.tf-verification-level.is-selected:hover {
    transform: translateY(-2px);
}

/* Company settings (vendor) */
.tf-company-settings-card > .card-header {
    background: linear-gradient(135deg, rgba(var(--tf-primary-rgb), 0.04), rgba(255, 255, 255, 0));
}
.tf-company-settings-section-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}
.tf-company-settings-section-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--tf-primary);
    background: rgba(var(--tf-primary-rgb), 0.1);
    border: 1px solid rgba(var(--tf-primary-rgb), 0.12);
}
.tf-company-settings-note {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: rgba(var(--tf-primary-rgb), 0.05);
    border: 1px solid rgba(var(--tf-primary-rgb), 0.08);
}
.tf-company-settings-dl dt {
    font-weight: 500;
    color: var(--tf-muted);
}
.tf-company-settings-summary .list-group-item {
    font-size: 0.925rem;
}
[data-bs-theme="dark"] .tf-company-settings-card > .card-header {
    background: linear-gradient(135deg, rgba(var(--tf-primary-rgb), 0.08), rgba(255, 255, 255, 0.02));
}
[data-bs-theme="dark"] .tf-company-settings-section-icon {
    background: rgba(var(--tf-primary-rgb), 0.14);
    border-color: rgba(var(--tf-primary-rgb), 0.18);
}
[data-bs-theme="dark"] .tf-company-settings-note {
    background: rgba(var(--tf-primary-rgb), 0.08);
    border-color: rgba(var(--tf-primary-rgb), 0.12);
}
.tf-company-settings-tax-grid {
    display: grid;
    gap: 1.25rem;
}
.tf-company-settings-tax-block {
    padding: 1rem 1.1rem;
    border: 1px solid var(--tf-border);
    border-radius: 0.9rem;
    background: rgba(var(--tf-primary-rgb), 0.02);
}
.tf-company-settings-tax-block-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.tf-company-settings-tax-vat .form-label {
    color: var(--tf-muted);
}
.tf-form-label-compact {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.35rem;
}
.tf-field-with-info .tf-field-info {
    color: var(--tf-muted);
    background: var(--tf-surface);
    border-color: var(--tf-border);
    cursor: help;
    padding-inline: 0.65rem;
}
.tf-field-with-info .tf-field-info:hover,
.tf-field-with-info .tf-field-info:focus {
    color: var(--tf-primary);
    background: rgba(var(--tf-primary-rgb), 0.06);
}
[data-bs-theme="dark"] .tf-company-settings-tax-block {
    background: rgba(255, 255, 255, 0.02);
}

.tf-verification-timeline-card {
    overflow: hidden;
}
.tf-verification-timeline {
    position: relative;
    padding: 1.25rem 1.5rem 1.35rem;
}
.tf-verification-timeline::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    bottom: 1.5rem;
    left: 1.95rem;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(var(--tf-primary-rgb), 0.35), rgba(22, 101, 52, 0.45), rgba(var(--tf-primary-rgb), 0.15));
}
.tf-verification-timeline-item {
    position: relative;
    display: flex;
    gap: 1rem;
    padding-bottom: 1.15rem;
}
.tf-verification-timeline-item:last-child {
    padding-bottom: 0;
}
.tf-verification-timeline-dot {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 0.9rem;
    height: 0.9rem;
    margin-top: 0.35rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #166534, #059669);
    box-shadow: 0 0 0 4px rgba(22, 101, 52, 0.12), 0 4px 12px rgba(22, 101, 52, 0.25);
}
.tf-verification-timeline-body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.75rem 0.95rem;
    border-radius: 0.85rem;
    border: 1px solid var(--tf-border);
    background: linear-gradient(135deg, rgba(var(--tf-primary-rgb), 0.03), rgba(22, 101, 52, 0.04));
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.tf-verification-timeline-time {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--tf-text-muted);
    margin-bottom: 0.35rem;
}
.tf-verification-timeline-level {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}
.tf-verification-timeline-level i {
    font-size: 0.9em;
}
.tf-verification-timeline-level.tf-verification-level--basic i { color: #1d4ed8; }
.tf-verification-timeline-level.tf-verification-level--standard i { color: #047857; }
.tf-verification-timeline-level.tf-verification-level--advanced i { color: #b45309; }
.tf-verification-timeline-message {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--tf-text);
}

.tf-verification-steps {
    padding-left: 1.25rem;
}

.tf-verification-steps li + li {
    margin-top: .35rem;
}

.tf-verification-code pre {
    background: var(--tf-surface-muted, #f8fafc);
    border: 1px solid var(--tf-border, #e2e8f0);
    border-radius: .75rem;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    font-size: .85rem;
}

.tf-file-dropzone {
    position: relative;
    border: 2px dashed var(--tf-border, #cbd5e1);
    border-radius: .875rem;
    background: var(--tf-surface-muted, #f8fafc);
    transition: border-color .2s ease, background .2s ease;
}

.tf-file-dropzone.is-dragover {
    border-color: var(--tf-primary);
    background: rgba(0, 182, 122, .06);
}

.tf-file-drop-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.tf-file-dropzone-inner {
    padding: 2rem 1.5rem;
    text-align: center;
    pointer-events: none;
}

.tf-addon-block {
    padding: 1rem;
    border: 1px solid var(--tf-border, #e2e8f0);
    border-radius: .75rem;
    background: var(--tf-surface-muted, #f8fafc);
}

[data-bs-theme="dark"] .tf-verification-code pre,
[data-bs-theme="dark"] .tf-file-dropzone,
[data-bs-theme="dark"] .tf-addon-block {
    background: rgba(255, 255, 255, 0.04);
}

.tf-cron-table thead th {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--tf-text-muted);
    border-bottom-width: 1px;
}
.tf-cron-status {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .8125rem;
    font-weight: 700;
}
.tf-cron-status--success { background: rgba(22, 163, 74, 0.14); color: #15803D; border-color: rgba(22, 163, 74, 0.22); }
.tf-cron-status--warning { background: rgba(245, 158, 11, 0.14); color: #B45309; border-color: rgba(245, 158, 11, 0.25); }
.tf-cron-status--danger  { background: rgba(220, 38, 38, 0.1); color: var(--tf-danger); border-color: rgba(220, 38, 38, 0.2); }
.tf-cron-status--secondary { background: rgba(100, 116, 139, 0.12); color: #475569; border-color: rgba(100, 116, 139, 0.2); }

.tf-widget-preview-frame {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 42%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.92) 100%);
    border: 1px dashed rgba(37, 99, 235, 0.18);
}

#tfWidgetLivePreview {
    position: relative;
    display: block;
    width: 100%;
    min-height: 240px;
}

[data-bs-theme="dark"] .tf-widget-preview-frame {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(17, 24, 39, 0.96) 100%);
    border-color: rgba(148, 163, 184, 0.18);
}

.tf-admin-main { flex: 1; padding: 1.75rem 2rem 1.25rem; min-width: 0; }

.tf-admin-footer {
    margin-top: auto;
    padding: 1rem 2rem 1.25rem;
    border-top: 1px solid rgba(11, 31, 58, 0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.95) 100%);
}

.tf-admin-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--tf-text-muted);
}

.tf-admin-footer-copy a {
    color: var(--tf-primary);
    font-weight: 700;
    text-decoration: none;
}

.tf-admin-footer-copy a:hover { text-decoration: underline; }

.tf-admin-brand-logo {
    max-height: 40px;
    width: auto;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
}

.tf-admin-footer-meta { opacity: 0.85; }

[data-bs-theme="dark"] .tf-admin-footer {
    background: rgba(15, 23, 42, 0.55);
    border-top-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="light"] .tf-sidebar {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFF 100%);
}

.tf-sidebar-section {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tf-text-muted);
    padding: 0.75rem 0.85rem 0.35rem;
}

.tf-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.9rem;
    border-radius: var(--tf-radius-sm);
    color: var(--tf-text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--tf-transition);
    margin-bottom: 0.2rem;
    border: 1px solid transparent;
}

.tf-sidebar-link i { width: 1.2rem; text-align: center; color: var(--tf-text-muted); }

.tf-sidebar-link:hover {
    background: rgba(var(--tf-primary-rgb), 0.08);
    color: var(--tf-primary);
    border-color: rgba(var(--tf-primary-rgb), 0.12);
}

.tf-sidebar-link:hover i { color: var(--tf-primary); }

.tf-sidebar-link.active {
    background: linear-gradient(135deg, rgba(var(--tf-primary-rgb), 0.14), rgba(99, 102, 241, 0.08));
    color: var(--tf-primary);
    border-color: rgba(var(--tf-primary-rgb), 0.2);
    box-shadow: var(--tf-shadow-xs);
}

.tf-sidebar-link.active i { color: var(--tf-primary); }

.tf-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.tf-kpi {
    padding: 1.5rem;
    border-radius: var(--tf-radius);
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    box-shadow: var(--tf-shadow-sm);
    height: 100%;
    transition: all var(--tf-transition);
    position: relative;
    overflow: hidden;
}

[data-bs-theme="light"] .tf-kpi {
    box-shadow: var(--tf-shadow);
}

.tf-kpi::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tf-primary), var(--tf-accent));
    opacity: 0.6;
}

.tf-kpi:hover {
    transform: translateY(-3px);
    box-shadow: var(--tf-shadow-lg);
}

.tf-kpi-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--tf-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.tf-kpi-value {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--tf-text);
}

.tf-kpi-label { font-size: 0.875rem; color: var(--tf-text-muted); font-weight: 600; }

.tf-table-wrap {
    border-radius: var(--tf-radius);
    border: 1px solid var(--tf-border);
    overflow: hidden;
    background: var(--tf-surface);
    box-shadow: var(--tf-shadow);
}

.tf-table { margin-bottom: 0; }

.tf-table thead th {
    background: linear-gradient(180deg, rgba(var(--tf-primary-rgb), 0.08) 0%, rgba(var(--tf-primary-rgb), 0.04) 100%);
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--tf-text-muted);
    border-bottom: 2px solid var(--tf-border);
    padding: 1rem;
}

.tf-table tbody tr { transition: background var(--tf-transition); }
.tf-table tbody tr:hover { background: rgba(var(--tf-primary-rgb), 0.05); }
.tf-table tbody td { padding: 1rem; border-color: var(--tf-border); }

.tf-lang-dropdown .dropdown-menu {
    background: var(--tf-surface) !important;
    border: 1px solid var(--tf-border-strong);
    border-radius: var(--tf-radius-sm);
    padding: 0.35rem;
    min-width: 9.5rem;
    box-shadow: var(--tf-shadow-lg);
}

.tf-lang-dropdown .dropdown-item {
    color: var(--tf-text) !important;
    -webkit-text-fill-color: var(--tf-text) !important;
    border-radius: calc(var(--tf-radius-sm) - 2px);
    font-weight: 500;
    padding: 0.55rem 0.85rem;
}

.tf-lang-dropdown .dropdown-item:hover,
.tf-lang-dropdown .dropdown-item:focus {
    background: rgba(var(--tf-primary-rgb), 0.08) !important;
    color: var(--tf-primary) !important;
    -webkit-text-fill-color: var(--tf-primary) !important;
}

.tf-lang-dropdown .dropdown-item.active,
.tf-lang-dropdown .dropdown-item.active:hover,
.tf-lang-dropdown .dropdown-item.active:focus {
    background: rgba(var(--tf-primary-rgb), 0.12) !important;
    color: var(--tf-primary) !important;
    -webkit-text-fill-color: var(--tf-primary) !important;
    font-weight: 700;
}

[data-bs-theme="light"] .tf-lang-dropdown .dropdown-menu {
    background: #FFFFFF !important;
    border-color: rgba(11, 31, 58, 0.14);
}

[data-bs-theme="light"] .tf-lang-dropdown .dropdown-item {
    color: #0F172A !important;
    -webkit-text-fill-color: #0F172A !important;
}

[data-bs-theme="light"] .tf-lang-dropdown .dropdown-item:hover,
[data-bs-theme="light"] .tf-lang-dropdown .dropdown-item:focus {
    background: #F1F5F9 !important;
    color: #0B1F3A !important;
    -webkit-text-fill-color: #0B1F3A !important;
}

/* Admin header dropdowns (language + user menu) */
.tf-admin-header .dropdown-menu {
    background: var(--tf-surface) !important;
    border: 1px solid var(--tf-border-strong);
    border-radius: var(--tf-radius-sm);
    padding: 0.35rem;
    box-shadow: var(--tf-shadow-lg);
}

.tf-admin-header .dropdown-item {
    color: var(--tf-text) !important;
    -webkit-text-fill-color: var(--tf-text) !important;
    border-radius: calc(var(--tf-radius-sm) - 2px);
}

.tf-admin-header .dropdown-item:hover,
.tf-admin-header .dropdown-item:focus {
    background: rgba(var(--tf-primary-rgb), 0.08) !important;
    color: var(--tf-primary) !important;
    -webkit-text-fill-color: var(--tf-primary) !important;
}

[data-bs-theme="light"] .tf-admin-header .dropdown-menu {
    background: #FFFFFF !important;
}

[data-bs-theme="light"] .tf-admin-header .dropdown-item {
    color: #0F172A !important;
    -webkit-text-fill-color: #0F172A !important;
}

[data-bs-theme="light"] .tf-admin-header .dropdown-item:hover,
[data-bs-theme="light"] .tf-admin-header .dropdown-item:focus {
    background: #F1F5F9 !important;
    color: #0B1F3A !important;
    -webkit-text-fill-color: #0B1F3A !important;
}

[data-bs-theme="light"] .tf-admin-header .dropdown-item.text-danger {
    color: #DC2626 !important;
    -webkit-text-fill-color: #DC2626 !important;
}

[data-bs-theme="light"] .tf-admin-header .dropdown-item.text-danger:hover {
    background: rgba(220, 38, 38, 0.08) !important;
    color: #B91C1C !important;
    -webkit-text-fill-color: #B91C1C !important;
}

.tf-load-more { display: none; }

/* ---- Company detail page ---- */
.tf-company-hero .page-subtitle { margin-bottom: 0.5rem; }

.tf-company-hero-logo {
    width: 5rem;
    height: 5rem;
    border-radius: var(--tf-radius);
    object-fit: cover;
    border: 3px solid rgba(var(--tf-primary-rgb), 0.15);
    box-shadow: var(--tf-shadow);
}

.tf-company-hero-logo.tf-company-logo--placeholder {
    font-size: 2rem;
    width: 5rem;
    height: 5rem;
}

.tf-hero-score-inline {
    padding: 1rem 1.5rem;
    border-radius: var(--tf-radius);
    background: rgba(var(--tf-primary-rgb), 0.06);
    border: 1px solid var(--tf-border);
}

.tf-hero-score-inline .tf-score-display { font-size: 2.5rem; }

.tf-website-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tf-primary);
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(var(--tf-primary-rgb), 0.08);
    border: 1px solid rgba(var(--tf-primary-rgb), 0.15);
    transition: all var(--tf-transition);
}

.tf-website-link:hover {
    background: var(--tf-primary);
    color: #fff !important;
    opacity: 1;
}

.tf-company-profile {
    border: 1px solid var(--tf-border-strong);
    box-shadow: var(--tf-shadow);
}

.tf-panel-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tf-primary);
}

.tf-panel-header i { opacity: 0.85; }

.tf-rating-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.tf-rating-row-label {
    width: 2.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--tf-text-muted);
    white-space: nowrap;
}

.tf-rating-row-label i { color: var(--tf-star); font-size: 0.7rem; }

.tf-rating-row-count {
    width: 2rem;
    text-align: right;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--tf-text-muted);
}

.tf-reviews-count-badge {
    background: rgba(var(--tf-primary-rgb), 0.1) !important;
    color: var(--tf-primary) !important;
    border: 1px solid rgba(var(--tf-primary-rgb), 0.2);
    font-weight: 700;
    padding: 0.5rem 1rem !important;
}

.tf-review-card {
    border: 1px solid var(--tf-border);
    transition: all var(--tf-transition);
}

.tf-review-card:hover {
    border-color: var(--tf-border-strong);
    box-shadow: var(--tf-shadow);
}

.tf-reviewer-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--tf-primary-rgb), 0.12), rgba(99, 102, 241, 0.08));
    border: 2px solid rgba(var(--tf-primary-rgb), 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tf-primary);
    flex-shrink: 0;
}

.tf-review-body {
    color: var(--tf-text);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.tf-review-date {
    background: var(--tf-surface-muted);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--tf-border);
}

.tf-review-footer {
    padding-top: 1rem;
    border-top: 1px dashed var(--tf-border);
}

.tf-pros-box,
.tf-cons-box {
    padding: 0.75rem 1rem;
    border-radius: var(--tf-radius-sm);
    font-size: 0.875rem;
    line-height: 1.5;
    border: 1px solid transparent;
}

.tf-pros-box {
    background: rgba(22, 163, 74, 0.08);
    border-color: rgba(22, 163, 74, 0.18);
    color: #15803D;
}

.tf-pros-box strong { display: block; margin-bottom: 0.2rem; }

.tf-cons-box {
    background: rgba(220, 38, 38, 0.06);
    border-color: rgba(220, 38, 38, 0.15);
    color: #B91C1C;
}

.tf-cons-box strong { display: block; margin-bottom: 0.2rem; }

[data-bs-theme="dark"] .tf-pros-box { color: #4ADE80; }
[data-bs-theme="dark"] .tf-cons-box { color: #F87171; }

.tf-report-box {
    background: var(--tf-surface-muted);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-sm);
}

/* ---- Admin dashboard ---- */
.tf-admin-hero { margin-bottom: 1.75rem; }

.tf-kpi--primary .tf-kpi-icon { background: rgba(var(--tf-primary-rgb), 0.12); color: var(--tf-primary); }
.tf-kpi--warning .tf-kpi-icon { background: rgba(245, 158, 11, 0.14); color: #B45309; }
.tf-kpi--info    .tf-kpi-icon { background: rgba(14, 165, 233, 0.12); color: #0284C7; }
.tf-kpi--danger  .tf-kpi-icon { background: rgba(220, 38, 38, 0.1); color: var(--tf-danger); }

.tf-kpi--alert {
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.08), var(--tf-shadow);
}

.tf-kpi--danger.tf-kpi--alert {
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.06), var(--tf-shadow);
}

.tf-chart-card {
    border: 1px solid var(--tf-border-strong);
    box-shadow: var(--tf-shadow);
}

.tf-chart-wrap {
    position: relative;
    max-width: 280px;
    margin: 0 auto;
}

.tf-chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tf-text-muted);
    padding: 0.25rem 0.5rem;
    background: var(--tf-surface-muted);
    border-radius: 999px;
    border: 1px solid var(--tf-border);
}

.tf-chart-legend-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.tf-table-company {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--tf-text);
}

@media (max-width: 767.98px) {
    .tf-pagination-desktop { display: none; }
    .tf-load-more { display: block; }
    .tf-page-hero { padding: 1.5rem; }
    .tf-sidebar {
        position: fixed;
        top: var(--tf-header-height);
        left: -100%;
        height: calc(100vh - var(--tf-header-height));
        z-index: 1040;
        transition: left var(--tf-transition);
        box-shadow: var(--tf-shadow-lg);
    }
    .tf-sidebar.show { left: 0; }
    .tf-admin-main { padding: 1rem; }
    .tf-admin-footer { padding: 1rem; }
}

/* ---- Admin portal (dark navy) ---- */
:root {
    --tf-admin-navy: #0B1F3A;
    --tf-admin-navy-mid: #122B4D;
    --tf-admin-navy-light: #1A3A5C;
    --tf-admin-accent: #2563EB;
    --tf-admin-accent-hover: #1D4ED8;
}

body.tf-admin-app {
    background: #EEF2F8;
}

/* Premium admin components */
.tf-settings-tabs .nav-link {
    font-weight: 700;
    color: var(--tf-text-muted);
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 0.85rem 1.1rem;
}

.tf-settings-tabs .nav-link.active {
    color: var(--tf-primary);
    background: transparent;
    border-bottom-color: var(--tf-accent);
}

.tf-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--tf-border);
}

.tf-file-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tf-file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.tf-file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: var(--tf-radius-sm);
    border: 1px dashed var(--tf-border-strong);
    background: var(--tf-surface-muted);
    color: var(--tf-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.tf-file-upload-name {
    font-size: 0.8125rem;
    color: var(--tf-text-muted);
}

.tf-action-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.tf-admin-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--tf-header-height);
    background: linear-gradient(135deg, var(--tf-admin-navy) 0%, var(--tf-admin-navy-mid) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(11, 31, 58, 0.35);
}

.tf-admin-header .navbar-brand {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.tf-admin-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: var(--tf-radius-sm);
}

.tf-admin-btn:hover,
.tf-admin-btn:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.tf-admin-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.tf-admin-sidebar {
    background: linear-gradient(180deg, var(--tf-admin-navy) 0%, var(--tf-admin-navy-mid) 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 4px 0 24px rgba(11, 31, 58, 0.2) !important;
    position: sticky;
    top: 0;
    height: 100vh;
    max-height: 100vh;
}

.tf-admin-sidebar .tf-sidebar-section {
    color: rgba(255, 255, 255, 0.45);
}

.tf-admin-sidebar .tf-sidebar-link {
    color: rgba(255, 255, 255, 0.72);
}

.tf-admin-sidebar .tf-sidebar-link i {
    color: rgba(255, 255, 255, 0.55);
}

.tf-admin-sidebar .tf-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

.tf-admin-sidebar .tf-sidebar-link:hover i {
    color: #fff;
}

.tf-admin-sidebar .tf-sidebar-link.active {
    background: linear-gradient(135deg, #0f766e 0%, #155e75 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.35);
}

.tf-admin-sidebar .tf-sidebar-link.active i {
    color: #fff;
}

.tf-admin-sidebar .tf-sidebar-link--main {
    color: rgba(255, 255, 255, 0.96);
    font-weight: 600;
}
.tf-admin-sidebar .tf-sidebar-link--main i {
    color: rgba(255, 255, 255, 0.88);
}
.tf-admin-sidebar .tf-sidebar-link--main:hover {
    color: #fff;
}
.tf-admin-sidebar .tf-sidebar-link--main:hover i {
    color: #fff;
}
.tf-admin-sidebar .tf-sidebar-link--main.active {
    color: #fff;
}

/* Collapsible groups — keep labels light on dark sidebar */
.tf-admin-sidebar .tf-sidebar-group .tf-sidebar-link,
.tf-admin-sidebar .tf-sidebar-inner .tf-sidebar-link {
    color: rgba(255, 255, 255, 0.9) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
}

.tf-admin-sidebar .tf-sidebar-group .tf-sidebar-link--main,
.tf-admin-sidebar .tf-sidebar-inner .tf-sidebar-link--main {
    color: rgba(255, 255, 255, 0.96) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.96) !important;
}

.tf-admin-sidebar .tf-sidebar-group .tf-sidebar-link i,
.tf-admin-sidebar .tf-sidebar-inner .tf-sidebar-link i {
    color: rgba(255, 255, 255, 0.72) !important;
    -webkit-text-fill-color: currentColor !important;
}

.tf-admin-sidebar .tf-sidebar-group .tf-sidebar-link:hover,
.tf-admin-sidebar .tf-sidebar-inner .tf-sidebar-link:hover,
.tf-admin-sidebar .tf-sidebar-group .tf-sidebar-link.active,
.tf-admin-sidebar .tf-sidebar-inner .tf-sidebar-link.active {
    -webkit-text-fill-color: #fff !important;
}

.tf-admin-sidebar .tf-sidebar-group .tf-sidebar-link:hover i,
.tf-admin-sidebar .tf-sidebar-inner .tf-sidebar-link:hover i,
.tf-admin-sidebar .tf-sidebar-group .tf-sidebar-link.active i,
.tf-admin-sidebar .tf-sidebar-inner .tf-sidebar-link.active i {
    -webkit-text-fill-color: currentColor !important;
}

.tf-sidebar-profile {
    margin-top: auto;
    padding: .85rem;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    gap: .65rem;
    background: rgba(0,0,0,.18);
    text-decoration: none;
    color: inherit;
    transition: background .15s ease;
}
.tf-sidebar-profile:hover {
    background: rgba(255,255,255,.08);
    color: inherit;
}
.tf-sidebar-profile.active {
    background: rgba(37, 99, 235, 0.22);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.35);
}
.tf-sidebar-profile-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .65rem;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .85rem;
    flex-shrink: 0;
    object-fit: cover;
}
.tf-sidebar-profile-avatar--img {
    background: transparent;
    object-fit: contain;
    border: none;
    box-shadow: none;
}
.tf-sidebar-profile-meta {
    min-width: 0;
    flex: 1;
    color: rgba(255,255,255,.92);
    font-size: .8125rem;
}
.tf-sidebar-profile-meta small { color: rgba(255,255,255,.5); font-size: .72rem; }
.tf-sidebar-profile-edit {
    width: 2rem;
    height: 2rem;
    border-radius: .55rem;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.75);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tf-admin-topbar-avatar--img {
    object-fit: contain;
    background: transparent;
    border: none;
    box-shadow: none;
}

.tf-profile-avatar-preview {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tf-profile-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.tf-profile-avatar-fallback {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 800;
}

.tf-admin-content {
    background: #EEF2F8;
}

/* ---- Admin auth (login portal) ---- */
body.tf-admin-auth {
    min-height: 100vh;
    background: var(--tf-admin-navy);
}

.tf-admin-auth-wrap {
    display: flex;
    min-height: 100vh;
}

.tf-admin-auth-brand {
    flex: 1;
    display: none;
    background: linear-gradient(160deg, var(--tf-admin-navy) 0%, var(--tf-admin-navy-light) 50%, #1E40AF 100%);
    position: relative;
    overflow: hidden;
}

.tf-admin-auth-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.35) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.2) 0%, transparent 45%);
}

.tf-admin-auth-brand-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 3rem;
    max-width: 28rem;
}

.tf-admin-auth-logo {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.tf-admin-auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tf-admin-auth-features li {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.5rem 0;
    font-weight: 500;
}

.tf-admin-auth-features li i {
    color: #60A5FA;
    margin-right: 0.6rem;
}

.tf-admin-auth-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #F0F4FA;
    position: relative;
}

.tf-admin-login-card {
    width: 100%;
    max-width: 26rem;
    background: #fff;
    border-radius: var(--tf-radius-lg);
    padding: 2.5rem;
    border: 1px solid #B8C8DC;
    box-shadow: 0 20px 50px rgba(11, 31, 58, 0.12), 0 8px 20px rgba(26, 115, 232, 0.08);
}

.tf-admin-login-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(37, 99, 235, 0.1);
    color: var(--tf-admin-accent);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.tf-auth-card {
    border: 1px solid #B8C8DC !important;
    box-shadow: var(--tf-shadow-lg) !important;
}

@media (min-width: 992px) {
    .tf-admin-auth-brand {
        display: block;
        max-width: 45%;
    }
}

.tf-admin-auth-toolbar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.tf-admin-header .btn-icon,
.tf-admin-header .tf-lang-dropdown > .btn,
.tf-admin-header .tf-header-tool-btn {
    --bs-btn-color: #fff;
    --bs-btn-bg: rgba(255, 255, 255, 0.12);
    --bs-btn-border-color: rgba(255, 255, 255, 0.32);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.24);
    --bs-btn-hover-border-color: rgba(255, 255, 255, 0.55);
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.32) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 8px rgba(0, 0, 0, 0.12);
}

.tf-admin-header .btn-icon:hover,
.tf-admin-header .tf-lang-dropdown > .btn:hover,
.tf-admin-header .tf-header-tool-btn:hover,
.tf-admin-header .tf-header-tool-btn:focus {
    background: rgba(255, 255, 255, 0.24) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.tf-admin-header .tf-lang-dropdown > .btn::after {
    display: none;
}

/* Public header toolbar buttons (light navbar) */
.tf-header .tf-header-tool-btn {
    --bs-btn-color: var(--tf-text-muted);
    --bs-btn-bg: var(--tf-surface);
    --bs-btn-border-color: var(--tf-border-strong);
    --bs-btn-hover-color: var(--tf-primary);
    --bs-btn-hover-bg: rgba(var(--tf-primary-rgb), 0.1);
    --bs-btn-hover-border-color: rgba(var(--tf-primary-rgb), 0.35);
    --bs-btn-active-color: var(--tf-primary);
    --bs-btn-active-bg: rgba(var(--tf-primary-rgb), 0.14);
    --bs-btn-active-border-color: rgba(var(--tf-primary-rgb), 0.4);
    border: 1.5px solid var(--tf-border-strong) !important;
    background: var(--tf-surface) !important;
    color: var(--tf-text-muted) !important;
    -webkit-text-fill-color: currentColor !important;
    box-shadow: none;
}

.tf-header .tf-header-tool-btn i,
.tf-header .tf-header-tool-btn [data-theme-icon] {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
}

.tf-header .tf-header-tool-btn:hover,
.tf-header .tf-header-tool-btn:focus,
.tf-header .tf-header-tool-btn.show,
.tf-header .tf-header-tool-btn:active {
    background: rgba(var(--tf-primary-rgb), 0.1) !important;
    border-color: rgba(var(--tf-primary-rgb), 0.35) !important;
    color: var(--tf-primary) !important;
    -webkit-text-fill-color: currentColor !important;
    box-shadow: 0 2px 8px rgba(var(--tf-primary-rgb), 0.1);
}

.tf-header .tf-header-tool-btn:hover i,
.tf-header .tf-header-tool-btn:focus i,
.tf-header .tf-header-tool-btn.show i,
.tf-header .tf-header-tool-btn:active i {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
}

.tf-header .tf-lang-dropdown > .btn::after,
.tf-header .tf-notify-dropdown > .btn::after {
    display: none;
}

[data-bs-theme="dark"] .tf-header .tf-header-tool-btn {
    --bs-btn-color: rgba(255, 255, 255, 0.82);
    --bs-btn-bg: rgba(255, 255, 255, 0.06);
    --bs-btn-border-color: rgba(255, 255, 255, 0.16);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.14);
    --bs-btn-hover-border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

[data-bs-theme="dark"] .tf-header .tf-header-tool-btn:hover,
[data-bs-theme="dark"] .tf-header .tf-header-tool-btn:focus,
[data-bs-theme="dark"] .tf-header .tf-header-tool-btn.show,
[data-bs-theme="dark"] .tf-header .tf-header-tool-btn:active {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    color: #fff !important;
}

[data-bs-theme="dark"] body.tf-admin-app {
    background: #0B1120;
}

[data-bs-theme="dark"] .tf-admin-content {
    background: #0B1120;
}

[data-bs-theme="dark"] .tf-admin-content .tf-card,
[data-bs-theme="dark"] .tf-admin-content .table {
    background: var(--tf-surface);
    color: var(--tf-text);
}

[data-bs-theme="dark"] .tf-admin-content .form-control,
[data-bs-theme="dark"] .tf-admin-content .form-select {
    background: var(--tf-surface-elevated);
    border-color: var(--tf-border-strong);
    color: var(--tf-text);
}

[data-bs-theme="dark"] .tf-admin-auth-form {
    background: #0B1120;
}

[data-bs-theme="dark"] .tf-admin-login-card {
    background: var(--tf-surface);
    border-color: var(--tf-border-strong);
    box-shadow: var(--tf-shadow-lg);
}

[data-bs-theme="dark"] .tf-filter-panel .card-body {
    background: linear-gradient(180deg, var(--tf-surface-muted) 0%, var(--tf-surface) 100%);
}

[data-bs-theme="dark"] .tf-filter-actions .btn-primary {
    background: linear-gradient(135deg, #1A3A5C 0%, #2563EB 100%);
    border-color: #2563EB;
}

/* Dark theme — outline & action buttons (admin + public) */
[data-bs-theme="dark"] .btn-outline-primary {
    --bs-btn-bg: transparent;
    background-color: rgba(var(--tf-primary-rgb), 0.1) !important;
    border: 2px solid rgba(var(--tf-primary-rgb), 0.55) !important;
    color: var(--tf-primary) !important;
    -webkit-text-fill-color: var(--tf-primary) !important;
}

[data-bs-theme="dark"] .btn-outline-primary:hover,
[data-bs-theme="dark"] .btn-outline-primary:focus,
[data-bs-theme="dark"] .btn-outline-primary:active,
[data-bs-theme="dark"] .btn-outline-primary.active {
    background-color: var(--tf-primary) !important;
    background-image: linear-gradient(135deg, var(--tf-primary-dark) 0%, var(--tf-primary) 100%) !important;
    border-color: var(--tf-primary) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

[data-bs-theme="dark"] .btn-outline-secondary {
    --bs-btn-bg: transparent;
    background-color: var(--tf-surface-elevated) !important;
    border: 2px solid var(--tf-border-strong) !important;
    color: var(--tf-text) !important;
    -webkit-text-fill-color: var(--tf-text) !important;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover,
[data-bs-theme="dark"] .btn-outline-secondary:focus,
[data-bs-theme="dark"] .btn-outline-secondary:active {
    background-color: rgba(var(--tf-primary-rgb), 0.12) !important;
    border-color: var(--tf-primary) !important;
    color: var(--tf-primary) !important;
    -webkit-text-fill-color: var(--tf-primary) !important;
}

[data-bs-theme="dark"] .btn-outline-danger {
    --bs-btn-bg: transparent;
    background-color: rgba(248, 113, 113, 0.1) !important;
    border: 2px solid #F87171 !important;
    color: #FCA5A5 !important;
    -webkit-text-fill-color: #FCA5A5 !important;
}

[data-bs-theme="dark"] .btn-outline-danger:hover,
[data-bs-theme="dark"] .btn-outline-danger:focus,
[data-bs-theme="dark"] .btn-outline-danger:active {
    background-color: #DC2626 !important;
    border-color: #DC2626 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

[data-bs-theme="dark"] .btn-outline-success {
    background-color: rgba(52, 211, 153, 0.1) !important;
    border: 2px solid #34D399 !important;
    color: #6EE7B7 !important;
    -webkit-text-fill-color: #6EE7B7 !important;
}

[data-bs-theme="dark"] .btn-outline-success:hover,
[data-bs-theme="dark"] .btn-outline-success:focus,
[data-bs-theme="dark"] .btn-outline-success:active,
[data-bs-theme="dark"] .btn-outline-success.active {
    background-color: #059669 !important;
    border-color: #059669 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus,
[data-bs-theme="dark"] .form-control:focus-visible,
[data-bs-theme="dark"] .form-select:focus-visible {
    background: var(--tf-surface-elevated);
    color: var(--tf-text);
    border: 2px solid #60A5FA !important;
    box-shadow: none !important;
}

[data-bs-theme="dark"] .tf-input-group:focus-within .input-group-text,
[data-bs-theme="dark"] .input-group:focus-within > .input-group-text {
    border: 2px solid #60A5FA !important;
    border-right: none !important;
}

[data-bs-theme="dark"] .tf-input-group:focus-within .form-control,
[data-bs-theme="dark"] .input-group:focus-within > .form-control {
    border: 2px solid #60A5FA !important;
    border-left: none !important;
    box-shadow: none !important;
}

[data-bs-theme="dark"] .form-label {
    color: var(--tf-text-muted);
}

[data-bs-theme="dark"] .tf-admin-content .form-select-sm,
[data-bs-theme="dark"] .tf-table .form-select {
    background-color: var(--tf-surface-elevated);
    border-color: var(--tf-border-strong);
    color: var(--tf-text);
}

.tf-live-search-status.is-loading {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
}

.tf-live-search-status.is-loading::before {
    content: "";
    width: 0.85rem;
    height: 0.85rem;
    border: 2px solid var(--tf-border-strong);
    border-top-color: var(--tf-accent);
    border-radius: 50%;
    animation: tf-spin 0.7s linear infinite;
}

@keyframes tf-spin {
    to { transform: rotate(360deg); }
}

#companyResults.is-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Analytics heatmap & calendar */
.tf-analytics-list .list-group-item {
    background: transparent;
    border-color: var(--tf-border);
}

.tf-heatmap-stage {
    position: relative;
    width: 100%;
    min-height: 420px;
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    overflow: hidden;
    background: var(--tf-surface-2);
}

.tf-heatmap-iframe {
    width: 100%;
    height: 520px;
    border: 0;
    pointer-events: none;
    opacity: 0.92;
}

.tf-heatmap-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tf-heatmap-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.tf-heatmap-cell {
    aspect-ratio: 1;
    border-radius: 3px;
    background: rgba(22, 163, 74, calc(0.08 + var(--tf-heat, 0) * 0.92));
    border: 1px solid var(--tf-border);
}

/* ---- Notification center ---- */
.tf-notify-bell {
    position: relative;
    overflow: visible;
}
.tf-notify-badge {
    position: absolute;
    top: 0.12rem;
    right: 0.1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    border: 2px solid var(--tf-surface);
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.35);
    pointer-events: none;
}
[data-bs-theme="dark"] .tf-notify-badge {
    border-color: var(--tf-surface);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.tf-notify-menu { width: min(22rem, 92vw); padding: 0; overflow: hidden; }
.tf-notify-menu-head { background: var(--tf-surface-muted); border-bottom: 1px solid var(--tf-border); }
.tf-notify-list { max-height: 18rem; overflow-y: auto; }
.tf-notify-dropdown-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--tf-text) !important;
    border-bottom: 1px solid var(--tf-border);
}
.tf-notify-dropdown-item:hover { background: rgba(var(--tf-primary-rgb), 0.06); }
.tf-notify-dropdown-item.tf-notify-item--unread { background: rgba(var(--tf-primary-rgb), 0.04); }
.tf-notify-dropdown-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tf-notify-item--primary .tf-notify-dropdown-icon,
.tf-notify-item--primary .tf-notify-item-icon { background: rgba(37, 99, 235, 0.12); color: #2563EB; }
.tf-notify-item--success .tf-notify-dropdown-icon,
.tf-notify-item--success .tf-notify-item-icon { background: rgba(0, 182, 122, 0.12); color: #059669; }
.tf-notify-item--danger .tf-notify-dropdown-icon,
.tf-notify-item--danger .tf-notify-item-icon { background: rgba(220, 38, 38, 0.12); color: #DC2626; }
.tf-notify-item--warning .tf-notify-dropdown-icon,
.tf-notify-item--warning .tf-notify-item-icon { background: rgba(245, 158, 11, 0.15); color: #D97706; }
.tf-notify-item--info .tf-notify-dropdown-icon,
.tf-notify-item--info .tf-notify-item-icon { background: rgba(14, 165, 233, 0.12); color: #0284C7; }
.tf-notify-item--bank .tf-notify-dropdown-icon,
.tf-notify-item--bank .tf-notify-item-icon { background: rgba(11, 31, 58, 0.12); color: #0B1F3A; }
.tf-notify-item--dispute .tf-notify-dropdown-icon,
.tf-notify-item--dispute .tf-notify-item-icon { background: rgba(124, 58, 237, 0.12); color: #7C3AED; }
[data-bs-theme="dark"] .tf-notify-item--bank .tf-notify-dropdown-icon,
[data-bs-theme="dark"] .tf-notify-item--bank .tf-notify-item-icon { background: rgba(96, 165, 250, 0.18); color: #93C5FD; }

.tf-notify-event-badge {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0.4em 0.7em;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
}
.tf-notify-event-badge--primary {
    background: rgba(37, 99, 235, 0.12);
    color: #1D4ED8;
    border-color: rgba(37, 99, 235, 0.18);
}
.tf-notify-event-badge--success {
    background: rgba(5, 150, 105, 0.12);
    color: #047857;
    border-color: rgba(5, 150, 105, 0.2);
}
.tf-notify-event-badge--danger {
    background: rgba(220, 38, 38, 0.12);
    color: #B91C1C;
    border-color: rgba(220, 38, 38, 0.2);
}
.tf-notify-event-badge--warning {
    background: rgba(217, 119, 6, 0.14);
    color: #B45309;
    border-color: rgba(217, 119, 6, 0.22);
}
.tf-notify-event-badge--info {
    background: rgba(14, 165, 233, 0.12);
    color: #0369A1;
    border-color: rgba(14, 165, 233, 0.2);
}
.tf-notify-event-badge--bank {
    background: rgba(11, 31, 58, 0.1);
    color: #0B1F3A;
    border-color: rgba(11, 31, 58, 0.18);
}
.tf-notify-event-badge--dispute {
    background: rgba(124, 58, 237, 0.12);
    color: #6D28D9;
    border-color: rgba(124, 58, 237, 0.2);
}
[data-bs-theme="dark"] .tf-notify-event-badge--bank {
    background: rgba(96, 165, 250, 0.16);
    color: #BFDBFE;
    border-color: rgba(96, 165, 250, 0.28);
}

.tf-admin-notify-table {
    table-layout: fixed;
    width: 100%;
}
.tf-admin-notify-table th:nth-child(1),
.tf-admin-notify-table td:nth-child(1) { width: 18%; }
.tf-admin-notify-table th:nth-child(2),
.tf-admin-notify-table td:nth-child(2) { width: 18%; }
.tf-admin-notify-table th:nth-child(3),
.tf-admin-notify-table td:nth-child(3) { width: 38%; }
.tf-admin-notify-table th:nth-child(4),
.tf-admin-notify-table td:nth-child(4) { width: 12%; }
.tf-admin-notify-table th:nth-child(5),
.tf-admin-notify-table td:nth-child(5) { width: 14%; }
.tf-admin-notify-table td {
    vertical-align: middle;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.tf-admin-notify-table .tf-notify-event-badge {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.25;
}
.tf-notify-tr--unread > td {
    font-weight: 500;
}
.tf-notify-tr > td:first-child {
    border-left: 3px solid transparent;
}
.tf-notify-tr--bank > td:first-child { border-left-color: #0B1F3A; }
.tf-notify-tr--warning > td:first-child { border-left-color: #D97706; }
.tf-notify-tr--success > td:first-child { border-left-color: #059669; }
.tf-notify-tr--danger > td:first-child { border-left-color: #DC2626; }
.tf-notify-tr--info > td:first-child { border-left-color: #0284C7; }
.tf-notify-tr--primary > td:first-child { border-left-color: #2563EB; }
.tf-notify-tr--dispute > td:first-child { border-left-color: #7C3AED; }
[data-bs-theme="dark"] .tf-notify-tr--bank > td:first-child { border-left-color: #60A5FA; }

.tf-notify-center-list .tf-notify-item { border-left: 4px solid transparent; }
.tf-notify-center-list .tf-notify-item--unread { border-left-color: var(--tf-primary); }
.tf-notify-center-list .tf-notify-item--bank { border-left-color: #0B1F3A; }
.tf-notify-center-list .tf-notify-item--dispute { border-left-color: #7C3AED; }
.tf-notify-center-list .tf-notify-item--warning { border-left-color: #D97706; }
.tf-notify-center-list .tf-notify-item--success { border-left-color: #059669; }
.tf-notify-center-list .tf-notify-item--danger { border-left-color: #DC2626; }
.tf-notify-center-list .tf-notify-item--info { border-left-color: #0284C7; }
.tf-notify-item-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--tf-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tf-notify-dropdown > .dropdown-toggle::after { display: none; }

/* Premium / Billing */
.tf-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.tf-pricing-card { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.tf-pricing-card .card-body { flex: 1 1 auto; }
.tf-pricing-actions { width: 100%; }
.tf-pricing-card--featured {
    border: 2px solid var(--tf-primary);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
}
.tf-pricing-card--current {
    border: 2px solid var(--bs-success, #198754);
    box-shadow: 0 8px 28px rgba(25, 135, 84, 0.12);
}
.tf-pricing-current-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    left: auto;
    background: var(--bs-success, #198754);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    z-index: 2;
}
.tf-pricing-x {
    color: var(--tf-primary) !important;
}
.tf-badge-invoice-open {
    background: var(--tf-primary);
    color: #fff;
    font-weight: 600;
}

.tf-provider-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 0.5rem;
    vertical-align: middle;
}
.tf-provider-badge--bank {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}
.tf-provider-badge--stripe {
    background: rgba(99, 91, 255, 0.12);
    color: #4f46e5;
}
.tf-provider-badge--paypal {
    background: rgba(0, 112, 186, 0.12);
    color: #0070ba;
}
.tf-provider-badge--mollie {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}
.tf-provider-badge--other {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
}
[data-bs-theme="dark"] .tf-provider-badge--bank {
    background: rgba(248, 250, 252, 0.12);
    color: #e2e8f0;
}

.tf-admin-notify-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.tf-admin-notify-item {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--tf-border);
}
.tf-admin-notify-item:first-child {
    padding-top: 0.25rem;
}
.tf-admin-notify-item:last-child {
    border-bottom: 0;
    padding-bottom: 0.15rem;
}
.tf-admin-notify-item-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}
.tf-admin-notify-icon {
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    background: rgba(var(--tf-primary-rgb), 0.08);
    font-size: 0.9rem;
}
.tf-admin-notify-body {
    flex: 1 1 auto;
    min-width: 0;
}
.tf-admin-notify-item--unread .tf-admin-notify-body > div > span:first-child {
    font-weight: 600;
}
.tf-pricing-subscription .badge { font-weight: 600; }
.tf-pricing-badge {
    position: absolute;
    top: 1rem;
    right: -2.5rem;
    transform: rotate(45deg);
    background: var(--tf-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.35rem 2.5rem;
}
.tf-pricing-features li { font-size: 0.92rem; }
.tf-pricing-table th, .tf-pricing-table td { vertical-align: middle; }

.tf-billing-plan-card {
    background: linear-gradient(180deg, rgba(var(--tf-primary-rgb), 0.03) 0%, transparent 100%);
}
.tf-billing-plan-pricing {
    padding-bottom: 0.15rem;
    border-bottom: 1px solid var(--tf-border);
}
.tf-billing-plan-price-main {
    line-height: 1.25;
}

.tf-checkout-confirm {
    width: 100%;
}
.tf-checkout-confirm-actions {
    width: 100%;
}
.tf-checkout-pay-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.tf-checkout-pay-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border: 2px solid var(--tf-border);
    border-radius: calc(var(--tf-radius) + 0.1rem);
    background: var(--tf-surface);
    cursor: pointer;
    transition: border-color var(--tf-transition), background var(--tf-transition), box-shadow var(--tf-transition);
}
.tf-checkout-pay-option:hover {
    border-color: rgba(var(--tf-primary-rgb), 0.35);
    background: rgba(var(--tf-primary-rgb), 0.03);
}
.tf-checkout-pay-option.is-selected,
.tf-checkout-pay-option:has(.tf-checkout-pay-option-input:checked) {
    border-color: var(--tf-primary);
    background: rgba(var(--tf-primary-rgb), 0.07);
    box-shadow: 0 0 0 3px rgba(var(--tf-primary-rgb), 0.14);
}
.tf-checkout-pay-option-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.tf-checkout-pay-option-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(var(--tf-primary-rgb), 0.08);
    color: var(--tf-primary);
    font-size: 1.15rem;
}
.tf-checkout-pay-option.is-selected .tf-checkout-pay-option-icon,
.tf-checkout-pay-option:has(.tf-checkout-pay-option-input:checked) .tf-checkout-pay-option-icon {
    background: var(--tf-primary);
    color: #fff;
}
.tf-checkout-pay-option-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1 1 auto;
}
.tf-checkout-pay-option-title {
    font-weight: 700;
    color: var(--tf-text);
    line-height: 1.2;
}
.tf-checkout-pay-option-desc {
    font-size: 0.78rem;
    color: var(--tf-text-muted);
    line-height: 1.35;
}
.tf-checkout-pay-option-check {
    flex-shrink: 0;
    font-size: 1.15rem;
    color: var(--tf-border-strong);
    opacity: 0.35;
    transition: color var(--tf-transition), opacity var(--tf-transition);
}
.tf-checkout-pay-option.is-selected .tf-checkout-pay-option-check,
.tf-checkout-pay-option:has(.tf-checkout-pay-option-input:checked) .tf-checkout-pay-option-check {
    color: var(--tf-primary);
    opacity: 1;
}

@media (max-width: 991.98px) {
    .tf-checkout-confirm-actions .btn-primary {
        width: 100%;
    }
}

.tf-checkout-legal-consents {
    padding: 1rem 1.15rem;
    border: 1px solid var(--tf-border, rgba(0, 0, 0, 0.1));
    border-radius: var(--tf-radius-sm, 0.5rem);
    background: var(--tf-surface-2, rgba(0, 0, 0, 0.02));
}

.tf-checkout-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
    border-radius: var(--tf-radius-sm, 0.5rem);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tf-checkout-consent:last-child {
    margin-bottom: 0;
}

.tf-checkout-consent:hover {
    background: rgba(0, 0, 0, 0.03);
}

.tf-checkout-consent.is-accepted {
    border-color: rgba(5, 150, 105, 0.35);
    background: rgba(5, 150, 105, 0.08);
}

.tf-checkout-consent-switch-wrap {
    flex-shrink: 0;
    cursor: pointer;
}

.tf-checkout-consent-switch {
    padding-left: 2.75em;
    min-height: 1.5rem;
}

.tf-checkout-consent-switch .form-check-input {
    width: 2.5em;
    height: 1.35em;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tf-checkout-consent-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.25);
    border-color: #059669;
}

.tf-checkout-consent-switch .form-check-input:checked,
.tf-checkout-consent.is-accepted .tf-checkout-consent-switch .form-check-input:checked {
    background-color: #059669;
    border-color: #059669;
}

.tf-checkout-consent-label {
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--tf-text, inherit);
}

.tf-checkout-consent-label a {
    color: var(--tf-primary, #2563eb);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tf-checkout-consent-label a:hover {
    color: #059669;
}

.tf-badge--premium {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: #fff;
}
.tf-billing-stat {
    background: var(--tf-surface-2, rgba(0,0,0,.03));
    border-radius: var(--tf-radius-sm);
    padding: 0.85rem 1rem;
}

.tf-btn-bank {
    color: var(--tf-primary);
    border: 1px solid var(--tf-primary);
    background: rgba(var(--tf-primary-rgb), 0.08);
}
.tf-btn-bank:hover,
.tf-btn-bank:focus {
    color: #fff;
    background: var(--tf-primary);
    border-color: var(--tf-primary);
}

.tf-alert-bank {
    color: var(--tf-primary);
    background: rgba(var(--tf-primary-rgb), 0.08);
    border: 1px solid rgba(var(--tf-primary-rgb), 0.22);
}
.tf-alert-bank .fa-building-columns {
    color: var(--tf-primary);
}

.tf-account-hero {
    border-radius: var(--tf-radius-lg, 1rem);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--tf-primary-rgb), 0.11), rgba(22, 101, 52, 0.06) 52%, rgba(var(--tf-primary-rgb), 0.03));
    border: 1px solid rgba(22, 101, 52, 0.14);
    box-shadow: 0 18px 48px rgba(var(--tf-primary-rgb), 0.08);
}
.tf-account-hero-inner {
    padding: 1.75rem 1.5rem;
    position: relative;
    z-index: 1;
}
.tf-account-hero-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}
.tf-account-hero-identity {
    flex: 0 0 auto;
}
.tf-account-hero-meta {
    min-width: 0;
}
@media (min-width: 768px) {
    .tf-account-hero-main {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }
    .tf-account-hero-identity {
        flex: 1 1 0;
        max-width: none;
    }
    .tf-trust-bridge {
        flex: 1.15 1 0;
        min-width: 6rem;
        max-width: 22rem;
        padding: 0 0.75rem;
    }
    .tf-account-hero-meta {
        flex: 1 1 0;
        max-width: none;
        margin-left: 0;
    }
}
.tf-account-hero-copy {
    flex: 1 1 auto;
    min-width: 0;
}
.tf-account-hero-title {
    font-size: clamp(1.75rem, 2.8vw, 2.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    word-break: break-word;
}
.tf-account-hero-email {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--tf-text);
    word-break: break-word;
}
.tf-account-eyebrow {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--tf-primary);
}
.tf-account-avatar {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--tf-primary), var(--tf-accent, #2563eb));
    box-shadow: 0 10px 24px rgba(var(--tf-primary-rgb), 0.25);
}
.tf-account-avatar--img {
    object-fit: contain;
    border: none;
    box-shadow: none;
    background: transparent;
}
.tf-account-stat {
    height: 100%;
    padding: 0.95rem 1.1rem;
    border-radius: var(--tf-radius-lg, 1rem);
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.tf-account-stat:hover {
    border-color: rgba(var(--tf-primary-rgb), 0.18);
    box-shadow: 0 14px 32px rgba(var(--tf-primary-rgb), 0.08);
}
.tf-account-stat--plan:has(.tf-account-stat-badge) {
    padding-top: 2.35rem;
}
.tf-account-stat-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    max-width: calc(100% - 1.7rem);
}
.tf-account-stat-badge .tf-badge-sub {
    font-size: 0.68rem;
    white-space: nowrap;
}
.tf-account-stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--tf-text-muted);
}
.tf-account-tile {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 5.75rem;
    height: 100%;
    padding: 1.1rem 1.15rem;
    border-radius: var(--tf-radius-lg, 1rem);
    border: 1px solid var(--tf-border);
    background: var(--tf-surface);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.tf-account-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--tf-primary-rgb), 0.28);
    box-shadow: 0 14px 32px rgba(var(--tf-primary-rgb), 0.1);
    color: inherit;
}
.tf-account-tile-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--tf-primary);
    background: rgba(var(--tf-primary-rgb), 0.1);
}
.tf-account-tile-body {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.tf-account-tile-title {
    font-weight: 700;
}
.tf-account-tile-desc {
    font-size: 0.82rem;
    color: var(--tf-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tf-account-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
    gap: 1rem;
}
.tf-account-tile-arrow {
    color: var(--tf-text-muted);
    opacity: 0.5;
}
.tf-account-page .tf-card {
    border-radius: var(--tf-radius-lg, 1rem);
}
.tf-account-hero {
    position: relative;
}
.tf-account-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.tf-account-hero-deco {
    position: absolute;
    color: rgba(var(--tf-primary-rgb), 0.08);
    font-size: 4rem;
}
.tf-account-hero-deco--1 { top: -0.5rem; right: 1.5rem; }
.tf-account-trial-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.15rem 1.35rem;
    border-radius: var(--tf-radius-lg, 1rem);
    background: linear-gradient(135deg, rgba(var(--tf-primary-rgb), 0.1), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(var(--tf-primary-rgb), 0.16);
}
.tf-account-trial-banner-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--tf-primary), #10b981);
    flex-shrink: 0;
}
.tf-account-trial-banner--expired {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(220, 38, 38, 0.06));
    border-color: rgba(245, 158, 11, 0.35);
}
.tf-account-trial-banner--expired .tf-account-trial-banner-icon {
    background: linear-gradient(135deg, #d97706, #dc2626);
}
.tf-trial-notice-banner__content {
    flex: 1 1 14rem;
    min-width: 0;
}
.tf-trial-notice-banner__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}
.tf-trial-notice-dismiss {
    margin: 0;
}
.tf-trial-notice-dismiss-btn {
    width: 2.125rem;
    height: 2.125rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.72);
    color: rgba(0, 0, 0, 0.62);
    line-height: 1;
}
.tf-trial-notice-dismiss-btn:hover,
.tf-trial-notice-dismiss-btn:focus {
    background: #fff;
    color: rgba(0, 0, 0, 0.82);
    border-color: rgba(0, 0, 0, 0.18);
}
[data-bs-theme="dark"] .tf-trial-notice-dismiss-btn {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
}
[data-bs-theme="dark"] .tf-trial-notice-dismiss-btn:hover,
[data-bs-theme="dark"] .tf-trial-notice-dismiss-btn:focus {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}
@media (max-width: 575.98px) {
    .tf-trial-notice-banner__actions {
        width: 100%;
        margin-left: 0;
        padding-left: 3.75rem;
    }
}
.tf-account-stat-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tf-primary);
    background: rgba(var(--tf-primary-rgb), 0.1);
    font-size: 1.05rem;
}
.tf-account-stat-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.tf-account-stat-visual {
    flex-shrink: 0;
}
.tf-account-stat-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}
.tf-account-stat-count {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    color: var(--tf-primary);
    background: rgba(var(--tf-primary-rgb), 0.1);
}
.tf-account-stat-value {
    font-size: 1.05rem;
    line-height: 1.25;
}
.tf-account-stat-value--sub {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--tf-text);
}
.tf-badge-sub {
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
}
.tf-badge-sub-active {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
}
.tf-badge-sub-trial {
    background: linear-gradient(135deg, var(--tf-primary), #6366f1);
    color: #fff;
}
.tf-badge-sub-pending {
    background: var(--tf-primary);
    color: #fff;
}
.tf-badge-sub-warning {
    background: linear-gradient(135deg, #b45309, #d97706);
    color: #fff;
}
.tf-badge-sub-canceled {
    background: linear-gradient(135deg, #c2410c, #ea580c);
    color: #fff;
}
.tf-badge-sub-muted {
    background: rgba(100, 116, 139, 0.16);
    color: #475569;
}
[data-bs-theme="dark"] .tf-badge-sub-muted {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
}

/* ---- Cookie consent (EU) ---- */
.tf-cookie-root { position: relative; z-index: 1080; }
.tf-cookie-backdrop {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}
.tf-cookie-bar {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 980px; margin: 0 auto;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.75rem 1.5rem 1.25rem; border-radius: var(--tf-radius-lg);
    background: var(--tf-surface); box-shadow: var(--tf-shadow-lg); border: 1px solid var(--tf-border);
}
.tf-cookie-badge {
    position: absolute; top: -0.65rem; left: 1.25rem;
    background: var(--tf-primary); color: #fff; font-size: 0.7rem; font-weight: 700;
    padding: 0.2rem 0.65rem; border-radius: 999px; letter-spacing: 0.02em;
}
.tf-cookie-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.35rem; }
.tf-cookie-desc { color: var(--tf-text-muted); font-size: 0.92rem; }
.tf-cookie-links a { color: var(--tf-primary); text-decoration: none; font-weight: 600; }
.tf-cookie-bar-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
.tf-cookie-modal {
    position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.tf-cookie-modal-card {
    width: min(720px, 100%); max-height: 90vh; overflow: auto;
    background: var(--tf-surface); border-radius: var(--tf-radius-lg);
    box-shadow: var(--tf-shadow-lg); border: 1px solid var(--tf-border); padding: 1.5rem;
    position: relative;
}
.tf-cookie-close {
    position: absolute; top: 0.75rem; right: 0.75rem; border: 0; background: transparent;
    font-size: 1.5rem; line-height: 1; color: var(--tf-text-muted);
}
.tf-cookie-category {
    border: 1px solid var(--tf-border); border-radius: var(--tf-radius); padding: 1rem; margin-bottom: 0.75rem;
}
.tf-cookie-category-title { font-weight: 700; margin-bottom: 0.25rem; }
.tf-cookie-cookie-list { padding-left: 1rem; color: var(--tf-text-muted); }
.tf-cookie-switch { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.tf-cookie-switch input { position: absolute; opacity: 0; }
.tf-cookie-switch-ui {
    width: 2.5rem; height: 1.35rem; border-radius: 999px; background: #CBD5E1; position: relative; transition: var(--tf-transition);
}
.tf-cookie-switch-ui::after {
    content: ''; position: absolute; top: 0.15rem; left: 0.15rem; width: 1.05rem; height: 1.05rem;
    border-radius: 50%; background: #fff; transition: var(--tf-transition);
}
.tf-cookie-switch input:checked + .tf-cookie-switch-ui { background: var(--tf-accent); }
.tf-cookie-switch input:checked + .tf-cookie-switch-ui::after { transform: translateX(1.1rem); }
.tf-cookie-toggle-label { font-size: 0.78rem; font-weight: 700; color: var(--tf-text-muted); white-space: nowrap; }
.tf-cookie-modal-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 1rem; }

@media (max-width: 767px) {
    .tf-cookie-bar { flex-direction: column; align-items: stretch; }
    .tf-cookie-bar-actions { justify-content: stretch; }
    .tf-cookie-bar-actions .btn { flex: 1 1 auto; }
}

/* ---- Accessibility widget ---- */
.tf-a11y-widget { position: fixed; right: 1rem; bottom: 1rem; z-index: 1070; }
.tf-a11y-trigger {
    display: inline-flex; align-items: center; gap: 0.45rem;
    border: 0; border-radius: 999px; padding: 0.65rem 0.9rem;
    color: #fff; font-weight: 700; box-shadow: var(--tf-shadow);
}
.tf-a11y-widget--green .tf-a11y-trigger { background: #059669; }
.tf-a11y-widget--yellow .tf-a11y-trigger { background: #D97706; }
.tf-a11y-widget--red .tf-a11y-trigger { background: #DC2626; }
.tf-a11y-panel {
    position: absolute; right: 0; bottom: calc(100% + 0.75rem); width: min(320px, calc(100vw - 2rem));
    background: #0B1F3A; color: #F8FAFC; border-radius: var(--tf-radius); padding: 1rem;
    box-shadow: var(--tf-shadow-lg);
}
.tf-a11y-close { position: absolute; top: 0.5rem; right: 0.65rem; border: 0; background: transparent; color: #94A3B8; font-size: 1.25rem; }
.tf-a11y-score-ring {
    width: 96px; height: 96px; border-radius: 50%; display: grid; place-content: center; text-align: center;
    margin: 0 auto 1rem; border: 4px solid currentColor;
}
.tf-a11y-score-ring--green { color: #34D399; }
.tf-a11y-score-ring--yellow { color: #FBBF24; }
.tf-a11y-score-ring--red { color: #F87171; }
.tf-a11y-score-ring span { font-size: 1.35rem; font-weight: 800; line-height: 1; }
.tf-a11y-score-ring small { font-size: 0.65rem; opacity: 0.85; }
.tf-a11y-meta div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.tf-a11y-meta dt { opacity: 0.75; margin: 0; }
.tf-a11y-meta dd { margin: 0; font-weight: 700; }
.tf-a11y-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.tf-a11y-tools button {
    border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); color: #fff;
    border-radius: var(--tf-radius-sm); padding: 0.5rem; font-size: 0.78rem;
}
body.tf-a11y-high-contrast { filter: contrast(1.2) saturate(1.1); }
body.tf-a11y-highlight-links a { outline: 2px solid #F59E0B; outline-offset: 2px; }

/* ---- Trustpilot-style company page ---- */
.tf-company-trust-hero { background: var(--tf-surface); border: 1px solid var(--tf-border); border-radius: var(--tf-radius-lg); padding: 1.5rem; box-shadow: var(--tf-shadow-sm); }
.tf-company-trust-logo { width: 4.5rem; height: 4.5rem; border-radius: var(--tf-radius); object-fit: contain; background: #fff; padding: 0.25rem; border: 1px solid var(--tf-border); }
.tf-company-trust-name { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.tf-verified-pill { background: rgba(0, 182, 122, 0.12); color: var(--tf-success); border-radius: 999px; padding: 0.25rem 0.65rem; font-size: 0.78rem; font-weight: 700; }
.tf-highlight-card { background: var(--tf-surface-muted); border: 1px solid var(--tf-border); border-radius: var(--tf-radius); padding: 1rem; height: 100%; }
.tf-highlight-card i { color: var(--tf-primary); margin-bottom: 0.35rem; }
.tf-highlight-card strong { display: block; font-size: 1.35rem; }
.tf-highlight-card span { color: var(--tf-text-muted); font-size: 0.85rem; }
.tf-trustscore-panel { border: 1px solid var(--tf-border); border-radius: var(--tf-radius-lg); overflow: hidden; background: var(--tf-surface); box-shadow: var(--tf-shadow-sm); }
.tf-trustscore-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; border-bottom: 1px solid var(--tf-border); font-weight: 700; }
.tf-trustscore-panel-body { padding: 1.25rem; text-align: center; }
.tf-trustscore-value, .tf-trustscore-box .tf-trustscore-value { font-size: 3rem; font-weight: 800; color: var(--tf-text-muted); line-height: 1; }
.tf-trustscore-value[data-rating-tier="1"], .tf-trustscore-label[data-rating-tier="1"] { color: #DC2626 !important; -webkit-text-fill-color: #DC2626 !important; }
.tf-trustscore-value[data-rating-tier="2"], .tf-trustscore-label[data-rating-tier="2"] { color: #F97316 !important; -webkit-text-fill-color: #F97316 !important; }
.tf-trustscore-value[data-rating-tier="3"], .tf-trustscore-label[data-rating-tier="3"] { color: #F59E0B !important; -webkit-text-fill-color: #F59E0B !important; }
.tf-trustscore-value[data-rating-tier="4"], .tf-trustscore-label[data-rating-tier="4"] { color: #84CC16 !important; -webkit-text-fill-color: #84CC16 !important; }
.tf-trustscore-value[data-rating-tier="5"], .tf-trustscore-label[data-rating-tier="5"] { color: #16A34A !important; -webkit-text-fill-color: #16A34A !important; }
.tf-trustscore-label { font-weight: 700; margin: 0.35rem 0 0.75rem; }
.tf-trustscore-bar-row { display: grid; grid-template-columns: 2rem 1fr 2.5rem; gap: 0.5rem; align-items: center; font-size: 0.82rem; margin-bottom: 0.35rem; }
.tf-trustscore-bar { height: 0.55rem; background: #E2E8F0; border-radius: 999px; overflow: hidden; }
.tf-trustscore-bar span { display: block; height: 100%; border-radius: inherit; }
.tf-trustscore-bar-row[data-stars="1"] .tf-trustscore-bar span { background: var(--tf-rating-1); }
.tf-trustscore-bar-row[data-stars="2"] .tf-trustscore-bar span { background: var(--tf-rating-2); }
.tf-trustscore-bar-row[data-stars="3"] .tf-trustscore-bar span { background: var(--tf-rating-3); }
.tf-trustscore-bar-row[data-stars="4"] .tf-trustscore-bar span { background: var(--tf-rating-4); }
.tf-trustscore-bar-row[data-stars="5"] .tf-trustscore-bar span { background: var(--tf-rating-5); }
.tf-review-card--trustpilot .tf-reviewer-avatar { width: 2.5rem; height: 2.5rem; font-size: 0.9rem; }
.tf-transparency-panel { position: sticky; top: 5.5rem; }
.tf-a11y-report-meta div { display: flex; justify-content: space-between; padding: 0.35rem 0; border-bottom: 1px solid var(--tf-border); }

/* ---- Premium user profile ---- */
.tf-profile-page .tf-profile-tabs-card { overflow: visible; }
.tf-profile-tabs {
    border-bottom: 1px solid var(--tf-border);
    padding: 0 1rem;
    gap: .25rem;
    flex-wrap: nowrap;
    overflow-x: auto;
}
.tf-profile-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--tf-text-muted);
    font-weight: 600;
    font-size: .875rem;
    padding: .85rem 1rem;
    white-space: nowrap;
    transition: color .2s ease, border-color .2s ease;
}
.tf-profile-tabs .nav-link:hover { color: var(--tf-primary); }
.tf-profile-tabs .nav-link.active {
    color: var(--tf-primary);
    background: transparent;
    border-bottom-color: var(--tf-primary);
}
.tf-profile-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(22, 101, 52, 0.14);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    transition: box-shadow .25s ease;
}
.tf-profile-card-accent {
    height: 3px;
    background: linear-gradient(90deg, rgba(22, 101, 52, 0.15), #166534 50%, rgba(var(--tf-primary-rgb), 0.35));
}
.tf-profile-card > .card-body {
    background: linear-gradient(180deg, rgba(22, 101, 52, 0.05) 0%, transparent 42%);
}
.tf-profile-trust-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0 auto;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #166534;
    background: rgba(22, 101, 52, 0.1);
    border: 1px solid rgba(22, 101, 52, 0.16);
}
.tf-profile-identity {
    max-width: 18rem;
}
.tf-trust-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(22, 101, 52, 0.06));
    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.85),
        0 0 0 1px rgba(22, 101, 52, 0.12);
}
.tf-trust-avatar--lg {
    padding: 0.38rem;
    border-radius: 1.1rem;
}
.tf-trust-avatar--profile {
    padding: 0.42rem;
    border-radius: 1.35rem;
}
.tf-trust-avatar--sm {
    padding: 0.14rem;
    border-radius: 999px;
    line-height: 0;
}
.tf-trust-avatar--md {
    padding: 0.18rem;
    border-radius: 999px;
    line-height: 0;
}
.tf-trust-avatar__badge {
    position: absolute;
    right: -0.1rem;
    bottom: -0.1rem;
    z-index: 2;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.52rem;
    color: #fff;
    background: linear-gradient(135deg, #15803d, #166534);
    border: 2px solid var(--tf-surface, #fff);
    box-shadow: 0 2px 8px rgba(22, 101, 52, 0.35);
}
.tf-trust-avatar--lg .tf-trust-avatar__badge,
.tf-trust-avatar--profile .tf-trust-avatar__badge {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.62rem;
    right: 0;
    bottom: 0;
}
.tf-trust-bridge {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    min-width: 0;
}
.tf-trust-bridge-line {
    flex: 1 1 auto;
    height: 2px;
    border-radius: 999px;
    min-width: 0.75rem;
}
.tf-trust-bridge-line:first-child {
    background: linear-gradient(90deg, rgba(var(--tf-primary-rgb), 0.08), rgba(22, 101, 52, 0.42));
}
.tf-trust-bridge-line:last-child {
    background: linear-gradient(90deg, rgba(22, 101, 52, 0.42), rgba(var(--tf-primary-rgb), 0.08));
}
.tf-trust-bridge-icon {
    flex: 0 0 auto;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 0.65rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #166534;
    font-size: 1.45rem;
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.14), rgba(22, 101, 52, 0.06));
    border: 1px solid rgba(22, 101, 52, 0.22);
    box-shadow: 0 6px 18px rgba(22, 101, 52, 0.12);
}
.tf-trust-bridge-center {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0.5rem;
}
.tf-trust-score-ring {
    --ring-c: 326.73;
    position: relative;
    width: 5.75rem;
    height: 5.75rem;
}
.tf-trust-score-ring__svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.tf-trust-score-ring__track,
.tf-trust-score-ring__progress {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}
.tf-trust-score-ring__track {
    stroke: color-mix(in srgb, var(--tf-trust-color, #166534) 12%, transparent);
}
.tf-trust-score-ring__progress {
    stroke: var(--tf-trust-color, #166534);
    stroke-dasharray: var(--ring-c);
    stroke-dashoffset: var(--ring-c);
    animation: tf-trust-score-draw 1.35s cubic-bezier(0.4, 0, 0.2, 1) forwards, tf-trust-score-glow 3s ease-in-out infinite 1.35s;
}
@keyframes tf-trust-score-draw {
    to { stroke-dashoffset: calc(var(--ring-c) - (var(--ring-c) * var(--tf-trust-score) / 100)); }
}
@keyframes tf-trust-score-glow {
    0%, 100% { filter: drop-shadow(0 0 0 color-mix(in srgb, var(--tf-trust-color, #166534) 0%, transparent)); }
    50% { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--tf-trust-color, #166534) 28%, transparent)); }
}
.tf-trust-score-ring__inner {
    position: absolute;
    inset: 0.65rem;
    border-radius: 999px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px rgba(22, 101, 52, 0.08);
}
.tf-trust-score-value {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    color: var(--tf-text);
}
.tf-trust-score-unit {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #166534;
}
.tf-trust-score-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tf-text-muted);
    text-align: center;
    max-width: 8rem;
}
.tf-trust-bridge--compact {
    margin: 0.65rem 0 0.55rem;
}
.tf-trust-bridge--compact .tf-trust-bridge-icon {
    width: 2rem;
    height: 2rem;
    margin: 0 0.5rem;
    font-size: 0.95rem;
}
.tf-trust-bridge--compact .tf-trust-bridge-line {
    height: 1px;
}
@media (max-width: 767.98px) {
    .tf-trust-bridge:not(.tf-trust-bridge--compact) {
        order: 3;
        padding-top: 0.25rem;
    }
    .tf-account-hero-meta {
        order: 2;
    }
}
.tf-profile-card-avatar-wrap {
    overflow: visible;
}
.tf-profile-dropzone {
    position: relative;
    width: 7.25rem;
    height: 7.25rem;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px dashed rgba(22, 101, 52, 0.18);
    background: rgba(255, 255, 255, 0.55);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.tf-profile-dropzone[data-has-avatar="1"] {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
.tf-profile-dropzone.is-dragover,
.tf-profile-dropzone:hover {
    border-color: rgba(var(--tf-primary-rgb, 30, 58, 95), .35);
    background: rgba(var(--tf-primary-rgb, 30, 58, 95), .04);
    box-shadow: 0 0 0 4px rgba(var(--tf-primary-rgb, 30, 58, 95), .08);
}
.tf-profile-dropzone[data-has-avatar="1"].is-dragover,
.tf-profile-dropzone[data-has-avatar="1"]:hover {
    border-color: rgba(var(--tf-primary-rgb, 30, 58, 95), .28);
    background: transparent;
}
.tf-profile-card-avatar {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 1.15rem;
}
.tf-profile-card-avatar--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--tf-primary), #3b82f6);
}
.tf-profile-dropzone-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    padding: .5rem;
    background: rgba(255, 255, 255, .78);
    color: var(--tf-primary, #1e3a5f);
    font-size: .68rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity .2s ease;
}
.tf-profile-dropzone:hover .tf-profile-dropzone-overlay,
.tf-profile-dropzone.is-dragover .tf-profile-dropzone-overlay { opacity: 1; }
.tf-profile-badge-role { background: rgba(var(--tf-primary-rgb, 30, 58, 95), .12); color: var(--tf-primary); }
.tf-profile-badge-verified { background: #ecfdf5; color: #166534; }
.tf-profile-badge-pending { background: #fef3c7; color: #92400e; }
.tf-profile-2fa-card { transition: box-shadow .2s ease; }
.tf-profile-2fa-card:hover { box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); }
.tf-phone-input .tf-phone-prefix {
    max-width: 9.5rem;
    flex: 0 0 auto;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.tf-phone-input .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.tf-input-icon-wrap {
    position: relative;
}
.tf-input-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tf-text-muted);
    pointer-events: none;
    z-index: 2;
}
.tf-input-icon-field {
    padding-left: 2.5rem;
}
.tf-profile-form-actions,
.tf-profile-notifications-actions {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    margin-top: 0.25rem;
}
.tf-profile-notifications-card {
    overflow: visible;
}
.tf-profile-page .tf-profile-notifications-actions .btn-primary:hover,
.tf-profile-page .tf-profile-notifications-actions .btn-primary:focus,
.tf-profile-page .tf-profile-form .btn-primary:hover,
.tf-profile-page .tf-profile-form .btn-primary:focus {
    transform: none;
}
.tf-profile-2fa-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--tf-primary-rgb, 30, 58, 95), .1);
    color: var(--tf-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.tf-profile-session-card { transition: border-color .2s ease, box-shadow .2s ease; }
.tf-profile-session-card--current { border: 1px solid rgba(34, 197, 94, .35); }
.tf-profile-session-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .75rem;
    background: var(--tf-surface-muted, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tf-primary);
}
.tf-badge-success { background: #ecfdf5 !important; color: #166534 !important; }
.tf-badge-muted { background: #f1f5f9 !important; color: #64748b !important; }
.tf-badge-primary { background: rgba(var(--tf-primary-rgb, 30, 58, 95), .15) !important; color: var(--tf-primary) !important; }
.tf-badge-secondary { background: #e2e8f0 !important; color: #475569 !important; }
.tf-recovery-list code {
    display: block;
    padding: .35rem .5rem;
    margin-bottom: .35rem;
    background: var(--tf-surface-muted, #f8fafc);
    border-radius: .35rem;
}
.tf-profile-modal .modal-content { border: none; border-radius: 1rem; box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18); }
[data-bs-theme="dark"] .tf-profile-card { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); border-color: rgba(22, 101, 52, 0.22); }
[data-bs-theme="dark"] .tf-trust-avatar {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(22, 101, 52, 0.12));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(22, 101, 52, 0.2);
}
[data-bs-theme="dark"] .tf-trust-score-ring__inner {
    background: rgba(15, 23, 42, 0.88);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
[data-bs-theme="dark"] .tf-verification-timeline-body {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(22, 101, 52, 0.08));
}
[data-bs-theme="dark"] .tf-profile-dropzone { border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); }
[data-bs-theme="dark"] .tf-profile-dropzone[data-has-avatar="1"] { border-color: transparent; background: transparent; }
[data-bs-theme="dark"] .tf-profile-dropzone-overlay {
    background: rgba(15, 23, 42, .72);
    color: #f8fafc;
}

.tf-2fa-login-card { box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12); }
.tf-2fa-code-field { letter-spacing: .35rem; font-weight: 700; font-size: 1.35rem; }
.tf-2fa-method-switch .btn { border-radius: 999px; }

.tf-profile-switch .form-check-input {
    width: 2.65rem;
    height: 1.4rem;
    margin: 0;
    cursor: pointer;
    border-color: #cbd5e1;
    background-color: #e2e8f0;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tf-profile-switch .form-check-input:focus {
    box-shadow: 0 0 0 .2rem rgba(var(--tf-primary-rgb, 30, 58, 95), .18);
    border-color: var(--tf-primary);
}
.tf-profile-switch .form-check-input:checked {
    background-color: var(--tf-primary);
    border-color: var(--tf-primary);
}
[data-bs-theme="dark"] .tf-profile-switch .form-check-input {
    background-color: #334155;
    border-color: #475569;
}

/* ---- Registration live validation ---- */
.tf-field-feedback.text-success::before,
.tf-field-feedback.text-danger::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: .35rem;
}
.tf-field-feedback.text-success::before { content: "\f058"; }
.tf-field-feedback.text-danger::before { content: "\f057"; }

/* ---- Admin plans matrix ---- */
.tf-admin-plans-table thead th { font-size: .8125rem; white-space: nowrap; }
.tf-admin-plans-matrix td { min-width: 7.5rem; vertical-align: middle; }
.tf-admin-plans-matrix .form-check-input { margin: 0; float: none; }
.tf-admin-plans-limit { max-width: 5.5rem; }

/* ---- Review dispute steps ---- */
.tf-dispute-progress-track {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
}

.tf-dispute-progress-step {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    min-width: 0;
}

.tf-dispute-progress-step--last {
    flex: 0 0 auto;
}

.tf-dispute-progress-node {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
}

.tf-dispute-progress-num {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .8125rem;
    font-weight: 700;
    background: var(--tf-surface-muted);
    border: 2px solid var(--tf-border);
    color: var(--tf-text-muted);
    transition: all var(--tf-transition);
}

.tf-dispute-progress-label {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--tf-text-muted);
    line-height: 1.3;
}

.tf-dispute-progress-line {
    flex: 1 1 auto;
    height: 2px;
    margin: 0 .75rem;
    border-radius: 999px;
    background: var(--tf-border);
}

.tf-dispute-progress-step--active .tf-dispute-progress-num {
    background: var(--tf-primary);
    border-color: var(--tf-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(var(--tf-primary-rgb), .15);
}

.tf-dispute-progress-step--active .tf-dispute-progress-label {
    color: var(--tf-primary);
}

.tf-dispute-progress-step--done .tf-dispute-progress-num {
    background: #166534;
    border-color: #166534;
    color: #fff;
}

.tf-dispute-progress-step--done .tf-dispute-progress-label {
    color: var(--tf-text);
}

.tf-dispute-progress-step--done .tf-dispute-progress-line {
    background: linear-gradient(90deg, #166534, rgba(var(--tf-primary-rgb), .35));
}

.tf-dispute-review-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(var(--tf-primary-rgb), .12);
    box-shadow: var(--tf-shadow);
}

.tf-dispute-review-card-accent {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #f59e0b 0%, #ef4444 100%);
}

.tf-dispute-review-card-head {
    background:
        linear-gradient(135deg, rgba(var(--tf-primary-rgb), .07) 0%, rgba(99, 102, 241, .04) 100%),
        var(--tf-surface-muted);
    border-bottom: 1px solid var(--tf-border);
}

.tf-dispute-review-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--tf-primary-rgb), .12);
    color: var(--tf-primary);
    flex-shrink: 0;
}

.tf-dispute-review-card-label {
    font-weight: 700;
    font-size: .9375rem;
    color: var(--tf-text);
}

.tf-dispute-review-card-hint {
    font-size: .8125rem;
    color: var(--tf-text-muted);
}

.tf-dispute-review-card-body {
    background: var(--tf-surface);
}

.tf-dispute-review-title {
    color: var(--tf-text);
    letter-spacing: -.01em;
}

.tf-dispute-rating-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .25rem;
    padding: .5rem .75rem;
    border-radius: .75rem;
    background: var(--tf-surface-muted);
    border: 1px solid var(--tf-border);
    flex-shrink: 0;
}

.tf-dispute-rating-value {
    font-size: .75rem;
    font-weight: 700;
    color: var(--tf-text-muted);
}

.tf-dispute-form-card {
    border: 1px solid rgba(var(--tf-primary-rgb), .1);
    box-shadow: var(--tf-shadow-sm);
}

.tf-dispute-form-card .card-header {
    background: transparent;
    padding: 1.25rem 1.25rem 0;
}

.tf-dispute-form-icon {
    width: 2rem;
    height: 2rem;
    border-radius: .5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--tf-primary-rgb), .1);
    color: var(--tf-primary);
    font-size: .875rem;
}

.tf-dispute-fee-notice {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border-radius: .85rem;
    border: 1px solid rgba(245, 158, 11, .25);
    background: linear-gradient(135deg, rgba(245, 158, 11, .08) 0%, rgba(251, 191, 36, .05) 100%);
}

.tf-dispute-fee-notice-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(245, 158, 11, .15);
    color: #b45309;
}

.tf-dispute-fee-notice-text {
    font-size: .875rem;
    line-height: 1.55;
    color: var(--tf-text);
}

.tf-dispute-status-card {
    border: 1px solid var(--tf-border);
    box-shadow: var(--tf-shadow-sm);
}

.tf-dispute-status-card .card-body {
    text-align: center;
}

.tf-dispute-status-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(var(--tf-primary-rgb), .1);
    color: var(--tf-primary);
}

.tf-dispute-status-icon--waiting {
    background: rgba(245, 158, 11, .12);
    color: #b45309;
}

.tf-dispute-status-icon--payment {
    background: rgba(var(--tf-primary-rgb), .12);
    color: var(--tf-primary);
}

.tf-dispute-status-card--danger {
    border-color: rgba(220, 38, 38, .2);
    background: rgba(220, 38, 38, .04);
}

.tf-dispute-status-card--danger .tf-dispute-status-icon {
    background: rgba(220, 38, 38, .12);
    color: #dc2626;
}

.tf-dispute-status-card--success {
    border-color: rgba(22, 101, 52, .2);
    background: rgba(22, 101, 52, .04);
}

.tf-dispute-status-card--success .tf-dispute-status-icon {
    background: rgba(22, 101, 52, .12);
    color: #166534;
}

.tf-dispute-status-card--info {
    border-color: rgba(var(--tf-primary-rgb), .2);
    background: rgba(var(--tf-primary-rgb), .04);
}

.tf-dispute-admin-notes {
    padding: 1rem;
    border-radius: .75rem;
    background: var(--tf-surface-muted);
    border: 1px dashed var(--tf-border);
}

@media (max-width: 767.98px) {
    .tf-dispute-progress-track {
        flex-direction: column;
        gap: .75rem;
    }

    .tf-dispute-progress-step {
        flex: none;
        width: 100%;
    }

    .tf-dispute-progress-line {
        display: none;
    }

    .tf-dispute-rating-pill {
        align-items: center;
    }
}

/* Legacy dispute step pills (fallback) */
.tf-dispute-steps { gap: .75rem !important; }
.tf-dispute-step {
    display: flex; align-items: center; gap: .5rem; padding: .5rem .85rem;
    border: 1px solid var(--bs-border-color); border-radius: 999px; background: var(--bs-body-bg);
    font-size: .8125rem;
}
.tf-dispute-step--active { border-color: var(--tf-primary, #1e3a5f); background: rgba(var(--tf-primary-rgb, 30, 58, 95), .08); font-weight: 600; }
.tf-dispute-step--done { opacity: .85; }
.tf-dispute-step-num {
    width: 1.5rem; height: 1.5rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--bs-secondary-bg); font-size: .75rem; font-weight: 700;
}
.tf-dispute-step--active .tf-dispute-step-num { background: var(--tf-primary, #1e3a5f); color: #fff; }
.tf-dispute-step--done .tf-dispute-step-num { background: #166534; color: #fff; }

/* ---- Payment provider picker (pricing + billing): checked = white text ---- */
.btn-check:checked + .tf-payment-provider-btn,
.btn-check:checked + .btn-outline-primary.tf-payment-provider-btn,
.btn-check:checked + .btn-outline-secondary.tf-payment-provider-btn,
#billingProviderPicker .btn-check:checked + .btn,
#pricingProviderPicker .btn-check:checked + .btn,
#addonProviderPicker .btn-check:checked + .btn {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background-color: var(--tf-primary) !important;
    background-image: linear-gradient(135deg, var(--tf-primary-dark, #0B1F3A) 0%, var(--tf-primary) 100%) !important;
    border-color: var(--tf-primary) !important;
    box-shadow: 0 4px 14px rgba(var(--tf-primary-rgb), 0.35);
}

[data-bs-theme="dark"] .btn-check:checked + .tf-payment-provider-btn,
[data-bs-theme="dark"] #billingProviderPicker .btn-check:checked + .btn,
[data-bs-theme="dark"] #pricingProviderPicker .btn-check:checked + .btn,
[data-bs-theme="dark"] #addonProviderPicker .btn-check:checked + .btn {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* ---- Trusted Shop Seal pages ---- */
.tf-seal-page {
    padding-bottom: 2.5rem;
}

.tf-seal-page .tf-seal-hero {
    padding: 2.5rem 2.75rem;
    margin-bottom: 2.5rem;
}

.tf-seal-page .tf-seal-panel > .card-header {
    background: linear-gradient(180deg, rgba(var(--tf-primary-rgb), 0.06) 0%, transparent 100%);
    border-bottom: 1px solid var(--tf-border);
}

.tf-seal-page .tf-seal-panel > .card-body {
    padding: 1.5rem 1.75rem;
}

.tf-seal-step-card .card-body,
.tf-seal-info-card .card-body,
.tf-seal-cta-card .card-body {
    padding: 1.75rem 2rem !important;
}

.tf-seal-tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tf-seal-tier-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--tf-border-strong);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tf-seal-tier-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tf-shadow-lg);
}

.tf-seal-tier-card--featured {
    border: 2px solid var(--tf-primary);
    box-shadow: 0 16px 48px rgba(var(--tf-primary-rgb), 0.14);
}

.tf-seal-tier-card--selected {
    border: 3px solid var(--tf-primary) !important;
    box-shadow:
        0 0 0 4px rgba(var(--tf-primary-rgb), 0.22),
        0 14px 36px rgba(var(--tf-primary-rgb), 0.18);
    transform: translateY(-4px);
}

.tf-seal-tier-card--selected.tf-seal-tier-card--featured {
    box-shadow:
        0 0 0 4px rgba(var(--tf-primary-rgb), 0.28),
        0 16px 48px rgba(var(--tf-primary-rgb), 0.22);
}

.tf-seal-tier-card--current {
    border-color: rgba(22, 163, 74, 0.55) !important;
}

.tf-seal-tier-current-label {
    display: inline-flex;
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tf-seal-tier-selected-label {
    display: none;
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: var(--tf-primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tf-seal-tier-card--selected:not(.tf-seal-tier-card--current) .tf-seal-tier-selected-label {
    display: inline-flex;
}

.tf-seal-tier-missing li + li {
    margin-top: 0.25rem;
}

.tf-seal-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: var(--tf-primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
}

.tf-seal-status-hero {
    padding: 1rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, rgba(var(--tf-primary-rgb), 0.08), rgba(var(--tf-primary-rgb), 0.02));
    border: 1px solid rgba(var(--tf-primary-rgb), 0.12);
}

.tf-seal-status-hero-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.tf-seal-status-hero-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--tf-text);
    line-height: 1.2;
    margin-top: 0.15rem;
}

.tf-seal-status-hero-meta {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.35rem;
}

.tf-seal-status-rows {
    display: grid;
    gap: 0.75rem;
}

.tf-seal-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.tf-seal-status-row-label {
    font-size: 0.8125rem;
    color: #64748b;
}

.tf-seal-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.tf-seal-status-pill--active,
.tf-seal-status-pill--live,
.tf-seal-status-pill--approved,
.tf-seal-status-pill--ready {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.tf-seal-status-pill--missing,
.tf-seal-status-pill--paused,
.tf-seal-status-pill--hidden,
.tf-seal-status-pill--blocked {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.tf-seal-status-pill--pending {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.tf-seal-status-pill--rejected,
.tf-seal-status-pill--none {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
}

.tf-seal-status-next-step {
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

.tf-seal-status-next-step-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.tf-seal-status-next-step-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--tf-text);
    cursor: pointer;
}

.tf-seal-status-tech summary {
    cursor: pointer;
    color: #64748b;
}

[data-bs-theme="dark"] .tf-seal-status-next-step {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.12);
}

#sealEntitlementPanel,
#sealApplyPanel,
#sealRequirementsPanel {
    scroll-margin-top: 6rem;
}

.tf-seal-panel.is-highlighted {
    animation: tf-seal-panel-highlight 0.75s ease 2;
    outline: 3px solid rgba(var(--tf-primary-rgb), 0.55);
    outline-offset: 3px;
}

@keyframes tf-seal-panel-highlight {
    0%, 100% {
        outline-color: rgba(var(--tf-primary-rgb), 0.55);
        box-shadow: 0 0 0 0 rgba(var(--tf-primary-rgb), 0.18);
    }
    50% {
        outline-color: rgba(var(--tf-primary-rgb), 0.95);
        box-shadow: 0 0 0 10px rgba(var(--tf-primary-rgb), 0.12);
    }
}

.tf-seal-tier-card[data-tier] {
    cursor: pointer;
}

.tf-seal-tier-card[data-tier]:focus-visible {
    outline: 2px solid var(--tf-primary);
    outline-offset: 2px;
}

.tf-seal-tier-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--tf-primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    z-index: 2;
}

.tf-seal-tier-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: 1.25rem;
    border-radius: var(--tf-radius);
    background: linear-gradient(135deg, #F8FAFF 0%, #EEF4FF 100%);
    border: 1px solid var(--tf-border);
}

[data-bs-theme="dark"] .tf-seal-tier-preview {
    background: linear-gradient(135deg, #1A2234 0%, #111827 100%);
}

.tf-seal-tier-preview svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(11, 31, 58, 0.12));
}

.tf-seal-tier-preview--compact {
    min-height: 100px;
    padding: 0.75rem;
}

.tf-seal-preview-stage {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(var(--tf-primary-rgb), 0.04) 0%, transparent 100%);
    border-radius: var(--tf-radius);
}

.tf-seal-embed-tabs .nav-pills .nav-link {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    color: var(--tf-primary);
    background: rgba(var(--tf-primary-rgb), 0.08);
    border: 1px solid rgba(var(--tf-primary-rgb), 0.2);
}

.tf-seal-embed-tabs .nav-pills .nav-link.active {
    color: #fff !important;
    background: var(--tf-primary) !important;
    border-color: var(--tf-primary);
}

.tf-seal-pricing-banner {
    border: 2px solid rgba(var(--tf-primary-rgb), 0.2);
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFF 60%, #EEF4FF 100%);
    box-shadow: 0 12px 40px rgba(var(--tf-primary-rgb), 0.08);
}

[data-bs-theme="dark"] .tf-seal-pricing-banner {
    background: linear-gradient(135deg, #111827 0%, #1A2234 100%);
}

.tf-enterprise-cta {
    margin-top: 0.5rem;
}
.tf-enterprise-cta-inner {
    text-align: center;
    padding: 2.5rem 1.75rem;
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 40%),
        linear-gradient(135deg, #0B1F3A 0%, #163A66 55%, #1D4ED8 120%);
    color: #fff;
    box-shadow: 0 18px 50px rgba(11, 31, 58, 0.28);
}
.tf-enterprise-cta-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 0.75rem;
}
.tf-enterprise-cta-title {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 800;
    margin: 0 0 0.65rem;
    color: #fff;
}
.tf-enterprise-cta-text {
    max-width: 36rem;
    margin: 0 auto 1.35rem;
    opacity: 0.9;
}
.tf-enterprise-cta-btn {
    font-weight: 700;
    border: 0;
    color: #0B1F3A;
    padding: 0.7rem 1.35rem;
}
.tf-enterprise-cta-mail a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}
.tf-enterprise-cta-mail a:hover {
    color: #fff;
    text-decoration: underline;
}

.tf-bank-product-note {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.15rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(29, 78, 216, 0.18);
    background: linear-gradient(135deg, #F8FAFF 0%, #EEF4FF 100%);
}
.tf-bank-product-note-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #0B1F3A;
    color: #fff;
}
.tf-bank-product-note-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 0.15rem;
}
.tf-bank-product-note-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0B1F3A;
    margin-bottom: 0.25rem;
}
.tf-bank-product-note-text {
    color: #475569;
    font-size: 0.925rem;
    line-height: 1.45;
}

@media (max-width: 767.98px) {
    .tf-seal-page .tf-seal-hero {
        padding: 1.5rem 1.25rem;
    }

    .tf-seal-page .tf-seal-panel > .card-body {
        padding: 1.25rem;
    }
}

/* Admin Seal Center */
.tf-seal-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.tf-seal-tier-badge--basic {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
    border-color: rgba(100, 116, 139, 0.18);
}

.tf-seal-badge--graphic,
.tf-seal-tier-preview .tf-seal-badge--graphic {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0.85rem;
    max-width: 400px;
    border: 0;
    border-radius: 0.65rem;
    background: #eceef1;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.tf-seal-badge-graphic {
    width: 88px;
    height: 88px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.tf-seal-badge-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 0;
}

.tf-seal-badge--graphic .tf-seal-badge-name {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}

.tf-seal-badge--graphic .tf-seal-badge-stars {
    color: #00B67A;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.tf-seal-badge--graphic .tf-seal-badge-meta {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.tf-seal-display-mode-option {
    display: block;
    height: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid var(--tf-border, rgba(0, 0, 0, 0.12));
    border-radius: var(--tf-radius-md, 0.75rem);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tf-seal-display-mode-option.is-selected,
.tf-seal-display-mode-option:has(input:checked) {
    border-color: rgba(var(--tf-primary-rgb), 0.45);
    box-shadow: 0 0 0 1px rgba(var(--tf-primary-rgb), 0.18);
}

.tf-seal-display-mode-preview {
    min-height: 96px;
    padding: 0.85rem;
    border-radius: 0.65rem;
    background: #eceef1;
}

.tf-seal-display-mode-preview--graphic {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tf-seal-display-mode-preview-seal {
    flex-shrink: 0;
}

.tf-seal-display-mode-preview-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.tf-seal-display-mode-preview-stars {
    color: #00B67A;
    font-size: 0.85rem;
}

.tf-seal-display-mode-preview--generated {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 2px solid #0B1F3A;
}

.tf-seal-display-mode-preview-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.tf-seal-graphic-upload-card {
    border: 1px solid var(--tf-border, #e2e8f0);
}

.tf-seal-graphic-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 7.5rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid var(--tf-border, #e2e8f0);
}

.tf-seal-graphic-preview-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.tf-seal-graphic-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 7rem;
    margin: 0;
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tf-seal-graphic-dropzone:hover,
.tf-seal-graphic-dropzone.is-dragover {
    border-color: rgba(37, 99, 235, 0.45);
    background: rgba(37, 99, 235, 0.04);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.tf-seal-graphic-dropzone-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.tf-seal-graphic-dropzone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.5rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--tf-primary);
    font-size: 1rem;
}

.tf-seal-graphic-dropzone-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--tf-text);
}

.tf-seal-graphic-dropzone-hint {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #64748b;
}

[data-bs-theme="dark"] .tf-seal-graphic-preview,
[data-bs-theme="dark"] .tf-seal-graphic-dropzone {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.12);
}

.tf-seal-tier-badge--premium {
    background: rgba(37, 99, 235, 0.12);
    color: #1D4ED8;
    border-color: rgba(37, 99, 235, 0.2);
}

.tf-seal-tier-badge--elite {
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.14), rgba(234, 179, 8, 0.18));
    color: #92400E;
    border-color: rgba(180, 83, 9, 0.22);
}

.tf-admin-seals-section-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(var(--tf-primary-rgb), 0.12);
    color: var(--tf-primary);
}

.tf-admin-seals-section-icon--gold {
    background: rgba(180, 83, 9, 0.12);
    color: #B45309;
}

.tf-admin-seals-section-icon--blue {
    background: rgba(37, 99, 235, 0.12);
    color: #1D4ED8;
}

.tf-admin-seals-section-icon--purple {
    background: rgba(124, 58, 237, 0.12);
    color: #6D28D9;
}

.tf-status--success { background: rgba(22, 163, 74, 0.14); color: #15803D; border-color: rgba(22, 163, 74, 0.22); }
.tf-status--warning { background: rgba(245, 158, 11, 0.14); color: #B45309; border-color: rgba(245, 158, 11, 0.25); }
.tf-status--danger  { background: rgba(220, 38, 38, 0.1); color: var(--tf-danger); border-color: rgba(220, 38, 38, 0.2); }
.tf-status--muted   { background: rgba(100, 116, 139, 0.12); color: #64748B; border-color: rgba(100, 116, 139, 0.2); }

.tf-admin-seals .tf-table-wrap .tf-table th.tf-col-actions,
.tf-admin-seals .tf-table-wrap .tf-table td.tf-col-actions {
    width: 1%;
    min-width: 7.5rem;
    white-space: nowrap;
}

.tf-admin-seals .tf-table-wrap .tf-table td.tf-col-type {
    white-space: nowrap;
}

.tf-admin-seals .tf-table-wrap .tf-table td.tf-col-compliance {
    max-width: 9rem;
}

.tf-admin-seals .tf-table-wrap .tf-table td.tf-col-compliance .tf-status {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.tf-admin-seals .tf-table-wrap .tf-table td.tf-col-message {
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tf-admin-seals .tf-table-wrap .tf-seal-tier-badge {
    white-space: nowrap;
}

.tf-admin-seals .tf-table-wrap + .d-flex .tf-pagination-desktop:empty {
    display: none;
}

.tf-seal-checklist {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tf-seal-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--tf-border);
}

.tf-seal-checklist-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.tf-seal-checklist-icon {
    width: 1.5rem;
    flex-shrink: 0;
    text-align: center;
    padding-top: 0.1rem;
}

/* ── Category navigation (inline) ─────────────────────────────────────── */

.tf-category-nav-inline .tf-category-nav-main {
    margin-bottom: 0.25rem;
}

.tf-category-nav-main-btn {
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.8125rem;
    padding: 0.4rem 0.95rem;
    border: 1px solid var(--tf-border-strong);
    background: var(--tf-surface);
    color: var(--tf-text);
    box-shadow: var(--tf-shadow-xs);
    transition: background var(--tf-transition), border-color var(--tf-transition),
        color var(--tf-transition), box-shadow var(--tf-transition), transform 0.15s ease;
}

.tf-category-nav-main-btn:hover {
    border-color: rgba(var(--tf-primary-rgb), 0.35);
    background: var(--tf-surface-muted);
    color: var(--tf-primary);
}

.tf-category-nav-main-btn.is-active {
    background: linear-gradient(135deg, var(--tf-primary) 0%, #1e3a8a 100%);
    border-color: var(--tf-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(var(--tf-primary-rgb), 0.28);
}

.tf-category-nav-subpanels {
    margin-top: 0.75rem;
}

.tf-category-nav-sub-wrap.show {
    animation: tfCatSubFadeIn 0.28s ease;
}

@keyframes tfCatSubFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tf-category-nav-subpanel {
    background: linear-gradient(165deg, rgba(37, 99, 235, 0.07) 0%, rgba(37, 99, 235, 0.02) 42%, var(--tf-surface) 100%);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: var(--tf-radius-sm);
    padding: 1rem 1.15rem 1.15rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), var(--tf-shadow-xs);
}

.tf-category-nav-subpanel-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tf-category-nav-subpanel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    background: rgba(37, 99, 235, 0.12);
    color: var(--tf-accent);
    flex-shrink: 0;
    font-size: 0.9rem;
}

.tf-category-nav-subpanel-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.tf-category-nav-subpanel-kicker {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tf-accent);
}

.tf-category-nav-subpanel-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--tf-text);
    line-height: 1.3;
}

.tf-category-nav-subpanel-divider {
    border: 0;
    height: 1px;
    margin: 0.85rem 0 1rem;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(37, 99, 235, 0.15) 8%,
        rgba(37, 99, 235, 0.45) 50%,
        rgba(37, 99, 235, 0.15) 92%,
        transparent 100%
    );
    opacity: 1;
}

.tf-category-nav-sub-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    background: var(--tf-surface);
    border: 1px solid rgba(37, 99, 235, 0.28);
    color: var(--tf-secondary);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: background var(--tf-transition), border-color var(--tf-transition),
        color var(--tf-transition), box-shadow var(--tf-transition), transform 0.15s ease;
}

.tf-category-nav-sub-btn:hover {
    border-color: var(--tf-accent);
    background: #fff;
    color: var(--tf-accent);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.tf-category-nav-sub-btn.is-active {
    background: linear-gradient(135deg, var(--tf-primary) 0%, #1e3a8a 100%);
    border-color: var(--tf-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(var(--tf-primary-rgb), 0.32);
}

.tf-category-nav-sub-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.06);
    color: var(--tf-text-muted);
}

.tf-category-nav-sub-btn.is-active .tf-category-nav-sub-count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

@media (max-width: 575.98px) {
    .tf-category-nav-subpanel {
        padding: 0.85rem 0.9rem 1rem;
    }

    .tf-category-nav-main-btn,
    .tf-category-nav-sub-btn {
        font-size: 0.78rem;
    }
}

/* ── Admin category hierarchy ─────────────────────────────────────────── */

.tf-admin-cat-info {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.03) 100%);
    color: var(--tf-text);
}

.tf-admin-cat-group {
    overflow: hidden;
}

.tf-admin-cat-group-head {
    background: linear-gradient(180deg, var(--tf-surface-muted) 0%, var(--tf-surface) 100%);
    border-bottom: 1px solid var(--tf-border);
}

.tf-admin-cat-group-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(var(--tf-primary-rgb), 0.1);
    color: var(--tf-primary);
    flex-shrink: 0;
}

.tf-admin-cat-subtable tbody tr td:first-child {
    border-left: 3px solid rgba(37, 99, 235, 0.35);
}

.tf-admin-cat-subtable thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tf-text-muted);
}

.tf-category-search {
    position: relative;
}

.tf-card--search-host,
.tf-card--search-host > .card-body {
    overflow: visible;
}

.tf-category-picker {
    position: relative;
}

.tf-category-search--nav {
    margin-bottom: 1.25rem;
}

.tf-category-nav-sidebar .tf-category-search--nav {
    margin-bottom: 1rem;
}

.tf-category-search-input-wrap--nav {
    border-radius: var(--tf-radius-sm);
    box-shadow: var(--tf-shadow-xs);
    background: var(--tf-surface);
}

.tf-category-search-input-wrap--nav .form-control {
    min-height: 2.65rem;
    font-size: 0.9375rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    background: var(--tf-surface);
}

.tf-category-search-input-wrap--nav .input-group-text {
    min-height: 2.65rem;
    padding-inline: 0.95rem;
    font-size: 0.95rem;
}

.tf-category-search-input-wrap--nav .tf-category-search-clear {
    border-left: none;
    min-height: 2.65rem;
    padding-inline: 0.85rem;
    color: var(--tf-text-muted);
}

.tf-category-search-input-wrap--nav .tf-category-search-clear:hover {
    background: var(--tf-surface-muted);
    color: var(--tf-primary);
}

.tf-category-search-input-wrap--admin,
.tf-category-picker-input-wrap {
    border-radius: var(--tf-radius-sm);
    box-shadow: var(--tf-shadow-xs);
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
}

.tf-category-search-input-wrap--admin .form-control,
.tf-category-picker-input-wrap .form-control {
    min-height: 2.65rem;
    font-size: 0.9375rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    background: var(--tf-surface);
    border-color: transparent;
}

.tf-category-search-input-wrap--admin .input-group-text,
.tf-category-picker-input-wrap .input-group-text {
    min-height: 2.65rem;
    padding-inline: 0.95rem;
    font-size: 0.95rem;
    background: var(--tf-surface);
    border-color: transparent;
}

.tf-category-search-input-wrap--admin .tf-category-search-clear,
.tf-category-picker-input-wrap .tf-category-picker-clear {
    border-left: none;
    min-height: 2.65rem;
    padding-inline: 0.85rem;
    color: var(--tf-text-muted);
}

.tf-category-search-input-wrap--admin .tf-category-search-clear:hover,
.tf-category-picker-input-wrap .tf-category-picker-clear:hover {
    background: var(--tf-surface-muted);
    color: var(--tf-primary);
}

.tf-category-nav-body {
    margin-top: 0.15rem;
}

.tf-category-search-control {
    position: relative;
}

.tf-category-search-input-wrap,
.tf-category-picker-input-wrap {
    position: relative;
}

.tf-category-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    z-index: 30;
    max-height: 18rem;
    overflow-y: auto;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: var(--tf-radius-sm);
    padding: 0.35rem;
    background: var(--tf-surface-elevated);
}

.tf-category-search-results.show {
    display: block;
}

.tf-category-search-results .dropdown-item {
    border-radius: 0.55rem;
}

.tf-category-search-results .dropdown-item.active,
.tf-category-search-results .dropdown-item:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--tf-text);
}

.tf-category-search-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.06);
    color: var(--tf-text-muted);
    flex-shrink: 0;
}

.tf-category-nav-inline.is-category-searching .tf-category-nav-body,
.tf-category-nav-sidebar.is-category-searching .tf-category-nav-body {
    display: none;
}

#companyResults,
#searchResultsList {
    scroll-margin-top: 5.5rem;
}

button.tf-category-nav-main-btn {
    font-family: inherit;
}

.tf-category-picker .form-text {
    margin-top: 0.35rem;
}

.tf-admin-cat-subtable tbody tr.tf-admin-cat-highlight {
    background: rgba(37, 99, 235, 0.1);
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.28);
}

.tf-country-iso {
    min-width: 3.5rem;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
}

/* ---- Legal document TOC ---- */
.tf-document-layout {
    align-items: flex-start;
}

.tf-document-sidebar {
    position: sticky;
    top: calc(var(--tf-header-height) + 1.25rem);
    z-index: 5;
    align-self: flex-start;
}

.tf-legal-toc {
    padding: 0;
    overflow: hidden;
}

.tf-legal-toc-header {
    padding: 0.9rem 1.1rem;
    font-weight: 700;
    border-bottom: 1px solid var(--tf-border);
    background: linear-gradient(180deg, rgba(var(--tf-primary-rgb), 0.04), transparent);
}

.tf-legal-toc-list {
    padding: 0.65rem 0.35rem 0.85rem;
    max-height: calc(100vh - 9rem);
    overflow-y: auto;
}

.tf-legal-toc-item {
    margin: 0;
}

.tf-legal-toc-item--level-2 .tf-legal-toc-link {
    padding-left: 0.85rem;
    font-weight: 600;
}

.tf-legal-toc-item--level-3 .tf-legal-toc-link {
    padding-left: 1.55rem;
    font-size: 0.92rem;
    font-weight: 500;
}

.tf-legal-toc-item--level-4 .tf-legal-toc-link {
    padding-left: 2.15rem;
    font-size: 0.88rem;
}

.tf-legal-toc-link {
    display: block;
    padding: 0.45rem 0.85rem;
    color: var(--tf-text-muted);
    text-decoration: none;
    border-radius: var(--tf-radius-sm);
    transition: color var(--tf-transition), background var(--tf-transition);
}

a.tf-legal-toc-link:hover,
a.tf-legal-toc-link:focus {
    color: var(--tf-primary);
    background: rgba(var(--tf-primary-rgb), 0.08);
}

.tf-legal-document h2,
.tf-legal-document h3,
.tf-legal-document h4 {
    scroll-margin-top: 6rem;
}

.tf-legal-document h2 {
    margin-top: 2rem;
    padding-top: 0.25rem;
}

.tf-legal-document h3 {
    margin-top: 1.25rem;
}

@media (max-width: 991.98px) {
    .tf-document-sidebar {
        position: static;
    }

    .tf-legal-toc-list {
        max-height: none;
    }
}

/* ---- CMS media library ---- */
.tf-cms-media-sidebar .list-group-item {
    border: 0;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.tf-cms-media-sidebar .list-group-item.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--tf-primary);
    border-left: 3px solid var(--tf-primary);
}

.tf-cms-media-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 9rem;
    margin: 0;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    border: 2px dashed #cbd5e1;
    border-radius: var(--tf-radius, 0.75rem);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tf-cms-media-dropzone:hover,
.tf-cms-media-dropzone.is-dragover {
    border-color: rgba(37, 99, 235, 0.45);
    background: rgba(37, 99, 235, 0.04);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.tf-cms-media-dropzone.is-uploading {
    opacity: 0.65;
    pointer-events: none;
}

.tf-cms-media-dropzone__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.tf-cms-media-dropzone__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.75rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--tf-primary);
    font-size: 1.25rem;
}

.tf-cms-media-dropzone__title {
    font-weight: 700;
    color: var(--tf-text);
}

.tf-cms-media-dropzone__hint {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.tf-cms-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11.5rem, 11.5rem));
    gap: 1rem;
    justify-content: start;
}

.tf-cms-media-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: var(--tf-radius, 0.75rem);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tf-cms-media-item:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.tf-cms-media-item--picker {
    padding: 0;
    border: 1px solid #e2e8f0;
    background: #fff;
    text-align: left;
}

.tf-cms-media-item--picker.is-selected,
.tf-cms-media-item--picker:focus-visible {
    border-color: var(--tf-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.tf-cms-media-item__thumb {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 1;
    max-height: 11.5rem;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    overflow: hidden;
    background:
        linear-gradient(45deg, #f1f5f9 25%, transparent 25%),
        linear-gradient(-45deg, #f1f5f9 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f1f5f9 75%),
        linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-color: #fff;
}

.tf-cms-media-item__thumb img,
.tf-cms-media-item__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.tf-cms-media-item__file {
    font-size: 2rem;
    color: #64748b;
}

.tf-cms-media-item__actions {
    position: absolute;
    inset: auto 0.5rem 0.5rem 0.5rem;
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.tf-cms-media-item:hover .tf-cms-media-item__actions {
    opacity: 1;
    transform: translateY(0);
}

.tf-cms-media-item__actions .btn {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.tf-cms-media-copy.is-copied {
    color: #16a34a;
}

.tf-cms-media-item__meta {
    padding: 0.75rem 0.85rem 0.9rem;
    border-top: 1px solid #f1f5f9;
}

.tf-cms-media-item__title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--tf-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tf-cms-media-item__details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: #64748b;
}

.tf-cms-media-item__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--tf-primary);
    font-weight: 600;
}

.tf-cms-media-empty__icon {
    font-size: 2.5rem;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}

[data-bs-theme="dark"] .tf-cms-media-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .tf-cms-media-item__thumb {
    background-color: rgba(255, 255, 255, 0.02);
}

[data-bs-theme="dark"] .tf-cms-media-dropzone {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .tf-cms-media-item__meta {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.tf-cms-media-search .input-group-text {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

.tf-cms-media-search .form-control {
    border-color: #e2e8f0;
}

.tf-cms-media-search .form-control:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tf-cms-media-preview-trigger {
    cursor: zoom-in;
}

.tf-cms-media-item__keywords {
    display: inline-flex;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #94a3b8;
}

.tf-cms-media-item__actions .btn.text-danger:hover {
    color: #dc2626 !important;
}

.tf-cms-media-modal .modal-body {
    padding-top: 1rem;
}

.tf-cms-media-preview__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 12rem;
    max-height: 28rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: var(--tf-radius, 0.75rem);
    background:
        linear-gradient(45deg, #f1f5f9 25%, transparent 25%),
        linear-gradient(-45deg, #f1f5f9 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f1f5f9 75%),
        linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-color: #fff;
}

.tf-cms-media-preview__image {
    max-width: 100%;
    max-height: 26rem;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.tf-cms-media-preview__file {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: #64748b;
    font-size: 0.9375rem;
}

.tf-cms-media-preview__file i {
    font-size: 2.5rem;
}

.tf-cms-media-preview__meta dt {
    font-weight: 600;
}

[data-bs-theme="dark"] .tf-cms-media-search .input-group-text,
[data-bs-theme="dark"] .tf-cms-media-search .form-control {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    color: inherit;
}

[data-bs-theme="dark"] .tf-cms-media-preview__stage {
    background-color: rgba(255, 255, 255, 0.02);
}

.tf-translations-search .input-group-text {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.tf-translations .tf-table-wrap {
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

.tf-translations-table code {
    font-size: 0.8125rem;
}

.tf-translations .tf-translations-table th.tf-col-actions,
.tf-translations .tf-translations-table td.tf-col-actions {
    position: sticky;
    right: 0;
    z-index: 2;
    width: 1%;
    min-width: 6.5rem;
    white-space: nowrap;
    background: var(--tf-surface-elevated);
    box-shadow: -6px 0 10px rgba(15, 23, 42, 0.06);
}

.tf-translations .tf-translations-edit {
    min-width: 2.5rem;
    min-height: 2.25rem;
    padding: 0.4rem 0.65rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.tf-translations .tf-translations-table thead th.tf-col-actions {
    z-index: 3;
    background: linear-gradient(180deg, rgba(var(--tf-primary-rgb), 0.08) 0%, rgba(var(--tf-primary-rgb), 0.04) 100%), var(--tf-surface-elevated);
}

.tf-translations .tf-translations-table tbody tr:hover td.tf-col-actions {
    background: color-mix(in srgb, var(--tf-surface-elevated) 95%, rgba(var(--tf-primary-rgb), 0.05));
}

.tf-translations-cell {
    max-width: 12rem;
    margin: 0 auto;
    padding: 0.35rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.35;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(15, 23, 42, 0.03);
}

.tf-translations-cell--missing {
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
    font-style: italic;
}

.tf-translations-modal textarea {
    min-height: 4.5rem;
    resize: vertical;
}

[data-bs-theme="dark"] .tf-translations-search .input-group-text {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .tf-translations-cell {
    background: rgba(255, 255, 255, 0.04);
}

[data-bs-theme="dark"] .tf-translations-cell--missing {
    background: rgba(245, 158, 11, 0.16);
}

[data-bs-theme="dark"] .tf-translations .tf-translations-table th.tf-col-actions,
[data-bs-theme="dark"] .tf-translations .tf-translations-table td.tf-col-actions {
    background: var(--tf-surface-elevated);
    box-shadow: -6px 0 10px rgba(0, 0, 0, 0.25);
}

[data-bs-theme="dark"] .tf-translations .tf-translations-table thead th.tf-col-actions {
    background: linear-gradient(180deg, rgba(var(--tf-primary-rgb), 0.08) 0%, rgba(var(--tf-primary-rgb), 0.04) 100%), var(--tf-surface-elevated);
}

[data-bs-theme="dark"] .tf-translations .tf-translations-table tbody tr:hover td.tf-col-actions {
    background: color-mix(in srgb, var(--tf-surface-elevated) 92%, rgba(var(--tf-primary-rgb), 0.08));
}

/* ---- Help Center ---- */
.tf-help-search {
    position: relative;
}

.tf-help-search--sticky {
    position: sticky;
    top: calc(var(--tf-header-height, 4rem) + 0.75rem);
    z-index: 20;
}

.tf-help-autocomplete {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 40;
    max-height: 18rem;
    overflow: auto;
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    background: var(--tf-surface);
    box-shadow: var(--tf-shadow);
}

.tf-help-autocomplete .list-group-item.active {
    background: rgba(var(--tf-primary-rgb), 0.08);
    color: var(--tf-text);
}

.tf-help-category-card {
    border: 1px solid var(--tf-border);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tf-help-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    border-color: rgba(var(--tf-primary-rgb), 0.35);
}

.tf-help-category-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--tf-primary-rgb), 0.1);
    color: var(--tf-primary);
    font-size: 1.25rem;
}

.tf-help-question-list .list-group-item {
    border-left: 0;
    border-right: 0;
}

.tf-help-article .tf-help-answer {
    line-height: 1.7;
}

.tf-help-highlight {
    background: rgba(255, 214, 102, 0.45);
    padding: 0 0.1em;
    border-radius: 0.15rem;
}

.tf-help-contact {
    background: linear-gradient(135deg, rgba(var(--tf-primary-rgb), 0.06), rgba(var(--tf-primary-rgb), 0.02));
}

.tf-help-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(var(--tf-primary-rgb), 0.1);
    color: var(--tf-primary);
    font-size: 0.8rem;
    font-weight: 600;
}

.tf-help-search-group {
    display: flex;
    align-items: stretch;
    border-radius: 999px;
    border: 1px solid rgba(var(--tf-primary-rgb), 0.15);
    background: var(--tf-surface);
    transition: border-color 0.15s ease;
}

.tf-help-search-group .form-control,
.tf-help-search-group .input-group-text {
    border: 0;
    background: transparent;
    box-shadow: none !important;
    outline: none !important;
}

.tf-help-search-group .input-group-text {
    border-radius: 999px 0 0 999px;
    padding-left: 1.1rem;
}

.tf-help-search-group .form-control {
    border-radius: 0 999px 999px 0;
    padding-right: 1.1rem;
    -webkit-appearance: none;
    appearance: none;
}

.tf-help-search-group .form-control:focus,
.tf-help-search-group .input-group-text:focus,
.tf-help-search-group .form-control:focus-visible,
.tf-help-search-group .input-group-text:focus-visible {
    border: 0;
    box-shadow: none !important;
    outline: none !important;
}

.tf-help-search-group:focus-within {
    border-color: rgba(var(--tf-primary-rgb), 0.35);
    box-shadow: none;
}

.tf-help-reference {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: var(--tf-text-muted);
}

.tf-help-card-link {
    color: var(--tf-accent);
}

.tf-help-modal .modal-content {
    border: 0;
    border-radius: calc(var(--tf-radius-lg));
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

#tfHelpChatModal {
    z-index: 1065;
}

body.modal-open .tf-help-widget {
    z-index: 1040;
}

.tf-help-widget {
    position: fixed;
    right: 1rem;
    bottom: 5.75rem;
    z-index: 1075;
}

.tf-help-widget-trigger {
    width: 3.75rem;
    height: 3.75rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tf-primary), var(--tf-accent));
    color: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.22);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    font-size: 1.1rem;
}

.tf-help-widget-trigger--online .tf-help-widget-status {
    color: #86efac;
}

.tf-help-widget-status {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tf-help-widget-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.75rem);
    width: min(22rem, calc(100vw - 2rem));
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: calc(var(--tf-radius-lg));
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.tf-help-widget-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid var(--tf-border);
}

.tf-help-widget-body {
    padding: 1rem;
}

.tf-help-widget-messages {
    max-height: 16rem;
    overflow: auto;
    margin-bottom: 0.75rem;
}

.tf-help-widget-msg {
    margin-bottom: 0.65rem;
}

.tf-help-widget-msg--agent {
    text-align: right;
}

.tf-help-widget-msg-meta {
    font-size: 0.7rem;
    color: var(--tf-muted, #64748b);
    margin-bottom: 0.15rem;
}

.tf-help-widget-msg-body {
    display: inline-block;
    padding: 0.55rem 0.75rem;
    border-radius: 0.85rem;
    background: rgba(var(--tf-primary-rgb), 0.08);
    text-align: left;
}

.tf-help-widget-msg--agent .tf-help-widget-msg-body {
    background: rgba(var(--tf-accent-rgb, 37, 99, 235), 0.12);
}

.tf-help-widget-compose input[type="file"] {
    grid-column: 1 / -1;
}

.tf-help-widget-compose {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: end;
}

/* ---- Mobile header navigation ---- */
.tf-navbar-toggler {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--tf-border-strong) !important;
    border-radius: var(--tf-radius-sm);
    background: var(--tf-surface-elevated);
    box-shadow: var(--tf-shadow-xs);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    transition: border-color var(--tf-transition), box-shadow var(--tf-transition), background var(--tf-transition);
}

.tf-navbar-toggler:hover,
.tf-navbar-toggler:focus-visible {
    border-color: rgba(var(--tf-primary-rgb), 0.35) !important;
    background: rgba(var(--tf-primary-rgb), 0.06);
    box-shadow: 0 0 0 3px rgba(var(--tf-primary-rgb), 0.12);
}

.tf-navbar-toggler-bar {
    display: block;
    width: 1.15rem;
    height: 2px;
    border-radius: 999px;
    background: var(--tf-text);
    transition: transform var(--tf-transition), opacity var(--tf-transition);
}

.tf-header .navbar-toggler[aria-expanded="true"] .tf-navbar-toggler-bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.tf-header .navbar-toggler[aria-expanded="true"] .tf-navbar-toggler-bar:nth-child(2) {
    opacity: 0;
}

.tf-header .navbar-toggler[aria-expanded="true"] .tf-navbar-toggler-bar:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 991.98px) {
    .tf-header-mobile-tools .tf-notify-menu--mobile {
        --bs-position: static;
    }

    .tf-header {
        height: 3.25rem;
        min-height: 3.25rem;
        --tf-header-height: 3.25rem;
    }

    .tf-header-container {
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.25rem;
        padding-top: 0.3rem;
        padding-bottom: 0.3rem;
    }

    .tf-header-brand {
        font-size: 0.9375rem;
        max-width: 36%;
        min-width: 0;
        margin-right: 0;
        padding-top: 0;
        padding-bottom: 0;
        flex-shrink: 1;
    }

    .tf-header-brand .tf-brand-logo {
        max-height: 22px;
        width: auto;
    }

    .tf-header-brand.navbar-brand--logo-only {
        max-width: 30%;
    }

    .tf-header-mobile-tools {
        position: relative;
        z-index: 1055;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        gap: 0.0625rem;
        margin-left: auto;
        padding: 0.1rem 0.18rem;
        border: 1px solid var(--tf-border);
        border-radius: 999px;
        background: color-mix(in srgb, var(--tf-surface-elevated) 88%, var(--tf-primary) 12%);
        box-shadow: var(--tf-shadow-xs);
    }

    [data-bs-theme="dark"] .tf-header-mobile-tools {
        background: rgba(255, 255, 255, 0.04);
    }

    .tf-header-mobile-tools .tf-header-tool-btn,
    .tf-header-mobile-tools .tf-lang-dropdown > .btn {
        width: 1.875rem;
        height: 1.875rem;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
        font-size: 0.78rem;
    }

    .tf-header-mobile-tools .tf-header-tool-btn i,
    .tf-header-mobile-tools .tf-lang-dropdown > .btn i {
        font-size: 0.78rem;
        line-height: 1;
    }

    .tf-header-mobile-tools .tf-lang-dropdown > .btn::after,
    .tf-header-mobile-tools .tf-notify-dropdown > .dropdown-toggle::after {
        display: none;
    }

    .tf-header-mobile-tools .tf-notify-badge {
        top: -0.05rem;
        right: -0.05rem;
        min-width: 0.8rem;
        height: 0.8rem;
        font-size: 0.5rem;
        border-width: 1.5px;
    }

    .tf-header-mobile-tools .tf-notify-dropdown .dropdown-menu,
    .tf-header-mobile-tools .tf-notify-dropdown .dropdown-menu.show {
        position: fixed !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        top: calc(var(--tf-header-height) + 0.35rem) !important;
        transform: translateX(-50%) !important;
        width: min(22rem, calc(100vw - 1.5rem)) !important;
        max-width: calc(100vw - 1.5rem) !important;
        margin: 0 !important;
        z-index: 1065;
    }

    .tf-header-mobile-tools .tf-lang-dropdown .dropdown-menu {
        position: absolute !important;
        right: 0 !important;
        left: auto !important;
        transform: none !important;
        margin-top: 0.35rem !important;
    }

    .tf-navbar-toggler {
        width: 2.125rem;
        height: 2.125rem;
        margin-left: 0.1rem;
        gap: 0.2rem;
    }

    .tf-header .tf-navbar-toggler .tf-navbar-toggler-bar {
        width: 0.95rem;
        height: 1.5px;
    }

    .tf-header .navbar-toggler[aria-expanded="true"] .tf-navbar-toggler-bar:nth-child(1) {
        transform: translateY(4px) rotate(45deg);
    }

    .tf-header .navbar-toggler[aria-expanded="true"] .tf-navbar-toggler-bar:nth-child(3) {
        transform: translateY(-4px) rotate(-45deg);
    }

    .tf-header > .navbar {
        position: relative;
        padding-top: 0;
        padding-bottom: 0;
    }

    .tf-header .navbar > .container {
        position: relative;
    }

    .tf-header .navbar-collapse {
        position: fixed;
        top: calc(var(--tf-header-height) + 0.25rem);
        left: 0.75rem;
        right: 0.75rem;
        z-index: 1045;
        background: var(--tf-surface-elevated);
        border: 1px solid var(--tf-border);
        border-radius: calc(var(--tf-radius) + 0.15rem);
        box-shadow: var(--tf-shadow-lg);
        padding: 0.85rem 0.75rem 1rem;
        max-height: calc(100dvh - var(--tf-header-height) - 0.75rem);
        overflow: hidden;
    }

    .tf-header .navbar-collapse.collapsing,
    .tf-header .navbar-collapse.show {
        display: flex;
        flex-direction: column;
    }

    .tf-header .navbar-collapse.show {
        min-height: calc(100dvh - var(--tf-header-height) - 0.75rem);
    }

    .tf-header .navbar-nav {
        gap: 0.15rem;
        margin-bottom: 0.75rem;
    }

    .tf-header .nav-link {
        border-radius: var(--tf-radius-sm);
        padding: 0.7rem 0.85rem !important;
    }

    .tf-header-toolbar {
        width: 100%;
        padding: 0.25rem 0 0;
        border-top: 1px solid var(--tf-border);
        margin-top: 0.25rem;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.5rem;
        overflow: visible;
    }

    .tf-header-toolbar--customer-mobile {
        border-top: 0;
        margin-top: 0;
        padding-top: 0.5rem;
    }

    .tf-header-auth {
        width: 100%;
        justify-content: stretch;
    }

    .tf-header-auth .btn {
        flex: 1 1 auto;
    }

    .tf-header .navbar-collapse .dropdown-menu {
        z-index: 1060;
    }

    .tf-header-toolbar .dropdown {
        position: relative;
    }

    .tf-mobile-customer-nav {
        flex: 1 1 auto;
        min-height: 0;
        margin-bottom: 0;
        padding-bottom: 0.25rem;
        border-bottom: 0;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tf-mobile-nav-user {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.35rem 0.85rem 0.65rem;
        margin-bottom: 0.15rem;
        border-bottom: 1px solid var(--tf-border);
    }

    .tf-mobile-nav-section .nav-link.disabled {
        opacity: 1;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--tf-text-muted);
        padding-top: 0.85rem;
        padding-bottom: 0.25rem;
    }

    .tf-mobile-customer-nav .nav-link i {
        width: 1.1rem;
        text-align: center;
    }

    body.tf-mobile-nav-open {
        overflow: hidden;
    }
}

/* ---- Mobile footer utilities row ---- */
@media (max-width: 767.98px) {
    .tf-footer-legal-bar {
        padding-bottom: calc(0.875rem + env(safe-area-inset-bottom, 0px));
    }

    .tf-footer-legal-bar-inner {
        flex-direction: column;
        gap: 0.65rem;
    }

    .tf-footer-legal-copy {
        width: 100%;
    }

    .tf-footer-legal-utilities {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.85rem;
        width: 100%;
        flex-wrap: nowrap;
        padding-inline: 0.25rem;
    }

    .tf-footer-utility-slot {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tf-footer-utility-slot--made-in {
        flex: 0 0 auto;
        min-width: 0;
        margin-inline: 0.15rem;
    }

    .tf-footer-utility-slot--chat {
        margin-right: 0.1rem;
    }

    .tf-footer-utility-slot--a11y {
        margin-left: 0.1rem;
    }

    .tf-footer-utility-slot--chat:empty,
    .tf-footer-utility-slot--a11y:empty {
        display: none;
    }

    .tf-footer-legal-utilities .tf-made-in-de {
        width: auto;
        max-width: min(100%, 11.5rem);
        padding: 0.5rem 0.625rem 0.5rem 0.5rem;
        gap: 0.5rem;
        white-space: nowrap;
    }

    .tf-footer-legal-utilities .tf-made-in-de__flag {
        height: 1.85rem;
        width: 0.38rem;
    }

    .tf-footer-legal-utilities .tf-made-in-de__line1 {
        font-size: 0.5625rem;
        letter-spacing: 0.08em;
    }

    .tf-footer-legal-utilities .tf-made-in-de__line2 {
        font-size: 0.8125rem;
        line-height: 1.1;
    }

    @media (max-width: 380px) {
        .tf-footer-legal-utilities {
            gap: 0.65rem;
        }

        .tf-footer-legal-utilities .tf-made-in-de {
            padding: 0.4rem 0.5rem 0.4rem 0.42rem;
            max-width: min(100%, 10rem);
        }

        .tf-footer-legal-utilities .tf-made-in-de__flag {
            height: 1.55rem;
        }

        .tf-footer-legal-utilities .tf-made-in-de__line2 {
            font-size: 0.72rem;
        }

        .tf-help-widget--mobile-inline .tf-help-widget-trigger,
        .tf-a11y-widget--mobile-inline .tf-a11y-trigger {
            width: 2.65rem;
            height: 2.65rem;
            min-width: 2.65rem;
        }
    }

    body.tf-footer-utilities-mobile .tf-help-widget:not(.tf-help-widget--mobile-inline),
    body.tf-footer-utilities-mobile .tf-a11y-widget:not(.tf-a11y-widget--mobile-inline) {
        opacity: 0;
        pointer-events: none;
    }

    .tf-help-widget--mobile-inline,
    .tf-a11y-widget--mobile-inline {
        position: relative;
        right: auto;
        bottom: auto;
        z-index: 2;
    }

    .tf-help-widget--mobile-inline .tf-help-widget-trigger {
        width: 2.85rem;
        height: 2.85rem;
        flex-direction: row;
        gap: 0;
        font-size: 1rem;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
    }

    .tf-help-widget--mobile-inline .tf-help-widget-status {
        display: none;
    }

    .tf-a11y-widget--mobile-inline .tf-a11y-trigger {
        height: 2.85rem;
        min-width: 2.85rem;
        padding: 0 0.55rem;
        justify-content: center;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
    }

    .tf-a11y-widget--mobile-inline .tf-a11y-score {
        font-size: 0.72rem;
    }

    .tf-help-widget--mobile-inline .tf-help-widget-panel,
    .tf-a11y-widget--mobile-inline .tf-a11y-panel {
        position: fixed;
        left: 0.75rem;
        right: 0.75rem;
        bottom: auto;
        top: auto;
        width: auto;
        max-width: none;
    }

    .tf-help-widget--mobile-inline .tf-help-widget-panel {
        bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    }

    .tf-a11y-widget--mobile-inline .tf-a11y-panel {
        bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 768px) {
    .tf-footer-utility-slot--chat,
    .tf-footer-utility-slot--a11y {
        display: none !important;
    }
}
