/**
 * Trustify public design system
 * Primary: #284A66 | Secondary: #FFFFFF
 */
:root {
    --tf-primary: #284A66;
    --tf-primary-dark: #1C3549;
    --tf-primary-light: #3A6282;
    --tf-primary-pale: #F7F8FA;
    --tf-primary-soft: #F0F2F5;
    --tf-white: #FFFFFF;
    --tf-text: #1A2B38;
    --tf-text-muted: #5A6B78;
    --tf-border: #DDE5EC;
    --tf-shadow-sm: 0 2px 8px rgba(40, 74, 102, 0.06);
    --tf-shadow-md: 0 8px 24px rgba(40, 74, 102, 0.08);
    --tf-radius: 12px;
    --tf-radius-lg: 16px;
    --tf-radius-xl: 24px;
    --tf-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --tf-container: 1200px;
    --tf-container-wide: 1280px;

    /* Legacy token aliases */
    --tenant-primary: var(--tf-primary);
    --tenant-secondary: var(--tf-white);
    --tenant-primary-light: var(--tf-primary-light);
    --tenant-primary-pale: var(--tf-primary-pale);
    --tenant-secondary-dark: var(--tf-primary-dark);
    --tenant-text-dark: var(--tf-text);
    --tenant-heading-dark: var(--tf-text);
    --tenant-dark: var(--tf-primary-dark);
}

body:not(.tenant-branded):not(.portal-theme-active) {
    font-family: var(--tf-font);
    color: var(--tf-text);
    background: var(--tf-white);
    -webkit-font-smoothing: antialiased;
}

/* ---- Layout ---- */
.tf-page {
    background: var(--tf-white);
    overflow-x: hidden;
}

.tf-container {
    width: 100%;
    max-width: var(--tf-container);
    margin: 0 auto;
    padding: 0 24px;
}

.tf-container--wide {
    max-width: var(--tf-container-wide);
}

.tf-section {
    padding: 80px 0;
}

.tf-section--muted {
    background: var(--tf-white);
    border-top: 1px solid var(--tf-border);
    border-bottom: 1px solid var(--tf-border);
}

.tf-section--soft {
    background: var(--tf-primary-soft);
}

.tf-section--primary {
    background: var(--tf-primary);
    color: var(--tf-white);
}

.tf-section--compact {
    padding: 56px 0;
}

.tf-section--bordered {
    border-top: 1px solid var(--tf-border);
}

/* ---- Legal & FAQ content pages ---- */
.tf-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tf-primary-light);
    margin-bottom: 16px;
}

.tf-section--primary .tf-eyebrow {
    color: rgba(255, 255, 255, 0.75);
}

.tf-heading-xl {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--tf-text);
    margin: 0 0 20px;
}

.tf-section--primary .tf-heading-xl,
.tf-hero .tf-heading-xl {
    color: var(--tf-white);
}

.tf-heading-lg {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--tf-text);
    margin: 0 0 16px;
}

.tf-heading-md {
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--tf-text);
    margin: 0 0 12px;
}

.tf-lead {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--tf-text-muted);
    margin: 0;
    max-width: 640px;
}

.tf-section--primary .tf-lead,
.tf-hero .tf-lead {
    color: rgba(255, 255, 255, 0.88);
}

.tf-text-center {
    text-align: center;
}

.tf-text-center .tf-lead {
    margin-left: auto;
    margin-right: auto;
}

/* ---- Hero ---- */
.tf-hero {
    background: var(--tf-primary);
    color: var(--tf-white);
    padding: 96px 0 80px;
    text-align: center;
}

.tf-hero--compact {
    padding: 72px 0 56px;
}

.tf-hero .tf-heading-xl {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.tf-hero .tf-lead {
    max-width: 720px;
    margin: 0 auto;
}

/* ---- Buttons ---- */
.tf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--tf-font);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    padding: 14px 28px;
    border-radius: 999px;
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tf-btn--primary {
    background: var(--tf-primary);
    color: var(--tf-white);
    border-color: var(--tf-primary);
}

