﻿:root {
    --bf-bg: #f5f7f8;
    --bf-surface: #ffffff;
    --bf-elevated: #ffffff;
    --bf-text: #111827;
    --bf-muted: #3f4a5c;
    --bf-border: #cbd5df;
    --bf-primary: #0b6b63;
    --bf-primary-dark: #084f49;
    --bf-primary-soft: #e8f4f1;
    --bf-accent: #a45b0f;
    --bf-accent-dark: #783600;
    --bf-accent-soft: #fff3df;
    --bf-info: #385c8a;
    --bf-info-dark: #243b5a;
    --bf-info-soft: #eef4fb;
    --bf-ink: #182033;
    --bf-soft: var(--bf-primary-soft);
    --bf-footer-bg: #063934;
    --bf-footer-bg-2: #084f49;
    --bf-footer-text: #f6fbfa;
    --bf-footer-muted: #c9ddd9;
    --bf-footer-line: rgba(214, 231, 226, 0.2);
    --bf-radius: 8px;
    --bf-shadow: 0 18px 44px rgba(20, 32, 46, 0.1);
    --bf-font-arabic: "Tajawal", "IBM Plex Sans Arabic", "Cairo", "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body.bf-rtl {
    background: var(--bf-bg);
    color: var(--bf-text);
    direction: rtl;
    font-family: var(--bf-font-arabic);
    font-feature-settings: "kern";
    font-size: 17px;
    line-height: 1.8;
    margin: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.bf-rtl button,
body.bf-rtl input,
body.bf-rtl select,
body.bf-rtl textarea {
    font-family: var(--bf-font-arabic);
    letter-spacing: 0;
}

a {
    color: inherit;
}

.bf-container {
    margin: 0 auto;
    max-width: 1180px;
    padding: 0 20px;
}

.bf-site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--bf-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.bf-header-inner {
    align-items: center;
    display: flex;
    gap: 22px;
    min-height: 76px;
}

.bf-brand {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    min-height: 44px;
    min-width: 190px;
    text-decoration: none;
}

.bf-brand-mark {
    align-items: center;
    background-color: var(--bf-primary);
    background-image: linear-gradient(135deg, var(--bf-primary) 0%, var(--bf-info) 100%);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-size: 24px;
    font-weight: 700;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.bf-brand strong,
.bf-brand em {
    display: block;
    font-style: normal;
}

.bf-brand strong {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
}

.bf-brand em {
    color: var(--bf-muted);
    font-size: 12px;
    line-height: 1.3;
}

.bf-main-nav {
    flex: 1;
}

.bf-menu,
.bf-footer-menu {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bf-menu a,
.bf-footer-menu a {
    align-items: center;
    color: #334155;
    display: inline-flex;
    font-size: 15px;
    font-weight: 700;
    min-height: 44px;
    text-decoration: none;
}

.bf-menu a:hover,
.bf-footer-menu a:hover {
    color: var(--bf-primary);
}

.bf-header-actions {
    align-items: center;
    display: flex;
    gap: 10px;
}

.bf-primary-button,
.bf-secondary-button,
.bf-link-button,
.bf-card-link,
.bf-form-actions button,
.bf-search button {
    align-items: center;
    border-radius: 7px;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    text-decoration: none;
}

.bf-primary-button,
.bf-form-actions button,
.bf-search button {
    background: var(--bf-primary);
    border: 1px solid var(--bf-primary);
    color: #fff;
}

.bf-primary-button:hover,
.bf-form-actions button:hover,
.bf-search button:hover {
    background: var(--bf-primary-dark);
    border-color: var(--bf-primary-dark);
}

.bf-secondary-button,
.bf-link-button,
.bf-card-link {
    background: var(--bf-surface);
    border: 1px solid var(--bf-border);
    color: var(--bf-ink);
}

.bf-secondary-button:hover,
.bf-link-button:hover,
.bf-card-link:hover {
    background: var(--bf-info-soft);
    border-color: #c7d5e8;
    color: var(--bf-info-dark);
}

.bf-hero {
    background: linear-gradient(180deg, #ffffff 0%, var(--bf-primary-soft) 68%, #f6f8f7 100%);
    border-bottom: 1px solid var(--bf-border);
}

.bf-hero-grid {
    display: grid;
    gap: 36px;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    min-height: 430px;
    padding-bottom: 32px;
    padding-top: 42px;
}

.bf-hero-copy h1 {
    color: var(--bf-ink);
    font-size: clamp(36px, 4.4vw, 52px);
    font-weight: 800;
    line-height: 1.2;
    margin: 8px 0 16px;
}

.bf-hero-copy p {
    color: #334155;
    font-size: 18px;
    font-weight: 500;
    max-width: 720px;
}

.bf-eyebrow,
.bf-section-head p,
.bf-page-title p {
    color: var(--bf-primary-dark);
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.bf-search {
    background: var(--bf-surface);
    border: 1px solid var(--bf-border);
    border-radius: 8px;
    box-shadow: var(--bf-shadow);
    display: flex;
    gap: 8px;
    margin: 28px 0 18px;
    max-width: 720px;
    padding: 8px;
}

.bf-search input {
    border: 0;
    color: var(--bf-text);
    flex: 1;
    font: inherit;
    font-size: 17px;
    min-height: 46px;
    outline: 0;
    padding: 0 12px;
}

.bf-live-form input::placeholder,
.bf-live-form textarea::placeholder,
.bf-search input::placeholder {
    color: #7a8594;
}

.bf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bf-hero-panel {
    align-self: center;
    background: var(--bf-elevated);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius);
    box-shadow: var(--bf-shadow);
    padding: 26px;
}

.bf-hero-panel h2 {
    margin-top: 0;
}

.bf-hero-panel li {
    margin-bottom: 8px;
}

.bf-section {
    padding-bottom: 56px;
    padding-top: 56px;
}

.bf-hero + .bf-section {
    padding-top: 28px;
}

.bf-service-strip {
    padding-top: 18px;
}

.bf-section-head {
    margin-bottom: 22px;
}

.bf-section-head h2,
.bf-band h2 {
    color: var(--bf-ink);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.35;
    margin: 6px 0 0;
}

.bf-band h2 {
    color: var(--bf-primary-dark);
}

.bf-section-head p,
.bf-page-title > p:last-child,
.bf-archive-head > p:last-child,
.bf-template-head p,
.bf-card p,
.bf-rich-content p,
.bf-rich-content li {
    color: #3f4a5c;
}

.bf-card h2 a,
.bf-category-grid a {
    color: var(--bf-ink);
}

.bf-card h2 a:hover,
.bf-category-grid a:hover {
    color: var(--bf-primary-dark);
}

.bf-category-grid,
.bf-listing-grid {
    display: grid;
    gap: 16px;
}

.bf-category-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.bf-category-grid a,
.bf-card,
.bf-template-summary,
.bf-form-workspace,
.bf-preview-panel {
    background: var(--bf-surface);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius);
    padding: 18px;
}

.bf-category-grid a {
    align-items: center;
    color: var(--bf-text);
    display: flex;
    font-size: 18px;
    font-weight: 700;
    justify-content: center;
    min-height: 82px;
    text-decoration: none;
    text-align: center;
}

.bf-category-grid a:hover,
.bf-card:hover {
    border-color: #bfd0df;
    box-shadow: 0 12px 28px rgba(20, 32, 46, 0.08);
}

.bf-category-grid span {
    color: var(--bf-muted);
    display: block;
    font-size: 13px;
    font-weight: 400;
    margin-top: 6px;
}

.bf-listing-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.bf-home-accordions {
    display: grid;
    gap: 14px;
    padding-top: 36px;
    scroll-margin-top: 100px;
}

.bf-accordion-panel {
    background: var(--bf-surface);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius);
    overflow: hidden;
}

.bf-accordion-panel summary {
    align-items: center;
    cursor: pointer;
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) auto;
    list-style: none;
    padding: 18px 20px;
}

.bf-accordion-panel summary::-webkit-details-marker {
    display: none;
}

.bf-accordion-panel summary::after {
    align-items: center;
    background: var(--bf-primary-soft);
    border: 1px solid #c7e2dc;
    border-radius: 999px;
    color: var(--bf-primary-dark);
    content: "+";
    display: inline-flex;
    font-size: 22px;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    line-height: 1;
    width: 34px;
}

.bf-accordion-panel[open] summary {
    border-bottom: 1px solid var(--bf-border);
}

.bf-accordion-panel[open] summary::after {
    content: "-";
}

.bf-accordion-panel summary span {
    color: var(--bf-muted);
    font-size: 13px;
    font-weight: 700;
}

.bf-accordion-panel summary strong {
    color: var(--bf-ink);
    font-size: 24px;
    line-height: 1.35;
}

.bf-accordion-body {
    padding: 18px 20px 20px;
}

.bf-section.bf-featured-forms {
    padding-top: 42px;
}

.bf-featured-grid {
    align-items: stretch;
}

.bf-featured-grid .bf-form-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
    border-color: #c7e2dc;
    border-top-color: #c7e2dc;
    border-top-width: 1px;
    box-shadow: none;
    min-height: 104px;
    padding: 16px;
    position: relative;
}

.bf-featured-grid .bf-form-card::before {
    content: none;
    display: none;
}

.bf-home-accordions summary,
.bf-home-accordions summary strong,
.bf-home-accordions .bf-form-card,
.bf-home-accordions .bf-form-card h2 {
    border-top: 0;
}

.bf-featured-grid .bf-form-card h2 {
    font-size: 17px;
    line-height: 1.55;
}

.bf-featured-grid .bf-form-card h2 a {
    align-items: center;
    display: flex;
    min-height: 52px;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.bf-featured-grid .bf-form-card:hover {
    border-color: #8fbdb4;
    transform: translateY(-2px);
}

.bf-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
}

.bf-card-compact {
    min-height: 132px;
}

.bf-question-card {
    min-height: 108px;
    justify-content: center;
}

.bf-question-card h2 {
    font-size: 18px;
}

.bf-card-meta,
.bf-mini-badges,
.bf-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bf-card-meta {
    justify-content: space-between;
}

.bf-card-meta span,
.bf-mini-badges span,
.bf-badges span {
    background: var(--bf-soft);
    border: 1px solid #c7e2dc;
    border-radius: 999px;
    color: var(--bf-primary-dark);
    font-size: 12px;
    padding: 3px 9px;
}

.bf-card h2 {
    font-size: 20px;
    line-height: 1.45;
    margin: 0;
}

.bf-card h2 a {
    color: var(--bf-ink);
    align-items: center;
    display: flex;
    min-height: 44px;
    text-decoration: none;
}

.bf-card p {
    color: #3f4a5c;
    font-size: 15px;
    line-height: 1.75;
    min-height: 54px;
}