.tf-btn--primary:hover {
    background: var(--tf-primary-dark);
    border-color: var(--tf-primary-dark);
    color: var(--tf-white);
    box-shadow: var(--tf-shadow-md);
    transform: translateY(-1px);
}

.tf-btn--white {
    background: var(--tf-white);
    color: var(--tf-primary);
    border-color: var(--tf-white);
}

.tf-btn--white:hover {
    background: var(--tf-primary-pale);
    color: var(--tf-primary-dark);
}

.tf-btn--outline {
    background: transparent;
    color: var(--tf-primary);
    border-color: var(--tf-primary);
}

.tf-btn--outline:hover {
    background: var(--tf-primary-pale);
}

.tf-hero .tf-btn {
    margin-top: 32px;
}

/* ---- Cards & grids ---- */
.tf-grid {
    display: grid;
    gap: 24px;
}

.tf-grid--2 {
    grid-template-columns: 1fr;
}

.tf-grid--3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .tf-grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .tf-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .tf-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tf-card {
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 32px;
    box-shadow: var(--tf-shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tf-card:hover {
    box-shadow: var(--tf-shadow-md);
    transform: translateY(-2px);
}

.tf-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    margin-bottom: 20px;
}

.tf-card__icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.tf-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tf-text);
    margin: 0 0 12px;
}

.tf-card__text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--tf-text-muted);
    margin: 0;
}

/* ---- Split content ---- */
.tf-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .tf-split {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.tf-split__media img {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: var(--tf-radius-lg);
    display: block;
    margin: 0 auto;
}

/* ---- CTA panel ---- */
.tf-cta-panel {
    background: var(--tf-white);
    border-radius: var(--tf-radius-xl);
    padding: 48px 32px;
    text-align: center;
    box-shadow: var(--tf-shadow-md);
}

.tf-section--primary .tf-cta-panel .tf-heading-lg {
    color: var(--tf-text);
}

.tf-section--primary .tf-cta-panel .tf-lead {
    color: var(--tf-text-muted);
}

/* Primary (dark) CTA panel — sits on a light section for footer separation */
.tf-cta-panel--primary {
    background: linear-gradient(135deg, var(--tf-primary) 0%, var(--tf-primary-dark) 100%);
    box-shadow: 0 24px 60px rgba(40, 74, 102, 0.22);
    max-width: 960px;
    margin: 0 auto;
}

.tf-cta-panel--primary .tf-eyebrow {
    color: rgba(255, 255, 255, 0.75);
}

.tf-cta-panel--primary .tf-heading-lg {
    color: var(--tf-white) !important;
}

.tf-cta-panel--primary .tf-lead {
    color: rgba(255, 255, 255, 0.85) !important;
    margin-left: auto;
    margin-right: auto;
}

.tf-cta-panel--primary .tf-btn--primary {
    background: var(--tf-white);
    color: var(--tf-primary);
    border-color: var(--tf-white);
}

.tf-cta-panel--primary .tf-btn--primary:hover {
    background: var(--tf-primary-pale);
    color: var(--tf-primary-dark);
}

/* ---- Trust pills ---- */
.tf-trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.tf-trust-pills span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tf-primary);
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    border-radius: 999px;
    padding: 8px 14px;
}

.tf-trust-pills span i {
    font-size: 0.75rem;
    opacity: 0.85;
}

/* ---- Footer ---- */
body:not(.tenant-branded):not(.portal-theme-active) .footer-main,
body:not(.tenant-branded):not(.portal-theme-active) .tf-footer {
    background: var(--tf-primary) !important;
    color: rgba(255, 255, 255, 0.85);
    padding: 64px 0 0;
    font-family: var(--tf-font);
    border-top: none !important;
    float: none !important;
}

body:not(.tenant-branded):not(.portal-theme-active) .footer-brand .footer-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9375rem;
    line-height: 1.6;
}

body:not(.tenant-branded):not(.portal-theme-active) .footer-title {
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

body:not(.tenant-branded):not(.portal-theme-active) .footer-link,
body:not(.tenant-branded):not(.portal-theme-active) .footer-bottom-link,
body:not(.tenant-branded):not(.portal-theme-active) .footer-copyright {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9375rem;
}

body:not(.tenant-branded):not(.portal-theme-active) .footer-link:hover,
body:not(.tenant-branded):not(.portal-theme-active) .footer-bottom-link:hover {
    color: #FFFFFF !important;
    text-decoration: none;
}

body:not(.tenant-branded):not(.portal-theme-active) .footer-social {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

body:not(.tenant-branded):not(.portal-theme-active) .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.2s, transform 0.2s;
}

body:not(.tenant-branded):not(.portal-theme-active) .footer-social a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
}

body:not(.tenant-branded):not(.portal-theme-active) .footer-social img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

body:not(.tenant-branded):not(.portal-theme-active) .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 48px;
    padding: 24px 4vw;
}

/* ---- Enhanced inner pages ---- */
.tf-page-hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.tf-page-hero-stats div {
    text-align: center;
    min-width: 100px;
}

.tf-page-hero-stats strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.tf-page-hero-stats span {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tf-values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .tf-values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tf-value-card {
    padding: 28px;
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    text-align: center;
}

.tf-value-card i {
    font-size: 1.5rem;
    color: var(--tf-primary);
    margin-bottom: 16px;
}

.tf-value-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--tf-text);
}

.tf-value-card p {
    font-size: 0.9375rem;
    color: var(--tf-text-muted);
    line-height: 1.55;
    margin: 0;
}


/* ---- Contact form ---- */
.tf-contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .tf-contact-layout {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 40px;
    }
}

.tf-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tf-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.tf-input,
.tf-textarea {
    font-family: var(--tf-font) !important;
    font-size: 1rem !important;
    width: 100% !important;
    background: var(--tf-white) !important;
    border: 1px solid var(--tf-border) !important;
    border-radius: var(--tf-radius) !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tf-input {
    height: 48px !important;
    padding: 0 14px !important;
}

.tf-textarea {
    min-height: 140px !important;
    padding: 14px !important;
    resize: vertical;
}

.tf-input:focus,
.tf-textarea:focus {
    outline: none;
    border-color: var(--tf-primary) !important;
    box-shadow: 0 0 0 3px rgba(40, 74, 102, 0.12) !important;
}

.tf-info-panel {
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 32px;
}

.tf-info-panel__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tf-text);
    margin: 0 0 24px;
}

.tf-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--tf-text-muted);
}

.tf-info-item svg path {
    fill: var(--tf-primary);
}

.tf-alert {
    padding: 14px 16px;
    border-radius: var(--tf-radius);
    font-size: 0.9375rem;
    display: none;
}

.tf-alert--success {
    background: var(--tf-white);
    color: var(--tf-primary-dark);
    border: 1px solid var(--tf-border);
}

.tf-alert--error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.tf-alert.show {
    display: block;
}

.tf-loading {
    display: none;
    text-align: center;
    padding: 20px;
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
}

.tf-loading.show {
    display: block;
}

.tf-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--tf-border);
    border-top-color: var(--tf-primary);
    border-radius: 50%;
    animation: tf-spin 0.8s linear infinite;
    margin: 0 auto 10px;
}

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

/* ---- Legal pages ---- */
.tf-legal-updated {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--tf-text-muted);
    background: var(--tf-primary-pale);
    border: 1px solid var(--tf-border);
    border-radius: 999px;
    padding: 8px 16px;
    margin-bottom: 32px;
}

.tf-legal-body {
    max-width: 820px;
    margin: 0 auto;
}