.bf-card,
.bf-category-grid a,
.bf-template-summary,
.bf-form-workspace,
.bf-preview-panel,
.bf-rich-content,
.bf-sidebar-links section {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.bf-card {
    overflow: hidden;
    position: relative;
}

.bf-card-compact {
    justify-content: center;
    min-height: 112px;
}

.bf-card h2 {
    font-size: 18px;
    line-height: 1.55;
}

.bf-card h2 a {
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.bf-form-card h2 a::before {
    background: var(--bf-primary);
    border-radius: 999px;
    content: "";
    display: inline-block;
    height: 7px;
    margin-left: 8px;
    vertical-align: middle;
    width: 7px;
}

.bf-card:hover,
.bf-category-grid a:hover {
    transform: translateY(-2px);
}

.bf-badge-price-subscription {
    background: #f3f6f8 !important;
    border-color: #d8e0e8 !important;
    color: var(--bf-info-dark) !important;
}

.bf-badge-price-free {
    background: var(--bf-primary-soft) !important;
    border-color: #c7e2dc !important;
    color: var(--bf-primary-dark) !important;
}

.bf-badge-price-paid {
    background: var(--bf-accent-soft) !important;
    border-color: #f3c27f !important;
    color: var(--bf-accent-dark) !important;
}

.bf-badge-price-school {
    background: var(--bf-info-soft) !important;
    border-color: #c7d5e8 !important;
    color: var(--bf-info-dark) !important;
}

.bf-card-link {
    margin-top: 14px;
}

.bf-band {
    background: linear-gradient(180deg, var(--bf-primary-soft) 0%, #ffffff 100%);
    border-bottom: 1px solid #c7e2dc;
    border-top: 1px solid #c7e2dc;
    color: var(--bf-text);
    padding: 54px 0;
}

.bf-band .bf-eyebrow,
.bf-band p {
    color: var(--bf-muted);
}

.bf-band-grid {
    display: grid;
    gap: 26px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.bf-check-list {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bf-check-list p {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #c7e2dc;
    border-radius: 8px;
    color: var(--bf-primary-dark);
    font-weight: 600;
    margin: 0;
    padding: 12px;
}

.bf-content-page,
.bf-archive-head,
.bf-template-layout {
    padding-bottom: 64px;
    padding-top: 42px;
}

.bf-breadcrumbs {
    align-items: center;
    color: var(--bf-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 8px;
    margin-bottom: 18px;
}

.bf-breadcrumbs a,
.bf-breadcrumbs span {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    min-height: 44px;
}

.bf-breadcrumbs a {
    color: var(--bf-primary-dark);
    text-decoration: none;
}

.bf-breadcrumbs a:hover {
    text-decoration: underline;
}

.bf-breadcrumbs a::after {
    color: var(--bf-muted);
    content: "/";
    font-weight: 400;
}

.bf-page-title,
.bf-archive-head {
    margin-bottom: 28px;
}

.bf-page-title h1,
.bf-archive-head h1,
.bf-template-head h1 {
    color: var(--bf-ink);
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.32;
    margin: 8px 0 14px;
    max-width: 920px;
    text-wrap: balance;
}

.bf-page-title > p:last-child,
.bf-archive-head > p:last-child {
    color: var(--bf-muted);
    font-size: 17px;
    line-height: 1.85;
    max-width: 820px;
}

.bf-rich-content {
    background: var(--bf-surface);
    border: 1px solid #cfdbd8;
    border-radius: var(--bf-radius);
    box-shadow: 0 14px 34px rgba(20, 32, 46, 0.06);
    color: var(--bf-text);
    font-size: 16.5px;
    line-height: 1.9;
    padding: 30px;
}

.bf-article-page .bf-rich-content,
.bf-content-page .bf-rich-content {
    max-width: 920px;
}

.bf-content-with-sidebar,
.bf-template-content-grid {
    align-items: start;
    display: grid;
    gap: 26px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
}

.bf-content-primary,
.bf-content-with-sidebar .bf-rich-content,
.bf-template-content-grid .bf-rich-content {
    max-width: none;
    min-width: 0;
}

.bf-sidebar-links {
    display: grid;
    gap: 14px;
    position: sticky;
    top: 96px;
}

.bf-sidebar-links section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
    border: 1px solid #cfdbd8;
    border-radius: var(--bf-radius);
    box-shadow: 0 10px 26px rgba(20, 32, 46, 0.05);
    padding: 18px;
}

.bf-sidebar-links h2 {
    color: var(--bf-ink);
    font-size: 16px;
    line-height: 1.4;
    margin: 0 0 10px;
}

.bf-sidebar-links div {
    display: grid;
    gap: 7px;
}

.bf-sidebar-links a {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dbe6e3;
    border-radius: 7px;
    color: var(--bf-primary-dark);
    display: flex;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    min-height: 44px;
    padding: 9px 11px;
    text-decoration: none;
}

.bf-sidebar-links a:hover {
    background: var(--bf-soft);
    border-color: #8fbdb4;
    color: var(--bf-primary-dark);
}

.bf-rich-content p {
    margin: 0 0 16px;
}

.bf-rich-content p:last-child,
.bf-rich-content ul:last-child,
.bf-rich-content ol:last-child {
    margin-bottom: 0;
}

.bf-rich-content h2 {
    border-top: 0;
    color: var(--bf-ink);
    font-size: 23px;
    font-weight: 800;
    line-height: 1.45;
    margin: 26px 0 12px;
    padding-top: 0;
}

.bf-rich-content h2:first-child {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.bf-rich-content h3 {
    color: var(--bf-ink);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.45;
    margin: 22px 0 8px;
}

.bf-rich-content ul,
.bf-rich-content ol {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
    padding-right: 22px;
}

.bf-rich-content li::marker {
    color: var(--bf-primary);
}

.bf-rich-content a {
    color: var(--bf-primary-dark);
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    min-height: 44px;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.bf-rich-content strong {
    color: var(--bf-ink);
}

.bf-template-head {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
    border: 1px solid #cfdbd8;
    border-radius: var(--bf-radius);
    box-shadow: 0 12px 30px rgba(20, 32, 46, 0.06);
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 320px;
    margin-bottom: 24px;
    padding: 24px;
}

.bf-template-head p {
    color: var(--bf-muted);
    font-size: 17px;
    line-height: 1.8;
}

.bf-template-summary ol {
    margin: 10px 0 0;
    padding-right: 20px;
}

.bf-template-grid {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 960px);
    justify-content: center;
    margin-bottom: 30px;
}

.bf-live-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.bf-live-form label {
    color: var(--bf-ink);
    display: grid;
    font-size: 15px;
    font-weight: 800;
    gap: 6px;
}

.bf-live-form .bf-field-long,
.bf-form-actions,
.bf-form-message {
    grid-column: 1 / -1;
}

.bf-live-form input,
.bf-live-form textarea {
    background: #fbfdfd;
    border: 1px solid #cfdcda;
    border-radius: 7px;
    color: var(--bf-text);
    font: inherit;
    font-size: 15px;
    padding: 11px 12px;
    width: 100%;
}

.bf-live-form input:focus,
.bf-live-form textarea:focus,
.bf-search input:focus,
.bf-tool-panel input:focus,
.bf-tool-panel select:focus,
.bf-tool-panel textarea:focus {
    border-color: var(--bf-primary);
    box-shadow: 0 0 0 3px rgba(11, 107, 99, 0.14);
    outline: 0;
}

.bf-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.bf-form-actions [data-bf-share] {
    background: #ffffff;
    border-color: #c7e2dc;
    color: var(--bf-primary-dark);
}

.bf-form-actions [data-bf-share]:hover {
    background: var(--bf-soft);
    border-color: #8fbdb4;
    color: var(--bf-primary-dark);
}

.bf-form-message {
    color: var(--bf-muted);
    margin: 0;
}

.bf-preview-panel {
    align-self: start;
    height: fit-content;
    position: static;
}

.bf-print-sheet {
    background: var(--bf-surface);
    border: 1px solid #c9d5df;
    border-radius: var(--bf-radius);
    box-shadow: 0 18px 40px rgba(20, 32, 46, 0.08);
    color: var(--bf-text);
    display: flex;
    flex-direction: column;
    max-height: none;
    min-height: 280px;
    overflow: auto;
    padding: 20px;
}

.bf-sheet-head {
    border-bottom: 2px solid var(--bf-primary);
    display: flex;
    font-size: 15px;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
}

.bf-preview-row {
    border-bottom: 1px solid #e5e7eb;
    display: grid;
    gap: 12px;
    grid-template-columns: 180px 1fr;
    font-size: 14px;
    line-height: 1.7;
    padding: 9px 0;
}

.bf-preview-row strong {
    color: var(--bf-ink);
}

.bf-preview-row span {
    white-space: pre-wrap;
}

.bf-print-footer {
    align-items: center;
    border-top: 1px dashed #cbd5e1;
    color: #667386;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 10px 14px;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
}

.bf-print-brand {
    align-items: center;
    color: var(--bf-ink);
    display: inline-flex;
    gap: 8px;
}

.bf-print-brand img {
    display: block;
    max-height: 34px;
    max-width: 120px;
    object-fit: contain;
}

.bf-print-brand-mark {
    align-items: center;
    background: var(--bf-primary);
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    font-size: 18px;
    font-weight: 700;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.bf-print-footer a {
    color: var(--bf-primary-dark);
    direction: ltr;
    text-decoration: none;
}

.bf-clean-export .bf-print-footer {
    display: none;
}

.bf-preview-empty,
.bf-empty {
    color: var(--bf-muted);
}

.bf-empty-panel {
    background: var(--bf-surface);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius);
    padding: 24px;
}

.bf-empty-panel h2 {
    color: var(--bf-ink);
    font-size: 24px;
    margin: 0 0 8px;
}

.bf-empty-panel p {
    color: #3f4a5c;
    font-size: 17px;
    line-height: 1.8;
    margin: 0 0 16px;
}

.bf-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bf-quick-links-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.bf-quick-links-grid a {
    align-items: center;
    background: var(--bf-surface);
    border: 1px solid var(--bf-border);
    border-radius: 8px;
    color: var(--bf-ink);
    display: inline-flex;
    font-size: 17px;
    font-weight: 800;
    justify-content: center;
    min-height: 56px;
    padding: 12px 16px;
    text-align: center;
    text-decoration: none;
}

.bf-quick-links-grid a:hover {
    background: var(--bf-primary-soft);
    border-color: #9ccbc1;
    color: var(--bf-primary-dark);
}

.nav-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 28px;
}

.nav-links a,
.nav-links span {
    background: var(--bf-surface);
    border: 1px solid var(--bf-border);
    border-radius: 7px;
    color: var(--bf-ink);
    min-width: 44px;
    padding: 8px 12px;
    text-align: center;
    text-decoration: none;
}

.nav-links .current {
    background: var(--bf-primary);
    border-color: var(--bf-primary);
    color: #fff;
}

.bf-internal-links {
    background: var(--bf-info-soft);
    border: 1px solid #c7d5e8;
    border-right: 4px solid var(--bf-info);
    border-radius: var(--bf-radius);
    margin-top: 22px;
    padding: 18px;
}

.bf-internal-links h2 {
    font-size: 20px;
    margin: 0 0 12px;
}

.bf-internal-links div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bf-internal-links a,
.bf-question-chip {
    background: var(--bf-surface);
    border: 1px solid var(--bf-border);
    border-radius: 999px;
    color: var(--bf-primary-dark);
    font-size: 13px;
    padding: 6px 10px;
    text-decoration: none;
}

.bf-content-links {
    background: var(--bf-accent-soft);
    border: 1px solid #f3c27f;
    border-right: 4px solid var(--bf-accent);
    border-radius: var(--bf-radius);
    margin: 24px 0;
    padding: 18px;
}

.bf-content-links h2 {
    font-size: 20px;
    margin: 0 0 12px;
}

.bf-content-links div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bf-content-links a {
    background: var(--bf-surface);
    border: 1px solid var(--bf-border);
    border-radius: 999px;
    color: var(--bf-primary-dark);
    font-size: 13px;
    padding: 6px 10px;
    text-decoration: none;
}

.bf-content-links a:hover {
    border-color: var(--bf-primary);
    background: var(--bf-primary-soft);
}

.bf-content-table-wrap {
    align-items: start;
    background: var(--bf-info-soft);
    border: 1px solid #c7d5e8;
    border-radius: var(--bf-radius);
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    margin: 16px 0 24px;
    padding: 16px;
}

.bf-content-table-wrap::before {
    background: var(--bf-surface);
    border: 1px solid #c7d5e8;
    border-radius: 8px;
    color: var(--bf-info-dark);
    content: "ظ…ظ„ط®طµ ط³ط±ظٹط¹: ظ‡ط°ط§ ط§ظ„ط¬ط¯ظˆظ„ ظٹط¬ظ…ط¹ ط§ظ„ظ…ظ‚طھط±ط­ط§طھ ط£ظˆ ط§ظ„ظپط±ظˆظ‚ط§طھ ظپظٹ طµظˆط±ط© ظ‚ط§ط¨ظ„ط© ظ„ظ„ظ…ظ‚ط§ط±ظ†ط©. ط§ط¨ط¯ط£ ظ…ظ† ط§ظ„ط¹ظ…ظˆط¯ ط§ظ„ط£ظˆظ„ ظ„ظ…ط¹ط±ظپط© ط§ظ„ط­ط§ط¬ط©طŒ ط«ظ… ط§ظ‚ط±ط£ ط§ظ„ط¹ظ…ظˆط¯ ط§ظ„ظ…ظ‚ط§ط¨ظ„ ظ„ظ…ط¹ط±ظپط© ط§ظ„ظ‚ط±ط§ط± ط£ظˆ ط§ظ„ط§ط³طھط®ط¯ط§ظ… ط§ظ„ظ…ظ†ط§ط³ط¨.";
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.9;
    padding: 14px;
}

.bf-content-table {
    border: 1px solid var(--bf-border);
    border-collapse: separate;
    border-radius: var(--bf-radius);
    border-spacing: 0;
    min-width: 0;
    overflow: hidden;
    table-layout: fixed;
    width: 100%;
}

.bf-content-table th,
.bf-content-table td {
    border-bottom: 1px solid var(--bf-border);
    border-left: 1px solid var(--bf-border);
    color: var(--bf-text);
    font-size: 14px;
    padding: 12px;
    text-align: right;
    vertical-align: top;
}

.bf-content-table thead th {
    background: #f2f6f7;
    color: var(--bf-ink);
}

.bf-content-table tr:last-child th,
.bf-content-table tr:last-child td {
    border-bottom: 0;
}

.bf-content-table th:last-child,
.bf-content-table td:last-child {
    border-left: 0;
}

.bf-subscriptions-page {
    background: var(--bf-bg);
}

.bf-sub-hero {
    background: linear-gradient(180deg, #ffffff 0%, var(--bf-primary-soft) 68%, #f6f8f7 100%);
    border-bottom: 1px solid var(--bf-border);
}

.bf-sub-hero-grid {
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    min-height: 430px;
    padding-bottom: 52px;
    padding-top: 58px;
}

.bf-sub-hero h1 {
    color: var(--bf-ink);
    font-size: 48px;
    line-height: 1.22;
    margin: 8px 0 16px;
    max-width: 800px;
}

.bf-sub-hero p {
    color: var(--bf-muted);
    font-size: 18px;
    font-weight: 500;
    max-width: 760px;
}

.bf-sub-hero-panel {
    align-self: center;
    background: var(--bf-elevated);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius);
    box-shadow: var(--bf-shadow);
    padding: 26px;
}

.bf-sub-hero-panel strong,
.bf-sub-hero-panel span,
.bf-sub-hero-panel a {
    display: block;
}

.bf-sub-hero-panel strong {
    color: var(--bf-primary-dark);
}

.bf-sub-hero-panel span {
    color: var(--bf-text);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin: 12px 0;
}

.bf-sub-hero-panel p {
    font-size: 15px;
}

.bf-sub-hero-panel a {
    color: var(--bf-primary-dark);
    font-weight: 700;
    margin-top: 16px;
    text-decoration: none;
}

.bf-sub-section {
    padding-bottom: 58px;
    padding-top: 58px;
}

.bf-pricing-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.bf-price-card {
    background: var(--bf-surface);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius);
    display: flex;
    flex-direction: column;
    min-height: 560px;
    padding: 22px;
}

.bf-price-featured,
.bf-price-featured-school {
    border-color: var(--bf-primary);
    box-shadow: var(--bf-shadow);
    position: relative;
}

.bf-price-featured::before,
.bf-price-featured-school::before {
    background: var(--bf-primary);
    border-radius: 999px;
    color: #fff;
    content: "ط§ظ„ط£ظƒط«ط± ظ…ظ†ط§ط³ط¨ط©";
    font-size: 12px;
    font-weight: 700;
    left: 18px;
    padding: 4px 10px;
    position: absolute;
    top: 16px;
}

.bf-price-enterprise {
    background-color: var(--bf-footer-bg);
    background-image: linear-gradient(135deg, var(--bf-footer-bg) 0%, var(--bf-info-dark) 100%);
    border-color: var(--bf-info-dark);
    color: #fff;
}

.bf-price-enterprise .bf-price-card-head p,
.bf-price-enterprise .bf-price-card-head em,
.bf-price-enterprise .bf-price-limits,
.bf-price-enterprise li,
.bf-price-enterprise p {
    color: var(--bf-footer-muted);
}

.bf-price-enterprise .bf-card-link {
    color: var(--bf-info-dark);
}

.bf-price-card-head {
    border-bottom: 1px solid var(--bf-border);
    margin-bottom: 16px;
    padding-bottom: 16px;
}

.bf-price-enterprise .bf-price-card-head {
    border-bottom-color: rgba(255, 255, 255, 0.18);
}

.bf-price-card-head p {
    color: var(--bf-primary-dark);
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 8px;
}

.bf-price-card h3 {
    color: var(--bf-ink);
    font-size: 23px;
    line-height: 1.35;
    margin: 0;
}

.bf-price {
    align-items: baseline;
    display: flex;
    gap: 8px;
    margin: 16px 0 4px;
}

.bf-price strong {
    color: var(--bf-ink);
    font-size: 44px;
    line-height: 1;
}

.bf-price-enterprise h3,
.bf-price-enterprise .bf-price strong {
    color: #fff;
}

.bf-price span,
.bf-price-card-head em {
    color: var(--bf-muted);
    font-style: normal;
}

.bf-price-list,
.bf-price-limits {
    margin-top: 12px;
}

.bf-price-list strong,
.bf-price-limits strong {
    display: block;
    margin-bottom: 8px;
}

.bf-price-list ul,
.bf-price-limits ul {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bf-price-list li,
.bf-price-limits li {
    color: var(--bf-muted);
    padding-right: 18px;
    position: relative;
}

.bf-price-list li::before,
.bf-price-limits li::before {
    border-radius: 50%;
    content: "";
    height: 7px;
    position: absolute;
    right: 0;
    top: 12px;
    width: 7px;
}

.bf-price-list li::before {
    background: var(--bf-primary);
}

.bf-price-limits li::before {
    background: var(--bf-accent);
}

.bf-price-enterprise .bf-price span,
.bf-price-enterprise .bf-price-card-head em,
.bf-price-enterprise .bf-price-list strong,
.bf-price-enterprise .bf-price-limits strong,
.bf-price-enterprise .bf-price-list li,
.bf-price-enterprise .bf-price-limits li {
    color: #eef5f8;
}

.bf-price-card .bf-card-link {
    margin-top: auto;
    width: 100%;
}

.bf-sub-band {
    background-color: var(--bf-footer-bg);
    background-image: linear-gradient(135deg, var(--bf-footer-bg) 0%, #163943 100%);
    color: #fff;
    padding: 58px 0;
}

.bf-value-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.bf-value-grid h2 {
    font-size: 34px;
    margin: 8px 0 12px;
}

.bf-value-grid p,
.bf-sub-band .bf-eyebrow {
    color: var(--bf-footer-muted);
}

.bf-value-list {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bf-value-list article {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--bf-radius);
    padding: 16px;
}

.bf-value-list strong {
    display: block;
    margin-bottom: 6px;
}

.bf-table-wrap {
    overflow-x: auto;
    scrollbar-color: #cbd5e1 transparent;
}

.bf-plan-table,
.bf-role-table {
    background: var(--bf-surface);
    border: 1px solid var(--bf-border);
    border-collapse: separate;
    border-radius: var(--bf-radius);
    border-spacing: 0;
    min-width: 940px;
    overflow: hidden;
    width: 100%;
}

.bf-role-table {
    min-width: 0;
    table-layout: fixed;
}

.bf-plan-table th,
.bf-plan-table td,
.bf-role-table th,
.bf-role-table td {
    border-bottom: 1px solid var(--bf-border);
    border-left: 1px solid var(--bf-border);
    font-size: 13px;
    padding: 12px 10px;
    text-align: right;
    vertical-align: top;
}

.bf-role-table th,
.bf-role-table td {
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    padding: 9px 7px;
    white-space: normal;
}

.bf-role-table tbody th {
    width: 22%;
}

.bf-plan-table thead th,
.bf-role-table thead th {
    background: #f2f6f7;
    color: var(--bf-ink);
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}

.bf-plan-table tbody th,
.bf-role-table tbody th {
    color: var(--bf-ink);
    font-weight: 700;
    min-width: 180px;
}

.bf-role-table tbody th {
    min-width: 0;
}

.bf-split-section .bf-table-wrap {
    overflow-x: visible;
}

.bf-plan-table tr:last-child th,
.bf-plan-table tr:last-child td,
.bf-role-table tr:last-child th,
.bf-role-table tr:last-child td {
    border-bottom: 0;
}

.bf-plan-table th:last-child,
.bf-plan-table td:last-child,
.bf-role-table th:last-child,
.bf-role-table td:last-child {
    border-left: 0;
}

.bf-split-section {
    display: grid;
    gap: 26px;
    grid-template-columns: 1fr;
}

.bf-split-section > div:first-child p {
    color: var(--bf-muted);
}

.bf-decision-grid,
.bf-faq-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.bf-decision-grid article,
.bf-faq-grid article {
    background: var(--bf-surface);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius);
    padding: 18px;
}

.bf-decision-grid strong,
.bf-faq-grid h3 {
    color: var(--bf-ink);
    display: block;
    font-size: 18px;
    line-height: 1.45;
    margin: 0 0 8px;
}

.bf-decision-grid p,
.bf-faq-grid p {
    color: var(--bf-muted);
    font-size: 14px;
    margin: 0;
}

.bf-sub-faq {
    background: var(--bf-surface);
    border-bottom: 1px solid var(--bf-border);
    border-top: 1px solid var(--bf-border);
    padding: 58px 0;
}

.bf-sub-cta {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding-bottom: 58px;
    padding-top: 58px;
}

.bf-sub-cta h2 {
    font-size: 30px;
    line-height: 1.35;
    margin: 6px 0 0;
    max-width: 760px;
}

.bf-question-answer {
    color: var(--bf-muted);
    margin-top: 8px;
}

.bf-footer-grid {
    display: grid;
    gap: 26px;
    grid-template-columns: 1.2fr 0.8fr 1fr;
}

.bf-footer-grid h2 {
    color: var(--bf-primary-dark);
    font-size: 18px;
    margin-top: 0;
}

.bf-footer-grid p,
.bf-footer-grid a {
    color: var(--bf-muted);
}

.bf-footer-menu {
    display: grid;
    gap: 8px;
}

.bf-site-footer {
    background: linear-gradient(135deg, var(--bf-footer-bg) 0%, var(--bf-footer-bg-2) 58%, #10374a 100%);
    color: var(--bf-footer-text);
    padding: 0;
}

.bf-site-footer a {
    color: inherit;
}

.bf-site-footer a:hover {
    color: #ffffff;
}

.bf-footer-top {
    align-items: start;
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(300px, 1.35fr) minmax(220px, 0.75fr) minmax(260px, 0.9fr);
    padding: 48px 0 36px;
}

.bf-footer-brand,
.bf-footer-column {
    min-width: 0;
}

.bf-footer-logo {
    align-items: center;
    color: #ffffff;
    display: inline-flex;
    gap: 10px;
    margin-bottom: 16px;
    min-height: 44px;
    text-decoration: none;
}

.bf-site-footer .bf-footer-logo .bf-brand-mark {
    background-color: #ffffff;
    background-image: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    color: var(--bf-primary-dark);
}

.bf-footer-logo strong,
.bf-footer-logo em {
    display: block;
    font-style: normal;
}

.bf-footer-logo strong {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.bf-footer-logo em {
    color: var(--bf-footer-muted);
    font-size: 12px;
    line-height: 1.4;
}

.bf-footer-brand p,
.bf-footer-support p {
    color: var(--bf-footer-muted);
    font-size: 14px;
    line-height: 1.85;
    margin: 0;
    max-width: 520px;
}

.bf-footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.bf-footer-badges span {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #eaf6f4;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    padding: 6px 10px;
}

.bf-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.bf-footer-primary,
.bf-footer-secondary,
.bf-footer-support-link {
    align-items: center;
    border-radius: 7px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    justify-content: center;
    min-height: 44px;
    padding: 10px 15px;
    text-decoration: none;
}

.bf-footer-primary {
    background: var(--bf-accent);
    border: 1px solid var(--bf-accent);
    color: #ffffff !important;
}

.bf-footer-secondary,
.bf-footer-support-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
}

.bf-footer-primary:hover,
.bf-footer-secondary:hover,
.bf-footer-support-link:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--bf-primary-dark) !important;
}

.bf-footer-contact-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.bf-footer-whatsapp {
    align-items: center;
    background: #22c55e;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    color: #ffffff !important;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    width: 44px;
}

.bf-footer-bottom a {
    align-items: center;
    display: inline-flex;
    min-height: 44px;
}

.bf-footer-whatsapp svg {
    display: block;
    fill: currentColor;
    height: 24px;
    width: 24px;
}

.bf-footer-whatsapp:hover {
    background: #ffffff;
    color: #128c4a !important;
    transform: translateY(-1px);
}

.bf-footer-column h2 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 16px;
}

.bf-footer-column .bf-footer-menu {
    display: grid;
    gap: 9px;
}

.bf-site-footer .bf-footer-column .bf-footer-menu a {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--bf-footer-muted);
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    line-height: 1.55;
    max-width: 100%;
    padding: 0;
    text-decoration: none;
    width: max-content;
}

.bf-site-footer .bf-footer-column .bf-footer-menu a::before {
    background: rgba(255, 184, 92, 0.82);
    border-radius: 999px;
    content: "";
    display: inline-flex;
    flex: 0 0 auto;
    height: 6px;
    margin-top: 9px;
    width: 6px;
}

.bf-site-footer .bf-footer-column .bf-footer-menu a:hover {
    color: #ffffff;
}

.bf-site-footer .bf-footer-column .bf-footer-menu a:hover::before {
    background: #ffffff;
}

.bf-footer-support dl {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}

.bf-footer-support dl div {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 10px 12px;
}

.bf-footer-support dt {
    color: #a8c5bf;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 3px;
}

.bf-footer-support dd {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    overflow-wrap: anywhere;
}

.bf-footer-support dd a {
    color: #ffffff;
    direction: ltr;
    display: inline-block;
    text-decoration: none;
}

.bf-footer-support dd a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.bf-footer-bottom {
    align-items: center;
    border-top: 1px solid var(--bf-footer-line);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 20px 0 26px;
}

.bf-footer-bottom p {
    color: var(--bf-footer-muted);
    font-size: 13px;
    margin: 0;
}

.bf-footer-bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    justify-content: flex-end;
}

.bf-footer-bottom a {
    color: var(--bf-footer-muted);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.bf-footer-bottom a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.bf-download-hub {
    display: grid;
    gap: 22px;
}

.bf-download-intro {
    background: linear-gradient(180deg, #f8fbfa 0%, #ffffff 100%);
    border: 1px solid #cfdbd8;
    border-radius: var(--bf-radius);
    color: var(--bf-text) !important;
    font-size: 17px;
    line-height: 1.9;
    margin: 0;
    padding: 18px;
}

.bf-download-stats {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bf-download-stats span {
    background: var(--bf-primary-soft);
    border: 1px solid #c7e2dc;
    border-radius: var(--bf-radius);
    color: var(--bf-primary-dark);
    font-size: 13px;
    font-weight: 800;
    padding: 14px;
}

.bf-download-stats strong {
    color: var(--bf-primary-dark);
    display: block;
    font-size: 24px;
    line-height: 1.1;
}

.bf-download-section {
    display: grid;
    gap: 14px;
}

.bf-download-section header {
    border-bottom: 1px solid #dbe6e3;
    padding-bottom: 12px;
}

.bf-download-section header h2 {
    margin-top: 0;
}

.bf-download-section header p {
    margin-bottom: 0;
}

.bf-download-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bf-download-card {
    background: #ffffff;
    border: 1px solid #cfdbd8;
    border-radius: var(--bf-radius);
    box-shadow: 0 12px 30px rgba(20, 32, 46, 0.05);
    display: grid;
    gap: 12px;
    padding: 18px;
}

.bf-download-card-head {
    display: grid;
    gap: 8px;
}

.bf-download-card-head span {
    background: var(--bf-accent-soft);
    border: 1px solid #f3c27f;
    border-radius: 999px;
    color: var(--bf-accent-dark);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    justify-self: start;
    padding: 3px 9px;
}

.bf-download-card-head strong {
    color: var(--bf-ink);
    font-size: 18px;
    line-height: 1.5;
}

.bf-download-card p {
    color: var(--bf-muted) !important;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

.bf-download-keywords {
    background: #f8fafb;
    border-radius: 7px;
    padding: 8px 10px;
}

.bf-download-related {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bf-download-related b {
    color: var(--bf-ink);
    flex: 0 0 100%;
    font-size: 13px;
}

.bf-download-related a {
    background: var(--bf-info-soft);
    border: 1px solid #c7d5e8;
    border-radius: 999px;
    color: var(--bf-info-dark);
    font-size: 12px;
    font-weight: 800;
    padding: 4px 9px;
    text-decoration: none;
}

.bf-download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bf-download-button,
.bf-download-preview {
    align-items: center;
    border-radius: 7px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    text-decoration: none !important;
}

.bf-download-button {
    background: var(--bf-primary);
    border: 1px solid var(--bf-primary);
    color: #ffffff !important;
}

.bf-download-preview {
    background: #ffffff;
    border: 1px solid #c7e2dc;
    color: var(--bf-primary-dark) !important;
}

.bf-contextual-forms {
    background: linear-gradient(180deg, #f7fbfa 0%, #ffffff 100%);
    border: 1px solid #d4e3df;
    border-radius: var(--bf-radius);
    display: grid;
    gap: 18px;
    margin: 30px 0;
    padding: 20px;
}

.bf-contextual-forms > header {
    display: grid;
    gap: 6px;
}

.bf-contextual-forms > header p {
    color: var(--bf-primary-dark);
    font-size: 13px;
    font-weight: 800;
    margin: 0;
}

.bf-contextual-forms > header h2 {
    color: var(--bf-ink);
    font-size: 26px;
    line-height: 1.35;
    margin: 0;
}

.bf-contextual-forms > header span {
    color: var(--bf-muted);
    display: block;
    font-size: 16px;
    line-height: 1.8;
    max-width: 820px;
}

.bf-contextual-form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bf-contextual-form-card {
    background: #ffffff;
    border: 1px solid #d9e4e1;
    border-radius: var(--bf-radius);
    display: grid;
    gap: 10px;
    min-height: 190px;
    padding: 16px;
}

.bf-contextual-form-card p {
    color: var(--bf-primary-dark);
    font-size: 12px;
    font-weight: 800;
    margin: 0;
}

.bf-contextual-form-card h3 {
    font-size: 19px;
    line-height: 1.45;
    margin: 0;
}

.bf-contextual-form-card h3 a {
    color: var(--bf-ink);
    text-decoration: none;
}

.bf-contextual-form-card h3 a:hover {
    color: var(--bf-primary-dark);
}

.bf-contextual-form-card > span {
    color: var(--bf-muted);
    font-size: 14px;
    line-height: 1.75;
}

.bf-contextual-form-card div {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.bf-contextual-form-card em {
    background: #f1f5f9;
    border: 1px solid #dbe4ec;
    border-radius: 999px;
    color: #334155;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    padding: 5px 9px;
}

.bf-tools-page .bf-page-title {
    max-width: 920px;
}

.bf-tools-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bf-tool-panel,
.bf-tool-plan {
    background: var(--bf-surface);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius);
    padding: 20px;
}

.bf-tool-panel h2 {
    color: var(--bf-ink);
    font-size: 22px;
    line-height: 1.35;
    margin: 0 0 14px;
}

.bf-tool-panel label {
    color: var(--bf-ink);
    display: grid;
    font-weight: 700;
    gap: 6px;
    margin-bottom: 12px;
}

.bf-tool-panel input,
.bf-tool-panel select,
.bf-tool-panel textarea {
    border: 1px solid var(--bf-border);
    border-radius: 7px;
    color: var(--bf-text);
    font-size: 15px;
    min-height: 42px;
    padding: 9px 11px;
}

.bf-tool-output,
.bf-tool-results,
.bf-qr-preview {
    background: var(--bf-soft);
    border: 1px solid #c7e2dc;
    border-radius: var(--bf-radius);
    display: grid;
    gap: 10px;
    margin-top: 14px;
    min-height: 54px;
    padding: 12px;
}

.bf-tool-output a,
.bf-tool-result a {
    color: var(--bf-primary-dark);
    overflow-wrap: anywhere;
}

.bf-tool-output button {
    border: 1px solid var(--bf-border);
    border-radius: 7px;
    cursor: pointer;
    font-weight: 700;
    justify-self: start;
    padding: 7px 10px;
}

.bf-qr-preview img {
    background: var(--bf-surface);
    border: 1px solid var(--bf-border);
    border-radius: 7px;
    max-width: 220px;
    padding: 10px;
}

.bf-tool-result {
    align-items: center;
    background: var(--bf-surface);
    border: 1px solid var(--bf-border);
    border-radius: 7px;
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 10px;
}

.bf-tool-plan {
    margin-top: 18px;
}

@media (max-width: 1180px) {
    .bf-category-grid,
    .bf-listing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .bf-header-inner,
    .bf-menu,
    .bf-header-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .bf-hero-grid,
    .bf-template-head,
    .bf-template-grid,
    .bf-band-grid,
    .bf-footer-grid,
    .bf-sub-hero-grid,
    .bf-value-grid,
    .bf-split-section,
    .bf-tools-grid,
    .bf-content-with-sidebar,
    .bf-template-content-grid {
        grid-template-columns: 1fr;
    }

    .bf-category-grid,
    .bf-listing-grid,
    .bf-contextual-form-grid,
    .bf-check-list,
    .bf-pricing-grid,
    .bf-decision-grid,
    .bf-faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bf-preview-panel {
        position: static;
    }

    .bf-sidebar-links {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        position: static;
    }

    .bf-content-table-wrap {
        grid-template-columns: 1fr;
    }

    .bf-rich-content {
        font-size: 16px;
    }

    .bf-sub-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .bf-footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bf-footer-brand {
        grid-column: 1 / -1;
    }

    .bf-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .bf-footer-bottom nav {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .bf-site-header {
        position: static;
    }

    .bf-hero-copy h1,
    .bf-page-title h1,
    .bf-archive-head h1,
    .bf-template-head h1,
    .bf-sub-hero h1 {
        font-size: 32px;
    }

    .bf-category-grid,
    .bf-listing-grid,
    .bf-contextual-form-grid,
    .bf-check-list,
    .bf-pricing-grid,
    .bf-value-list,
    .bf-decision-grid,
    .bf-faq-grid {
        grid-template-columns: 1fr;
    }

    .bf-featured-grid {
        gap: 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bf-featured-grid .bf-form-card {
        min-height: 116px;
        padding: 14px;
    }

    .bf-featured-grid .bf-form-card h2 {
        font-size: 15px;
    }

    .bf-home-accordions {
        padding-top: 26px;
    }

    .bf-accordion-panel summary {
        padding: 15px 16px;
    }

    .bf-accordion-panel summary strong {
        font-size: 18px;
    }

    .bf-accordion-body {
        padding: 14px 16px 16px;
    }

    .bf-search {
        flex-direction: column;
    }

    .bf-preview-row {
        grid-template-columns: 1fr;
    }

    .bf-live-form {
        grid-template-columns: 1fr;
    }

    .bf-content-table-wrap {
        padding: 12px;
    }

    .bf-content-table th,
    .bf-content-table td {
        font-size: 12px;
        padding: 9px;
    }

    .bf-tool-result {
        grid-template-columns: 1fr;
    }

    .bf-footer-top {
        gap: 22px;
        grid-template-columns: 1fr;
        padding: 34px 0 26px;
    }

    .bf-footer-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .bf-footer-primary,
    .bf-footer-secondary,
    .bf-footer-support-link {
        width: 100%;
    }

    .bf-footer-bottom {
        padding-bottom: 24px;
    }

    .bf-table-wrap {
        overflow-x: visible;
    }

    .bf-plan-table,
    .bf-role-table {
        background: transparent;
        border: 0;
        display: block;
        min-width: 0;
        width: 100%;
    }

    .bf-plan-table thead,
    .bf-role-table thead {
        display: none;
    }

    .bf-plan-table tbody,
    .bf-plan-table tr,
    .bf-plan-table th,
    .bf-plan-table td,
    .bf-role-table tbody,
    .bf-role-table tr,
    .bf-role-table th,
    .bf-role-table td {
        display: block;
        width: 100%;
    }

    .bf-plan-table tr,
    .bf-role-table tr {
        background: var(--bf-surface);
        border: 1px solid var(--bf-border);
        border-radius: var(--bf-radius);
        box-shadow: var(--bf-shadow-soft);
        margin-bottom: 12px;
        overflow: hidden;
    }

    .bf-plan-table tbody th,
    .bf-role-table tbody th {
        background: #f2f6f7;
        border-left: 0;
        color: var(--bf-ink);
        font-size: 14px;
        line-height: 1.55;
        min-width: 0;
        padding: 12px 14px;
        width: 100%;
    }

    .bf-plan-table td,
    .bf-role-table td {
        align-items: flex-start;
        border-left: 0;
        display: flex;
        font-size: 13px;
        gap: 14px;
        justify-content: space-between;
        line-height: 1.6;
        padding: 10px 14px;
        text-align: right;
        white-space: normal;
    }

    .bf-plan-table td::before,
    .bf-role-table td::before {
        color: var(--bf-muted);
        content: attr(data-label);
        flex: 0 0 min(44%, 150px);
        font-weight: 700;
        text-align: right;
    }

    .bf-plan-table tr:last-child th,
    .bf-plan-table tr:last-child td,
    .bf-role-table tr:last-child th,
    .bf-role-table tr:last-child td {
        border-bottom: 1px solid var(--bf-border);
    }
}

.bf-license-note {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: #7c2d12;
    margin: 24px 0;
    padding: 18px 20px;
}

.bf-license-note h2 {
    color: #7c2d12;
    font-size: clamp(1.1rem, 1vw + 0.9rem, 1.35rem);
    margin: 0 0 8px;
}

.bf-license-note p {
    color: #7c2d12;
    font-size: 1rem;
    line-height: 1.9;
    margin: 0;
}

.bf-smart-tools-grid {
    align-items: stretch;
}

.bf-smart-tools-page .bf-tool-panel p {
    color: var(--bf-muted);
    line-height: 1.8;
    margin: 0 0 14px;
}

.bf-tool-fields-2 {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bf-tool-preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.bf-tool-preset-row button,
.bf-check-tool-list label {
    min-height: 44px;
}

.bf-tool-preset-row button {
    background: #eef6f3;
    border: 1px solid #c8dfd8;
    border-radius: 8px;
    color: #0f5f54;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 9px 12px;
}

.bf-check-tool-list {
    display: grid;
    gap: 10px;
}

.bf-check-tool-list label {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--bf-border);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    padding: 10px 12px;
}

.bf-check-tool-list input {
    height: 18px;
    width: 18px;
}

.bf-tool-output ul {
    margin: 8px 0 0;
    padding: 0 18px 0 0;
}

.bf-tool-output li {
    margin: 4px 0;
}

@media (max-width: 720px) {
    .bf-tool-fields-2 {
        grid-template-columns: 1fr;
    }
}

@media print {
    @page {
        margin: 12mm;
        size: A4 portrait;
    }

    html,
    body {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .bf-site-header,
    .bf-breadcrumbs,
    .bf-template-head,
    .bf-form-workspace,
    .bf-template-content-grid,
    .bf-template-layout > .bf-section,
    .bf-site-footer,
    .bf-preview-panel > h2 {
        display: none !important;
    }

    .bf-container,
    .bf-template-layout,
    .bf-template-grid,
    .bf-preview-panel {
        display: block !important;
        margin: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        position: static !important;
        width: 100% !important;
    }

    .bf-print-sheet {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        color: #111827;
        max-height: none;
        min-height: auto;
        overflow: visible;
        padding: 0;
        position: static !important;
        width: 100% !important;
    }

    .bf-sheet-head {
        font-size: 14px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .bf-preview-row {
        break-inside: avoid;
        font-size: 12px;
        grid-template-columns: 38mm 1fr;
        line-height: 1.55;
        padding: 6px 0;
    }

    .bf-print-footer {
        break-inside: avoid;
        color: #475569;
        font-size: 10px;
        margin-top: 24px;
    }

    .bf-clean-export .bf-print-footer {
        display: none !important;
    }
}