.tf-legal-content .section {
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 28px 32px;
    margin-bottom: 20px;
}

.tf-legal-content .section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tf-text);
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

.tf-legal-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--tf-text);
    margin: 24px 0 12px;
}

.tf-legal-content .text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--tf-text-muted);
    margin: 0 0 14px;
}

.tf-legal-content .text:last-child {
    margin-bottom: 0;
}

.tf-legal-content .list {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--tf-text-muted);
    margin: 0 0 14px;
    padding-left: 1.25rem;
}

.tf-legal-content .list-item {
    margin-bottom: 8px;
}

.tf-legal-content strong {
    font-weight: 600;
    color: var(--tf-text);
}

.tf-legal-content a {
    color: var(--tf-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tf-legal-content a:hover {
    color: var(--tf-primary-dark);
}

.tf-legal-content .contact-info {
    background: var(--tf-primary);
    border-radius: var(--tf-radius-lg);
    padding: 28px 32px;
    margin-top: 32px;
    text-align: center;
    border: none;
}

.tf-legal-content .contact-info-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--tf-white);
    margin: 0 0 12px;
}

.tf-legal-content .contact-info-text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 8px;
}

.tf-legal-content .contact-email {
    color: var(--tf-white);
    font-weight: 600;
}

/* ---- FAQ page ---- */
.tf-page-faq .tf-faq-nav {
    display: block;
    position: static;
    width: 100%;
    height: auto;
    min-height: 0;
    line-height: normal;
    color: inherit;
    background: var(--tf-primary-pale);
    box-shadow: none;
    z-index: auto;
}

.tf-page-faq .tf-faq-nav__title {
    display: block;
    float: none;
}

.tf-page-faq .tf-faq-nav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tf-page-faq .tf-faq-nav__link {
    display: inline-flex;
    align-items: center;
    float: none;
    height: auto;
    line-height: 1.3;
    white-space: nowrap;
}

.tf-page-faq .tf-faq-section {
    clear: both;
}

.tf-page-faq .tf-faq-section__title {
    display: block;
    clear: both;
    float: none;
}

.tf-faq-nav {
    background: var(--tf-primary-pale);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 24px 28px;
    margin-bottom: 48px;
}

.tf-faq-nav__title {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tf-text-muted);
    margin: 0 0 16px;
}

.tf-faq-nav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tf-faq-nav__link {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tf-primary);
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    border-radius: 999px;
    padding: 8px 16px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.tf-faq-nav__link:hover {
    border-color: var(--tf-primary);
    color: var(--tf-primary-dark);
    text-decoration: none;
}

.tf-faq-nav__link.is-active {
    background: var(--tf-primary);
    border-color: var(--tf-primary);
    color: var(--tf-white);
}

.tf-faq-section {
    margin-bottom: 56px;
    scroll-margin-top: 100px;
}

.tf-faq-section__title {
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--tf-text);
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}

.tf-faq-grid {
    display: grid;
    gap: 16px;
}

.tf-faq-item {
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 24px 28px;
    transition: box-shadow 0.2s ease;
}

.tf-faq-item:hover {
    box-shadow: var(--tf-shadow-sm);
}

.tf-faq-item__question {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--tf-text);
    margin: 0 0 12px;
    line-height: 1.4;
}

.tf-faq-item__answer {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--tf-text-muted);
    margin: 0;
}

.tf-faq-item__answer a {
    color: var(--tf-primary);
    font-weight: 600;
    text-decoration: none;
}

.tf-faq-item__answer a:hover {
    color: var(--tf-primary-dark);
    text-decoration: underline;
}

.tf-faq-cta {
    margin-top: 8px;
    padding: 28px 32px;
    text-align: center;
    background: var(--tf-primary-pale);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--tf-text-muted);
}

.tf-faq-cta a {
    color: var(--tf-primary);
    font-weight: 600;
    text-decoration: none;
}

.tf-faq-cta a:hover {
    color: var(--tf-primary-dark);
    text-decoration: underline;
}

/* ---- Fade animation ---- */
.tf-fade {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tf-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}
body:not(.tenant-branded):not(.portal-theme-active) nav.main_nav .auth_menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

body:not(.tenant-branded):not(.portal-theme-active) nav.main_nav .auth_menu li {
    line-height: normal;
    float: none;
}

body:not(.tenant-branded):not(.portal-theme-active) nav.main_nav .auth_menu .btn-green {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    font-family: var(--tf-font, 'Inter', sans-serif) !important;
    font-size: 0.9375rem !important;
    border: 2px solid rgba(255, 255, 255, 0.88) !important;
    border-radius: 999px !important;
    padding: 10px 22px !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    min-height: 42px;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s, border-color 0.2s, color 0.2s !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    text-transform: none !important;
}

body:not(.tenant-branded):not(.portal-theme-active) nav.main_nav .logo-btn-light {
    color: rgba(255, 255, 255, 0.72) !important;
    opacity: 1 !important;
}

body:not(.tenant-branded):not(.portal-theme-active) nav.main_nav .logo-btn-light:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
}

body:not(.tenant-branded):not(.portal-theme-active) nav.main_nav .logo-btn-light.active,
body:not(.tenant-branded):not(.portal-theme-active) nav.main_nav .menue_bar .logo-btn.active {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #FFFFFF !important;
    opacity: 1 !important;
    font-weight: 700 !important;
}

body:not(.tenant-branded):not(.portal-theme-active) nav.main_nav .auth_menu .btn-green:hover:not(.active),
body:not(.tenant-branded):not(.portal-theme-active) nav.main_nav .auth_menu .btn-green:focus:not(.active) {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
    box-shadow: none !important;
    transform: translateY(-1px);
}

body:not(.tenant-branded):not(.portal-theme-active) nav.main_nav .auth_menu .btn-green.active {
    background: #FFFFFF !important;
    color: #284A66 !important;
    border-color: #FFFFFF !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18) !important;
    font-weight: 700 !important;
}

body:not(.tenant-branded):not(.portal-theme-active) nav.main_nav .auth_menu .btn-green.active:hover,
body:not(.tenant-branded):not(.portal-theme-active) nav.main_nav .auth_menu .btn-green.active:focus {
    background: #FFFFFF !important;
    color: #284A66 !important;
    border-color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
    transform: translateY(-1px);
}

/* ============================================================
   HOME PAGE (personal.php)
   ============================================================ */
.tf-page-home .personal-hero-col {
    display: flex;
    align-items: center;
    min-height: 560px;
}

.tf-page-home .personal-hero-copy {
    max-width: 600px;
    margin-left: 40px;
}

.tf-page-home .personal-hero-lead {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--tf-text-muted);
    margin-bottom: 24px;
}

.tf-page-home .personal-hero-cta,
.tf-page-home .borderless-btn,
.tf-page-home .reaches-btn {
    background: var(--tf-primary) !important;
    color: var(--tf-white) !important;
    border: none !important;
    box-shadow: var(--tf-shadow-sm) !important;
    border-radius: 999px !important;
}

.tf-page-home .personal-hero-cta:hover,
.tf-page-home .borderless-btn:hover,
.tf-page-home .reaches-btn:hover {
    background: var(--tf-primary-dark) !important;
    color: var(--tf-white) !important;
    transform: translateY(-1px);
    box-shadow: var(--tf-shadow-md) !important;
}

.tf-page-home .trostify-trust-strip span,
.tf-page-home .tf-trust-pills span {
    color: var(--tf-primary);
    background: var(--tf-white);
    border-color: var(--tf-border);
    box-shadow: none;
}

.tf-page-home #home_second_row {
    background: var(--tf-white) !important;
    border-top: 1px solid var(--tf-border);
    border-bottom: 1px solid var(--tf-border);
    padding: 64px 24px !important;
}

.tf-page-home #home_second_row h2 {
    color: var(--tf-text) !important;
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
    font-weight: 700 !important;
    margin-bottom: 32px !important;
}

.tf-page-home #exchange_row,
.tf-page-home #fifth_row_app {
    background: var(--tf-white) !important;
}

.tf-page-home .why-choose-title,
.tf-page-home .security-title,
.tf-page-home .connect-title,
.tf-page-home .borderless-title,
.tf-page-home .beyond-title,
.tf-page-home .reaches-title {
    color: var(--tf-text) !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
}

.tf-page-home .why-choose-feature {
    background: var(--tf-white) !important;
    border: 1px solid var(--tf-border) !important;
    border-radius: var(--tf-radius-lg) !important;
    box-shadow: var(--tf-shadow-sm) !important;
    padding: 28px 24px !important;
}

.tf-page-home .why-choose-icon-bg {
    background: var(--tf-white) !important;
    box-shadow: none !important;
    border: 1px solid var(--tf-border);
}

.tf-page-home .why-choose-heading,
.tf-page-home .As-easy-gets-heading {
    color: var(--tf-text) !important;
    font-size: 1.25rem !important;
}

.tf-page-home .why-choose-desc,
.tf-page-home .As-easy-gets-desc,
.tf-page-home .security-desc,
.tf-page-home .connect-desc,
.tf-page-home .borderless-desc,
.tf-page-home .beyond-desc {
    color: var(--tf-text-muted) !important;
    font-size: 1rem !important;
}

.tf-page-home #countries_row {
    background: var(--tf-white) !important;
    border-top: 1px solid var(--tf-border);
}

.tf-page-home .security-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem) !important;
}

.tf-page-home #signup_login_row {
    background: var(--tf-white) !important;
    padding: 64px 0 !important;
}

.tf-page-home .connect-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem) !important;
}

.tf-page-home #say_Hello_to_Borderless_row {
    background: var(--tf-white) !important;
    border-top: 1px solid var(--tf-border);
    min-height: auto !important;
    padding: 64px 0 !important;
}

.tf-page-home .borderless-container {
    background: var(--tf-white) !important;
    border: 1px solid var(--tf-border) !important;
    border-radius: var(--tf-radius-xl) !important;
    box-shadow: var(--tf-shadow-md) !important;
    padding: 48px 32px !important;
    max-width: 900px !important;
}

.tf-page-home .borderless-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
    margin-bottom: 20px !important;
}

.tf-page-home .borderless-desc {
    font-size: 1.0625rem !important;
    margin-bottom: 28px !important;
}

.tf-page-home #Bank_Beyond_row {
    background: var(--tf-primary) !important;
    min-height: auto !important;
    padding: 64px 0 !important;
}

.tf-page-home .beyond-container {
    background: var(--tf-white) !important;
    border-radius: var(--tf-radius-xl) !important;
    padding: 48px 32px !important;
    box-shadow: var(--tf-shadow-md) !important;
}

.tf-page-home .beyond-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
    color: var(--tf-text) !important;
}

.tf-page-home #Burq_FX_reaches_row {
    padding: 64px 0 !important;
}

.tf-page-home .reaches-btn {
    background: var(--tf-primary) !important;
    color: var(--tf-white) !important;
}

.tf-page-home .reaches-flag-img {
    box-shadow: var(--tf-shadow-sm) !important;
    border: 2px solid var(--tf-border);
}

.tf-page-home .reaches-flag-label {
    color: var(--tf-text-muted) !important;
    font-size: 0.9375rem !important;
}

.tf-page-home .container {
    padding-left: 24px !important;
    padding-right: 24px !important;
}

@media (max-width: 992px) {
    .tf-section {
        padding: 56px 0;
    }

    .tf-hero {
        padding: 72px 0 56px;
    }

    .tf-page-home .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}
